12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949 |
- #! /bin/sh
- # Guess values for system-dependent variables and create Makefiles.
- # Generated automatically using autoconf version 2.13
- # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
- #
- # This configure script is free software; the Free Software Foundation
- # gives unlimited permission to copy, distribute and modify it.
- # Defaults:
- ac_help=
- ac_default_prefix=/usr/local
- # Any additions from configure.in:
- ac_default_prefix=/usr/local
- ac_help="$ac_help
- --enable-macosx-app create a MacOSX application"
- ac_help="$ac_help
- --enable-shared build and link with shared libraries [--enable-shared]"
- ac_help="$ac_help
- --enable-64bit enable 64bit support (where applicable)"
- ac_help="$ac_help
- --enable-64bit-vis enable 64bit Sparc VIS support"
- ac_help="$ac_help
- --enable-w11 use W11 library for Windows X11 emulation"
- ac_help="$ac_help
- --with-cxx support C++ functionality (default: no)"
- ac_help="$ac_help
- --with-jpeg support JPEG functionality (default: yes)"
- ac_help="$ac_help
- --with-tiff support TIFF functionality (default: yes)"
- ac_help="$ac_help
- --with-png support PNG functionality (default: yes)"
- ac_help="$ac_help
- --with-tcltk support Tcl/Tk functionality (default: yes)"
- ac_help="$ac_help
- --with-postgres support PostgreSQL functionality (default: no)"
- ac_help="$ac_help
- --with-mysql support MySQL functionality (default: no)"
- ac_help="$ac_help
- --with-sqlite support SQLite functionality (default: no)"
- ac_help="$ac_help
- --with-ffmpeg support FFMPEG functionality (default: no)"
- ac_help="$ac_help
- --with-opengl support OpenGL functionality (default: yes)"
- ac_help="$ac_help
- --with-odbc support ODBC functionality (default: no)"
- ac_help="$ac_help
- --with-fftw support FFTW functionality (default: yes)"
- ac_help="$ac_help
- --with-blas support BLAS functionality (default: no)"
- ac_help="$ac_help
- --with-lapack support LAPACK functionality (default: no)"
- ac_help="$ac_help
- --with-cairo support Cairo functionality (default: yes)"
- ac_help="$ac_help
- --with-freetype support FreeType functionality (default: yes)"
- ac_help="$ac_help
- --with-nls support NLS functionality (default: no)"
- ac_help="$ac_help
- --with-readline support Readline functionality (default: no)"
- ac_help="$ac_help
- --with-opendwg support openDWG functionality (default: no)"
- ac_help="$ac_help
- --with-regex support regex functionality (default: yes)"
- ac_help="$ac_help
- --with-pthread support POSIX threads functionality (default: no)"
- ac_help="$ac_help
- --with-gdal[=path/gdal-config] enable GDAL/OGR support (gdal-config with path, \
- e.g. '--with-gdal=/usr/local/bin/gdal-config')"
- ac_help="$ac_help
- --with-python[=path/python-config] enable support for Python SWIG bindings and wxGUI Python extensions \
- (python-config with path, e.g. '--with-python=/usr/bin/python2.5-config', \
- default: no)"
- ac_help="$ac_help
- --with-wxwidgets[=path/wx-config] enable wxWidgets support (wx-config with path, \
- e.g. '--with-wxwidgets=/usr/local/bin/wx-config', default: no)"
- ac_help="$ac_help
- --with-geos[=path/geos-config] enable GEOS support (geos-config with path, \
- e.g. '--with-geos=/usr/local/bin/geos-config', default: no)"
- ac_help="$ac_help
- --with-includes=DIRS site include files are in DIRS"
- ac_help="$ac_help
- --with-libs=DIRS site library files are in DIRS"
- ac_help="$ac_help
- --with-zlib-includes=DIRS
- zlib include files are in DIRS"
- ac_help="$ac_help
- --with-zlib-libs=DIRS zlib library files are in DIRS"
- ac_help="$ac_help
- --with-readline-includes=DIRS
- Readline include files are in DIRS"
- ac_help="$ac_help
- --with-readline-libs=DIRS
- Readline library files are in DIRS"
- ac_help="$ac_help
- --with-jpeg-includes=DIRS
- JPEG include files are in DIRS"
- ac_help="$ac_help
- --with-jpeg-libs=DIRS JPEG library files are in DIRS"
- ac_help="$ac_help
- --with-tiff-includes=DIRS
- TIFF include files are in DIRS"
- ac_help="$ac_help
- --with-tiff-libs=DIRS TIFF library files are in DIRS"
- ac_help="$ac_help
- --with-png-includes=DIRS
- PNG include files are in DIRS"
- ac_help="$ac_help
- --with-png-libs=DIRS PNG library files are in DIRS"
- ac_help="$ac_help
- --with-tcltk-includes=DIRS
- Tcl/Tk include files are in DIRS"
- ac_help="$ac_help
- --with-tcltk-libs=DIRS Tcl/Tk library files are in DIRS"
- ac_help="$ac_help
- --with-postgres-includes=DIRS
- PostgreSQL include files are in DIRS"
- ac_help="$ac_help
- --with-postgres-libs=DIRS
- PostgreSQL library files are in DIRS"
- ac_help="$ac_help
- --with-mysql-includes=DIRS
- MySQL include files are in DIRS"
- ac_help="$ac_help
- --with-mysql-libs=DIRS MySQL library files are in DIRS"
- ac_help="$ac_help
- --with-sqlite-includes=DIRS
- SQLite include files are in DIRS"
- ac_help="$ac_help
- --with-sqlite-libs=DIRS SQLite library files are in DIRS"
- ac_help="$ac_help
- --with-ffmpeg-includes=DIRS
- FFMPEG include files are in DIRS"
- ac_help="$ac_help
- --with-ffmpeg-libs=DIRS FFMPEG library files are in DIRS"
- ac_help="$ac_help
- --with-opengl-includes=DIRS
- OpenGL include files are in DIRS"
- ac_help="$ac_help
- --with-opengl-libs=DIRS OpenGL library files are in DIRS"
- ac_help="$ac_help
- --with-opengl-framework=DIR
- OpenGL framework is in DIR"
- ac_help="$ac_help
- --with-odbc-includes=DIRS
- ODBC include files are in DIRS"
- ac_help="$ac_help
- --with-odbc-libs=DIRS ODBC library files are in DIRS"
- ac_help="$ac_help
- --with-fftw-includes=DIRS
- FFTW include files are in DIRS"
- ac_help="$ac_help
- --with-fftw-libs=DIRS FFTW library files are in DIRS"
- ac_help="$ac_help
- --with-blas-includes=DIRS
- BLAS include files are in DIRS"
- ac_help="$ac_help
- --with-blas-libs=DIRS BLAS library files are in DIRS"
- ac_help="$ac_help
- --with-lapack-includes=DIRS
- LAPACK include files are in DIRS"
- ac_help="$ac_help
- --with-lapack-libs=DIRS LAPACK library files are in DIRS"
- ac_help="$ac_help
- --with-cairo-includes=DIRS
- cairo include files are in DIRS"
- ac_help="$ac_help
- --with-cairo-libs=DIRS cairo library files are in DIRS"
- ac_help="$ac_help
- --with-cairo-ldflags=FLAGS
- cairo needs FLAGS when linking"
- ac_help="$ac_help
- --with-freetype-includes=DIRS
- FreeType include files are in DIRS"
- ac_help="$ac_help
- --with-freetype-libs=DIRS
- FreeType library files are in DIRS"
- ac_help="$ac_help
- --with-proj-includes=DIRS
- External PROJ.4 include files are in DIRS"
- ac_help="$ac_help
- --with-proj-libs=DIRS External PROJ.4 library files are in DIRS"
- ac_help="$ac_help
- --with-proj-share=DIR External PROJ.4 data files are in DIR"
- ac_help="$ac_help
- --with-opendwg-includes=DIRS
- openDWG include files are in DIRS"
- ac_help="$ac_help
- --with-opendwg-libs=DIRS
- openDWG library files are in DIRS"
- ac_help="$ac_help
- --with-regex-includes=DIRS
- regex include files are in DIRS"
- ac_help="$ac_help
- --with-regex-libs=DIRS regex library files are in DIRS"
- ac_help="$ac_help
- --with-pthread-includes=DIRS
- POSIX threads include files are in DIRS"
- ac_help="$ac_help
- --with-pthread-libs=DIRS
- POSIX threads library files are in DIRS"
- ac_help="$ac_help
- --with-x use the X Window System"
- ac_help="$ac_help
- --enable-largefile enable support for large files (LFS)"
- # Initialize some variables set by options.
- # The variables have the same names as the options, with
- # dashes changed to underlines.
- build=NONE
- cache_file=./config.cache
- exec_prefix=NONE
- host=NONE
- no_create=
- nonopt=NONE
- no_recursion=
- prefix=NONE
- program_prefix=NONE
- program_suffix=NONE
- program_transform_name=s,x,x,
- silent=
- site=
- srcdir=
- target=NONE
- verbose=
- x_includes=NONE
- x_libraries=NONE
- bindir='${exec_prefix}/bin'
- sbindir='${exec_prefix}/sbin'
- libexecdir='${exec_prefix}/libexec'
- datadir='${prefix}/share'
- sysconfdir='${prefix}/etc'
- sharedstatedir='${prefix}/com'
- localstatedir='${prefix}/var'
- libdir='${exec_prefix}/lib'
- includedir='${prefix}/include'
- oldincludedir='/usr/include'
- infodir='${prefix}/info'
- mandir='${prefix}/man'
- # Initialize some other variables.
- subdirs=
- MFLAGS= MAKEFLAGS=
- SHELL=${CONFIG_SHELL-/bin/sh}
- # Maximum number of lines to put in a shell here document.
- ac_max_here_lines=12
- ac_prev=
- for ac_option
- do
- # If the previous option needs an argument, assign it.
- if test -n "$ac_prev"; then
- eval "$ac_prev=\$ac_option"
- ac_prev=
- continue
- fi
- case "$ac_option" in
- -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
- *) ac_optarg= ;;
- esac
- # Accept the important Cygnus configure options, so we can diagnose typos.
- case "$ac_option" in
- -bindir | --bindir | --bindi | --bind | --bin | --bi)
- ac_prev=bindir ;;
- -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
- bindir="$ac_optarg" ;;
- -build | --build | --buil | --bui | --bu)
- ac_prev=build ;;
- -build=* | --build=* | --buil=* | --bui=* | --bu=*)
- build="$ac_optarg" ;;
- -cache-file | --cache-file | --cache-fil | --cache-fi \
- | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
- ac_prev=cache_file ;;
- -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
- | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
- cache_file="$ac_optarg" ;;
- -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
- ac_prev=datadir ;;
- -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
- | --da=*)
- datadir="$ac_optarg" ;;
- -disable-* | --disable-*)
- ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
- # Reject names that are not valid shell variable names.
- if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
- { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
- fi
- ac_feature=`echo $ac_feature| sed 's/-/_/g'`
- eval "enable_${ac_feature}=no" ;;
- -enable-* | --enable-*)
- ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
- # Reject names that are not valid shell variable names.
- if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
- { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
- fi
- ac_feature=`echo $ac_feature| sed 's/-/_/g'`
- case "$ac_option" in
- *=*) ;;
- *) ac_optarg=yes ;;
- esac
- eval "enable_${ac_feature}='$ac_optarg'" ;;
- -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
- | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
- | --exec | --exe | --ex)
- ac_prev=exec_prefix ;;
- -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
- | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
- | --exec=* | --exe=* | --ex=*)
- exec_prefix="$ac_optarg" ;;
- -gas | --gas | --ga | --g)
- # Obsolete; use --with-gas.
- with_gas=yes ;;
- -help | --help | --hel | --he)
- # Omit some internal or obsolete options to make the list less imposing.
- # This message is too long to be a string in the A/UX 3.1 sh.
- cat << EOF
- Usage: configure [options] [host]
- Options: [defaults in brackets after descriptions]
- Configuration:
- --cache-file=FILE cache test results in FILE
- --help print this message
- --no-create do not create output files
- --quiet, --silent do not print \`checking...' messages
- --version print the version of autoconf that created configure
- Directory and file names:
- --prefix=PREFIX install architecture-independent files in PREFIX
- [$ac_default_prefix]
- --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
- [same as prefix]
- --bindir=DIR user executables in DIR [EPREFIX/bin]
- --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
- --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
- --datadir=DIR read-only architecture-independent data in DIR
- [PREFIX/share]
- --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
- --sharedstatedir=DIR modifiable architecture-independent data in DIR
- [PREFIX/com]
- --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
- --libdir=DIR object code libraries in DIR [EPREFIX/lib]
- --includedir=DIR C header files in DIR [PREFIX/include]
- --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
- --infodir=DIR info documentation in DIR [PREFIX/info]
- --mandir=DIR man documentation in DIR [PREFIX/man]
- --srcdir=DIR find the sources in DIR [configure dir or ..]
- --program-prefix=PREFIX prepend PREFIX to installed program names
- --program-suffix=SUFFIX append SUFFIX to installed program names
- --program-transform-name=PROGRAM
- run sed PROGRAM on installed program names
- EOF
- cat << EOF
- Host type:
- --build=BUILD configure for building on BUILD [BUILD=HOST]
- --host=HOST configure for HOST [guessed]
- --target=TARGET configure for TARGET [TARGET=HOST]
- Features and packages:
- --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
- --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
- --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
- --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
- --x-includes=DIR X include files are in DIR
- --x-libraries=DIR X library files are in DIR
- EOF
- if test -n "$ac_help"; then
- echo "--enable and --with options recognized:$ac_help"
- fi
- exit 0 ;;
- -host | --host | --hos | --ho)
- ac_prev=host ;;
- -host=* | --host=* | --hos=* | --ho=*)
- host="$ac_optarg" ;;
- -includedir | --includedir | --includedi | --included | --include \
- | --includ | --inclu | --incl | --inc)
- ac_prev=includedir ;;
- -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
- | --includ=* | --inclu=* | --incl=* | --inc=*)
- includedir="$ac_optarg" ;;
- -infodir | --infodir | --infodi | --infod | --info | --inf)
- ac_prev=infodir ;;
- -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
- infodir="$ac_optarg" ;;
- -libdir | --libdir | --libdi | --libd)
- ac_prev=libdir ;;
- -libdir=* | --libdir=* | --libdi=* | --libd=*)
- libdir="$ac_optarg" ;;
- -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
- | --libexe | --libex | --libe)
- ac_prev=libexecdir ;;
- -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
- | --libexe=* | --libex=* | --libe=*)
- libexecdir="$ac_optarg" ;;
- -localstatedir | --localstatedir | --localstatedi | --localstated \
- | --localstate | --localstat | --localsta | --localst \
- | --locals | --local | --loca | --loc | --lo)
- ac_prev=localstatedir ;;
- -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
- | --localstate=* | --localstat=* | --localsta=* | --localst=* \
- | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
- localstatedir="$ac_optarg" ;;
- -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
- ac_prev=mandir ;;
- -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
- mandir="$ac_optarg" ;;
- -nfp | --nfp | --nf)
- # Obsolete; use --without-fp.
- with_fp=no ;;
- -no-create | --no-create | --no-creat | --no-crea | --no-cre \
- | --no-cr | --no-c)
- no_create=yes ;;
- -no-recursion | --no-recursion | --no-recursio | --no-recursi \
- | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
- no_recursion=yes ;;
- -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
- | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
- | --oldin | --oldi | --old | --ol | --o)
- ac_prev=oldincludedir ;;
- -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
- | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
- | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
- oldincludedir="$ac_optarg" ;;
- -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
- ac_prev=prefix ;;
- -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
- prefix="$ac_optarg" ;;
- -program-prefix | --program-prefix | --program-prefi | --program-pref \
- | --program-pre | --program-pr | --program-p)
- ac_prev=program_prefix ;;
- -program-prefix=* | --program-prefix=* | --program-prefi=* \
- | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
- program_prefix="$ac_optarg" ;;
- -program-suffix | --program-suffix | --program-suffi | --program-suff \
- | --program-suf | --program-su | --program-s)
- ac_prev=program_suffix ;;
- -program-suffix=* | --program-suffix=* | --program-suffi=* \
- | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
- program_suffix="$ac_optarg" ;;
- -program-transform-name | --program-transform-name \
- | --program-transform-nam | --program-transform-na \
- | --program-transform-n | --program-transform- \
- | --program-transform | --program-transfor \
- | --program-transfo | --program-transf \
- | --program-trans | --program-tran \
- | --progr-tra | --program-tr | --program-t)
- ac_prev=program_transform_name ;;
- -program-transform-name=* | --program-transform-name=* \
- | --program-transform-nam=* | --program-transform-na=* \
- | --program-transform-n=* | --program-transform-=* \
- | --program-transform=* | --program-transfor=* \
- | --program-transfo=* | --program-transf=* \
- | --program-trans=* | --program-tran=* \
- | --progr-tra=* | --program-tr=* | --program-t=*)
- program_transform_name="$ac_optarg" ;;
- -q | -quiet | --quiet | --quie | --qui | --qu | --q \
- | -silent | --silent | --silen | --sile | --sil)
- silent=yes ;;
- -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
- ac_prev=sbindir ;;
- -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
- | --sbi=* | --sb=*)
- sbindir="$ac_optarg" ;;
- -sharedstatedir | --sharedstatedir | --sharedstatedi \
- | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
- | --sharedst | --shareds | --shared | --share | --shar \
- | --sha | --sh)
- ac_prev=sharedstatedir ;;
- -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
- | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
- | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
- | --sha=* | --sh=*)
- sharedstatedir="$ac_optarg" ;;
- -site | --site | --sit)
- ac_prev=site ;;
- -site=* | --site=* | --sit=*)
- site="$ac_optarg" ;;
- -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
- ac_prev=srcdir ;;
- -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
- srcdir="$ac_optarg" ;;
- -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
- | --syscon | --sysco | --sysc | --sys | --sy)
- ac_prev=sysconfdir ;;
- -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
- | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
- sysconfdir="$ac_optarg" ;;
- -target | --target | --targe | --targ | --tar | --ta | --t)
- ac_prev=target ;;
- -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
- target="$ac_optarg" ;;
- -v | -verbose | --verbose | --verbos | --verbo | --verb)
- verbose=yes ;;
- -version | --version | --versio | --versi | --vers)
- echo "configure generated by autoconf version 2.13"
- exit 0 ;;
- -with-* | --with-*)
- ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
- # Reject names that are not valid shell variable names.
- if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
- { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
- fi
- ac_package=`echo $ac_package| sed 's/-/_/g'`
- case "$ac_option" in
- *=*) ;;
- *) ac_optarg=yes ;;
- esac
- eval "with_${ac_package}='$ac_optarg'" ;;
- -without-* | --without-*)
- ac_package=`echo $ac_option|sed -e 's/-*without-//'`
- # Reject names that are not valid shell variable names.
- if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
- { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
- fi
- ac_package=`echo $ac_package| sed 's/-/_/g'`
- eval "with_${ac_package}=no" ;;
- --x)
- # Obsolete; use --with-x.
- with_x=yes ;;
- -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
- | --x-incl | --x-inc | --x-in | --x-i)
- ac_prev=x_includes ;;
- -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
- | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
- x_includes="$ac_optarg" ;;
- -x-libraries | --x-libraries | --x-librarie | --x-librari \
- | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
- ac_prev=x_libraries ;;
- -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
- | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
- x_libraries="$ac_optarg" ;;
- -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
- ;;
- *)
- if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
- echo "configure: warning: $ac_option: invalid host type" 1>&2
- fi
- if test "x$nonopt" != xNONE; then
- { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
- fi
- nonopt="$ac_option"
- ;;
- esac
- done
- if test -n "$ac_prev"; then
- { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
- fi
- trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
- # File descriptor usage:
- # 0 standard input
- # 1 file creation
- # 2 errors and warnings
- # 3 some systems may open it to /dev/tty
- # 4 used on the Kubota Titan
- # 6 checking for... messages and results
- # 5 compiler messages saved in config.log
- if test "$silent" = yes; then
- exec 6>/dev/null
- else
- exec 6>&1
- fi
- exec 5>./config.log
- echo "\
- This file contains any messages produced by compilers while
- running configure, to aid debugging if configure makes a mistake.
- " 1>&5
- # Strip out --no-create and --no-recursion so they do not pile up.
- # Also quote any args containing shell metacharacters.
- ac_configure_args=
- for ac_arg
- do
- case "$ac_arg" in
- -no-create | --no-create | --no-creat | --no-crea | --no-cre \
- | --no-cr | --no-c) ;;
- -no-recursion | --no-recursion | --no-recursio | --no-recursi \
- | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
- *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
- ac_configure_args="$ac_configure_args '$ac_arg'" ;;
- *) ac_configure_args="$ac_configure_args $ac_arg" ;;
- esac
- done
- # NLS nuisances.
- # Only set these to C if already set. These must not be set unconditionally
- # because not all systems understand e.g. LANG=C (notably SCO).
- # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
- # Non-C LC_CTYPE values break the ctype check.
- if test "${LANG+set}" = set; then LANG=C; export LANG; fi
- if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
- if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
- if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
- # confdefs.h avoids OS command line length limits that DEFS can exceed.
- rm -rf conftest* confdefs.h
- # AIX cpp loses on an empty file, so make sure it contains at least a newline.
- echo > confdefs.h
- # A filename unique to this package, relative to the directory that
- # configure is in, which we can look for to find out if srcdir is correct.
- ac_unique_file=configure.in
- # Find the source files, if location was not specified.
- if test -z "$srcdir"; then
- ac_srcdir_defaulted=yes
- # Try the directory containing this script, then its parent.
- ac_prog=$0
- ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
- test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
- srcdir=$ac_confdir
- if test ! -r $srcdir/$ac_unique_file; then
- srcdir=..
- fi
- else
- ac_srcdir_defaulted=no
- fi
- if test ! -r $srcdir/$ac_unique_file; then
- if test "$ac_srcdir_defaulted" = yes; then
- { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
- else
- { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
- fi
- fi
- srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
- # Prefer explicitly selected file to automatically selected ones.
- if test -z "$CONFIG_SITE"; then
- if test "x$prefix" != xNONE; then
- CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
- else
- CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
- fi
- fi
- for ac_site_file in $CONFIG_SITE; do
- if test -r "$ac_site_file"; then
- echo "loading site script $ac_site_file"
- . "$ac_site_file"
- fi
- done
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
- ac_exeext=
- ac_objext=o
- if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
- # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
- if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
- ac_n= ac_c='
- ' ac_t=' '
- else
- ac_n=-n ac_c= ac_t=
- fi
- else
- ac_n= ac_c='\c' ac_t=
- fi
- ac_aux_dir=
- for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
- if test -f $ac_dir/install-sh; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/install-sh -c"
- break
- elif test -f $ac_dir/install.sh; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/install.sh -c"
- break
- fi
- done
- if test -z "$ac_aux_dir"; then
- { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
- fi
- ac_config_guess=$ac_aux_dir/config.guess
- ac_config_sub=$ac_aux_dir/config.sub
- ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
- # Make sure we can run config.sub.
- if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
- else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
- fi
- echo $ac_n "checking host system type""... $ac_c" 1>&6
- echo "configure:739: checking host system type" >&5
- host_alias=$host
- case "$host_alias" in
- NONE)
- case $nonopt in
- NONE)
- if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
- else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
- fi ;;
- *) host_alias=$nonopt ;;
- esac ;;
- esac
- host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
- host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
- host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
- host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
- echo "$ac_t""$host" 1>&6
- # Extract the first word of "gcc", so it can be a program name with args.
- set dummy gcc; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:762: checking for $ac_word" >&5
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_CC="gcc"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- CC="$ac_cv_prog_CC"
- if test -n "$CC"; then
- echo "$ac_t""$CC" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test -z "$CC"; then
- # Extract the first word of "cc", so it can be a program name with args.
- set dummy cc; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:789: checking for $ac_word" >&5
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_prog_rejected=no
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
- ac_prog_rejected=yes
- continue
- fi
- ac_cv_prog_CC="cc"
- break
- fi
- done
- IFS="$ac_save_ifs"
- if test $ac_prog_rejected = yes; then
- # We found a bogon in the path, so make sure we never use it.
- set dummy $ac_cv_prog_CC
- shift
- if test $# -gt 0; then
- # We chose a different compiler from the bogus one.
- # However, it has the same basename, so the bogon will be chosen
- # first if we set CC to just the basename; use the full file name.
- shift
- set dummy "$ac_dir/$ac_word" "$@"
- shift
- ac_cv_prog_CC="$@"
- fi
- fi
- fi
- CC="$ac_cv_prog_CC"
- if test -n "$CC"; then
- echo "$ac_t""$CC" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test -z "$CC"; then
- case "`uname -s`" in
- *win32* | *WIN32*)
- # Extract the first word of "cl", so it can be a program name with args.
- set dummy cl; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:837: checking for $ac_word" >&5
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_CC="cl"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- CC="$ac_cv_prog_CC"
- if test -n "$CC"; then
- echo "$ac_t""$CC" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- ;;
- esac
- fi
- test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
- fi
- echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
- echo "configure:866: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
- cat > conftest.$ac_ext << EOF
- #line 877 "configure"
- #include "confdefs.h"
- main(){return(0);}
- EOF
- if { (eval echo configure:882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- ac_cv_prog_cc_works=yes
- # If we can't run a trivial program, we are probably using a cross compiler.
- if (./conftest; exit) 2>/dev/null; then
- ac_cv_prog_cc_cross=no
- else
- ac_cv_prog_cc_cross=yes
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- ac_cv_prog_cc_works=no
- fi
- rm -fr conftest*
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
- echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
- if test $ac_cv_prog_cc_works = no; then
- { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
- fi
- echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
- echo "configure:908: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
- echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
- cross_compiling=$ac_cv_prog_cc_cross
- echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
- echo "configure:913: checking whether we are using GNU C" >&5
- cat > conftest.c <<EOF
- #ifdef __GNUC__
- yes;
- #endif
- EOF
- if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
- ac_cv_prog_gcc=yes
- else
- ac_cv_prog_gcc=no
- fi
- echo "$ac_t""$ac_cv_prog_gcc" 1>&6
- if test $ac_cv_prog_gcc = yes; then
- GCC=yes
- else
- GCC=
- fi
- ac_test_CFLAGS="${CFLAGS+set}"
- ac_save_CFLAGS="$CFLAGS"
- CFLAGS=
- echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
- echo "configure:938: checking whether ${CC-cc} accepts -g" >&5
- echo 'void f(){}' > conftest.c
- if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
- ac_cv_prog_cc_g=yes
- else
- ac_cv_prog_cc_g=no
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
- if test "$ac_test_CFLAGS" = set; then
- CFLAGS="$ac_save_CFLAGS"
- elif test $ac_cv_prog_cc_g = yes; then
- if test "$GCC" = yes; then
- CFLAGS="-g -O2"
- else
- CFLAGS="-g"
- fi
- else
- if test "$GCC" = yes; then
- CFLAGS="-O2"
- else
- CFLAGS=
- fi
- fi
- echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
- echo "configure:967: checking for Cygwin environment" >&5
- cat > conftest.$ac_ext <<EOF
- #line 970 "configure"
- #include "confdefs.h"
- int main() {
- #ifndef __CYGWIN__
- #define __CYGWIN__ __CYGWIN32__
- #endif
- return __CYGWIN__;
- ; return 0; }
- EOF
- if { (eval echo configure:981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_cygwin=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_cygwin=no
- fi
- rm -f conftest*
- rm -f conftest*
- echo "$ac_t""$ac_cv_cygwin" 1>&6
- CYGWIN=
- test "$ac_cv_cygwin" = yes && CYGWIN=yes
- echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
- echo "configure:997: checking for mingw32 environment" >&5
- cat > conftest.$ac_ext <<EOF
- #line 1000 "configure"
- #include "confdefs.h"
- int main() {
- return __MINGW32__;
- ; return 0; }
- EOF
- if { (eval echo configure:1007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_mingw32=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_mingw32=no
- fi
- rm -f conftest*
- rm -f conftest*
- echo "$ac_t""$ac_cv_mingw32" 1>&6
- MINGW32=
- test "$ac_cv_mingw32" = yes && MINGW32=yes
- echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
- echo "configure:1025: checking for executable suffix" >&5
- if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
- ac_cv_exeext=.exe
- else
- ac_cv_exeext=no
- fi
- EXEEXT=""
- test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
- echo "$ac_t""${ac_cv_exeext}" 1>&6
- ac_exeext=$EXEEXT
- # Check for full floating-point support, including Infinity and NaN
- IEEEFLAG=
- echo $ac_n "checking for full floating-point support""... $ac_c" 1>&6
- echo "configure:1044: checking for full floating-point support" >&5
- if test "$cross_compiling" = yes; then
- echo "$ac_t""unknown (cross-compiling)" 1>&6
-
- echo $ac_n "checking whether "cc -mieee" works""... $ac_c" 1>&6
- echo "configure:1049: checking whether "cc -mieee" works" >&5
- ac_save_cflags=${CFLAGS}
- CFLAGS="$CFLAGS -mieee"
- cat > conftest.$ac_ext <<EOF
- #line 1053 "configure"
- #include "confdefs.h"
- int main() {
- ; return 0; }
- EOF
- if { (eval echo configure:1060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- echo "$ac_t""yes" 1>&6
- IEEEFLAG="-mieee"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
- fi
- rm -f conftest*
- CFLAGS=${ac_save_cflags}
-
- else
- cat > conftest.$ac_ext <<EOF
- #line 1076 "configure"
- #include "confdefs.h"
- #include <float.h>
- int main(void) {
- double one = 1.0;
- double zero = 0.0;
- if (one/zero > DBL_MAX) /* infinity */
- if (zero/zero != zero/zero) /* NaN */
- return 0;
- return 1;
- }
- EOF
- if { (eval echo configure:1090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- echo "$ac_t""yes" 1>&6
-
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- echo "$ac_t""no" 1>&6
- ac_save_cflags=${CFLAGS}
- CFLAGS=-mieee
-
- echo $ac_n "checking for full floating-point support with -mieee""... $ac_c" 1>&6
- echo "configure:1103: checking for full floating-point support with -mieee" >&5
- if test "$cross_compiling" = yes; then
- echo "$ac_t""unknown (cross-compiling)" 1>&6
- { echo "configure: error: *** INTERNAL CONFIGURE ERROR" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 1110 "configure"
- #include "confdefs.h"
- #include <float.h>
- int main(void) {
- double one = 1.0;
- double zero = 0.0;
- if (one/zero > DBL_MAX) /* infinity */
- if (zero/zero != zero/zero) /* NaN */
- return 0;
- return 1;
- }
- EOF
- if { (eval echo configure:1124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- echo "$ac_t""yes" 1>&6
- IEEEFLAG="-mieee"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- echo "$ac_t""no" 1>&6
- echo "configure: warning: *** Incomplete floating-point support." 1>&2
- fi
- rm -fr conftest*
- fi
- CFLAGS=${ac_save_cflags}
- fi
- rm -fr conftest*
- fi
- CFLAGS="$CFLAGS $IEEEFLAG"
- # Set BINDIR
- if test -n "${bindir}"; then
- BINDIR="${bindir}"
- else
- BINDIR=/usr/local/bin
- fi
- # Set SRCDIR and DSTDIR
- # Extract the first word of "pwd", so it can be a program name with args.
- set dummy pwd; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:1161: checking for $ac_word" >&5
- case "$pwd" in
- /*)
- ac_cv_path_pwd="$pwd" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_pwd="$pwd" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_pwd="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_pwd" && ac_cv_path_pwd="pwd"
- ;;
- esac
- pwd="$ac_cv_path_pwd"
- if test -n "$pwd"; then
- echo "$ac_t""$pwd" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$MINGW32" = yes ; then
- winpwd="$pwd -W"
- else
- winpwd="$pwd"
- fi
- echo $ac_n "checking for source directory""... $ac_c" 1>&6
- echo "configure:1199: checking for source directory" >&5
- if test -z "$srcdir" ; then
- SRCDIR=`$pwd`
- else
- SRCDIR=`(cd "$srcdir" ; $pwd)`
- fi
- echo "$ac_t"""$SRCDIR"" 1>&6
- echo $ac_n "checking for build directory""... $ac_c" 1>&6
- echo "configure:1210: checking for build directory" >&5
- DSTDIR=`$pwd`
- WINDSTDIR=`$winpwd`
- echo "$ac_t"""$DSTDIR"" 1>&6
- # Set ARCH
- ARCH=
- if test -z "${host}"; then
- ARCH="unknown"
- else
- ARCH="${host}"
- fi
- # Use absolute path for aux directory so that install-sh works
- ac_aux_dir=
- for ac_dir in $SRCDIR $srcdir/$SRCDIR; do
- if test -f $ac_dir/install-sh; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/install-sh -c"
- break
- elif test -f $ac_dir/install.sh; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/install.sh -c"
- break
- fi
- done
- if test -z "$ac_aux_dir"; then
- { echo "configure: error: can not find install-sh or install.sh in $SRCDIR $srcdir/$SRCDIR" 1>&2; exit 1; }
- fi
- ac_config_guess=$ac_aux_dir/config.guess
- ac_config_sub=$ac_aux_dir/config.sub
- ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
- # Set GISBASE and GRASS_BIN
- GISBASE=${WINDSTDIR}/dist.${ARCH}
- GRASS_BIN=${DSTDIR}/bin.${ARCH}
- # Set GRASS_VERSION_*
- GRASS_VERSION_FILE=include/VERSION
- GRASS_VERSION_MAJOR=`sed -n 1p ${GRASS_VERSION_FILE}`
- GRASS_VERSION_MINOR=`sed -n 2p ${GRASS_VERSION_FILE}`
- GRASS_VERSION_RELEASE=`sed -n 3p ${GRASS_VERSION_FILE}`
- GRASS_VERSION_DATE=`sed -n 4p ${GRASS_VERSION_FILE}`
- GRASS_VERSION_NUMBER=`echo ${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.${GRASS_VERSION_RELEASE}`
- NAME_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/\..*//'`
- LIB_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/^\([0-9.]*\).*$/\1/'`
- # Check for MacOSX App
- # Check whether --enable-macosx-app or --disable-macosx-app was given.
- if test "${enable_macosx_app+set}" = set; then
- enableval="$enable_macosx_app"
- :
- else
- enable_macosx_app=no
- fi
- echo $ac_n "checking for MacOSX App""... $ac_c" 1>&6
- echo "configure:1295: checking for MacOSX App" >&5
- case "$enable_macosx_app" in
- yes) MACOSX_APP=1 ;;
- no) MACOSX_APP= ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- echo "$ac_t"""$enable_macosx_app"" 1>&6
- # Set INST_DIR
- if test -n "$MACOSX_APP" ; then
- INSTDIR='${prefix}'"/GRASS-${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.app/Contents/MacOS"
- else
- INSTDIR='${prefix}'"/grass-${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.${GRASS_VERSION_RELEASE}"
- fi
- # Get flags for building shared libraries
- echo $ac_n "checking how to build libraries""... $ac_c" 1>&6
- echo "configure:1318: checking how to build libraries" >&5
- # Check whether --enable-shared or --disable-shared was given.
- if test "${enable_shared+set}" = set; then
- enableval="$enable_shared"
- shared_ok=$enableval
- else
- shared_ok=yes
- fi
- if test "${enable_shared+set}" = set; then
- enableval="$enable_shared"
- shared_ok=$enableval
- else
- shared_ok=yes
- fi
- if test "$shared_ok" = "yes" ; then
- echo "$ac_t""shared" 1>&6
- SHARED_BUILD=1
- GRASS_LIB_PREFIX='$(SHLIB_PREFIX)'
- GRASS_LIB_SUFFIX='$(SHLIB_SUFFIX)'
- GRASS_LIBRARY_TYPE='shlib'
- else
- echo "$ac_t""static" 1>&6
- SHARED_BUILD=0
- cat >> confdefs.h <<\EOF
- #define STATIC_BUILD 1
- EOF
- GRASS_LIB_PREFIX='$(STLIB_PREFIX)'
- GRASS_LIB_SUFFIX='$(STLIB_SUFFIX)'
- GRASS_LIBRARY_TYPE='stlib'
- fi
-
-
-
- ac_save_ldflags="$LDFLAGS"
- # Extract the first word of "ranlib", so it can be a program name with args.
- set dummy ranlib; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:1361: checking for $ac_word" >&5
- if test -n "$RANLIB"; then
- ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_RANLIB="ranlib"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
- fi
- RANLIB="$ac_cv_prog_RANLIB"
- if test -n "$RANLIB"; then
- echo "$ac_t""$RANLIB" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
- echo "configure:1386: checking how to run the C preprocessor" >&5
- # On Suns, sometimes $CPP names a directory.
- if test -n "$CPP" && test -d "$CPP"; then
- CPP=
- fi
- if test -z "$CPP"; then
- # This must be in double quotes, not single quotes, because CPP may get
- # substituted into the Makefile and "${CC-cc}" will confuse make.
- CPP="${CC-cc} -E"
- # On the NeXT, cc -E runs the code through the compiler's parser,
- # not just through cpp.
- cat > conftest.$ac_ext <<EOF
- #line 1399 "configure"
- #include "confdefs.h"
- #include <assert.h>
- Syntax Error
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:1405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- :
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- CPP="${CC-cc} -E -traditional-cpp"
- cat > conftest.$ac_ext <<EOF
- #line 1416 "configure"
- #include "confdefs.h"
- #include <assert.h>
- Syntax Error
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:1422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- :
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- CPP="${CC-cc} -nologo -E"
- cat > conftest.$ac_ext <<EOF
- #line 1433 "configure"
- #include "confdefs.h"
- #include <assert.h>
- Syntax Error
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:1439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- :
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- CPP=/lib/cpp
- fi
- rm -f conftest*
- fi
- rm -f conftest*
- fi
- rm -f conftest*
- ac_cv_prog_CPP="$CPP"
- CPP="$ac_cv_prog_CPP"
- else
- ac_cv_prog_CPP="$CPP"
- fi
- echo "$ac_t""$CPP" 1>&6
- # Step 0.a: Enable 64 bit support?
- echo $ac_n "checking if 64bit support is requested""... $ac_c" 1>&6
- echo "configure:1467: checking if 64bit support is requested" >&5
- # Check whether --enable-64bit or --disable-64bit was given.
- if test "${enable_64bit+set}" = set; then
- enableval="$enable_64bit"
- :
- else
- enableval="no"
- fi
- if test "$enableval" = "yes"; then
- do64bit=yes
- else
- do64bit=no
- fi
- echo "$ac_t""$do64bit" 1>&6
- # Step 0.b: Enable Solaris 64 bit VIS support?
- echo $ac_n "checking if 64bit Sparc VIS support is requested""... $ac_c" 1>&6
- echo "configure:1487: checking if 64bit Sparc VIS support is requested" >&5
- # Check whether --enable-64bit-vis or --disable-64bit-vis was given.
- if test "${enable_64bit_vis+set}" = set; then
- enableval="$enable_64bit_vis"
- :
- else
- enableval="no"
- fi
- if test "$enableval" = "yes"; then
- # Force 64bit on with VIS
- do64bit=yes
- do64bitVIS=yes
- else
- do64bitVIS=no
- fi
- echo "$ac_t""$do64bitVIS" 1>&6
- # Step 1: set the variable "system" to hold the name and version number
- # for the system. This can usually be done via the "uname" command, but
- # there are a few systems, like Next, where this doesn't work.
- echo $ac_n "checking system version (for dynamic loading)""... $ac_c" 1>&6
- echo "configure:1511: checking system version (for dynamic loading)" >&5
- if test -f /usr/lib/NextStep/software_version; then
- system=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version`
- else
- system=`uname -s`-`uname -r`
- if test "$?" -ne 0 ; then
- echo "$ac_t""unknown (can't find uname command)" 1>&6
- system=unknown
- else
- # Special check for weird MP-RAS system (uname returns weird
- # results, and the version is kept in special file).
-
- if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
- system=MP-RAS-`awk '{print }' /etc/.relid`
- fi
- if test "`uname -s`" = "AIX" ; then
- system=AIX-`uname -v`.`uname -r`
- fi
- echo "$ac_t""$system" 1>&6
- fi
- fi
- # Step 2: check for existence of -ldl library. This is needed because
- # Linux can use either -ldl or -ldld for dynamic loading.
- echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
- echo "configure:1537: checking for dlopen in -ldl" >&5
- ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ldl $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 1543 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dlopen();
- int main() {
- dlopen()
- ; return 0; }
- EOF
- if { (eval echo configure:1554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- have_dl=yes
- else
- echo "$ac_t""no" 1>&6
- have_dl=no
- fi
- # Require ranlib early so we can override it in special cases below.
-
- # Step 3: set configuration options based on system name and version.
- do64bit_ok=no
- EXTRA_CFLAGS=""
- GRASS_EXPORT_FILE_SUFFIX=""
- UNSHARED_LIB_SUFFIX=""
- GRASS_TRIM_DOTS='`echo ${LIB_VER} | tr -d .`'
- ECHO_VERSION='`echo ${LIB_VER}`'
- GRASS_LIB_VERSIONS_OK=ok
- CFLAGS_DEBUG=-g
- CFLAGS_OPTIMIZE=-O
- if test "$GCC" = "yes" ; then
- CFLAGS_WARNING="-Wall -Wconversion -Wno-implicit-int"
- else
- CFLAGS_WARNING=""
- fi
- GRASS_NEEDS_EXP_FILE=0
- GRASS_BUILD_EXP_FILE=""
- GRASS_EXP_FILE=""
- # Extract the first word of "ar", so it can be a program name with args.
- set dummy ar; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:1601: checking for $ac_word" >&5
- if test -n "$AR"; then
- ac_cv_prog_AR="$AR" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_AR="ar"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- AR="$ac_cv_prog_AR"
- if test -n "$AR"; then
- echo "$ac_t""$AR" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "${AR}" = "" ; then
- { echo "configure: error: Required archive tool 'ar' not found on PATH." 1>&2; exit 1; }
- fi
- STLIB_LD='${AR} cr'
- LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
- PLAT_OBJS=""
- case $system in
- AIX-5.*)
- if test "${GRASS_THREADS}" = "1" -a "$GCC" != "yes" ; then
- # AIX requires the _r compiler when gcc isn't being used
- if test "${CC}" != "cc_r" ; then
- CC=${CC}_r
- fi
- echo "$ac_t""Using $CC for compiling with threads" 1>&6
- fi
- LIBS="$LIBS -lc"
- # AIX-5 uses ELF style dynamic libraries
- SHLIB_CFLAGS=""
- # Note: need the LIBS below, otherwise Tk won't find Tcl's
- # symbols when dynamically loaded into tclsh.
- SHLIB_LD_LIBS='${LIBS}'
- SHLIB_SUFFIX=".so"
- LDFLAGS=""
- LD_LIBRARY_PATH_VAR="LIBPATH"
- # Check to enable 64-bit flags for compiler/linker
- if test "$do64bit" = "yes" ; then
- if test "$GCC" = "yes" ; then
- echo "configure: warning: "64bit mode not supported with GCC on $system"" 1>&2
- else
- do64bit_ok=yes
- EXTRA_CFLAGS="-q64"
- LDFLAGS="-q64"
- RANLIB="${RANLIB} -X64"
- AR="${AR} -X64"
- SHLIB_LD_FLAGS="-b64"
- fi
- fi
- if test "`uname -m`" = "ia64" ; then
- # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
- SHLIB_LD="/usr/ccs/bin/ld -G -z text"
- # AIX-5 has dl* in libc.so
- if test "$GCC" = "yes" ; then
- CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
- else
- CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}'
- fi
- LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
- else
- SHLIB_LD="${SRCDIR}/ldAix /bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry ${SHLIB_LD_FLAGS}"
- CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
- LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
- GRASS_NEEDS_EXP_FILE=1
- GRASS_EXPORT_FILE_SUFFIX='${LIB_VER}.exp'
- fi
- ;;
- AIX-*)
- if test "${GRASS_THREADS}" = "1" -a "$GCC" != "yes" ; then
- # AIX requires the _r compiler when gcc isn't being used
- if test "${CC}" != "cc_r" ; then
- CC=${CC}_r
- fi
- echo "$ac_t""Using $CC for compiling with threads" 1>&6
- fi
- LIBS="$LIBS -lc"
- SHLIB_CFLAGS=""
- SHLIB_LD_LIBS='${LIBS}'
- SHLIB_SUFFIX=".so"
- LDFLAGS=""
- CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
- LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
- LD_LIBRARY_PATH_VAR="LIBPATH"
- GRASS_NEEDS_EXP_FILE=1
- GRASS_EXPORT_FILE_SUFFIX='${LIB_VER}.exp'
- # Check to enable 64-bit flags for compiler/linker
- if test "$do64bit" = "yes" ; then
- if test "$GCC" = "yes" ; then
- echo "configure: warning: "64bit mode not supported with GCC on $system"" 1>&2
- else
- do64bit_ok=yes
- EXTRA_CFLAGS="-q64"
- LDFLAGS="-q64"
- RANLIB="${RANLIB} -X64"
- AR="${AR} -X64"
- SHLIB_LD_FLAGS="-b64"
- fi
- fi
- SHLIB_LD="${SRCDIR}/ldAix /bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry ${SHLIB_LD_FLAGS}"
- # On AIX <=v4 systems, libbsd.a has to be linked in to support
- # non-blocking file IO. This library has to be linked in after
- # the MATH_LIBS or it breaks the pow() function. The way to
- # insure proper sequencing, is to add it to the tail of MATH_LIBS.
- # This library also supplies gettimeofday.
- #
- # AIX does not have a timezone field in struct tm. When the AIX
- # bsd library is used, the timezone global and the gettimeofday
- # methods are to be avoided for timezone deduction instead, we
- # deduce the timezone by comparing the localtime result on a
- # known GMT value.
- echo $ac_n "checking for gettimeofday in -lbsd""... $ac_c" 1>&6
- echo "configure:1730: checking for gettimeofday in -lbsd" >&5
- ac_lib_var=`echo bsd'_'gettimeofday | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lbsd $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 1736 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gettimeofday();
- int main() {
- gettimeofday()
- ; return 0; }
- EOF
- if { (eval echo configure:1747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- libbsd=yes
- else
- echo "$ac_t""no" 1>&6
- libbsd=no
- fi
- if test $libbsd = yes; then
- MATH_LIBS="$MATH_LIBS -lbsd"
- cat >> confdefs.h <<\EOF
- #define USE_DELTA_FOR_TZ 1
- EOF
- fi
- ;;
- BeOS*)
- SHLIB_CFLAGS="-fPIC"
- SHLIB_LD="${CC} -nostart"
- SHLIB_LD_LIBS='${LIBS}'
- SHLIB_SUFFIX=".so"
- LDFLAGS=""
- #-----------------------------------------------------------
- # Check for inet_ntoa in -lbind, for BeOS (which also needs
- # -lsocket, even if the network functions are in -lnet which
- # is always linked to, for compatibility.
- #-----------------------------------------------------------
- echo $ac_n "checking for inet_ntoa in -lbind""... $ac_c" 1>&6
- echo "configure:1788: checking for inet_ntoa in -lbind" >&5
- ac_lib_var=`echo bind'_'inet_ntoa | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lbind $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 1794 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char inet_ntoa();
- int main() {
- inet_ntoa()
- ; return 0; }
- EOF
- if { (eval echo configure:1805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- LIBS="$LIBS -lbind -lsocket"
- else
- echo "$ac_t""no" 1>&6
- fi
- ;;
- BSD/OS-2.1*|BSD/OS-3*)
- SHLIB_CFLAGS=""
- SHLIB_LD="shlicc -r"
- SHLIB_LD_LIBS='${LIBS}'
- SHLIB_SUFFIX=".so"
- LDFLAGS=""
- CC_SEARCH_FLAGS=""
- LD_SEARCH_FLAGS=""
- ;;
- BSD/OS-4.*)
- SHLIB_CFLAGS="-export-dynamic -fPIC"
- SHLIB_LD="cc -shared"
- SHLIB_LD_LIBS='${LIBS}'
- SHLIB_SUFFIX=".so"
- LDFLAGS="-export-dynamic"
- CC_SEARCH_FLAGS=""
- LD_SEARCH_FLAGS=""
- ;;
- dgux*)
- SHLIB_CFLAGS="-K PIC"
- SHLIB_LD="cc -G"
- SHLIB_LD_LIBS=""
- SHLIB_SUFFIX=".so"
- LDFLAGS=""
- CC_SEARCH_FLAGS=""
- LD_SEARCH_FLAGS=""
- ;;
- HP-UX-*.11.*)
- # Use updated header definitions where possible
- cat >> confdefs.h <<\EOF
- #define _XOPEN_SOURCE 1
- EOF
- # Use the XOPEN network library
- cat >> confdefs.h <<\EOF
- #define _XOPEN_SOURCE_EXTENDED 1
- EOF
- # Use the XOPEN network library
- LIBS="$LIBS -lxnet" # Use the XOPEN network library
- SHLIB_SUFFIX=".sl"
- echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
- echo "configure:1866: checking for shl_load in -ldld" >&5
- ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ldld $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 1872 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char shl_load();
- int main() {
- shl_load()
- ; return 0; }
- EOF
- if { (eval echo configure:1883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- shared_ok=yes
- else
- echo "$ac_t""no" 1>&6
- shared_ok=no
- fi
- if test "$shared_ok" = yes; then
- SHLIB_CFLAGS="+z"
- SHLIB_LD="ld -b"
- SHLIB_LD_LIBS='${LIBS}'
- LDFLAGS="-Wl,-E"
- CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
- LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
- LD_LIBRARY_PATH_VAR="SHLIB_PATH"
- fi
- # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
- #EXTRA_CFLAGS="+DAportable"
- # Check to enable 64-bit flags for compiler/linker
- if test "$do64bit" = "yes" ; then
- if test "$GCC" = "yes" ; then
- hpux_arch=`gcc -dumpmachine`
- case $hpux_arch in
- hppa64*)
- # 64-bit gcc in use. Fix flags for GNU ld.
- do64bit_ok=yes
- SHLIB_LD="gcc -shared"
- SHLIB_LD_LIBS=""
- LD_SEARCH_FLAGS=''
- CC_SEARCH_FLAGS=''
- ;;
- *)
- echo "configure: warning: "64bit mode not supported with GCC on $system"" 1>&2
- ;;
- esac
- else
- do64bit_ok=yes
- if test "`uname -m`" = "ia64" ; then
- EXTRA_CFLAGS="+DD64"
- LDFLAGS="+DD64 $LDFLAGS"
- else
- EXTRA_CFLAGS="+DA2.0W"
- LDFLAGS="+DA2.0W $LDFLAGS"
- fi
- fi
- fi
- ;;
- HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
- SHLIB_SUFFIX=".sl"
- echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
- echo "configure:1948: checking for shl_load in -ldld" >&5
- ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ldld $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 1954 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char shl_load();
- int main() {
- shl_load()
- ; return 0; }
- EOF
- if { (eval echo configure:1965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- shared_ok=yes
- else
- echo "$ac_t""no" 1>&6
- shared_ok=no
- fi
- if test "$shared_ok" = yes; then
- SHLIB_CFLAGS="+z"
- SHLIB_LD="ld -b"
- SHLIB_LD_LIBS=""
- LDFLAGS="-Wl,-E"
- CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
- LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
- LD_LIBRARY_PATH_VAR="SHLIB_PATH"
- fi
- ;;
- IRIX-4.*)
- SHLIB_CFLAGS="-G 0"
- SHLIB_SUFFIX=".a"
- SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
- SHLIB_LD_LIBS='${LIBS}'
- LDFLAGS="-Wl,-D,08000000"
- CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
- LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
- SHARED_LIB_SUFFIX='${LIB_VER}.a'
- ;;
- IRIX-5.*)
- SHLIB_CFLAGS=""
- SHLIB_LD="ld -shared -rdata_shared"
- SHLIB_LD_LIBS='${LIBS}'
- SHLIB_SUFFIX=".so"
- CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
- LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
- EXTRA_CFLAGS=""
- LDFLAGS=""
- ;;
- IRIX-6.2)
- SHLIB_CFLAGS=""
- SHLIB_LD="ld -shared -rdata_shared"
- SHLIB_LD_LIBS='${LIBS}'
- SHLIB_SUFFIX=".so"
- CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
- LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
- ;;
- IRIX-6.*|IRIX64-6.5*)
- SHLIB_CFLAGS=""
- SHLIB_LD="ld -n32 -shared -rdata_shared"
- SHLIB_LD_LIBS='${LIBS}'
- SHLIB_SUFFIX=".so"
- CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
- LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
- if test "$GCC" = "yes" ; then
- EXTRA_CFLAGS="-mabi=n32"
- LDFLAGS="-mabi=n32"
- else
- case $system in
- IRIX-6.3)
- # Use to build 6.2 compatible binaries on 6.3.
- EXTRA_CFLAGS="-n32 -D_OLD_TERMIOS"
- ;;
- *)
- EXTRA_CFLAGS="-n32"
- ;;
- esac
- LDFLAGS="-n32"
- fi
- ;;
- IRIX64-6.*)
- SHLIB_CFLAGS=""
- SHLIB_LD="ld -n32 -shared -rdata_shared"
- SHLIB_LD_LIBS='${LIBS}'
- SHLIB_SUFFIX=".so"
- LDFLAGS=""
- CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
- LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
- # Check to enable 64-bit flags for compiler/linker
- if test "$do64bit" = "yes" ; then
- if test "$GCC" = "yes" ; then
- echo "configure: warning: 64bit mode not supported by gcc" 1>&2
- else
- do64bit_ok=yes
- SHLIB_LD="ld -64 -shared -rdata_shared"
- EXTRA_CFLAGS="-64"
- LDFLAGS="-64"
- fi
- fi
- ;;
- Linux*)
- SHLIB_CFLAGS="-fPIC"
- SHLIB_LD_LIBS='${LIBS}'
- SHLIB_SUFFIX=".so"
- CFLAGS_OPTIMIZE=-O2
- # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings
- # when you inline the string and math operations. Turn this off to
- # get rid of the warnings.
- #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
- if test "$have_dl" = yes; then
- SHLIB_LD="${CC} -shared"
- LDFLAGS="-Wl,--export-dynamic"
- CC_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
- LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
- else
- ac_safe=`echo "dld.h" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for dld.h""... $ac_c" 1>&6
- echo "configure:2087: checking for dld.h" >&5
- cat > conftest.$ac_ext <<EOF
- #line 2090 "configure"
- #include "confdefs.h"
- #include <dld.h>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:2095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- SHLIB_LD="ld -shared"
- LDFLAGS=""
- CC_SEARCH_FLAGS=""
- LD_SEARCH_FLAGS=""
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- if test "`uname -m`" = "alpha" ; then
- EXTRA_CFLAGS="-mieee"
- fi
- # The combo of gcc + glibc has a bug related
- # to inlining of functions like strtod(). The
- # -fno-builtin flag should address this problem
- # but it does not work. The -fno-inline flag
- # is kind of overkill but it works.
- # Disable inlining only when one of the
- # files in compat/*.c is being linked in.
- if test x"${USE_COMPAT}" != x ; then
- EXTRA_CFLAGS="${EXTRA_CFLAGS} -fno-inline"
- fi
- # XIM peeking works under XFree86.
- cat >> confdefs.h <<\EOF
- #define PEEK_XCLOSEIM 1
- EOF
- ;;
- GNU*)
- SHLIB_CFLAGS="-fPIC"
- SHLIB_LD_LIBS='${LIBS}'
- SHLIB_SUFFIX=".so"
- if test "$have_dl" = yes; then
- SHLIB_LD="${CC} -shared"
- LDFLAGS="-Wl,--export-dynamic"
- CC_SEARCH_FLAGS=""
- LD_SEARCH_FLAGS=""
- else
- ac_safe=`echo "dld.h" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for dld.h""... $ac_c" 1>&6
- echo "configure:2155: checking for dld.h" >&5
- cat > conftest.$ac_ext <<EOF
- #line 2158 "configure"
- #include "confdefs.h"
- #include <dld.h>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:2163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- SHLIB_LD="ld -shared"
- LDFLAGS=""
- CC_SEARCH_FLAGS=""
- LD_SEARCH_FLAGS=""
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- if test "`uname -m`" = "alpha" ; then
- EXTRA_CFLAGS="-mieee"
- fi
- ;;
- CYGWIN*)
- SHLIB_CFLAGS=""
- SHLIB_LD_LIBS='${LIBS}'
- SHLIB_SUFFIX=".dll"
- SHLIB_LD="${CC} -shared"
- LDFLAGS="-Wl,--export-dynamic"
- CC_SEARCH_FLAGS=""
- LD_SEARCH_FLAGS=""
- LD_LIBRARY_PATH_VAR="PATH"
- ;;
- MINGW*)
- SHLIB_CFLAGS=""
- SHLIB_LD_LIBS='${LIBS}'
- SHLIB_SUFFIX=".dll"
- SHLIB_LD="${CC} -shared"
- LDFLAGS="-Wl,--export-dynamic,--enable-runtime-pseudo-reloc"
- CC_SEARCH_FLAGS=""
- LD_SEARCH_FLAGS=""
- LD_LIBRARY_PATH_VAR="PATH"
- ;;
- MP-RAS-02*)
- SHLIB_CFLAGS="-K PIC"
- SHLIB_LD="cc -G"
- SHLIB_LD_LIBS=""
- SHLIB_SUFFIX=".so"
- LDFLAGS=""
- CC_SEARCH_FLAGS=""
- LD_SEARCH_FLAGS=""
- ;;
- MP-RAS-*)
- SHLIB_CFLAGS="-K PIC"
- SHLIB_LD="cc -G"
- SHLIB_LD_LIBS=""
- SHLIB_SUFFIX=".so"
- LDFLAGS="-Wl,-Bexport"
- CC_SEARCH_FLAGS=""
- LD_SEARCH_FLAGS=""
- ;;
- NetBSD-*)
- # NetBSD has ELF.
- SHLIB_CFLAGS="-fPIC"
- SHLIB_LD="ld -Bshareable -x"
- SHLIB_LD_LIBS="${LIBS}"
- SHLIB_SUFFIX=".so"
- LDFLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -export-dynamic'
- CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
- LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
- if test "${GRASS_THREADS}" = "1" ; then
- # The -pthread needs to go in the CFLAGS, not LIBS
- LIBS=`echo $LIBS | sed s/-pthread//`
- EXTRA_CFLAGS="-pthread"
- LDFLAGS="$LDFLAGS -pthread"
- fi
- # NetBSD doesn't handle version numbers with dots.
- UNSHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.a'
- SHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.so',
- GRASS_LIB_VERSIONS_OK=nodots
- ;;
- OpenBSD-*)
- SHLIB_LD="${CC} -shared"
- SHLIB_LD_LIBS='${LIBS}'
- SHLIB_SUFFIX=".so"
- LDFLAGS=""
- CC_SEARCH_FLAGS=""
- LD_SEARCH_FLAGS=""
- echo $ac_n "checking for ELF""... $ac_c" 1>&6
- echo "configure:2260: checking for ELF" >&5
- cat > conftest.$ac_ext <<EOF
- #line 2262 "configure"
- #include "confdefs.h"
- #ifdef __ELF__
- yes
- #endif
-
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "yes" >/dev/null 2>&1; then
- rm -rf conftest*
- echo "$ac_t""yes" 1>&6
- SHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.so.1.0'
- else
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
- SHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.so.1.0'
-
- fi
- rm -f conftest*
- # OpenBSD doesn't do version numbers with dots.
- UNSHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.a'
- GRASS_LIB_VERSIONS_OK=nodots
- ;;
- FreeBSD-[1-2].*)
- # Not available on all versions: check for include file.
- ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
- echo "configure:2292: checking for dlfcn.h" >&5
- cat > conftest.$ac_ext <<EOF
- #line 2295 "configure"
- #include "confdefs.h"
- #include <dlfcn.h>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:2300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- SHLIB_CFLAGS="-fPIC"
- SHLIB_LD="ld -Bshareable -x"
- SHLIB_LD_LIBS=""
- SHLIB_SUFFIX=".so"
- LDFLAGS=""
- CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
- LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
- echo $ac_n "checking for ELF""... $ac_c" 1>&6
- echo "configure:2324: checking for ELF" >&5
- cat > conftest.$ac_ext <<EOF
- #line 2326 "configure"
- #include "confdefs.h"
- #ifdef __ELF__
- yes
- #endif
-
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "yes" >/dev/null 2>&1; then
- rm -rf conftest*
- echo "$ac_t""yes" 1>&6
- SHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.so'
- else
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
- SHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.so.1.0'
-
- fi
- rm -f conftest*
-
- else
- echo "$ac_t""no" 1>&6
- SHLIB_CFLAGS=""
- SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
- SHLIB_LD_LIBS='${LIBS}'
- SHLIB_SUFFIX=".a"
- LDFLAGS=""
- CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
- LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
- SHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.a'
-
- fi
- UNSHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.a'
- GRASS_LIB_VERSIONS_OK=nodots
- ;;
- FreeBSD-*)
- # FreeBSD 3.* and greater have ELF.
- SHLIB_CFLAGS="-fPIC"
- SHLIB_LD="ld -Bshareable -x"
- SHLIB_LD_LIBS='${LIBS}'
- SHLIB_SUFFIX=".so"
- LDFLAGS="-export-dynamic"
- CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
- LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
- if test "${GRASS_THREADS}" = "1" ; then
- # The -pthread needs to go in the CFLAGS, not LIBS
- LIBS=`echo $LIBS | sed s/-pthread//`
- EXTRA_CFLAGS="-pthread"
- LDFLAGS="$LDFLAGS -pthread"
- fi
- case $system in
- FreeBSD-3.*)
- # FreeBSD-3 doesn't handle version numbers with dots.
- UNSHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.a'
- SHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.so'
- GRASS_LIB_VERSIONS_OK=nodots
- ;;
- esac
- ;;
- Rhapsody-*|Darwin-*)
- SHLIB_CFLAGS="-fno-common"
- SHLIB_LD="cc -dynamiclib -compatibility_version \${GRASS_VERSION_MAJOR}.\${GRASS_VERSION_MINOR} -current_version \${GRASS_VERSION_MAJOR}.\${GRASS_VERSION_MINOR} -install_name \${INST_DIR}/lib/lib\${LIB_NAME}\${SHLIB_SUFFIX}"
- GRASS_SHLIB_LD_EXTRAS=""
- SHLIB_LD_LIBS='${LIBS}'
- SHLIB_SUFFIX=".dylib"
- PLAT_OBJS=""
- CC_SEARCH_FLAGS=""
- LD_SEARCH_FLAGS=""
- CFLAGS_OPTIMIZE="-Os"
- LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
- # for compatibility with autoconf vers 2.13 :
- HACK=""
- EXTRA_CFLAGS=""
- LIBS="$LIBS"
- ;;
- NEXTSTEP-*)
- SHLIB_CFLAGS=""
- SHLIB_LD="cc -nostdlib -r"
- SHLIB_LD_LIBS=""
- SHLIB_SUFFIX=".so"
- LDFLAGS=""
- CC_SEARCH_FLAGS=""
- LD_SEARCH_FLAGS=""
- ;;
- OS/390-*)
- CFLAGS_OPTIMIZE="" # Optimizer is buggy
- cat >> confdefs.h <<\EOF
- #define _OE_SOCKETS 1
- EOF
- # needed in sys/socket.h
- ;;
- OSF1-1.0|OSF1-1.1|OSF1-1.2)
- # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1
- SHLIB_CFLAGS=""
- # Hack: make package name same as library name
- SHLIB_LD='ld -R -export :'
- SHLIB_LD_LIBS=""
- SHLIB_SUFFIX=".so"
- LDFLAGS=""
- CC_SEARCH_FLAGS=""
- LD_SEARCH_FLAGS=""
- ;;
- OSF1-1.*)
- # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2
- SHLIB_CFLAGS="-fPIC"
- if test "$SHARED_BUILD" = "1" ; then
- SHLIB_LD="ld -shared"
- else
- SHLIB_LD="ld -non_shared"
- fi
- SHLIB_LD_LIBS=""
- SHLIB_SUFFIX=".so"
- LDFLAGS=""
- CC_SEARCH_FLAGS=""
- LD_SEARCH_FLAGS=""
- ;;
- OSF1-V*)
- # Digital OSF/1
- SHLIB_CFLAGS=""
- if test "$SHARED_BUILD" = "1" ; then
- SHLIB_LD='ld -shared -expect_unresolved "*"'
- else
- SHLIB_LD='ld -non_shared -expect_unresolved "*"'
- fi
- SHLIB_LD_LIBS=""
- SHLIB_SUFFIX=".so"
- LDFLAGS=""
- CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
- LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
- if test "$GCC" = "yes" ; then
- EXTRA_CFLAGS="-mieee"
- else
- EXTRA_CFLAGS="-DHAVE_TZSET -std1 -ieee"
- fi
- # see pthread_intro(3) for pthread support on osf1, k.furukawa
- if test "${GRASS_THREADS}" = "1" ; then
- EXTRA_CFLAGS="${EXTRA_CFLAGS} -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
- EXTRA_CFLAGS="${EXTRA_CFLAGS} -DGRASS_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
- LIBS=`echo $LIBS | sed s/-lpthreads//`
- if test "$GCC" = "yes" ; then
- LIBS="$LIBS -lpthread -lmach -lexc"
- else
- EXTRA_CFLAGS="${EXTRA_CFLAGS} -pthread"
- LDFLAGS="-pthread"
- fi
- fi
- ;;
- QNX-6*)
- # QNX RTP
- # This may work for all QNX, but it was only reported for v6.
- SHLIB_CFLAGS="-fPIC"
- SHLIB_LD="ld -Bshareable -x"
- SHLIB_LD_LIBS=""
- SHLIB_SUFFIX=".so"
- LDFLAGS=""
- CC_SEARCH_FLAGS=""
- LD_SEARCH_FLAGS=""
- ;;
- RISCos-*)
- SHLIB_CFLAGS="-G 0"
- SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
- SHLIB_LD_LIBS='${LIBS}'
- SHLIB_SUFFIX=".a"
- LDFLAGS="-Wl,-D,08000000"
- CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
- LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
- ;;
- SCO_SV-3.2*)
- # Note, dlopen is available only on SCO 3.2.5 and greater. However,
- # this test works, since "uname -s" was non-standard in 3.2.4 and
- # below.
- if test "$GCC" = "yes" ; then
- SHLIB_CFLAGS="-fPIC -melf"
- LDFLAGS="-melf -Wl,-Bexport"
- else
- SHLIB_CFLAGS="-Kpic -belf"
- LDFLAGS="-belf -Wl,-Bexport"
- fi
- SHLIB_LD="ld -G"
- SHLIB_LD_LIBS=""
- SHLIB_SUFFIX=".so"
- CC_SEARCH_FLAGS=""
- LD_SEARCH_FLAGS=""
- ;;
- SINIX*5.4*)
- SHLIB_CFLAGS="-K PIC"
- SHLIB_LD="cc -G"
- SHLIB_LD_LIBS=""
- SHLIB_SUFFIX=".so"
- LDFLAGS=""
- CC_SEARCH_FLAGS=""
- LD_SEARCH_FLAGS=""
- ;;
- SunOS-4*)
- SHLIB_CFLAGS="-PIC"
- SHLIB_LD="ld"
- SHLIB_LD_LIBS=""
- SHLIB_SUFFIX=".so"
- LDFLAGS=""
- CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
- LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
- # SunOS can't handle version numbers with dots in them in library
- # specs, like -ltcl7.5, so use -ltcl75 instead. Also, it
- # requires an extra version number at the end of .so file names.
- # So, the library has to have a name like libtcl75.so.1.0
- SHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.so.1.0'
- UNSHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.a'
- GRASS_LIB_VERSIONS_OK=nodots
- ;;
- SunOS-5.[0-6].*)
- # Note: If _REENTRANT isn't defined, then Solaris
- # won't define thread-safe library routines.
- cat >> confdefs.h <<\EOF
- #define _REENTRANT 1
- EOF
- cat >> confdefs.h <<\EOF
- #define _POSIX_PTHREAD_SEMANTICS 1
- EOF
- # Note: need the LIBS below, otherwise Tk won't find Tcl's
- # symbols when dynamically loaded into tclsh.
- SHLIB_LD_LIBS='${LIBS}'
- SHLIB_SUFFIX=".so"
- LDFLAGS=""
- if test "$GCC" = "yes" ; then
- SHLIB_CFLAGS="-fPIC"
- SHLIB_LD="$CC -shared"
- CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
- LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
- else
- SHLIB_CFLAGS="-KPIC"
- SHLIB_LD="/usr/ccs/bin/ld -G -z text"
- CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
- LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
- fi
- ;;
- SunOS-5*)
- # Note: If _REENTRANT isn't defined, then Solaris
- # won't define thread-safe library routines.
- cat >> confdefs.h <<\EOF
- #define _REENTRANT 1
- EOF
- cat >> confdefs.h <<\EOF
- #define _POSIX_PTHREAD_SEMANTICS 1
- EOF
- LDFLAGS=""
-
- # Check to enable 64-bit flags for compiler/linker
- if test "$do64bit" = "yes" ; then
- arch=`isainfo`
- if test "$arch" = "sparcv9 sparc" ; then
- if test "$GCC" = "yes" ; then
- echo "configure: warning: "64bit mode not supported with GCC on $system"" 1>&2
- else
- SHLIB_CFLAGS="-KPIC"
- do64bit_ok=yes
- if test "$do64bitVIS" = "yes" ; then
- EXTRA_CFLAGS="-xarch=v9a"
- LDFLAGS="-xarch=v9a"
- else
- EXTRA_CFLAGS="-xarch=v9"
- LDFLAGS="-xarch=v9"
- fi
- fi
- else
- echo "configure: warning: "64bit mode only supported sparcv9 system"" 1>&2
- fi
- fi
-
- # Note: need the LIBS below, otherwise Tk won't find Tcl's
- # symbols when dynamically loaded into tclsh.
- SHLIB_LD_LIBS='${LIBS}'
- SHLIB_SUFFIX=".so"
- if test "$GCC" = "yes" ; then
- SHLIB_CFLAGS="-fPIC"
- SHLIB_LD="$CC -shared"
- CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
- LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
- else
- SHLIB_CFLAGS="-KPIC"
- SHLIB_LD="CC -G -z text"
- CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
- LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
- fi
- ;;
- ULTRIX-4.*)
- SHLIB_CFLAGS="-G 0"
- SHLIB_SUFFIX=".a"
- SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
- SHLIB_LD_LIBS='${LIBS}'
- LDFLAGS="-Wl,-D,08000000"
- CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
- LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
- if test "$GCC" != "yes" ; then
- EXTRA_CFLAGS="-DHAVE_TZSET -std1"
- fi
- ;;
- UNIX_SV* | UnixWare-5*)
- SHLIB_CFLAGS="-KPIC"
- SHLIB_LD="cc -G"
- SHLIB_LD_LIBS=""
- SHLIB_SUFFIX=".so"
- # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
- # that don't grok the -Bexport option. Test that it does.
- hold_ldflags=$LDFLAGS
- echo $ac_n "checking for ld accepts -Bexport flag""... $ac_c" 1>&6
- echo "configure:2650: checking for ld accepts -Bexport flag" >&5
- LDFLAGS="${LDFLAGS} -Wl,-Bexport"
- cat > conftest.$ac_ext <<EOF
- #line 2653 "configure"
- #include "confdefs.h"
- int main() {
- int i;
- ; return 0; }
- EOF
- if { (eval echo configure:2660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- found=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- found=no
- fi
- rm -f conftest*
- LDFLAGS=$hold_ldflags
- echo "$ac_t""$found" 1>&6
- if test $found = yes; then
- LDFLAGS="-Wl,-Bexport"
- else
- LDFLAGS=""
- fi
- CC_SEARCH_FLAGS=""
- LD_SEARCH_FLAGS=""
- ;;
- esac
- # If we're running gcc, then change the C flags for compiling shared
- # libraries to the right flags for gcc, instead of those for the
- # standard manufacturer compiler.
- if test "$GCC" = "yes" ; then
- case $system in
- AIX-*)
- ;;
- BSD/OS*)
- ;;
- *)
- ;;
- NetBSD-*|FreeBSD-*)
- ;;
- Rhapsody-*|Darwin-*)
- ;;
- RISCos-*)
- ;;
- SCO_SV-3.2*)
- ;;
- ULTRIX-4.*)
- ;;
- *)
- SHLIB_CFLAGS="-fPIC"
- ;;
- esac
- fi
- if test "$SHARED_LIB_SUFFIX" = "" ; then
- SHARED_LIB_SUFFIX='${LIB_VER}${SHLIB_SUFFIX}'
- fi
- if test "$UNSHARED_LIB_SUFFIX" = "" ; then
- UNSHARED_LIB_SUFFIX='${LIB_VER}.a'
- fi
- if test "${SHARED_BUILD}" = "1" && test "${SHLIB_SUFFIX}" != "" ; then
- LIB_SUFFIX=${SHARED_LIB_SUFFIX}
- MAKE_LIB='${SHLIB_LD} -o $@ ${SHLIB_LD_FLAGS} ${OBJS} ${SHLIB_LD_LIBS} ${GRASS_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}'
- INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)'
- else
- LIB_SUFFIX=${UNSHARED_LIB_SUFFIX}
- if test "$RANLIB" = "" ; then
- MAKE_LIB='$(STLIB_LD) $@ ${OBJS}'
- INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)'
- else
- MAKE_LIB='${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@'
- INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(LIB_FILE))'
- fi
- fi
- # Stub lib does not depend on shared/static configuration
- if test "$RANLIB" = "" ; then
- MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS}'
- INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)'
- else
- MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@'
- INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(STUB_LIB_FILE))'
- fi
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- LDFLAGS="${ac_save_ldflags} $LDFLAGS"
- # Enable options
- # Check whether --enable-w11 or --disable-w11 was given.
- if test "${enable_w11+set}" = set; then
- enableval="$enable_w11"
- :
- else
- enable_w11=no
- fi
- # With options
- # Check whether --with-cxx or --without-cxx was given.
- if test "${with_cxx+set}" = set; then
- withval="$with_cxx"
- :
- else
- with_cxx=no
- fi
- #LOC_ARG_WITH(g77, GNU Fortran 77, no)
- # Check whether --with-jpeg or --without-jpeg was given.
- if test "${with_jpeg+set}" = set; then
- withval="$with_jpeg"
- :
- else
- with_jpeg=yes
- fi
- # Check whether --with-tiff or --without-tiff was given.
- if test "${with_tiff+set}" = set; then
- withval="$with_tiff"
- :
- else
- with_tiff=yes
- fi
- # Check whether --with-png or --without-png was given.
- if test "${with_png+set}" = set; then
- withval="$with_png"
- :
- else
- with_png=yes
- fi
- # Check whether --with-tcltk or --without-tcltk was given.
- if test "${with_tcltk+set}" = set; then
- withval="$with_tcltk"
- :
- else
- with_tcltk=yes
- fi
- # Check whether --with-postgres or --without-postgres was given.
- if test "${with_postgres+set}" = set; then
- withval="$with_postgres"
- :
- else
- with_postgres=no
- fi
- # Check whether --with-mysql or --without-mysql was given.
- if test "${with_mysql+set}" = set; then
- withval="$with_mysql"
- :
- else
- with_mysql=no
- fi
- # Check whether --with-sqlite or --without-sqlite was given.
- if test "${with_sqlite+set}" = set; then
- withval="$with_sqlite"
- :
- else
- with_sqlite=no
- fi
- # Check whether --with-ffmpeg or --without-ffmpeg was given.
- if test "${with_ffmpeg+set}" = set; then
- withval="$with_ffmpeg"
- :
- else
- with_ffmpeg=no
- fi
- # Check whether --with-opengl or --without-opengl was given.
- if test "${with_opengl+set}" = set; then
- withval="$with_opengl"
- :
- else
- with_opengl=yes
- fi
- # Check whether --with-odbc or --without-odbc was given.
- if test "${with_odbc+set}" = set; then
- withval="$with_odbc"
- :
- else
- with_odbc=no
- fi
- # Check whether --with-fftw or --without-fftw was given.
- if test "${with_fftw+set}" = set; then
- withval="$with_fftw"
- :
- else
- with_fftw=yes
- fi
- # Check whether --with-blas or --without-blas was given.
- if test "${with_blas+set}" = set; then
- withval="$with_blas"
- :
- else
- with_blas=no
- fi
- # Check whether --with-lapack or --without-lapack was given.
- if test "${with_lapack+set}" = set; then
- withval="$with_lapack"
- :
- else
- with_lapack=no
- fi
- # Check whether --with-cairo or --without-cairo was given.
- if test "${with_cairo+set}" = set; then
- withval="$with_cairo"
- :
- else
- with_cairo=yes
- fi
- # Check whether --with-freetype or --without-freetype was given.
- if test "${with_freetype+set}" = set; then
- withval="$with_freetype"
- :
- else
- with_freetype=yes
- fi
- # Check whether --with-nls or --without-nls was given.
- if test "${with_nls+set}" = set; then
- withval="$with_nls"
- :
- else
- with_nls=no
- fi
- # Check whether --with-readline or --without-readline was given.
- if test "${with_readline+set}" = set; then
- withval="$with_readline"
- :
- else
- with_readline=no
- fi
- # Check whether --with-opendwg or --without-opendwg was given.
- if test "${with_opendwg+set}" = set; then
- withval="$with_opendwg"
- :
- else
- with_opendwg=no
- fi
- # Check whether --with-regex or --without-regex was given.
- if test "${with_regex+set}" = set; then
- withval="$with_regex"
- :
- else
- with_regex=yes
- fi
- # Check whether --with-pthread or --without-pthread was given.
- if test "${with_pthread+set}" = set; then
- withval="$with_pthread"
- :
- else
- with_pthread=no
- fi
- # Check whether --with-gdal or --without-gdal was given.
- if test "${with_gdal+set}" = set; then
- withval="$with_gdal"
- :
- fi
- # Check whether --with-python or --without-python was given.
- if test "${with_python+set}" = set; then
- withval="$with_python"
- :
- else
- with_python="no"
- fi
- # Check whether --with-wxwidgets or --without-wxwidgets was given.
- if test "${with_wxwidgets+set}" = set; then
- withval="$with_wxwidgets"
- :
- else
- with_wxwidgets="no"
- fi
- # With includes and libs options
- # Check whether --with-geos or --without-geos was given.
- if test "${with_geos+set}" = set; then
- withval="$with_geos"
- :
- else
- with_geos="no"
- fi
- # Check whether --with-includes or --without-includes was given.
- if test "${with_includes+set}" = set; then
- withval="$with_includes"
- :
- fi
- # Check whether --with-libs or --without-libs was given.
- if test "${with_libs+set}" = set; then
- withval="$with_libs"
- :
- fi
- # Check whether --with-zlib-includes or --without-zlib-includes was given.
- if test "${with_zlib_includes+set}" = set; then
- withval="$with_zlib_includes"
- :
- fi
- # Check whether --with-zlib-libs or --without-zlib-libs was given.
- if test "${with_zlib_libs+set}" = set; then
- withval="$with_zlib_libs"
- :
- fi
- # Check whether --with-readline-includes or --without-readline-includes was given.
- if test "${with_readline_includes+set}" = set; then
- withval="$with_readline_includes"
- :
- fi
- # Check whether --with-readline-libs or --without-readline-libs was given.
- if test "${with_readline_libs+set}" = set; then
- withval="$with_readline_libs"
- :
- fi
- # Check whether --with-jpeg-includes or --without-jpeg-includes was given.
- if test "${with_jpeg_includes+set}" = set; then
- withval="$with_jpeg_includes"
- :
- fi
- # Check whether --with-jpeg-libs or --without-jpeg-libs was given.
- if test "${with_jpeg_libs+set}" = set; then
- withval="$with_jpeg_libs"
- :
- fi
- # Check whether --with-tiff-includes or --without-tiff-includes was given.
- if test "${with_tiff_includes+set}" = set; then
- withval="$with_tiff_includes"
- :
- fi
- # Check whether --with-tiff-libs or --without-tiff-libs was given.
- if test "${with_tiff_libs+set}" = set; then
- withval="$with_tiff_libs"
- :
- fi
- # Check whether --with-png-includes or --without-png-includes was given.
- if test "${with_png_includes+set}" = set; then
- withval="$with_png_includes"
- :
- fi
- # Check whether --with-png-libs or --without-png-libs was given.
- if test "${with_png_libs+set}" = set; then
- withval="$with_png_libs"
- :
- fi
- # Check whether --with-tcltk-includes or --without-tcltk-includes was given.
- if test "${with_tcltk_includes+set}" = set; then
- withval="$with_tcltk_includes"
- :
- fi
- # Check whether --with-tcltk-libs or --without-tcltk-libs was given.
- if test "${with_tcltk_libs+set}" = set; then
- withval="$with_tcltk_libs"
- :
- fi
- # Check whether --with-postgres-includes or --without-postgres-includes was given.
- if test "${with_postgres_includes+set}" = set; then
- withval="$with_postgres_includes"
- :
- fi
- # Check whether --with-postgres-libs or --without-postgres-libs was given.
- if test "${with_postgres_libs+set}" = set; then
- withval="$with_postgres_libs"
- :
- fi
- # Check whether --with-mysql-includes or --without-mysql-includes was given.
- if test "${with_mysql_includes+set}" = set; then
- withval="$with_mysql_includes"
- :
- fi
- # Check whether --with-mysql-libs or --without-mysql-libs was given.
- if test "${with_mysql_libs+set}" = set; then
- withval="$with_mysql_libs"
- :
- fi
- # Check whether --with-sqlite-includes or --without-sqlite-includes was given.
- if test "${with_sqlite_includes+set}" = set; then
- withval="$with_sqlite_includes"
- :
- fi
- # Check whether --with-sqlite-libs or --without-sqlite-libs was given.
- if test "${with_sqlite_libs+set}" = set; then
- withval="$with_sqlite_libs"
- :
- fi
- # Check whether --with-ffmpeg-includes or --without-ffmpeg-includes was given.
- if test "${with_ffmpeg_includes+set}" = set; then
- withval="$with_ffmpeg_includes"
- :
- fi
- # Check whether --with-ffmpeg-libs or --without-ffmpeg-libs was given.
- if test "${with_ffmpeg_libs+set}" = set; then
- withval="$with_ffmpeg_libs"
- :
- fi
- # Check whether --with-opengl-includes or --without-opengl-includes was given.
- if test "${with_opengl_includes+set}" = set; then
- withval="$with_opengl_includes"
- :
- fi
- # Check whether --with-opengl-libs or --without-opengl-libs was given.
- if test "${with_opengl_libs+set}" = set; then
- withval="$with_opengl_libs"
- :
- fi
- # Check whether --with-opengl-framework or --without-opengl-framework was given.
- if test "${with_opengl_framework+set}" = set; then
- withval="$with_opengl_framework"
- :
- fi
- # Check whether --with-odbc-includes or --without-odbc-includes was given.
- if test "${with_odbc_includes+set}" = set; then
- withval="$with_odbc_includes"
- :
- fi
- # Check whether --with-odbc-libs or --without-odbc-libs was given.
- if test "${with_odbc_libs+set}" = set; then
- withval="$with_odbc_libs"
- :
- fi
- # Check whether --with-fftw-includes or --without-fftw-includes was given.
- if test "${with_fftw_includes+set}" = set; then
- withval="$with_fftw_includes"
- :
- fi
- # Check whether --with-fftw-libs or --without-fftw-libs was given.
- if test "${with_fftw_libs+set}" = set; then
- withval="$with_fftw_libs"
- :
- fi
- # Check whether --with-blas-includes or --without-blas-includes was given.
- if test "${with_blas_includes+set}" = set; then
- withval="$with_blas_includes"
- :
- fi
- # Check whether --with-blas-libs or --without-blas-libs was given.
- if test "${with_blas_libs+set}" = set; then
- withval="$with_blas_libs"
- :
- fi
- # Check whether --with-lapack-includes or --without-lapack-includes was given.
- if test "${with_lapack_includes+set}" = set; then
- withval="$with_lapack_includes"
- :
- fi
- # Check whether --with-lapack-libs or --without-lapack-libs was given.
- if test "${with_lapack_libs+set}" = set; then
- withval="$with_lapack_libs"
- :
- fi
- # Check whether --with-cairo-includes or --without-cairo-includes was given.
- if test "${with_cairo_includes+set}" = set; then
- withval="$with_cairo_includes"
- :
- fi
- # Check whether --with-cairo-libs or --without-cairo-libs was given.
- if test "${with_cairo_libs+set}" = set; then
- withval="$with_cairo_libs"
- :
- fi
- # Check whether --with-cairo-ldflags or --without-cairo-ldflags was given.
- if test "${with_cairo_ldflags+set}" = set; then
- withval="$with_cairo_ldflags"
- :
- fi
- # Check whether --with-freetype-includes or --without-freetype-includes was given.
- if test "${with_freetype_includes+set}" = set; then
- withval="$with_freetype_includes"
- :
- fi
- # Check whether --with-freetype-libs or --without-freetype-libs was given.
- if test "${with_freetype_libs+set}" = set; then
- withval="$with_freetype_libs"
- :
- fi
- # Check whether --with-proj-includes or --without-proj-includes was given.
- if test "${with_proj_includes+set}" = set; then
- withval="$with_proj_includes"
- :
- fi
- # Check whether --with-proj-libs or --without-proj-libs was given.
- if test "${with_proj_libs+set}" = set; then
- withval="$with_proj_libs"
- :
- fi
- # Check whether --with-proj-share or --without-proj-share was given.
- if test "${with_proj_share+set}" = set; then
- withval="$with_proj_share"
- :
- fi
- # Check whether --with-opendwg-includes or --without-opendwg-includes was given.
- if test "${with_opendwg_includes+set}" = set; then
- withval="$with_opendwg_includes"
- :
- fi
- # Check whether --with-opendwg-libs or --without-opendwg-libs was given.
- if test "${with_opendwg_libs+set}" = set; then
- withval="$with_opendwg_libs"
- :
- fi
- # Check whether --with-regex-includes or --without-regex-includes was given.
- if test "${with_regex_includes+set}" = set; then
- withval="$with_regex_includes"
- :
- fi
- # Check whether --with-regex-libs or --without-regex-libs was given.
- if test "${with_regex_libs+set}" = set; then
- withval="$with_regex_libs"
- :
- fi
- # Check whether --with-pthread-includes or --without-pthread-includes was given.
- if test "${with_pthread_includes+set}" = set; then
- withval="$with_pthread_includes"
- :
- fi
- # Check whether --with-pthread-libs or --without-pthread-libs was given.
- if test "${with_pthread_libs+set}" = set; then
- withval="$with_pthread_libs"
- :
- fi
- # Put this early on so CPPFLAGS and LDFLAGS have any additional dirs
- # With includes option
- # Handle Fortran compiler choice
- #LOC_CHECK_USE(g77, GNU Fortran 77, USE_G77)
- # Done checking fortran
- echo $ac_n "checking for additional include dirs""... $ac_c" 1>&6
- echo "configure:3439: checking for additional include dirs" >&5
- case "$with_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to list --with-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_includes" 1>&6
- if test -n "$with_includes"; then
- for dir in $with_includes; do
- if test -d "$dir"; then
- INCLUDE_DIRS="$INCLUDE_DIRS -I$dir"
- else
- { echo "configure: error: *** Include directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS="$CPPFLAGS $INCLUDE_DIRS"
- fi
- # With libs option
- echo $ac_n "checking for additional library dirs""... $ac_c" 1>&6
- echo "configure:3462: checking for additional library dirs" >&5
- case "$with_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory list to --with-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_libs" 1>&6
- if test -n "$with_libs"; then
- for dir in $with_libs; do
- if test -d "$dir"; then
- LIBRARY_DIRS="$LIBRARY_DIRS -L$dir"
- else
- { echo "configure: error: *** Library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- LDFLAGS="$LDFLAGS $LIBRARY_DIRS"
- fi
- # Programs and standard headers, libraries, functions
- # Find a good install program. We prefer a C program (faster),
- # so one script is as good as another. But avoid the broken or
- # incompatible versions:
- # SysV /etc/install, /usr/sbin/install
- # SunOS /usr/etc/install
- # IRIX /sbin/install
- # AIX /bin/install
- # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
- # AFS /usr/afsws/bin/install, which mishandles nonexistent args
- # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
- # ./install, which can be erroneously created by make from ./install.sh.
- echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
- echo "configure:3496: checking for a BSD compatible install" >&5
- if test -z "$INSTALL"; then
- IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
- for ac_dir in $PATH; do
- # Account for people who put trailing slashes in PATH elements.
- case "$ac_dir/" in
- /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
- *)
- # OSF1 and SCO ODT 3.0 have their own names for install.
- # Don't use installbsd from OSF since it installs stuff as root
- # by default.
- for ac_prog in ginstall scoinst install; do
- if test -f $ac_dir/$ac_prog; then
- if test $ac_prog = install &&
- grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
- # AIX install. It has an incompatible calling convention.
- :
- else
- ac_cv_path_install="$ac_dir/$ac_prog -c"
- break 2
- fi
- fi
- done
- ;;
- esac
- done
- IFS="$ac_save_IFS"
- if test "${ac_cv_path_install+set}" = set; then
- INSTALL="$ac_cv_path_install"
- else
- # As a last resort, use the slow shell script. We don't cache a
- # path for INSTALL within a source directory, because that will
- # break other packages using the cache if that directory is
- # removed, or if the path is relative.
- INSTALL="$ac_install_sh"
- fi
- fi
- echo "$ac_t""$INSTALL" 1>&6
- # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
- # It thinks the first close brace ends the variable substitution.
- test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
- test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
- test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
- # Extract the first word of "flex", so it can be a program name with args.
- set dummy flex; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:3549: checking for $ac_word" >&5
- if test -n "$LEX"; then
- ac_cv_prog_LEX="$LEX" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_LEX="flex"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
- fi
- LEX="$ac_cv_prog_LEX"
- if test -n "$LEX"; then
- echo "$ac_t""$LEX" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test -z "$LEXLIB"
- then
- case "$LEX" in
- flex*) ac_lib=fl ;;
- *) ac_lib=l ;;
- esac
- echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
- echo "configure:3580: checking for yywrap in -l$ac_lib" >&5
- ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-l$ac_lib $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3586 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char yywrap();
- int main() {
- yywrap()
- ; return 0; }
- EOF
- if { (eval echo configure:3597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- LEXLIB="-l$ac_lib"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- if test "$LEX" = "lex"; then
- # Extract the first word of "lex", so it can be a program name with args.
- set dummy lex; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:3622: checking for $ac_word" >&5
- case "$LEXPATH" in
- /*)
- ac_cv_path_LEXPATH="$LEXPATH" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_LEXPATH="$LEXPATH" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_LEXPATH="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_LEXPATH" && ac_cv_path_LEXPATH="no"
- ;;
- esac
- LEXPATH="$ac_cv_path_LEXPATH"
- if test -n "$LEXPATH"; then
- echo "$ac_t""$LEXPATH" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$LEXPATH" = "no"; then
- { echo "configure: error: *** Unable to locate lex." 1>&2; exit 1; }
- fi
- fi
- for ac_prog in 'bison -y' byacc
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:3662: checking for $ac_word" >&5
- if test -n "$YACC"; then
- ac_cv_prog_YACC="$YACC" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_YACC="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- YACC="$ac_cv_prog_YACC"
- if test -n "$YACC"; then
- echo "$ac_t""$YACC" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- test -n "$YACC" && break
- done
- test -n "$YACC" || YACC="yacc"
- if test "$YACC" = "yacc"; then
- # Extract the first word of "yacc", so it can be a program name with args.
- set dummy yacc; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:3693: checking for $ac_word" >&5
- case "$YACCPATH" in
- /*)
- ac_cv_path_YACCPATH="$YACCPATH" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_YACCPATH="$YACCPATH" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_YACCPATH="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_YACCPATH" && ac_cv_path_YACCPATH="no"
- ;;
- esac
- YACCPATH="$ac_cv_path_YACCPATH"
- if test -n "$YACCPATH"; then
- echo "$ac_t""$YACCPATH" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$YACCPATH" = "no"; then
- { echo "configure: error: *** Unable to locate yacc." 1>&2; exit 1; }
- fi
- fi
- # Extract the first word of "ranlib", so it can be a program name with args.
- set dummy ranlib; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:3731: checking for $ac_word" >&5
- if test -n "$RANLIB"; then
- ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_RANLIB="ranlib"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
- fi
- RANLIB="$ac_cv_prog_RANLIB"
- if test -n "$RANLIB"; then
- echo "$ac_t""$RANLIB" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- for ac_prog in ar
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:3760: checking for $ac_word" >&5
- if test -n "$AR"; then
- ac_cv_prog_AR="$AR" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_AR="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- AR="$ac_cv_prog_AR"
- if test -n "$AR"; then
- echo "$ac_t""$AR" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- test -n "$AR" && break
- done
- for ac_prog in env
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:3791: checking for $ac_word" >&5
- if test -n "$ENV"; then
- ac_cv_prog_ENV="$ENV" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_ENV="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- ENV="$ac_cv_prog_ENV"
- if test -n "$ENV"; then
- echo "$ac_t""$ENV" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- test -n "$ENV" && break
- done
- # Extract the first word of "perl", so it can be a program name with args.
- set dummy perl; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:3820: checking for $ac_word" >&5
- case "$PERL" in
- /*)
- ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_PERL="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
- ;;
- esac
- PERL="$ac_cv_path_PERL"
- if test -n "$PERL"; then
- echo "$ac_t""$PERL" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
-
- echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
- echo "configure:3851: checking for ANSI C header files" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3854 "configure"
- #include "confdefs.h"
- #include <stdlib.h>
- #include <stdarg.h>
- #include <string.h>
- #include <float.h>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:3862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- ac_cv_header_stdc=yes
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_header_stdc=no
- fi
- rm -f conftest*
- if test $ac_cv_header_stdc = yes; then
- # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
- cat > conftest.$ac_ext <<EOF
- #line 3879 "configure"
- #include "confdefs.h"
- #include <string.h>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "memchr" >/dev/null 2>&1; then
- :
- else
- rm -rf conftest*
- ac_cv_header_stdc=no
- fi
- rm -f conftest*
- fi
- if test $ac_cv_header_stdc = yes; then
- # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
- cat > conftest.$ac_ext <<EOF
- #line 3897 "configure"
- #include "confdefs.h"
- #include <stdlib.h>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "free" >/dev/null 2>&1; then
- :
- else
- rm -rf conftest*
- ac_cv_header_stdc=no
- fi
- rm -f conftest*
- fi
- if test $ac_cv_header_stdc = yes; then
- # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
- if test "$cross_compiling" = yes; then
- :
- else
- cat > conftest.$ac_ext <<EOF
- #line 3918 "configure"
- #include "confdefs.h"
- #include <ctype.h>
- #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
- #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
- #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
- int main () { int i; for (i = 0; i < 256; i++)
- if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
- exit (0); }
- EOF
- if { (eval echo configure:3929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- :
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_header_stdc=no
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$ac_cv_header_stdc" 1>&6
- if test $ac_cv_header_stdc = yes; then
- cat >> confdefs.h <<\EOF
- #define STDC_HEADERS 1
- EOF
- fi
- #AC_CHECK_HEADERS(curses.h limits.h termio.h termios.h unistd.h values.h)
- for ac_hdr in limits.h termio.h termios.h unistd.h values.h f2c.h g2c.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:3956: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3959 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:3964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_hdr in sys/ioctl.h sys/mtio.h sys/resource.h sys/time.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:3993: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3996 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:4001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_hdr in sys/timeb.h sys/types.h sys/utsname.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:4030: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4033 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:4038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_hdr in libintl.h iconv.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:4067: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4070 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:4075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_hdr in langinfo.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:4104: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4107 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:4112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
- echo "configure:4138: checking whether time.h and sys/time.h may both be included" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4141 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <sys/time.h>
- #include <time.h>
- int main() {
- struct tm *tp;
- ; return 0; }
- EOF
- if { (eval echo configure:4150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_header_time=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_header_time=no
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_header_time" 1>&6
- if test $ac_cv_header_time = yes; then
- cat >> confdefs.h <<\EOF
- #define TIME_WITH_SYS_TIME 1
- EOF
- fi
- echo $ac_n "checking for off_t""... $ac_c" 1>&6
- echo "configure:4170: checking for off_t" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4173 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #if STDC_HEADERS
- #include <stdlib.h>
- #include <stddef.h>
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_type_off_t=yes
- else
- rm -rf conftest*
- ac_cv_type_off_t=no
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_type_off_t" 1>&6
- if test $ac_cv_type_off_t = no; then
- cat >> confdefs.h <<\EOF
- #define off_t long
- EOF
- fi
- echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
- echo "configure:4200: checking for uid_t in sys/types.h" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4203 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "uid_t" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_type_uid_t=yes
- else
- rm -rf conftest*
- ac_cv_type_uid_t=no
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_type_uid_t" 1>&6
- if test $ac_cv_type_uid_t = no; then
- cat >> confdefs.h <<\EOF
- #define uid_t int
- EOF
- cat >> confdefs.h <<\EOF
- #define gid_t int
- EOF
- fi
- echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
- echo "configure:4231: checking return type of signal handlers" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4234 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <signal.h>
- #ifdef signal
- #undef signal
- #endif
- #ifdef __cplusplus
- extern "C" void (*signal (int, void (*)(int)))(int);
- #else
- void (*signal ()) ();
- #endif
- int main() {
- int i;
- ; return 0; }
- EOF
- if { (eval echo configure:4251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_type_signal=void
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_type_signal=int
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_type_signal" 1>&6
- cat >> confdefs.h <<EOF
- #define RETSIGTYPE $ac_cv_type_signal
- EOF
- echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
- echo "configure:4269: checking for Cygwin environment" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4272 "configure"
- #include "confdefs.h"
- int main() {
- #ifndef __CYGWIN__
- #define __CYGWIN__ __CYGWIN32__
- #endif
- return __CYGWIN__;
- ; return 0; }
- EOF
- if { (eval echo configure:4283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_cygwin=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_cygwin=no
- fi
- rm -f conftest*
- rm -f conftest*
- echo "$ac_t""$ac_cv_cygwin" 1>&6
- CYGWIN=
- test "$ac_cv_cygwin" = yes && CYGWIN=yes
- for ac_func in ftime gethostname gettimeofday lseek nice time uname
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:4301: checking for $ac_func" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4304 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_func in seteuid setpriority setreuid setruid
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:4353: checking for $ac_func" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4356 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_func in drand48
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:4405: checking for $ac_func" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4408 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_func in putenv setenv
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:4457: checking for $ac_func" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4460 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_func in nanosleep
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:4509: checking for $ac_func" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4512 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- if test "$cross_compiling" != "yes" ; then
- echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
- echo "configure:4560: checking whether setpgrp takes no argument" >&5
- if test "$cross_compiling" = yes; then
- { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 4566 "configure"
- #include "confdefs.h"
- #ifdef HAVE_UNISTD_H
- #include <unistd.h>
- #endif
- /*
- * If this system has a BSD-style setpgrp, which takes arguments, exit
- * successfully.
- */
- main()
- {
- if (setpgrp(1,1) == -1)
- exit(0);
- else
- exit(1);
- }
- EOF
- if { (eval echo configure:4586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_func_setpgrp_void=no
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_func_setpgrp_void=yes
- fi
- rm -fr conftest*
- fi
- echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
- if test $ac_cv_func_setpgrp_void = yes; then
- cat >> confdefs.h <<\EOF
- #define SETPGRP_VOID 1
- EOF
- fi
- else
- CROSS_COMPILING=1
- fi
- echo $ac_n "checking for long long int""... $ac_c" 1>&6
- echo "configure:4614: checking for long long int" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4616 "configure"
- #include "confdefs.h"
- int main() {
- long long int x;
- ; return 0; }
- EOF
- if { (eval echo configure:4623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
-
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<\EOF
- #define HAVE_LONG_LONG_INT 1
- EOF
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- echo "$ac_t""no" 1>&6
- fi
- rm -f conftest*
- echo $ac_n "checking for W11""... $ac_c" 1>&6
- echo "configure:4643: checking for W11" >&5
- case "$enable_w11" in
- yes|no) echo "$ac_t"""$enable_w11"" 1>&6 ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- USE_X11=
- USE_W11=
- XLIB=
- XTLIB=
- if test "$enable_w11" = "yes" ; then
- X_CFLAGS=-I${SRCDIR}/display/drivers/windows/libW11
- X_LIBS='-L$(LIBDIR)'
-
-
- USE_W11="1"
- USE_X11="1"
- XLIB=-lX11
- CFLAGS="$CFLAGS -D__W98__"
- else
- # If we find X, set shell vars x_includes and x_libraries to the
- # paths, otherwise set no_x=yes.
- # Uses ac_ vars as temps to allow command line to override cache and checks.
- # --without-x overrides everything else, but does not touch the cache.
- echo $ac_n "checking for X""... $ac_c" 1>&6
- echo "configure:4671: checking for X" >&5
- # Check whether --with-x or --without-x was given.
- if test "${with_x+set}" = set; then
- withval="$with_x"
- :
- fi
- # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
- if test "x$with_x" = xno; then
- # The user explicitly disabled X.
- have_x=disabled
- else
- if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
- # Both variables are already set.
- have_x=yes
- else
- # One or both of the vars are not set, and there is no cached value.
- ac_x_includes=NO ac_x_libraries=NO
- rm -fr conftestdir
- if mkdir conftestdir; then
- cd conftestdir
- # Make sure to not put "make" in the Imakefile rules, since we grep it out.
- cat > Imakefile <<'EOF'
- acfindx:
- @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
- EOF
- if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
- # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
- eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
- # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
- for ac_extension in a so sl; do
- if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
- test -f $ac_im_libdir/libX11.$ac_extension; then
- ac_im_usrlibdir=$ac_im_libdir; break
- fi
- done
- # Screen out bogus values from the imake configuration. They are
- # bogus both because they are the default anyway, and because
- # using them would break gcc on systems where it needs fixed includes.
- case "$ac_im_incroot" in
- /usr/include) ;;
- *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
- esac
- case "$ac_im_usrlibdir" in
- /usr/lib | /lib) ;;
- *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
- esac
- fi
- cd ..
- rm -fr conftestdir
- fi
- if test "$ac_x_includes" = NO; then
- # Guess where to find include files, by looking for this one X11 .h file.
- test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
- # First, try using that file with no special directory specified.
- cat > conftest.$ac_ext <<EOF
- #line 4731 "configure"
- #include "confdefs.h"
- #include <$x_direct_test_include>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:4736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- # We can compile using X headers with no special include directory.
- ac_x_includes=
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- # Look for the header file in a standard set of common directories.
- # Check X11 before X11Rn because it is often a symlink to the current release.
- for ac_dir in \
- /usr/X11/include \
- /usr/X11R6/include \
- /usr/X11R5/include \
- /usr/X11R4/include \
- \
- /usr/include/X11 \
- /usr/include/X11R6 \
- /usr/include/X11R5 \
- /usr/include/X11R4 \
- \
- /usr/local/X11/include \
- /usr/local/X11R6/include \
- /usr/local/X11R5/include \
- /usr/local/X11R4/include \
- \
- /usr/local/include/X11 \
- /usr/local/include/X11R6 \
- /usr/local/include/X11R5 \
- /usr/local/include/X11R4 \
- \
- /usr/X386/include \
- /usr/x386/include \
- /usr/XFree86/include/X11 \
- \
- /usr/include \
- /usr/local/include \
- /usr/unsupported/include \
- /usr/athena/include \
- /usr/local/x11r5/include \
- /usr/lpp/Xamples/include \
- \
- /usr/openwin/include \
- /usr/openwin/share/include \
- ; \
- do
- if test -r "$ac_dir/$x_direct_test_include"; then
- ac_x_includes=$ac_dir
- break
- fi
- done
- fi
- rm -f conftest*
- fi # $ac_x_includes = NO
- if test "$ac_x_libraries" = NO; then
- # Check for the libraries.
- test -z "$x_direct_test_library" && x_direct_test_library=Xt
- test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
- # See if we find them without any special options.
- # Don't add to $LIBS permanently.
- ac_save_LIBS="$LIBS"
- LIBS="-l$x_direct_test_library $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4805 "configure"
- #include "confdefs.h"
- int main() {
- ${x_direct_test_function}()
- ; return 0; }
- EOF
- if { (eval echo configure:4812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- LIBS="$ac_save_LIBS"
- # We can link X programs with no special library path.
- ac_x_libraries=
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- LIBS="$ac_save_LIBS"
- # First see if replacing the include by lib works.
- # Check X11 before X11Rn because it is often a symlink to the current release.
- for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
- /usr/X11/lib \
- /usr/X11R6/lib \
- /usr/X11R5/lib \
- /usr/X11R4/lib \
- \
- /usr/lib/X11 \
- /usr/lib/X11R6 \
- /usr/lib/X11R5 \
- /usr/lib/X11R4 \
- \
- /usr/local/X11/lib \
- /usr/local/X11R6/lib \
- /usr/local/X11R5/lib \
- /usr/local/X11R4/lib \
- \
- /usr/local/lib/X11 \
- /usr/local/lib/X11R6 \
- /usr/local/lib/X11R5 \
- /usr/local/lib/X11R4 \
- \
- /usr/X386/lib \
- /usr/x386/lib \
- /usr/XFree86/lib/X11 \
- \
- /usr/lib \
- /usr/local/lib \
- /usr/unsupported/lib \
- /usr/athena/lib \
- /usr/local/x11r5/lib \
- /usr/lpp/Xamples/lib \
- /lib/usr/lib/X11 \
- \
- /usr/openwin/lib \
- /usr/openwin/share/lib \
- ; \
- do
- for ac_extension in a so sl; do
- if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
- ac_x_libraries=$ac_dir
- break 2
- fi
- done
- done
- fi
- rm -f conftest*
- fi # $ac_x_libraries = NO
- if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
- # Didn't find X anywhere. Cache the known absence of X.
- ac_cv_have_x="have_x=no"
- else
- # Record where we found X for the cache.
- ac_cv_have_x="have_x=yes \
- ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
- fi
- fi
- eval "$ac_cv_have_x"
- fi # $with_x != no
- if test "$have_x" != yes; then
- echo "$ac_t""$have_x" 1>&6
- no_x=yes
- else
- # If each of the values was on the command line, it overrides each guess.
- test "x$x_includes" = xNONE && x_includes=$ac_x_includes
- test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
- # Update the cache value to reflect the command line values.
- ac_cv_have_x="have_x=yes \
- ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
- echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
- fi
- if test "$no_x" = yes; then
- # Not all programs may use this symbol, but it does not hurt to define it.
- cat >> confdefs.h <<\EOF
- #define X_DISPLAY_MISSING 1
- EOF
- X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
- else
- if test -n "$x_includes"; then
- X_CFLAGS="$X_CFLAGS -I$x_includes"
- fi
- # It would also be nice to do this for all -L options, not just this one.
- if test -n "$x_libraries"; then
- X_LIBS="$X_LIBS -L$x_libraries"
- # For Solaris; some versions of Sun CC require a space after -R and
- # others require no space. Words are not sufficient . . . .
- case "`(uname -sr) 2>/dev/null`" in
- "SunOS 5"*)
- echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
- echo "configure:4917: checking whether -R must be followed by a space" >&5
- ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
- cat > conftest.$ac_ext <<EOF
- #line 4920 "configure"
- #include "confdefs.h"
- int main() {
- ; return 0; }
- EOF
- if { (eval echo configure:4927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- ac_R_nospace=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_R_nospace=no
- fi
- rm -f conftest*
- if test $ac_R_nospace = yes; then
- echo "$ac_t""no" 1>&6
- X_LIBS="$X_LIBS -R$x_libraries"
- else
- LIBS="$ac_xsave_LIBS -R $x_libraries"
- cat > conftest.$ac_ext <<EOF
- #line 4943 "configure"
- #include "confdefs.h"
- int main() {
- ; return 0; }
- EOF
- if { (eval echo configure:4950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- ac_R_space=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_R_space=no
- fi
- rm -f conftest*
- if test $ac_R_space = yes; then
- echo "$ac_t""yes" 1>&6
- X_LIBS="$X_LIBS -R $x_libraries"
- else
- echo "$ac_t""neither works" 1>&6
- fi
- fi
- LIBS="$ac_xsave_LIBS"
- esac
- fi
- # Check for system-dependent libraries X programs must link with.
- # Do this before checking for the system-independent R6 libraries
- # (-lICE), since we may need -lsocket or whatever for X linking.
- if test "$ISC" = yes; then
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
- else
- # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
- # libraries were built with DECnet support. And karl@cs.umb.edu says
- # the Alpha needs dnet_stub (dnet does not exist).
- echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
- echo "configure:4982: checking for dnet_ntoa in -ldnet" >&5
- ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ldnet $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4988 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dnet_ntoa();
- int main() {
- dnet_ntoa()
- ; return 0; }
- EOF
- if { (eval echo configure:4999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
- else
- echo "$ac_t""no" 1>&6
- fi
- if test $ac_cv_lib_dnet_dnet_ntoa = no; then
- echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
- echo "configure:5020: checking for dnet_ntoa in -ldnet_stub" >&5
- ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ldnet_stub $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5026 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dnet_ntoa();
- int main() {
- dnet_ntoa()
- ; return 0; }
- EOF
- if { (eval echo configure:5037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
- # to get the SysV transport functions.
- # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
- # needs -lnsl.
- # The nsl library prevents programs from opening the X display
- # on Irix 5.2, according to dickey@clark.net.
- echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
- echo "configure:5065: checking for gethostbyname" >&5
- cat > conftest.$ac_ext <<EOF
- #line 5068 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char gethostbyname(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gethostbyname();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
- choke me
- #else
- gethostbyname();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_gethostbyname=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_gethostbyname=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- fi
- if test $ac_cv_func_gethostbyname = no; then
- echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
- echo "configure:5111: checking for gethostbyname in -lnsl" >&5
- ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lnsl $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5117 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gethostbyname();
- int main() {
- gethostbyname()
- ; return 0; }
- EOF
- if { (eval echo configure:5128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- # lieder@skyler.mavd.honeywell.com says without -lsocket,
- # socket/setsockopt and other routines are undefined under SCO ODT
- # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
- # on later versions), says simon@lia.di.epfl.ch: it contains
- # gethostby* variants that don't use the nameserver (or something).
- # -lsocket must be given before -lnsl if both are needed.
- # We assume that if connect needs -lnsl, so does gethostbyname.
- echo $ac_n "checking for connect""... $ac_c" 1>&6
- echo "configure:5157: checking for connect" >&5
- cat > conftest.$ac_ext <<EOF
- #line 5160 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char connect(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char connect();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_connect) || defined (__stub___connect)
- choke me
- #else
- connect();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_connect=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_connect=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- fi
- if test $ac_cv_func_connect = no; then
- echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
- echo "configure:5203: checking for connect in -lsocket" >&5
- ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5209 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char connect();
- int main() {
- connect()
- ; return 0; }
- EOF
- if { (eval echo configure:5220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
- echo $ac_n "checking for remove""... $ac_c" 1>&6
- echo "configure:5243: checking for remove" >&5
- cat > conftest.$ac_ext <<EOF
- #line 5246 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char remove(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char remove();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_remove) || defined (__stub___remove)
- choke me
- #else
- remove();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_remove=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_remove=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- fi
- if test $ac_cv_func_remove = no; then
- echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
- echo "configure:5289: checking for remove in -lposix" >&5
- ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lposix $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5295 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char remove();
- int main() {
- remove()
- ; return 0; }
- EOF
- if { (eval echo configure:5306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
- echo $ac_n "checking for shmat""... $ac_c" 1>&6
- echo "configure:5329: checking for shmat" >&5
- cat > conftest.$ac_ext <<EOF
- #line 5332 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char shmat(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char shmat();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_shmat) || defined (__stub___shmat)
- choke me
- #else
- shmat();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_shmat=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_shmat=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- fi
- if test $ac_cv_func_shmat = no; then
- echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
- echo "configure:5375: checking for shmat in -lipc" >&5
- ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lipc $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5381 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char shmat();
- int main() {
- shmat()
- ; return 0; }
- EOF
- if { (eval echo configure:5392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- fi
- # Check for libraries that X11R6 Xt/Xaw programs need.
- ac_save_LDFLAGS="$LDFLAGS"
- test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
- # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
- # check for ICE first), but we must link in the order -lSM -lICE or
- # we get undefined symbols. So assume we have SM if we have ICE.
- # These have to be linked with before -lX11, unlike the other
- # libraries we check for below, so use a different variable.
- # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
- echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
- echo "configure:5424: checking for IceConnectionNumber in -lICE" >&5
- ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lICE $X_EXTRA_LIBS $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5430 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char IceConnectionNumber();
- int main() {
- IceConnectionNumber()
- ; return 0; }
- EOF
- if { (eval echo configure:5441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
- else
- echo "$ac_t""no" 1>&6
- fi
- LDFLAGS="$ac_save_LDFLAGS"
- fi
- if test "$no_x" != "yes"; then
- USE_X11="1"
- XLIB=-lX11
- XTLIB=-lXt
- fi
- fi
- # Note that some systems (FreeBSD for example) need an extra library for
- # cuserid
- ac_save_libs="$LIBS"
- LIBS=""
- echo $ac_n "checking for library containing cuserid""... $ac_c" 1>&6
- echo "configure:5481: checking for library containing cuserid" >&5
- ac_func_search_save_LIBS="$LIBS"
- ac_cv_search_cuserid="no"
- cat > conftest.$ac_ext <<EOF
- #line 5486 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char cuserid();
- int main() {
- cuserid()
- ; return 0; }
- EOF
- if { (eval echo configure:5497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- ac_cv_search_cuserid="none required"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- test "$ac_cv_search_cuserid" = "no" && for i in compat; do
- LIBS="-l$i $ac_func_search_save_LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5508 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char cuserid();
- int main() {
- cuserid()
- ; return 0; }
- EOF
- if { (eval echo configure:5519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- ac_cv_search_cuserid="-l$i"
- break
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- done
- LIBS="$ac_func_search_save_LIBS"
- echo "$ac_t""$ac_cv_search_cuserid" 1>&6
- if test "$ac_cv_search_cuserid" != "no"; then
- test "$ac_cv_search_cuserid" = "none required" || LIBS="$ac_cv_search_cuserid $LIBS"
-
- else :
-
- fi
- DBMIEXTRALIB=$LIBS
- LIBS=$ac_save_libs
- # Note: -lxdr -liberty -lws2_32 is for MinGW
- echo $ac_n "checking for xdrmem_create""... $ac_c" 1>&6
- echo "configure:5545: checking for xdrmem_create" >&5
- cat > conftest.$ac_ext <<EOF
- #line 5548 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char xdrmem_create(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char xdrmem_create();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_xdrmem_create) || defined (__stub___xdrmem_create)
- choke me
- #else
- xdrmem_create();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_xdrmem_create=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_xdrmem_create=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'xdrmem_create`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- XDRLIB=
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for xdrmem_create in -lsun""... $ac_c" 1>&6
- echo "configure:5589: checking for xdrmem_create in -lsun" >&5
- ac_lib_var=`echo sun'_'xdrmem_create | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lsun $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5595 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char xdrmem_create();
- int main() {
- xdrmem_create()
- ; return 0; }
- EOF
- if { (eval echo configure:5606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- XDRLIB=-lsun
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for xdrmem_create in -lnsl""... $ac_c" 1>&6
- echo "configure:5625: checking for xdrmem_create in -lnsl" >&5
- ac_lib_var=`echo nsl'_'xdrmem_create | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lnsl $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5631 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char xdrmem_create();
- int main() {
- xdrmem_create()
- ; return 0; }
- EOF
- if { (eval echo configure:5642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- XDRLIB=-lnsl
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for xdrmem_create in -lrpclib""... $ac_c" 1>&6
- echo "configure:5661: checking for xdrmem_create in -lrpclib" >&5
- ac_lib_var=`echo rpclib'_'xdrmem_create | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lrpclib $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5667 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char xdrmem_create();
- int main() {
- xdrmem_create()
- ; return 0; }
- EOF
- if { (eval echo configure:5678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- XDRLIB=-lrpclib
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for xdrmem_create in -lxdr""... $ac_c" 1>&6
- echo "configure:5697: checking for xdrmem_create in -lxdr" >&5
- ac_lib_var=`echo xdr'_'xdrmem_create | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lxdr -liberty -lws2_32 $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5703 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char xdrmem_create();
- int main() {
- xdrmem_create()
- ; return 0; }
- EOF
- if { (eval echo configure:5714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- XDRLIB="-lxdr -liberty -lws2_32"
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate XDR functions." 1>&2; exit 1; }
- fi
- fi
- fi
- fi
- fi
- for ac_func in asprintf
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:5748: checking for $ac_func" >&5
- cat > conftest.$ac_ext <<EOF
- #line 5751 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- # Test if mathlib needs -lm flag or is included with libc
- echo $ac_n "checking for atan""... $ac_c" 1>&6
- echo "configure:5801: checking for atan" >&5
- cat > conftest.$ac_ext <<EOF
- #line 5804 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char atan(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char atan();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_atan) || defined (__stub___atan)
- choke me
- #else
- atan();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_atan=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_atan=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'atan`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- MATHLIB=
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for atan in -lm""... $ac_c" 1>&6
- echo "configure:5845: checking for atan in -lm" >&5
- ac_lib_var=`echo m'_'atan | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lm $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5851 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char atan();
- int main() {
- atan()
- ; return 0; }
- EOF
- if { (eval echo configure:5862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- MATHLIB=-lm
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Failed check for math library." 1>&2; exit 1; }
- fi
- fi
- echo $ac_n "checking for dlsym""... $ac_c" 1>&6
- echo "configure:5889: checking for dlsym" >&5
- cat > conftest.$ac_ext <<EOF
- #line 5892 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char dlsym(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dlsym();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_dlsym) || defined (__stub___dlsym)
- choke me
- #else
- dlsym();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_dlsym=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_dlsym=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'dlsym`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- DLLIB=
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for dlsym in -ldl""... $ac_c" 1>&6
- echo "configure:5933: checking for dlsym in -ldl" >&5
- ac_lib_var=`echo dl'_'dlsym | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ldl $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5939 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dlsym();
- int main() {
- dlsym()
- ; return 0; }
- EOF
- if { (eval echo configure:5950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- DLLIB=-ldl
- else
- echo "$ac_t""no" 1>&6
- DLLIB=
- fi
- fi
- echo $ac_n "checking for iconv""... $ac_c" 1>&6
- echo "configure:5977: checking for iconv" >&5
- cat > conftest.$ac_ext <<EOF
- #line 5980 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char iconv(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char iconv();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_iconv) || defined (__stub___iconv)
- choke me
- #else
- iconv();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:6003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_iconv=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_iconv=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'iconv`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ICONVLIB=
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
- echo "configure:6021: checking for iconv in -liconv" >&5
- ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-liconv $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 6027 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char iconv();
- int main() {
- iconv()
- ; return 0; }
- EOF
- if { (eval echo configure:6038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ICONVLIB=-liconv
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for iconv in -lgiconv""... $ac_c" 1>&6
- echo "configure:6057: checking for iconv in -lgiconv" >&5
- ac_lib_var=`echo giconv'_'iconv | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lgiconv $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 6063 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char iconv();
- int main() {
- iconv()
- ; return 0; }
- EOF
- if { (eval echo configure:6074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ICONVLIB=-lgiconv
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for libiconv""... $ac_c" 1>&6
- echo "configure:6093: checking for libiconv" >&5
- cat > conftest.$ac_ext <<EOF
- #line 6096 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char libiconv(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char libiconv();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_libiconv) || defined (__stub___libiconv)
- choke me
- #else
- libiconv();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:6119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_libiconv=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_libiconv=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'libiconv`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ICONVLIB=
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for libiconv in -liconv""... $ac_c" 1>&6
- echo "configure:6137: checking for libiconv in -liconv" >&5
- ac_lib_var=`echo iconv'_'libiconv | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-liconv $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 6143 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char libiconv();
- int main() {
- libiconv()
- ; return 0; }
- EOF
- if { (eval echo configure:6154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ICONVLIB=-liconv
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for libiconv in -lgiconv""... $ac_c" 1>&6
- echo "configure:6173: checking for libiconv in -lgiconv" >&5
- ac_lib_var=`echo giconv'_'libiconv | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lgiconv $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 6179 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char libiconv();
- int main() {
- libiconv()
- ; return 0; }
- EOF
- if { (eval echo configure:6190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ICONVLIB=-lgiconv
- else
- echo "$ac_t""no" 1>&6
- echo "configure: warning: *** Unable to locate iconv() function." 1>&2
- ICONVLIB=
- fi
- fi
- fi
- fi
- fi
- fi
- have_socket=1
- echo $ac_n "checking for socket""... $ac_c" 1>&6
- echo "configure:6227: checking for socket" >&5
- cat > conftest.$ac_ext <<EOF
- #line 6230 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char socket(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char socket();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_socket) || defined (__stub___socket)
- choke me
- #else
- socket();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:6253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_socket=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_socket=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- SOCKLIB=
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
- echo "configure:6271: checking for socket in -lsocket" >&5
- ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lsocket $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 6277 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char socket();
- int main() {
- socket()
- ; return 0; }
- EOF
- if { (eval echo configure:6288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- SOCKLIB=-lsocket
- else
- echo "$ac_t""no" 1>&6
- have_socket=0
- echo "configure: warning: *** Unable to locate socket() function." 1>&2
- fi
- fi
- if test "$have_socket" = 1 ; then
- HAVE_SOCKET=1
- cat >> confdefs.h <<\EOF
- #define HAVE_SOCKET 1
- EOF
- else
- HAVE_SOCKET=
- fi
- # Mandatory zlib dependency
- ZLIBLIBPATH=
- ZLIBINCPATH=
- ZLIB=
- # With zlib includes directory
- echo $ac_n "checking for location of zlib includes""... $ac_c" 1>&6
- echo "configure:6336: checking for location of zlib includes" >&5
- case "$with_zlib_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-zlib-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_zlib_includes" 1>&6
- if test -n "$with_zlib_includes" ; then
- for dir in $with_zlib_includes; do
- if test -d "$dir"; then
- ZLIBINCPATH="$ZLIBINCPATH -I$dir"
- else
- { echo "configure: error: *** zlib includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$ZLIBINCPATH $CPPFLAGS"
- for ac_hdr in zlib.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:6362: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 6365 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:6370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate zlib includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With zlib library directory
- echo $ac_n "checking for location of zlib library""... $ac_c" 1>&6
- echo "configure:6404: checking for location of zlib library" >&5
- case "$with_zlib_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-zlib-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_zlib_libs" 1>&6
- if test -n "$with_zlib_libs"; then
- for dir in $with_zlib_libs; do
- if test -d "$dir"; then
- ZLIBLIBPATH="$ZLIBLIBPATH -L$dir"
- else
- { echo "configure: error: *** zlib library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$ZLIBLIBPATH $LDFLAGS"
- echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
- echo "configure:6429: checking for deflate in -lz" >&5
- ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lz $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 6435 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char deflate();
- int main() {
- deflate()
- ; return 0; }
- EOF
- if { (eval echo configure:6446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ZLIB="$ZLIB -lz "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate zlib library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- #
- # Done checking zlib
- # Mandatory PROJ dependency
- PROJINC=
- PROJLIB=
- PROJSHARE=
- # With PROJ includes directory
- echo $ac_n "checking for location of External PROJ.4 includes""... $ac_c" 1>&6
- echo "configure:6494: checking for location of External PROJ.4 includes" >&5
- case "$with_proj_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-proj-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_proj_includes" 1>&6
- if test -n "$with_proj_includes" ; then
- for dir in $with_proj_includes; do
- if test -d "$dir"; then
- PROJINC="$PROJINC -I$dir"
- else
- { echo "configure: error: *** External PROJ.4 includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$PROJINC $CPPFLAGS"
- for ac_hdr in proj_api.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:6520: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 6523 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:6528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate External PROJ.4 includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # PROJ version check
- if test "$cross_compiling" = yes; then
- echo "configure: warning: *** Cannot check PROJ.4 version (cross-compiling)." 1>&2
- else
-
- echo $ac_n "checking External PROJ.4 version""... $ac_c" 1>&6
- echo "configure:6565: checking External PROJ.4 version" >&5
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$PROJINC $CPPFLAGS"
- if test "$cross_compiling" = yes; then
- proj_ver=0
- echo "$ac_t""unknown (cross-compiling)" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 6573 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- #include <proj_api.h>
- int main(void) {
- FILE *fp = fopen("conftestdata","w");
- fprintf(fp, "%d", PJ_VERSION);
- return 0;
- }
-
- EOF
- if { (eval echo configure:6585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- proj_ver=`cat conftestdata`
- echo "$ac_t""$proj_ver" 1>&6
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- { echo "configure: error: *** Could not determine External PROJ.4 version." 1>&2; exit 1; }
- fi
- rm -fr conftest*
- fi
- CPPFLAGS=$ac_save_cppflags
- if test `expr "$proj_ver" \< 446` = 1 ; then
- { echo "configure: error: *** PROJ.4.4.6 or later is required." 1>&2; exit 1; }
- fi
- fi
- # With PROJ library directory
- echo $ac_n "checking for location of External PROJ.4 library""... $ac_c" 1>&6
- echo "configure:6610: checking for location of External PROJ.4 library" >&5
- case "$with_proj_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-proj-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_proj_libs" 1>&6
- if test -n "$with_proj_libs"; then
- for dir in $with_proj_libs; do
- if test -d "$dir"; then
- PROJLIB="$PROJLIB -L$dir"
- else
- { echo "configure: error: *** External PROJ.4 library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$PROJLIB $LDFLAGS"
- echo $ac_n "checking for pj_get_def in -lproj""... $ac_c" 1>&6
- echo "configure:6635: checking for pj_get_def in -lproj" >&5
- ac_lib_var=`echo proj'_'pj_get_def | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lproj $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 6641 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char pj_get_def();
- int main() {
- pj_get_def()
- ; return 0; }
- EOF
- if { (eval echo configure:6652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- PROJLIB="$PROJLIB -lproj "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate External PROJ.4 library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- # With PROJ share directory
- echo $ac_n "checking for location of External PROJ.4 data files""... $ac_c" 1>&6
- echo "configure:6686: checking for location of External PROJ.4 data files" >&5
- case "$with_proj_share" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-proj-share." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_proj_share" 1>&6
- if test -n "$with_proj_share" ; then
- if test -d "$with_proj_share"; then
- PROJSHARE="$with_proj_share"
- else
- { echo "configure: error: *** External PROJ.4 data directory $dir does not exist." 1>&2; exit 1; }
- fi
- fi
- if test -z "$PROJSHARE" ; then
- echo "configure: warning: *** External PROJ.4 directory not specified; default will be used" 1>&2
- PROJSHARE=/usr/local/share/proj
- fi
- # LOC_CHECK_SHARE does not work when cross compiling
- if test "$cross_compiling" = "yes" ; then
- echo $ac_n "checking for epsg""... $ac_c" 1>&6
- echo "configure:6710: checking for epsg" >&5
- echo "$ac_t""unknown (cross-compiling)" 1>&6
- else
-
- ac_safe=`echo "$PROJSHARE/epsg" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $PROJSHARE/epsg""... $ac_c" 1>&6
- echo "configure:6717: checking for $PROJSHARE/epsg" >&5
- if test "$cross_compiling" = yes; then
- { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
- else
- if test -r $PROJSHARE/epsg; then
- eval "ac_cv_file_$ac_safe=yes"
- else
- eval "ac_cv_file_$ac_safe=no"
- fi
- fi
- if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- echo "configure: warning: *** Unable to locate PROJ data files." 1>&2
-
- fi
- fi
- # nad2bin needs to be in path for installing datum gridshift files
- # Extract the first word of "nad2bin", so it can be a program name with args.
- set dummy nad2bin; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:6749: checking for $ac_word" >&5
- case "$NAD2BIN" in
- /*)
- ac_cv_path_NAD2BIN="$NAD2BIN" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_NAD2BIN="$NAD2BIN" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_NAD2BIN="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_NAD2BIN" && ac_cv_path_NAD2BIN="no"
- ;;
- esac
- NAD2BIN="$ac_cv_path_NAD2BIN"
- if test -n "$NAD2BIN"; then
- echo "$ac_t""$NAD2BIN" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$NAD2BIN" = "no"; then
- { echo "configure: error: *** Unable to locate nad2bin (needs to be in PATH)." 1>&2; exit 1; }
- fi
- # Done checking PROJ
- # Enable regex option
- echo $ac_n "checking whether to use regex""... $ac_c" 1>&6
- echo "configure:6789: checking whether to use regex" >&5
- echo "$ac_t"""$with_regex"" 1>&6
- case "$with_regex" in
- "no") USE_REGEX= ;;
- "yes") USE_REGEX="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- REGEXINCPATH=
- REGEXLIBPATH=
- REGEXLIB=
- if test -n "$USE_REGEX"; then
- # With regex includes directory
- echo $ac_n "checking for location of regex includes""... $ac_c" 1>&6
- echo "configure:6809: checking for location of regex includes" >&5
- case "$with_regex_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-regex-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_regex_includes" 1>&6
- if test -n "$with_regex_includes" ; then
- for dir in $with_regex_includes; do
- if test -d "$dir"; then
- REGEXINCPATH="$REGEXINCPATH -I$dir"
- else
- { echo "configure: error: *** regex includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$REGEXINCPATH $CPPFLAGS"
- for ac_hdr in regex.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:6835: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 6838 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:6843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate regex includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With regex library directory
- echo $ac_n "checking for location of regex library""... $ac_c" 1>&6
- echo "configure:6877: checking for location of regex library" >&5
- case "$with_regex_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-regex-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_regex_libs" 1>&6
- if test -n "$with_regex_libs"; then
- for dir in $with_regex_libs; do
- if test -d "$dir"; then
- REGEXLIBPATH="$REGEXLIBPATH -L$dir"
- else
- { echo "configure: error: *** regex library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_libs="$LIBS"
- ac_save_ldflags="$LDFLAGS"
- LIBS=" $LIBS"
- LDFLAGS=" $LDFLAGS"
- echo $ac_n "checking for regcomp""... $ac_c" 1>&6
- echo "configure:6902: checking for regcomp" >&5
- cat > conftest.$ac_ext <<EOF
- #line 6905 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char regcomp(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char regcomp();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_regcomp) || defined (__stub___regcomp)
- choke me
- #else
- regcomp();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:6928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_regcomp=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_regcomp=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'regcomp`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- REGEXLIB="$REGEXLIB "
- else
- echo "$ac_t""no" 1>&6
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$REGEXLIBPATH $LDFLAGS"
- echo $ac_n "checking for regcomp in -lregex""... $ac_c" 1>&6
- echo "configure:6955: checking for regcomp in -lregex" >&5
- ac_lib_var=`echo regex'_'regcomp | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lregex $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 6961 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char regcomp();
- int main() {
- regcomp()
- ; return 0; }
- EOF
- if { (eval echo configure:6972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- REGEXLIB="$REGEXLIB -lregex "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate regex library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- fi
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- fi # $USE_REGEX
- # Done checking regex
- # Enable Readline option
- echo $ac_n "checking whether to use Readline""... $ac_c" 1>&6
- echo "configure:7022: checking whether to use Readline" >&5
- echo "$ac_t"""$with_readline"" 1>&6
- case "$with_readline" in
- "no") USE_READLINE= ;;
- "yes") USE_READLINE="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- READLINEINCPATH=
- READLINELIBPATH=
- READLINELIB=
- HISTORYLIB=
- if test -n "$USE_READLINE"; then
- # With Readline includes directory
- echo $ac_n "checking for location of Readline includes""... $ac_c" 1>&6
- echo "configure:7043: checking for location of Readline includes" >&5
- case "$with_readline_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-readline-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_readline_includes" 1>&6
- if test -n "$with_readline_includes" ; then
- for dir in $with_readline_includes; do
- if test -d "$dir"; then
- READLINEINCPATH="$READLINEINCPATH -I$dir"
- else
- { echo "configure: error: *** Readline includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$READLINEINCPATH $CPPFLAGS"
- for ac_hdr in readline/readline.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:7069: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 7072 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:7077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate Readline includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$READLINEINCPATH $CPPFLAGS"
- for ac_hdr in readline/history.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:7113: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 7116 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:7121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate Readline includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With Readline library directory
- echo $ac_n "checking for location of Readline library""... $ac_c" 1>&6
- echo "configure:7155: checking for location of Readline library" >&5
- case "$with_readline_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-readline-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_readline_libs" 1>&6
- if test -n "$with_readline_libs"; then
- for dir in $with_readline_libs; do
- if test -d "$dir"; then
- READLINELIBPATH="$READLINELIBPATH -L$dir"
- else
- { echo "configure: error: *** Readline library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$READLINELIBPATH $LDFLAGS"
- echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
- echo "configure:7180: checking for readline in -lreadline" >&5
- ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lreadline $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7186 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char readline();
- int main() {
- readline()
- ; return 0; }
- EOF
- if { (eval echo configure:7197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- READLINELIB="$READLINELIB -lreadline "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate Readline library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$READLINELIBPATH $LDFLAGS"
- echo $ac_n "checking for add_history in -lhistory""... $ac_c" 1>&6
- echo "configure:7232: checking for add_history in -lhistory" >&5
- ac_lib_var=`echo history'_'add_history | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lhistory $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7238 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char add_history();
- int main() {
- add_history()
- ; return 0; }
- EOF
- if { (eval echo configure:7249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- HISTORYLIB="$HISTORYLIB -lhistory "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate History library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- fi # $USE_READLINE
- # Done checking Readline
- # Enable JPEG option
- echo $ac_n "checking whether to use JPEG""... $ac_c" 1>&6
- echo "configure:7292: checking whether to use JPEG" >&5
- echo "$ac_t"""$with_jpeg"" 1>&6
- case "$with_jpeg" in
- "no") USE_JPEG= ;;
- "yes") USE_JPEG="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- JPEGINCPATH=
- JPEGLIBPATH=
- JPEGLIB=
- if test -n "$USE_JPEG"; then
- # With JPEG includes directory
- echo $ac_n "checking for location of JPEG includes""... $ac_c" 1>&6
- echo "configure:7312: checking for location of JPEG includes" >&5
- case "$with_jpeg_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-jpeg-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_jpeg_includes" 1>&6
- if test -n "$with_jpeg_includes" ; then
- for dir in $with_jpeg_includes; do
- if test -d "$dir"; then
- JPEGINCPATH="$JPEGINCPATH -I$dir"
- else
- { echo "configure: error: *** JPEG includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$JPEGINCPATH $CPPFLAGS"
- for ac_hdr in jpeglib.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:7338: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 7341 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:7346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate JPEG includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With JPEG library directory
- echo $ac_n "checking for location of JPEG library""... $ac_c" 1>&6
- echo "configure:7380: checking for location of JPEG library" >&5
- case "$with_jpeg_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-jpeg-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_jpeg_libs" 1>&6
- if test -n "$with_jpeg_libs"; then
- for dir in $with_jpeg_libs; do
- if test -d "$dir"; then
- JPEGLIBPATH="$JPEGLIBPATH -L$dir"
- else
- { echo "configure: error: *** JPEG library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$JPEGLIBPATH $LDFLAGS"
- echo $ac_n "checking for jpeg_start_compress in -ljpeg""... $ac_c" 1>&6
- echo "configure:7407: checking for jpeg_start_compress in -ljpeg" >&5
- ac_lib_var=`echo jpeg'_'jpeg_start_compress | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ljpeg $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7413 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char jpeg_start_compress();
- int main() {
- jpeg_start_compress()
- ; return 0; }
- EOF
- if { (eval echo configure:7424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- JPEGLIB="$JPEGLIB -ljpeg "
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for jpeg_start_compress in -ljpeg""... $ac_c" 1>&6
- echo "configure:7443: checking for jpeg_start_compress in -ljpeg" >&5
- ac_lib_var=`echo jpeg'_'jpeg_start_compress | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ljpeg $ZLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7449 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char jpeg_start_compress();
- int main() {
- jpeg_start_compress()
- ; return 0; }
- EOF
- if { (eval echo configure:7460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- JPEGLIB="$JPEGLIB -ljpeg $ZLIB"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate JPEG library." 1>&2; exit 1; }
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- fi # $USE_JPEG
- # Done checking JPEG
- # GDAL option
- echo $ac_n "checking whether to use GDAL""... $ac_c" 1>&6
- echo "configure:7509: checking whether to use GDAL" >&5
- GDAL_LIBS=
- GDAL_CFLAGS=
- USE_GDAL=
- USE_OGR=
- if test "`basename xx/$with_gdal`" = "gdal-config" ; then
- GDAL_CONFIG="$with_gdal"
- fi
- if test "$with_gdal" = "no" ; then
- echo "$ac_t""no" 1>&6
- else
- echo "$ac_t""yes" 1>&6
- # Extract the first word of "gdal-config", so it can be a program name with args.
- set dummy gdal-config; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:7527: checking for $ac_word" >&5
- case "$GDAL_CONFIG" in
- /*)
- ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_GDAL_CONFIG="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_GDAL_CONFIG" && ac_cv_path_GDAL_CONFIG="no"
- ;;
- esac
- GDAL_CONFIG="$ac_cv_path_GDAL_CONFIG"
- if test -n "$GDAL_CONFIG"; then
- echo "$ac_t""$GDAL_CONFIG" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$GDAL_CONFIG" = "no" ; then
- { echo "configure: error: *** couldn't find gdal-config" 1>&2; exit 1; }
- fi
- if test "$GDAL_CONFIG" != "" ; then
- GDAL_LIBS=`"$GDAL_CONFIG" --libs`
- GDAL_DEP_LIBS=`"$GDAL_CONFIG" --dep-libs`
- GDAL_CFLAGS=`"$GDAL_CONFIG" --cflags`
- USE_GDAL=1
- if test `"$GDAL_CONFIG" --ogr-enabled` = "yes" ; then
- cat >> confdefs.h <<\EOF
- #define HAVE_OGR 1
- EOF
- USE_OGR=1
- fi
- fi
- GDAL=
- ac_save_libs="$LIBS"
- ac_save_cflags="$CFLAGS"
- LIBS="$LIBS $GDAL_LIBS"
- CFLAGS="$CFLAGS $GDAL_CFLAGS"
- cat > conftest.$ac_ext <<EOF
- #line 7582 "configure"
- #include "confdefs.h"
- #include <gdal.h>
- int main() {
- GDALOpen("foo", GA_ReadOnly);
- ; return 0; }
- EOF
- if { (eval echo configure:7589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- :
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- LIBS="$LIBS $GDAL_DEP_LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7598 "configure"
- #include "confdefs.h"
- #include <gdal.h>
- int main() {
- GDALOpen("foo", GA_ReadOnly);
- ; return 0; }
- EOF
- if { (eval echo configure:7605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- GDAL_LIBS="$GDAL_LIBS $GDAL_DEP_LIBS"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- { echo "configure: error: *** Unable to locate GDAL library." 1>&2; exit 1; }
-
- fi
- rm -f conftest*
-
- fi
- rm -f conftest*
- LIBS=${ac_save_libs}
- CFLAGS=${ac_save_cflags}
- cat >> confdefs.h <<\EOF
- #define HAVE_GDAL 1
- EOF
- fi
- # GEOS option
- echo $ac_n "checking whether to use GEOS""... $ac_c" 1>&6
- echo "configure:7637: checking whether to use GEOS" >&5
- GEOS_LIBS=
- GGEOS_CFLAGS=
- USE_GEOS=
- if test "`basename xx/$with_geos`" = "geos-config" ; then
- GEOS_CONFIG="$with_geos"
- fi
- if test "$with_geos" = "no" ; then
- echo "$ac_t""no" 1>&6
- else
- echo "$ac_t""yes" 1>&6
- # Extract the first word of "geos-config", so it can be a program name with args.
- set dummy geos-config; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:7654: checking for $ac_word" >&5
- case "$GEOS_CONFIG" in
- /*)
- ac_cv_path_GEOS_CONFIG="$GEOS_CONFIG" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_GEOS_CONFIG="$GEOS_CONFIG" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_GEOS_CONFIG="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_GEOS_CONFIG" && ac_cv_path_GEOS_CONFIG="no"
- ;;
- esac
- GEOS_CONFIG="$ac_cv_path_GEOS_CONFIG"
- if test -n "$GEOS_CONFIG"; then
- echo "$ac_t""$GEOS_CONFIG" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$GEOS_CONFIG" = "no" ; then
- { echo "configure: error: *** couldn't find geos-config" 1>&2; exit 1; }
- fi
-
- if test "$GEOS_CONFIG" != "" ; then
- GEOS_LIBS=`"$GEOS_CONFIG" --libs`
- GEOS_CFLAGS=`"$GEOS_CONFIG" --cflags`
- USE_GEOS=1
- fi
-
-
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$GEOS_CFLAGS $CPPFLAGS"
- for ac_hdr in geos_c.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:7702: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 7705 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:7710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate GEOS includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
-
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$GEOS_LIBS $LDFLAGS"
- echo $ac_n "checking for GEOSGeom_createLinearRing in -lgeos""... $ac_c" 1>&6
- echo "configure:7745: checking for GEOSGeom_createLinearRing in -lgeos" >&5
- ac_lib_var=`echo geos'_'GEOSGeom_createLinearRing | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lgeos $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7751 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char GEOSGeom_createLinearRing();
- int main() {
- GEOSGeom_createLinearRing()
- ; return 0; }
- EOF
- if { (eval echo configure:7762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- GEOS_LIBS="$GEOS_LIBS -lgeos "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate GEOS library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- cat >> confdefs.h <<\EOF
- #define HAVE_GEOS 1
- EOF
- fi
- # Enable TIFF option
- echo $ac_n "checking whether to use TIFF""... $ac_c" 1>&6
- echo "configure:7805: checking whether to use TIFF" >&5
- echo "$ac_t"""$with_tiff"" 1>&6
- case "$with_tiff" in
- "no") USE_TIFF= ;;
- "yes") USE_TIFF="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- TIFF_INCLUDE_DIRS=
- TIFF_LIBRARY_DIRS=
- TIFFLIB=
- if test -n "$USE_TIFF"; then
- # With TIFF includes directory
- echo $ac_n "checking for location of TIFF includes""... $ac_c" 1>&6
- echo "configure:7825: checking for location of TIFF includes" >&5
- case "$with_tiff_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-tiff-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_tiff_includes" 1>&6
- if test -n "$with_tiff_includes" ; then
- for dir in $with_tiff_includes; do
- if test -d "$dir"; then
- TIFF_INCLUDE_DIRS="$TIFF_INCLUDE_DIRS -I$dir"
- else
- { echo "configure: error: *** TIFF includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$TIFF_INCLUDE_DIRS $CPPFLAGS"
- for ac_hdr in tiffio.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:7851: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 7854 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:7859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate TIFF includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With TIFF library directory
- echo $ac_n "checking for location of TIFF library""... $ac_c" 1>&6
- echo "configure:7893: checking for location of TIFF library" >&5
- case "$with_tiff_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-tiff-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_tiff_libs" 1>&6
- if test -n "$with_tiff_libs"; then
- for dir in $with_tiff_libs; do
- if test -d "$dir"; then
- TIFF_LIBRARY_DIRS="$TIFF_LIBRARY_DIRS -L$dir"
- else
- { echo "configure: error: *** TIFF library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$TIFF_LIBRARY_DIRS $LDFLAGS"
- echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
- echo "configure:7924: checking for TIFFOpen in -ltiff" >&5
- ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltiff $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7930 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char TIFFOpen();
- int main() {
- TIFFOpen()
- ; return 0; }
- EOF
- if { (eval echo configure:7941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TIFFLIB="$TIFFLIB -ltiff "
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
- echo "configure:7960: checking for TIFFOpen in -ltiff" >&5
- ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltiff $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7966 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char TIFFOpen();
- int main() {
- TIFFOpen()
- ; return 0; }
- EOF
- if { (eval echo configure:7977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TIFFLIB="$TIFFLIB -ltiff $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
- echo "configure:7996: checking for TIFFOpen in -ltiff" >&5
- ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltiff $ZLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8002 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char TIFFOpen();
- int main() {
- TIFFOpen()
- ; return 0; }
- EOF
- if { (eval echo configure:8013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TIFFLIB="$TIFFLIB -ltiff $ZLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
- echo "configure:8032: checking for TIFFOpen in -ltiff" >&5
- ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltiff $ZLIB $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8038 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char TIFFOpen();
- int main() {
- TIFFOpen()
- ; return 0; }
- EOF
- if { (eval echo configure:8049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TIFFLIB="$TIFFLIB -ltiff $ZLIB $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
- echo "configure:8068: checking for TIFFOpen in -ltiff" >&5
- ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltiff $JPEGLIBPATH $JPEGLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8074 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char TIFFOpen();
- int main() {
- TIFFOpen()
- ; return 0; }
- EOF
- if { (eval echo configure:8085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TIFFLIB="$TIFFLIB -ltiff $JPEGLIBPATH $JPEGLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
- echo "configure:8104: checking for TIFFOpen in -ltiff" >&5
- ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltiff $JPEGLIBPATH $JPEGLIB $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8110 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char TIFFOpen();
- int main() {
- TIFFOpen()
- ; return 0; }
- EOF
- if { (eval echo configure:8121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TIFFLIB="$TIFFLIB -ltiff $JPEGLIBPATH $JPEGLIB $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
- echo "configure:8140: checking for TIFFOpen in -ltiff" >&5
- ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltiff $JPEGLIBPATH $JPEGLIB $ZLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8146 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char TIFFOpen();
- int main() {
- TIFFOpen()
- ; return 0; }
- EOF
- if { (eval echo configure:8157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TIFFLIB="$TIFFLIB -ltiff $JPEGLIBPATH $JPEGLIB $ZLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
- echo "configure:8176: checking for TIFFOpen in -ltiff" >&5
- ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltiff $JPEGLIBPATH $JPEGLIB $ZLIB $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8182 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char TIFFOpen();
- int main() {
- TIFFOpen()
- ; return 0; }
- EOF
- if { (eval echo configure:8193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TIFFLIB="$TIFFLIB -ltiff $JPEGLIBPATH $JPEGLIB $ZLIB $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate TIFF library." 1>&2; exit 1; }
- fi
- fi
- fi
- fi
- fi
- fi
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- fi # $USE_TIFF
- # Done checking TIFF
- # Enable PNG option
- echo $ac_n "checking whether to use PNG""... $ac_c" 1>&6
- echo "configure:8291: checking whether to use PNG" >&5
- echo "$ac_t"""$with_png"" 1>&6
- case "$with_png" in
- "no") USE_PNG= ;;
- "yes") USE_PNG="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- PNGINC=
- PNGLIB=
- if test -n "$USE_PNG"; then
- # With PNG includes directory
- echo $ac_n "checking for location of PNG includes""... $ac_c" 1>&6
- echo "configure:8310: checking for location of PNG includes" >&5
- case "$with_png_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-png-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_png_includes" 1>&6
- if test -n "$with_png_includes" ; then
- for dir in $with_png_includes; do
- if test -d "$dir"; then
- PNGINC="$PNGINC -I$dir"
- else
- { echo "configure: error: *** PNG includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$PNGINC $CPPFLAGS"
- for ac_hdr in png.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:8336: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 8339 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:8344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate PNG includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With PNG library directory
- echo $ac_n "checking for location of PNG library""... $ac_c" 1>&6
- echo "configure:8378: checking for location of PNG library" >&5
- case "$with_png_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-png-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_png_libs" 1>&6
- if test -n "$with_png_libs"; then
- for dir in $with_png_libs; do
- if test -d "$dir"; then
- PNGLIB="$PNGLIB -L$dir"
- else
- { echo "configure: error: *** PNG library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$PNGLIB $LDFLAGS"
- echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
- echo "configure:8403: checking for png_read_image in -lpng" >&5
- ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lpng $ZLIB $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8409 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char png_read_image();
- int main() {
- png_read_image()
- ; return 0; }
- EOF
- if { (eval echo configure:8420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- PNGLIB="$PNGLIB -lpng $ZLIB $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate PNG library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- fi # $USE_PNG
- # Done checking PNG
- # Enable PostgreSQL option
- echo $ac_n "checking whether to use PostgreSQL""... $ac_c" 1>&6
- echo "configure:8462: checking whether to use PostgreSQL" >&5
- echo "$ac_t"""$with_postgres"" 1>&6
- case "$with_postgres" in
- "no") USE_POSTGRES= ;;
- "yes") USE_POSTGRES="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- if test -n "$USE_POSTGRES"; then
- cat >> confdefs.h <<\EOF
- #define HAVE_POSTGRES 1
- EOF
- fi # $USE_POSTGRES
- PQINCPATH=
- PQLIBPATH=
- PQLIB=
- if test -n "$USE_POSTGRES"; then
- # With PostgreSQL includes directory
- echo $ac_n "checking for location of PostgreSQL includes""... $ac_c" 1>&6
- echo "configure:8489: checking for location of PostgreSQL includes" >&5
- case "$with_postgres_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-postgres-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_postgres_includes" 1>&6
- if test -n "$with_postgres_includes" ; then
- for dir in $with_postgres_includes; do
- if test -d "$dir"; then
- PQINCPATH="$PQINCPATH -I$dir"
- else
- { echo "configure: error: *** PostgreSQL includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$PQINCPATH $CPPFLAGS"
- for ac_hdr in libpq-fe.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:8515: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 8518 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:8523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate PostgreSQL includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- fi # $USE_POSTGRES
- if test -n "$USE_POSTGRES"; then
- # With PostgreSQL library directory
- echo $ac_n "checking for location of PostgreSQL library""... $ac_c" 1>&6
- echo "configure:8561: checking for location of PostgreSQL library" >&5
- case "$with_postgres_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-postgres-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_postgres_libs" 1>&6
- if test -n "$with_postgres_libs"; then
- for dir in $with_postgres_libs; do
- if test -d "$dir"; then
- PQLIBPATH="$PQLIBPATH -L$dir"
- else
- { echo "configure: error: *** PostgreSQL library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$PQLIBPATH $LDFLAGS"
- echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
- echo "configure:8590: checking for PQsetdbLogin in -lpq" >&5
- ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lpq $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8596 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char PQsetdbLogin();
- int main() {
- PQsetdbLogin()
- ; return 0; }
- EOF
- if { (eval echo configure:8607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- PQLIB="$PQLIB -lpq "
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
- echo "configure:8626: checking for PQsetdbLogin in -lpq" >&5
- ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lpq -lssl -lcrypto $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8632 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char PQsetdbLogin();
- int main() {
- PQsetdbLogin()
- ; return 0; }
- EOF
- if { (eval echo configure:8643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- PQLIB="$PQLIB -lpq -lssl -lcrypto"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
- echo "configure:8662: checking for PQsetdbLogin in -lpq" >&5
- ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lpq -lcrypt $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8668 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char PQsetdbLogin();
- int main() {
- PQsetdbLogin()
- ; return 0; }
- EOF
- if { (eval echo configure:8679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- PQLIB="$PQLIB -lpq -lcrypt"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
- echo "configure:8698: checking for PQsetdbLogin in -lpq" >&5
- ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lpq -lcrypt -lssl -lcrypto $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8704 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char PQsetdbLogin();
- int main() {
- PQsetdbLogin()
- ; return 0; }
- EOF
- if { (eval echo configure:8715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- PQLIB="$PQLIB -lpq -lcrypt -lssl -lcrypto"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate PostgreSQL library." 1>&2; exit 1; }
- fi
- fi
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$LDFLAGS $PQLIBPATH"
- echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
- echo "configure:8772: checking for PQcmdTuples in -lpq" >&5
- ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lpq $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8778 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char PQcmdTuples();
- int main() {
- PQcmdTuples()
- ; return 0; }
- EOF
- if { (eval echo configure:8789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<\EOF
- #define HAVE_PQCMDTUPLES 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
- echo "configure:8811: checking for PQcmdTuples in -lpq" >&5
- ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lpq -lcrypt $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8817 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char PQcmdTuples();
- int main() {
- PQcmdTuples()
- ; return 0; }
- EOF
- if { (eval echo configure:8828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<\EOF
- #define HAVE_PQCMDTUPLES 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- fi # $USE_POSTGRES
- # Done checking PostgreSQL
- # Enable MySQL option
- echo $ac_n "checking whether to use MySQL""... $ac_c" 1>&6
- echo "configure:8871: checking whether to use MySQL" >&5
- echo "$ac_t"""$with_mysql"" 1>&6
- case "$with_mysql" in
- "no") USE_MYSQL= ;;
- "yes") USE_MYSQL="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- MYSQLINCPATH=
- MYSQLLIBPATH=
- MYSQLLIB=
- if test -n "$USE_MYSQL"; then
- # With MySQL includes directory
- echo $ac_n "checking for location of MySQL includes""... $ac_c" 1>&6
- echo "configure:8891: checking for location of MySQL includes" >&5
- case "$with_mysql_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-mysql-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_mysql_includes" 1>&6
- if test -n "$with_mysql_includes" ; then
- for dir in $with_mysql_includes; do
- if test -d "$dir"; then
- MYSQLINCPATH="$MYSQLINCPATH -I$dir"
- else
- { echo "configure: error: *** MySQL includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$MYSQLINCPATH $CPPFLAGS"
- for ac_hdr in mysql.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:8917: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 8920 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:8925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate MySQL includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- fi # $USE_MYSQL
- if test -n "$USE_MYSQL"; then
- # With MySQL library directory
-
- echo $ac_n "checking for location of MySQL library""... $ac_c" 1>&6
- echo "configure:8962: checking for location of MySQL library" >&5
- case "$with_mysql_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-mysql-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_mysql_libs" 1>&6
- if test -n "$with_mysql_libs"; then
- for dir in $with_mysql_libs; do
- if test -d "$dir"; then
- MYSQLLIBPATH="$MYSQLLIBPATH -L$dir"
- else
- { echo "configure: error: *** MySQL library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
-
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$MYSQLLIBPATH $LDFLAGS"
- echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
- echo "configure:8993: checking for mysql_query in -lmysqlclient" >&5
- ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lmysqlclient $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8999 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char mysql_query();
- int main() {
- mysql_query()
- ; return 0; }
- EOF
- if { (eval echo configure:9010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- MYSQLLIB="$MYSQLLIB -lmysqlclient "
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
- echo "configure:9029: checking for mysql_query in -lmysqlclient" >&5
- ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lmysqlclient $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 9035 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char mysql_query();
- int main() {
- mysql_query()
- ; return 0; }
- EOF
- if { (eval echo configure:9046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- MYSQLLIB="$MYSQLLIB -lmysqlclient $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
- echo "configure:9065: checking for mysql_query in -lmysqlclient" >&5
- ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lmysqlclient $SOCKLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 9071 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char mysql_query();
- int main() {
- mysql_query()
- ; return 0; }
- EOF
- if { (eval echo configure:9082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- MYSQLLIB="$MYSQLLIB -lmysqlclient $SOCKLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
- echo "configure:9101: checking for mysql_query in -lmysqlclient" >&5
- ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lmysqlclient $SOCKLIB $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 9107 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char mysql_query();
- int main() {
- mysql_query()
- ; return 0; }
- EOF
- if { (eval echo configure:9118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- MYSQLLIB="$MYSQLLIB -lmysqlclient $SOCKLIB $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
- echo "configure:9137: checking for mysql_query in -lmysqlclient" >&5
- ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lmysqlclient $ZLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 9143 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char mysql_query();
- int main() {
- mysql_query()
- ; return 0; }
- EOF
- if { (eval echo configure:9154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
- echo "configure:9173: checking for mysql_query in -lmysqlclient" >&5
- ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lmysqlclient $ZLIB $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 9179 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char mysql_query();
- int main() {
- mysql_query()
- ; return 0; }
- EOF
- if { (eval echo configure:9190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
- echo "configure:9209: checking for mysql_query in -lmysqlclient" >&5
- ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lmysqlclient $ZLIB $SOCKLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 9215 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char mysql_query();
- int main() {
- mysql_query()
- ; return 0; }
- EOF
- if { (eval echo configure:9226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $SOCKLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
- echo "configure:9245: checking for mysql_query in -lmysqlclient" >&5
- ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lmysqlclient $ZLIB $SOCKLIB $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 9251 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char mysql_query();
- int main() {
- mysql_query()
- ; return 0; }
- EOF
- if { (eval echo configure:9262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $SOCKLIB $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate MySQL library." 1>&2; exit 1; }
- fi
- fi
- fi
- fi
- fi
- fi
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- # Check for libmysqld (for embeded version of the driver)
- # Extract the first word of "mysql_config", so it can be a program name with args.
- set dummy mysql_config; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:9352: checking for $ac_word" >&5
- case "$MYSQLD_CONFIG" in
- /*)
- ac_cv_path_MYSQLD_CONFIG="$MYSQLD_CONFIG" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_MYSQLD_CONFIG="$MYSQLD_CONFIG" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_MYSQLD_CONFIG="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_MYSQLD_CONFIG" && ac_cv_path_MYSQLD_CONFIG="no"
- ;;
- esac
- MYSQLD_CONFIG="$ac_cv_path_MYSQLD_CONFIG"
- if test -n "$MYSQLD_CONFIG"; then
- echo "$ac_t""$MYSQLD_CONFIG" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$MYSQLD_CONFIG" = "no" ; then
- { echo "configure: error: *** couldn't find mysql_config" 1>&2; exit 1; }
- fi
- if test "$MYSQLD_CONFIG" != "" ; then
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
- ac_save_libs="$LIBS"
- MYSQLDLIB=`"$MYSQLD_CONFIG" --libmysqld-libs`
- LIBS="$MYSQLDLIB $LIBS"
- echo $ac_n "checking for mysql_server_init""... $ac_c" 1>&6
- echo "configure:9401: checking for mysql_server_init" >&5
- cat > conftest.$ac_ext <<EOF
- #line 9404 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char mysql_server_init(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char mysql_server_init();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_mysql_server_init) || defined (__stub___mysql_server_init)
- choke me
- #else
- mysql_server_init();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:9430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_mysql_server_init=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_mysql_server_init=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'mysql_server_init`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- MYSQLDLIB="";
- echo "configure: warning: libmysqld not found" 1>&2
- fi
- LIBS=$ac_save_libs
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
- fi
- fi # $USE_MYSQL
- # Done checking MySQL
- # Enable SQLite option
- echo $ac_n "checking whether to use SQLite""... $ac_c" 1>&6
- echo "configure:9482: checking whether to use SQLite" >&5
- echo "$ac_t"""$with_sqlite"" 1>&6
- case "$with_sqlite" in
- "no") USE_SQLITE= ;;
- "yes") USE_SQLITE="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- SQLITEINCPATH=
- SQLITELIBPATH=
- SQLITELIB=
- if test -n "$USE_SQLITE"; then
- # With SQLite includes directory
- echo $ac_n "checking for location of SQLite includes""... $ac_c" 1>&6
- echo "configure:9502: checking for location of SQLite includes" >&5
- case "$with_sqlite_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-sqlite-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_sqlite_includes" 1>&6
- if test -n "$with_sqlite_includes" ; then
- for dir in $with_sqlite_includes; do
- if test -d "$dir"; then
- SQLITEINCPATH="$SQLITEINCPATH -I$dir"
- else
- { echo "configure: error: *** SQLite includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$SQLITEINCPATH $CPPFLAGS"
- for ac_hdr in sqlite3.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:9528: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 9531 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:9536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate SQLite includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- cat >> confdefs.h <<\EOF
- #define HAVE_SQLITE 1
- EOF
- fi # $USE_SQLITE
- if test -n "$USE_SQLITE"; then
- # With SQLite library directory
- echo $ac_n "checking for location of SQLite library""... $ac_c" 1>&6
- echo "configure:9579: checking for location of SQLite library" >&5
- case "$with_sqlite_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-sqlite-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_sqlite_libs" 1>&6
- if test -n "$with_sqlite_libs"; then
- for dir in $with_sqlite_libs; do
- if test -d "$dir"; then
- SQLITELIBPATH="$SQLITELIBPATH -L$dir"
- else
- { echo "configure: error: *** SQLite library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$SQLITELIBPATH $LDFLAGS"
- echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
- echo "configure:9606: checking for sqlite3_open in -lsqlite3" >&5
- ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lsqlite3 $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 9612 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char sqlite3_open();
- int main() {
- sqlite3_open()
- ; return 0; }
- EOF
- if { (eval echo configure:9623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- SQLITELIB="$SQLITELIB -lsqlite3 "
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
- echo "configure:9642: checking for sqlite3_open in -lsqlite3" >&5
- ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lsqlite3 $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 9648 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char sqlite3_open();
- int main() {
- sqlite3_open()
- ; return 0; }
- EOF
- if { (eval echo configure:9659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- SQLITELIB="$SQLITELIB -lsqlite3 $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate SQLite library." 1>&2; exit 1; }
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- fi # $USE_SQLITE
- # Done checking SQLite
- # Enable FFMPEG option
- echo $ac_n "checking whether to use FFMPEG""... $ac_c" 1>&6
- echo "configure:9712: checking whether to use FFMPEG" >&5
- echo "$ac_t"""$with_ffmpeg"" 1>&6
- case "$with_ffmpeg" in
- "no") USE_FFMPEG= ;;
- "yes") USE_FFMPEG="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- FFMPEGINCPATH=
- FFMPEGLIBPATH=
- FFMPEGLIB=
- if test -n "$USE_FFMPEG"; then
- # With FFMPEG includes directory
- echo $ac_n "checking for location of FFMPEG includes""... $ac_c" 1>&6
- echo "configure:9732: checking for location of FFMPEG includes" >&5
- case "$with_ffmpeg_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-ffmpeg-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_ffmpeg_includes" 1>&6
- if test -n "$with_ffmpeg_includes" ; then
- for dir in $with_ffmpeg_includes; do
- if test -d "$dir"; then
- FFMPEGINCPATH="$FFMPEGINCPATH -I$dir"
- else
- { echo "configure: error: *** FFMPEG includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$FFMPEGINCPATH $CPPFLAGS"
- for ac_hdr in avcodec.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:9758: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 9761 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:9766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate FFMPEG includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$FFMPEGINCPATH $CPPFLAGS"
- for ac_hdr in avformat.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:9802: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 9805 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:9810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate FFMPEG includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$FFMPEGINCPATH $CPPFLAGS"
- for ac_hdr in swscale.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:9846: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 9849 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:9854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate FFMPEG includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- cat >> confdefs.h <<\EOF
- #define HAVE_FFMPEG 1
- EOF
- fi # $USE_FFMPEG
- if test -n "$USE_FFMPEG"; then
- # With FFMPEG library directory
- echo $ac_n "checking for location of FFMPEG library""... $ac_c" 1>&6
- echo "configure:9897: checking for location of FFMPEG library" >&5
- case "$with_ffmpeg_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-ffmpeg-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_ffmpeg_libs" 1>&6
- if test -n "$with_ffmpeg_libs"; then
- for dir in $with_ffmpeg_libs; do
- if test -d "$dir"; then
- FFMPEGLIBPATH="$FFMPEGLIBPATH -L$dir"
- else
- { echo "configure: error: *** FFMPEG library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$FFMPEGLIBPATH $LDFLAGS"
- echo $ac_n "checking for av_free in -lavutil""... $ac_c" 1>&6
- echo "configure:9924: checking for av_free in -lavutil" >&5
- ac_lib_var=`echo avutil'_'av_free | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lavutil $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 9930 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char av_free();
- int main() {
- av_free()
- ; return 0; }
- EOF
- if { (eval echo configure:9941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- FFMPEGLIB="$FFMPEGLIB -lavutil "
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for av_free in -lavutil""... $ac_c" 1>&6
- echo "configure:9960: checking for av_free in -lavutil" >&5
- ac_lib_var=`echo avutil'_'av_free | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lavutil $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 9966 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char av_free();
- int main() {
- av_free()
- ; return 0; }
- EOF
- if { (eval echo configure:9977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- FFMPEGLIB="$FFMPEGLIB -lavutil $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate FFMPEG library." 1>&2; exit 1; }
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$FFMPEGLIBPATH $LDFLAGS"
- echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
- echo "configure:10022: checking for avcodec_init in -lavcodec" >&5
- ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lavcodec $FFMPEGLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 10028 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char avcodec_init();
- int main() {
- avcodec_init()
- ; return 0; }
- EOF
- if { (eval echo configure:10039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- FFMPEGLIB="$FFMPEGLIB -lavcodec "
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
- echo "configure:10058: checking for avcodec_init in -lavcodec" >&5
- ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lavcodec $FFMPEGLIB $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 10064 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char avcodec_init();
- int main() {
- avcodec_init()
- ; return 0; }
- EOF
- if { (eval echo configure:10075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- FFMPEGLIB="$FFMPEGLIB -lavcodec $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate FFMPEG library." 1>&2; exit 1; }
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$FFMPEGLIBPATH $LDFLAGS"
- echo $ac_n "checking for av_set_parameters in -lavformat""... $ac_c" 1>&6
- echo "configure:10120: checking for av_set_parameters in -lavformat" >&5
- ac_lib_var=`echo avformat'_'av_set_parameters | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lavformat $FFMPEGLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 10126 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char av_set_parameters();
- int main() {
- av_set_parameters()
- ; return 0; }
- EOF
- if { (eval echo configure:10137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- FFMPEGLIB="$FFMPEGLIB -lavformat "
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for av_set_parameters in -lavformat""... $ac_c" 1>&6
- echo "configure:10156: checking for av_set_parameters in -lavformat" >&5
- ac_lib_var=`echo avformat'_'av_set_parameters | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lavformat $FFMPEGLIB $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 10162 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char av_set_parameters();
- int main() {
- av_set_parameters()
- ; return 0; }
- EOF
- if { (eval echo configure:10173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- FFMPEGLIB="$FFMPEGLIB -lavformat $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate FFMPEG library." 1>&2; exit 1; }
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- fi # $USE_FFMPEG
- # Done checking FFMPEG
- # Enable OpenGL option
- OPENGLINC=
- OPENGLLIB=
- OPENGLULIB=
- USE_OPENGL=
- OPENGL_X11=
- OPENGL_AQUA=
- OPENGL_WINDOWS=
- echo $ac_n "checking whether to use OpenGL""... $ac_c" 1>&6
- echo "configure:10232: checking whether to use OpenGL" >&5
- echo "$ac_t"""$with_opengl"" 1>&6
- case "$with_opengl" in
- n|no)
- OPENGL_TYPE=none
- ;;
- y|yes|x|x11|glx)
- OPENGL_TYPE=X11
- USE_OPENGL=1
- OPENGL_X11=1
- ;;
- aqua|mac|osx|macosx|agl)
- OPENGL_TYPE=Aqua
- USE_OPENGL=1
- OPENGL_AQUA=1
- ;;
- win|windows|mswin|wgl)
- OPENGL_TYPE=Windows
- USE_OPENGL=1
- OPENGL_WINDOWS=1
- ;;
- *)
- { echo "configure: error: *** Valid arguments for --with-opengl= are yes,no,x11,aqua,windows." 1>&2; exit 1; }
- ;;
- esac
- if test -n "$USE_OPENGL" ; then
- if test "$OPENGL_X11" = 1 ; then
- # With OpenGL includes directory
- echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
- echo "configure:10266: checking for location of OpenGL includes" >&5
- case "$with_opengl_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_opengl_includes" 1>&6
- if test -n "$with_opengl_includes" ; then
- for dir in $with_opengl_includes; do
- if test -d "$dir"; then
- OPENGLINC="$OPENGLINC -I$dir"
- else
- { echo "configure: error: *** OpenGL includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$OPENGLINC $X_CFLAGS $CPPFLAGS"
- for ac_hdr in GL/gl.h GL/glu.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:10292: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 10295 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:10300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With OpenGL library directory
- echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
- echo "configure:10334: checking for location of OpenGL library" >&5
- case "$with_opengl_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-opengl-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_opengl_libs" 1>&6
- if test -n "$with_opengl_libs"; then
- for dir in $with_opengl_libs; do
- if test -d "$dir"; then
- OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
- else
- { echo "configure: error: *** OpenGL library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
- echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
- echo "configure:10363: checking for glBegin in -lGL" >&5
- ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 10369 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char glBegin();
- int main() {
- glBegin()
- ; return 0; }
- EOF
- if { (eval echo configure:10380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- OPENGLLIB="$OPENGLLIB -lGL "
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
- echo "configure:10399: checking for glBegin in -lGL" >&5
- ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lXext $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 10405 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char glBegin();
- int main() {
- glBegin()
- ; return 0; }
- EOF
- if { (eval echo configure:10416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- OPENGLLIB="$OPENGLLIB -lGL -lXext"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
- echo "configure:10435: checking for glBegin in -lGL" >&5
- ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 10441 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char glBegin();
- int main() {
- glBegin()
- ; return 0; }
- EOF
- if { (eval echo configure:10452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- OPENGLLIB="$OPENGLLIB -lGL -lpthread"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
- echo "configure:10471: checking for glBegin in -lGL" >&5
- ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread -lXext $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 10477 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char glBegin();
- int main() {
- glBegin()
- ; return 0; }
- EOF
- if { (eval echo configure:10488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- OPENGLLIB="$OPENGLLIB -lGL -lpthread -lXext"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
- fi
- fi
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
- echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
- echo "configure:10550: checking for gluBeginCurve in -lGLU" >&5
- ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 10556 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gluBeginCurve();
- int main() {
- gluBeginCurve()
- ; return 0; }
- EOF
- if { (eval echo configure:10567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- OPENGLULIB="$OPENGLULIB -lGLU "
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
- echo "configure:10586: checking for gluBeginCurve in -lGLU" >&5
- ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lstdc++ $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 10592 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gluBeginCurve();
- int main() {
- gluBeginCurve()
- ; return 0; }
- EOF
- if { (eval echo configure:10603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- OPENGLULIB="$OPENGLULIB -lGLU -lstdc++"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
- OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
- ac_save_libs="$LIBS"
- ac_save_ldflags="$LDFLAGS"
- LIBS=" $OPENGLLIB $LIBS"
- LDFLAGS=" $LDFLAGS"
- echo $ac_n "checking for glXCreatePbuffer""... $ac_c" 1>&6
- echo "configure:10650: checking for glXCreatePbuffer" >&5
- cat > conftest.$ac_ext <<EOF
- #line 10653 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char glXCreatePbuffer(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char glXCreatePbuffer();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_glXCreatePbuffer) || defined (__stub___glXCreatePbuffer)
- choke me
- #else
- glXCreatePbuffer();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:10676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_glXCreatePbuffer=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_glXCreatePbuffer=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'glXCreatePbuffer`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- cat >> confdefs.h <<\EOF
- #define HAVE_PBUFFERS 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate ." 1>&2; exit 1; }
- fi
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- ac_save_libs="$LIBS"
- ac_save_ldflags="$LDFLAGS"
- LIBS=" $OPENGLLIB $LIBS"
- LDFLAGS=" $LDFLAGS"
- echo $ac_n "checking for glXCreateGLXPixmap""... $ac_c" 1>&6
- echo "configure:10713: checking for glXCreateGLXPixmap" >&5
- cat > conftest.$ac_ext <<EOF
- #line 10716 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char glXCreateGLXPixmap(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char glXCreateGLXPixmap();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_glXCreateGLXPixmap) || defined (__stub___glXCreateGLXPixmap)
- choke me
- #else
- glXCreateGLXPixmap();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:10739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_glXCreateGLXPixmap=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_glXCreateGLXPixmap=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'glXCreateGLXPixmap`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- cat >> confdefs.h <<\EOF
- #define HAVE_PIXMAPS 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate ." 1>&2; exit 1; }
- fi
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- cat >> confdefs.h <<\EOF
- #define OPENGL_X11 1
- EOF
- fi # $OPENGL_X11
- if test "$OPENGL_AQUA" = 1 ; then
- echo $ac_n "checking for location of OpenGL framework""... $ac_c" 1>&6
- echo "configure:10782: checking for location of OpenGL framework" >&5
- case "$with_opengl_framework" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-opengl-framework." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_opengl_framework" 1>&6
- if test -n "$with_opengl_framework"; then
- if test -d $with_opengl_framework; then
- OPENGLPATH="$OPENGLPATH -F$with_opengl_framework"
- else
- { echo "configure: error: *** OpenGL framework directory $dir does not exist." 1>&2; exit 1; }
- fi
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$OPENGLPATH $CPPFLAGS"
- for ac_hdr in OpenGL/gl.h OpenGL/glu.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:10806: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 10809 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:10814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- ac_save_libs="$LIBS"
- ac_save_ldflags="$LDFLAGS"
- LIBS="-framework OpenGL -framework AGL -framework ApplicationServices $LIBS"
- LDFLAGS="$OPENGLPATH $LDFLAGS"
- echo $ac_n "checking for glBegin""... $ac_c" 1>&6
- echo "configure:10850: checking for glBegin" >&5
- cat > conftest.$ac_ext <<EOF
- #line 10853 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char glBegin(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char glBegin();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_glBegin) || defined (__stub___glBegin)
- choke me
- #else
- glBegin();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:10876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_glBegin=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_glBegin=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'glBegin`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- OPENGLLIB="$OPENGLLIB -framework OpenGL -framework AGL -framework ApplicationServices"
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate glBegin." 1>&2; exit 1; }
- fi
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- ac_save_libs="$LIBS"
- ac_save_ldflags="$LDFLAGS"
- LIBS=" $OPENGLLIB $LIBS"
- LDFLAGS="$OPENGLPATH $LDFLAGS"
- echo $ac_n "checking for gluBeginCurve""... $ac_c" 1>&6
- echo "configure:10913: checking for gluBeginCurve" >&5
- cat > conftest.$ac_ext <<EOF
- #line 10916 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char gluBeginCurve(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gluBeginCurve();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_gluBeginCurve) || defined (__stub___gluBeginCurve)
- choke me
- #else
- gluBeginCurve();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:10939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_gluBeginCurve=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_gluBeginCurve=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'gluBeginCurve`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- OPENGLLIB="$OPENGLLIB "
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate gluBeginCurve." 1>&2; exit 1; }
- fi
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- OPENGLINC="$OPENGLPATH"
- OPENGLLIBPATH="$OPENGLPATH"
- cat >> confdefs.h <<\EOF
- #define OPENGL_AQUA 1
- EOF
- fi # $OPENGL_AQUA
- if test "$OPENGL_WINDOWS" = 1 ; then
- # With OpenGL includes directory
- echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
- echo "configure:10987: checking for location of OpenGL includes" >&5
- case "$with_opengl_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_opengl_includes" 1>&6
- if test -n "$with_opengl_includes" ; then
- for dir in $with_opengl_includes; do
- if test -d "$dir"; then
- OPENGLINC="$OPENGLINC -I$dir"
- else
- { echo "configure: error: *** OpenGL includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$OPENGLINC $CPPFLAGS"
- for ac_hdr in GL/gl.h GL/glu.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:11013: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 11016 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:11021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With OpenGL library directory
- echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
- echo "configure:11055: checking for location of OpenGL library" >&5
- case "$with_opengl_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-opengl-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_opengl_libs" 1>&6
- if test -n "$with_opengl_libs"; then
- for dir in $with_opengl_libs; do
- if test -d "$dir"; then
- OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
- else
- { echo "configure: error: *** OpenGL library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cflags="$CFLAGS"
- CFLAGS="$CFLAGS $OPENGLINC"
- ac_save_ldflags="$LDFLAGS"
- ac_save_libs="$LIBS"
- echo $ac_n "checking for OpenGL library""... $ac_c" 1>&6
- echo "configure:11080: checking for OpenGL library" >&5
- LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
- LIBS="-lopengl32 "
- cat > conftest.$ac_ext <<EOF
- #line 11084 "configure"
- #include "confdefs.h"
- #include <GL/gl.h>
- int main() {
- glEnd();
- ; return 0; }
- EOF
- if { (eval echo configure:11091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
-
- echo "$ac_t""found" 1>&6
- OPENGLLIB="$OPENGLLIB -lopengl32 "
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
- fi
- rm -f conftest*
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- ac_save_ldflags="$LDFLAGS"
- ac_save_libs="$LIBS"
- echo $ac_n "checking for GLU library""... $ac_c" 1>&6
- echo "configure:11115: checking for GLU library" >&5
- LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
- LIBS="-lglu32 $OPENGLLIB "
- cat > conftest.$ac_ext <<EOF
- #line 11119 "configure"
- #include "confdefs.h"
- #include <GL/glu.h>
- int main() {
- gluNewQuadric();
- ; return 0; }
- EOF
- if { (eval echo configure:11126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
-
- echo "$ac_t""found" 1>&6
- OPENGLULIB="$OPENGLULIB -lglu32 "
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
- fi
- rm -f conftest*
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- CFLAGS=${ac_save_cflags}
- OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
- OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
- cat >> confdefs.h <<\EOF
- #define OPENGL_WINDOWS 1
- EOF
- fi # $OPENGL_WINDOWS
- fi # $USE_OPENGL
- # Done checking OpenGL
- # Enable TCLTK option
- echo $ac_n "checking whether to use Tcl/Tk""... $ac_c" 1>&6
- echo "configure:11175: checking whether to use Tcl/Tk" >&5
- echo "$ac_t"""$with_tcltk"" 1>&6
- case "$with_tcltk" in
- "no") USE_TCLTK= ;;
- "yes") USE_TCLTK="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- TCLINCDIR=
- TCLTKLIBPATH=
- TCLTKLIBS=
- if test -n "$USE_TCLTK"; then
- # With Tcl/Tk includes directory
- echo $ac_n "checking for location of Tcl/Tk includes""... $ac_c" 1>&6
- echo "configure:11195: checking for location of Tcl/Tk includes" >&5
- case "$with_tcltk_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-tcltk-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_tcltk_includes" 1>&6
- if test -n "$with_tcltk_includes" ; then
- for dir in $with_tcltk_includes; do
- if test -d "$dir"; then
- TCLINCDIR="$TCLINCDIR -I$dir"
- else
- { echo "configure: error: *** Tcl/Tk includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$TCLINCDIR $CPPFLAGS"
- for ac_hdr in tcl.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:11221: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 11224 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:11229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate Tcl includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$TCLINCDIR $X_CFLAGS $CPPFLAGS"
- for ac_hdr in tk.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:11266: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 11269 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:11274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate Tk includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # Tcl/Tk version checks
- echo $ac_n "checking Tcl version""... $ac_c" 1>&6
- echo "configure:11308: checking Tcl version" >&5
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$TCLINCDIR $CPPFLAGS"
- if test "$cross_compiling" = yes; then
- tcl_ver=UNKNOWN
- echo "$ac_t""unknown (cross-compiling)" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 11316 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- #include <tcl.h>
- int main(void) {
- FILE *fp = fopen("conftestdata","w");
- fputs(TCL_VERSION, fp);
- return 0;
- }
- EOF
- if { (eval echo configure:11328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- tcl_ver=`cat conftestdata`
- echo "$ac_t""$tcl_ver" 1>&6
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- { echo "configure: error: *** Could not determine Tcl version." 1>&2; exit 1; }
- fi
- rm -fr conftest*
- fi
- CPPFLAGS=$ac_save_cppflags
- echo $ac_n "checking Tk version""... $ac_c" 1>&6
- echo "configure:11346: checking Tk version" >&5
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$TCLINCDIR $X_CFLAGS $CPPFLAGS"
- if test "$cross_compiling" = yes; then
- tk_ver=UNKNOWN
- echo "$ac_t""unknown (cross-compiling)" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 11354 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- #include <tk.h>
- int main(void) {
- FILE *fp = fopen("conftestdata","w");
- fputs(TK_VERSION, fp);
- return 0;
- }
- EOF
- if { (eval echo configure:11366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- tk_ver=`cat conftestdata`
- echo "$ac_t""$tk_ver" 1>&6
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- { echo "configure: error: *** Could not determine Tk version." 1>&2; exit 1; }
- fi
- rm -fr conftest*
- fi
- CPPFLAGS=$ac_save_cppflags
- if test "$tcl_ver" = "$tk_ver" ; then
- tcltk_ver=$tcl_ver
- else
- { echo "configure: error: *** Tcl/Tk version mismatch." 1>&2; exit 1; }
- fi
- # FreeBSD and CygWin don't have a "dot" between major/minor version number
- tcltk_ver2=`echo $tcltk_ver | sed 's/\.//g'`
- # With Tcl/Tk library directory
- echo $ac_n "checking for location of Tcl/Tk library""... $ac_c" 1>&6
- echo "configure:11395: checking for location of Tcl/Tk library" >&5
- case "$with_tcltk_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-tcltk-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_tcltk_libs" 1>&6
- if test -n "$with_tcltk_libs"; then
- for dir in $with_tcltk_libs; do
- if test -d "$dir"; then
- TCLTKLIBPATH="$TCLTKLIBPATH -L$dir"
- else
- { echo "configure: error: *** Tcl/Tk library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- TCLLIB=
- TKLIB=
- # Can't test tcl/tk libs on 64bit OSX Aqua for now
- # assume that if OpenGL Aqua, then user specifies TclTk Aqua,
- # as there is no test for Tcl/Tk Aqua and Tck/Tk X11 won't work
- TCLTKAQUA_IS64BIT=
- if test "$OPENGL_AQUA" = 1 ; then
- temp_CFLAGS="$CFLAGS"
- CFLAGS="`echo \"$CFLAGS\" | sed -E 's/-arch +x86_64//g' | sed -E 's/-arch +ppc64//g'`"
- # can't save LDFLAGS, need to remember arch flags to insert back later
- temp_ARCHES=
- for a in x86_64 ppc64
- do
- if test -n "`echo \"$LDFLAGS\" | grep -E -e '-arch +'$a`" ; then
- temp_ARCHES="$temp_ARCHES -arch $a"
- fi
- done
- LDFLAGS="`echo \"$LDFLAGS\" | sed -E 's/-arch +x86_64//g' | sed -E 's/-arch +ppc64//g'`"
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
- echo $ac_n "checking for Tcl_Init in -ltcl""... $ac_c" 1>&6
- echo "configure:11443: checking for Tcl_Init in -ltcl" >&5
- ac_lib_var=`echo tcl'_'Tcl_Init | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltcl $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 11449 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char Tcl_Init();
- int main() {
- Tcl_Init()
- ; return 0; }
- EOF
- if { (eval echo configure:11460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TCLLIB="$TCLLIB -ltcl $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for Tcl_Init in -ltcl""... $ac_c" 1>&6
- echo "configure:11479: checking for Tcl_Init in -ltcl" >&5
- ac_lib_var=`echo tcl'_'Tcl_Init | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltcl $MATHLIB $DLLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 11485 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char Tcl_Init();
- int main() {
- Tcl_Init()
- ; return 0; }
- EOF
- if { (eval echo configure:11496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TCLLIB="$TCLLIB -ltcl $MATHLIB $DLLIB"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
- echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver""... $ac_c" 1>&6
- echo "configure:11523: checking for Tcl_Init in -ltcl$tcltk_ver" >&5
- ac_lib_var=`echo tcl$tcltk_ver'_'Tcl_Init | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltcl$tcltk_ver $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 11529 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char Tcl_Init();
- int main() {
- Tcl_Init()
- ; return 0; }
- EOF
- if { (eval echo configure:11540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TCLLIB="$TCLLIB -ltcl$tcltk_ver $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver""... $ac_c" 1>&6
- echo "configure:11559: checking for Tcl_Init in -ltcl$tcltk_ver" >&5
- ac_lib_var=`echo tcl$tcltk_ver'_'Tcl_Init | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltcl$tcltk_ver $MATHLIB $DLLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 11565 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char Tcl_Init();
- int main() {
- Tcl_Init()
- ; return 0; }
- EOF
- if { (eval echo configure:11576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TCLLIB="$TCLLIB -ltcl$tcltk_ver $MATHLIB $DLLIB"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
- echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver2""... $ac_c" 1>&6
- echo "configure:11603: checking for Tcl_Init in -ltcl$tcltk_ver2" >&5
- ac_lib_var=`echo tcl$tcltk_ver2'_'Tcl_Init | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltcl$tcltk_ver2 $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 11609 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char Tcl_Init();
- int main() {
- Tcl_Init()
- ; return 0; }
- EOF
- if { (eval echo configure:11620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TCLLIB="$TCLLIB -ltcl$tcltk_ver2 $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver2""... $ac_c" 1>&6
- echo "configure:11639: checking for Tcl_Init in -ltcl$tcltk_ver2" >&5
- ac_lib_var=`echo tcl$tcltk_ver2'_'Tcl_Init | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltcl$tcltk_ver2 $MATHLIB $DLLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 11645 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char Tcl_Init();
- int main() {
- Tcl_Init()
- ; return 0; }
- EOF
- if { (eval echo configure:11656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TCLLIB="$TCLLIB -ltcl$tcltk_ver2 $MATHLIB $DLLIB"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate Tcl library." 1>&2; exit 1; }
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
- echo $ac_n "checking for Tk_MainWindow in -ltk""... $ac_c" 1>&6
- echo "configure:11734: checking for Tk_MainWindow in -ltk" >&5
- ac_lib_var=`echo tk'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltk $TCLLIB $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 11740 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char Tk_MainWindow();
- int main() {
- Tk_MainWindow()
- ; return 0; }
- EOF
- if { (eval echo configure:11751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TKLIB="$TKLIB -ltk $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for Tk_MainWindow in -ltk""... $ac_c" 1>&6
- echo "configure:11770: checking for Tk_MainWindow in -ltk" >&5
- ac_lib_var=`echo tk'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltk $TCLLIB $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 11776 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char Tk_MainWindow();
- int main() {
- Tk_MainWindow()
- ; return 0; }
- EOF
- if { (eval echo configure:11787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TKLIB="$TKLIB -ltk $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
- echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver""... $ac_c" 1>&6
- echo "configure:11814: checking for Tk_MainWindow in -ltk$tcltk_ver" >&5
- ac_lib_var=`echo tk$tcltk_ver'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltk$tcltk_ver $TCLLIB $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 11820 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char Tk_MainWindow();
- int main() {
- Tk_MainWindow()
- ; return 0; }
- EOF
- if { (eval echo configure:11831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TKLIB="$TKLIB -ltk$tcltk_ver $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver""... $ac_c" 1>&6
- echo "configure:11850: checking for Tk_MainWindow in -ltk$tcltk_ver" >&5
- ac_lib_var=`echo tk$tcltk_ver'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltk$tcltk_ver $TCLLIB $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 11856 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char Tk_MainWindow();
- int main() {
- Tk_MainWindow()
- ; return 0; }
- EOF
- if { (eval echo configure:11867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TKLIB="$TKLIB -ltk$tcltk_ver $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
- echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver2""... $ac_c" 1>&6
- echo "configure:11894: checking for Tk_MainWindow in -ltk$tcltk_ver2" >&5
- ac_lib_var=`echo tk$tcltk_ver2'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltk$tcltk_ver2 $TCLLIB $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 11900 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char Tk_MainWindow();
- int main() {
- Tk_MainWindow()
- ; return 0; }
- EOF
- if { (eval echo configure:11911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TKLIB="$TKLIB -ltk$tcltk_ver2 $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver2""... $ac_c" 1>&6
- echo "configure:11930: checking for Tk_MainWindow in -ltk$tcltk_ver2" >&5
- ac_lib_var=`echo tk$tcltk_ver2'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltk$tcltk_ver2 $TCLLIB $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 11936 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char Tk_MainWindow();
- int main() {
- Tk_MainWindow()
- ; return 0; }
- EOF
- if { (eval echo configure:11947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TKLIB="$TKLIB -ltk$tcltk_ver2 $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate Tk library." 1>&2; exit 1; }
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- # restore CFLAGS/LDLFAGS from Aqua 64bit strip
- # only Tcl/Tk-based makefiles will strip 64bit out during compile
- if test "$OPENGL_AQUA" = 1 ; then
- CFLAGS="$temp_CFLAGS"
- LDFLAGS="$temp_ARCHES $LDFLAGS"
- fi
- TCLTKLIBS="$TKLIB $TCLLIB"
- cat >> confdefs.h <<\EOF
- #define HAVE_TCLTK 1
- EOF
- fi # $USE_TCLTK
- TKINCDIR=$TCLINCDIR
- # Done checking Tcl/Tk
- # Enable ODBC option
- echo $ac_n "checking whether to use ODBC""... $ac_c" 1>&6
- echo "configure:12046: checking whether to use ODBC" >&5
- echo "$ac_t"""$with_odbc"" 1>&6
- case "$with_odbc" in
- "no") USE_ODBC= ;;
- "yes") USE_ODBC="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- ODBCINC=
- ODBCLIB=
- if test -n "$USE_ODBC"; then
- # With ODBC includes directory
- echo $ac_n "checking for location of ODBC includes""... $ac_c" 1>&6
- echo "configure:12065: checking for location of ODBC includes" >&5
- case "$with_odbc_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-odbc-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_odbc_includes" 1>&6
- if test -n "$with_odbc_includes" ; then
- for dir in $with_odbc_includes; do
- if test -d "$dir"; then
- ODBCINC="$ODBCINC -I$dir"
- else
- { echo "configure: error: *** ODBC includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$ODBCINC $CPPFLAGS"
- for ac_hdr in sql.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:12091: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 12094 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:12099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate ODBC includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With ODBC library directory
- echo $ac_n "checking for location of ODBC library""... $ac_c" 1>&6
- echo "configure:12133: checking for location of ODBC library" >&5
- case "$with_odbc_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-odbc-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_odbc_libs" 1>&6
- if test -n "$with_odbc_libs"; then
- for dir in $with_odbc_libs; do
- if test -d "$dir"; then
- ODBCLIB="$ODBCLIB -L$dir"
- else
- { echo "configure: error: *** ODBC library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$ODBCLIB $LDFLAGS"
- echo $ac_n "checking for SQLConnect in -lodbc""... $ac_c" 1>&6
- echo "configure:12158: checking for SQLConnect in -lodbc" >&5
- ac_lib_var=`echo odbc'_'SQLConnect | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lodbc $ICONVLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 12164 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char SQLConnect();
- int main() {
- SQLConnect()
- ; return 0; }
- EOF
- if { (eval echo configure:12175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ODBCLIB="$ODBCLIB -lodbc "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$ODBCLIB $LDFLAGS"
- echo $ac_n "checking for SQLConnect in -liodbc""... $ac_c" 1>&6
- echo "configure:12200: checking for SQLConnect in -liodbc" >&5
- ac_lib_var=`echo iodbc'_'SQLConnect | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-liodbc $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 12206 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char SQLConnect();
- int main() {
- SQLConnect()
- ; return 0; }
- EOF
- if { (eval echo configure:12217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ODBCLIB="$ODBCLIB -liodbc "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- ac_save_cflags="$CFLAGS"
- CFLAGS="$CFLAGS $ODBCINC"
- ac_save_ldflags="$LDFLAGS"
- ac_save_libs="$LIBS"
- echo $ac_n "checking for ODBC library""... $ac_c" 1>&6
- echo "configure:12242: checking for ODBC library" >&5
- LDFLAGS="$ODBCLIB $LDFLAGS"
- LIBS="-lodbc32 "
- cat > conftest.$ac_ext <<EOF
- #line 12246 "configure"
- #include "confdefs.h"
- #include <windows.h>
- #include <sql.h>
- int main() {
- SQLAllocEnv((SQLHENV *)0);
- ; return 0; }
- EOF
- if { (eval echo configure:12254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
-
- echo "$ac_t""found" 1>&6
- ODBCLIB="$ODBCLIB -lodbc32 "
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- { echo "configure: error: *** Unable to locate ODBC library." 1>&2; exit 1; }
- fi
- rm -f conftest*
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- CFLAGS=${ac_save_cflags}
- fi
- LDFLAGS=${ac_save_ldflags}
- fi
- LDFLAGS=${ac_save_ldflags}
- fi # $USE_ODBC
- # Done checking ODBC
- # Enable FFTW option
- echo $ac_n "checking whether to use FFTW""... $ac_c" 1>&6
- echo "configure:12303: checking whether to use FFTW" >&5
- echo "$ac_t"""$with_fftw"" 1>&6
- case "$with_fftw" in
- "no") USE_FFTW= ;;
- "yes") USE_FFTW="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- FFTWINC=
- FFTWLIB=
- if test -n "$USE_FFTW"; then
- # With FFTW includes directory
- echo $ac_n "checking for location of FFTW includes""... $ac_c" 1>&6
- echo "configure:12322: checking for location of FFTW includes" >&5
- case "$with_fftw_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-fftw-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_fftw_includes" 1>&6
- if test -n "$with_fftw_includes" ; then
- for dir in $with_fftw_includes; do
- if test -d "$dir"; then
- FFTWINC="$FFTWINC -I$dir"
- else
- { echo "configure: error: *** FFTW includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$FFTWINC $CPPFLAGS"
- for ac_hdr in fftw3.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:12348: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 12351 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:12356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS=" $CPPFLAGS"
- for ac_hdr in fftw.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:12384: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 12387 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:12392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS=" $CPPFLAGS"
- for ac_hdr in dfftw.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:12420: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 12423 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:12428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate FFTW includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With FFTW library directory
- echo $ac_n "checking for location of FFTW library""... $ac_c" 1>&6
- echo "configure:12474: checking for location of FFTW library" >&5
- case "$with_fftw_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-fftw-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_fftw_libs" 1>&6
- if test -n "$with_fftw_libs"; then
- for dir in $with_fftw_libs; do
- if test -d "$dir"; then
- FFTWLIB="$FFTWLIB -L$dir"
- else
- { echo "configure: error: *** FFTW library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$FFTWLIB $LDFLAGS"
- echo $ac_n "checking for fftw_execute in -lfftw3""... $ac_c" 1>&6
- echo "configure:12499: checking for fftw_execute in -lfftw3" >&5
- ac_lib_var=`echo fftw3'_'fftw_execute | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lfftw3 $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 12505 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char fftw_execute();
- int main() {
- fftw_execute()
- ; return 0; }
- EOF
- if { (eval echo configure:12516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- FFTWLIB="$FFTWLIB -lfftw3 $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$FFTWLIB $LDFLAGS"
- echo $ac_n "checking for fftwnd_one in -lfftw""... $ac_c" 1>&6
- echo "configure:12541: checking for fftwnd_one in -lfftw" >&5
- ac_lib_var=`echo fftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lfftw $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 12547 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char fftwnd_one();
- int main() {
- fftwnd_one()
- ; return 0; }
- EOF
- if { (eval echo configure:12558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- FFTWLIB="$FFTWLIB -lfftw $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$FFTWLIB $LDFLAGS"
- echo $ac_n "checking for fftwnd_one in -ldfftw""... $ac_c" 1>&6
- echo "configure:12583: checking for fftwnd_one in -ldfftw" >&5
- ac_lib_var=`echo dfftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ldfftw $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 12589 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char fftwnd_one();
- int main() {
- fftwnd_one()
- ; return 0; }
- EOF
- if { (eval echo configure:12600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- FFTWLIB="$FFTWLIB -ldfftw $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate FFTW library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- fi
- LDFLAGS=${ac_save_ldflags}
- fi
- LDFLAGS=${ac_save_ldflags}
- fi # $USE_FFTW
- # Done checking FFTW
- # Enable BLAS option
- echo $ac_n "checking whether to use BLAS""... $ac_c" 1>&6
- echo "configure:12657: checking whether to use BLAS" >&5
- echo "$ac_t"""$with_blas"" 1>&6
- case "$with_blas" in
- "no") USE_BLAS= ;;
- "yes") USE_BLAS="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- BLASLIB=
- BLASINC=
- if test -n "$USE_BLAS"; then
- # With BLAS includes directory
- # BLAS doesn't have includes (FORTRAN library)
- # With BLAS library directory
- echo $ac_n "checking for location of BLAS includes""... $ac_c" 1>&6
- echo "configure:12678: checking for location of BLAS includes" >&5
- case "$with_blas_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-blas-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_blas_includes" 1>&6
- if test -n "$with_blas_includes" ; then
- for dir in $with_blas_includes; do
- if test -d "$dir"; then
- BLASINC="$BLASINC -I$dir"
- else
- { echo "configure: error: *** BLAS includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- echo $ac_n "checking for location of BLAS library""... $ac_c" 1>&6
- echo "configure:12698: checking for location of BLAS library" >&5
- case "$with_blas_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-blas-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_blas_libs" 1>&6
- if test -n "$with_blas_libs"; then
- for dir in $with_blas_libs; do
- if test -d "$dir"; then
- BLASLIB="$BLASLIB -L$dir"
- else
- { echo "configure: error: *** BLAS library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- # See if cblas.h exists (CBLAS,ATLAS,others)
- save_CPPFLAGS="$CPPFLAGS"
- CPPFLAGS="$BLASINC $CPPFLAGS"
- for ac_hdr in cblas.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:12724: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 12727 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:12732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- CPPFLAGS=$save_CPPFLAGS
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$BLASLIB $LDFLAGS"
- echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
- echo "configure:12767: checking for dnrm2_ in -lblas" >&5
- ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lblas $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 12773 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dnrm2_();
- int main() {
- dnrm2_()
- ; return 0; }
- EOF
- if { (eval echo configure:12784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- BLASLIB="$BLASLIB -lblas "
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
- echo "configure:12803: checking for dnrm2_ in -lblas" >&5
- ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lblas $MATHLIB -lg2c $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 12809 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dnrm2_();
- int main() {
- dnrm2_()
- ; return 0; }
- EOF
- if { (eval echo configure:12820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- BLASLIB="$BLASLIB -lblas -lg2c"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate BLAS library." 1>&2; exit 1; }
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- blas_ok=no
- # Check for ATLAS
- save_LDFLAGS="$LDFLAGS"
- LDFLAGS="$BLASLIB $LDFLAGS"
- echo $ac_n "checking for ATL_xerbla in -latlas""... $ac_c" 1>&6
- echo "configure:12864: checking for ATL_xerbla in -latlas" >&5
- ac_lib_var=`echo atlas'_'ATL_xerbla | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-latlas $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 12870 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char ATL_xerbla();
- int main() {
- ATL_xerbla()
- ; return 0; }
- EOF
- if { (eval echo configure:12881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- echo $ac_n "checking for sgemm_ in -lf77blas""... $ac_c" 1>&6
- echo "configure:12896: checking for sgemm_ in -lf77blas" >&5
- ac_lib_var=`echo f77blas'_'sgemm_ | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lf77blas -latlas $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 12902 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char sgemm_();
- int main() {
- sgemm_()
- ; return 0; }
- EOF
- if { (eval echo configure:12913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- echo $ac_n "checking for cblas_dgemm in -lcblas""... $ac_c" 1>&6
- echo "configure:12928: checking for cblas_dgemm in -lcblas" >&5
- ac_lib_var=`echo cblas'_'cblas_dgemm | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lcblas -lf77blas -latlas $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 12934 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char cblas_dgemm();
- int main() {
- cblas_dgemm()
- ; return 0; }
- EOF
- if { (eval echo configure:12945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- blas_ok=yes; BLASLIB="-lcblas -lf77blas -latlas"
- else
- echo "$ac_t""no" 1>&6
- fi
- else
- echo "$ac_t""no" 1>&6
- fi
- else
- echo "$ac_t""no" 1>&6
- fi
- LDFLAGS="$save_LDFLAGS"
- # Do we have ATLAS?
- if test $blas_ok = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_LIBATLAS 1
- EOF
- fi
- # BLAS in Apple vecLib framework? (Mac OS-X)
- if test -n "$MACOSX_APP"; then
- if test $blas_ok = no; then
- vlib_flags="-framework vecLib"
- save_LIBS="$LIBS"
- LIBS="$vlib_flags $LIBS"
- echo $ac_n "checking for sgemm in $vlib_flags""... $ac_c" 1>&6
- echo "configure:12990: checking for sgemm in $vlib_flags" >&5
- cat > conftest.$ac_ext <<EOF
- #line 12992 "configure"
- #include "confdefs.h"
- int main() {
- sgemm
- ; return 0; }
- EOF
- if { (eval echo configure:12999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- blas_ok=yes; BLASLIB="$vlib_flags"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- BLASLIB=""
- fi
- rm -f conftest*
- echo "$ac_t""$blas_ok" 1>&6
- LIBS="$save_LIBS"
- fi
- fi # $MACOSX_APP
- # BLAS in PhiPACK libraries? (requires generic BLAS, too)
- if test $blas_ok = no; then
- echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
- echo "configure:13017: checking for sgemm_ in -lblas" >&5
- ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lblas $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 13023 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char sgemm_();
- int main() {
- sgemm_()
- ; return 0; }
- EOF
- if { (eval echo configure:13034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- echo $ac_n "checking for dgemm_ in -ldgemm""... $ac_c" 1>&6
- echo "configure:13049: checking for dgemm_ in -ldgemm" >&5
- ac_lib_var=`echo dgemm'_'dgemm_ | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ldgemm -lblas $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 13055 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dgemm_();
- int main() {
- dgemm_()
- ; return 0; }
- EOF
- if { (eval echo configure:13066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- echo $ac_n "checking for sgemm_ in -lsgemm""... $ac_c" 1>&6
- echo "configure:13081: checking for sgemm_ in -lsgemm" >&5
- ac_lib_var=`echo sgemm'_'sgemm_ | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lsgemm -lblas $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 13087 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char sgemm_();
- int main() {
- sgemm_()
- ; return 0; }
- EOF
- if { (eval echo configure:13098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- blas_ok=yes; BLASLIB="-lsgemm -ldgemm -lblas"
- else
- echo "$ac_t""no" 1>&6
- fi
- else
- echo "$ac_t""no" 1>&6
- fi
-
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- # BLAS in Sun Performance library?
- if test $blas_ok = no; then
- if test "x$GCC" != xyes; then # only works with Sun CC
- echo $ac_n "checking for acosp in -lsunmath""... $ac_c" 1>&6
- echo "configure:13132: checking for acosp in -lsunmath" >&5
- ac_lib_var=`echo sunmath'_'acosp | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lsunmath $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 13138 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char acosp();
- int main() {
- acosp()
- ; return 0; }
- EOF
- if { (eval echo configure:13149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- echo $ac_n "checking for sgemm_ in -lsunperf""... $ac_c" 1>&6
- echo "configure:13164: checking for sgemm_ in -lsunperf" >&5
- ac_lib_var=`echo sunperf'_'sgemm_ | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lsunperf -lsunmath $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 13170 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char sgemm_();
- int main() {
- sgemm_()
- ; return 0; }
- EOF
- if { (eval echo configure:13181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- blas_ok=yes; BLASLIB="-xlic_lib=sunperf -lsunmath"
- else
- echo "$ac_t""no" 1>&6
- fi
-
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- fi
- # Generic BLAS library
- if test $blas_ok = no; then
- echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
- echo "configure:13211: checking for sgemm_ in -lblas" >&5
- ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lblas $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 13217 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char sgemm_();
- int main() {
- sgemm_()
- ; return 0; }
- EOF
- if { (eval echo configure:13228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- blas_ok=yes; BLASLIB="-lblas"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- if test $blas_ok = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_LIBBLAS 1
- EOF
- fi
- fi # $USE_BLAS
- # Done checking BLAS
- # Enable LAPACK option
- echo $ac_n "checking whether to use LAPACK""... $ac_c" 1>&6
- echo "configure:13267: checking whether to use LAPACK" >&5
- echo "$ac_t"""$with_lapack"" 1>&6
- case "$with_lapack" in
- "no") USE_LAPACK= ;;
- "yes") USE_LAPACK="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- LAPACKLIB=
- LAPACKINC=
- # LAPACK is useless without BLAS
- if test -n "$USE_BLAS"; then
- if test -n "$USE_LAPACK"; then
- # With LAPACK includes directory
- # LAPACK doesn't have includes (FORTRAN library)
- # With LAPACK library directory
- lapack_ok=no
- echo $ac_n "checking for location of LAPACK includes""... $ac_c" 1>&6
- echo "configure:13292: checking for location of LAPACK includes" >&5
- case "$with_lapack_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-lapack-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_lapack_includes" 1>&6
- if test -n "$with_lapack_includes" ; then
- for dir in $with_lapack_includes; do
- if test -d "$dir"; then
- LAPACKINC="$LAPACKINC -I$dir"
- else
- { echo "configure: error: *** LAPACK includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- echo $ac_n "checking for location of LAPACK library""... $ac_c" 1>&6
- echo "configure:13312: checking for location of LAPACK library" >&5
- case "$with_lapack_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-lapack-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_lapack_libs" 1>&6
- if test -n "$with_lapack_libs"; then
- for dir in $with_lapack_libs; do
- if test -d "$dir"; then
- LAPACKLIB="$LAPACKLIB -L$dir"
- else
- { echo "configure: error: *** LAPACK library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- # See if clapack.h exists (ATLAS)
- save_CPPFLAGS="$CPPFLAGS"
- CPPFLAGS="$LAPACKINC $CPPFLAGS"
- for ac_hdr in clapack.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:13338: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 13341 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:13346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- CPPFLAGS=$save_CPPFLAGS
- # LAPACK linked to by default?
- if test lapack_ok=no; then
- save_LIBS="$LIBS"; LIBS="$LIBS $BLASLIB $MATHLIB $FLIBS"
- save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
- echo $ac_n "checking for dsegv_""... $ac_c" 1>&6
- echo "configure:13378: checking for dsegv_" >&5
- cat > conftest.$ac_ext <<EOF
- #line 13381 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char dsegv_(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dsegv_();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_dsegv_) || defined (__stub___dsegv_)
- choke me
- #else
- dsegv_();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:13404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_dsegv_=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_dsegv_=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'dsegv_`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- lapack_ok=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- LIBS="$save_LIBS"
- LDFLAGS="$save_LDFLAGS"
- fi
- # Generic LAPACK library?
- if test $lapack_ok = no; then
- save_libs="$LIBS"; LIBS="$BLASLIB $MATHLIB $LIBS"
- save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
- echo $ac_n "checking for desgv_ in -llapack""... $ac_c" 1>&6
- echo "configure:13431: checking for desgv_ in -llapack" >&5
- ac_lib_var=`echo lapack'_'desgv_ | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-llapack $FLIBS $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 13437 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char desgv_();
- int main() {
- desgv_()
- ; return 0; }
- EOF
- if { (eval echo configure:13448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- lapack_ok=yes; LAPACKLIB="-llapack"
- else
- echo "$ac_t""no" 1>&6
- fi
- LIBS="$save_LIBS"
- LDFLAGS="$save_LDFLAGS"
- fi
- if test $lapack_ok = no; then
-
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$LAPACKLIB $LDFLAGS"
- echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
- echo "configure:13480: checking for dgesv_ in -llapack" >&5
- ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-llapack $BLASLIB $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 13486 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dgesv_();
- int main() {
- dgesv_()
- ; return 0; }
- EOF
- if { (eval echo configure:13497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- LAPACKLIB="$LAPACKLIB -llapack "
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
- echo "configure:13516: checking for dgesv_ in -llapack" >&5
- ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-llapack $BLASLIB $MATHLIB -lg2c $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 13522 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dgesv_();
- int main() {
- dgesv_()
- ; return 0; }
- EOF
- if { (eval echo configure:13533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- LAPACKLIB="$LAPACKLIB -llapack -lg2c"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate LAPACK library." 1>&2; exit 1; }
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- fi
- cat >> confdefs.h <<\EOF
- #define HAVE_LIBLAPACK 1
- EOF
- fi # $USE_LAPACK
- fi # $USE_BLAS
- # Done checking LAPACK
- # Enable Cairo display driver option
- echo $ac_n "checking whether to use Cairo""... $ac_c" 1>&6
- echo "configure:13589: checking whether to use Cairo" >&5
- echo "$ac_t"""$with_cairo"" 1>&6
- case "$with_cairo" in
- "no") USE_CAIRO= ;;
- "yes") USE_CAIRO="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- CAIROINC=
- CAIROLIB=
- if test -n "$USE_CAIRO"; then
- cairo="cairo cairo-ft"
- if test -n "$USE_X11"; then
- cairo="$cairo cairo-xlib-xrender"
- fi
- # With Cairo includes directory
- CAIROINC=`pkg-config --cflags $cairo`
- echo $ac_n "checking for location of cairo includes""... $ac_c" 1>&6
- echo "configure:13615: checking for location of cairo includes" >&5
- case "$with_cairo_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-cairo-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_cairo_includes" 1>&6
- if test -n "$with_cairo_includes" ; then
- for dir in $with_cairo_includes; do
- if test -d "$dir"; then
- CAIROINC="$CAIROINC -I$dir"
- else
- { echo "configure: error: *** cairo includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$CAIROINC $CPPFLAGS"
- for ac_hdr in cairo.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:13641: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 13644 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:13649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate Cairo includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With Cairo library directory
- CAIROLIB=`pkg-config --libs $cairo`
- echo $ac_n "checking for location of cairo library""... $ac_c" 1>&6
- echo "configure:13685: checking for location of cairo library" >&5
- case "$with_cairo_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-cairo-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_cairo_libs" 1>&6
- if test -n "$with_cairo_libs"; then
- for dir in $with_cairo_libs; do
- if test -d "$dir"; then
- CAIROLIB="$CAIROLIB -L$dir"
- else
- { echo "configure: error: *** cairo library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- echo $ac_n "checking for cairo linking flags""... $ac_c" 1>&6
- echo "configure:13705: checking for cairo linking flags" >&5
- case "$with_cairo_ldflags" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-cairo-ldflags." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_cairo_ldflags" 1>&6
- CAIROLIB="$CAIROLIB $with_cairo_ldflags"
- ac_save_libs="$LIBS"
- ac_save_ldflags="$LDFLAGS"
- LIBS=" $CAIROLIB $LIBS"
- LDFLAGS=" $LDFLAGS"
- echo $ac_n "checking for cairo_create""... $ac_c" 1>&6
- echo "configure:13721: checking for cairo_create" >&5
- cat > conftest.$ac_ext <<EOF
- #line 13724 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char cairo_create(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char cairo_create();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_cairo_create) || defined (__stub___cairo_create)
- choke me
- #else
- cairo_create();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:13747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_cairo_create=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_cairo_create=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'cairo_create`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- :
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate ." 1>&2; exit 1; }
- fi
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- ac_save_libs="$LIBS"
- ac_save_ldflags="$LDFLAGS"
- LIBS=" $CAIROLIB $LIBS"
- LDFLAGS=" $LDFLAGS"
- echo $ac_n "checking for cairo_xlib_surface_create_with_xrender_format""... $ac_c" 1>&6
- echo "configure:13781: checking for cairo_xlib_surface_create_with_xrender_format" >&5
- cat > conftest.$ac_ext <<EOF
- #line 13784 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char cairo_xlib_surface_create_with_xrender_format(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char cairo_xlib_surface_create_with_xrender_format();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_cairo_xlib_surface_create_with_xrender_format) || defined (__stub___cairo_xlib_surface_create_with_xrender_format)
- choke me
- #else
- cairo_xlib_surface_create_with_xrender_format();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:13807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_cairo_xlib_surface_create_with_xrender_format=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_cairo_xlib_surface_create_with_xrender_format=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'cairo_xlib_surface_create_with_xrender_format`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- CAIRO_HAS_XRENDER=1
- else
- echo "$ac_t""no" 1>&6
- CAIRO_HAS_XRENDER=
- fi
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- ac_save_libs="$LIBS"
- ac_save_ldflags="$LDFLAGS"
- LIBS=" $CAIROLIB $LIBS"
- LDFLAGS=" $LDFLAGS"
- echo $ac_n "checking for cairo_xlib_surface_get_xrender_format""... $ac_c" 1>&6
- echo "configure:13840: checking for cairo_xlib_surface_get_xrender_format" >&5
- cat > conftest.$ac_ext <<EOF
- #line 13843 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char cairo_xlib_surface_get_xrender_format(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char cairo_xlib_surface_get_xrender_format();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_cairo_xlib_surface_get_xrender_format) || defined (__stub___cairo_xlib_surface_get_xrender_format)
- choke me
- #else
- cairo_xlib_surface_get_xrender_format();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:13866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_cairo_xlib_surface_get_xrender_format=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_cairo_xlib_surface_get_xrender_format=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'cairo_xlib_surface_get_xrender_format`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- CAIRO_HAS_XRENDER_SURFACE=1
- else
- echo "$ac_t""no" 1>&6
- CAIRO_HAS_XRENDER_SURFACE=
- fi
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- CAIROLIB="$CAIROLIB $CAIROLDFLAGS"
- fi # $USE_CAIRO
- # Done checking Cairo
- # Enable FreeType option
- echo $ac_n "checking whether to use FreeType""... $ac_c" 1>&6
- echo "configure:13908: checking whether to use FreeType" >&5
- echo "$ac_t"""$with_freetype"" 1>&6
- case "$with_freetype" in
- "no") USE_FREETYPE= ;;
- "yes") USE_FREETYPE="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- FTINC=
- FTLIB=
- if test -n "$USE_FREETYPE"; then
- # With FreeType includes directory
- echo $ac_n "checking for location of FreeType includes""... $ac_c" 1>&6
- echo "configure:13927: checking for location of FreeType includes" >&5
- case "$with_freetype_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-freetype-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_freetype_includes" 1>&6
- if test -n "$with_freetype_includes" ; then
- for dir in $with_freetype_includes; do
- if test -d "$dir"; then
- FTINC="$FTINC -I$dir"
- else
- { echo "configure: error: *** FreeType includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$FTINC $CPPFLAGS"
- for ac_hdr in ft2build.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:13953: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 13956 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:13961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate FreeType includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With FreeType library directory
- echo $ac_n "checking for location of FreeType library""... $ac_c" 1>&6
- echo "configure:13995: checking for location of FreeType library" >&5
- case "$with_freetype_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-freetype-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_freetype_libs" 1>&6
- if test -n "$with_freetype_libs"; then
- for dir in $with_freetype_libs; do
- if test -d "$dir"; then
- FTLIB="$FTLIB -L$dir"
- else
- { echo "configure: error: *** FreeType library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$FTLIB $LDFLAGS"
- echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
- echo "configure:14020: checking for FT_Init_FreeType in -lfreetype" >&5
- ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lfreetype $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 14026 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char FT_Init_FreeType();
- int main() {
- FT_Init_FreeType()
- ; return 0; }
- EOF
- if { (eval echo configure:14037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- FTLIB="$FTLIB -lfreetype "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate FreeType library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- fi # $USE_FREETYPE
- # Done checking FreeType
- # Enable NLS option
- echo $ac_n "checking whether to use NLS""... $ac_c" 1>&6
- echo "configure:14078: checking whether to use NLS" >&5
- echo "$ac_t"""$with_nls"" 1>&6
- case "$with_nls" in
- "no") USE_NLS= ;;
- "yes") USE_NLS="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- INTLLIB=
- HAVE_NLS=
- if test -n "${USE_NLS}" ; then
- cat >> confdefs.h <<\EOF
- #define USE_NLS 1
- EOF
- echo $ac_n "checking for gettext""... $ac_c" 1>&6
- echo "configure:14098: checking for gettext" >&5
- cat > conftest.$ac_ext <<EOF
- #line 14101 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char gettext(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gettext();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_gettext) || defined (__stub___gettext)
- choke me
- #else
- gettext();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:14124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_gettext=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_gettext=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- INTLLIB=
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
- echo "configure:14142: checking for gettext in -lintl" >&5
- ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lintl $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 14148 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gettext();
- int main() {
- gettext()
- ; return 0; }
- EOF
- if { (eval echo configure:14159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- INTLLIB=-lintl
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate gettext() function." 1>&2; exit 1; }
- fi
- fi
- HAVE_NLS=1
- fi
- # Enable C++ option
-
- echo $ac_n "checking whether to use C++""... $ac_c" 1>&6
- echo "configure:14194: checking whether to use C++" >&5
- echo "$ac_t"""$with_cxx"" 1>&6
- case "$with_cxx" in
- "no") USE_CXX= ;;
- "yes") USE_CXX="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- if test -n "$USE_CXX"; then
- for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:14210: checking for $ac_word" >&5
- if test -n "$CXX"; then
- ac_cv_prog_CXX="$CXX" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_CXX="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- CXX="$ac_cv_prog_CXX"
- if test -n "$CXX"; then
- echo "$ac_t""$CXX" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- test -n "$CXX" && break
- done
- test -n "$CXX" || CXX="gcc"
- echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
- echo "configure:14239: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
- cat > conftest.$ac_ext << EOF
- #line 14250 "configure"
- #include "confdefs.h"
- int main(){return(0);}
- EOF
- if { (eval echo configure:14255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- ac_cv_prog_cxx_works=yes
- # If we can't run a trivial program, we are probably using a cross compiler.
- if (./conftest; exit) 2>/dev/null; then
- ac_cv_prog_cxx_cross=no
- else
- ac_cv_prog_cxx_cross=yes
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- ac_cv_prog_cxx_works=no
- fi
- rm -fr conftest*
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
- echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
- if test $ac_cv_prog_cxx_works = no; then
- { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
- fi
- echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
- echo "configure:14281: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
- echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
- cross_compiling=$ac_cv_prog_cxx_cross
- echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
- echo "configure:14286: checking whether we are using GNU C++" >&5
- cat > conftest.C <<EOF
- #ifdef __GNUC__
- yes;
- #endif
- EOF
- if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:14293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
- ac_cv_prog_gxx=yes
- else
- ac_cv_prog_gxx=no
- fi
- echo "$ac_t""$ac_cv_prog_gxx" 1>&6
- if test $ac_cv_prog_gxx = yes; then
- GXX=yes
- else
- GXX=
- fi
- ac_test_CXXFLAGS="${CXXFLAGS+set}"
- ac_save_CXXFLAGS="$CXXFLAGS"
- CXXFLAGS=
- echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
- echo "configure:14311: checking whether ${CXX-g++} accepts -g" >&5
- echo 'void f(){}' > conftest.cc
- if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
- ac_cv_prog_cxx_g=yes
- else
- ac_cv_prog_cxx_g=no
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
- if test "$ac_test_CXXFLAGS" = set; then
- CXXFLAGS="$ac_save_CXXFLAGS"
- elif test $ac_cv_prog_cxx_g = yes; then
- if test "$GXX" = yes; then
- CXXFLAGS="-g -O2"
- else
- CXXFLAGS="-g"
- fi
- else
- if test "$GXX" = yes; then
- CXXFLAGS="-O2"
- else
- CXXFLAGS=
- fi
- fi
- else
- CXX=
- CXXFLAGS=
-
-
- fi
- # Done checking C++
- # Enable openDWG option
- echo $ac_n "checking whether to use openDWG""... $ac_c" 1>&6
- echo "configure:14352: checking whether to use openDWG" >&5
- echo "$ac_t"""$with_opendwg"" 1>&6
- case "$with_opendwg" in
- "no") USE_OPENDWG= ;;
- "yes") USE_OPENDWG="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- OPENDWGINCPATH=
- OPENDWGLIBPATH=
- OPENDWGLIB=
- if test -n "${USE_OPENDWG}"; then
- # With OPENDWG includes directory
- echo $ac_n "checking for location of openDGW includes""... $ac_c" 1>&6
- echo "configure:14372: checking for location of openDGW includes" >&5
- case "$with_opendwg_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-opendwg-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_opendwg_includes" 1>&6
- if test -n "$with_opendwg_includes" ; then
- for dir in $with_opendwg_includes; do
- if test -d "$dir"; then
- OPENDWGINCPATH="$OPENDWGINCPATH -I$dir"
- else
- { echo "configure: error: *** openDGW includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$OPENDWGINCPATH $CPPFLAGS"
- for ac_hdr in ad2.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:14398: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 14401 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:14406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate openDWG includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With OPENDWG library directory
- echo $ac_n "checking for location of openDWG library""... $ac_c" 1>&6
- echo "configure:14440: checking for location of openDWG library" >&5
- case "$with_opendwg_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-opendwg-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_opendwg_libs" 1>&6
- if test -n "$with_opendwg_libs"; then
- for dir in $with_opendwg_libs; do
- if test -d "$dir"; then
- OPENDWGLIBPATH="$OPENDWGLIBPATH -L$dir"
- else
- { echo "configure: error: *** openDWG library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- #search for ad2.a, ad3.a ... in openDWG toolkit directory:
- #FIX ME how to program this test??
- #LOC_CHECK_LIBS(ad?.a,adSeekLayer,openDWG,$OPENDWGLIBPATH,OPENDWGLIB,,)
- #
- #for now hack (but working):
- TRUEOPENDWGLIBPATH=`echo $OPENDWGLIBPATH | cut -b3-`
- adlib=`ls -1 $TRUEOPENDWGLIBPATH/ad?.a | tail -1`
- OPENDWGLIB=$adlib
- fi # $USE_OPENDWG
- # Done checking OPENDWG
- # Enable pthread option
- echo $ac_n "checking whether to use POSIX threads""... $ac_c" 1>&6
- echo "configure:14481: checking whether to use POSIX threads" >&5
- echo "$ac_t"""$with_pthread"" 1>&6
- case "$with_pthread" in
- "no") USE_PTHREAD= ;;
- "yes") USE_PTHREAD="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- PTHREADINCPATH=
- PTHREADLIBPATH=
- PTHREADLIB=
- if test -n "$USE_PTHREAD"; then
- # With pthread includes directory
- echo $ac_n "checking for location of POSIX threads includes""... $ac_c" 1>&6
- echo "configure:14501: checking for location of POSIX threads includes" >&5
- case "$with_pthread_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-pthread-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_pthread_includes" 1>&6
- if test -n "$with_pthread_includes" ; then
- for dir in $with_pthread_includes; do
- if test -d "$dir"; then
- PTHREADINCPATH="$PTHREADINCPATH -I$dir"
- else
- { echo "configure: error: *** POSIX threads includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$PTHREADINCPATH $CPPFLAGS"
- for ac_hdr in pthread.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:14527: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 14530 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:14535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate POSIX threads includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With pthread library directory
- echo $ac_n "checking for location of POSIX threads library""... $ac_c" 1>&6
- echo "configure:14569: checking for location of POSIX threads library" >&5
- case "$with_pthread_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-pthread-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_pthread_libs" 1>&6
- if test -n "$with_pthread_libs"; then
- for dir in $with_pthread_libs; do
- if test -d "$dir"; then
- PTHREADLIBPATH="$PTHREADLIBPATH -L$dir"
- else
- { echo "configure: error: *** POSIX threads library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_libs="$LIBS"
- ac_save_ldflags="$LDFLAGS"
- LIBS=" $LIBS"
- LDFLAGS=" $LDFLAGS"
- echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
- echo "configure:14594: checking for pthread_create" >&5
- cat > conftest.$ac_ext <<EOF
- #line 14597 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char pthread_create(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char pthread_create();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
- choke me
- #else
- pthread_create();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:14620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_pthread_create=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_pthread_create=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- PTHREADLIB="$PTHREADLIB "
- else
- echo "$ac_t""no" 1>&6
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$PTHREADLIBPATH $LDFLAGS"
- echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
- echo "configure:14647: checking for pthread_create in -lpthread" >&5
- ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lpthread $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 14653 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char pthread_create();
- int main() {
- pthread_create()
- ; return 0; }
- EOF
- if { (eval echo configure:14664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- PTHREADLIB="$PTHREADLIB -lpthread "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate POSIX threads library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- fi
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- fi # $USE_PTHREAD
- # Done checking pthread
- # Enable LFS (from cdr-tools)
- # Check whether --enable-largefile or --disable-largefile was given.
- if test "${enable_largefile+set}" = set; then
- enableval="$enable_largefile"
- :
- fi
- if test "$enable_largefile" = yes; then
- echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
- echo "configure:14720: checking for special C compiler options needed for large files" >&5
- ac_cv_sys_largefile_CC=no
- largefile_cc_opt=""
- if test "$GCC" != yes; then
- # IRIX 6.2 and later do not support large files by default,
- # so use the C compiler's -n32 option if that helps.
- cat > conftest.$ac_ext <<EOF
- #line 14728 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply "#define LARGE_OFF_T 9223372036854775807",
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
- # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
-
- int main() {
- ; return 0; }
- EOF
- if { (eval echo configure:14744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- :
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_save_CC="${CC-cc}"
- CC="$CC -n32"
- cat > conftest.$ac_ext <<EOF
- #line 14753 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply "#define LARGE_OFF_T 9223372036854775807",
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
- # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
-
- int main() {
- ; return 0; }
- EOF
- if { (eval echo configure:14769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_sys_largefile_CC=' -n32'
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- CC="$ac_save_CC"
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6
- if test "$ac_cv_sys_largefile_CC" != no; then
- CC="$CC$ac_cv_sys_largefile_CC"
- largefile_cc_opt="$ac_cv_sys_largefile_CC"
- fi
- echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
- echo "configure:14789: checking for _FILE_OFFSET_BITS value needed for large files" >&5
- ac_cv_sys_file_offset_bits=no
- cat > conftest.$ac_ext <<EOF
- #line 14793 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply "#define LARGE_OFF_T 9223372036854775807",
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
- # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
-
- int main() {
- ; return 0; }
- EOF
- if { (eval echo configure:14809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- :
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- cat > conftest.$ac_ext <<EOF
- #line 14816 "configure"
- #include "confdefs.h"
- #define _FILE_OFFSET_BITS 64
- #include <sys/types.h>
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply "#define LARGE_OFF_T 9223372036854775807",
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
- # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
-
-
- int main() {
- ; return 0; }
- EOF
- if { (eval echo configure:14834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_sys_file_offset_bits=64
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
- if test "$ac_cv_sys_file_offset_bits" != no; then
- cat >> confdefs.h <<EOF
- #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
- EOF
- fi
- echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
- echo "configure:14853: checking for _LARGE_FILES value needed for large files" >&5
- ac_cv_sys_large_files=no
- cat > conftest.$ac_ext <<EOF
- #line 14857 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply "#define LARGE_OFF_T 9223372036854775807",
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
- # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
-
- int main() {
- ; return 0; }
- EOF
- if { (eval echo configure:14873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- :
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- cat > conftest.$ac_ext <<EOF
- #line 14880 "configure"
- #include "confdefs.h"
- #define _LARGE_FILES 1
- #include <sys/types.h>
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply "#define LARGE_OFF_T 9223372036854775807",
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
- # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
-
-
- int main() {
- ; return 0; }
- EOF
- if { (eval echo configure:14898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_sys_large_files=1
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_sys_large_files" 1>&6
- if test "$ac_cv_sys_large_files" != no; then
- cat >> confdefs.h <<EOF
- #define _LARGE_FILES $ac_cv_sys_large_files
- EOF
- fi
- echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
- echo "configure:14917: checking for _LARGEFILE_SOURCE value needed for large files" >&5
- ac_cv_sys_largefile_source=no
- cat > conftest.$ac_ext <<EOF
- #line 14921 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- int main() {
- return !fseeko;
- ; return 0; }
- EOF
- if { (eval echo configure:14928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- :
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- cat > conftest.$ac_ext <<EOF
- #line 14935 "configure"
- #include "confdefs.h"
- #define _LARGEFILE_SOURCE 1
- #include <stdio.h>
-
- int main() {
- return !fseeko;
- ; return 0; }
- EOF
- if { (eval echo configure:14944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_sys_largefile_source=1
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
- if test "$ac_cv_sys_largefile_source" != no; then
- cat >> confdefs.h <<EOF
- #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
- EOF
- fi
- fi
-
- echo $ac_n "checking if system supports Large Files at all""... $ac_c" 1>&6
- echo "configure:14965: checking if system supports Large Files at all" >&5
- cat > conftest.$ac_ext <<EOF
- #line 14968 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- #include <sys/types.h>
- int main() {
- /*
- * Check that off_t can represent 2**63 - 1 correctly.
- * We can't simply "#define LARGE_OFF_T 9223372036854775807",
- * since some C++ compilers masquerading as C compilers
- * incorrectly reject 9223372036854775807.
- *
- * For MinGW, off64_t should be used and __MSVCRT_VERSION__ >= 0x0601
- * (msvcrt.dll version 6.10 or higher) is needed for _fstat64 and _stat64.
- */
- #ifdef __MINGW32__
- # define LARGE_OFF_T (((off64_t) 1 << 62) - 1 + ((off64_t) 1 << 62))
- #else
- # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- #endif
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
- #ifdef __MINGW32__
- return !fseeko64;
- return !ftello64;
- #else
- return !fseeko;
- return !ftello;
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:15000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_largefiles=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_largefiles=no
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_largefiles" 1>&6
- if test $ac_cv_largefiles = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_LARGEFILES 1
- EOF
- fi
- USE_LARGEFILES=
- if test $ac_cv_largefiles = yes; then
- USE_LARGEFILES=1
- fi
- # Done large file support
- # Python check
- echo $ac_n "checking whether to use Python""... $ac_c" 1>&6
- echo "configure:15029: checking whether to use Python" >&5
- PYTHONINC=
- PYTHONCFLAGS=
- PYTHONLDFLAGS=
- SWIG=
- USE_PYTHON=
- if test "$with_python" = "no" ; then
- echo "$ac_t""no" 1>&6
- else
- echo "$ac_t""yes" 1>&6
- USE_PYTHON="1"
- if test "$with_python" != "yes" ; then
- PY_CONFIG="$with_python"
- fi
- # Extract the first word of "python-config", so it can be a program name with args.
- set dummy python-config; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:15049: checking for $ac_word" >&5
- case "$PY_CONFIG" in
- /*)
- ac_cv_path_PY_CONFIG="$PY_CONFIG" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_PY_CONFIG="$PY_CONFIG" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_PY_CONFIG="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_PY_CONFIG" && ac_cv_path_PY_CONFIG="no"
- ;;
- esac
- PY_CONFIG="$ac_cv_path_PY_CONFIG"
- if test -n "$PY_CONFIG"; then
- echo "$ac_t""$PY_CONFIG" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$PY_CONFIG" != "no" ; then
- # With Python includes directory
- PYTHONINC=`"$PY_CONFIG" --includes`
-
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$PYTHONINC $CPPFLAGS"
- for ac_hdr in Python.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:15091: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 15094 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:15099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate Python includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- PYTHONCFLAGS=`"$PY_CONFIG" --cflags`
- # With Python library directory
- PYTHONLDFLAGS=`"$PY_CONFIG" --ldflags`
- fi
- # look for the swig program
- # Extract the first word of "swig", so it can be a program name with args.
- set dummy swig; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:15140: checking for $ac_word" >&5
- case "$SWIG" in
- /*)
- ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_SWIG="$SWIG" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_SWIG="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="no"
- ;;
- esac
- SWIG="$ac_cv_path_SWIG"
- if test -n "$SWIG"; then
- echo "$ac_t""$SWIG" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$SWIG" = "no" ; then
- { echo "configure: error: *** couldn't find swig" 1>&2; exit 1; }
- fi
- fi # Done checking Python
- # Enable wxWidgets support (for wxGUI)
- echo $ac_n "checking whether to use wxWidgets""... $ac_c" 1>&6
- echo "configure:15186: checking whether to use wxWidgets" >&5
- WXVERSION=
- WXWIDGETSCXXFLAGS=
- WXWIDGETSCPPFLAGS=
- WXWIDGETSLIB=
- USE_WXWIDGETS=
- if test "$with_wxwidgets" = "no" ; then
- echo "$ac_t""no" 1>&6
- else
- echo "$ac_t""yes" 1>&6
- USE_WXWIDGETS="1"
- if test "$with_wxwidgets" != "yes" ; then
- WX_CONFIG="$with_wxwidgets"
- fi
- # Extract the first word of "wx-config", so it can be a program name with args.
- set dummy wx-config; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:15206: checking for $ac_word" >&5
- case "$WX_CONFIG" in
- /*)
- ac_cv_path_WX_CONFIG="$WX_CONFIG" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_WX_CONFIG="$WX_CONFIG" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_WX_CONFIG="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_WX_CONFIG" && ac_cv_path_WX_CONFIG="no"
- ;;
- esac
- WX_CONFIG="$ac_cv_path_WX_CONFIG"
- if test -n "$WX_CONFIG"; then
- echo "$ac_t""$WX_CONFIG" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$WX_CONFIG" = "no" ; then
- { echo "configure: error: *** couldn't find wx-config
- wxWidgets must be installed on your system.
-
- Please check that wx-config is in path, the directory
- where wxWidgets libraries are installed (returned by
- 'wx-config --libs' or 'wx-config --static --libs' command)
- is in LD_LIBRARY_PATH or equivalent variable and
- wxWidgets version is 2.8.1 or above." 1>&2; exit 1; }
- fi
- # Check wxWidgets version
- REQWX="2.8.1"
- echo $ac_n "checking wxWidgets version""... $ac_c" 1>&6
- echo "configure:15254: checking wxWidgets version" >&5
- if WXVERSION=`"$WX_CONFIG" --version`; then
- echo "$ac_t""$WXVERSION" 1>&6
- else
- echo "$ac_t""not found" 1>&6
- { echo "configure: error: wxWidgets is required." 1>&2; exit 1; }
- fi
- if test `expr "$WXVERSION" \< "$REQWX"` = 1 ; then
- { echo "configure: error: *** wxWidgets "$REQWX" or later is required." 1>&2; exit 1; }
- fi
- # With wxWidgets includes directory
- WXWIDGETSCXXFLAGS=`"$WX_CONFIG" --cxxflags`
- WXWIDGETSCPPFLAGS=`"$WX_CONFIG" --cppflags`
-
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$WXWIDGETSCPPFLAGS $CPPFLAGS"
- for ac_hdr in wx/wxprec.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:15277: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 15280 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:15285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate wxWidgets includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
-
- # With wxWidgets library directory
- WXWIDGETSLIB=`"$WX_CONFIG" --libs`
- fi # $USE_WXWIDGETS
-
-
-
-
- # Done checking wxWidgets
- USE_TERMIO=
- STRIPFLAG=
- GRASS_HOME=${DSTDIR}
- trap '' 1 2 15
- trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
- test "x$prefix" = xNONE && prefix=$ac_default_prefix
- # Let make expand exec_prefix.
- test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
- # Any assignment to VPATH causes Sun make to only execute
- # the first set of double-colon rules, so remove it if not needed.
- # If there is a colon in the path, we need to keep it.
- if test "x$srcdir" = x.; then
- ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
- fi
- trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
- DEFS=-DHAVE_CONFIG_H
- # Without the "./", some shells look in PATH for config.status.
- : ${CONFIG_STATUS=./config.status}
- echo creating $CONFIG_STATUS
- rm -f $CONFIG_STATUS
- cat > $CONFIG_STATUS <<EOF
- #! /bin/sh
- # Generated automatically by configure.
- # Run this file to recreate the current configuration.
- # This directory was configured as follows,
- # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
- #
- # $0 $ac_configure_args
- #
- # Compiler output produced by configure, useful for debugging
- # configure, is in ./config.log if it exists.
- ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
- for ac_option
- do
- case "\$ac_option" in
- -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
- echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
- exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
- -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
- echo "$CONFIG_STATUS generated by autoconf version 2.13"
- exit 0 ;;
- -help | --help | --hel | --he | --h)
- echo "\$ac_cs_usage"; exit 0 ;;
- *) echo "\$ac_cs_usage"; exit 1 ;;
- esac
- done
- ac_given_srcdir=$srcdir
- ac_given_INSTALL="$INSTALL"
- trap 'rm -fr `echo "include/Make/Platform.make include/version.h swig/perl/Makefile.PL swig/perl2/make.pl grass.pc include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
- EOF
- cat >> $CONFIG_STATUS <<EOF
- # Protect against being on the right side of a sed subst in config.status.
- sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
- s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
- $ac_vpsub
- $extrasub
- s%@SHELL@%$SHELL%g
- s%@CFLAGS@%$CFLAGS%g
- s%@CPPFLAGS@%$CPPFLAGS%g
- s%@CXXFLAGS@%$CXXFLAGS%g
- s%@FFLAGS@%$FFLAGS%g
- s%@DEFS@%$DEFS%g
- s%@LDFLAGS@%$LDFLAGS%g
- s%@LIBS@%$LIBS%g
- s%@exec_prefix@%$exec_prefix%g
- s%@prefix@%$prefix%g
- s%@program_transform_name@%$program_transform_name%g
- s%@bindir@%$bindir%g
- s%@sbindir@%$sbindir%g
- s%@libexecdir@%$libexecdir%g
- s%@datadir@%$datadir%g
- s%@sysconfdir@%$sysconfdir%g
- s%@sharedstatedir@%$sharedstatedir%g
- s%@localstatedir@%$localstatedir%g
- s%@libdir@%$libdir%g
- s%@includedir@%$includedir%g
- s%@oldincludedir@%$oldincludedir%g
- s%@infodir@%$infodir%g
- s%@mandir@%$mandir%g
- s%@host@%$host%g
- s%@host_alias@%$host_alias%g
- s%@host_cpu@%$host_cpu%g
- s%@host_vendor@%$host_vendor%g
- s%@host_os@%$host_os%g
- s%@CC@%$CC%g
- s%@EXEEXT@%$EXEEXT%g
- s%@MINGW32@%$MINGW32%g
- s%@BINDIR@%$BINDIR%g
- s%@pwd@%$pwd%g
- s%@SRCDIR@%$SRCDIR%g
- s%@DSTDIR@%$DSTDIR%g
- s%@ARCH@%$ARCH%g
- s%@GISBASE@%$GISBASE%g
- s%@GRASS_BIN@%$GRASS_BIN%g
- s%@GRASS_VERSION_FILE@%$GRASS_VERSION_FILE%g
- s%@GRASS_VERSION_MAJOR@%$GRASS_VERSION_MAJOR%g
- s%@GRASS_VERSION_MINOR@%$GRASS_VERSION_MINOR%g
- s%@GRASS_VERSION_RELEASE@%$GRASS_VERSION_RELEASE%g
- s%@GRASS_VERSION_NUMBER@%$GRASS_VERSION_NUMBER%g
- s%@GRASS_VERSION_DATE@%$GRASS_VERSION_DATE%g
- s%@NAME_VER@%$NAME_VER%g
- s%@LIB_VER@%$LIB_VER%g
- s%@MACOSX_APP@%$MACOSX_APP%g
- s%@INSTDIR@%$INSTDIR%g
- s%@GRASS_LIB_PREFIX@%$GRASS_LIB_PREFIX%g
- s%@GRASS_LIB_SUFFIX@%$GRASS_LIB_SUFFIX%g
- s%@GRASS_LIBRARY_TYPE@%$GRASS_LIBRARY_TYPE%g
- s%@RANLIB@%$RANLIB%g
- s%@AR@%$AR%g
- s%@CPP@%$CPP%g
- s%@PLAT_OBJS@%$PLAT_OBJS%g
- s%@CFLAGS_DEBUG@%$CFLAGS_DEBUG%g
- s%@CFLAGS_OPTIMIZE@%$CFLAGS_OPTIMIZE%g
- s%@CFLAGS_WARNING@%$CFLAGS_WARNING%g
- s%@EXTRA_CFLAGS@%$EXTRA_CFLAGS%g
- s%@LDFLAGS_DEBUG@%$LDFLAGS_DEBUG%g
- s%@LDFLAGS_OPTIMIZE@%$LDFLAGS_OPTIMIZE%g
- s%@CC_SEARCH_FLAGS@%$CC_SEARCH_FLAGS%g
- s%@LD_SEARCH_FLAGS@%$LD_SEARCH_FLAGS%g
- s%@LD_LIBRARY_PATH_VAR@%$LD_LIBRARY_PATH_VAR%g
- s%@STLIB_LD@%$STLIB_LD%g
- s%@SHLIB_LD@%$SHLIB_LD%g
- s%@GRASS_SHLIB_LD_EXTRAS@%$GRASS_SHLIB_LD_EXTRAS%g
- s%@SHLIB_LD_FLAGS@%$SHLIB_LD_FLAGS%g
- s%@SHLIB_LD_LIBS@%$SHLIB_LD_LIBS%g
- s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
- s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
- s%@MAKE_LIB@%$MAKE_LIB%g
- s%@MAKE_STUB_LIB@%$MAKE_STUB_LIB%g
- s%@INSTALL_LIB@%$INSTALL_LIB%g
- s%@INSTALL_STUB_LIB@%$INSTALL_STUB_LIB%g
- s%@INCLUDE_DIRS@%$INCLUDE_DIRS%g
- s%@LIBRARY_DIRS@%$LIBRARY_DIRS%g
- s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
- s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
- s%@INSTALL_DATA@%$INSTALL_DATA%g
- s%@LEX@%$LEX%g
- s%@LEXLIB@%$LEXLIB%g
- s%@LEXPATH@%$LEXPATH%g
- s%@YACC@%$YACC%g
- s%@YACCPATH@%$YACCPATH%g
- s%@ENV@%$ENV%g
- s%@PERL@%$PERL%g
- s%@CROSS_COMPILING@%$CROSS_COMPILING%g
- s%@X_CFLAGS@%$X_CFLAGS%g
- s%@X_LIBS@%$X_LIBS%g
- s%@X_PRE_LIBS@%$X_PRE_LIBS%g
- s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
- s%@XLIB@%$XLIB%g
- s%@XTLIB@%$XTLIB%g
- s%@USE_X11@%$USE_X11%g
- s%@DBMIEXTRALIB@%$DBMIEXTRALIB%g
- s%@XDRLIB@%$XDRLIB%g
- s%@HAVE_ASPRINTF@%$HAVE_ASPRINTF%g
- s%@MATHLIB@%$MATHLIB%g
- s%@DLLIB@%$DLLIB%g
- s%@ICONVLIB@%$ICONVLIB%g
- s%@SOCKLIB@%$SOCKLIB%g
- s%@HAVE_SOCKET@%$HAVE_SOCKET%g
- s%@ZLIBINCPATH@%$ZLIBINCPATH%g
- s%@ZLIBLIBPATH@%$ZLIBLIBPATH%g
- s%@ZLIB@%$ZLIB%g
- s%@PROJINC@%$PROJINC%g
- s%@PROJLIB@%$PROJLIB%g
- s%@PROJSHARE@%$PROJSHARE%g
- s%@NAD2BIN@%$NAD2BIN%g
- s%@REGEXINCPATH@%$REGEXINCPATH%g
- s%@REGEXLIBPATH@%$REGEXLIBPATH%g
- s%@REGEXLIB@%$REGEXLIB%g
- s%@USE_REGEX@%$USE_REGEX%g
- s%@READLINEINCPATH@%$READLINEINCPATH%g
- s%@READLINELIBPATH@%$READLINELIBPATH%g
- s%@READLINELIB@%$READLINELIB%g
- s%@HISTORYLIB@%$HISTORYLIB%g
- s%@JPEGINCPATH@%$JPEGINCPATH%g
- s%@JPEGLIBPATH@%$JPEGLIBPATH%g
- s%@JPEGLIB@%$JPEGLIB%g
- s%@GDAL_CONFIG@%$GDAL_CONFIG%g
- s%@GDAL_LIBS@%$GDAL_LIBS%g
- s%@GDAL_CFLAGS@%$GDAL_CFLAGS%g
- s%@USE_GDAL@%$USE_GDAL%g
- s%@USE_OGR@%$USE_OGR%g
- s%@GEOS_CONFIG@%$GEOS_CONFIG%g
- s%@GEOS_LIBS@%$GEOS_LIBS%g
- s%@GEOS_CFLAGS@%$GEOS_CFLAGS%g
- s%@USE_GEOS@%$USE_GEOS%g
- s%@TIFF_INCLUDE_DIRS@%$TIFF_INCLUDE_DIRS%g
- s%@TIFF_LIBRARY_DIRS@%$TIFF_LIBRARY_DIRS%g
- s%@TIFFLIB@%$TIFFLIB%g
- s%@PNGINC@%$PNGINC%g
- s%@PNGLIB@%$PNGLIB%g
- s%@USE_PNG@%$USE_PNG%g
- s%@USE_POSTGRES@%$USE_POSTGRES%g
- s%@PQINCPATH@%$PQINCPATH%g
- s%@PQLIBPATH@%$PQLIBPATH%g
- s%@PQLIB@%$PQLIB%g
- s%@MYSQLD_CONFIG@%$MYSQLD_CONFIG%g
- s%@USE_MYSQL@%$USE_MYSQL%g
- s%@MYSQLINCPATH@%$MYSQLINCPATH%g
- s%@MYSQLLIBPATH@%$MYSQLLIBPATH%g
- s%@MYSQLLIB@%$MYSQLLIB%g
- s%@MYSQLDLIB@%$MYSQLDLIB%g
- s%@USE_SQLITE@%$USE_SQLITE%g
- s%@SQLITEINCPATH@%$SQLITEINCPATH%g
- s%@SQLITELIBPATH@%$SQLITELIBPATH%g
- s%@SQLITELIB@%$SQLITELIB%g
- s%@USE_FFMPEG@%$USE_FFMPEG%g
- s%@FFMPEGINCPATH@%$FFMPEGINCPATH%g
- s%@FFMPEGLIBPATH@%$FFMPEGLIBPATH%g
- s%@FFMPEGLIB@%$FFMPEGLIB%g
- s%@USE_OPENGL@%$USE_OPENGL%g
- s%@OPENGL_X11@%$OPENGL_X11%g
- s%@OPENGL_AQUA@%$OPENGL_AQUA%g
- s%@OPENGL_WINDOWS@%$OPENGL_WINDOWS%g
- s%@OPENGLINC@%$OPENGLINC%g
- s%@OPENGLLIB@%$OPENGLLIB%g
- s%@OPENGLULIB@%$OPENGLULIB%g
- s%@TCLINCDIR@%$TCLINCDIR%g
- s%@TKINCDIR@%$TKINCDIR%g
- s%@TCLTKLIBPATH@%$TCLTKLIBPATH%g
- s%@TCLTKLIBS@%$TCLTKLIBS%g
- s%@TCLTKAQUA_IS64BIT@%$TCLTKAQUA_IS64BIT%g
- s%@ODBCINC@%$ODBCINC%g
- s%@ODBCLIB@%$ODBCLIB%g
- s%@FFTWINC@%$FFTWINC%g
- s%@FFTWLIB@%$FFTWLIB%g
- s%@BLASLIB@%$BLASLIB%g
- s%@BLASINC@%$BLASINC%g
- s%@LAPACKLIB@%$LAPACKLIB%g
- s%@LAPACKINC@%$LAPACKINC%g
- s%@CAIRO_HAS_XRENDER@%$CAIRO_HAS_XRENDER%g
- s%@CAIRO_HAS_XRENDER_SURFACE@%$CAIRO_HAS_XRENDER_SURFACE%g
- s%@CAIROINC@%$CAIROINC%g
- s%@CAIROLIB@%$CAIROLIB%g
- s%@USE_CAIRO@%$USE_CAIRO%g
- s%@FTINC@%$FTINC%g
- s%@FTLIB@%$FTLIB%g
- s%@INTLLIB@%$INTLLIB%g
- s%@HAVE_NLS@%$HAVE_NLS%g
- s%@CXX@%$CXX%g
- s%@OPENDWGINCPATH@%$OPENDWGINCPATH%g
- s%@OPENDWGLIBPATH@%$OPENDWGLIBPATH%g
- s%@OPENDWGLIB@%$OPENDWGLIB%g
- s%@USE_OPENDWG@%$USE_OPENDWG%g
- s%@PTHREADINCPATH@%$PTHREADINCPATH%g
- s%@PTHREADLIBPATH@%$PTHREADLIBPATH%g
- s%@PTHREADLIB@%$PTHREADLIB%g
- s%@USE_PTHREAD@%$USE_PTHREAD%g
- s%@USE_LARGEFILES@%$USE_LARGEFILES%g
- s%@PY_CONFIG@%$PY_CONFIG%g
- s%@SWIG@%$SWIG%g
- s%@PYTHONINC@%$PYTHONINC%g
- s%@PYTHONCFLAGS@%$PYTHONCFLAGS%g
- s%@PYTHONLDFLAGS@%$PYTHONLDFLAGS%g
- s%@USE_PYTHON@%$USE_PYTHON%g
- s%@WX_CONFIG@%$WX_CONFIG%g
- s%@WXVERSION@%$WXVERSION%g
- s%@WXWIDGETSCXXFLAGS@%$WXWIDGETSCXXFLAGS%g
- s%@WXWIDGETSCPPFLAGS@%$WXWIDGETSCPPFLAGS%g
- s%@WXWIDGETSLIB@%$WXWIDGETSLIB%g
- s%@USE_WXWIDGETS@%$USE_WXWIDGETS%g
- s%@USE_TERMIO@%$USE_TERMIO%g
- s%@STRIPFLAG@%$STRIPFLAG%g
- s%@GRASS_HOME@%$GRASS_HOME%g
- CEOF
- EOF
- cat >> $CONFIG_STATUS <<\EOF
- # Split the substitutions into bite-sized pieces for seds with
- # small command number limits, like on Digital OSF/1 and HP-UX.
- ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
- ac_file=1 # Number of current file.
- ac_beg=1 # First line for current file.
- ac_end=$ac_max_sed_cmds # Line after last line for current file.
- ac_more_lines=:
- ac_sed_cmds=""
- while $ac_more_lines; do
- if test $ac_beg -gt 1; then
- sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
- else
- sed "${ac_end}q" conftest.subs > conftest.s$ac_file
- fi
- if test ! -s conftest.s$ac_file; then
- ac_more_lines=false
- rm -f conftest.s$ac_file
- else
- if test -z "$ac_sed_cmds"; then
- ac_sed_cmds="sed -f conftest.s$ac_file"
- else
- ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
- fi
- ac_file=`expr $ac_file + 1`
- ac_beg=$ac_end
- ac_end=`expr $ac_end + $ac_max_sed_cmds`
- fi
- done
- if test -z "$ac_sed_cmds"; then
- ac_sed_cmds=cat
- fi
- EOF
- cat >> $CONFIG_STATUS <<EOF
- CONFIG_FILES=\${CONFIG_FILES-"include/Make/Platform.make include/version.h swig/perl/Makefile.PL swig/perl2/make.pl grass.pc"}
- EOF
- cat >> $CONFIG_STATUS <<\EOF
- for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
- # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
- case "$ac_file" in
- *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
- ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
- *) ac_file_in="${ac_file}.in" ;;
- esac
- # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
- # Remove last slash and all that follows it. Not all systems have dirname.
- ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
- if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
- # The file is in a subdirectory.
- test ! -d "$ac_dir" && mkdir "$ac_dir"
- ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
- # A "../" for each directory in $ac_dir_suffix.
- ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
- else
- ac_dir_suffix= ac_dots=
- fi
- case "$ac_given_srcdir" in
- .) srcdir=.
- if test -z "$ac_dots"; then top_srcdir=.
- else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
- /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
- *) # Relative path.
- srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
- top_srcdir="$ac_dots$ac_given_srcdir" ;;
- esac
- case "$ac_given_INSTALL" in
- [/$]*) INSTALL="$ac_given_INSTALL" ;;
- *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
- esac
- echo creating "$ac_file"
- rm -f "$ac_file"
- configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
- case "$ac_file" in
- *Makefile*) ac_comsub="1i\\
- # $configure_input" ;;
- *) ac_comsub= ;;
- esac
- ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
- sed -e "$ac_comsub
- s%@configure_input@%$configure_input%g
- s%@srcdir@%$srcdir%g
- s%@top_srcdir@%$top_srcdir%g
- s%@INSTALL@%$INSTALL%g
- " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
- fi; done
- rm -f conftest.s*
- # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
- # NAME is the cpp macro being defined and VALUE is the value it is being given.
- #
- # ac_d sets the value in "#define NAME VALUE" lines.
- ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
- ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
- ac_dC='\3'
- ac_dD='%g'
- # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
- ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
- ac_uB='\([ ]\)%\1#\2define\3'
- ac_uC=' '
- ac_uD='\4%g'
- # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
- ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
- ac_eB='$%\1#\2define\3'
- ac_eC=' '
- ac_eD='%g'
- if test "${CONFIG_HEADERS+set}" != set; then
- EOF
- cat >> $CONFIG_STATUS <<EOF
- CONFIG_HEADERS="include/config.h"
- EOF
- cat >> $CONFIG_STATUS <<\EOF
- fi
- for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
- # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
- case "$ac_file" in
- *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
- ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
- *) ac_file_in="${ac_file}.in" ;;
- esac
- echo creating $ac_file
- rm -f conftest.frag conftest.in conftest.out
- ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
- cat $ac_file_inputs > conftest.in
- EOF
- # Transform confdefs.h into a sed script conftest.vals that substitutes
- # the proper values into config.h.in to produce config.h. And first:
- # Protect against being on the right side of a sed subst in config.status.
- # Protect against being in an unquoted here document in config.status.
- rm -f conftest.vals
- cat > conftest.hdr <<\EOF
- s/[\\&%]/\\&/g
- s%[\\$`]%\\&%g
- s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
- s%ac_d%ac_u%gp
- s%ac_u%ac_e%gp
- EOF
- sed -n -f conftest.hdr confdefs.h > conftest.vals
- rm -f conftest.hdr
- # This sed command replaces #undef with comments. This is necessary, for
- # example, in the case of _POSIX_SOURCE, which is predefined and required
- # on some systems where configure will not decide to define it.
- cat >> conftest.vals <<\EOF
- s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
- EOF
- # Break up conftest.vals because some shells have a limit on
- # the size of here documents, and old seds have small limits too.
- rm -f conftest.tail
- while :
- do
- ac_lines=`grep -c . conftest.vals`
- # grep -c gives empty output for an empty file on some AIX systems.
- if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
- # Write a limited-size here document to conftest.frag.
- echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
- sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
- echo 'CEOF
- sed -f conftest.frag conftest.in > conftest.out
- rm -f conftest.in
- mv conftest.out conftest.in
- ' >> $CONFIG_STATUS
- sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
- rm -f conftest.vals
- mv conftest.tail conftest.vals
- done
- rm -f conftest.vals
- cat >> $CONFIG_STATUS <<\EOF
- rm -f conftest.frag conftest.h
- echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
- cat conftest.in >> conftest.h
- rm -f conftest.in
- if cmp -s $ac_file conftest.h 2>/dev/null; then
- echo "$ac_file is unchanged"
- rm -f conftest.h
- else
- # Remove last slash and all that follows it. Not all systems have dirname.
- ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
- if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
- # The file is in a subdirectory.
- test ! -d "$ac_dir" && mkdir "$ac_dir"
- fi
- rm -f $ac_file
- mv conftest.h $ac_file
- fi
- fi; done
- EOF
- cat >> $CONFIG_STATUS <<EOF
- EOF
- cat >> $CONFIG_STATUS <<\EOF
- exit 0
- EOF
- chmod +x $CONFIG_STATUS
- rm -fr confdefs* $ac_clean_files
- test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
- echo "Copying config.status to config.status.${ARCH}"
- cp -f config.status config.status.${ARCH}
- # Display configuration status
- USE_TOGL=
- if test -n "${USE_TCLTK}" -a -n "${USE_OPENGL}" ; then
- USE_TOGL="1"
- fi
- echo ""
- echo "GRASS is now configured for: ${host}"
- echo ""
- echo " Source directory: ${SRCDIR}"
- echo " Build directory: ${DSTDIR}"
- echo " Installation directory: ${INSTDIR}"
- echo " Startup script in directory: ${bindir}"
- echo " C compiler: ${CC} ${CFLAGS}"
- echo " C++ compiler: ${CXX} ${CXXFLAGS}"
- #LOC_MSG([ FORTRAN compiler: ${F77} ${FFLAGS}])
- echo " Building shared libraries: ${shared_ok}"
- echo " 64bit support: ${do64bit}"
- echo " OpenGL platform: ${OPENGL_TYPE}"
- echo ""
- echo " MacOSX application: `if test -n "${MACOSX_APP}" ; then echo yes ; else echo no ; fi`"
- echo ""
- echo " NVIZ: `if test -n "${USE_TOGL}" ; then echo yes ; else echo no ; fi`"
- echo ""
- echo " BLAS support: `if test -n "${USE_BLAS}" ; then echo yes ; else echo no ; fi`"
- echo " C++ support: `if test -n "${USE_CXX}" ; then echo yes ; else echo no ; fi`"
- echo " Cairo support: `if test -n "${USE_CAIRO}" ; then echo yes ; else echo no ; fi`"
- echo " DWG support: `if test -n "${USE_OPENDWG}" ; then echo yes ; else echo no ; fi`"
- echo " FFMPEG support: `if test -n "${USE_FFMPEG}" ; then echo yes ; else echo no ; fi`"
- echo " FFTW support: `if test -n "${USE_FFTW}" ; then echo yes ; else echo no ; fi`"
- echo " FreeType support: `if test -n "${USE_FREETYPE}" ; then echo yes ; else echo no ; fi`"
- echo " GDAL support: `if test -n "${USE_GDAL}" ; then echo yes ; else echo no ; fi`"
- echo " GEOS support: `if test -n "${USE_GEOS}" ; then echo yes ; else echo no ; fi`"
- echo " JPEG support: `if test -n "${USE_JPEG}" ; then echo yes ; else echo no ; fi`"
- echo " LAPACK support: `if test -n "${USE_LAPACK}" ; then echo yes ; else echo no ; fi`"
- echo " Large File support (LFS): `if test -n "${USE_LARGEFILES}" ; then echo yes ; else echo no ; fi`"
- echo " MySQL support: `if test -n "${USE_MYSQL}" ; then echo yes ; else echo no ; fi`"
- echo " NLS support: `if test -n "${USE_NLS}" ; then echo yes ; else echo no ; fi`"
- echo " ODBC support: `if test -n "${USE_ODBC}" ; then echo yes ; else echo no ; fi`"
- echo " OGR support: `if test -n "${USE_OGR}" ; then echo yes ; else echo no ; fi`"
- echo " OpenGL support: `if test -n "${USE_OPENGL}" ; then echo yes ; else echo no ; fi`"
- echo " PNG support: `if test -n "${USE_PNG}" ; then echo yes ; else echo no ; fi`"
- echo " PostgreSQL support: `if test -n "${USE_POSTGRES}" ; then echo yes ; else echo no ; fi`"
- echo " Python support: `if test -n "${USE_PYTHON}" ; then echo yes ; else echo no ; fi`"
- echo " Readline support: `if test -n "${USE_READLINE}" ; then echo yes ; else echo no ; fi`"
- echo " SQLite support: `if test -n "${USE_SQLITE}" ; then echo yes ; else echo no ; fi`"
- echo " Tcl/Tk support: `if test -n "${USE_TCLTK}" ; then echo yes ; else echo no ; fi`"
- echo " wxWidgets support: `if test -n "${USE_WXWIDGETS}" ; then echo yes ; else echo no ; fi`"
- echo " TIFF support: `if test -n "${USE_TIFF}" ; then echo yes ; else echo no ; fi`"
- echo " X11 support: `if test -n "${USE_X11}" ; then echo yes ; else echo no ; fi`"
- echo " Regex support: `if test -n "${USE_REGEX}" ; then echo yes ; else echo no ; fi`"
- echo " POSIX thread support: `if test -n "${USE_PTHREAD}" ; then echo yes ; else echo no ; fi`"
- echo ""
|