configure 386 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 2.13
  4. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  5. #
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. # Defaults:
  9. ac_help=
  10. ac_default_prefix=/usr/local
  11. # Any additions from configure.in:
  12. ac_default_prefix=/usr/local
  13. ac_help="$ac_help
  14. --enable-macosx-app create a MacOSX application"
  15. ac_help="$ac_help
  16. --enable-shared build and link with shared libraries [--enable-shared]"
  17. ac_help="$ac_help
  18. --enable-w11 use W11 library for Windows X11 emulation"
  19. ac_help="$ac_help
  20. --with-cxx support C++ functionality (default: yes)"
  21. ac_help="$ac_help
  22. --with-macosx-archs[=arch list]
  23. compile multiple architectures on MacOSX, ie.
  24. universal. Valid architectures are i386, ppc,
  25. x86_64 and ppc64. (default: no [native])"
  26. ac_help="$ac_help
  27. --with-macosx-sdk[=path/sdk]
  28. compile with a system SDK on MacOSX. (default: no)"
  29. ac_help="$ac_help
  30. --with-jpeg support JPEG functionality (default: yes)"
  31. ac_help="$ac_help
  32. --with-tiff support TIFF functionality (default: yes)"
  33. ac_help="$ac_help
  34. --with-png support PNG functionality (default: yes)"
  35. ac_help="$ac_help
  36. --with-tcltk support Tcl/Tk functionality (default: yes)"
  37. ac_help="$ac_help
  38. --with-postgres support PostgreSQL functionality (default: no)"
  39. ac_help="$ac_help
  40. --with-mysql support MySQL functionality (default: no)"
  41. ac_help="$ac_help
  42. --with-sqlite support SQLite functionality (default: no)"
  43. ac_help="$ac_help
  44. --with-ffmpeg support FFMPEG functionality (default: no)"
  45. ac_help="$ac_help
  46. --with-opengl support OpenGL functionality (default: yes)"
  47. ac_help="$ac_help
  48. --with-odbc support ODBC functionality (default: no)"
  49. ac_help="$ac_help
  50. --with-fftw support FFTW functionality (default: yes)"
  51. ac_help="$ac_help
  52. --with-blas support BLAS functionality (default: no)"
  53. ac_help="$ac_help
  54. --with-lapack support LAPACK functionality (default: no)"
  55. ac_help="$ac_help
  56. --with-cairo support Cairo functionality (default: yes)"
  57. ac_help="$ac_help
  58. --with-freetype support FreeType functionality (default: yes)"
  59. ac_help="$ac_help
  60. --with-nls support NLS functionality (default: no)"
  61. ac_help="$ac_help
  62. --with-readline support Readline functionality (default: no)"
  63. ac_help="$ac_help
  64. --with-opendwg support openDWG functionality (default: no)"
  65. ac_help="$ac_help
  66. --with-regex support regex functionality (default: yes)"
  67. ac_help="$ac_help
  68. --with-pthread support POSIX threads functionality (default: no)"
  69. ac_help="$ac_help
  70. --with-gdal[=path/gdal-config]
  71. enable GDAL/OGR support (gdal-config with path,
  72. e.g. '--with-gdal=/usr/local/bin/gdal-config')"
  73. ac_help="$ac_help
  74. --with-liblas[=path/liblas-config]
  75. enable libLAS support (liblas-config with path,
  76. e.g. '--with-liblas=/usr/local/bin/liblas-config',
  77. default: no)"
  78. ac_help="$ac_help
  79. --with-wxwidgets[=path/wx-config]
  80. enable wxWidgets support (wx-config with path,
  81. e.g. '--with-wxwidgets=/usr/local/bin/wx-config',
  82. default: no)"
  83. ac_help="$ac_help
  84. --with-geos[=path/geos-config]
  85. enable GEOS support (geos-config with path,
  86. e.g. '--with-geos=/usr/local/bin/geos-config',
  87. default: no)"
  88. ac_help="$ac_help
  89. --with-includes=DIRS site include files are in DIRS"
  90. ac_help="$ac_help
  91. --with-libs=DIRS site library files are in DIRS"
  92. ac_help="$ac_help
  93. --with-zlib-includes=DIRS
  94. zlib include files are in DIRS"
  95. ac_help="$ac_help
  96. --with-zlib-libs=DIRS zlib library files are in DIRS"
  97. ac_help="$ac_help
  98. --with-readline-includes=DIRS
  99. Readline include files are in DIRS"
  100. ac_help="$ac_help
  101. --with-readline-libs=DIRS
  102. Readline library files are in DIRS"
  103. ac_help="$ac_help
  104. --with-jpeg-includes=DIRS
  105. JPEG include files are in DIRS"
  106. ac_help="$ac_help
  107. --with-jpeg-libs=DIRS JPEG library files are in DIRS"
  108. ac_help="$ac_help
  109. --with-tiff-includes=DIRS
  110. TIFF include files are in DIRS"
  111. ac_help="$ac_help
  112. --with-tiff-libs=DIRS TIFF library files are in DIRS"
  113. ac_help="$ac_help
  114. --with-png-includes=DIRS
  115. PNG include files are in DIRS"
  116. ac_help="$ac_help
  117. --with-png-libs=DIRS PNG library files are in DIRS"
  118. ac_help="$ac_help
  119. --with-tcltk-includes=DIRS
  120. Tcl/Tk include files are in DIRS"
  121. ac_help="$ac_help
  122. --with-tcltk-libs=DIRS Tcl/Tk library files are in DIRS"
  123. ac_help="$ac_help
  124. --with-postgres-includes=DIRS
  125. PostgreSQL include files are in DIRS"
  126. ac_help="$ac_help
  127. --with-postgres-libs=DIRS
  128. PostgreSQL library files are in DIRS"
  129. ac_help="$ac_help
  130. --with-mysql-includes=DIRS
  131. MySQL include files are in DIRS"
  132. ac_help="$ac_help
  133. --with-mysql-libs=DIRS MySQL library files are in DIRS"
  134. ac_help="$ac_help
  135. --with-sqlite-includes=DIRS
  136. SQLite include files are in DIRS"
  137. ac_help="$ac_help
  138. --with-sqlite-libs=DIRS SQLite library files are in DIRS"
  139. ac_help="$ac_help
  140. --with-ffmpeg-includes=DIRS
  141. FFMPEG include files are in DIRS"
  142. ac_help="$ac_help
  143. --with-ffmpeg-libs=DIRS FFMPEG library files are in DIRS"
  144. ac_help="$ac_help
  145. --with-opengl-includes=DIRS
  146. OpenGL include files are in DIRS"
  147. ac_help="$ac_help
  148. --with-opengl-libs=DIRS OpenGL library files are in DIRS"
  149. ac_help="$ac_help
  150. --with-opengl-framework=DIR
  151. OpenGL framework is in DIR"
  152. ac_help="$ac_help
  153. --with-odbc-includes=DIRS
  154. ODBC include files are in DIRS"
  155. ac_help="$ac_help
  156. --with-odbc-libs=DIRS ODBC library files are in DIRS"
  157. ac_help="$ac_help
  158. --with-fftw-includes=DIRS
  159. FFTW include files are in DIRS"
  160. ac_help="$ac_help
  161. --with-fftw-libs=DIRS FFTW library files are in DIRS"
  162. ac_help="$ac_help
  163. --with-blas-includes=DIRS
  164. BLAS include files are in DIRS"
  165. ac_help="$ac_help
  166. --with-blas-libs=DIRS BLAS library files are in DIRS"
  167. ac_help="$ac_help
  168. --with-lapack-includes=DIRS
  169. LAPACK include files are in DIRS"
  170. ac_help="$ac_help
  171. --with-lapack-libs=DIRS LAPACK library files are in DIRS"
  172. ac_help="$ac_help
  173. --with-cairo-includes=DIRS
  174. cairo include files are in DIRS"
  175. ac_help="$ac_help
  176. --with-cairo-libs=DIRS cairo library files are in DIRS"
  177. ac_help="$ac_help
  178. --with-cairo-ldflags=FLAGS
  179. cairo needs FLAGS when linking"
  180. ac_help="$ac_help
  181. --with-freetype-includes=DIRS
  182. FreeType include files are in DIRS"
  183. ac_help="$ac_help
  184. --with-freetype-libs=DIRS
  185. FreeType library files are in DIRS"
  186. ac_help="$ac_help
  187. --with-proj-includes=DIRS
  188. External PROJ.4 include files are in DIRS"
  189. ac_help="$ac_help
  190. --with-proj-libs=DIRS External PROJ.4 library files are in DIRS"
  191. ac_help="$ac_help
  192. --with-proj-share=DIR External PROJ.4 data files are in DIR"
  193. ac_help="$ac_help
  194. --with-opendwg-includes=DIRS
  195. openDWG include files are in DIRS"
  196. ac_help="$ac_help
  197. --with-opendwg-libs=DIRS
  198. openDWG library files are in DIRS"
  199. ac_help="$ac_help
  200. --with-regex-includes=DIRS
  201. regex include files are in DIRS"
  202. ac_help="$ac_help
  203. --with-regex-libs=DIRS regex library files are in DIRS"
  204. ac_help="$ac_help
  205. --with-pthread-includes=DIRS
  206. POSIX threads include files are in DIRS"
  207. ac_help="$ac_help
  208. --with-pthread-libs=DIRS
  209. POSIX threads library files are in DIRS"
  210. ac_help="$ac_help
  211. --with-x use the X Window System"
  212. ac_help="$ac_help
  213. --enable-largefile enable support for large files (LFS)"
  214. # Initialize some variables set by options.
  215. # The variables have the same names as the options, with
  216. # dashes changed to underlines.
  217. build=NONE
  218. cache_file=./config.cache
  219. exec_prefix=NONE
  220. host=NONE
  221. no_create=
  222. nonopt=NONE
  223. no_recursion=
  224. prefix=NONE
  225. program_prefix=NONE
  226. program_suffix=NONE
  227. program_transform_name=s,x,x,
  228. silent=
  229. site=
  230. srcdir=
  231. target=NONE
  232. verbose=
  233. x_includes=NONE
  234. x_libraries=NONE
  235. bindir='${exec_prefix}/bin'
  236. sbindir='${exec_prefix}/sbin'
  237. libexecdir='${exec_prefix}/libexec'
  238. datadir='${prefix}/share'
  239. sysconfdir='${prefix}/etc'
  240. sharedstatedir='${prefix}/com'
  241. localstatedir='${prefix}/var'
  242. libdir='${exec_prefix}/lib'
  243. includedir='${prefix}/include'
  244. oldincludedir='/usr/include'
  245. infodir='${prefix}/info'
  246. mandir='${prefix}/man'
  247. # Initialize some other variables.
  248. subdirs=
  249. MFLAGS= MAKEFLAGS=
  250. SHELL=${CONFIG_SHELL-/bin/sh}
  251. # Maximum number of lines to put in a shell here document.
  252. ac_max_here_lines=12
  253. ac_prev=
  254. for ac_option
  255. do
  256. # If the previous option needs an argument, assign it.
  257. if test -n "$ac_prev"; then
  258. eval "$ac_prev=\$ac_option"
  259. ac_prev=
  260. continue
  261. fi
  262. case "$ac_option" in
  263. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  264. *) ac_optarg= ;;
  265. esac
  266. # Accept the important Cygnus configure options, so we can diagnose typos.
  267. case "$ac_option" in
  268. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  269. ac_prev=bindir ;;
  270. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  271. bindir="$ac_optarg" ;;
  272. -build | --build | --buil | --bui | --bu)
  273. ac_prev=build ;;
  274. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  275. build="$ac_optarg" ;;
  276. -cache-file | --cache-file | --cache-fil | --cache-fi \
  277. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  278. ac_prev=cache_file ;;
  279. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  280. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  281. cache_file="$ac_optarg" ;;
  282. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  283. ac_prev=datadir ;;
  284. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  285. | --da=*)
  286. datadir="$ac_optarg" ;;
  287. -disable-* | --disable-*)
  288. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  289. # Reject names that are not valid shell variable names.
  290. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  291. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  292. fi
  293. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  294. eval "enable_${ac_feature}=no" ;;
  295. -enable-* | --enable-*)
  296. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  297. # Reject names that are not valid shell variable names.
  298. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  299. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  300. fi
  301. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  302. case "$ac_option" in
  303. *=*) ;;
  304. *) ac_optarg=yes ;;
  305. esac
  306. eval "enable_${ac_feature}='$ac_optarg'" ;;
  307. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  308. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  309. | --exec | --exe | --ex)
  310. ac_prev=exec_prefix ;;
  311. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  312. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  313. | --exec=* | --exe=* | --ex=*)
  314. exec_prefix="$ac_optarg" ;;
  315. -gas | --gas | --ga | --g)
  316. # Obsolete; use --with-gas.
  317. with_gas=yes ;;
  318. -help | --help | --hel | --he)
  319. # Omit some internal or obsolete options to make the list less imposing.
  320. # This message is too long to be a string in the A/UX 3.1 sh.
  321. cat << EOF
  322. Usage: configure [options] [host]
  323. Options: [defaults in brackets after descriptions]
  324. Configuration:
  325. --cache-file=FILE cache test results in FILE
  326. --help print this message
  327. --no-create do not create output files
  328. --quiet, --silent do not print \`checking...' messages
  329. --version print the version of autoconf that created configure
  330. Directory and file names:
  331. --prefix=PREFIX install architecture-independent files in PREFIX
  332. [$ac_default_prefix]
  333. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  334. [same as prefix]
  335. --bindir=DIR user executables in DIR [EPREFIX/bin]
  336. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  337. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  338. --datadir=DIR read-only architecture-independent data in DIR
  339. [PREFIX/share]
  340. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  341. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  342. [PREFIX/com]
  343. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  344. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  345. --includedir=DIR C header files in DIR [PREFIX/include]
  346. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  347. --infodir=DIR info documentation in DIR [PREFIX/info]
  348. --mandir=DIR man documentation in DIR [PREFIX/man]
  349. --srcdir=DIR find the sources in DIR [configure dir or ..]
  350. --program-prefix=PREFIX prepend PREFIX to installed program names
  351. --program-suffix=SUFFIX append SUFFIX to installed program names
  352. --program-transform-name=PROGRAM
  353. run sed PROGRAM on installed program names
  354. EOF
  355. cat << EOF
  356. Host type:
  357. --build=BUILD configure for building on BUILD [BUILD=HOST]
  358. --host=HOST configure for HOST [guessed]
  359. --target=TARGET configure for TARGET [TARGET=HOST]
  360. Features and packages:
  361. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  362. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  363. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  364. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  365. --x-includes=DIR X include files are in DIR
  366. --x-libraries=DIR X library files are in DIR
  367. EOF
  368. if test -n "$ac_help"; then
  369. echo "--enable and --with options recognized:$ac_help"
  370. fi
  371. exit 0 ;;
  372. -host | --host | --hos | --ho)
  373. ac_prev=host ;;
  374. -host=* | --host=* | --hos=* | --ho=*)
  375. host="$ac_optarg" ;;
  376. -includedir | --includedir | --includedi | --included | --include \
  377. | --includ | --inclu | --incl | --inc)
  378. ac_prev=includedir ;;
  379. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  380. | --includ=* | --inclu=* | --incl=* | --inc=*)
  381. includedir="$ac_optarg" ;;
  382. -infodir | --infodir | --infodi | --infod | --info | --inf)
  383. ac_prev=infodir ;;
  384. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  385. infodir="$ac_optarg" ;;
  386. -libdir | --libdir | --libdi | --libd)
  387. ac_prev=libdir ;;
  388. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  389. libdir="$ac_optarg" ;;
  390. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  391. | --libexe | --libex | --libe)
  392. ac_prev=libexecdir ;;
  393. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  394. | --libexe=* | --libex=* | --libe=*)
  395. libexecdir="$ac_optarg" ;;
  396. -localstatedir | --localstatedir | --localstatedi | --localstated \
  397. | --localstate | --localstat | --localsta | --localst \
  398. | --locals | --local | --loca | --loc | --lo)
  399. ac_prev=localstatedir ;;
  400. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  401. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  402. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  403. localstatedir="$ac_optarg" ;;
  404. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  405. ac_prev=mandir ;;
  406. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  407. mandir="$ac_optarg" ;;
  408. -nfp | --nfp | --nf)
  409. # Obsolete; use --without-fp.
  410. with_fp=no ;;
  411. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  412. | --no-cr | --no-c)
  413. no_create=yes ;;
  414. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  415. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  416. no_recursion=yes ;;
  417. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  418. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  419. | --oldin | --oldi | --old | --ol | --o)
  420. ac_prev=oldincludedir ;;
  421. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  422. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  423. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  424. oldincludedir="$ac_optarg" ;;
  425. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  426. ac_prev=prefix ;;
  427. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  428. prefix="$ac_optarg" ;;
  429. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  430. | --program-pre | --program-pr | --program-p)
  431. ac_prev=program_prefix ;;
  432. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  433. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  434. program_prefix="$ac_optarg" ;;
  435. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  436. | --program-suf | --program-su | --program-s)
  437. ac_prev=program_suffix ;;
  438. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  439. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  440. program_suffix="$ac_optarg" ;;
  441. -program-transform-name | --program-transform-name \
  442. | --program-transform-nam | --program-transform-na \
  443. | --program-transform-n | --program-transform- \
  444. | --program-transform | --program-transfor \
  445. | --program-transfo | --program-transf \
  446. | --program-trans | --program-tran \
  447. | --progr-tra | --program-tr | --program-t)
  448. ac_prev=program_transform_name ;;
  449. -program-transform-name=* | --program-transform-name=* \
  450. | --program-transform-nam=* | --program-transform-na=* \
  451. | --program-transform-n=* | --program-transform-=* \
  452. | --program-transform=* | --program-transfor=* \
  453. | --program-transfo=* | --program-transf=* \
  454. | --program-trans=* | --program-tran=* \
  455. | --progr-tra=* | --program-tr=* | --program-t=*)
  456. program_transform_name="$ac_optarg" ;;
  457. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  458. | -silent | --silent | --silen | --sile | --sil)
  459. silent=yes ;;
  460. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  461. ac_prev=sbindir ;;
  462. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  463. | --sbi=* | --sb=*)
  464. sbindir="$ac_optarg" ;;
  465. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  466. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  467. | --sharedst | --shareds | --shared | --share | --shar \
  468. | --sha | --sh)
  469. ac_prev=sharedstatedir ;;
  470. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  471. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  472. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  473. | --sha=* | --sh=*)
  474. sharedstatedir="$ac_optarg" ;;
  475. -site | --site | --sit)
  476. ac_prev=site ;;
  477. -site=* | --site=* | --sit=*)
  478. site="$ac_optarg" ;;
  479. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  480. ac_prev=srcdir ;;
  481. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  482. srcdir="$ac_optarg" ;;
  483. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  484. | --syscon | --sysco | --sysc | --sys | --sy)
  485. ac_prev=sysconfdir ;;
  486. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  487. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  488. sysconfdir="$ac_optarg" ;;
  489. -target | --target | --targe | --targ | --tar | --ta | --t)
  490. ac_prev=target ;;
  491. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  492. target="$ac_optarg" ;;
  493. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  494. verbose=yes ;;
  495. -version | --version | --versio | --versi | --vers)
  496. echo "configure generated by autoconf version 2.13"
  497. exit 0 ;;
  498. -with-* | --with-*)
  499. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  500. # Reject names that are not valid shell variable names.
  501. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  502. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  503. fi
  504. ac_package=`echo $ac_package| sed 's/-/_/g'`
  505. case "$ac_option" in
  506. *=*) ;;
  507. *) ac_optarg=yes ;;
  508. esac
  509. eval "with_${ac_package}='$ac_optarg'" ;;
  510. -without-* | --without-*)
  511. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  512. # Reject names that are not valid shell variable names.
  513. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  514. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  515. fi
  516. ac_package=`echo $ac_package| sed 's/-/_/g'`
  517. eval "with_${ac_package}=no" ;;
  518. --x)
  519. # Obsolete; use --with-x.
  520. with_x=yes ;;
  521. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  522. | --x-incl | --x-inc | --x-in | --x-i)
  523. ac_prev=x_includes ;;
  524. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  525. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  526. x_includes="$ac_optarg" ;;
  527. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  528. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  529. ac_prev=x_libraries ;;
  530. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  531. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  532. x_libraries="$ac_optarg" ;;
  533. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  534. ;;
  535. *)
  536. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  537. echo "configure: warning: $ac_option: invalid host type" 1>&2
  538. fi
  539. if test "x$nonopt" != xNONE; then
  540. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  541. fi
  542. nonopt="$ac_option"
  543. ;;
  544. esac
  545. done
  546. if test -n "$ac_prev"; then
  547. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  548. fi
  549. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  550. # File descriptor usage:
  551. # 0 standard input
  552. # 1 file creation
  553. # 2 errors and warnings
  554. # 3 some systems may open it to /dev/tty
  555. # 4 used on the Kubota Titan
  556. # 6 checking for... messages and results
  557. # 5 compiler messages saved in config.log
  558. if test "$silent" = yes; then
  559. exec 6>/dev/null
  560. else
  561. exec 6>&1
  562. fi
  563. exec 5>./config.log
  564. echo "\
  565. This file contains any messages produced by compilers while
  566. running configure, to aid debugging if configure makes a mistake.
  567. " 1>&5
  568. # Strip out --no-create and --no-recursion so they do not pile up.
  569. # Also quote any args containing shell metacharacters.
  570. ac_configure_args=
  571. for ac_arg
  572. do
  573. case "$ac_arg" in
  574. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  575. | --no-cr | --no-c) ;;
  576. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  577. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  578. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  579. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  580. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  581. esac
  582. done
  583. # NLS nuisances.
  584. # Only set these to C if already set. These must not be set unconditionally
  585. # because not all systems understand e.g. LANG=C (notably SCO).
  586. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  587. # Non-C LC_CTYPE values break the ctype check.
  588. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  589. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  590. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  591. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  592. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  593. rm -rf conftest* confdefs.h
  594. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  595. echo > confdefs.h
  596. # A filename unique to this package, relative to the directory that
  597. # configure is in, which we can look for to find out if srcdir is correct.
  598. ac_unique_file=configure.in
  599. # Find the source files, if location was not specified.
  600. if test -z "$srcdir"; then
  601. ac_srcdir_defaulted=yes
  602. # Try the directory containing this script, then its parent.
  603. ac_prog=$0
  604. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  605. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  606. srcdir=$ac_confdir
  607. if test ! -r $srcdir/$ac_unique_file; then
  608. srcdir=..
  609. fi
  610. else
  611. ac_srcdir_defaulted=no
  612. fi
  613. if test ! -r $srcdir/$ac_unique_file; then
  614. if test "$ac_srcdir_defaulted" = yes; then
  615. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  616. else
  617. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  618. fi
  619. fi
  620. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  621. # Prefer explicitly selected file to automatically selected ones.
  622. if test -z "$CONFIG_SITE"; then
  623. if test "x$prefix" != xNONE; then
  624. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  625. else
  626. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  627. fi
  628. fi
  629. for ac_site_file in $CONFIG_SITE; do
  630. if test -r "$ac_site_file"; then
  631. echo "loading site script $ac_site_file"
  632. . "$ac_site_file"
  633. fi
  634. done
  635. ac_ext=c
  636. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  637. ac_cpp='$CPP $CPPFLAGS'
  638. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  639. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  640. cross_compiling=$ac_cv_prog_cc_cross
  641. ac_exeext=
  642. ac_objext=o
  643. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  644. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  645. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  646. ac_n= ac_c='
  647. ' ac_t=' '
  648. else
  649. ac_n=-n ac_c= ac_t=
  650. fi
  651. else
  652. ac_n= ac_c='\c' ac_t=
  653. fi
  654. ac_aux_dir=
  655. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  656. if test -f $ac_dir/install-sh; then
  657. ac_aux_dir=$ac_dir
  658. ac_install_sh="$ac_aux_dir/install-sh -c"
  659. break
  660. elif test -f $ac_dir/install.sh; then
  661. ac_aux_dir=$ac_dir
  662. ac_install_sh="$ac_aux_dir/install.sh -c"
  663. break
  664. fi
  665. done
  666. if test -z "$ac_aux_dir"; then
  667. { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  668. fi
  669. ac_config_guess=$ac_aux_dir/config.guess
  670. ac_config_sub=$ac_aux_dir/config.sub
  671. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  672. # Make sure we can run config.sub.
  673. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  674. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  675. fi
  676. echo $ac_n "checking host system type""... $ac_c" 1>&6
  677. echo "configure:749: checking host system type" >&5
  678. host_alias=$host
  679. case "$host_alias" in
  680. NONE)
  681. case $nonopt in
  682. NONE)
  683. if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  684. else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  685. fi ;;
  686. *) host_alias=$nonopt ;;
  687. esac ;;
  688. esac
  689. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  690. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  691. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  692. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  693. echo "$ac_t""$host" 1>&6
  694. # Extract the first word of "gcc", so it can be a program name with args.
  695. set dummy gcc; ac_word=$2
  696. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  697. echo "configure:772: checking for $ac_word" >&5
  698. if test -n "$CC"; then
  699. ac_cv_prog_CC="$CC" # Let the user override the test.
  700. else
  701. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  702. ac_dummy="$PATH"
  703. for ac_dir in $ac_dummy; do
  704. test -z "$ac_dir" && ac_dir=.
  705. if test -f $ac_dir/$ac_word; then
  706. ac_cv_prog_CC="gcc"
  707. break
  708. fi
  709. done
  710. IFS="$ac_save_ifs"
  711. fi
  712. CC="$ac_cv_prog_CC"
  713. if test -n "$CC"; then
  714. echo "$ac_t""$CC" 1>&6
  715. else
  716. echo "$ac_t""no" 1>&6
  717. fi
  718. if test -z "$CC"; then
  719. # Extract the first word of "cc", so it can be a program name with args.
  720. set dummy cc; ac_word=$2
  721. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  722. echo "configure:799: checking for $ac_word" >&5
  723. if test -n "$CC"; then
  724. ac_cv_prog_CC="$CC" # Let the user override the test.
  725. else
  726. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  727. ac_prog_rejected=no
  728. ac_dummy="$PATH"
  729. for ac_dir in $ac_dummy; do
  730. test -z "$ac_dir" && ac_dir=.
  731. if test -f $ac_dir/$ac_word; then
  732. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  733. ac_prog_rejected=yes
  734. continue
  735. fi
  736. ac_cv_prog_CC="cc"
  737. break
  738. fi
  739. done
  740. IFS="$ac_save_ifs"
  741. if test $ac_prog_rejected = yes; then
  742. # We found a bogon in the path, so make sure we never use it.
  743. set dummy $ac_cv_prog_CC
  744. shift
  745. if test $# -gt 0; then
  746. # We chose a different compiler from the bogus one.
  747. # However, it has the same basename, so the bogon will be chosen
  748. # first if we set CC to just the basename; use the full file name.
  749. shift
  750. set dummy "$ac_dir/$ac_word" "$@"
  751. shift
  752. ac_cv_prog_CC="$@"
  753. fi
  754. fi
  755. fi
  756. CC="$ac_cv_prog_CC"
  757. if test -n "$CC"; then
  758. echo "$ac_t""$CC" 1>&6
  759. else
  760. echo "$ac_t""no" 1>&6
  761. fi
  762. if test -z "$CC"; then
  763. case "`uname -s`" in
  764. *win32* | *WIN32*)
  765. # Extract the first word of "cl", so it can be a program name with args.
  766. set dummy cl; ac_word=$2
  767. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  768. echo "configure:847: checking for $ac_word" >&5
  769. if test -n "$CC"; then
  770. ac_cv_prog_CC="$CC" # Let the user override the test.
  771. else
  772. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  773. ac_dummy="$PATH"
  774. for ac_dir in $ac_dummy; do
  775. test -z "$ac_dir" && ac_dir=.
  776. if test -f $ac_dir/$ac_word; then
  777. ac_cv_prog_CC="cl"
  778. break
  779. fi
  780. done
  781. IFS="$ac_save_ifs"
  782. fi
  783. CC="$ac_cv_prog_CC"
  784. if test -n "$CC"; then
  785. echo "$ac_t""$CC" 1>&6
  786. else
  787. echo "$ac_t""no" 1>&6
  788. fi
  789. ;;
  790. esac
  791. fi
  792. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  793. fi
  794. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  795. echo "configure:876: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  796. ac_ext=c
  797. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  798. ac_cpp='$CPP $CPPFLAGS'
  799. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  800. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  801. cross_compiling=$ac_cv_prog_cc_cross
  802. cat > conftest.$ac_ext << EOF
  803. #line 887 "configure"
  804. #include "confdefs.h"
  805. main(){return(0);}
  806. EOF
  807. if { (eval echo configure:892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  808. ac_cv_prog_cc_works=yes
  809. # If we can't run a trivial program, we are probably using a cross compiler.
  810. if (./conftest; exit) 2>/dev/null; then
  811. ac_cv_prog_cc_cross=no
  812. else
  813. ac_cv_prog_cc_cross=yes
  814. fi
  815. else
  816. echo "configure: failed program was:" >&5
  817. cat conftest.$ac_ext >&5
  818. ac_cv_prog_cc_works=no
  819. fi
  820. rm -fr conftest*
  821. ac_ext=c
  822. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  823. ac_cpp='$CPP $CPPFLAGS'
  824. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  825. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  826. cross_compiling=$ac_cv_prog_cc_cross
  827. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  828. if test $ac_cv_prog_cc_works = no; then
  829. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  830. fi
  831. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  832. echo "configure:918: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  833. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  834. cross_compiling=$ac_cv_prog_cc_cross
  835. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  836. echo "configure:923: checking whether we are using GNU C" >&5
  837. cat > conftest.c <<EOF
  838. #ifdef __GNUC__
  839. yes;
  840. #endif
  841. EOF
  842. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  843. ac_cv_prog_gcc=yes
  844. else
  845. ac_cv_prog_gcc=no
  846. fi
  847. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  848. if test $ac_cv_prog_gcc = yes; then
  849. GCC=yes
  850. else
  851. GCC=
  852. fi
  853. ac_test_CFLAGS="${CFLAGS+set}"
  854. ac_save_CFLAGS="$CFLAGS"
  855. CFLAGS=
  856. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  857. echo "configure:948: checking whether ${CC-cc} accepts -g" >&5
  858. echo 'void f(){}' > conftest.c
  859. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  860. ac_cv_prog_cc_g=yes
  861. else
  862. ac_cv_prog_cc_g=no
  863. fi
  864. rm -f conftest*
  865. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  866. if test "$ac_test_CFLAGS" = set; then
  867. CFLAGS="$ac_save_CFLAGS"
  868. elif test $ac_cv_prog_cc_g = yes; then
  869. if test "$GCC" = yes; then
  870. CFLAGS="-g -O2"
  871. else
  872. CFLAGS="-g"
  873. fi
  874. else
  875. if test "$GCC" = yes; then
  876. CFLAGS="-O2"
  877. else
  878. CFLAGS=
  879. fi
  880. fi
  881. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  882. echo "configure:977: checking for Cygwin environment" >&5
  883. cat > conftest.$ac_ext <<EOF
  884. #line 980 "configure"
  885. #include "confdefs.h"
  886. int main() {
  887. #ifndef __CYGWIN__
  888. #define __CYGWIN__ __CYGWIN32__
  889. #endif
  890. return __CYGWIN__;
  891. ; return 0; }
  892. EOF
  893. if { (eval echo configure:991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  894. rm -rf conftest*
  895. ac_cv_cygwin=yes
  896. else
  897. echo "configure: failed program was:" >&5
  898. cat conftest.$ac_ext >&5
  899. rm -rf conftest*
  900. ac_cv_cygwin=no
  901. fi
  902. rm -f conftest*
  903. rm -f conftest*
  904. echo "$ac_t""$ac_cv_cygwin" 1>&6
  905. CYGWIN=
  906. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  907. echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
  908. echo "configure:1007: checking for mingw32 environment" >&5
  909. cat > conftest.$ac_ext <<EOF
  910. #line 1010 "configure"
  911. #include "confdefs.h"
  912. int main() {
  913. return __MINGW32__;
  914. ; return 0; }
  915. EOF
  916. if { (eval echo configure:1017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  917. rm -rf conftest*
  918. ac_cv_mingw32=yes
  919. else
  920. echo "configure: failed program was:" >&5
  921. cat conftest.$ac_ext >&5
  922. rm -rf conftest*
  923. ac_cv_mingw32=no
  924. fi
  925. rm -f conftest*
  926. rm -f conftest*
  927. echo "$ac_t""$ac_cv_mingw32" 1>&6
  928. MINGW32=
  929. test "$ac_cv_mingw32" = yes && MINGW32=yes
  930. echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
  931. echo "configure:1035: checking for executable suffix" >&5
  932. if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
  933. ac_cv_exeext=.exe
  934. else
  935. ac_cv_exeext=no
  936. fi
  937. EXEEXT=""
  938. test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
  939. echo "$ac_t""${ac_cv_exeext}" 1>&6
  940. ac_exeext=$EXEEXT
  941. # Check for full floating-point support, including Infinity and NaN
  942. IEEEFLAG=
  943. echo $ac_n "checking for full floating-point support""... $ac_c" 1>&6
  944. echo "configure:1054: checking for full floating-point support" >&5
  945. if test "$cross_compiling" = yes; then
  946. echo "$ac_t""unknown (cross-compiling)" 1>&6
  947. echo $ac_n "checking whether "cc -mieee" works""... $ac_c" 1>&6
  948. echo "configure:1059: checking whether "cc -mieee" works" >&5
  949. ac_save_cflags=${CFLAGS}
  950. CFLAGS="$CFLAGS -mieee"
  951. cat > conftest.$ac_ext <<EOF
  952. #line 1063 "configure"
  953. #include "confdefs.h"
  954. int main() {
  955. ; return 0; }
  956. EOF
  957. if { (eval echo configure:1070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  958. rm -rf conftest*
  959. echo "$ac_t""yes" 1>&6
  960. IEEEFLAG="-mieee"
  961. else
  962. echo "configure: failed program was:" >&5
  963. cat conftest.$ac_ext >&5
  964. rm -rf conftest*
  965. echo "$ac_t""no" 1>&6
  966. fi
  967. rm -f conftest*
  968. CFLAGS=${ac_save_cflags}
  969. else
  970. cat > conftest.$ac_ext <<EOF
  971. #line 1086 "configure"
  972. #include "confdefs.h"
  973. #include <float.h>
  974. int main(void) {
  975. double one = 1.0;
  976. double zero = 0.0;
  977. if (one/zero > DBL_MAX) /* infinity */
  978. if (zero/zero != zero/zero) /* NaN */
  979. return 0;
  980. return 1;
  981. }
  982. EOF
  983. if { (eval echo configure:1100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  984. then
  985. echo "$ac_t""yes" 1>&6
  986. else
  987. echo "configure: failed program was:" >&5
  988. cat conftest.$ac_ext >&5
  989. rm -fr conftest*
  990. echo "$ac_t""no" 1>&6
  991. ac_save_cflags=${CFLAGS}
  992. CFLAGS=-mieee
  993. echo $ac_n "checking for full floating-point support with -mieee""... $ac_c" 1>&6
  994. echo "configure:1113: checking for full floating-point support with -mieee" >&5
  995. if test "$cross_compiling" = yes; then
  996. echo "$ac_t""unknown (cross-compiling)" 1>&6
  997. { echo "configure: error: *** INTERNAL CONFIGURE ERROR" 1>&2; exit 1; }
  998. else
  999. cat > conftest.$ac_ext <<EOF
  1000. #line 1120 "configure"
  1001. #include "confdefs.h"
  1002. #include <float.h>
  1003. int main(void) {
  1004. double one = 1.0;
  1005. double zero = 0.0;
  1006. if (one/zero > DBL_MAX) /* infinity */
  1007. if (zero/zero != zero/zero) /* NaN */
  1008. return 0;
  1009. return 1;
  1010. }
  1011. EOF
  1012. if { (eval echo configure:1134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1013. then
  1014. echo "$ac_t""yes" 1>&6
  1015. IEEEFLAG="-mieee"
  1016. else
  1017. echo "configure: failed program was:" >&5
  1018. cat conftest.$ac_ext >&5
  1019. rm -fr conftest*
  1020. echo "$ac_t""no" 1>&6
  1021. echo "configure: warning: *** Incomplete floating-point support." 1>&2
  1022. fi
  1023. rm -fr conftest*
  1024. fi
  1025. CFLAGS=${ac_save_cflags}
  1026. fi
  1027. rm -fr conftest*
  1028. fi
  1029. CFLAGS="$CFLAGS $IEEEFLAG"
  1030. # Set BINDIR
  1031. if test -n "${bindir}"; then
  1032. BINDIR="${bindir}"
  1033. else
  1034. BINDIR=/usr/local/bin
  1035. fi
  1036. # Set SRCDIR and DSTDIR
  1037. # Extract the first word of "pwd", so it can be a program name with args.
  1038. set dummy pwd; ac_word=$2
  1039. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1040. echo "configure:1171: checking for $ac_word" >&5
  1041. case "$pwd" in
  1042. /*)
  1043. ac_cv_path_pwd="$pwd" # Let the user override the test with a path.
  1044. ;;
  1045. ?:/*)
  1046. ac_cv_path_pwd="$pwd" # Let the user override the test with a dos path.
  1047. ;;
  1048. *)
  1049. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1050. ac_dummy="$PATH"
  1051. for ac_dir in $ac_dummy; do
  1052. test -z "$ac_dir" && ac_dir=.
  1053. if test -f $ac_dir/$ac_word; then
  1054. ac_cv_path_pwd="$ac_dir/$ac_word"
  1055. break
  1056. fi
  1057. done
  1058. IFS="$ac_save_ifs"
  1059. test -z "$ac_cv_path_pwd" && ac_cv_path_pwd="pwd"
  1060. ;;
  1061. esac
  1062. pwd="$ac_cv_path_pwd"
  1063. if test -n "$pwd"; then
  1064. echo "$ac_t""$pwd" 1>&6
  1065. else
  1066. echo "$ac_t""no" 1>&6
  1067. fi
  1068. if test "$MINGW32" = yes ; then
  1069. winpwd="$pwd -W"
  1070. else
  1071. winpwd="$pwd"
  1072. fi
  1073. echo $ac_n "checking for source directory""... $ac_c" 1>&6
  1074. echo "configure:1209: checking for source directory" >&5
  1075. if test -z "$srcdir" ; then
  1076. SRCDIR=`$pwd`
  1077. else
  1078. SRCDIR=`(cd "$srcdir" ; $pwd)`
  1079. fi
  1080. echo "$ac_t"""$SRCDIR"" 1>&6
  1081. echo $ac_n "checking for build directory""... $ac_c" 1>&6
  1082. echo "configure:1220: checking for build directory" >&5
  1083. DSTDIR=`$pwd`
  1084. WINDSTDIR=`$winpwd`
  1085. echo "$ac_t"""$DSTDIR"" 1>&6
  1086. # Set ARCH
  1087. ARCH=
  1088. if test -z "${host}"; then
  1089. ARCH="unknown"
  1090. else
  1091. ARCH="${host}"
  1092. fi
  1093. # Use absolute path for aux directory so that install-sh works
  1094. ac_aux_dir=
  1095. for ac_dir in "$SRCDIR" $srcdir/"$SRCDIR"; do
  1096. if test -f $ac_dir/install-sh; then
  1097. ac_aux_dir=$ac_dir
  1098. ac_install_sh="$ac_aux_dir/install-sh -c"
  1099. break
  1100. elif test -f $ac_dir/install.sh; then
  1101. ac_aux_dir=$ac_dir
  1102. ac_install_sh="$ac_aux_dir/install.sh -c"
  1103. break
  1104. fi
  1105. done
  1106. if test -z "$ac_aux_dir"; then
  1107. { echo "configure: error: can not find install-sh or install.sh in "$SRCDIR" $srcdir/"$SRCDIR"" 1>&2; exit 1; }
  1108. fi
  1109. ac_config_guess=$ac_aux_dir/config.guess
  1110. ac_config_sub=$ac_aux_dir/config.sub
  1111. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  1112. # Set GISBASE and GRASS_BIN
  1113. GISBASE="${WINDSTDIR}/dist.${ARCH}"
  1114. GRASS_BIN="${DSTDIR}/bin.${ARCH}"
  1115. # Set GRASS_VERSION_*
  1116. GRASS_VERSION_FILE=include/VERSION
  1117. GRASS_VERSION_MAJOR=`sed -n 1p "${GRASS_VERSION_FILE}"`
  1118. GRASS_VERSION_MINOR=`sed -n 2p "${GRASS_VERSION_FILE}"`
  1119. GRASS_VERSION_RELEASE=`sed -n 3p "${GRASS_VERSION_FILE}"`
  1120. GRASS_VERSION_DATE=`sed -n 4p "${GRASS_VERSION_FILE}"`
  1121. GRASS_VERSION_NUMBER=`echo ${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.${GRASS_VERSION_RELEASE}`
  1122. NAME_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/\..*//'`
  1123. LIB_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/^\([0-9.]*\).*$/\1/'`
  1124. GRASS_VERSION_SVN=
  1125. # Extract the first word of "svnversion", so it can be a program name with args.
  1126. set dummy svnversion; ac_word=$2
  1127. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1128. echo "configure:1288: checking for $ac_word" >&5
  1129. case "$SVN_VERSION" in
  1130. /*)
  1131. ac_cv_path_SVN_VERSION="$SVN_VERSION" # Let the user override the test with a path.
  1132. ;;
  1133. ?:/*)
  1134. ac_cv_path_SVN_VERSION="$SVN_VERSION" # Let the user override the test with a dos path.
  1135. ;;
  1136. *)
  1137. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1138. ac_dummy="$PATH"
  1139. for ac_dir in $ac_dummy; do
  1140. test -z "$ac_dir" && ac_dir=.
  1141. if test -f $ac_dir/$ac_word; then
  1142. ac_cv_path_SVN_VERSION="$ac_dir/$ac_word"
  1143. break
  1144. fi
  1145. done
  1146. IFS="$ac_save_ifs"
  1147. test -z "$ac_cv_path_SVN_VERSION" && ac_cv_path_SVN_VERSION="no"
  1148. ;;
  1149. esac
  1150. SVN_VERSION="$ac_cv_path_SVN_VERSION"
  1151. if test -n "$SVN_VERSION"; then
  1152. echo "$ac_t""$SVN_VERSION" 1>&6
  1153. else
  1154. echo "$ac_t""no" 1>&6
  1155. fi
  1156. if test "$SVN_VERSION" != "no" ; then
  1157. GRASS_VERSION_SVN=`$SVN_VERSION -c | cut -f2 -d:`
  1158. fi
  1159. # Check for MacOSX App
  1160. # Check whether --enable-macosx-app or --disable-macosx-app was given.
  1161. if test "${enable_macosx_app+set}" = set; then
  1162. enableval="$enable_macosx_app"
  1163. :
  1164. else
  1165. enable_macosx_app=no
  1166. fi
  1167. echo $ac_n "checking for MacOSX App""... $ac_c" 1>&6
  1168. echo "configure:1344: checking for MacOSX App" >&5
  1169. case "$enable_macosx_app" in
  1170. yes) MACOSX_APP=1 ;;
  1171. no) MACOSX_APP= ;;
  1172. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  1173. esac
  1174. echo "$ac_t"""$enable_macosx_app"" 1>&6
  1175. # Check for MacOSX archs
  1176. echo $ac_n "checking for MacOSX architectures""... $ac_c" 1>&6
  1177. echo "configure:1356: checking for MacOSX architectures" >&5
  1178. MACOSX_ARCHS=
  1179. if test -z "$with_macosx_archs" ; then
  1180. echo "$ac_t""no" 1>&6
  1181. else
  1182. for a in $with_macosx_archs
  1183. do
  1184. # check if valid arch?
  1185. case "$a" in
  1186. i386|ppc|x86_64|ppc64)
  1187. MACOSX_ARCHS="$MACOSX_ARCHS -arch $a"
  1188. ;;
  1189. esac
  1190. done
  1191. echo "$ac_t""$MACOSX_ARCHS" 1>&6
  1192. LDFLAGS="$LDFLAGS $MACOSX_ARCHS"
  1193. CFLAGS="$CFLAGS $MACOSX_ARCHS"
  1194. CXXFLAGS="$CXXFLAGS $MACOSX_ARCHS"
  1195. fi
  1196. # Done checking MacOSX archs
  1197. # Check for MacOSX SDK
  1198. echo $ac_n "checking for MacOSX SDK""... $ac_c" 1>&6
  1199. echo "configure:1385: checking for MacOSX SDK" >&5
  1200. MACOSX_SDK=
  1201. if test -z "$with_macosx_sdk" ; then
  1202. echo "$ac_t""no" 1>&6
  1203. else
  1204. ac_safe=`echo "$with_macosx_sdk/SDKSettings.plist" | sed 'y%./+-%__p_%'`
  1205. echo $ac_n "checking for $with_macosx_sdk/SDKSettings.plist""... $ac_c" 1>&6
  1206. echo "configure:1395: checking for $with_macosx_sdk/SDKSettings.plist" >&5
  1207. if test "$cross_compiling" = yes; then
  1208. { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
  1209. else
  1210. if test -r $with_macosx_sdk/SDKSettings.plist; then
  1211. eval "ac_cv_file_$ac_safe=yes"
  1212. else
  1213. eval "ac_cv_file_$ac_safe=no"
  1214. fi
  1215. fi
  1216. if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
  1217. echo "$ac_t""yes" 1>&6
  1218. MACOSX_SDK="-isysroot $with_macosx_sdk"
  1219. else
  1220. echo "$ac_t""no" 1>&6
  1221. { echo "configure: error: *** specified SDK does not exist or is not a SDK" 1>&2; exit 1; }
  1222. fi
  1223. LDFLAGS="$LDFLAGS $MACOSX_SDK"
  1224. CFLAGS="$CFLAGS $MACOSX_SDK"
  1225. CXXFLAGS="$CXXFLAGS $MACOSX_SDK"
  1226. fi
  1227. # Done checking MacOSX SDK
  1228. # Set INST_DIR
  1229. if test -n "$MACOSX_APP" ; then
  1230. INSTDIR='${prefix}'"/GRASS-${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.app/Contents/MacOS"
  1231. else
  1232. INSTDIR='${prefix}'"/grass-${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.${GRASS_VERSION_RELEASE}"
  1233. fi
  1234. # Get flags for building shared libraries
  1235. echo $ac_n "checking how to build libraries""... $ac_c" 1>&6
  1236. echo "configure:1439: checking how to build libraries" >&5
  1237. # Check whether --enable-shared or --disable-shared was given.
  1238. if test "${enable_shared+set}" = set; then
  1239. enableval="$enable_shared"
  1240. shared_ok=$enableval
  1241. else
  1242. shared_ok=yes
  1243. fi
  1244. if test "${enable_shared+set}" = set; then
  1245. enableval="$enable_shared"
  1246. shared_ok=$enableval
  1247. else
  1248. shared_ok=yes
  1249. fi
  1250. if test "$shared_ok" = "yes" ; then
  1251. echo "$ac_t""shared" 1>&6
  1252. SHARED_BUILD=1
  1253. GRASS_LIB_PREFIX='$(SHLIB_PREFIX)'
  1254. GRASS_LIB_SUFFIX='$(SHLIB_SUFFIX)'
  1255. GRASS_LIBRARY_TYPE='shlib'
  1256. else
  1257. echo "$ac_t""static" 1>&6
  1258. SHARED_BUILD=0
  1259. cat >> confdefs.h <<\EOF
  1260. #define STATIC_BUILD 1
  1261. EOF
  1262. GRASS_LIB_PREFIX='$(STLIB_PREFIX)'
  1263. GRASS_LIB_SUFFIX='$(STLIB_SUFFIX)'
  1264. GRASS_LIBRARY_TYPE='stlib'
  1265. fi
  1266. ac_save_ldflags="$LDFLAGS"
  1267. SHLIB_CFLAGS=""
  1268. SHLIB_LD_FLAGS=""
  1269. SHLIB_LD_LIBS=""
  1270. SHLIB_SUFFIX=""
  1271. SHLIB_LD=""
  1272. STLIB_LD='${AR} cr'
  1273. STLIB_SUFFIX='.a'
  1274. LDFLAGS=""
  1275. CC_SEARCH_FLAGS=""
  1276. LD_SEARCH_FLAGS=""
  1277. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1278. PLAT_OBJS=""
  1279. case $host in
  1280. *-linux-*)
  1281. SHLIB_CFLAGS="-fPIC"
  1282. SHLIB_LD_FLAGS=""
  1283. SHLIB_LD_LIBS='${LIBS}'
  1284. SHLIB_SUFFIX=".so"
  1285. SHLIB_LD="${CC} -shared"
  1286. LDFLAGS="-Wl,--export-dynamic"
  1287. CC_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
  1288. LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
  1289. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1290. ;;
  1291. *-pc-cygwin)
  1292. SHLIB_LD_LIBS='${LIBS}'
  1293. SHLIB_SUFFIX=".dll"
  1294. SHLIB_LD="${CC} -shared"
  1295. LDFLAGS="-Wl,--export-dynamic"
  1296. LD_LIBRARY_PATH_VAR="PATH"
  1297. ;;
  1298. *-pc-mingw32)
  1299. SHLIB_LD_LIBS='${LIBS}'
  1300. SHLIB_SUFFIX=".dll"
  1301. SHLIB_LD="${CC} -shared"
  1302. LDFLAGS="-Wl,--export-dynamic,--enable-runtime-pseudo-reloc"
  1303. LD_LIBRARY_PATH_VAR="PATH"
  1304. ;;
  1305. *-apple-darwin*)
  1306. SHLIB_CFLAGS="-fno-common"
  1307. SHLIB_LD_LIBS='${LIBS}'
  1308. SHLIB_SUFFIX=".dylib"
  1309. 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}"
  1310. LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
  1311. ;;
  1312. *-sun-solaris*)
  1313. # Note: If _REENTRANT isn't defined, then Solaris
  1314. # won't define thread-safe library routines.
  1315. cat >> confdefs.h <<\EOF
  1316. #define _REENTRANT 1
  1317. EOF
  1318. cat >> confdefs.h <<\EOF
  1319. #define _POSIX_PTHREAD_SEMANTICS 1
  1320. EOF
  1321. # Note: need the LIBS below, otherwise Tk won't find Tcl's
  1322. # symbols when dynamically loaded into tclsh.
  1323. if test "$GCC" = "yes" ; then
  1324. SHLIB_CFLAGS="-fPIC"
  1325. SHLIB_LD="$CC -shared"
  1326. CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
  1327. else
  1328. SHLIB_CFLAGS="-KPIC"
  1329. SHLIB_LD="/usr/ccs/bin/ld -G -z text"
  1330. CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
  1331. fi
  1332. SHLIB_SUFFIX=".so"
  1333. SHLIB_LD_LIBS='${LIBS}'
  1334. LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
  1335. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1336. ;;
  1337. *)
  1338. { echo "configure: error: ***Unknown platform: $host***" 1>&2; exit 1; }
  1339. ;;
  1340. esac
  1341. LDFLAGS="${ac_save_ldflags} $LDFLAGS"
  1342. # Enable options
  1343. # Check whether --enable-w11 or --disable-w11 was given.
  1344. if test "${enable_w11+set}" = set; then
  1345. enableval="$enable_w11"
  1346. :
  1347. else
  1348. enable_w11=no
  1349. fi
  1350. # With options
  1351. # Check whether --with-cxx or --without-cxx was given.
  1352. if test "${with_cxx+set}" = set; then
  1353. withval="$with_cxx"
  1354. :
  1355. else
  1356. with_cxx=yes
  1357. fi
  1358. #LOC_ARG_WITH(g77, GNU Fortran 77, no)
  1359. # Check whether --with-macosx-archs or --without-macosx-archs was given.
  1360. if test "${with_macosx_archs+set}" = set; then
  1361. withval="$with_macosx_archs"
  1362. :
  1363. else
  1364. with_macosx_archs="no"
  1365. fi
  1366. # Check whether --with-macosx-sdk or --without-macosx-sdk was given.
  1367. if test "${with_macosx_sdk+set}" = set; then
  1368. withval="$with_macosx_sdk"
  1369. :
  1370. else
  1371. with_macosx_sdk="no"
  1372. fi
  1373. # Check whether --with-jpeg or --without-jpeg was given.
  1374. if test "${with_jpeg+set}" = set; then
  1375. withval="$with_jpeg"
  1376. :
  1377. else
  1378. with_jpeg=yes
  1379. fi
  1380. # Check whether --with-tiff or --without-tiff was given.
  1381. if test "${with_tiff+set}" = set; then
  1382. withval="$with_tiff"
  1383. :
  1384. else
  1385. with_tiff=yes
  1386. fi
  1387. # Check whether --with-png or --without-png was given.
  1388. if test "${with_png+set}" = set; then
  1389. withval="$with_png"
  1390. :
  1391. else
  1392. with_png=yes
  1393. fi
  1394. # Check whether --with-tcltk or --without-tcltk was given.
  1395. if test "${with_tcltk+set}" = set; then
  1396. withval="$with_tcltk"
  1397. :
  1398. else
  1399. with_tcltk=yes
  1400. fi
  1401. # Check whether --with-postgres or --without-postgres was given.
  1402. if test "${with_postgres+set}" = set; then
  1403. withval="$with_postgres"
  1404. :
  1405. else
  1406. with_postgres=no
  1407. fi
  1408. # Check whether --with-mysql or --without-mysql was given.
  1409. if test "${with_mysql+set}" = set; then
  1410. withval="$with_mysql"
  1411. :
  1412. else
  1413. with_mysql=no
  1414. fi
  1415. # Check whether --with-sqlite or --without-sqlite was given.
  1416. if test "${with_sqlite+set}" = set; then
  1417. withval="$with_sqlite"
  1418. :
  1419. else
  1420. with_sqlite=no
  1421. fi
  1422. # Check whether --with-ffmpeg or --without-ffmpeg was given.
  1423. if test "${with_ffmpeg+set}" = set; then
  1424. withval="$with_ffmpeg"
  1425. :
  1426. else
  1427. with_ffmpeg=no
  1428. fi
  1429. # Check whether --with-opengl or --without-opengl was given.
  1430. if test "${with_opengl+set}" = set; then
  1431. withval="$with_opengl"
  1432. :
  1433. else
  1434. with_opengl=yes
  1435. fi
  1436. # Check whether --with-odbc or --without-odbc was given.
  1437. if test "${with_odbc+set}" = set; then
  1438. withval="$with_odbc"
  1439. :
  1440. else
  1441. with_odbc=no
  1442. fi
  1443. # Check whether --with-fftw or --without-fftw was given.
  1444. if test "${with_fftw+set}" = set; then
  1445. withval="$with_fftw"
  1446. :
  1447. else
  1448. with_fftw=yes
  1449. fi
  1450. # Check whether --with-blas or --without-blas was given.
  1451. if test "${with_blas+set}" = set; then
  1452. withval="$with_blas"
  1453. :
  1454. else
  1455. with_blas=no
  1456. fi
  1457. # Check whether --with-lapack or --without-lapack was given.
  1458. if test "${with_lapack+set}" = set; then
  1459. withval="$with_lapack"
  1460. :
  1461. else
  1462. with_lapack=no
  1463. fi
  1464. # Check whether --with-cairo or --without-cairo was given.
  1465. if test "${with_cairo+set}" = set; then
  1466. withval="$with_cairo"
  1467. :
  1468. else
  1469. with_cairo=yes
  1470. fi
  1471. # Check whether --with-freetype or --without-freetype was given.
  1472. if test "${with_freetype+set}" = set; then
  1473. withval="$with_freetype"
  1474. :
  1475. else
  1476. with_freetype=yes
  1477. fi
  1478. # Check whether --with-nls or --without-nls was given.
  1479. if test "${with_nls+set}" = set; then
  1480. withval="$with_nls"
  1481. :
  1482. else
  1483. with_nls=no
  1484. fi
  1485. # Check whether --with-readline or --without-readline was given.
  1486. if test "${with_readline+set}" = set; then
  1487. withval="$with_readline"
  1488. :
  1489. else
  1490. with_readline=no
  1491. fi
  1492. # Check whether --with-opendwg or --without-opendwg was given.
  1493. if test "${with_opendwg+set}" = set; then
  1494. withval="$with_opendwg"
  1495. :
  1496. else
  1497. with_opendwg=no
  1498. fi
  1499. # Check whether --with-regex or --without-regex was given.
  1500. if test "${with_regex+set}" = set; then
  1501. withval="$with_regex"
  1502. :
  1503. else
  1504. with_regex=yes
  1505. fi
  1506. # Check whether --with-pthread or --without-pthread was given.
  1507. if test "${with_pthread+set}" = set; then
  1508. withval="$with_pthread"
  1509. :
  1510. else
  1511. with_pthread=no
  1512. fi
  1513. # Check whether --with-gdal or --without-gdal was given.
  1514. if test "${with_gdal+set}" = set; then
  1515. withval="$with_gdal"
  1516. :
  1517. fi
  1518. # Check whether --with-liblas or --without-liblas was given.
  1519. if test "${with_liblas+set}" = set; then
  1520. withval="$with_liblas"
  1521. :
  1522. else
  1523. with_liblas="no"
  1524. fi
  1525. # Check whether --with-wxwidgets or --without-wxwidgets was given.
  1526. if test "${with_wxwidgets+set}" = set; then
  1527. withval="$with_wxwidgets"
  1528. :
  1529. else
  1530. with_wxwidgets="no"
  1531. fi
  1532. # With includes and libs options
  1533. # Check whether --with-geos or --without-geos was given.
  1534. if test "${with_geos+set}" = set; then
  1535. withval="$with_geos"
  1536. :
  1537. else
  1538. with_geos="no"
  1539. fi
  1540. # Check whether --with-includes or --without-includes was given.
  1541. if test "${with_includes+set}" = set; then
  1542. withval="$with_includes"
  1543. :
  1544. fi
  1545. # Check whether --with-libs or --without-libs was given.
  1546. if test "${with_libs+set}" = set; then
  1547. withval="$with_libs"
  1548. :
  1549. fi
  1550. # Check whether --with-zlib-includes or --without-zlib-includes was given.
  1551. if test "${with_zlib_includes+set}" = set; then
  1552. withval="$with_zlib_includes"
  1553. :
  1554. fi
  1555. # Check whether --with-zlib-libs or --without-zlib-libs was given.
  1556. if test "${with_zlib_libs+set}" = set; then
  1557. withval="$with_zlib_libs"
  1558. :
  1559. fi
  1560. # Check whether --with-readline-includes or --without-readline-includes was given.
  1561. if test "${with_readline_includes+set}" = set; then
  1562. withval="$with_readline_includes"
  1563. :
  1564. fi
  1565. # Check whether --with-readline-libs or --without-readline-libs was given.
  1566. if test "${with_readline_libs+set}" = set; then
  1567. withval="$with_readline_libs"
  1568. :
  1569. fi
  1570. # Check whether --with-jpeg-includes or --without-jpeg-includes was given.
  1571. if test "${with_jpeg_includes+set}" = set; then
  1572. withval="$with_jpeg_includes"
  1573. :
  1574. fi
  1575. # Check whether --with-jpeg-libs or --without-jpeg-libs was given.
  1576. if test "${with_jpeg_libs+set}" = set; then
  1577. withval="$with_jpeg_libs"
  1578. :
  1579. fi
  1580. # Check whether --with-tiff-includes or --without-tiff-includes was given.
  1581. if test "${with_tiff_includes+set}" = set; then
  1582. withval="$with_tiff_includes"
  1583. :
  1584. fi
  1585. # Check whether --with-tiff-libs or --without-tiff-libs was given.
  1586. if test "${with_tiff_libs+set}" = set; then
  1587. withval="$with_tiff_libs"
  1588. :
  1589. fi
  1590. # Check whether --with-png-includes or --without-png-includes was given.
  1591. if test "${with_png_includes+set}" = set; then
  1592. withval="$with_png_includes"
  1593. :
  1594. fi
  1595. # Check whether --with-png-libs or --without-png-libs was given.
  1596. if test "${with_png_libs+set}" = set; then
  1597. withval="$with_png_libs"
  1598. :
  1599. fi
  1600. # Check whether --with-tcltk-includes or --without-tcltk-includes was given.
  1601. if test "${with_tcltk_includes+set}" = set; then
  1602. withval="$with_tcltk_includes"
  1603. :
  1604. fi
  1605. # Check whether --with-tcltk-libs or --without-tcltk-libs was given.
  1606. if test "${with_tcltk_libs+set}" = set; then
  1607. withval="$with_tcltk_libs"
  1608. :
  1609. fi
  1610. # Check whether --with-postgres-includes or --without-postgres-includes was given.
  1611. if test "${with_postgres_includes+set}" = set; then
  1612. withval="$with_postgres_includes"
  1613. :
  1614. fi
  1615. # Check whether --with-postgres-libs or --without-postgres-libs was given.
  1616. if test "${with_postgres_libs+set}" = set; then
  1617. withval="$with_postgres_libs"
  1618. :
  1619. fi
  1620. # Check whether --with-mysql-includes or --without-mysql-includes was given.
  1621. if test "${with_mysql_includes+set}" = set; then
  1622. withval="$with_mysql_includes"
  1623. :
  1624. fi
  1625. # Check whether --with-mysql-libs or --without-mysql-libs was given.
  1626. if test "${with_mysql_libs+set}" = set; then
  1627. withval="$with_mysql_libs"
  1628. :
  1629. fi
  1630. # Check whether --with-sqlite-includes or --without-sqlite-includes was given.
  1631. if test "${with_sqlite_includes+set}" = set; then
  1632. withval="$with_sqlite_includes"
  1633. :
  1634. fi
  1635. # Check whether --with-sqlite-libs or --without-sqlite-libs was given.
  1636. if test "${with_sqlite_libs+set}" = set; then
  1637. withval="$with_sqlite_libs"
  1638. :
  1639. fi
  1640. # Check whether --with-ffmpeg-includes or --without-ffmpeg-includes was given.
  1641. if test "${with_ffmpeg_includes+set}" = set; then
  1642. withval="$with_ffmpeg_includes"
  1643. :
  1644. fi
  1645. # Check whether --with-ffmpeg-libs or --without-ffmpeg-libs was given.
  1646. if test "${with_ffmpeg_libs+set}" = set; then
  1647. withval="$with_ffmpeg_libs"
  1648. :
  1649. fi
  1650. # Check whether --with-opengl-includes or --without-opengl-includes was given.
  1651. if test "${with_opengl_includes+set}" = set; then
  1652. withval="$with_opengl_includes"
  1653. :
  1654. fi
  1655. # Check whether --with-opengl-libs or --without-opengl-libs was given.
  1656. if test "${with_opengl_libs+set}" = set; then
  1657. withval="$with_opengl_libs"
  1658. :
  1659. fi
  1660. # Check whether --with-opengl-framework or --without-opengl-framework was given.
  1661. if test "${with_opengl_framework+set}" = set; then
  1662. withval="$with_opengl_framework"
  1663. :
  1664. fi
  1665. # Check whether --with-odbc-includes or --without-odbc-includes was given.
  1666. if test "${with_odbc_includes+set}" = set; then
  1667. withval="$with_odbc_includes"
  1668. :
  1669. fi
  1670. # Check whether --with-odbc-libs or --without-odbc-libs was given.
  1671. if test "${with_odbc_libs+set}" = set; then
  1672. withval="$with_odbc_libs"
  1673. :
  1674. fi
  1675. # Check whether --with-fftw-includes or --without-fftw-includes was given.
  1676. if test "${with_fftw_includes+set}" = set; then
  1677. withval="$with_fftw_includes"
  1678. :
  1679. fi
  1680. # Check whether --with-fftw-libs or --without-fftw-libs was given.
  1681. if test "${with_fftw_libs+set}" = set; then
  1682. withval="$with_fftw_libs"
  1683. :
  1684. fi
  1685. # Check whether --with-blas-includes or --without-blas-includes was given.
  1686. if test "${with_blas_includes+set}" = set; then
  1687. withval="$with_blas_includes"
  1688. :
  1689. fi
  1690. # Check whether --with-blas-libs or --without-blas-libs was given.
  1691. if test "${with_blas_libs+set}" = set; then
  1692. withval="$with_blas_libs"
  1693. :
  1694. fi
  1695. # Check whether --with-lapack-includes or --without-lapack-includes was given.
  1696. if test "${with_lapack_includes+set}" = set; then
  1697. withval="$with_lapack_includes"
  1698. :
  1699. fi
  1700. # Check whether --with-lapack-libs or --without-lapack-libs was given.
  1701. if test "${with_lapack_libs+set}" = set; then
  1702. withval="$with_lapack_libs"
  1703. :
  1704. fi
  1705. # Check whether --with-cairo-includes or --without-cairo-includes was given.
  1706. if test "${with_cairo_includes+set}" = set; then
  1707. withval="$with_cairo_includes"
  1708. :
  1709. fi
  1710. # Check whether --with-cairo-libs or --without-cairo-libs was given.
  1711. if test "${with_cairo_libs+set}" = set; then
  1712. withval="$with_cairo_libs"
  1713. :
  1714. fi
  1715. # Check whether --with-cairo-ldflags or --without-cairo-ldflags was given.
  1716. if test "${with_cairo_ldflags+set}" = set; then
  1717. withval="$with_cairo_ldflags"
  1718. :
  1719. fi
  1720. # Check whether --with-freetype-includes or --without-freetype-includes was given.
  1721. if test "${with_freetype_includes+set}" = set; then
  1722. withval="$with_freetype_includes"
  1723. :
  1724. fi
  1725. # Check whether --with-freetype-libs or --without-freetype-libs was given.
  1726. if test "${with_freetype_libs+set}" = set; then
  1727. withval="$with_freetype_libs"
  1728. :
  1729. fi
  1730. # Check whether --with-proj-includes or --without-proj-includes was given.
  1731. if test "${with_proj_includes+set}" = set; then
  1732. withval="$with_proj_includes"
  1733. :
  1734. fi
  1735. # Check whether --with-proj-libs or --without-proj-libs was given.
  1736. if test "${with_proj_libs+set}" = set; then
  1737. withval="$with_proj_libs"
  1738. :
  1739. fi
  1740. # Check whether --with-proj-share or --without-proj-share was given.
  1741. if test "${with_proj_share+set}" = set; then
  1742. withval="$with_proj_share"
  1743. :
  1744. fi
  1745. # Check whether --with-opendwg-includes or --without-opendwg-includes was given.
  1746. if test "${with_opendwg_includes+set}" = set; then
  1747. withval="$with_opendwg_includes"
  1748. :
  1749. fi
  1750. # Check whether --with-opendwg-libs or --without-opendwg-libs was given.
  1751. if test "${with_opendwg_libs+set}" = set; then
  1752. withval="$with_opendwg_libs"
  1753. :
  1754. fi
  1755. # Check whether --with-regex-includes or --without-regex-includes was given.
  1756. if test "${with_regex_includes+set}" = set; then
  1757. withval="$with_regex_includes"
  1758. :
  1759. fi
  1760. # Check whether --with-regex-libs or --without-regex-libs was given.
  1761. if test "${with_regex_libs+set}" = set; then
  1762. withval="$with_regex_libs"
  1763. :
  1764. fi
  1765. # Check whether --with-pthread-includes or --without-pthread-includes was given.
  1766. if test "${with_pthread_includes+set}" = set; then
  1767. withval="$with_pthread_includes"
  1768. :
  1769. fi
  1770. # Check whether --with-pthread-libs or --without-pthread-libs was given.
  1771. if test "${with_pthread_libs+set}" = set; then
  1772. withval="$with_pthread_libs"
  1773. :
  1774. fi
  1775. # Put this early on so CPPFLAGS and LDFLAGS have any additional dirs
  1776. # With includes option
  1777. # Handle Fortran compiler choice
  1778. #LOC_CHECK_USE(g77, GNU Fortran 77, USE_G77)
  1779. # Done checking fortran
  1780. echo $ac_n "checking for additional include dirs""... $ac_c" 1>&6
  1781. echo "configure:2257: checking for additional include dirs" >&5
  1782. case "$with_includes" in
  1783. y | ye | yes | n | no)
  1784. { echo "configure: error: *** You must supply a directory to list --with-includes." 1>&2; exit 1; }
  1785. ;;
  1786. esac
  1787. echo "$ac_t""$with_includes" 1>&6
  1788. if test -n "$with_includes"; then
  1789. for dir in $with_includes; do
  1790. if test -d "$dir"; then
  1791. INCLUDE_DIRS="$INCLUDE_DIRS -I$dir"
  1792. else
  1793. { echo "configure: error: *** Include directory $dir does not exist." 1>&2; exit 1; }
  1794. fi
  1795. done
  1796. CPPFLAGS="$CPPFLAGS $INCLUDE_DIRS"
  1797. fi
  1798. # With libs option
  1799. echo $ac_n "checking for additional library dirs""... $ac_c" 1>&6
  1800. echo "configure:2280: checking for additional library dirs" >&5
  1801. case "$with_libs" in
  1802. y | ye | yes | n | no)
  1803. { echo "configure: error: *** You must supply a directory list to --with-libs." 1>&2; exit 1; }
  1804. ;;
  1805. esac
  1806. echo "$ac_t""$with_libs" 1>&6
  1807. if test -n "$with_libs"; then
  1808. for dir in $with_libs; do
  1809. if test -d "$dir"; then
  1810. LIBRARY_DIRS="$LIBRARY_DIRS -L$dir"
  1811. else
  1812. { echo "configure: error: *** Library directory $dir does not exist." 1>&2; exit 1; }
  1813. fi
  1814. done
  1815. LDFLAGS="$LDFLAGS $LIBRARY_DIRS"
  1816. fi
  1817. # Programs and standard headers, libraries, functions
  1818. # Find a good install program. We prefer a C program (faster),
  1819. # so one script is as good as another. But avoid the broken or
  1820. # incompatible versions:
  1821. # SysV /etc/install, /usr/sbin/install
  1822. # SunOS /usr/etc/install
  1823. # IRIX /sbin/install
  1824. # AIX /bin/install
  1825. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1826. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1827. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1828. # ./install, which can be erroneously created by make from ./install.sh.
  1829. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1830. echo "configure:2314: checking for a BSD compatible install" >&5
  1831. if test -z "$INSTALL"; then
  1832. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  1833. for ac_dir in $PATH; do
  1834. # Account for people who put trailing slashes in PATH elements.
  1835. case "$ac_dir/" in
  1836. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1837. *)
  1838. # OSF1 and SCO ODT 3.0 have their own names for install.
  1839. # Don't use installbsd from OSF since it installs stuff as root
  1840. # by default.
  1841. for ac_prog in ginstall scoinst install; do
  1842. if test -f $ac_dir/$ac_prog; then
  1843. if test $ac_prog = install &&
  1844. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1845. # AIX install. It has an incompatible calling convention.
  1846. :
  1847. else
  1848. ac_cv_path_install="$ac_dir/$ac_prog -c"
  1849. break 2
  1850. fi
  1851. fi
  1852. done
  1853. ;;
  1854. esac
  1855. done
  1856. IFS="$ac_save_IFS"
  1857. if test "${ac_cv_path_install+set}" = set; then
  1858. INSTALL="$ac_cv_path_install"
  1859. else
  1860. # As a last resort, use the slow shell script. We don't cache a
  1861. # path for INSTALL within a source directory, because that will
  1862. # break other packages using the cache if that directory is
  1863. # removed, or if the path is relative.
  1864. INSTALL="$ac_install_sh"
  1865. fi
  1866. fi
  1867. echo "$ac_t""$INSTALL" 1>&6
  1868. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1869. # It thinks the first close brace ends the variable substitution.
  1870. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1871. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  1872. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1873. # Extract the first word of "flex", so it can be a program name with args.
  1874. set dummy flex; ac_word=$2
  1875. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1876. echo "configure:2367: checking for $ac_word" >&5
  1877. if test -n "$LEX"; then
  1878. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  1879. else
  1880. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1881. ac_dummy="$PATH"
  1882. for ac_dir in $ac_dummy; do
  1883. test -z "$ac_dir" && ac_dir=.
  1884. if test -f $ac_dir/$ac_word; then
  1885. ac_cv_prog_LEX="flex"
  1886. break
  1887. fi
  1888. done
  1889. IFS="$ac_save_ifs"
  1890. test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
  1891. fi
  1892. LEX="$ac_cv_prog_LEX"
  1893. if test -n "$LEX"; then
  1894. echo "$ac_t""$LEX" 1>&6
  1895. else
  1896. echo "$ac_t""no" 1>&6
  1897. fi
  1898. if test -z "$LEXLIB"
  1899. then
  1900. case "$LEX" in
  1901. flex*) ac_lib=fl ;;
  1902. *) ac_lib=l ;;
  1903. esac
  1904. echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
  1905. echo "configure:2398: checking for yywrap in -l$ac_lib" >&5
  1906. ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
  1907. ac_save_LIBS="$LIBS"
  1908. LIBS="-l$ac_lib $LIBS"
  1909. cat > conftest.$ac_ext <<EOF
  1910. #line 2404 "configure"
  1911. #include "confdefs.h"
  1912. /* Override any gcc2 internal prototype to avoid an error. */
  1913. /* We use char because int might match the return type of a gcc2
  1914. builtin and then its argument prototype would still apply. */
  1915. char yywrap();
  1916. int main() {
  1917. yywrap()
  1918. ; return 0; }
  1919. EOF
  1920. if { (eval echo configure:2415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1921. rm -rf conftest*
  1922. eval "ac_cv_lib_$ac_lib_var=yes"
  1923. else
  1924. echo "configure: failed program was:" >&5
  1925. cat conftest.$ac_ext >&5
  1926. rm -rf conftest*
  1927. eval "ac_cv_lib_$ac_lib_var=no"
  1928. fi
  1929. rm -f conftest*
  1930. LIBS="$ac_save_LIBS"
  1931. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1932. echo "$ac_t""yes" 1>&6
  1933. LEXLIB="-l$ac_lib"
  1934. else
  1935. echo "$ac_t""no" 1>&6
  1936. fi
  1937. fi
  1938. if test "$LEX" = "lex"; then
  1939. # Extract the first word of "lex", so it can be a program name with args.
  1940. set dummy lex; ac_word=$2
  1941. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1942. echo "configure:2440: checking for $ac_word" >&5
  1943. case "$LEXPATH" in
  1944. /*)
  1945. ac_cv_path_LEXPATH="$LEXPATH" # Let the user override the test with a path.
  1946. ;;
  1947. ?:/*)
  1948. ac_cv_path_LEXPATH="$LEXPATH" # Let the user override the test with a dos path.
  1949. ;;
  1950. *)
  1951. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1952. ac_dummy="$PATH"
  1953. for ac_dir in $ac_dummy; do
  1954. test -z "$ac_dir" && ac_dir=.
  1955. if test -f $ac_dir/$ac_word; then
  1956. ac_cv_path_LEXPATH="$ac_dir/$ac_word"
  1957. break
  1958. fi
  1959. done
  1960. IFS="$ac_save_ifs"
  1961. test -z "$ac_cv_path_LEXPATH" && ac_cv_path_LEXPATH="no"
  1962. ;;
  1963. esac
  1964. LEXPATH="$ac_cv_path_LEXPATH"
  1965. if test -n "$LEXPATH"; then
  1966. echo "$ac_t""$LEXPATH" 1>&6
  1967. else
  1968. echo "$ac_t""no" 1>&6
  1969. fi
  1970. if test "$LEXPATH" = "no"; then
  1971. { echo "configure: error: *** Unable to locate lex." 1>&2; exit 1; }
  1972. fi
  1973. fi
  1974. for ac_prog in 'bison -y' byacc
  1975. do
  1976. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1977. set dummy $ac_prog; ac_word=$2
  1978. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1979. echo "configure:2480: checking for $ac_word" >&5
  1980. if test -n "$YACC"; then
  1981. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  1982. else
  1983. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1984. ac_dummy="$PATH"
  1985. for ac_dir in $ac_dummy; do
  1986. test -z "$ac_dir" && ac_dir=.
  1987. if test -f $ac_dir/$ac_word; then
  1988. ac_cv_prog_YACC="$ac_prog"
  1989. break
  1990. fi
  1991. done
  1992. IFS="$ac_save_ifs"
  1993. fi
  1994. YACC="$ac_cv_prog_YACC"
  1995. if test -n "$YACC"; then
  1996. echo "$ac_t""$YACC" 1>&6
  1997. else
  1998. echo "$ac_t""no" 1>&6
  1999. fi
  2000. test -n "$YACC" && break
  2001. done
  2002. test -n "$YACC" || YACC="yacc"
  2003. if test "$YACC" = "yacc"; then
  2004. # Extract the first word of "yacc", so it can be a program name with args.
  2005. set dummy yacc; ac_word=$2
  2006. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2007. echo "configure:2511: checking for $ac_word" >&5
  2008. case "$YACCPATH" in
  2009. /*)
  2010. ac_cv_path_YACCPATH="$YACCPATH" # Let the user override the test with a path.
  2011. ;;
  2012. ?:/*)
  2013. ac_cv_path_YACCPATH="$YACCPATH" # Let the user override the test with a dos path.
  2014. ;;
  2015. *)
  2016. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2017. ac_dummy="$PATH"
  2018. for ac_dir in $ac_dummy; do
  2019. test -z "$ac_dir" && ac_dir=.
  2020. if test -f $ac_dir/$ac_word; then
  2021. ac_cv_path_YACCPATH="$ac_dir/$ac_word"
  2022. break
  2023. fi
  2024. done
  2025. IFS="$ac_save_ifs"
  2026. test -z "$ac_cv_path_YACCPATH" && ac_cv_path_YACCPATH="no"
  2027. ;;
  2028. esac
  2029. YACCPATH="$ac_cv_path_YACCPATH"
  2030. if test -n "$YACCPATH"; then
  2031. echo "$ac_t""$YACCPATH" 1>&6
  2032. else
  2033. echo "$ac_t""no" 1>&6
  2034. fi
  2035. if test "$YACCPATH" = "no"; then
  2036. { echo "configure: error: *** Unable to locate yacc." 1>&2; exit 1; }
  2037. fi
  2038. fi
  2039. # Extract the first word of "ranlib", so it can be a program name with args.
  2040. set dummy ranlib; ac_word=$2
  2041. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2042. echo "configure:2549: checking for $ac_word" >&5
  2043. if test -n "$RANLIB"; then
  2044. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2045. else
  2046. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2047. ac_dummy="$PATH"
  2048. for ac_dir in $ac_dummy; do
  2049. test -z "$ac_dir" && ac_dir=.
  2050. if test -f $ac_dir/$ac_word; then
  2051. ac_cv_prog_RANLIB="ranlib"
  2052. break
  2053. fi
  2054. done
  2055. IFS="$ac_save_ifs"
  2056. test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  2057. fi
  2058. RANLIB="$ac_cv_prog_RANLIB"
  2059. if test -n "$RANLIB"; then
  2060. echo "$ac_t""$RANLIB" 1>&6
  2061. else
  2062. echo "$ac_t""no" 1>&6
  2063. fi
  2064. for ac_prog in ar
  2065. do
  2066. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2067. set dummy $ac_prog; ac_word=$2
  2068. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2069. echo "configure:2578: checking for $ac_word" >&5
  2070. if test -n "$AR"; then
  2071. ac_cv_prog_AR="$AR" # Let the user override the test.
  2072. else
  2073. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2074. ac_dummy="$PATH"
  2075. for ac_dir in $ac_dummy; do
  2076. test -z "$ac_dir" && ac_dir=.
  2077. if test -f $ac_dir/$ac_word; then
  2078. ac_cv_prog_AR="$ac_prog"
  2079. break
  2080. fi
  2081. done
  2082. IFS="$ac_save_ifs"
  2083. fi
  2084. AR="$ac_cv_prog_AR"
  2085. if test -n "$AR"; then
  2086. echo "$ac_t""$AR" 1>&6
  2087. else
  2088. echo "$ac_t""no" 1>&6
  2089. fi
  2090. test -n "$AR" && break
  2091. done
  2092. for ac_prog in env
  2093. do
  2094. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2095. set dummy $ac_prog; ac_word=$2
  2096. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2097. echo "configure:2609: checking for $ac_word" >&5
  2098. if test -n "$ENV"; then
  2099. ac_cv_prog_ENV="$ENV" # Let the user override the test.
  2100. else
  2101. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2102. ac_dummy="$PATH"
  2103. for ac_dir in $ac_dummy; do
  2104. test -z "$ac_dir" && ac_dir=.
  2105. if test -f $ac_dir/$ac_word; then
  2106. ac_cv_prog_ENV="$ac_prog"
  2107. break
  2108. fi
  2109. done
  2110. IFS="$ac_save_ifs"
  2111. fi
  2112. ENV="$ac_cv_prog_ENV"
  2113. if test -n "$ENV"; then
  2114. echo "$ac_t""$ENV" 1>&6
  2115. else
  2116. echo "$ac_t""no" 1>&6
  2117. fi
  2118. test -n "$ENV" && break
  2119. done
  2120. # Extract the first word of "perl", so it can be a program name with args.
  2121. set dummy perl; ac_word=$2
  2122. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2123. echo "configure:2638: checking for $ac_word" >&5
  2124. case "$PERL" in
  2125. /*)
  2126. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  2127. ;;
  2128. ?:/*)
  2129. ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
  2130. ;;
  2131. *)
  2132. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2133. ac_dummy="$PATH"
  2134. for ac_dir in $ac_dummy; do
  2135. test -z "$ac_dir" && ac_dir=.
  2136. if test -f $ac_dir/$ac_word; then
  2137. ac_cv_path_PERL="$ac_dir/$ac_word"
  2138. break
  2139. fi
  2140. done
  2141. IFS="$ac_save_ifs"
  2142. test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
  2143. ;;
  2144. esac
  2145. PERL="$ac_cv_path_PERL"
  2146. if test -n "$PERL"; then
  2147. echo "$ac_t""$PERL" 1>&6
  2148. else
  2149. echo "$ac_t""no" 1>&6
  2150. fi
  2151. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  2152. echo "configure:2669: checking how to run the C preprocessor" >&5
  2153. # On Suns, sometimes $CPP names a directory.
  2154. if test -n "$CPP" && test -d "$CPP"; then
  2155. CPP=
  2156. fi
  2157. if test -z "$CPP"; then
  2158. # This must be in double quotes, not single quotes, because CPP may get
  2159. # substituted into the Makefile and "${CC-cc}" will confuse make.
  2160. CPP="${CC-cc} -E"
  2161. # On the NeXT, cc -E runs the code through the compiler's parser,
  2162. # not just through cpp.
  2163. cat > conftest.$ac_ext <<EOF
  2164. #line 2682 "configure"
  2165. #include "confdefs.h"
  2166. #include <assert.h>
  2167. Syntax Error
  2168. EOF
  2169. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2170. { (eval echo configure:2688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2171. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2172. if test -z "$ac_err"; then
  2173. :
  2174. else
  2175. echo "$ac_err" >&5
  2176. echo "configure: failed program was:" >&5
  2177. cat conftest.$ac_ext >&5
  2178. rm -rf conftest*
  2179. CPP="${CC-cc} -E -traditional-cpp"
  2180. cat > conftest.$ac_ext <<EOF
  2181. #line 2699 "configure"
  2182. #include "confdefs.h"
  2183. #include <assert.h>
  2184. Syntax Error
  2185. EOF
  2186. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2187. { (eval echo configure:2705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2188. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2189. if test -z "$ac_err"; then
  2190. :
  2191. else
  2192. echo "$ac_err" >&5
  2193. echo "configure: failed program was:" >&5
  2194. cat conftest.$ac_ext >&5
  2195. rm -rf conftest*
  2196. CPP="${CC-cc} -nologo -E"
  2197. cat > conftest.$ac_ext <<EOF
  2198. #line 2716 "configure"
  2199. #include "confdefs.h"
  2200. #include <assert.h>
  2201. Syntax Error
  2202. EOF
  2203. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2204. { (eval echo configure:2722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2205. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2206. if test -z "$ac_err"; then
  2207. :
  2208. else
  2209. echo "$ac_err" >&5
  2210. echo "configure: failed program was:" >&5
  2211. cat conftest.$ac_ext >&5
  2212. rm -rf conftest*
  2213. CPP=/lib/cpp
  2214. fi
  2215. rm -f conftest*
  2216. fi
  2217. rm -f conftest*
  2218. fi
  2219. rm -f conftest*
  2220. ac_cv_prog_CPP="$CPP"
  2221. CPP="$ac_cv_prog_CPP"
  2222. else
  2223. ac_cv_prog_CPP="$CPP"
  2224. fi
  2225. echo "$ac_t""$CPP" 1>&6
  2226. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  2227. echo "configure:2746: checking for ANSI C header files" >&5
  2228. cat > conftest.$ac_ext <<EOF
  2229. #line 2749 "configure"
  2230. #include "confdefs.h"
  2231. #include <stdlib.h>
  2232. #include <stdarg.h>
  2233. #include <string.h>
  2234. #include <float.h>
  2235. EOF
  2236. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2237. { (eval echo configure:2757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2238. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2239. if test -z "$ac_err"; then
  2240. rm -rf conftest*
  2241. ac_cv_header_stdc=yes
  2242. else
  2243. echo "$ac_err" >&5
  2244. echo "configure: failed program was:" >&5
  2245. cat conftest.$ac_ext >&5
  2246. rm -rf conftest*
  2247. ac_cv_header_stdc=no
  2248. fi
  2249. rm -f conftest*
  2250. if test $ac_cv_header_stdc = yes; then
  2251. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2252. cat > conftest.$ac_ext <<EOF
  2253. #line 2774 "configure"
  2254. #include "confdefs.h"
  2255. #include <string.h>
  2256. EOF
  2257. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2258. egrep "memchr" >/dev/null 2>&1; then
  2259. :
  2260. else
  2261. rm -rf conftest*
  2262. ac_cv_header_stdc=no
  2263. fi
  2264. rm -f conftest*
  2265. fi
  2266. if test $ac_cv_header_stdc = yes; then
  2267. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2268. cat > conftest.$ac_ext <<EOF
  2269. #line 2792 "configure"
  2270. #include "confdefs.h"
  2271. #include <stdlib.h>
  2272. EOF
  2273. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2274. egrep "free" >/dev/null 2>&1; then
  2275. :
  2276. else
  2277. rm -rf conftest*
  2278. ac_cv_header_stdc=no
  2279. fi
  2280. rm -f conftest*
  2281. fi
  2282. if test $ac_cv_header_stdc = yes; then
  2283. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2284. if test "$cross_compiling" = yes; then
  2285. :
  2286. else
  2287. cat > conftest.$ac_ext <<EOF
  2288. #line 2813 "configure"
  2289. #include "confdefs.h"
  2290. #include <ctype.h>
  2291. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2292. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2293. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2294. int main () { int i; for (i = 0; i < 256; i++)
  2295. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  2296. exit (0); }
  2297. EOF
  2298. if { (eval echo configure:2824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2299. then
  2300. :
  2301. else
  2302. echo "configure: failed program was:" >&5
  2303. cat conftest.$ac_ext >&5
  2304. rm -fr conftest*
  2305. ac_cv_header_stdc=no
  2306. fi
  2307. rm -fr conftest*
  2308. fi
  2309. fi
  2310. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  2311. if test $ac_cv_header_stdc = yes; then
  2312. cat >> confdefs.h <<\EOF
  2313. #define STDC_HEADERS 1
  2314. EOF
  2315. fi
  2316. #AC_CHECK_HEADERS(curses.h limits.h termio.h termios.h unistd.h values.h)
  2317. for ac_hdr in limits.h termio.h termios.h unistd.h values.h f2c.h g2c.h
  2318. do
  2319. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2320. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2321. echo "configure:2851: checking for $ac_hdr" >&5
  2322. cat > conftest.$ac_ext <<EOF
  2323. #line 2854 "configure"
  2324. #include "confdefs.h"
  2325. #include <$ac_hdr>
  2326. EOF
  2327. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2328. { (eval echo configure:2859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2329. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2330. if test -z "$ac_err"; then
  2331. rm -rf conftest*
  2332. eval "ac_cv_header_$ac_safe=yes"
  2333. else
  2334. echo "$ac_err" >&5
  2335. echo "configure: failed program was:" >&5
  2336. cat conftest.$ac_ext >&5
  2337. rm -rf conftest*
  2338. eval "ac_cv_header_$ac_safe=no"
  2339. fi
  2340. rm -f conftest*
  2341. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2342. echo "$ac_t""yes" 1>&6
  2343. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2344. cat >> confdefs.h <<EOF
  2345. #define $ac_tr_hdr 1
  2346. EOF
  2347. else
  2348. echo "$ac_t""no" 1>&6
  2349. fi
  2350. done
  2351. for ac_hdr in sys/ioctl.h sys/mtio.h sys/resource.h sys/time.h
  2352. do
  2353. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2354. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2355. echo "configure:2888: checking for $ac_hdr" >&5
  2356. cat > conftest.$ac_ext <<EOF
  2357. #line 2891 "configure"
  2358. #include "confdefs.h"
  2359. #include <$ac_hdr>
  2360. EOF
  2361. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2362. { (eval echo configure:2896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2363. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2364. if test -z "$ac_err"; then
  2365. rm -rf conftest*
  2366. eval "ac_cv_header_$ac_safe=yes"
  2367. else
  2368. echo "$ac_err" >&5
  2369. echo "configure: failed program was:" >&5
  2370. cat conftest.$ac_ext >&5
  2371. rm -rf conftest*
  2372. eval "ac_cv_header_$ac_safe=no"
  2373. fi
  2374. rm -f conftest*
  2375. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2376. echo "$ac_t""yes" 1>&6
  2377. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2378. cat >> confdefs.h <<EOF
  2379. #define $ac_tr_hdr 1
  2380. EOF
  2381. else
  2382. echo "$ac_t""no" 1>&6
  2383. fi
  2384. done
  2385. for ac_hdr in sys/timeb.h sys/types.h sys/utsname.h
  2386. do
  2387. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2388. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2389. echo "configure:2925: checking for $ac_hdr" >&5
  2390. cat > conftest.$ac_ext <<EOF
  2391. #line 2928 "configure"
  2392. #include "confdefs.h"
  2393. #include <$ac_hdr>
  2394. EOF
  2395. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2396. { (eval echo configure:2933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2397. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2398. if test -z "$ac_err"; then
  2399. rm -rf conftest*
  2400. eval "ac_cv_header_$ac_safe=yes"
  2401. else
  2402. echo "$ac_err" >&5
  2403. echo "configure: failed program was:" >&5
  2404. cat conftest.$ac_ext >&5
  2405. rm -rf conftest*
  2406. eval "ac_cv_header_$ac_safe=no"
  2407. fi
  2408. rm -f conftest*
  2409. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2410. echo "$ac_t""yes" 1>&6
  2411. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2412. cat >> confdefs.h <<EOF
  2413. #define $ac_tr_hdr 1
  2414. EOF
  2415. else
  2416. echo "$ac_t""no" 1>&6
  2417. fi
  2418. done
  2419. for ac_hdr in libintl.h iconv.h
  2420. do
  2421. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2422. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2423. echo "configure:2962: checking for $ac_hdr" >&5
  2424. cat > conftest.$ac_ext <<EOF
  2425. #line 2965 "configure"
  2426. #include "confdefs.h"
  2427. #include <$ac_hdr>
  2428. EOF
  2429. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2430. { (eval echo configure:2970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2431. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2432. if test -z "$ac_err"; then
  2433. rm -rf conftest*
  2434. eval "ac_cv_header_$ac_safe=yes"
  2435. else
  2436. echo "$ac_err" >&5
  2437. echo "configure: failed program was:" >&5
  2438. cat conftest.$ac_ext >&5
  2439. rm -rf conftest*
  2440. eval "ac_cv_header_$ac_safe=no"
  2441. fi
  2442. rm -f conftest*
  2443. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2444. echo "$ac_t""yes" 1>&6
  2445. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2446. cat >> confdefs.h <<EOF
  2447. #define $ac_tr_hdr 1
  2448. EOF
  2449. else
  2450. echo "$ac_t""no" 1>&6
  2451. fi
  2452. done
  2453. for ac_hdr in langinfo.h
  2454. do
  2455. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2456. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2457. echo "configure:2999: checking for $ac_hdr" >&5
  2458. cat > conftest.$ac_ext <<EOF
  2459. #line 3002 "configure"
  2460. #include "confdefs.h"
  2461. #include <$ac_hdr>
  2462. EOF
  2463. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2464. { (eval echo configure:3007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2465. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2466. if test -z "$ac_err"; then
  2467. rm -rf conftest*
  2468. eval "ac_cv_header_$ac_safe=yes"
  2469. else
  2470. echo "$ac_err" >&5
  2471. echo "configure: failed program was:" >&5
  2472. cat conftest.$ac_ext >&5
  2473. rm -rf conftest*
  2474. eval "ac_cv_header_$ac_safe=no"
  2475. fi
  2476. rm -f conftest*
  2477. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2478. echo "$ac_t""yes" 1>&6
  2479. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2480. cat >> confdefs.h <<EOF
  2481. #define $ac_tr_hdr 1
  2482. EOF
  2483. else
  2484. echo "$ac_t""no" 1>&6
  2485. fi
  2486. done
  2487. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  2488. echo "configure:3033: checking whether time.h and sys/time.h may both be included" >&5
  2489. cat > conftest.$ac_ext <<EOF
  2490. #line 3036 "configure"
  2491. #include "confdefs.h"
  2492. #include <sys/types.h>
  2493. #include <sys/time.h>
  2494. #include <time.h>
  2495. int main() {
  2496. struct tm *tp;
  2497. ; return 0; }
  2498. EOF
  2499. if { (eval echo configure:3045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2500. rm -rf conftest*
  2501. ac_cv_header_time=yes
  2502. else
  2503. echo "configure: failed program was:" >&5
  2504. cat conftest.$ac_ext >&5
  2505. rm -rf conftest*
  2506. ac_cv_header_time=no
  2507. fi
  2508. rm -f conftest*
  2509. echo "$ac_t""$ac_cv_header_time" 1>&6
  2510. if test $ac_cv_header_time = yes; then
  2511. cat >> confdefs.h <<\EOF
  2512. #define TIME_WITH_SYS_TIME 1
  2513. EOF
  2514. fi
  2515. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  2516. echo "configure:3065: checking for off_t" >&5
  2517. cat > conftest.$ac_ext <<EOF
  2518. #line 3068 "configure"
  2519. #include "confdefs.h"
  2520. #include <sys/types.h>
  2521. #if STDC_HEADERS
  2522. #include <stdlib.h>
  2523. #include <stddef.h>
  2524. #endif
  2525. EOF
  2526. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2527. egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2528. rm -rf conftest*
  2529. ac_cv_type_off_t=yes
  2530. else
  2531. rm -rf conftest*
  2532. ac_cv_type_off_t=no
  2533. fi
  2534. rm -f conftest*
  2535. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  2536. if test $ac_cv_type_off_t = no; then
  2537. cat >> confdefs.h <<\EOF
  2538. #define off_t long
  2539. EOF
  2540. fi
  2541. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  2542. echo "configure:3095: checking for uid_t in sys/types.h" >&5
  2543. cat > conftest.$ac_ext <<EOF
  2544. #line 3098 "configure"
  2545. #include "confdefs.h"
  2546. #include <sys/types.h>
  2547. EOF
  2548. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2549. egrep "uid_t" >/dev/null 2>&1; then
  2550. rm -rf conftest*
  2551. ac_cv_type_uid_t=yes
  2552. else
  2553. rm -rf conftest*
  2554. ac_cv_type_uid_t=no
  2555. fi
  2556. rm -f conftest*
  2557. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  2558. if test $ac_cv_type_uid_t = no; then
  2559. cat >> confdefs.h <<\EOF
  2560. #define uid_t int
  2561. EOF
  2562. cat >> confdefs.h <<\EOF
  2563. #define gid_t int
  2564. EOF
  2565. fi
  2566. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  2567. echo "configure:3126: checking return type of signal handlers" >&5
  2568. cat > conftest.$ac_ext <<EOF
  2569. #line 3129 "configure"
  2570. #include "confdefs.h"
  2571. #include <sys/types.h>
  2572. #include <signal.h>
  2573. #ifdef signal
  2574. #undef signal
  2575. #endif
  2576. #ifdef __cplusplus
  2577. extern "C" void (*signal (int, void (*)(int)))(int);
  2578. #else
  2579. void (*signal ()) ();
  2580. #endif
  2581. int main() {
  2582. int i;
  2583. ; return 0; }
  2584. EOF
  2585. if { (eval echo configure:3146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2586. rm -rf conftest*
  2587. ac_cv_type_signal=void
  2588. else
  2589. echo "configure: failed program was:" >&5
  2590. cat conftest.$ac_ext >&5
  2591. rm -rf conftest*
  2592. ac_cv_type_signal=int
  2593. fi
  2594. rm -f conftest*
  2595. echo "$ac_t""$ac_cv_type_signal" 1>&6
  2596. cat >> confdefs.h <<EOF
  2597. #define RETSIGTYPE $ac_cv_type_signal
  2598. EOF
  2599. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  2600. echo "configure:3164: checking for Cygwin environment" >&5
  2601. cat > conftest.$ac_ext <<EOF
  2602. #line 3167 "configure"
  2603. #include "confdefs.h"
  2604. int main() {
  2605. #ifndef __CYGWIN__
  2606. #define __CYGWIN__ __CYGWIN32__
  2607. #endif
  2608. return __CYGWIN__;
  2609. ; return 0; }
  2610. EOF
  2611. if { (eval echo configure:3178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2612. rm -rf conftest*
  2613. ac_cv_cygwin=yes
  2614. else
  2615. echo "configure: failed program was:" >&5
  2616. cat conftest.$ac_ext >&5
  2617. rm -rf conftest*
  2618. ac_cv_cygwin=no
  2619. fi
  2620. rm -f conftest*
  2621. rm -f conftest*
  2622. echo "$ac_t""$ac_cv_cygwin" 1>&6
  2623. CYGWIN=
  2624. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  2625. for ac_func in ftime gethostname gettimeofday lseek nice time uname
  2626. do
  2627. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2628. echo "configure:3196: checking for $ac_func" >&5
  2629. cat > conftest.$ac_ext <<EOF
  2630. #line 3199 "configure"
  2631. #include "confdefs.h"
  2632. /* System header to define __stub macros and hopefully few prototypes,
  2633. which can conflict with char $ac_func(); below. */
  2634. #include <assert.h>
  2635. /* Override any gcc2 internal prototype to avoid an error. */
  2636. /* We use char because int might match the return type of a gcc2
  2637. builtin and then its argument prototype would still apply. */
  2638. char $ac_func();
  2639. int main() {
  2640. /* The GNU C library defines this for functions which it implements
  2641. to always fail with ENOSYS. Some functions are actually named
  2642. something starting with __ and the normal name is an alias. */
  2643. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2644. choke me
  2645. #else
  2646. $ac_func();
  2647. #endif
  2648. ; return 0; }
  2649. EOF
  2650. if { (eval echo configure:3222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2651. rm -rf conftest*
  2652. eval "ac_cv_func_$ac_func=yes"
  2653. else
  2654. echo "configure: failed program was:" >&5
  2655. cat conftest.$ac_ext >&5
  2656. rm -rf conftest*
  2657. eval "ac_cv_func_$ac_func=no"
  2658. fi
  2659. rm -f conftest*
  2660. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2661. echo "$ac_t""yes" 1>&6
  2662. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2663. cat >> confdefs.h <<EOF
  2664. #define $ac_tr_func 1
  2665. EOF
  2666. else
  2667. echo "$ac_t""no" 1>&6
  2668. fi
  2669. done
  2670. for ac_func in seteuid setpriority setreuid setruid
  2671. do
  2672. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2673. echo "configure:3248: checking for $ac_func" >&5
  2674. cat > conftest.$ac_ext <<EOF
  2675. #line 3251 "configure"
  2676. #include "confdefs.h"
  2677. /* System header to define __stub macros and hopefully few prototypes,
  2678. which can conflict with char $ac_func(); below. */
  2679. #include <assert.h>
  2680. /* Override any gcc2 internal prototype to avoid an error. */
  2681. /* We use char because int might match the return type of a gcc2
  2682. builtin and then its argument prototype would still apply. */
  2683. char $ac_func();
  2684. int main() {
  2685. /* The GNU C library defines this for functions which it implements
  2686. to always fail with ENOSYS. Some functions are actually named
  2687. something starting with __ and the normal name is an alias. */
  2688. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2689. choke me
  2690. #else
  2691. $ac_func();
  2692. #endif
  2693. ; return 0; }
  2694. EOF
  2695. if { (eval echo configure:3274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2696. rm -rf conftest*
  2697. eval "ac_cv_func_$ac_func=yes"
  2698. else
  2699. echo "configure: failed program was:" >&5
  2700. cat conftest.$ac_ext >&5
  2701. rm -rf conftest*
  2702. eval "ac_cv_func_$ac_func=no"
  2703. fi
  2704. rm -f conftest*
  2705. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2706. echo "$ac_t""yes" 1>&6
  2707. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2708. cat >> confdefs.h <<EOF
  2709. #define $ac_tr_func 1
  2710. EOF
  2711. else
  2712. echo "$ac_t""no" 1>&6
  2713. fi
  2714. done
  2715. for ac_func in drand48
  2716. do
  2717. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2718. echo "configure:3300: checking for $ac_func" >&5
  2719. cat > conftest.$ac_ext <<EOF
  2720. #line 3303 "configure"
  2721. #include "confdefs.h"
  2722. /* System header to define __stub macros and hopefully few prototypes,
  2723. which can conflict with char $ac_func(); below. */
  2724. #include <assert.h>
  2725. /* Override any gcc2 internal prototype to avoid an error. */
  2726. /* We use char because int might match the return type of a gcc2
  2727. builtin and then its argument prototype would still apply. */
  2728. char $ac_func();
  2729. int main() {
  2730. /* The GNU C library defines this for functions which it implements
  2731. to always fail with ENOSYS. Some functions are actually named
  2732. something starting with __ and the normal name is an alias. */
  2733. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2734. choke me
  2735. #else
  2736. $ac_func();
  2737. #endif
  2738. ; return 0; }
  2739. EOF
  2740. if { (eval echo configure:3326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2741. rm -rf conftest*
  2742. eval "ac_cv_func_$ac_func=yes"
  2743. else
  2744. echo "configure: failed program was:" >&5
  2745. cat conftest.$ac_ext >&5
  2746. rm -rf conftest*
  2747. eval "ac_cv_func_$ac_func=no"
  2748. fi
  2749. rm -f conftest*
  2750. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2751. echo "$ac_t""yes" 1>&6
  2752. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2753. cat >> confdefs.h <<EOF
  2754. #define $ac_tr_func 1
  2755. EOF
  2756. else
  2757. echo "$ac_t""no" 1>&6
  2758. fi
  2759. done
  2760. for ac_func in putenv setenv
  2761. do
  2762. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2763. echo "configure:3352: checking for $ac_func" >&5
  2764. cat > conftest.$ac_ext <<EOF
  2765. #line 3355 "configure"
  2766. #include "confdefs.h"
  2767. /* System header to define __stub macros and hopefully few prototypes,
  2768. which can conflict with char $ac_func(); below. */
  2769. #include <assert.h>
  2770. /* Override any gcc2 internal prototype to avoid an error. */
  2771. /* We use char because int might match the return type of a gcc2
  2772. builtin and then its argument prototype would still apply. */
  2773. char $ac_func();
  2774. int main() {
  2775. /* The GNU C library defines this for functions which it implements
  2776. to always fail with ENOSYS. Some functions are actually named
  2777. something starting with __ and the normal name is an alias. */
  2778. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2779. choke me
  2780. #else
  2781. $ac_func();
  2782. #endif
  2783. ; return 0; }
  2784. EOF
  2785. if { (eval echo configure:3378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2786. rm -rf conftest*
  2787. eval "ac_cv_func_$ac_func=yes"
  2788. else
  2789. echo "configure: failed program was:" >&5
  2790. cat conftest.$ac_ext >&5
  2791. rm -rf conftest*
  2792. eval "ac_cv_func_$ac_func=no"
  2793. fi
  2794. rm -f conftest*
  2795. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2796. echo "$ac_t""yes" 1>&6
  2797. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2798. cat >> confdefs.h <<EOF
  2799. #define $ac_tr_func 1
  2800. EOF
  2801. else
  2802. echo "$ac_t""no" 1>&6
  2803. fi
  2804. done
  2805. for ac_func in nanosleep
  2806. do
  2807. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2808. echo "configure:3404: checking for $ac_func" >&5
  2809. cat > conftest.$ac_ext <<EOF
  2810. #line 3407 "configure"
  2811. #include "confdefs.h"
  2812. /* System header to define __stub macros and hopefully few prototypes,
  2813. which can conflict with char $ac_func(); below. */
  2814. #include <assert.h>
  2815. /* Override any gcc2 internal prototype to avoid an error. */
  2816. /* We use char because int might match the return type of a gcc2
  2817. builtin and then its argument prototype would still apply. */
  2818. char $ac_func();
  2819. int main() {
  2820. /* The GNU C library defines this for functions which it implements
  2821. to always fail with ENOSYS. Some functions are actually named
  2822. something starting with __ and the normal name is an alias. */
  2823. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2824. choke me
  2825. #else
  2826. $ac_func();
  2827. #endif
  2828. ; return 0; }
  2829. EOF
  2830. if { (eval echo configure:3430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2831. rm -rf conftest*
  2832. eval "ac_cv_func_$ac_func=yes"
  2833. else
  2834. echo "configure: failed program was:" >&5
  2835. cat conftest.$ac_ext >&5
  2836. rm -rf conftest*
  2837. eval "ac_cv_func_$ac_func=no"
  2838. fi
  2839. rm -f conftest*
  2840. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2841. echo "$ac_t""yes" 1>&6
  2842. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2843. cat >> confdefs.h <<EOF
  2844. #define $ac_tr_func 1
  2845. EOF
  2846. else
  2847. echo "$ac_t""no" 1>&6
  2848. fi
  2849. done
  2850. if test "$cross_compiling" != "yes" ; then
  2851. echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
  2852. echo "configure:3455: checking whether setpgrp takes no argument" >&5
  2853. if test "$cross_compiling" = yes; then
  2854. { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
  2855. else
  2856. cat > conftest.$ac_ext <<EOF
  2857. #line 3461 "configure"
  2858. #include "confdefs.h"
  2859. #ifdef HAVE_UNISTD_H
  2860. #include <unistd.h>
  2861. #endif
  2862. /*
  2863. * If this system has a BSD-style setpgrp, which takes arguments, exit
  2864. * successfully.
  2865. */
  2866. main()
  2867. {
  2868. if (setpgrp(1,1) == -1)
  2869. exit(0);
  2870. else
  2871. exit(1);
  2872. }
  2873. EOF
  2874. if { (eval echo configure:3481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2875. then
  2876. ac_cv_func_setpgrp_void=no
  2877. else
  2878. echo "configure: failed program was:" >&5
  2879. cat conftest.$ac_ext >&5
  2880. rm -fr conftest*
  2881. ac_cv_func_setpgrp_void=yes
  2882. fi
  2883. rm -fr conftest*
  2884. fi
  2885. echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
  2886. if test $ac_cv_func_setpgrp_void = yes; then
  2887. cat >> confdefs.h <<\EOF
  2888. #define SETPGRP_VOID 1
  2889. EOF
  2890. fi
  2891. else
  2892. CROSS_COMPILING=1
  2893. fi
  2894. echo $ac_n "checking for long long int""... $ac_c" 1>&6
  2895. echo "configure:3509: checking for long long int" >&5
  2896. cat > conftest.$ac_ext <<EOF
  2897. #line 3511 "configure"
  2898. #include "confdefs.h"
  2899. int main() {
  2900. long long int x;
  2901. ; return 0; }
  2902. EOF
  2903. if { (eval echo configure:3518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2904. rm -rf conftest*
  2905. echo "$ac_t""yes" 1>&6
  2906. cat >> confdefs.h <<\EOF
  2907. #define HAVE_LONG_LONG_INT 1
  2908. EOF
  2909. else
  2910. echo "configure: failed program was:" >&5
  2911. cat conftest.$ac_ext >&5
  2912. rm -rf conftest*
  2913. echo "$ac_t""no" 1>&6
  2914. fi
  2915. rm -f conftest*
  2916. echo $ac_n "checking for W11""... $ac_c" 1>&6
  2917. echo "configure:3538: checking for W11" >&5
  2918. case "$enable_w11" in
  2919. yes|no) echo "$ac_t"""$enable_w11"" 1>&6 ;;
  2920. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  2921. esac
  2922. USE_X11=
  2923. USE_W11=
  2924. XLIB=
  2925. XTLIB=
  2926. if test "$enable_w11" = "yes" ; then
  2927. X_CFLAGS=-I${SRCDIR}/display/drivers/windows/libW11
  2928. X_LIBS='-L$(LIBDIR)'
  2929. USE_W11="1"
  2930. USE_X11="1"
  2931. XLIB=-lX11
  2932. CFLAGS="$CFLAGS -D__W98__"
  2933. else
  2934. # If we find X, set shell vars x_includes and x_libraries to the
  2935. # paths, otherwise set no_x=yes.
  2936. # Uses ac_ vars as temps to allow command line to override cache and checks.
  2937. # --without-x overrides everything else, but does not touch the cache.
  2938. echo $ac_n "checking for X""... $ac_c" 1>&6
  2939. echo "configure:3566: checking for X" >&5
  2940. # Check whether --with-x or --without-x was given.
  2941. if test "${with_x+set}" = set; then
  2942. withval="$with_x"
  2943. :
  2944. fi
  2945. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  2946. if test "x$with_x" = xno; then
  2947. # The user explicitly disabled X.
  2948. have_x=disabled
  2949. else
  2950. if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  2951. # Both variables are already set.
  2952. have_x=yes
  2953. else
  2954. # One or both of the vars are not set, and there is no cached value.
  2955. ac_x_includes=NO ac_x_libraries=NO
  2956. rm -fr conftestdir
  2957. if mkdir conftestdir; then
  2958. cd conftestdir
  2959. # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  2960. cat > Imakefile <<'EOF'
  2961. acfindx:
  2962. @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  2963. EOF
  2964. if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  2965. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2966. eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  2967. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  2968. for ac_extension in a so sl; do
  2969. if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  2970. test -f $ac_im_libdir/libX11.$ac_extension; then
  2971. ac_im_usrlibdir=$ac_im_libdir; break
  2972. fi
  2973. done
  2974. # Screen out bogus values from the imake configuration. They are
  2975. # bogus both because they are the default anyway, and because
  2976. # using them would break gcc on systems where it needs fixed includes.
  2977. case "$ac_im_incroot" in
  2978. /usr/include) ;;
  2979. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
  2980. esac
  2981. case "$ac_im_usrlibdir" in
  2982. /usr/lib | /lib) ;;
  2983. *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
  2984. esac
  2985. fi
  2986. cd ..
  2987. rm -fr conftestdir
  2988. fi
  2989. if test "$ac_x_includes" = NO; then
  2990. # Guess where to find include files, by looking for this one X11 .h file.
  2991. test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  2992. # First, try using that file with no special directory specified.
  2993. cat > conftest.$ac_ext <<EOF
  2994. #line 3626 "configure"
  2995. #include "confdefs.h"
  2996. #include <$x_direct_test_include>
  2997. EOF
  2998. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2999. { (eval echo configure:3631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3000. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3001. if test -z "$ac_err"; then
  3002. rm -rf conftest*
  3003. # We can compile using X headers with no special include directory.
  3004. ac_x_includes=
  3005. else
  3006. echo "$ac_err" >&5
  3007. echo "configure: failed program was:" >&5
  3008. cat conftest.$ac_ext >&5
  3009. rm -rf conftest*
  3010. # Look for the header file in a standard set of common directories.
  3011. # Check X11 before X11Rn because it is often a symlink to the current release.
  3012. for ac_dir in \
  3013. /usr/X11/include \
  3014. /usr/X11R6/include \
  3015. /usr/X11R5/include \
  3016. /usr/X11R4/include \
  3017. \
  3018. /usr/include/X11 \
  3019. /usr/include/X11R6 \
  3020. /usr/include/X11R5 \
  3021. /usr/include/X11R4 \
  3022. \
  3023. /usr/local/X11/include \
  3024. /usr/local/X11R6/include \
  3025. /usr/local/X11R5/include \
  3026. /usr/local/X11R4/include \
  3027. \
  3028. /usr/local/include/X11 \
  3029. /usr/local/include/X11R6 \
  3030. /usr/local/include/X11R5 \
  3031. /usr/local/include/X11R4 \
  3032. \
  3033. /usr/X386/include \
  3034. /usr/x386/include \
  3035. /usr/XFree86/include/X11 \
  3036. \
  3037. /usr/include \
  3038. /usr/local/include \
  3039. /usr/unsupported/include \
  3040. /usr/athena/include \
  3041. /usr/local/x11r5/include \
  3042. /usr/lpp/Xamples/include \
  3043. \
  3044. /usr/openwin/include \
  3045. /usr/openwin/share/include \
  3046. ; \
  3047. do
  3048. if test -r "$ac_dir/$x_direct_test_include"; then
  3049. ac_x_includes=$ac_dir
  3050. break
  3051. fi
  3052. done
  3053. fi
  3054. rm -f conftest*
  3055. fi # $ac_x_includes = NO
  3056. if test "$ac_x_libraries" = NO; then
  3057. # Check for the libraries.
  3058. test -z "$x_direct_test_library" && x_direct_test_library=Xt
  3059. test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  3060. # See if we find them without any special options.
  3061. # Don't add to $LIBS permanently.
  3062. ac_save_LIBS="$LIBS"
  3063. LIBS="-l$x_direct_test_library $LIBS"
  3064. cat > conftest.$ac_ext <<EOF
  3065. #line 3700 "configure"
  3066. #include "confdefs.h"
  3067. int main() {
  3068. ${x_direct_test_function}()
  3069. ; return 0; }
  3070. EOF
  3071. if { (eval echo configure:3707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3072. rm -rf conftest*
  3073. LIBS="$ac_save_LIBS"
  3074. # We can link X programs with no special library path.
  3075. ac_x_libraries=
  3076. else
  3077. echo "configure: failed program was:" >&5
  3078. cat conftest.$ac_ext >&5
  3079. rm -rf conftest*
  3080. LIBS="$ac_save_LIBS"
  3081. # First see if replacing the include by lib works.
  3082. # Check X11 before X11Rn because it is often a symlink to the current release.
  3083. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  3084. /usr/X11/lib \
  3085. /usr/X11R6/lib \
  3086. /usr/X11R5/lib \
  3087. /usr/X11R4/lib \
  3088. \
  3089. /usr/lib/X11 \
  3090. /usr/lib/X11R6 \
  3091. /usr/lib/X11R5 \
  3092. /usr/lib/X11R4 \
  3093. \
  3094. /usr/local/X11/lib \
  3095. /usr/local/X11R6/lib \
  3096. /usr/local/X11R5/lib \
  3097. /usr/local/X11R4/lib \
  3098. \
  3099. /usr/local/lib/X11 \
  3100. /usr/local/lib/X11R6 \
  3101. /usr/local/lib/X11R5 \
  3102. /usr/local/lib/X11R4 \
  3103. \
  3104. /usr/X386/lib \
  3105. /usr/x386/lib \
  3106. /usr/XFree86/lib/X11 \
  3107. \
  3108. /usr/lib \
  3109. /usr/local/lib \
  3110. /usr/unsupported/lib \
  3111. /usr/athena/lib \
  3112. /usr/local/x11r5/lib \
  3113. /usr/lpp/Xamples/lib \
  3114. /lib/usr/lib/X11 \
  3115. \
  3116. /usr/openwin/lib \
  3117. /usr/openwin/share/lib \
  3118. ; \
  3119. do
  3120. for ac_extension in a so sl; do
  3121. if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  3122. ac_x_libraries=$ac_dir
  3123. break 2
  3124. fi
  3125. done
  3126. done
  3127. fi
  3128. rm -f conftest*
  3129. fi # $ac_x_libraries = NO
  3130. if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
  3131. # Didn't find X anywhere. Cache the known absence of X.
  3132. ac_cv_have_x="have_x=no"
  3133. else
  3134. # Record where we found X for the cache.
  3135. ac_cv_have_x="have_x=yes \
  3136. ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  3137. fi
  3138. fi
  3139. eval "$ac_cv_have_x"
  3140. fi # $with_x != no
  3141. if test "$have_x" != yes; then
  3142. echo "$ac_t""$have_x" 1>&6
  3143. no_x=yes
  3144. else
  3145. # If each of the values was on the command line, it overrides each guess.
  3146. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  3147. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  3148. # Update the cache value to reflect the command line values.
  3149. ac_cv_have_x="have_x=yes \
  3150. ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  3151. echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
  3152. fi
  3153. if test "$no_x" = yes; then
  3154. # Not all programs may use this symbol, but it does not hurt to define it.
  3155. cat >> confdefs.h <<\EOF
  3156. #define X_DISPLAY_MISSING 1
  3157. EOF
  3158. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  3159. else
  3160. if test -n "$x_includes"; then
  3161. X_CFLAGS="$X_CFLAGS -I$x_includes"
  3162. fi
  3163. # It would also be nice to do this for all -L options, not just this one.
  3164. if test -n "$x_libraries"; then
  3165. X_LIBS="$X_LIBS -L$x_libraries"
  3166. # For Solaris; some versions of Sun CC require a space after -R and
  3167. # others require no space. Words are not sufficient . . . .
  3168. case "`(uname -sr) 2>/dev/null`" in
  3169. "SunOS 5"*)
  3170. echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
  3171. echo "configure:3812: checking whether -R must be followed by a space" >&5
  3172. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
  3173. cat > conftest.$ac_ext <<EOF
  3174. #line 3815 "configure"
  3175. #include "confdefs.h"
  3176. int main() {
  3177. ; return 0; }
  3178. EOF
  3179. if { (eval echo configure:3822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3180. rm -rf conftest*
  3181. ac_R_nospace=yes
  3182. else
  3183. echo "configure: failed program was:" >&5
  3184. cat conftest.$ac_ext >&5
  3185. rm -rf conftest*
  3186. ac_R_nospace=no
  3187. fi
  3188. rm -f conftest*
  3189. if test $ac_R_nospace = yes; then
  3190. echo "$ac_t""no" 1>&6
  3191. X_LIBS="$X_LIBS -R$x_libraries"
  3192. else
  3193. LIBS="$ac_xsave_LIBS -R $x_libraries"
  3194. cat > conftest.$ac_ext <<EOF
  3195. #line 3838 "configure"
  3196. #include "confdefs.h"
  3197. int main() {
  3198. ; return 0; }
  3199. EOF
  3200. if { (eval echo configure:3845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3201. rm -rf conftest*
  3202. ac_R_space=yes
  3203. else
  3204. echo "configure: failed program was:" >&5
  3205. cat conftest.$ac_ext >&5
  3206. rm -rf conftest*
  3207. ac_R_space=no
  3208. fi
  3209. rm -f conftest*
  3210. if test $ac_R_space = yes; then
  3211. echo "$ac_t""yes" 1>&6
  3212. X_LIBS="$X_LIBS -R $x_libraries"
  3213. else
  3214. echo "$ac_t""neither works" 1>&6
  3215. fi
  3216. fi
  3217. LIBS="$ac_xsave_LIBS"
  3218. esac
  3219. fi
  3220. # Check for system-dependent libraries X programs must link with.
  3221. # Do this before checking for the system-independent R6 libraries
  3222. # (-lICE), since we may need -lsocket or whatever for X linking.
  3223. if test "$ISC" = yes; then
  3224. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  3225. else
  3226. # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  3227. # libraries were built with DECnet support. And karl@cs.umb.edu says
  3228. # the Alpha needs dnet_stub (dnet does not exist).
  3229. echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
  3230. echo "configure:3877: checking for dnet_ntoa in -ldnet" >&5
  3231. ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  3232. ac_save_LIBS="$LIBS"
  3233. LIBS="-ldnet $LIBS"
  3234. cat > conftest.$ac_ext <<EOF
  3235. #line 3883 "configure"
  3236. #include "confdefs.h"
  3237. /* Override any gcc2 internal prototype to avoid an error. */
  3238. /* We use char because int might match the return type of a gcc2
  3239. builtin and then its argument prototype would still apply. */
  3240. char dnet_ntoa();
  3241. int main() {
  3242. dnet_ntoa()
  3243. ; return 0; }
  3244. EOF
  3245. if { (eval echo configure:3894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3246. rm -rf conftest*
  3247. eval "ac_cv_lib_$ac_lib_var=yes"
  3248. else
  3249. echo "configure: failed program was:" >&5
  3250. cat conftest.$ac_ext >&5
  3251. rm -rf conftest*
  3252. eval "ac_cv_lib_$ac_lib_var=no"
  3253. fi
  3254. rm -f conftest*
  3255. LIBS="$ac_save_LIBS"
  3256. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3257. echo "$ac_t""yes" 1>&6
  3258. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  3259. else
  3260. echo "$ac_t""no" 1>&6
  3261. fi
  3262. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  3263. echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
  3264. echo "configure:3915: checking for dnet_ntoa in -ldnet_stub" >&5
  3265. ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  3266. ac_save_LIBS="$LIBS"
  3267. LIBS="-ldnet_stub $LIBS"
  3268. cat > conftest.$ac_ext <<EOF
  3269. #line 3921 "configure"
  3270. #include "confdefs.h"
  3271. /* Override any gcc2 internal prototype to avoid an error. */
  3272. /* We use char because int might match the return type of a gcc2
  3273. builtin and then its argument prototype would still apply. */
  3274. char dnet_ntoa();
  3275. int main() {
  3276. dnet_ntoa()
  3277. ; return 0; }
  3278. EOF
  3279. if { (eval echo configure:3932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3280. rm -rf conftest*
  3281. eval "ac_cv_lib_$ac_lib_var=yes"
  3282. else
  3283. echo "configure: failed program was:" >&5
  3284. cat conftest.$ac_ext >&5
  3285. rm -rf conftest*
  3286. eval "ac_cv_lib_$ac_lib_var=no"
  3287. fi
  3288. rm -f conftest*
  3289. LIBS="$ac_save_LIBS"
  3290. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3291. echo "$ac_t""yes" 1>&6
  3292. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  3293. else
  3294. echo "$ac_t""no" 1>&6
  3295. fi
  3296. fi
  3297. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  3298. # to get the SysV transport functions.
  3299. # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
  3300. # needs -lnsl.
  3301. # The nsl library prevents programs from opening the X display
  3302. # on Irix 5.2, according to dickey@clark.net.
  3303. echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
  3304. echo "configure:3960: checking for gethostbyname" >&5
  3305. cat > conftest.$ac_ext <<EOF
  3306. #line 3963 "configure"
  3307. #include "confdefs.h"
  3308. /* System header to define __stub macros and hopefully few prototypes,
  3309. which can conflict with char gethostbyname(); below. */
  3310. #include <assert.h>
  3311. /* Override any gcc2 internal prototype to avoid an error. */
  3312. /* We use char because int might match the return type of a gcc2
  3313. builtin and then its argument prototype would still apply. */
  3314. char gethostbyname();
  3315. int main() {
  3316. /* The GNU C library defines this for functions which it implements
  3317. to always fail with ENOSYS. Some functions are actually named
  3318. something starting with __ and the normal name is an alias. */
  3319. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  3320. choke me
  3321. #else
  3322. gethostbyname();
  3323. #endif
  3324. ; return 0; }
  3325. EOF
  3326. if { (eval echo configure:3986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3327. rm -rf conftest*
  3328. eval "ac_cv_func_gethostbyname=yes"
  3329. else
  3330. echo "configure: failed program was:" >&5
  3331. cat conftest.$ac_ext >&5
  3332. rm -rf conftest*
  3333. eval "ac_cv_func_gethostbyname=no"
  3334. fi
  3335. rm -f conftest*
  3336. if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  3337. echo "$ac_t""yes" 1>&6
  3338. :
  3339. else
  3340. echo "$ac_t""no" 1>&6
  3341. fi
  3342. if test $ac_cv_func_gethostbyname = no; then
  3343. echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  3344. echo "configure:4006: checking for gethostbyname in -lnsl" >&5
  3345. ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  3346. ac_save_LIBS="$LIBS"
  3347. LIBS="-lnsl $LIBS"
  3348. cat > conftest.$ac_ext <<EOF
  3349. #line 4012 "configure"
  3350. #include "confdefs.h"
  3351. /* Override any gcc2 internal prototype to avoid an error. */
  3352. /* We use char because int might match the return type of a gcc2
  3353. builtin and then its argument prototype would still apply. */
  3354. char gethostbyname();
  3355. int main() {
  3356. gethostbyname()
  3357. ; return 0; }
  3358. EOF
  3359. if { (eval echo configure:4023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3360. rm -rf conftest*
  3361. eval "ac_cv_lib_$ac_lib_var=yes"
  3362. else
  3363. echo "configure: failed program was:" >&5
  3364. cat conftest.$ac_ext >&5
  3365. rm -rf conftest*
  3366. eval "ac_cv_lib_$ac_lib_var=no"
  3367. fi
  3368. rm -f conftest*
  3369. LIBS="$ac_save_LIBS"
  3370. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3371. echo "$ac_t""yes" 1>&6
  3372. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  3373. else
  3374. echo "$ac_t""no" 1>&6
  3375. fi
  3376. fi
  3377. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  3378. # socket/setsockopt and other routines are undefined under SCO ODT
  3379. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  3380. # on later versions), says simon@lia.di.epfl.ch: it contains
  3381. # gethostby* variants that don't use the nameserver (or something).
  3382. # -lsocket must be given before -lnsl if both are needed.
  3383. # We assume that if connect needs -lnsl, so does gethostbyname.
  3384. echo $ac_n "checking for connect""... $ac_c" 1>&6
  3385. echo "configure:4052: checking for connect" >&5
  3386. cat > conftest.$ac_ext <<EOF
  3387. #line 4055 "configure"
  3388. #include "confdefs.h"
  3389. /* System header to define __stub macros and hopefully few prototypes,
  3390. which can conflict with char connect(); below. */
  3391. #include <assert.h>
  3392. /* Override any gcc2 internal prototype to avoid an error. */
  3393. /* We use char because int might match the return type of a gcc2
  3394. builtin and then its argument prototype would still apply. */
  3395. char connect();
  3396. int main() {
  3397. /* The GNU C library defines this for functions which it implements
  3398. to always fail with ENOSYS. Some functions are actually named
  3399. something starting with __ and the normal name is an alias. */
  3400. #if defined (__stub_connect) || defined (__stub___connect)
  3401. choke me
  3402. #else
  3403. connect();
  3404. #endif
  3405. ; return 0; }
  3406. EOF
  3407. if { (eval echo configure:4078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3408. rm -rf conftest*
  3409. eval "ac_cv_func_connect=yes"
  3410. else
  3411. echo "configure: failed program was:" >&5
  3412. cat conftest.$ac_ext >&5
  3413. rm -rf conftest*
  3414. eval "ac_cv_func_connect=no"
  3415. fi
  3416. rm -f conftest*
  3417. if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  3418. echo "$ac_t""yes" 1>&6
  3419. :
  3420. else
  3421. echo "$ac_t""no" 1>&6
  3422. fi
  3423. if test $ac_cv_func_connect = no; then
  3424. echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
  3425. echo "configure:4098: checking for connect in -lsocket" >&5
  3426. ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
  3427. ac_save_LIBS="$LIBS"
  3428. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  3429. cat > conftest.$ac_ext <<EOF
  3430. #line 4104 "configure"
  3431. #include "confdefs.h"
  3432. /* Override any gcc2 internal prototype to avoid an error. */
  3433. /* We use char because int might match the return type of a gcc2
  3434. builtin and then its argument prototype would still apply. */
  3435. char connect();
  3436. int main() {
  3437. connect()
  3438. ; return 0; }
  3439. EOF
  3440. if { (eval echo configure:4115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3441. rm -rf conftest*
  3442. eval "ac_cv_lib_$ac_lib_var=yes"
  3443. else
  3444. echo "configure: failed program was:" >&5
  3445. cat conftest.$ac_ext >&5
  3446. rm -rf conftest*
  3447. eval "ac_cv_lib_$ac_lib_var=no"
  3448. fi
  3449. rm -f conftest*
  3450. LIBS="$ac_save_LIBS"
  3451. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3452. echo "$ac_t""yes" 1>&6
  3453. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  3454. else
  3455. echo "$ac_t""no" 1>&6
  3456. fi
  3457. fi
  3458. # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
  3459. echo $ac_n "checking for remove""... $ac_c" 1>&6
  3460. echo "configure:4138: checking for remove" >&5
  3461. cat > conftest.$ac_ext <<EOF
  3462. #line 4141 "configure"
  3463. #include "confdefs.h"
  3464. /* System header to define __stub macros and hopefully few prototypes,
  3465. which can conflict with char remove(); below. */
  3466. #include <assert.h>
  3467. /* Override any gcc2 internal prototype to avoid an error. */
  3468. /* We use char because int might match the return type of a gcc2
  3469. builtin and then its argument prototype would still apply. */
  3470. char remove();
  3471. int main() {
  3472. /* The GNU C library defines this for functions which it implements
  3473. to always fail with ENOSYS. Some functions are actually named
  3474. something starting with __ and the normal name is an alias. */
  3475. #if defined (__stub_remove) || defined (__stub___remove)
  3476. choke me
  3477. #else
  3478. remove();
  3479. #endif
  3480. ; return 0; }
  3481. EOF
  3482. if { (eval echo configure:4164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3483. rm -rf conftest*
  3484. eval "ac_cv_func_remove=yes"
  3485. else
  3486. echo "configure: failed program was:" >&5
  3487. cat conftest.$ac_ext >&5
  3488. rm -rf conftest*
  3489. eval "ac_cv_func_remove=no"
  3490. fi
  3491. rm -f conftest*
  3492. if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
  3493. echo "$ac_t""yes" 1>&6
  3494. :
  3495. else
  3496. echo "$ac_t""no" 1>&6
  3497. fi
  3498. if test $ac_cv_func_remove = no; then
  3499. echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
  3500. echo "configure:4184: checking for remove in -lposix" >&5
  3501. ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
  3502. ac_save_LIBS="$LIBS"
  3503. LIBS="-lposix $LIBS"
  3504. cat > conftest.$ac_ext <<EOF
  3505. #line 4190 "configure"
  3506. #include "confdefs.h"
  3507. /* Override any gcc2 internal prototype to avoid an error. */
  3508. /* We use char because int might match the return type of a gcc2
  3509. builtin and then its argument prototype would still apply. */
  3510. char remove();
  3511. int main() {
  3512. remove()
  3513. ; return 0; }
  3514. EOF
  3515. if { (eval echo configure:4201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3516. rm -rf conftest*
  3517. eval "ac_cv_lib_$ac_lib_var=yes"
  3518. else
  3519. echo "configure: failed program was:" >&5
  3520. cat conftest.$ac_ext >&5
  3521. rm -rf conftest*
  3522. eval "ac_cv_lib_$ac_lib_var=no"
  3523. fi
  3524. rm -f conftest*
  3525. LIBS="$ac_save_LIBS"
  3526. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3527. echo "$ac_t""yes" 1>&6
  3528. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  3529. else
  3530. echo "$ac_t""no" 1>&6
  3531. fi
  3532. fi
  3533. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  3534. echo $ac_n "checking for shmat""... $ac_c" 1>&6
  3535. echo "configure:4224: checking for shmat" >&5
  3536. cat > conftest.$ac_ext <<EOF
  3537. #line 4227 "configure"
  3538. #include "confdefs.h"
  3539. /* System header to define __stub macros and hopefully few prototypes,
  3540. which can conflict with char shmat(); below. */
  3541. #include <assert.h>
  3542. /* Override any gcc2 internal prototype to avoid an error. */
  3543. /* We use char because int might match the return type of a gcc2
  3544. builtin and then its argument prototype would still apply. */
  3545. char shmat();
  3546. int main() {
  3547. /* The GNU C library defines this for functions which it implements
  3548. to always fail with ENOSYS. Some functions are actually named
  3549. something starting with __ and the normal name is an alias. */
  3550. #if defined (__stub_shmat) || defined (__stub___shmat)
  3551. choke me
  3552. #else
  3553. shmat();
  3554. #endif
  3555. ; return 0; }
  3556. EOF
  3557. if { (eval echo configure:4250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3558. rm -rf conftest*
  3559. eval "ac_cv_func_shmat=yes"
  3560. else
  3561. echo "configure: failed program was:" >&5
  3562. cat conftest.$ac_ext >&5
  3563. rm -rf conftest*
  3564. eval "ac_cv_func_shmat=no"
  3565. fi
  3566. rm -f conftest*
  3567. if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
  3568. echo "$ac_t""yes" 1>&6
  3569. :
  3570. else
  3571. echo "$ac_t""no" 1>&6
  3572. fi
  3573. if test $ac_cv_func_shmat = no; then
  3574. echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
  3575. echo "configure:4270: checking for shmat in -lipc" >&5
  3576. ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
  3577. ac_save_LIBS="$LIBS"
  3578. LIBS="-lipc $LIBS"
  3579. cat > conftest.$ac_ext <<EOF
  3580. #line 4276 "configure"
  3581. #include "confdefs.h"
  3582. /* Override any gcc2 internal prototype to avoid an error. */
  3583. /* We use char because int might match the return type of a gcc2
  3584. builtin and then its argument prototype would still apply. */
  3585. char shmat();
  3586. int main() {
  3587. shmat()
  3588. ; return 0; }
  3589. EOF
  3590. if { (eval echo configure:4287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3591. rm -rf conftest*
  3592. eval "ac_cv_lib_$ac_lib_var=yes"
  3593. else
  3594. echo "configure: failed program was:" >&5
  3595. cat conftest.$ac_ext >&5
  3596. rm -rf conftest*
  3597. eval "ac_cv_lib_$ac_lib_var=no"
  3598. fi
  3599. rm -f conftest*
  3600. LIBS="$ac_save_LIBS"
  3601. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3602. echo "$ac_t""yes" 1>&6
  3603. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  3604. else
  3605. echo "$ac_t""no" 1>&6
  3606. fi
  3607. fi
  3608. fi
  3609. # Check for libraries that X11R6 Xt/Xaw programs need.
  3610. ac_save_LDFLAGS="$LDFLAGS"
  3611. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  3612. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  3613. # check for ICE first), but we must link in the order -lSM -lICE or
  3614. # we get undefined symbols. So assume we have SM if we have ICE.
  3615. # These have to be linked with before -lX11, unlike the other
  3616. # libraries we check for below, so use a different variable.
  3617. # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  3618. echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
  3619. echo "configure:4319: checking for IceConnectionNumber in -lICE" >&5
  3620. ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
  3621. ac_save_LIBS="$LIBS"
  3622. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  3623. cat > conftest.$ac_ext <<EOF
  3624. #line 4325 "configure"
  3625. #include "confdefs.h"
  3626. /* Override any gcc2 internal prototype to avoid an error. */
  3627. /* We use char because int might match the return type of a gcc2
  3628. builtin and then its argument prototype would still apply. */
  3629. char IceConnectionNumber();
  3630. int main() {
  3631. IceConnectionNumber()
  3632. ; return 0; }
  3633. EOF
  3634. if { (eval echo configure:4336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3635. rm -rf conftest*
  3636. eval "ac_cv_lib_$ac_lib_var=yes"
  3637. else
  3638. echo "configure: failed program was:" >&5
  3639. cat conftest.$ac_ext >&5
  3640. rm -rf conftest*
  3641. eval "ac_cv_lib_$ac_lib_var=no"
  3642. fi
  3643. rm -f conftest*
  3644. LIBS="$ac_save_LIBS"
  3645. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3646. echo "$ac_t""yes" 1>&6
  3647. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  3648. else
  3649. echo "$ac_t""no" 1>&6
  3650. fi
  3651. LDFLAGS="$ac_save_LDFLAGS"
  3652. fi
  3653. if test "$no_x" != "yes"; then
  3654. USE_X11="1"
  3655. XLIB=-lX11
  3656. XTLIB=-lXt
  3657. fi
  3658. fi
  3659. # Note that some systems (FreeBSD for example) need an extra library for
  3660. # cuserid
  3661. ac_save_libs="$LIBS"
  3662. LIBS=""
  3663. echo $ac_n "checking for library containing cuserid""... $ac_c" 1>&6
  3664. echo "configure:4376: checking for library containing cuserid" >&5
  3665. ac_func_search_save_LIBS="$LIBS"
  3666. ac_cv_search_cuserid="no"
  3667. cat > conftest.$ac_ext <<EOF
  3668. #line 4381 "configure"
  3669. #include "confdefs.h"
  3670. /* Override any gcc2 internal prototype to avoid an error. */
  3671. /* We use char because int might match the return type of a gcc2
  3672. builtin and then its argument prototype would still apply. */
  3673. char cuserid();
  3674. int main() {
  3675. cuserid()
  3676. ; return 0; }
  3677. EOF
  3678. if { (eval echo configure:4392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3679. rm -rf conftest*
  3680. ac_cv_search_cuserid="none required"
  3681. else
  3682. echo "configure: failed program was:" >&5
  3683. cat conftest.$ac_ext >&5
  3684. fi
  3685. rm -f conftest*
  3686. test "$ac_cv_search_cuserid" = "no" && for i in compat; do
  3687. LIBS="-l$i $ac_func_search_save_LIBS"
  3688. cat > conftest.$ac_ext <<EOF
  3689. #line 4403 "configure"
  3690. #include "confdefs.h"
  3691. /* Override any gcc2 internal prototype to avoid an error. */
  3692. /* We use char because int might match the return type of a gcc2
  3693. builtin and then its argument prototype would still apply. */
  3694. char cuserid();
  3695. int main() {
  3696. cuserid()
  3697. ; return 0; }
  3698. EOF
  3699. if { (eval echo configure:4414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3700. rm -rf conftest*
  3701. ac_cv_search_cuserid="-l$i"
  3702. break
  3703. else
  3704. echo "configure: failed program was:" >&5
  3705. cat conftest.$ac_ext >&5
  3706. fi
  3707. rm -f conftest*
  3708. done
  3709. LIBS="$ac_func_search_save_LIBS"
  3710. echo "$ac_t""$ac_cv_search_cuserid" 1>&6
  3711. if test "$ac_cv_search_cuserid" != "no"; then
  3712. test "$ac_cv_search_cuserid" = "none required" || LIBS="$ac_cv_search_cuserid $LIBS"
  3713. else :
  3714. fi
  3715. DBMIEXTRALIB="$LIBS"
  3716. LIBS="$ac_save_libs"
  3717. # Note: -lxdr -liberty -lws2_32 is for MinGW
  3718. echo $ac_n "checking for xdrmem_create""... $ac_c" 1>&6
  3719. echo "configure:4440: checking for xdrmem_create" >&5
  3720. cat > conftest.$ac_ext <<EOF
  3721. #line 4443 "configure"
  3722. #include "confdefs.h"
  3723. /* System header to define __stub macros and hopefully few prototypes,
  3724. which can conflict with char xdrmem_create(); below. */
  3725. #include <assert.h>
  3726. /* Override any gcc2 internal prototype to avoid an error. */
  3727. /* We use char because int might match the return type of a gcc2
  3728. builtin and then its argument prototype would still apply. */
  3729. char xdrmem_create();
  3730. int main() {
  3731. /* The GNU C library defines this for functions which it implements
  3732. to always fail with ENOSYS. Some functions are actually named
  3733. something starting with __ and the normal name is an alias. */
  3734. #if defined (__stub_xdrmem_create) || defined (__stub___xdrmem_create)
  3735. choke me
  3736. #else
  3737. xdrmem_create();
  3738. #endif
  3739. ; return 0; }
  3740. EOF
  3741. if { (eval echo configure:4466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3742. rm -rf conftest*
  3743. eval "ac_cv_func_xdrmem_create=yes"
  3744. else
  3745. echo "configure: failed program was:" >&5
  3746. cat conftest.$ac_ext >&5
  3747. rm -rf conftest*
  3748. eval "ac_cv_func_xdrmem_create=no"
  3749. fi
  3750. rm -f conftest*
  3751. if eval "test \"`echo '$ac_cv_func_'xdrmem_create`\" = yes"; then
  3752. echo "$ac_t""yes" 1>&6
  3753. XDRLIB=
  3754. else
  3755. echo "$ac_t""no" 1>&6
  3756. echo $ac_n "checking for xdrmem_create in -lsun""... $ac_c" 1>&6
  3757. echo "configure:4484: checking for xdrmem_create in -lsun" >&5
  3758. ac_lib_var=`echo sun'_'xdrmem_create | sed 'y%./+-%__p_%'`
  3759. ac_save_LIBS="$LIBS"
  3760. LIBS="-lsun $LIBS"
  3761. cat > conftest.$ac_ext <<EOF
  3762. #line 4490 "configure"
  3763. #include "confdefs.h"
  3764. /* Override any gcc2 internal prototype to avoid an error. */
  3765. /* We use char because int might match the return type of a gcc2
  3766. builtin and then its argument prototype would still apply. */
  3767. char xdrmem_create();
  3768. int main() {
  3769. xdrmem_create()
  3770. ; return 0; }
  3771. EOF
  3772. if { (eval echo configure:4501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3773. rm -rf conftest*
  3774. eval "ac_cv_lib_$ac_lib_var=yes"
  3775. else
  3776. echo "configure: failed program was:" >&5
  3777. cat conftest.$ac_ext >&5
  3778. rm -rf conftest*
  3779. eval "ac_cv_lib_$ac_lib_var=no"
  3780. fi
  3781. rm -f conftest*
  3782. LIBS="$ac_save_LIBS"
  3783. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3784. echo "$ac_t""yes" 1>&6
  3785. XDRLIB=-lsun
  3786. else
  3787. echo "$ac_t""no" 1>&6
  3788. echo $ac_n "checking for xdrmem_create in -lnsl""... $ac_c" 1>&6
  3789. echo "configure:4520: checking for xdrmem_create in -lnsl" >&5
  3790. ac_lib_var=`echo nsl'_'xdrmem_create | sed 'y%./+-%__p_%'`
  3791. ac_save_LIBS="$LIBS"
  3792. LIBS="-lnsl $LIBS"
  3793. cat > conftest.$ac_ext <<EOF
  3794. #line 4526 "configure"
  3795. #include "confdefs.h"
  3796. /* Override any gcc2 internal prototype to avoid an error. */
  3797. /* We use char because int might match the return type of a gcc2
  3798. builtin and then its argument prototype would still apply. */
  3799. char xdrmem_create();
  3800. int main() {
  3801. xdrmem_create()
  3802. ; return 0; }
  3803. EOF
  3804. if { (eval echo configure:4537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3805. rm -rf conftest*
  3806. eval "ac_cv_lib_$ac_lib_var=yes"
  3807. else
  3808. echo "configure: failed program was:" >&5
  3809. cat conftest.$ac_ext >&5
  3810. rm -rf conftest*
  3811. eval "ac_cv_lib_$ac_lib_var=no"
  3812. fi
  3813. rm -f conftest*
  3814. LIBS="$ac_save_LIBS"
  3815. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3816. echo "$ac_t""yes" 1>&6
  3817. XDRLIB=-lnsl
  3818. else
  3819. echo "$ac_t""no" 1>&6
  3820. echo $ac_n "checking for xdrmem_create in -lrpclib""... $ac_c" 1>&6
  3821. echo "configure:4556: checking for xdrmem_create in -lrpclib" >&5
  3822. ac_lib_var=`echo rpclib'_'xdrmem_create | sed 'y%./+-%__p_%'`
  3823. ac_save_LIBS="$LIBS"
  3824. LIBS="-lrpclib $LIBS"
  3825. cat > conftest.$ac_ext <<EOF
  3826. #line 4562 "configure"
  3827. #include "confdefs.h"
  3828. /* Override any gcc2 internal prototype to avoid an error. */
  3829. /* We use char because int might match the return type of a gcc2
  3830. builtin and then its argument prototype would still apply. */
  3831. char xdrmem_create();
  3832. int main() {
  3833. xdrmem_create()
  3834. ; return 0; }
  3835. EOF
  3836. if { (eval echo configure:4573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3837. rm -rf conftest*
  3838. eval "ac_cv_lib_$ac_lib_var=yes"
  3839. else
  3840. echo "configure: failed program was:" >&5
  3841. cat conftest.$ac_ext >&5
  3842. rm -rf conftest*
  3843. eval "ac_cv_lib_$ac_lib_var=no"
  3844. fi
  3845. rm -f conftest*
  3846. LIBS="$ac_save_LIBS"
  3847. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3848. echo "$ac_t""yes" 1>&6
  3849. XDRLIB=-lrpclib
  3850. else
  3851. echo "$ac_t""no" 1>&6
  3852. echo $ac_n "checking for xdrmem_create in -lxdr""... $ac_c" 1>&6
  3853. echo "configure:4592: checking for xdrmem_create in -lxdr" >&5
  3854. ac_lib_var=`echo xdr'_'xdrmem_create | sed 'y%./+-%__p_%'`
  3855. ac_save_LIBS="$LIBS"
  3856. LIBS="-lxdr -liberty -lws2_32 $LIBS"
  3857. cat > conftest.$ac_ext <<EOF
  3858. #line 4598 "configure"
  3859. #include "confdefs.h"
  3860. /* Override any gcc2 internal prototype to avoid an error. */
  3861. /* We use char because int might match the return type of a gcc2
  3862. builtin and then its argument prototype would still apply. */
  3863. char xdrmem_create();
  3864. int main() {
  3865. xdrmem_create()
  3866. ; return 0; }
  3867. EOF
  3868. if { (eval echo configure:4609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3869. rm -rf conftest*
  3870. eval "ac_cv_lib_$ac_lib_var=yes"
  3871. else
  3872. echo "configure: failed program was:" >&5
  3873. cat conftest.$ac_ext >&5
  3874. rm -rf conftest*
  3875. eval "ac_cv_lib_$ac_lib_var=no"
  3876. fi
  3877. rm -f conftest*
  3878. LIBS="$ac_save_LIBS"
  3879. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3880. echo "$ac_t""yes" 1>&6
  3881. XDRLIB="-lxdr -liberty -lws2_32"
  3882. else
  3883. echo "$ac_t""no" 1>&6
  3884. { echo "configure: error: *** Unable to locate XDR functions." 1>&2; exit 1; }
  3885. fi
  3886. fi
  3887. fi
  3888. fi
  3889. fi
  3890. for ac_func in asprintf
  3891. do
  3892. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3893. echo "configure:4643: checking for $ac_func" >&5
  3894. cat > conftest.$ac_ext <<EOF
  3895. #line 4646 "configure"
  3896. #include "confdefs.h"
  3897. /* System header to define __stub macros and hopefully few prototypes,
  3898. which can conflict with char $ac_func(); below. */
  3899. #include <assert.h>
  3900. /* Override any gcc2 internal prototype to avoid an error. */
  3901. /* We use char because int might match the return type of a gcc2
  3902. builtin and then its argument prototype would still apply. */
  3903. char $ac_func();
  3904. int main() {
  3905. /* The GNU C library defines this for functions which it implements
  3906. to always fail with ENOSYS. Some functions are actually named
  3907. something starting with __ and the normal name is an alias. */
  3908. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3909. choke me
  3910. #else
  3911. $ac_func();
  3912. #endif
  3913. ; return 0; }
  3914. EOF
  3915. if { (eval echo configure:4669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3916. rm -rf conftest*
  3917. eval "ac_cv_func_$ac_func=yes"
  3918. else
  3919. echo "configure: failed program was:" >&5
  3920. cat conftest.$ac_ext >&5
  3921. rm -rf conftest*
  3922. eval "ac_cv_func_$ac_func=no"
  3923. fi
  3924. rm -f conftest*
  3925. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3926. echo "$ac_t""yes" 1>&6
  3927. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3928. cat >> confdefs.h <<EOF
  3929. #define $ac_tr_func 1
  3930. EOF
  3931. else
  3932. echo "$ac_t""no" 1>&6
  3933. fi
  3934. done
  3935. # Test if mathlib needs -lm flag or is included with libc
  3936. echo $ac_n "checking for atan""... $ac_c" 1>&6
  3937. echo "configure:4696: checking for atan" >&5
  3938. cat > conftest.$ac_ext <<EOF
  3939. #line 4699 "configure"
  3940. #include "confdefs.h"
  3941. /* System header to define __stub macros and hopefully few prototypes,
  3942. which can conflict with char atan(); below. */
  3943. #include <assert.h>
  3944. /* Override any gcc2 internal prototype to avoid an error. */
  3945. /* We use char because int might match the return type of a gcc2
  3946. builtin and then its argument prototype would still apply. */
  3947. char atan();
  3948. int main() {
  3949. /* The GNU C library defines this for functions which it implements
  3950. to always fail with ENOSYS. Some functions are actually named
  3951. something starting with __ and the normal name is an alias. */
  3952. #if defined (__stub_atan) || defined (__stub___atan)
  3953. choke me
  3954. #else
  3955. atan();
  3956. #endif
  3957. ; return 0; }
  3958. EOF
  3959. if { (eval echo configure:4722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3960. rm -rf conftest*
  3961. eval "ac_cv_func_atan=yes"
  3962. else
  3963. echo "configure: failed program was:" >&5
  3964. cat conftest.$ac_ext >&5
  3965. rm -rf conftest*
  3966. eval "ac_cv_func_atan=no"
  3967. fi
  3968. rm -f conftest*
  3969. if eval "test \"`echo '$ac_cv_func_'atan`\" = yes"; then
  3970. echo "$ac_t""yes" 1>&6
  3971. MATHLIB=
  3972. else
  3973. echo "$ac_t""no" 1>&6
  3974. echo $ac_n "checking for atan in -lm""... $ac_c" 1>&6
  3975. echo "configure:4740: checking for atan in -lm" >&5
  3976. ac_lib_var=`echo m'_'atan | sed 'y%./+-%__p_%'`
  3977. ac_save_LIBS="$LIBS"
  3978. LIBS="-lm $LIBS"
  3979. cat > conftest.$ac_ext <<EOF
  3980. #line 4746 "configure"
  3981. #include "confdefs.h"
  3982. /* Override any gcc2 internal prototype to avoid an error. */
  3983. /* We use char because int might match the return type of a gcc2
  3984. builtin and then its argument prototype would still apply. */
  3985. char atan();
  3986. int main() {
  3987. atan()
  3988. ; return 0; }
  3989. EOF
  3990. if { (eval echo configure:4757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3991. rm -rf conftest*
  3992. eval "ac_cv_lib_$ac_lib_var=yes"
  3993. else
  3994. echo "configure: failed program was:" >&5
  3995. cat conftest.$ac_ext >&5
  3996. rm -rf conftest*
  3997. eval "ac_cv_lib_$ac_lib_var=no"
  3998. fi
  3999. rm -f conftest*
  4000. LIBS="$ac_save_LIBS"
  4001. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4002. echo "$ac_t""yes" 1>&6
  4003. MATHLIB=-lm
  4004. else
  4005. echo "$ac_t""no" 1>&6
  4006. { echo "configure: error: *** Failed check for math library." 1>&2; exit 1; }
  4007. fi
  4008. fi
  4009. echo $ac_n "checking for dlsym""... $ac_c" 1>&6
  4010. echo "configure:4784: checking for dlsym" >&5
  4011. cat > conftest.$ac_ext <<EOF
  4012. #line 4787 "configure"
  4013. #include "confdefs.h"
  4014. /* System header to define __stub macros and hopefully few prototypes,
  4015. which can conflict with char dlsym(); below. */
  4016. #include <assert.h>
  4017. /* Override any gcc2 internal prototype to avoid an error. */
  4018. /* We use char because int might match the return type of a gcc2
  4019. builtin and then its argument prototype would still apply. */
  4020. char dlsym();
  4021. int main() {
  4022. /* The GNU C library defines this for functions which it implements
  4023. to always fail with ENOSYS. Some functions are actually named
  4024. something starting with __ and the normal name is an alias. */
  4025. #if defined (__stub_dlsym) || defined (__stub___dlsym)
  4026. choke me
  4027. #else
  4028. dlsym();
  4029. #endif
  4030. ; return 0; }
  4031. EOF
  4032. if { (eval echo configure:4810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4033. rm -rf conftest*
  4034. eval "ac_cv_func_dlsym=yes"
  4035. else
  4036. echo "configure: failed program was:" >&5
  4037. cat conftest.$ac_ext >&5
  4038. rm -rf conftest*
  4039. eval "ac_cv_func_dlsym=no"
  4040. fi
  4041. rm -f conftest*
  4042. if eval "test \"`echo '$ac_cv_func_'dlsym`\" = yes"; then
  4043. echo "$ac_t""yes" 1>&6
  4044. DLLIB=
  4045. else
  4046. echo "$ac_t""no" 1>&6
  4047. echo $ac_n "checking for dlsym in -ldl""... $ac_c" 1>&6
  4048. echo "configure:4828: checking for dlsym in -ldl" >&5
  4049. ac_lib_var=`echo dl'_'dlsym | sed 'y%./+-%__p_%'`
  4050. ac_save_LIBS="$LIBS"
  4051. LIBS="-ldl $LIBS"
  4052. cat > conftest.$ac_ext <<EOF
  4053. #line 4834 "configure"
  4054. #include "confdefs.h"
  4055. /* Override any gcc2 internal prototype to avoid an error. */
  4056. /* We use char because int might match the return type of a gcc2
  4057. builtin and then its argument prototype would still apply. */
  4058. char dlsym();
  4059. int main() {
  4060. dlsym()
  4061. ; return 0; }
  4062. EOF
  4063. if { (eval echo configure:4845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4064. rm -rf conftest*
  4065. eval "ac_cv_lib_$ac_lib_var=yes"
  4066. else
  4067. echo "configure: failed program was:" >&5
  4068. cat conftest.$ac_ext >&5
  4069. rm -rf conftest*
  4070. eval "ac_cv_lib_$ac_lib_var=no"
  4071. fi
  4072. rm -f conftest*
  4073. LIBS="$ac_save_LIBS"
  4074. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4075. echo "$ac_t""yes" 1>&6
  4076. DLLIB=-ldl
  4077. else
  4078. echo "$ac_t""no" 1>&6
  4079. DLLIB=
  4080. fi
  4081. fi
  4082. echo $ac_n "checking for iconv""... $ac_c" 1>&6
  4083. echo "configure:4872: checking for iconv" >&5
  4084. cat > conftest.$ac_ext <<EOF
  4085. #line 4875 "configure"
  4086. #include "confdefs.h"
  4087. /* System header to define __stub macros and hopefully few prototypes,
  4088. which can conflict with char iconv(); below. */
  4089. #include <assert.h>
  4090. /* Override any gcc2 internal prototype to avoid an error. */
  4091. /* We use char because int might match the return type of a gcc2
  4092. builtin and then its argument prototype would still apply. */
  4093. char iconv();
  4094. int main() {
  4095. /* The GNU C library defines this for functions which it implements
  4096. to always fail with ENOSYS. Some functions are actually named
  4097. something starting with __ and the normal name is an alias. */
  4098. #if defined (__stub_iconv) || defined (__stub___iconv)
  4099. choke me
  4100. #else
  4101. iconv();
  4102. #endif
  4103. ; return 0; }
  4104. EOF
  4105. if { (eval echo configure:4898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4106. rm -rf conftest*
  4107. eval "ac_cv_func_iconv=yes"
  4108. else
  4109. echo "configure: failed program was:" >&5
  4110. cat conftest.$ac_ext >&5
  4111. rm -rf conftest*
  4112. eval "ac_cv_func_iconv=no"
  4113. fi
  4114. rm -f conftest*
  4115. if eval "test \"`echo '$ac_cv_func_'iconv`\" = yes"; then
  4116. echo "$ac_t""yes" 1>&6
  4117. ICONVLIB=
  4118. else
  4119. echo "$ac_t""no" 1>&6
  4120. echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
  4121. echo "configure:4916: checking for iconv in -liconv" >&5
  4122. ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
  4123. ac_save_LIBS="$LIBS"
  4124. LIBS="-liconv $LIBS"
  4125. cat > conftest.$ac_ext <<EOF
  4126. #line 4922 "configure"
  4127. #include "confdefs.h"
  4128. /* Override any gcc2 internal prototype to avoid an error. */
  4129. /* We use char because int might match the return type of a gcc2
  4130. builtin and then its argument prototype would still apply. */
  4131. char iconv();
  4132. int main() {
  4133. iconv()
  4134. ; return 0; }
  4135. EOF
  4136. if { (eval echo configure:4933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4137. rm -rf conftest*
  4138. eval "ac_cv_lib_$ac_lib_var=yes"
  4139. else
  4140. echo "configure: failed program was:" >&5
  4141. cat conftest.$ac_ext >&5
  4142. rm -rf conftest*
  4143. eval "ac_cv_lib_$ac_lib_var=no"
  4144. fi
  4145. rm -f conftest*
  4146. LIBS="$ac_save_LIBS"
  4147. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4148. echo "$ac_t""yes" 1>&6
  4149. ICONVLIB=-liconv
  4150. else
  4151. echo "$ac_t""no" 1>&6
  4152. echo $ac_n "checking for iconv in -lgiconv""... $ac_c" 1>&6
  4153. echo "configure:4952: checking for iconv in -lgiconv" >&5
  4154. ac_lib_var=`echo giconv'_'iconv | sed 'y%./+-%__p_%'`
  4155. ac_save_LIBS="$LIBS"
  4156. LIBS="-lgiconv $LIBS"
  4157. cat > conftest.$ac_ext <<EOF
  4158. #line 4958 "configure"
  4159. #include "confdefs.h"
  4160. /* Override any gcc2 internal prototype to avoid an error. */
  4161. /* We use char because int might match the return type of a gcc2
  4162. builtin and then its argument prototype would still apply. */
  4163. char iconv();
  4164. int main() {
  4165. iconv()
  4166. ; return 0; }
  4167. EOF
  4168. if { (eval echo configure:4969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4169. rm -rf conftest*
  4170. eval "ac_cv_lib_$ac_lib_var=yes"
  4171. else
  4172. echo "configure: failed program was:" >&5
  4173. cat conftest.$ac_ext >&5
  4174. rm -rf conftest*
  4175. eval "ac_cv_lib_$ac_lib_var=no"
  4176. fi
  4177. rm -f conftest*
  4178. LIBS="$ac_save_LIBS"
  4179. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4180. echo "$ac_t""yes" 1>&6
  4181. ICONVLIB=-lgiconv
  4182. else
  4183. echo "$ac_t""no" 1>&6
  4184. echo $ac_n "checking for libiconv""... $ac_c" 1>&6
  4185. echo "configure:4988: checking for libiconv" >&5
  4186. cat > conftest.$ac_ext <<EOF
  4187. #line 4991 "configure"
  4188. #include "confdefs.h"
  4189. /* System header to define __stub macros and hopefully few prototypes,
  4190. which can conflict with char libiconv(); below. */
  4191. #include <assert.h>
  4192. /* Override any gcc2 internal prototype to avoid an error. */
  4193. /* We use char because int might match the return type of a gcc2
  4194. builtin and then its argument prototype would still apply. */
  4195. char libiconv();
  4196. int main() {
  4197. /* The GNU C library defines this for functions which it implements
  4198. to always fail with ENOSYS. Some functions are actually named
  4199. something starting with __ and the normal name is an alias. */
  4200. #if defined (__stub_libiconv) || defined (__stub___libiconv)
  4201. choke me
  4202. #else
  4203. libiconv();
  4204. #endif
  4205. ; return 0; }
  4206. EOF
  4207. if { (eval echo configure:5014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4208. rm -rf conftest*
  4209. eval "ac_cv_func_libiconv=yes"
  4210. else
  4211. echo "configure: failed program was:" >&5
  4212. cat conftest.$ac_ext >&5
  4213. rm -rf conftest*
  4214. eval "ac_cv_func_libiconv=no"
  4215. fi
  4216. rm -f conftest*
  4217. if eval "test \"`echo '$ac_cv_func_'libiconv`\" = yes"; then
  4218. echo "$ac_t""yes" 1>&6
  4219. ICONVLIB=
  4220. else
  4221. echo "$ac_t""no" 1>&6
  4222. echo $ac_n "checking for libiconv in -liconv""... $ac_c" 1>&6
  4223. echo "configure:5032: checking for libiconv in -liconv" >&5
  4224. ac_lib_var=`echo iconv'_'libiconv | sed 'y%./+-%__p_%'`
  4225. ac_save_LIBS="$LIBS"
  4226. LIBS="-liconv $LIBS"
  4227. cat > conftest.$ac_ext <<EOF
  4228. #line 5038 "configure"
  4229. #include "confdefs.h"
  4230. /* Override any gcc2 internal prototype to avoid an error. */
  4231. /* We use char because int might match the return type of a gcc2
  4232. builtin and then its argument prototype would still apply. */
  4233. char libiconv();
  4234. int main() {
  4235. libiconv()
  4236. ; return 0; }
  4237. EOF
  4238. if { (eval echo configure:5049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4239. rm -rf conftest*
  4240. eval "ac_cv_lib_$ac_lib_var=yes"
  4241. else
  4242. echo "configure: failed program was:" >&5
  4243. cat conftest.$ac_ext >&5
  4244. rm -rf conftest*
  4245. eval "ac_cv_lib_$ac_lib_var=no"
  4246. fi
  4247. rm -f conftest*
  4248. LIBS="$ac_save_LIBS"
  4249. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4250. echo "$ac_t""yes" 1>&6
  4251. ICONVLIB=-liconv
  4252. else
  4253. echo "$ac_t""no" 1>&6
  4254. echo $ac_n "checking for libiconv in -lgiconv""... $ac_c" 1>&6
  4255. echo "configure:5068: checking for libiconv in -lgiconv" >&5
  4256. ac_lib_var=`echo giconv'_'libiconv | sed 'y%./+-%__p_%'`
  4257. ac_save_LIBS="$LIBS"
  4258. LIBS="-lgiconv $LIBS"
  4259. cat > conftest.$ac_ext <<EOF
  4260. #line 5074 "configure"
  4261. #include "confdefs.h"
  4262. /* Override any gcc2 internal prototype to avoid an error. */
  4263. /* We use char because int might match the return type of a gcc2
  4264. builtin and then its argument prototype would still apply. */
  4265. char libiconv();
  4266. int main() {
  4267. libiconv()
  4268. ; return 0; }
  4269. EOF
  4270. if { (eval echo configure:5085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4271. rm -rf conftest*
  4272. eval "ac_cv_lib_$ac_lib_var=yes"
  4273. else
  4274. echo "configure: failed program was:" >&5
  4275. cat conftest.$ac_ext >&5
  4276. rm -rf conftest*
  4277. eval "ac_cv_lib_$ac_lib_var=no"
  4278. fi
  4279. rm -f conftest*
  4280. LIBS="$ac_save_LIBS"
  4281. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4282. echo "$ac_t""yes" 1>&6
  4283. ICONVLIB=-lgiconv
  4284. else
  4285. echo "$ac_t""no" 1>&6
  4286. echo "configure: warning: *** Unable to locate iconv() function." 1>&2
  4287. ICONVLIB=
  4288. fi
  4289. fi
  4290. fi
  4291. fi
  4292. fi
  4293. fi
  4294. have_socket=1
  4295. echo $ac_n "checking for socket""... $ac_c" 1>&6
  4296. echo "configure:5122: checking for socket" >&5
  4297. cat > conftest.$ac_ext <<EOF
  4298. #line 5125 "configure"
  4299. #include "confdefs.h"
  4300. /* System header to define __stub macros and hopefully few prototypes,
  4301. which can conflict with char socket(); below. */
  4302. #include <assert.h>
  4303. /* Override any gcc2 internal prototype to avoid an error. */
  4304. /* We use char because int might match the return type of a gcc2
  4305. builtin and then its argument prototype would still apply. */
  4306. char socket();
  4307. int main() {
  4308. /* The GNU C library defines this for functions which it implements
  4309. to always fail with ENOSYS. Some functions are actually named
  4310. something starting with __ and the normal name is an alias. */
  4311. #if defined (__stub_socket) || defined (__stub___socket)
  4312. choke me
  4313. #else
  4314. socket();
  4315. #endif
  4316. ; return 0; }
  4317. EOF
  4318. if { (eval echo configure:5148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4319. rm -rf conftest*
  4320. eval "ac_cv_func_socket=yes"
  4321. else
  4322. echo "configure: failed program was:" >&5
  4323. cat conftest.$ac_ext >&5
  4324. rm -rf conftest*
  4325. eval "ac_cv_func_socket=no"
  4326. fi
  4327. rm -f conftest*
  4328. if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
  4329. echo "$ac_t""yes" 1>&6
  4330. SOCKLIB=
  4331. else
  4332. echo "$ac_t""no" 1>&6
  4333. echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
  4334. echo "configure:5166: checking for socket in -lsocket" >&5
  4335. ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
  4336. ac_save_LIBS="$LIBS"
  4337. LIBS="-lsocket $LIBS"
  4338. cat > conftest.$ac_ext <<EOF
  4339. #line 5172 "configure"
  4340. #include "confdefs.h"
  4341. /* Override any gcc2 internal prototype to avoid an error. */
  4342. /* We use char because int might match the return type of a gcc2
  4343. builtin and then its argument prototype would still apply. */
  4344. char socket();
  4345. int main() {
  4346. socket()
  4347. ; return 0; }
  4348. EOF
  4349. if { (eval echo configure:5183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4350. rm -rf conftest*
  4351. eval "ac_cv_lib_$ac_lib_var=yes"
  4352. else
  4353. echo "configure: failed program was:" >&5
  4354. cat conftest.$ac_ext >&5
  4355. rm -rf conftest*
  4356. eval "ac_cv_lib_$ac_lib_var=no"
  4357. fi
  4358. rm -f conftest*
  4359. LIBS="$ac_save_LIBS"
  4360. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4361. echo "$ac_t""yes" 1>&6
  4362. SOCKLIB=-lsocket
  4363. else
  4364. echo "$ac_t""no" 1>&6
  4365. have_socket=0
  4366. echo "configure: warning: *** Unable to locate socket() function." 1>&2
  4367. fi
  4368. fi
  4369. if test "$have_socket" = 1 ; then
  4370. HAVE_SOCKET=1
  4371. cat >> confdefs.h <<\EOF
  4372. #define HAVE_SOCKET 1
  4373. EOF
  4374. else
  4375. HAVE_SOCKET=
  4376. fi
  4377. # Mandatory zlib dependency
  4378. ZLIBLIBPATH=
  4379. ZLIBINCPATH=
  4380. ZLIB=
  4381. # With zlib includes directory
  4382. echo $ac_n "checking for location of zlib includes""... $ac_c" 1>&6
  4383. echo "configure:5231: checking for location of zlib includes" >&5
  4384. case "$with_zlib_includes" in
  4385. y | ye | yes | n | no)
  4386. { echo "configure: error: *** You must supply a directory to --with-zlib-includes." 1>&2; exit 1; }
  4387. ;;
  4388. esac
  4389. echo "$ac_t""$with_zlib_includes" 1>&6
  4390. if test -n "$with_zlib_includes" ; then
  4391. for dir in $with_zlib_includes; do
  4392. if test -d "$dir"; then
  4393. ZLIBINCPATH="$ZLIBINCPATH -I$dir"
  4394. else
  4395. { echo "configure: error: *** zlib includes directory $dir does not exist." 1>&2; exit 1; }
  4396. fi
  4397. done
  4398. fi
  4399. ac_save_cppflags="$CPPFLAGS"
  4400. CPPFLAGS="$ZLIBINCPATH $CPPFLAGS"
  4401. for ac_hdr in zlib.h
  4402. do
  4403. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4404. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4405. echo "configure:5257: checking for $ac_hdr" >&5
  4406. cat > conftest.$ac_ext <<EOF
  4407. #line 5260 "configure"
  4408. #include "confdefs.h"
  4409. #include <$ac_hdr>
  4410. EOF
  4411. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4412. { (eval echo configure:5265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4413. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4414. if test -z "$ac_err"; then
  4415. rm -rf conftest*
  4416. eval "ac_cv_header_$ac_safe=yes"
  4417. else
  4418. echo "$ac_err" >&5
  4419. echo "configure: failed program was:" >&5
  4420. cat conftest.$ac_ext >&5
  4421. rm -rf conftest*
  4422. eval "ac_cv_header_$ac_safe=no"
  4423. fi
  4424. rm -f conftest*
  4425. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4426. echo "$ac_t""yes" 1>&6
  4427. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4428. cat >> confdefs.h <<EOF
  4429. #define $ac_tr_hdr 1
  4430. EOF
  4431. else
  4432. echo "$ac_t""no" 1>&6
  4433. { echo "configure: error: *** Unable to locate zlib includes." 1>&2; exit 1; }
  4434. fi
  4435. done
  4436. CPPFLAGS=$ac_save_cppflags
  4437. # With zlib library directory
  4438. echo $ac_n "checking for location of zlib library""... $ac_c" 1>&6
  4439. echo "configure:5299: checking for location of zlib library" >&5
  4440. case "$with_zlib_libs" in
  4441. y | ye | yes | n | no)
  4442. { echo "configure: error: *** You must supply a directory to --with-zlib-libs." 1>&2; exit 1; }
  4443. ;;
  4444. esac
  4445. echo "$ac_t""$with_zlib_libs" 1>&6
  4446. if test -n "$with_zlib_libs"; then
  4447. for dir in $with_zlib_libs; do
  4448. if test -d "$dir"; then
  4449. ZLIBLIBPATH="$ZLIBLIBPATH -L$dir"
  4450. else
  4451. { echo "configure: error: *** zlib library directory $dir does not exist." 1>&2; exit 1; }
  4452. fi
  4453. done
  4454. fi
  4455. ac_save_ldflags="$LDFLAGS"
  4456. LDFLAGS="$ZLIBLIBPATH $LDFLAGS"
  4457. echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
  4458. echo "configure:5324: checking for deflate in -lz" >&5
  4459. ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
  4460. ac_save_LIBS="$LIBS"
  4461. LIBS="-lz $LIBS"
  4462. cat > conftest.$ac_ext <<EOF
  4463. #line 5330 "configure"
  4464. #include "confdefs.h"
  4465. /* Override any gcc2 internal prototype to avoid an error. */
  4466. /* We use char because int might match the return type of a gcc2
  4467. builtin and then its argument prototype would still apply. */
  4468. char deflate();
  4469. int main() {
  4470. deflate()
  4471. ; return 0; }
  4472. EOF
  4473. if { (eval echo configure:5341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4474. rm -rf conftest*
  4475. eval "ac_cv_lib_$ac_lib_var=yes"
  4476. else
  4477. echo "configure: failed program was:" >&5
  4478. cat conftest.$ac_ext >&5
  4479. rm -rf conftest*
  4480. eval "ac_cv_lib_$ac_lib_var=no"
  4481. fi
  4482. rm -f conftest*
  4483. LIBS="$ac_save_LIBS"
  4484. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4485. echo "$ac_t""yes" 1>&6
  4486. ZLIB="$ZLIB -lz "
  4487. else
  4488. echo "$ac_t""no" 1>&6
  4489. LDFLAGS=${ac_save_ldflags}
  4490. { echo "configure: error: *** Unable to locate zlib library." 1>&2; exit 1; }
  4491. fi
  4492. LDFLAGS=${ac_save_ldflags}
  4493. #
  4494. # Done checking zlib
  4495. # Mandatory PROJ dependency
  4496. PROJINC=
  4497. PROJLIB=
  4498. PROJSHARE=
  4499. # With PROJ includes directory
  4500. echo $ac_n "checking for location of External PROJ.4 includes""... $ac_c" 1>&6
  4501. echo "configure:5389: checking for location of External PROJ.4 includes" >&5
  4502. case "$with_proj_includes" in
  4503. y | ye | yes | n | no)
  4504. { echo "configure: error: *** You must supply a directory to --with-proj-includes." 1>&2; exit 1; }
  4505. ;;
  4506. esac
  4507. echo "$ac_t""$with_proj_includes" 1>&6
  4508. if test -n "$with_proj_includes" ; then
  4509. for dir in $with_proj_includes; do
  4510. if test -d "$dir"; then
  4511. PROJINC="$PROJINC -I$dir"
  4512. else
  4513. { echo "configure: error: *** External PROJ.4 includes directory $dir does not exist." 1>&2; exit 1; }
  4514. fi
  4515. done
  4516. fi
  4517. ac_save_cppflags="$CPPFLAGS"
  4518. CPPFLAGS="$PROJINC $CPPFLAGS"
  4519. for ac_hdr in proj_api.h
  4520. do
  4521. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4522. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4523. echo "configure:5415: checking for $ac_hdr" >&5
  4524. cat > conftest.$ac_ext <<EOF
  4525. #line 5418 "configure"
  4526. #include "confdefs.h"
  4527. #include <$ac_hdr>
  4528. EOF
  4529. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4530. { (eval echo configure:5423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4531. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4532. if test -z "$ac_err"; then
  4533. rm -rf conftest*
  4534. eval "ac_cv_header_$ac_safe=yes"
  4535. else
  4536. echo "$ac_err" >&5
  4537. echo "configure: failed program was:" >&5
  4538. cat conftest.$ac_ext >&5
  4539. rm -rf conftest*
  4540. eval "ac_cv_header_$ac_safe=no"
  4541. fi
  4542. rm -f conftest*
  4543. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4544. echo "$ac_t""yes" 1>&6
  4545. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4546. cat >> confdefs.h <<EOF
  4547. #define $ac_tr_hdr 1
  4548. EOF
  4549. else
  4550. echo "$ac_t""no" 1>&6
  4551. { echo "configure: error: *** Unable to locate External PROJ.4 includes." 1>&2; exit 1; }
  4552. fi
  4553. done
  4554. CPPFLAGS=$ac_save_cppflags
  4555. # PROJ version check
  4556. if test "$cross_compiling" = yes; then
  4557. echo "configure: warning: *** Cannot check PROJ.4 version (cross-compiling)." 1>&2
  4558. else
  4559. echo $ac_n "checking External PROJ.4 version""... $ac_c" 1>&6
  4560. echo "configure:5460: checking External PROJ.4 version" >&5
  4561. ac_save_cppflags="$CPPFLAGS"
  4562. CPPFLAGS="$PROJINC $CPPFLAGS"
  4563. if test "$cross_compiling" = yes; then
  4564. proj_ver=0
  4565. echo "$ac_t""unknown (cross-compiling)" 1>&6
  4566. else
  4567. cat > conftest.$ac_ext <<EOF
  4568. #line 5468 "configure"
  4569. #include "confdefs.h"
  4570. #include <stdio.h>
  4571. #include <proj_api.h>
  4572. int main(void) {
  4573. FILE *fp = fopen("conftestdata","w");
  4574. fprintf(fp, "%d", PJ_VERSION);
  4575. return 0;
  4576. }
  4577. EOF
  4578. if { (eval echo configure:5480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4579. then
  4580. proj_ver=`cat conftestdata`
  4581. echo "$ac_t""$proj_ver" 1>&6
  4582. else
  4583. echo "configure: failed program was:" >&5
  4584. cat conftest.$ac_ext >&5
  4585. rm -fr conftest*
  4586. { echo "configure: error: *** Could not determine External PROJ.4 version." 1>&2; exit 1; }
  4587. fi
  4588. rm -fr conftest*
  4589. fi
  4590. CPPFLAGS=$ac_save_cppflags
  4591. if test `expr "$proj_ver" \< 446` = 1 ; then
  4592. { echo "configure: error: *** PROJ.4.4.6 or later is required." 1>&2; exit 1; }
  4593. fi
  4594. fi
  4595. # With PROJ library directory
  4596. echo $ac_n "checking for location of External PROJ.4 library""... $ac_c" 1>&6
  4597. echo "configure:5505: checking for location of External PROJ.4 library" >&5
  4598. case "$with_proj_libs" in
  4599. y | ye | yes | n | no)
  4600. { echo "configure: error: *** You must supply a directory to --with-proj-libs." 1>&2; exit 1; }
  4601. ;;
  4602. esac
  4603. echo "$ac_t""$with_proj_libs" 1>&6
  4604. if test -n "$with_proj_libs"; then
  4605. for dir in $with_proj_libs; do
  4606. if test -d "$dir"; then
  4607. PROJLIB="$PROJLIB -L$dir"
  4608. else
  4609. { echo "configure: error: *** External PROJ.4 library directory $dir does not exist." 1>&2; exit 1; }
  4610. fi
  4611. done
  4612. fi
  4613. ac_save_ldflags="$LDFLAGS"
  4614. LDFLAGS="$PROJLIB $LDFLAGS"
  4615. echo $ac_n "checking for pj_get_def in -lproj""... $ac_c" 1>&6
  4616. echo "configure:5530: checking for pj_get_def in -lproj" >&5
  4617. ac_lib_var=`echo proj'_'pj_get_def | sed 'y%./+-%__p_%'`
  4618. ac_save_LIBS="$LIBS"
  4619. LIBS="-lproj $LIBS"
  4620. cat > conftest.$ac_ext <<EOF
  4621. #line 5536 "configure"
  4622. #include "confdefs.h"
  4623. /* Override any gcc2 internal prototype to avoid an error. */
  4624. /* We use char because int might match the return type of a gcc2
  4625. builtin and then its argument prototype would still apply. */
  4626. char pj_get_def();
  4627. int main() {
  4628. pj_get_def()
  4629. ; return 0; }
  4630. EOF
  4631. if { (eval echo configure:5547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4632. rm -rf conftest*
  4633. eval "ac_cv_lib_$ac_lib_var=yes"
  4634. else
  4635. echo "configure: failed program was:" >&5
  4636. cat conftest.$ac_ext >&5
  4637. rm -rf conftest*
  4638. eval "ac_cv_lib_$ac_lib_var=no"
  4639. fi
  4640. rm -f conftest*
  4641. LIBS="$ac_save_LIBS"
  4642. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4643. echo "$ac_t""yes" 1>&6
  4644. PROJLIB="$PROJLIB -lproj "
  4645. else
  4646. echo "$ac_t""no" 1>&6
  4647. LDFLAGS=${ac_save_ldflags}
  4648. { echo "configure: error: *** Unable to locate External PROJ.4 library." 1>&2; exit 1; }
  4649. fi
  4650. LDFLAGS=${ac_save_ldflags}
  4651. # With PROJ share directory
  4652. echo $ac_n "checking for location of External PROJ.4 data files""... $ac_c" 1>&6
  4653. echo "configure:5581: checking for location of External PROJ.4 data files" >&5
  4654. case "$with_proj_share" in
  4655. y | ye | yes | n | no)
  4656. { echo "configure: error: *** You must supply a directory to --with-proj-share." 1>&2; exit 1; }
  4657. ;;
  4658. esac
  4659. echo "$ac_t""$with_proj_share" 1>&6
  4660. if test -n "$with_proj_share" ; then
  4661. if test -d "$with_proj_share"; then
  4662. PROJSHARE="$with_proj_share"
  4663. else
  4664. { echo "configure: error: *** External PROJ.4 data directory $dir does not exist." 1>&2; exit 1; }
  4665. fi
  4666. fi
  4667. if test -z "$PROJSHARE" ; then
  4668. echo "configure: warning: *** External PROJ.4 directory not specified; default will be used" 1>&2
  4669. PROJSHARE=/usr/local/share/proj
  4670. fi
  4671. # LOC_CHECK_SHARE does not work when cross compiling
  4672. if test "$cross_compiling" = "yes" ; then
  4673. echo $ac_n "checking for epsg""... $ac_c" 1>&6
  4674. echo "configure:5605: checking for epsg" >&5
  4675. echo "$ac_t""unknown (cross-compiling)" 1>&6
  4676. else
  4677. ac_safe=`echo "$PROJSHARE/epsg" | sed 'y%./+-%__p_%'`
  4678. echo $ac_n "checking for $PROJSHARE/epsg""... $ac_c" 1>&6
  4679. echo "configure:5612: checking for $PROJSHARE/epsg" >&5
  4680. if test "$cross_compiling" = yes; then
  4681. { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
  4682. else
  4683. if test -r $PROJSHARE/epsg; then
  4684. eval "ac_cv_file_$ac_safe=yes"
  4685. else
  4686. eval "ac_cv_file_$ac_safe=no"
  4687. fi
  4688. fi
  4689. if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
  4690. echo "$ac_t""yes" 1>&6
  4691. :
  4692. else
  4693. echo "$ac_t""no" 1>&6
  4694. echo "configure: warning: *** Unable to locate PROJ data files." 1>&2
  4695. fi
  4696. fi
  4697. # nad2bin needs to be in path for installing datum gridshift files
  4698. # Extract the first word of "nad2bin", so it can be a program name with args.
  4699. set dummy nad2bin; ac_word=$2
  4700. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  4701. echo "configure:5644: checking for $ac_word" >&5
  4702. case "$NAD2BIN" in
  4703. /*)
  4704. ac_cv_path_NAD2BIN="$NAD2BIN" # Let the user override the test with a path.
  4705. ;;
  4706. ?:/*)
  4707. ac_cv_path_NAD2BIN="$NAD2BIN" # Let the user override the test with a dos path.
  4708. ;;
  4709. *)
  4710. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  4711. ac_dummy="$PATH"
  4712. for ac_dir in $ac_dummy; do
  4713. test -z "$ac_dir" && ac_dir=.
  4714. if test -f $ac_dir/$ac_word; then
  4715. ac_cv_path_NAD2BIN="$ac_dir/$ac_word"
  4716. break
  4717. fi
  4718. done
  4719. IFS="$ac_save_ifs"
  4720. test -z "$ac_cv_path_NAD2BIN" && ac_cv_path_NAD2BIN="no"
  4721. ;;
  4722. esac
  4723. NAD2BIN="$ac_cv_path_NAD2BIN"
  4724. if test -n "$NAD2BIN"; then
  4725. echo "$ac_t""$NAD2BIN" 1>&6
  4726. else
  4727. echo "$ac_t""no" 1>&6
  4728. fi
  4729. if test "$NAD2BIN" = "no"; then
  4730. { echo "configure: error: *** Unable to locate nad2bin (needs to be in PATH)." 1>&2; exit 1; }
  4731. fi
  4732. # Done checking PROJ
  4733. # Enable regex option
  4734. echo $ac_n "checking whether to use regex""... $ac_c" 1>&6
  4735. echo "configure:5684: checking whether to use regex" >&5
  4736. echo "$ac_t"""$with_regex"" 1>&6
  4737. case "$with_regex" in
  4738. "no") USE_REGEX= ;;
  4739. "yes") USE_REGEX="1" ;;
  4740. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  4741. esac
  4742. REGEXINCPATH=
  4743. REGEXLIBPATH=
  4744. REGEXLIB=
  4745. if test -n "$USE_REGEX"; then
  4746. # With regex includes directory
  4747. echo $ac_n "checking for location of regex includes""... $ac_c" 1>&6
  4748. echo "configure:5704: checking for location of regex includes" >&5
  4749. case "$with_regex_includes" in
  4750. y | ye | yes | n | no)
  4751. { echo "configure: error: *** You must supply a directory to --with-regex-includes." 1>&2; exit 1; }
  4752. ;;
  4753. esac
  4754. echo "$ac_t""$with_regex_includes" 1>&6
  4755. if test -n "$with_regex_includes" ; then
  4756. for dir in $with_regex_includes; do
  4757. if test -d "$dir"; then
  4758. REGEXINCPATH="$REGEXINCPATH -I$dir"
  4759. else
  4760. { echo "configure: error: *** regex includes directory $dir does not exist." 1>&2; exit 1; }
  4761. fi
  4762. done
  4763. fi
  4764. ac_save_cppflags="$CPPFLAGS"
  4765. CPPFLAGS="$REGEXINCPATH $CPPFLAGS"
  4766. for ac_hdr in regex.h
  4767. do
  4768. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4769. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4770. echo "configure:5730: checking for $ac_hdr" >&5
  4771. cat > conftest.$ac_ext <<EOF
  4772. #line 5733 "configure"
  4773. #include "confdefs.h"
  4774. #include <$ac_hdr>
  4775. EOF
  4776. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4777. { (eval echo configure:5738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4778. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4779. if test -z "$ac_err"; then
  4780. rm -rf conftest*
  4781. eval "ac_cv_header_$ac_safe=yes"
  4782. else
  4783. echo "$ac_err" >&5
  4784. echo "configure: failed program was:" >&5
  4785. cat conftest.$ac_ext >&5
  4786. rm -rf conftest*
  4787. eval "ac_cv_header_$ac_safe=no"
  4788. fi
  4789. rm -f conftest*
  4790. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4791. echo "$ac_t""yes" 1>&6
  4792. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4793. cat >> confdefs.h <<EOF
  4794. #define $ac_tr_hdr 1
  4795. EOF
  4796. else
  4797. echo "$ac_t""no" 1>&6
  4798. { echo "configure: error: *** Unable to locate regex includes." 1>&2; exit 1; }
  4799. fi
  4800. done
  4801. CPPFLAGS=$ac_save_cppflags
  4802. # With regex library directory
  4803. echo $ac_n "checking for location of regex library""... $ac_c" 1>&6
  4804. echo "configure:5772: checking for location of regex library" >&5
  4805. case "$with_regex_libs" in
  4806. y | ye | yes | n | no)
  4807. { echo "configure: error: *** You must supply a directory to --with-regex-libs." 1>&2; exit 1; }
  4808. ;;
  4809. esac
  4810. echo "$ac_t""$with_regex_libs" 1>&6
  4811. if test -n "$with_regex_libs"; then
  4812. for dir in $with_regex_libs; do
  4813. if test -d "$dir"; then
  4814. REGEXLIBPATH="$REGEXLIBPATH -L$dir"
  4815. else
  4816. { echo "configure: error: *** regex library directory $dir does not exist." 1>&2; exit 1; }
  4817. fi
  4818. done
  4819. fi
  4820. ac_save_libs="$LIBS"
  4821. ac_save_ldflags="$LDFLAGS"
  4822. LIBS=" $LIBS"
  4823. LDFLAGS=" $LDFLAGS"
  4824. echo $ac_n "checking for regcomp""... $ac_c" 1>&6
  4825. echo "configure:5797: checking for regcomp" >&5
  4826. cat > conftest.$ac_ext <<EOF
  4827. #line 5800 "configure"
  4828. #include "confdefs.h"
  4829. /* System header to define __stub macros and hopefully few prototypes,
  4830. which can conflict with char regcomp(); below. */
  4831. #include <assert.h>
  4832. /* Override any gcc2 internal prototype to avoid an error. */
  4833. /* We use char because int might match the return type of a gcc2
  4834. builtin and then its argument prototype would still apply. */
  4835. char regcomp();
  4836. int main() {
  4837. /* The GNU C library defines this for functions which it implements
  4838. to always fail with ENOSYS. Some functions are actually named
  4839. something starting with __ and the normal name is an alias. */
  4840. #if defined (__stub_regcomp) || defined (__stub___regcomp)
  4841. choke me
  4842. #else
  4843. regcomp();
  4844. #endif
  4845. ; return 0; }
  4846. EOF
  4847. if { (eval echo configure:5823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4848. rm -rf conftest*
  4849. eval "ac_cv_func_regcomp=yes"
  4850. else
  4851. echo "configure: failed program was:" >&5
  4852. cat conftest.$ac_ext >&5
  4853. rm -rf conftest*
  4854. eval "ac_cv_func_regcomp=no"
  4855. fi
  4856. rm -f conftest*
  4857. if eval "test \"`echo '$ac_cv_func_'regcomp`\" = yes"; then
  4858. echo "$ac_t""yes" 1>&6
  4859. REGEXLIB="$REGEXLIB "
  4860. else
  4861. echo "$ac_t""no" 1>&6
  4862. ac_save_ldflags="$LDFLAGS"
  4863. LDFLAGS="$REGEXLIBPATH $LDFLAGS"
  4864. echo $ac_n "checking for regcomp in -lregex""... $ac_c" 1>&6
  4865. echo "configure:5850: checking for regcomp in -lregex" >&5
  4866. ac_lib_var=`echo regex'_'regcomp | sed 'y%./+-%__p_%'`
  4867. ac_save_LIBS="$LIBS"
  4868. LIBS="-lregex $LIBS"
  4869. cat > conftest.$ac_ext <<EOF
  4870. #line 5856 "configure"
  4871. #include "confdefs.h"
  4872. /* Override any gcc2 internal prototype to avoid an error. */
  4873. /* We use char because int might match the return type of a gcc2
  4874. builtin and then its argument prototype would still apply. */
  4875. char regcomp();
  4876. int main() {
  4877. regcomp()
  4878. ; return 0; }
  4879. EOF
  4880. if { (eval echo configure:5867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4881. rm -rf conftest*
  4882. eval "ac_cv_lib_$ac_lib_var=yes"
  4883. else
  4884. echo "configure: failed program was:" >&5
  4885. cat conftest.$ac_ext >&5
  4886. rm -rf conftest*
  4887. eval "ac_cv_lib_$ac_lib_var=no"
  4888. fi
  4889. rm -f conftest*
  4890. LIBS="$ac_save_LIBS"
  4891. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4892. echo "$ac_t""yes" 1>&6
  4893. REGEXLIB="$REGEXLIB -lregex "
  4894. else
  4895. echo "$ac_t""no" 1>&6
  4896. LDFLAGS=${ac_save_ldflags}
  4897. { echo "configure: error: *** Unable to locate regex library." 1>&2; exit 1; }
  4898. fi
  4899. LDFLAGS=${ac_save_ldflags}
  4900. fi
  4901. LIBS=${ac_save_libs}
  4902. LDFLAGS=${ac_save_ldflags}
  4903. fi # $USE_REGEX
  4904. # Done checking regex
  4905. # Enable Readline option
  4906. echo $ac_n "checking whether to use Readline""... $ac_c" 1>&6
  4907. echo "configure:5917: checking whether to use Readline" >&5
  4908. echo "$ac_t"""$with_readline"" 1>&6
  4909. case "$with_readline" in
  4910. "no") USE_READLINE= ;;
  4911. "yes") USE_READLINE="1" ;;
  4912. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  4913. esac
  4914. READLINEINCPATH=
  4915. READLINELIBPATH=
  4916. READLINELIB=
  4917. HISTORYLIB=
  4918. if test -n "$USE_READLINE"; then
  4919. # With Readline includes directory
  4920. echo $ac_n "checking for location of Readline includes""... $ac_c" 1>&6
  4921. echo "configure:5938: checking for location of Readline includes" >&5
  4922. case "$with_readline_includes" in
  4923. y | ye | yes | n | no)
  4924. { echo "configure: error: *** You must supply a directory to --with-readline-includes." 1>&2; exit 1; }
  4925. ;;
  4926. esac
  4927. echo "$ac_t""$with_readline_includes" 1>&6
  4928. if test -n "$with_readline_includes" ; then
  4929. for dir in $with_readline_includes; do
  4930. if test -d "$dir"; then
  4931. READLINEINCPATH="$READLINEINCPATH -I$dir"
  4932. else
  4933. { echo "configure: error: *** Readline includes directory $dir does not exist." 1>&2; exit 1; }
  4934. fi
  4935. done
  4936. fi
  4937. ac_save_cppflags="$CPPFLAGS"
  4938. CPPFLAGS="$READLINEINCPATH $CPPFLAGS"
  4939. for ac_hdr in readline/readline.h
  4940. do
  4941. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4942. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4943. echo "configure:5964: checking for $ac_hdr" >&5
  4944. cat > conftest.$ac_ext <<EOF
  4945. #line 5967 "configure"
  4946. #include "confdefs.h"
  4947. #include <$ac_hdr>
  4948. EOF
  4949. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4950. { (eval echo configure:5972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4951. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4952. if test -z "$ac_err"; then
  4953. rm -rf conftest*
  4954. eval "ac_cv_header_$ac_safe=yes"
  4955. else
  4956. echo "$ac_err" >&5
  4957. echo "configure: failed program was:" >&5
  4958. cat conftest.$ac_ext >&5
  4959. rm -rf conftest*
  4960. eval "ac_cv_header_$ac_safe=no"
  4961. fi
  4962. rm -f conftest*
  4963. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4964. echo "$ac_t""yes" 1>&6
  4965. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4966. cat >> confdefs.h <<EOF
  4967. #define $ac_tr_hdr 1
  4968. EOF
  4969. else
  4970. echo "$ac_t""no" 1>&6
  4971. { echo "configure: error: *** Unable to locate Readline includes." 1>&2; exit 1; }
  4972. fi
  4973. done
  4974. CPPFLAGS=$ac_save_cppflags
  4975. ac_save_cppflags="$CPPFLAGS"
  4976. CPPFLAGS="$READLINEINCPATH $CPPFLAGS"
  4977. for ac_hdr in readline/history.h
  4978. do
  4979. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4980. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4981. echo "configure:6008: checking for $ac_hdr" >&5
  4982. cat > conftest.$ac_ext <<EOF
  4983. #line 6011 "configure"
  4984. #include "confdefs.h"
  4985. #include <$ac_hdr>
  4986. EOF
  4987. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4988. { (eval echo configure:6016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4989. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4990. if test -z "$ac_err"; then
  4991. rm -rf conftest*
  4992. eval "ac_cv_header_$ac_safe=yes"
  4993. else
  4994. echo "$ac_err" >&5
  4995. echo "configure: failed program was:" >&5
  4996. cat conftest.$ac_ext >&5
  4997. rm -rf conftest*
  4998. eval "ac_cv_header_$ac_safe=no"
  4999. fi
  5000. rm -f conftest*
  5001. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5002. echo "$ac_t""yes" 1>&6
  5003. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5004. cat >> confdefs.h <<EOF
  5005. #define $ac_tr_hdr 1
  5006. EOF
  5007. else
  5008. echo "$ac_t""no" 1>&6
  5009. { echo "configure: error: *** Unable to locate Readline includes." 1>&2; exit 1; }
  5010. fi
  5011. done
  5012. CPPFLAGS=$ac_save_cppflags
  5013. # With Readline library directory
  5014. echo $ac_n "checking for location of Readline library""... $ac_c" 1>&6
  5015. echo "configure:6050: checking for location of Readline library" >&5
  5016. case "$with_readline_libs" in
  5017. y | ye | yes | n | no)
  5018. { echo "configure: error: *** You must supply a directory to --with-readline-libs." 1>&2; exit 1; }
  5019. ;;
  5020. esac
  5021. echo "$ac_t""$with_readline_libs" 1>&6
  5022. if test -n "$with_readline_libs"; then
  5023. for dir in $with_readline_libs; do
  5024. if test -d "$dir"; then
  5025. READLINELIBPATH="$READLINELIBPATH -L$dir"
  5026. else
  5027. { echo "configure: error: *** Readline library directory $dir does not exist." 1>&2; exit 1; }
  5028. fi
  5029. done
  5030. fi
  5031. ac_save_ldflags="$LDFLAGS"
  5032. LDFLAGS="$READLINELIBPATH $LDFLAGS"
  5033. echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
  5034. echo "configure:6075: checking for readline in -lreadline" >&5
  5035. ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
  5036. ac_save_LIBS="$LIBS"
  5037. LIBS="-lreadline $LIBS"
  5038. cat > conftest.$ac_ext <<EOF
  5039. #line 6081 "configure"
  5040. #include "confdefs.h"
  5041. /* Override any gcc2 internal prototype to avoid an error. */
  5042. /* We use char because int might match the return type of a gcc2
  5043. builtin and then its argument prototype would still apply. */
  5044. char readline();
  5045. int main() {
  5046. readline()
  5047. ; return 0; }
  5048. EOF
  5049. if { (eval echo configure:6092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5050. rm -rf conftest*
  5051. eval "ac_cv_lib_$ac_lib_var=yes"
  5052. else
  5053. echo "configure: failed program was:" >&5
  5054. cat conftest.$ac_ext >&5
  5055. rm -rf conftest*
  5056. eval "ac_cv_lib_$ac_lib_var=no"
  5057. fi
  5058. rm -f conftest*
  5059. LIBS="$ac_save_LIBS"
  5060. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5061. echo "$ac_t""yes" 1>&6
  5062. READLINELIB="$READLINELIB -lreadline "
  5063. else
  5064. echo "$ac_t""no" 1>&6
  5065. LDFLAGS=${ac_save_ldflags}
  5066. { echo "configure: error: *** Unable to locate Readline library." 1>&2; exit 1; }
  5067. fi
  5068. LDFLAGS=${ac_save_ldflags}
  5069. ac_save_ldflags="$LDFLAGS"
  5070. LDFLAGS="$READLINELIBPATH $LDFLAGS"
  5071. echo $ac_n "checking for add_history in -lhistory""... $ac_c" 1>&6
  5072. echo "configure:6127: checking for add_history in -lhistory" >&5
  5073. ac_lib_var=`echo history'_'add_history | sed 'y%./+-%__p_%'`
  5074. ac_save_LIBS="$LIBS"
  5075. LIBS="-lhistory $LIBS"
  5076. cat > conftest.$ac_ext <<EOF
  5077. #line 6133 "configure"
  5078. #include "confdefs.h"
  5079. /* Override any gcc2 internal prototype to avoid an error. */
  5080. /* We use char because int might match the return type of a gcc2
  5081. builtin and then its argument prototype would still apply. */
  5082. char add_history();
  5083. int main() {
  5084. add_history()
  5085. ; return 0; }
  5086. EOF
  5087. if { (eval echo configure:6144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5088. rm -rf conftest*
  5089. eval "ac_cv_lib_$ac_lib_var=yes"
  5090. else
  5091. echo "configure: failed program was:" >&5
  5092. cat conftest.$ac_ext >&5
  5093. rm -rf conftest*
  5094. eval "ac_cv_lib_$ac_lib_var=no"
  5095. fi
  5096. rm -f conftest*
  5097. LIBS="$ac_save_LIBS"
  5098. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5099. echo "$ac_t""yes" 1>&6
  5100. HISTORYLIB="$HISTORYLIB -lhistory "
  5101. else
  5102. echo "$ac_t""no" 1>&6
  5103. LDFLAGS=${ac_save_ldflags}
  5104. { echo "configure: error: *** Unable to locate History library." 1>&2; exit 1; }
  5105. fi
  5106. LDFLAGS=${ac_save_ldflags}
  5107. fi # $USE_READLINE
  5108. # Done checking Readline
  5109. # Enable JPEG option
  5110. echo $ac_n "checking whether to use JPEG""... $ac_c" 1>&6
  5111. echo "configure:6187: checking whether to use JPEG" >&5
  5112. echo "$ac_t"""$with_jpeg"" 1>&6
  5113. case "$with_jpeg" in
  5114. "no") USE_JPEG= ;;
  5115. "yes") USE_JPEG="1" ;;
  5116. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  5117. esac
  5118. JPEGINCPATH=
  5119. JPEGLIBPATH=
  5120. JPEGLIB=
  5121. if test -n "$USE_JPEG"; then
  5122. # With JPEG includes directory
  5123. echo $ac_n "checking for location of JPEG includes""... $ac_c" 1>&6
  5124. echo "configure:6207: checking for location of JPEG includes" >&5
  5125. case "$with_jpeg_includes" in
  5126. y | ye | yes | n | no)
  5127. { echo "configure: error: *** You must supply a directory to --with-jpeg-includes." 1>&2; exit 1; }
  5128. ;;
  5129. esac
  5130. echo "$ac_t""$with_jpeg_includes" 1>&6
  5131. if test -n "$with_jpeg_includes" ; then
  5132. for dir in $with_jpeg_includes; do
  5133. if test -d "$dir"; then
  5134. JPEGINCPATH="$JPEGINCPATH -I$dir"
  5135. else
  5136. { echo "configure: error: *** JPEG includes directory $dir does not exist." 1>&2; exit 1; }
  5137. fi
  5138. done
  5139. fi
  5140. ac_save_cppflags="$CPPFLAGS"
  5141. CPPFLAGS="$JPEGINCPATH $CPPFLAGS"
  5142. for ac_hdr in jpeglib.h
  5143. do
  5144. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5145. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5146. echo "configure:6233: checking for $ac_hdr" >&5
  5147. cat > conftest.$ac_ext <<EOF
  5148. #line 6236 "configure"
  5149. #include "confdefs.h"
  5150. #include <$ac_hdr>
  5151. EOF
  5152. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5153. { (eval echo configure:6241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5154. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5155. if test -z "$ac_err"; then
  5156. rm -rf conftest*
  5157. eval "ac_cv_header_$ac_safe=yes"
  5158. else
  5159. echo "$ac_err" >&5
  5160. echo "configure: failed program was:" >&5
  5161. cat conftest.$ac_ext >&5
  5162. rm -rf conftest*
  5163. eval "ac_cv_header_$ac_safe=no"
  5164. fi
  5165. rm -f conftest*
  5166. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5167. echo "$ac_t""yes" 1>&6
  5168. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5169. cat >> confdefs.h <<EOF
  5170. #define $ac_tr_hdr 1
  5171. EOF
  5172. else
  5173. echo "$ac_t""no" 1>&6
  5174. { echo "configure: error: *** Unable to locate JPEG includes." 1>&2; exit 1; }
  5175. fi
  5176. done
  5177. CPPFLAGS=$ac_save_cppflags
  5178. # With JPEG library directory
  5179. echo $ac_n "checking for location of JPEG library""... $ac_c" 1>&6
  5180. echo "configure:6275: checking for location of JPEG library" >&5
  5181. case "$with_jpeg_libs" in
  5182. y | ye | yes | n | no)
  5183. { echo "configure: error: *** You must supply a directory to --with-jpeg-libs." 1>&2; exit 1; }
  5184. ;;
  5185. esac
  5186. echo "$ac_t""$with_jpeg_libs" 1>&6
  5187. if test -n "$with_jpeg_libs"; then
  5188. for dir in $with_jpeg_libs; do
  5189. if test -d "$dir"; then
  5190. JPEGLIBPATH="$JPEGLIBPATH -L$dir"
  5191. else
  5192. { echo "configure: error: *** JPEG library directory $dir does not exist." 1>&2; exit 1; }
  5193. fi
  5194. done
  5195. fi
  5196. ac_save_ldflags="$LDFLAGS"
  5197. LDFLAGS="$JPEGLIBPATH $LDFLAGS"
  5198. echo $ac_n "checking for jpeg_start_compress in -ljpeg""... $ac_c" 1>&6
  5199. echo "configure:6302: checking for jpeg_start_compress in -ljpeg" >&5
  5200. ac_lib_var=`echo jpeg'_'jpeg_start_compress | sed 'y%./+-%__p_%'`
  5201. ac_save_LIBS="$LIBS"
  5202. LIBS="-ljpeg $LIBS"
  5203. cat > conftest.$ac_ext <<EOF
  5204. #line 6308 "configure"
  5205. #include "confdefs.h"
  5206. /* Override any gcc2 internal prototype to avoid an error. */
  5207. /* We use char because int might match the return type of a gcc2
  5208. builtin and then its argument prototype would still apply. */
  5209. char jpeg_start_compress();
  5210. int main() {
  5211. jpeg_start_compress()
  5212. ; return 0; }
  5213. EOF
  5214. if { (eval echo configure:6319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5215. rm -rf conftest*
  5216. eval "ac_cv_lib_$ac_lib_var=yes"
  5217. else
  5218. echo "configure: failed program was:" >&5
  5219. cat conftest.$ac_ext >&5
  5220. rm -rf conftest*
  5221. eval "ac_cv_lib_$ac_lib_var=no"
  5222. fi
  5223. rm -f conftest*
  5224. LIBS="$ac_save_LIBS"
  5225. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5226. echo "$ac_t""yes" 1>&6
  5227. JPEGLIB="$JPEGLIB -ljpeg "
  5228. else
  5229. echo "$ac_t""no" 1>&6
  5230. echo $ac_n "checking for jpeg_start_compress in -ljpeg""... $ac_c" 1>&6
  5231. echo "configure:6338: checking for jpeg_start_compress in -ljpeg" >&5
  5232. ac_lib_var=`echo jpeg'_'jpeg_start_compress | sed 'y%./+-%__p_%'`
  5233. ac_save_LIBS="$LIBS"
  5234. LIBS="-ljpeg $ZLIB $LIBS"
  5235. cat > conftest.$ac_ext <<EOF
  5236. #line 6344 "configure"
  5237. #include "confdefs.h"
  5238. /* Override any gcc2 internal prototype to avoid an error. */
  5239. /* We use char because int might match the return type of a gcc2
  5240. builtin and then its argument prototype would still apply. */
  5241. char jpeg_start_compress();
  5242. int main() {
  5243. jpeg_start_compress()
  5244. ; return 0; }
  5245. EOF
  5246. if { (eval echo configure:6355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5247. rm -rf conftest*
  5248. eval "ac_cv_lib_$ac_lib_var=yes"
  5249. else
  5250. echo "configure: failed program was:" >&5
  5251. cat conftest.$ac_ext >&5
  5252. rm -rf conftest*
  5253. eval "ac_cv_lib_$ac_lib_var=no"
  5254. fi
  5255. rm -f conftest*
  5256. LIBS="$ac_save_LIBS"
  5257. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5258. echo "$ac_t""yes" 1>&6
  5259. JPEGLIB="$JPEGLIB -ljpeg $ZLIB"
  5260. else
  5261. echo "$ac_t""no" 1>&6
  5262. LDFLAGS=${ac_save_ldflags}
  5263. { echo "configure: error: *** Unable to locate JPEG library." 1>&2; exit 1; }
  5264. fi
  5265. fi
  5266. LDFLAGS=${ac_save_ldflags}
  5267. fi # $USE_JPEG
  5268. # Done checking JPEG
  5269. # GDAL option
  5270. echo $ac_n "checking whether to use GDAL""... $ac_c" 1>&6
  5271. echo "configure:6404: checking whether to use GDAL" >&5
  5272. GDAL_LIBS=
  5273. GDAL_CFLAGS=
  5274. USE_GDAL=
  5275. USE_OGR=
  5276. if test "`basename xx/$with_gdal`" = "gdal-config" ; then
  5277. GDAL_CONFIG="$with_gdal"
  5278. fi
  5279. if test "$with_gdal" = "no" ; then
  5280. echo "$ac_t""no" 1>&6
  5281. else
  5282. echo "$ac_t""yes" 1>&6
  5283. # Extract the first word of "gdal-config", so it can be a program name with args.
  5284. set dummy gdal-config; ac_word=$2
  5285. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5286. echo "configure:6422: checking for $ac_word" >&5
  5287. case "$GDAL_CONFIG" in
  5288. /*)
  5289. ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a path.
  5290. ;;
  5291. ?:/*)
  5292. ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a dos path.
  5293. ;;
  5294. *)
  5295. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5296. ac_dummy="$PATH"
  5297. for ac_dir in $ac_dummy; do
  5298. test -z "$ac_dir" && ac_dir=.
  5299. if test -f $ac_dir/$ac_word; then
  5300. ac_cv_path_GDAL_CONFIG="$ac_dir/$ac_word"
  5301. break
  5302. fi
  5303. done
  5304. IFS="$ac_save_ifs"
  5305. test -z "$ac_cv_path_GDAL_CONFIG" && ac_cv_path_GDAL_CONFIG="no"
  5306. ;;
  5307. esac
  5308. GDAL_CONFIG="$ac_cv_path_GDAL_CONFIG"
  5309. if test -n "$GDAL_CONFIG"; then
  5310. echo "$ac_t""$GDAL_CONFIG" 1>&6
  5311. else
  5312. echo "$ac_t""no" 1>&6
  5313. fi
  5314. if test "$GDAL_CONFIG" = "no" ; then
  5315. { echo "configure: error: *** couldn't find gdal-config" 1>&2; exit 1; }
  5316. fi
  5317. if test "$GDAL_CONFIG" != "" ; then
  5318. GDAL_LIBS=`"$GDAL_CONFIG" --libs`
  5319. GDAL_DEP_LIBS=`"$GDAL_CONFIG" --dep-libs`
  5320. GDAL_CFLAGS=`"$GDAL_CONFIG" --cflags`
  5321. USE_GDAL=1
  5322. if test `"$GDAL_CONFIG" --ogr-enabled` = "yes" ; then
  5323. cat >> confdefs.h <<\EOF
  5324. #define HAVE_OGR 1
  5325. EOF
  5326. USE_OGR=1
  5327. fi
  5328. fi
  5329. GDAL=
  5330. ac_save_libs="$LIBS"
  5331. ac_save_cflags="$CFLAGS"
  5332. LIBS="$LIBS $GDAL_LIBS"
  5333. CFLAGS="$CFLAGS $GDAL_CFLAGS"
  5334. cat > conftest.$ac_ext <<EOF
  5335. #line 6477 "configure"
  5336. #include "confdefs.h"
  5337. #include <gdal.h>
  5338. int main() {
  5339. GDALOpen("foo", GA_ReadOnly);
  5340. ; return 0; }
  5341. EOF
  5342. if { (eval echo configure:6484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5343. :
  5344. else
  5345. echo "configure: failed program was:" >&5
  5346. cat conftest.$ac_ext >&5
  5347. rm -rf conftest*
  5348. LIBS="$LIBS $GDAL_DEP_LIBS"
  5349. cat > conftest.$ac_ext <<EOF
  5350. #line 6493 "configure"
  5351. #include "confdefs.h"
  5352. #include <gdal.h>
  5353. int main() {
  5354. GDALOpen("foo", GA_ReadOnly);
  5355. ; return 0; }
  5356. EOF
  5357. if { (eval echo configure:6500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5358. rm -rf conftest*
  5359. GDAL_LIBS="$GDAL_LIBS $GDAL_DEP_LIBS"
  5360. else
  5361. echo "configure: failed program was:" >&5
  5362. cat conftest.$ac_ext >&5
  5363. rm -rf conftest*
  5364. { echo "configure: error: *** Unable to locate GDAL library." 1>&2; exit 1; }
  5365. fi
  5366. rm -f conftest*
  5367. fi
  5368. rm -f conftest*
  5369. LIBS=${ac_save_libs}
  5370. CFLAGS=${ac_save_cflags}
  5371. cat >> confdefs.h <<\EOF
  5372. #define HAVE_GDAL 1
  5373. EOF
  5374. fi
  5375. # libLAS option
  5376. echo $ac_n "checking whether to use libLAS""... $ac_c" 1>&6
  5377. echo "configure:6532: checking whether to use libLAS" >&5
  5378. LIBLAS_LIBS=
  5379. LIBLAS_CFLAGS=
  5380. USE_LIBLAS=
  5381. if test "`basename xx/$with_liblas`" = "liblas-config" ; then
  5382. LIBLAS_CONFIG="$with_liblas"
  5383. fi
  5384. if test "$with_liblas" = "no" ; then
  5385. echo "$ac_t""no" 1>&6
  5386. else
  5387. echo "$ac_t""yes" 1>&6
  5388. # Extract the first word of "liblas-config", so it can be a program name with args.
  5389. set dummy liblas-config; ac_word=$2
  5390. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5391. echo "configure:6549: checking for $ac_word" >&5
  5392. case "$LIBLAS_CONFIG" in
  5393. /*)
  5394. ac_cv_path_LIBLAS_CONFIG="$LIBLAS_CONFIG" # Let the user override the test with a path.
  5395. ;;
  5396. ?:/*)
  5397. ac_cv_path_LIBLAS_CONFIG="$LIBLAS_CONFIG" # Let the user override the test with a dos path.
  5398. ;;
  5399. *)
  5400. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5401. ac_dummy="$PATH"
  5402. for ac_dir in $ac_dummy; do
  5403. test -z "$ac_dir" && ac_dir=.
  5404. if test -f $ac_dir/$ac_word; then
  5405. ac_cv_path_LIBLAS_CONFIG="$ac_dir/$ac_word"
  5406. break
  5407. fi
  5408. done
  5409. IFS="$ac_save_ifs"
  5410. test -z "$ac_cv_path_LIBLAS_CONFIG" && ac_cv_path_LIBLAS_CONFIG="no"
  5411. ;;
  5412. esac
  5413. LIBLAS_CONFIG="$ac_cv_path_LIBLAS_CONFIG"
  5414. if test -n "$LIBLAS_CONFIG"; then
  5415. echo "$ac_t""$LIBLAS_CONFIG" 1>&6
  5416. else
  5417. echo "$ac_t""no" 1>&6
  5418. fi
  5419. if test "$LIBLAS_CONFIG" = "no" ; then
  5420. { echo "configure: error: *** couldn't find liblas-config" 1>&2; exit 1; }
  5421. fi
  5422. if test "$LIBLAS_CONFIG" != "" ; then
  5423. LIBLAS_LIBS=`"$LIBLAS_CONFIG" --libs`
  5424. LIBLAS_CFLAGS=`"$LIBLAS_CONFIG" --cflags`
  5425. LIBLAS_INC=`"$LIBLAS_CONFIG" --includes`
  5426. USE_LIBLAS=1
  5427. fi
  5428. LIBLAS=
  5429. ac_save_libs="$LIBS"
  5430. ac_save_cflags="$CFLAGS"
  5431. LIBS="$LIBS $LIBLAS_LIBS"
  5432. CFLAGS="$CFLAGS $LIBLAS_CFLAGS"
  5433. cat > conftest.$ac_ext <<EOF
  5434. #line 6597 "configure"
  5435. #include "confdefs.h"
  5436. #include <liblas/capi/liblas.h>
  5437. int main() {
  5438. LASReader_Create("foo");
  5439. ; return 0; }
  5440. EOF
  5441. if { (eval echo configure:6604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5442. :
  5443. else
  5444. echo "configure: failed program was:" >&5
  5445. cat conftest.$ac_ext >&5
  5446. rm -rf conftest*
  5447. cat > conftest.$ac_ext <<EOF
  5448. #line 6612 "configure"
  5449. #include "confdefs.h"
  5450. #include <liblas/capi/liblas.h>
  5451. int main() {
  5452. LASReader_Create("foo");
  5453. ; return 0; }
  5454. EOF
  5455. if { (eval echo configure:6619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5456. rm -rf conftest*
  5457. LAS_LIBS="$LAS_LIBS"
  5458. else
  5459. echo "configure: failed program was:" >&5
  5460. cat conftest.$ac_ext >&5
  5461. rm -rf conftest*
  5462. { echo "configure: error: *** Unable to locate libLAS library." 1>&2; exit 1; }
  5463. fi
  5464. rm -f conftest*
  5465. fi
  5466. rm -f conftest*
  5467. LIBS=${ac_save_libs}
  5468. CFLAGS=${ac_save_cflags}
  5469. cat >> confdefs.h <<\EOF
  5470. #define HAVE_LIBLAS 1
  5471. EOF
  5472. fi
  5473. # GEOS option
  5474. echo $ac_n "checking whether to use GEOS""... $ac_c" 1>&6
  5475. echo "configure:6651: checking whether to use GEOS" >&5
  5476. GEOS_LIBS=
  5477. GGEOS_CFLAGS=
  5478. USE_GEOS=
  5479. # FIXME: "quote" $with_geos ?
  5480. if test "`basename xx/$with_geos`" = "geos-config" ; then
  5481. GEOS_CONFIG="$with_geos"
  5482. fi
  5483. if test "$with_geos" = "no" ; then
  5484. echo "$ac_t""no" 1>&6
  5485. else
  5486. echo "$ac_t""yes" 1>&6
  5487. # Extract the first word of "geos-config", so it can be a program name with args.
  5488. set dummy geos-config; ac_word=$2
  5489. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5490. echo "configure:6669: checking for $ac_word" >&5
  5491. case "$GEOS_CONFIG" in
  5492. /*)
  5493. ac_cv_path_GEOS_CONFIG="$GEOS_CONFIG" # Let the user override the test with a path.
  5494. ;;
  5495. ?:/*)
  5496. ac_cv_path_GEOS_CONFIG="$GEOS_CONFIG" # Let the user override the test with a dos path.
  5497. ;;
  5498. *)
  5499. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5500. ac_dummy="$PATH"
  5501. for ac_dir in $ac_dummy; do
  5502. test -z "$ac_dir" && ac_dir=.
  5503. if test -f $ac_dir/$ac_word; then
  5504. ac_cv_path_GEOS_CONFIG="$ac_dir/$ac_word"
  5505. break
  5506. fi
  5507. done
  5508. IFS="$ac_save_ifs"
  5509. test -z "$ac_cv_path_GEOS_CONFIG" && ac_cv_path_GEOS_CONFIG="no"
  5510. ;;
  5511. esac
  5512. GEOS_CONFIG="$ac_cv_path_GEOS_CONFIG"
  5513. if test -n "$GEOS_CONFIG"; then
  5514. echo "$ac_t""$GEOS_CONFIG" 1>&6
  5515. else
  5516. echo "$ac_t""no" 1>&6
  5517. fi
  5518. if test "$GEOS_CONFIG" = "no" ; then
  5519. { echo "configure: error: *** couldn't find geos-config" 1>&2; exit 1; }
  5520. fi
  5521. if test "$GEOS_CONFIG" != "" ; then
  5522. GEOS_LIBS=`"$GEOS_CONFIG" --libs`
  5523. GEOS_CFLAGS=`"$GEOS_CONFIG" --cflags`
  5524. USE_GEOS=1
  5525. fi
  5526. ac_save_cppflags="$CPPFLAGS"
  5527. CPPFLAGS="$GEOS_CFLAGS $CPPFLAGS"
  5528. for ac_hdr in geos_c.h
  5529. do
  5530. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5531. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5532. echo "configure:6717: checking for $ac_hdr" >&5
  5533. cat > conftest.$ac_ext <<EOF
  5534. #line 6720 "configure"
  5535. #include "confdefs.h"
  5536. #include <$ac_hdr>
  5537. EOF
  5538. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5539. { (eval echo configure:6725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5540. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5541. if test -z "$ac_err"; then
  5542. rm -rf conftest*
  5543. eval "ac_cv_header_$ac_safe=yes"
  5544. else
  5545. echo "$ac_err" >&5
  5546. echo "configure: failed program was:" >&5
  5547. cat conftest.$ac_ext >&5
  5548. rm -rf conftest*
  5549. eval "ac_cv_header_$ac_safe=no"
  5550. fi
  5551. rm -f conftest*
  5552. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5553. echo "$ac_t""yes" 1>&6
  5554. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5555. cat >> confdefs.h <<EOF
  5556. #define $ac_tr_hdr 1
  5557. EOF
  5558. else
  5559. echo "$ac_t""no" 1>&6
  5560. { echo "configure: error: *** Unable to locate GEOS includes." 1>&2; exit 1; }
  5561. fi
  5562. done
  5563. CPPFLAGS=$ac_save_cppflags
  5564. if test "$MINGW32" = yes ; then
  5565. ac_save_ldflags="$LDFLAGS"
  5566. LDFLAGS="$GEOS_LIBS $LDFLAGS"
  5567. echo $ac_n "checking for initGEOS in -lgeos_c_i""... $ac_c" 1>&6
  5568. echo "configure:6761: checking for initGEOS in -lgeos_c_i" >&5
  5569. ac_lib_var=`echo geos_c_i'_'initGEOS | sed 'y%./+-%__p_%'`
  5570. ac_save_LIBS="$LIBS"
  5571. LIBS="-lgeos_c_i $LIBS"
  5572. cat > conftest.$ac_ext <<EOF
  5573. #line 6767 "configure"
  5574. #include "confdefs.h"
  5575. /* Override any gcc2 internal prototype to avoid an error. */
  5576. /* We use char because int might match the return type of a gcc2
  5577. builtin and then its argument prototype would still apply. */
  5578. char initGEOS();
  5579. int main() {
  5580. initGEOS()
  5581. ; return 0; }
  5582. EOF
  5583. if { (eval echo configure:6778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5584. rm -rf conftest*
  5585. eval "ac_cv_lib_$ac_lib_var=yes"
  5586. else
  5587. echo "configure: failed program was:" >&5
  5588. cat conftest.$ac_ext >&5
  5589. rm -rf conftest*
  5590. eval "ac_cv_lib_$ac_lib_var=no"
  5591. fi
  5592. rm -f conftest*
  5593. LIBS="$ac_save_LIBS"
  5594. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5595. echo "$ac_t""yes" 1>&6
  5596. GEOS_LIBS="$GEOS_LIBS -lgeos_c_i "
  5597. else
  5598. echo "$ac_t""no" 1>&6
  5599. LDFLAGS=${ac_save_ldflags}
  5600. { echo "configure: error: *** Unable to locate GEOS library." 1>&2; exit 1; }
  5601. fi
  5602. LDFLAGS=${ac_save_ldflags}
  5603. else
  5604. ac_save_ldflags="$LDFLAGS"
  5605. LDFLAGS="$GEOS_LIBS $LDFLAGS"
  5606. echo $ac_n "checking for initGEOS in -lgeos_c""... $ac_c" 1>&6
  5607. echo "configure:6814: checking for initGEOS in -lgeos_c" >&5
  5608. ac_lib_var=`echo geos_c'_'initGEOS | sed 'y%./+-%__p_%'`
  5609. ac_save_LIBS="$LIBS"
  5610. LIBS="-lgeos_c $LIBS"
  5611. cat > conftest.$ac_ext <<EOF
  5612. #line 6820 "configure"
  5613. #include "confdefs.h"
  5614. /* Override any gcc2 internal prototype to avoid an error. */
  5615. /* We use char because int might match the return type of a gcc2
  5616. builtin and then its argument prototype would still apply. */
  5617. char initGEOS();
  5618. int main() {
  5619. initGEOS()
  5620. ; return 0; }
  5621. EOF
  5622. if { (eval echo configure:6831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5623. rm -rf conftest*
  5624. eval "ac_cv_lib_$ac_lib_var=yes"
  5625. else
  5626. echo "configure: failed program was:" >&5
  5627. cat conftest.$ac_ext >&5
  5628. rm -rf conftest*
  5629. eval "ac_cv_lib_$ac_lib_var=no"
  5630. fi
  5631. rm -f conftest*
  5632. LIBS="$ac_save_LIBS"
  5633. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5634. echo "$ac_t""yes" 1>&6
  5635. GEOS_LIBS="$GEOS_LIBS -lgeos_c "
  5636. else
  5637. echo "$ac_t""no" 1>&6
  5638. LDFLAGS=${ac_save_ldflags}
  5639. { echo "configure: error: *** Unable to locate GEOS library." 1>&2; exit 1; }
  5640. fi
  5641. LDFLAGS=${ac_save_ldflags}
  5642. fi
  5643. cat >> confdefs.h <<\EOF
  5644. #define HAVE_GEOS 1
  5645. EOF
  5646. fi
  5647. # Enable TIFF option
  5648. echo $ac_n "checking whether to use TIFF""... $ac_c" 1>&6
  5649. echo "configure:6875: checking whether to use TIFF" >&5
  5650. echo "$ac_t"""$with_tiff"" 1>&6
  5651. case "$with_tiff" in
  5652. "no") USE_TIFF= ;;
  5653. "yes") USE_TIFF="1" ;;
  5654. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  5655. esac
  5656. TIFF_INCLUDE_DIRS=
  5657. TIFF_LIBRARY_DIRS=
  5658. TIFFLIB=
  5659. if test -n "$USE_TIFF"; then
  5660. # With TIFF includes directory
  5661. echo $ac_n "checking for location of TIFF includes""... $ac_c" 1>&6
  5662. echo "configure:6895: checking for location of TIFF includes" >&5
  5663. case "$with_tiff_includes" in
  5664. y | ye | yes | n | no)
  5665. { echo "configure: error: *** You must supply a directory to --with-tiff-includes." 1>&2; exit 1; }
  5666. ;;
  5667. esac
  5668. echo "$ac_t""$with_tiff_includes" 1>&6
  5669. if test -n "$with_tiff_includes" ; then
  5670. for dir in $with_tiff_includes; do
  5671. if test -d "$dir"; then
  5672. TIFF_INCLUDE_DIRS="$TIFF_INCLUDE_DIRS -I$dir"
  5673. else
  5674. { echo "configure: error: *** TIFF includes directory $dir does not exist." 1>&2; exit 1; }
  5675. fi
  5676. done
  5677. fi
  5678. ac_save_cppflags="$CPPFLAGS"
  5679. CPPFLAGS="$TIFF_INCLUDE_DIRS $CPPFLAGS"
  5680. for ac_hdr in tiffio.h
  5681. do
  5682. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5683. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5684. echo "configure:6921: checking for $ac_hdr" >&5
  5685. cat > conftest.$ac_ext <<EOF
  5686. #line 6924 "configure"
  5687. #include "confdefs.h"
  5688. #include <$ac_hdr>
  5689. EOF
  5690. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5691. { (eval echo configure:6929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5692. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5693. if test -z "$ac_err"; then
  5694. rm -rf conftest*
  5695. eval "ac_cv_header_$ac_safe=yes"
  5696. else
  5697. echo "$ac_err" >&5
  5698. echo "configure: failed program was:" >&5
  5699. cat conftest.$ac_ext >&5
  5700. rm -rf conftest*
  5701. eval "ac_cv_header_$ac_safe=no"
  5702. fi
  5703. rm -f conftest*
  5704. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5705. echo "$ac_t""yes" 1>&6
  5706. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5707. cat >> confdefs.h <<EOF
  5708. #define $ac_tr_hdr 1
  5709. EOF
  5710. else
  5711. echo "$ac_t""no" 1>&6
  5712. { echo "configure: error: *** Unable to locate TIFF includes." 1>&2; exit 1; }
  5713. fi
  5714. done
  5715. CPPFLAGS=$ac_save_cppflags
  5716. # With TIFF library directory
  5717. echo $ac_n "checking for location of TIFF library""... $ac_c" 1>&6
  5718. echo "configure:6963: checking for location of TIFF library" >&5
  5719. case "$with_tiff_libs" in
  5720. y | ye | yes | n | no)
  5721. { echo "configure: error: *** You must supply a directory to --with-tiff-libs." 1>&2; exit 1; }
  5722. ;;
  5723. esac
  5724. echo "$ac_t""$with_tiff_libs" 1>&6
  5725. if test -n "$with_tiff_libs"; then
  5726. for dir in $with_tiff_libs; do
  5727. if test -d "$dir"; then
  5728. TIFF_LIBRARY_DIRS="$TIFF_LIBRARY_DIRS -L$dir"
  5729. else
  5730. { echo "configure: error: *** TIFF library directory $dir does not exist." 1>&2; exit 1; }
  5731. fi
  5732. done
  5733. fi
  5734. ac_save_ldflags="$LDFLAGS"
  5735. LDFLAGS="$TIFF_LIBRARY_DIRS $LDFLAGS"
  5736. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5737. echo "configure:6994: checking for TIFFOpen in -ltiff" >&5
  5738. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5739. ac_save_LIBS="$LIBS"
  5740. LIBS="-ltiff $LIBS"
  5741. cat > conftest.$ac_ext <<EOF
  5742. #line 7000 "configure"
  5743. #include "confdefs.h"
  5744. /* Override any gcc2 internal prototype to avoid an error. */
  5745. /* We use char because int might match the return type of a gcc2
  5746. builtin and then its argument prototype would still apply. */
  5747. char TIFFOpen();
  5748. int main() {
  5749. TIFFOpen()
  5750. ; return 0; }
  5751. EOF
  5752. if { (eval echo configure:7011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5753. rm -rf conftest*
  5754. eval "ac_cv_lib_$ac_lib_var=yes"
  5755. else
  5756. echo "configure: failed program was:" >&5
  5757. cat conftest.$ac_ext >&5
  5758. rm -rf conftest*
  5759. eval "ac_cv_lib_$ac_lib_var=no"
  5760. fi
  5761. rm -f conftest*
  5762. LIBS="$ac_save_LIBS"
  5763. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5764. echo "$ac_t""yes" 1>&6
  5765. TIFFLIB="$TIFFLIB -ltiff "
  5766. else
  5767. echo "$ac_t""no" 1>&6
  5768. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5769. echo "configure:7030: checking for TIFFOpen in -ltiff" >&5
  5770. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5771. ac_save_LIBS="$LIBS"
  5772. LIBS="-ltiff $MATHLIB $LIBS"
  5773. cat > conftest.$ac_ext <<EOF
  5774. #line 7036 "configure"
  5775. #include "confdefs.h"
  5776. /* Override any gcc2 internal prototype to avoid an error. */
  5777. /* We use char because int might match the return type of a gcc2
  5778. builtin and then its argument prototype would still apply. */
  5779. char TIFFOpen();
  5780. int main() {
  5781. TIFFOpen()
  5782. ; return 0; }
  5783. EOF
  5784. if { (eval echo configure:7047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5785. rm -rf conftest*
  5786. eval "ac_cv_lib_$ac_lib_var=yes"
  5787. else
  5788. echo "configure: failed program was:" >&5
  5789. cat conftest.$ac_ext >&5
  5790. rm -rf conftest*
  5791. eval "ac_cv_lib_$ac_lib_var=no"
  5792. fi
  5793. rm -f conftest*
  5794. LIBS="$ac_save_LIBS"
  5795. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5796. echo "$ac_t""yes" 1>&6
  5797. TIFFLIB="$TIFFLIB -ltiff $MATHLIB"
  5798. else
  5799. echo "$ac_t""no" 1>&6
  5800. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5801. echo "configure:7066: checking for TIFFOpen in -ltiff" >&5
  5802. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5803. ac_save_LIBS="$LIBS"
  5804. LIBS="-ltiff $ZLIB $LIBS"
  5805. cat > conftest.$ac_ext <<EOF
  5806. #line 7072 "configure"
  5807. #include "confdefs.h"
  5808. /* Override any gcc2 internal prototype to avoid an error. */
  5809. /* We use char because int might match the return type of a gcc2
  5810. builtin and then its argument prototype would still apply. */
  5811. char TIFFOpen();
  5812. int main() {
  5813. TIFFOpen()
  5814. ; return 0; }
  5815. EOF
  5816. if { (eval echo configure:7083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5817. rm -rf conftest*
  5818. eval "ac_cv_lib_$ac_lib_var=yes"
  5819. else
  5820. echo "configure: failed program was:" >&5
  5821. cat conftest.$ac_ext >&5
  5822. rm -rf conftest*
  5823. eval "ac_cv_lib_$ac_lib_var=no"
  5824. fi
  5825. rm -f conftest*
  5826. LIBS="$ac_save_LIBS"
  5827. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5828. echo "$ac_t""yes" 1>&6
  5829. TIFFLIB="$TIFFLIB -ltiff $ZLIB"
  5830. else
  5831. echo "$ac_t""no" 1>&6
  5832. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5833. echo "configure:7102: checking for TIFFOpen in -ltiff" >&5
  5834. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5835. ac_save_LIBS="$LIBS"
  5836. LIBS="-ltiff $ZLIB $MATHLIB $LIBS"
  5837. cat > conftest.$ac_ext <<EOF
  5838. #line 7108 "configure"
  5839. #include "confdefs.h"
  5840. /* Override any gcc2 internal prototype to avoid an error. */
  5841. /* We use char because int might match the return type of a gcc2
  5842. builtin and then its argument prototype would still apply. */
  5843. char TIFFOpen();
  5844. int main() {
  5845. TIFFOpen()
  5846. ; return 0; }
  5847. EOF
  5848. if { (eval echo configure:7119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5849. rm -rf conftest*
  5850. eval "ac_cv_lib_$ac_lib_var=yes"
  5851. else
  5852. echo "configure: failed program was:" >&5
  5853. cat conftest.$ac_ext >&5
  5854. rm -rf conftest*
  5855. eval "ac_cv_lib_$ac_lib_var=no"
  5856. fi
  5857. rm -f conftest*
  5858. LIBS="$ac_save_LIBS"
  5859. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5860. echo "$ac_t""yes" 1>&6
  5861. TIFFLIB="$TIFFLIB -ltiff $ZLIB $MATHLIB"
  5862. else
  5863. echo "$ac_t""no" 1>&6
  5864. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5865. echo "configure:7138: checking for TIFFOpen in -ltiff" >&5
  5866. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5867. ac_save_LIBS="$LIBS"
  5868. LIBS="-ltiff $JPEGLIBPATH $JPEGLIB $LIBS"
  5869. cat > conftest.$ac_ext <<EOF
  5870. #line 7144 "configure"
  5871. #include "confdefs.h"
  5872. /* Override any gcc2 internal prototype to avoid an error. */
  5873. /* We use char because int might match the return type of a gcc2
  5874. builtin and then its argument prototype would still apply. */
  5875. char TIFFOpen();
  5876. int main() {
  5877. TIFFOpen()
  5878. ; return 0; }
  5879. EOF
  5880. if { (eval echo configure:7155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5881. rm -rf conftest*
  5882. eval "ac_cv_lib_$ac_lib_var=yes"
  5883. else
  5884. echo "configure: failed program was:" >&5
  5885. cat conftest.$ac_ext >&5
  5886. rm -rf conftest*
  5887. eval "ac_cv_lib_$ac_lib_var=no"
  5888. fi
  5889. rm -f conftest*
  5890. LIBS="$ac_save_LIBS"
  5891. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5892. echo "$ac_t""yes" 1>&6
  5893. TIFFLIB="$TIFFLIB -ltiff $JPEGLIBPATH $JPEGLIB"
  5894. else
  5895. echo "$ac_t""no" 1>&6
  5896. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5897. echo "configure:7174: checking for TIFFOpen in -ltiff" >&5
  5898. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5899. ac_save_LIBS="$LIBS"
  5900. LIBS="-ltiff $JPEGLIBPATH $JPEGLIB $MATHLIB $LIBS"
  5901. cat > conftest.$ac_ext <<EOF
  5902. #line 7180 "configure"
  5903. #include "confdefs.h"
  5904. /* Override any gcc2 internal prototype to avoid an error. */
  5905. /* We use char because int might match the return type of a gcc2
  5906. builtin and then its argument prototype would still apply. */
  5907. char TIFFOpen();
  5908. int main() {
  5909. TIFFOpen()
  5910. ; return 0; }
  5911. EOF
  5912. if { (eval echo configure:7191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5913. rm -rf conftest*
  5914. eval "ac_cv_lib_$ac_lib_var=yes"
  5915. else
  5916. echo "configure: failed program was:" >&5
  5917. cat conftest.$ac_ext >&5
  5918. rm -rf conftest*
  5919. eval "ac_cv_lib_$ac_lib_var=no"
  5920. fi
  5921. rm -f conftest*
  5922. LIBS="$ac_save_LIBS"
  5923. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5924. echo "$ac_t""yes" 1>&6
  5925. TIFFLIB="$TIFFLIB -ltiff $JPEGLIBPATH $JPEGLIB $MATHLIB"
  5926. else
  5927. echo "$ac_t""no" 1>&6
  5928. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5929. echo "configure:7210: checking for TIFFOpen in -ltiff" >&5
  5930. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5931. ac_save_LIBS="$LIBS"
  5932. LIBS="-ltiff $JPEGLIBPATH $JPEGLIB $ZLIB $LIBS"
  5933. cat > conftest.$ac_ext <<EOF
  5934. #line 7216 "configure"
  5935. #include "confdefs.h"
  5936. /* Override any gcc2 internal prototype to avoid an error. */
  5937. /* We use char because int might match the return type of a gcc2
  5938. builtin and then its argument prototype would still apply. */
  5939. char TIFFOpen();
  5940. int main() {
  5941. TIFFOpen()
  5942. ; return 0; }
  5943. EOF
  5944. if { (eval echo configure:7227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5945. rm -rf conftest*
  5946. eval "ac_cv_lib_$ac_lib_var=yes"
  5947. else
  5948. echo "configure: failed program was:" >&5
  5949. cat conftest.$ac_ext >&5
  5950. rm -rf conftest*
  5951. eval "ac_cv_lib_$ac_lib_var=no"
  5952. fi
  5953. rm -f conftest*
  5954. LIBS="$ac_save_LIBS"
  5955. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5956. echo "$ac_t""yes" 1>&6
  5957. TIFFLIB="$TIFFLIB -ltiff $JPEGLIBPATH $JPEGLIB $ZLIB"
  5958. else
  5959. echo "$ac_t""no" 1>&6
  5960. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5961. echo "configure:7246: checking for TIFFOpen in -ltiff" >&5
  5962. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5963. ac_save_LIBS="$LIBS"
  5964. LIBS="-ltiff $JPEGLIBPATH $JPEGLIB $ZLIB $MATHLIB $LIBS"
  5965. cat > conftest.$ac_ext <<EOF
  5966. #line 7252 "configure"
  5967. #include "confdefs.h"
  5968. /* Override any gcc2 internal prototype to avoid an error. */
  5969. /* We use char because int might match the return type of a gcc2
  5970. builtin and then its argument prototype would still apply. */
  5971. char TIFFOpen();
  5972. int main() {
  5973. TIFFOpen()
  5974. ; return 0; }
  5975. EOF
  5976. if { (eval echo configure:7263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5977. rm -rf conftest*
  5978. eval "ac_cv_lib_$ac_lib_var=yes"
  5979. else
  5980. echo "configure: failed program was:" >&5
  5981. cat conftest.$ac_ext >&5
  5982. rm -rf conftest*
  5983. eval "ac_cv_lib_$ac_lib_var=no"
  5984. fi
  5985. rm -f conftest*
  5986. LIBS="$ac_save_LIBS"
  5987. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5988. echo "$ac_t""yes" 1>&6
  5989. TIFFLIB="$TIFFLIB -ltiff $JPEGLIBPATH $JPEGLIB $ZLIB $MATHLIB"
  5990. else
  5991. echo "$ac_t""no" 1>&6
  5992. LDFLAGS=${ac_save_ldflags}
  5993. { echo "configure: error: *** Unable to locate TIFF library." 1>&2; exit 1; }
  5994. fi
  5995. fi
  5996. fi
  5997. fi
  5998. fi
  5999. fi
  6000. fi
  6001. fi
  6002. LDFLAGS=${ac_save_ldflags}
  6003. fi # $USE_TIFF
  6004. # Done checking TIFF
  6005. # Enable PNG option
  6006. echo $ac_n "checking whether to use PNG""... $ac_c" 1>&6
  6007. echo "configure:7361: checking whether to use PNG" >&5
  6008. echo "$ac_t"""$with_png"" 1>&6
  6009. case "$with_png" in
  6010. "no") USE_PNG= ;;
  6011. "yes") USE_PNG="1" ;;
  6012. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6013. esac
  6014. PNGINC=
  6015. PNGLIB=
  6016. if test -n "$USE_PNG"; then
  6017. # With PNG includes directory
  6018. echo $ac_n "checking for location of PNG includes""... $ac_c" 1>&6
  6019. echo "configure:7380: checking for location of PNG includes" >&5
  6020. case "$with_png_includes" in
  6021. y | ye | yes | n | no)
  6022. { echo "configure: error: *** You must supply a directory to --with-png-includes." 1>&2; exit 1; }
  6023. ;;
  6024. esac
  6025. echo "$ac_t""$with_png_includes" 1>&6
  6026. if test -n "$with_png_includes" ; then
  6027. for dir in $with_png_includes; do
  6028. if test -d "$dir"; then
  6029. PNGINC="$PNGINC -I$dir"
  6030. else
  6031. { echo "configure: error: *** PNG includes directory $dir does not exist." 1>&2; exit 1; }
  6032. fi
  6033. done
  6034. fi
  6035. ac_save_cppflags="$CPPFLAGS"
  6036. CPPFLAGS="$PNGINC $CPPFLAGS"
  6037. for ac_hdr in png.h
  6038. do
  6039. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6040. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6041. echo "configure:7406: checking for $ac_hdr" >&5
  6042. cat > conftest.$ac_ext <<EOF
  6043. #line 7409 "configure"
  6044. #include "confdefs.h"
  6045. #include <$ac_hdr>
  6046. EOF
  6047. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6048. { (eval echo configure:7414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6049. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6050. if test -z "$ac_err"; then
  6051. rm -rf conftest*
  6052. eval "ac_cv_header_$ac_safe=yes"
  6053. else
  6054. echo "$ac_err" >&5
  6055. echo "configure: failed program was:" >&5
  6056. cat conftest.$ac_ext >&5
  6057. rm -rf conftest*
  6058. eval "ac_cv_header_$ac_safe=no"
  6059. fi
  6060. rm -f conftest*
  6061. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6062. echo "$ac_t""yes" 1>&6
  6063. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6064. cat >> confdefs.h <<EOF
  6065. #define $ac_tr_hdr 1
  6066. EOF
  6067. else
  6068. echo "$ac_t""no" 1>&6
  6069. { echo "configure: error: *** Unable to locate PNG includes." 1>&2; exit 1; }
  6070. fi
  6071. done
  6072. CPPFLAGS=$ac_save_cppflags
  6073. # With PNG library directory
  6074. echo $ac_n "checking for location of PNG library""... $ac_c" 1>&6
  6075. echo "configure:7448: checking for location of PNG library" >&5
  6076. case "$with_png_libs" in
  6077. y | ye | yes | n | no)
  6078. { echo "configure: error: *** You must supply a directory to --with-png-libs." 1>&2; exit 1; }
  6079. ;;
  6080. esac
  6081. echo "$ac_t""$with_png_libs" 1>&6
  6082. if test -n "$with_png_libs"; then
  6083. for dir in $with_png_libs; do
  6084. if test -d "$dir"; then
  6085. PNGLIB="$PNGLIB -L$dir"
  6086. else
  6087. { echo "configure: error: *** PNG library directory $dir does not exist." 1>&2; exit 1; }
  6088. fi
  6089. done
  6090. fi
  6091. ac_save_ldflags="$LDFLAGS"
  6092. LDFLAGS="$PNGLIB $LDFLAGS"
  6093. echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
  6094. echo "configure:7473: checking for png_read_image in -lpng" >&5
  6095. ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
  6096. ac_save_LIBS="$LIBS"
  6097. LIBS="-lpng $ZLIB $MATHLIB $LIBS"
  6098. cat > conftest.$ac_ext <<EOF
  6099. #line 7479 "configure"
  6100. #include "confdefs.h"
  6101. /* Override any gcc2 internal prototype to avoid an error. */
  6102. /* We use char because int might match the return type of a gcc2
  6103. builtin and then its argument prototype would still apply. */
  6104. char png_read_image();
  6105. int main() {
  6106. png_read_image()
  6107. ; return 0; }
  6108. EOF
  6109. if { (eval echo configure:7490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6110. rm -rf conftest*
  6111. eval "ac_cv_lib_$ac_lib_var=yes"
  6112. else
  6113. echo "configure: failed program was:" >&5
  6114. cat conftest.$ac_ext >&5
  6115. rm -rf conftest*
  6116. eval "ac_cv_lib_$ac_lib_var=no"
  6117. fi
  6118. rm -f conftest*
  6119. LIBS="$ac_save_LIBS"
  6120. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6121. echo "$ac_t""yes" 1>&6
  6122. PNGLIB="$PNGLIB -lpng $ZLIB $MATHLIB"
  6123. else
  6124. echo "$ac_t""no" 1>&6
  6125. LDFLAGS=${ac_save_ldflags}
  6126. { echo "configure: error: *** Unable to locate PNG library." 1>&2; exit 1; }
  6127. fi
  6128. LDFLAGS=${ac_save_ldflags}
  6129. fi # $USE_PNG
  6130. # Done checking PNG
  6131. # Enable PostgreSQL option
  6132. echo $ac_n "checking whether to use PostgreSQL""... $ac_c" 1>&6
  6133. echo "configure:7532: checking whether to use PostgreSQL" >&5
  6134. echo "$ac_t"""$with_postgres"" 1>&6
  6135. case "$with_postgres" in
  6136. "no") USE_POSTGRES= ;;
  6137. "yes") USE_POSTGRES="1" ;;
  6138. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6139. esac
  6140. if test -n "$USE_POSTGRES"; then
  6141. cat >> confdefs.h <<\EOF
  6142. #define HAVE_POSTGRES 1
  6143. EOF
  6144. fi # $USE_POSTGRES
  6145. PQINCPATH=
  6146. PQLIBPATH=
  6147. PQLIB=
  6148. if test -n "$USE_POSTGRES"; then
  6149. # With PostgreSQL includes directory
  6150. echo $ac_n "checking for location of PostgreSQL includes""... $ac_c" 1>&6
  6151. echo "configure:7559: checking for location of PostgreSQL includes" >&5
  6152. case "$with_postgres_includes" in
  6153. y | ye | yes | n | no)
  6154. { echo "configure: error: *** You must supply a directory to --with-postgres-includes." 1>&2; exit 1; }
  6155. ;;
  6156. esac
  6157. echo "$ac_t""$with_postgres_includes" 1>&6
  6158. if test -n "$with_postgres_includes" ; then
  6159. for dir in $with_postgres_includes; do
  6160. if test -d "$dir"; then
  6161. PQINCPATH="$PQINCPATH -I$dir"
  6162. else
  6163. { echo "configure: error: *** PostgreSQL includes directory $dir does not exist." 1>&2; exit 1; }
  6164. fi
  6165. done
  6166. fi
  6167. ac_save_cppflags="$CPPFLAGS"
  6168. CPPFLAGS="$PQINCPATH $CPPFLAGS"
  6169. for ac_hdr in libpq-fe.h
  6170. do
  6171. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6172. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6173. echo "configure:7585: checking for $ac_hdr" >&5
  6174. cat > conftest.$ac_ext <<EOF
  6175. #line 7588 "configure"
  6176. #include "confdefs.h"
  6177. #include <$ac_hdr>
  6178. EOF
  6179. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6180. { (eval echo configure:7593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6181. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6182. if test -z "$ac_err"; then
  6183. rm -rf conftest*
  6184. eval "ac_cv_header_$ac_safe=yes"
  6185. else
  6186. echo "$ac_err" >&5
  6187. echo "configure: failed program was:" >&5
  6188. cat conftest.$ac_ext >&5
  6189. rm -rf conftest*
  6190. eval "ac_cv_header_$ac_safe=no"
  6191. fi
  6192. rm -f conftest*
  6193. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6194. echo "$ac_t""yes" 1>&6
  6195. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6196. cat >> confdefs.h <<EOF
  6197. #define $ac_tr_hdr 1
  6198. EOF
  6199. else
  6200. echo "$ac_t""no" 1>&6
  6201. { echo "configure: error: *** Unable to locate PostgreSQL includes." 1>&2; exit 1; }
  6202. fi
  6203. done
  6204. CPPFLAGS=$ac_save_cppflags
  6205. fi # $USE_POSTGRES
  6206. if test -n "$USE_POSTGRES"; then
  6207. # With PostgreSQL library directory
  6208. echo $ac_n "checking for location of PostgreSQL library""... $ac_c" 1>&6
  6209. echo "configure:7631: checking for location of PostgreSQL library" >&5
  6210. case "$with_postgres_libs" in
  6211. y | ye | yes | n | no)
  6212. { echo "configure: error: *** You must supply a directory to --with-postgres-libs." 1>&2; exit 1; }
  6213. ;;
  6214. esac
  6215. echo "$ac_t""$with_postgres_libs" 1>&6
  6216. if test -n "$with_postgres_libs"; then
  6217. for dir in $with_postgres_libs; do
  6218. if test -d "$dir"; then
  6219. PQLIBPATH="$PQLIBPATH -L$dir"
  6220. else
  6221. { echo "configure: error: *** PostgreSQL library directory $dir does not exist." 1>&2; exit 1; }
  6222. fi
  6223. done
  6224. fi
  6225. ac_save_ldflags="$LDFLAGS"
  6226. LDFLAGS="$PQLIBPATH $LDFLAGS"
  6227. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6228. echo "configure:7660: checking for PQsetdbLogin in -lpq" >&5
  6229. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6230. ac_save_LIBS="$LIBS"
  6231. LIBS="-lpq $LIBS"
  6232. cat > conftest.$ac_ext <<EOF
  6233. #line 7666 "configure"
  6234. #include "confdefs.h"
  6235. /* Override any gcc2 internal prototype to avoid an error. */
  6236. /* We use char because int might match the return type of a gcc2
  6237. builtin and then its argument prototype would still apply. */
  6238. char PQsetdbLogin();
  6239. int main() {
  6240. PQsetdbLogin()
  6241. ; return 0; }
  6242. EOF
  6243. if { (eval echo configure:7677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6244. rm -rf conftest*
  6245. eval "ac_cv_lib_$ac_lib_var=yes"
  6246. else
  6247. echo "configure: failed program was:" >&5
  6248. cat conftest.$ac_ext >&5
  6249. rm -rf conftest*
  6250. eval "ac_cv_lib_$ac_lib_var=no"
  6251. fi
  6252. rm -f conftest*
  6253. LIBS="$ac_save_LIBS"
  6254. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6255. echo "$ac_t""yes" 1>&6
  6256. PQLIB="$PQLIB -lpq "
  6257. else
  6258. echo "$ac_t""no" 1>&6
  6259. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6260. echo "configure:7696: checking for PQsetdbLogin in -lpq" >&5
  6261. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6262. ac_save_LIBS="$LIBS"
  6263. LIBS="-lpq -lssl -lcrypto $LIBS"
  6264. cat > conftest.$ac_ext <<EOF
  6265. #line 7702 "configure"
  6266. #include "confdefs.h"
  6267. /* Override any gcc2 internal prototype to avoid an error. */
  6268. /* We use char because int might match the return type of a gcc2
  6269. builtin and then its argument prototype would still apply. */
  6270. char PQsetdbLogin();
  6271. int main() {
  6272. PQsetdbLogin()
  6273. ; return 0; }
  6274. EOF
  6275. if { (eval echo configure:7713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6276. rm -rf conftest*
  6277. eval "ac_cv_lib_$ac_lib_var=yes"
  6278. else
  6279. echo "configure: failed program was:" >&5
  6280. cat conftest.$ac_ext >&5
  6281. rm -rf conftest*
  6282. eval "ac_cv_lib_$ac_lib_var=no"
  6283. fi
  6284. rm -f conftest*
  6285. LIBS="$ac_save_LIBS"
  6286. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6287. echo "$ac_t""yes" 1>&6
  6288. PQLIB="$PQLIB -lpq -lssl -lcrypto"
  6289. else
  6290. echo "$ac_t""no" 1>&6
  6291. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6292. echo "configure:7732: checking for PQsetdbLogin in -lpq" >&5
  6293. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6294. ac_save_LIBS="$LIBS"
  6295. LIBS="-lpq -lcrypt $LIBS"
  6296. cat > conftest.$ac_ext <<EOF
  6297. #line 7738 "configure"
  6298. #include "confdefs.h"
  6299. /* Override any gcc2 internal prototype to avoid an error. */
  6300. /* We use char because int might match the return type of a gcc2
  6301. builtin and then its argument prototype would still apply. */
  6302. char PQsetdbLogin();
  6303. int main() {
  6304. PQsetdbLogin()
  6305. ; return 0; }
  6306. EOF
  6307. if { (eval echo configure:7749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6308. rm -rf conftest*
  6309. eval "ac_cv_lib_$ac_lib_var=yes"
  6310. else
  6311. echo "configure: failed program was:" >&5
  6312. cat conftest.$ac_ext >&5
  6313. rm -rf conftest*
  6314. eval "ac_cv_lib_$ac_lib_var=no"
  6315. fi
  6316. rm -f conftest*
  6317. LIBS="$ac_save_LIBS"
  6318. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6319. echo "$ac_t""yes" 1>&6
  6320. PQLIB="$PQLIB -lpq -lcrypt"
  6321. else
  6322. echo "$ac_t""no" 1>&6
  6323. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6324. echo "configure:7768: checking for PQsetdbLogin in -lpq" >&5
  6325. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6326. ac_save_LIBS="$LIBS"
  6327. LIBS="-lpq -lcrypt -lssl -lcrypto $LIBS"
  6328. cat > conftest.$ac_ext <<EOF
  6329. #line 7774 "configure"
  6330. #include "confdefs.h"
  6331. /* Override any gcc2 internal prototype to avoid an error. */
  6332. /* We use char because int might match the return type of a gcc2
  6333. builtin and then its argument prototype would still apply. */
  6334. char PQsetdbLogin();
  6335. int main() {
  6336. PQsetdbLogin()
  6337. ; return 0; }
  6338. EOF
  6339. if { (eval echo configure:7785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6340. rm -rf conftest*
  6341. eval "ac_cv_lib_$ac_lib_var=yes"
  6342. else
  6343. echo "configure: failed program was:" >&5
  6344. cat conftest.$ac_ext >&5
  6345. rm -rf conftest*
  6346. eval "ac_cv_lib_$ac_lib_var=no"
  6347. fi
  6348. rm -f conftest*
  6349. LIBS="$ac_save_LIBS"
  6350. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6351. echo "$ac_t""yes" 1>&6
  6352. PQLIB="$PQLIB -lpq -lcrypt -lssl -lcrypto"
  6353. else
  6354. echo "$ac_t""no" 1>&6
  6355. LDFLAGS=${ac_save_ldflags}
  6356. { echo "configure: error: *** Unable to locate PostgreSQL library." 1>&2; exit 1; }
  6357. fi
  6358. fi
  6359. fi
  6360. fi
  6361. LDFLAGS=${ac_save_ldflags}
  6362. ac_save_ldflags="$LDFLAGS"
  6363. LDFLAGS="$LDFLAGS $PQLIBPATH"
  6364. echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
  6365. echo "configure:7842: checking for PQcmdTuples in -lpq" >&5
  6366. ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
  6367. ac_save_LIBS="$LIBS"
  6368. LIBS="-lpq $LIBS"
  6369. cat > conftest.$ac_ext <<EOF
  6370. #line 7848 "configure"
  6371. #include "confdefs.h"
  6372. /* Override any gcc2 internal prototype to avoid an error. */
  6373. /* We use char because int might match the return type of a gcc2
  6374. builtin and then its argument prototype would still apply. */
  6375. char PQcmdTuples();
  6376. int main() {
  6377. PQcmdTuples()
  6378. ; return 0; }
  6379. EOF
  6380. if { (eval echo configure:7859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6381. rm -rf conftest*
  6382. eval "ac_cv_lib_$ac_lib_var=yes"
  6383. else
  6384. echo "configure: failed program was:" >&5
  6385. cat conftest.$ac_ext >&5
  6386. rm -rf conftest*
  6387. eval "ac_cv_lib_$ac_lib_var=no"
  6388. fi
  6389. rm -f conftest*
  6390. LIBS="$ac_save_LIBS"
  6391. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6392. echo "$ac_t""yes" 1>&6
  6393. cat >> confdefs.h <<\EOF
  6394. #define HAVE_PQCMDTUPLES 1
  6395. EOF
  6396. else
  6397. echo "$ac_t""no" 1>&6
  6398. echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
  6399. echo "configure:7881: checking for PQcmdTuples in -lpq" >&5
  6400. ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
  6401. ac_save_LIBS="$LIBS"
  6402. LIBS="-lpq -lcrypt $LIBS"
  6403. cat > conftest.$ac_ext <<EOF
  6404. #line 7887 "configure"
  6405. #include "confdefs.h"
  6406. /* Override any gcc2 internal prototype to avoid an error. */
  6407. /* We use char because int might match the return type of a gcc2
  6408. builtin and then its argument prototype would still apply. */
  6409. char PQcmdTuples();
  6410. int main() {
  6411. PQcmdTuples()
  6412. ; return 0; }
  6413. EOF
  6414. if { (eval echo configure:7898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6415. rm -rf conftest*
  6416. eval "ac_cv_lib_$ac_lib_var=yes"
  6417. else
  6418. echo "configure: failed program was:" >&5
  6419. cat conftest.$ac_ext >&5
  6420. rm -rf conftest*
  6421. eval "ac_cv_lib_$ac_lib_var=no"
  6422. fi
  6423. rm -f conftest*
  6424. LIBS="$ac_save_LIBS"
  6425. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6426. echo "$ac_t""yes" 1>&6
  6427. cat >> confdefs.h <<\EOF
  6428. #define HAVE_PQCMDTUPLES 1
  6429. EOF
  6430. else
  6431. echo "$ac_t""no" 1>&6
  6432. fi
  6433. fi
  6434. LDFLAGS="${ac_save_ldflags}"
  6435. fi # $USE_POSTGRES
  6436. # Done checking PostgreSQL
  6437. # Enable MySQL option
  6438. echo $ac_n "checking whether to use MySQL""... $ac_c" 1>&6
  6439. echo "configure:7941: checking whether to use MySQL" >&5
  6440. echo "$ac_t"""$with_mysql"" 1>&6
  6441. case "$with_mysql" in
  6442. "no") USE_MYSQL= ;;
  6443. "yes") USE_MYSQL="1" ;;
  6444. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6445. esac
  6446. MYSQLINCPATH=
  6447. MYSQLLIBPATH=
  6448. MYSQLLIB=
  6449. if test -n "$USE_MYSQL"; then
  6450. # With MySQL includes directory
  6451. echo $ac_n "checking for location of MySQL includes""... $ac_c" 1>&6
  6452. echo "configure:7961: checking for location of MySQL includes" >&5
  6453. case "$with_mysql_includes" in
  6454. y | ye | yes | n | no)
  6455. { echo "configure: error: *** You must supply a directory to --with-mysql-includes." 1>&2; exit 1; }
  6456. ;;
  6457. esac
  6458. echo "$ac_t""$with_mysql_includes" 1>&6
  6459. if test -n "$with_mysql_includes" ; then
  6460. for dir in $with_mysql_includes; do
  6461. if test -d "$dir"; then
  6462. MYSQLINCPATH="$MYSQLINCPATH -I$dir"
  6463. else
  6464. { echo "configure: error: *** MySQL includes directory $dir does not exist." 1>&2; exit 1; }
  6465. fi
  6466. done
  6467. fi
  6468. ac_save_cppflags="$CPPFLAGS"
  6469. CPPFLAGS="$MYSQLINCPATH $CPPFLAGS"
  6470. for ac_hdr in mysql.h
  6471. do
  6472. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6473. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6474. echo "configure:7987: checking for $ac_hdr" >&5
  6475. cat > conftest.$ac_ext <<EOF
  6476. #line 7990 "configure"
  6477. #include "confdefs.h"
  6478. #include <$ac_hdr>
  6479. EOF
  6480. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6481. { (eval echo configure:7995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6482. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6483. if test -z "$ac_err"; then
  6484. rm -rf conftest*
  6485. eval "ac_cv_header_$ac_safe=yes"
  6486. else
  6487. echo "$ac_err" >&5
  6488. echo "configure: failed program was:" >&5
  6489. cat conftest.$ac_ext >&5
  6490. rm -rf conftest*
  6491. eval "ac_cv_header_$ac_safe=no"
  6492. fi
  6493. rm -f conftest*
  6494. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6495. echo "$ac_t""yes" 1>&6
  6496. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6497. cat >> confdefs.h <<EOF
  6498. #define $ac_tr_hdr 1
  6499. EOF
  6500. else
  6501. echo "$ac_t""no" 1>&6
  6502. { echo "configure: error: *** Unable to locate MySQL includes." 1>&2; exit 1; }
  6503. fi
  6504. done
  6505. CPPFLAGS=$ac_save_cppflags
  6506. fi # $USE_MYSQL
  6507. if test -n "$USE_MYSQL"; then
  6508. # With MySQL library directory
  6509. echo $ac_n "checking for location of MySQL library""... $ac_c" 1>&6
  6510. echo "configure:8032: checking for location of MySQL library" >&5
  6511. case "$with_mysql_libs" in
  6512. y | ye | yes | n | no)
  6513. { echo "configure: error: *** You must supply a directory to --with-mysql-libs." 1>&2; exit 1; }
  6514. ;;
  6515. esac
  6516. echo "$ac_t""$with_mysql_libs" 1>&6
  6517. if test -n "$with_mysql_libs"; then
  6518. for dir in $with_mysql_libs; do
  6519. if test -d "$dir"; then
  6520. MYSQLLIBPATH="$MYSQLLIBPATH -L$dir"
  6521. else
  6522. { echo "configure: error: *** MySQL library directory $dir does not exist." 1>&2; exit 1; }
  6523. fi
  6524. done
  6525. fi
  6526. ac_save_ldflags="$LDFLAGS"
  6527. LDFLAGS="$MYSQLLIBPATH $LDFLAGS"
  6528. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6529. echo "configure:8063: checking for mysql_query in -lmysqlclient" >&5
  6530. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6531. ac_save_LIBS="$LIBS"
  6532. LIBS="-lmysqlclient $LIBS"
  6533. cat > conftest.$ac_ext <<EOF
  6534. #line 8069 "configure"
  6535. #include "confdefs.h"
  6536. /* Override any gcc2 internal prototype to avoid an error. */
  6537. /* We use char because int might match the return type of a gcc2
  6538. builtin and then its argument prototype would still apply. */
  6539. char mysql_query();
  6540. int main() {
  6541. mysql_query()
  6542. ; return 0; }
  6543. EOF
  6544. if { (eval echo configure:8080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6545. rm -rf conftest*
  6546. eval "ac_cv_lib_$ac_lib_var=yes"
  6547. else
  6548. echo "configure: failed program was:" >&5
  6549. cat conftest.$ac_ext >&5
  6550. rm -rf conftest*
  6551. eval "ac_cv_lib_$ac_lib_var=no"
  6552. fi
  6553. rm -f conftest*
  6554. LIBS="$ac_save_LIBS"
  6555. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6556. echo "$ac_t""yes" 1>&6
  6557. MYSQLLIB="$MYSQLLIB -lmysqlclient "
  6558. else
  6559. echo "$ac_t""no" 1>&6
  6560. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6561. echo "configure:8099: checking for mysql_query in -lmysqlclient" >&5
  6562. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6563. ac_save_LIBS="$LIBS"
  6564. LIBS="-lmysqlclient $MATHLIB $LIBS"
  6565. cat > conftest.$ac_ext <<EOF
  6566. #line 8105 "configure"
  6567. #include "confdefs.h"
  6568. /* Override any gcc2 internal prototype to avoid an error. */
  6569. /* We use char because int might match the return type of a gcc2
  6570. builtin and then its argument prototype would still apply. */
  6571. char mysql_query();
  6572. int main() {
  6573. mysql_query()
  6574. ; return 0; }
  6575. EOF
  6576. if { (eval echo configure:8116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6577. rm -rf conftest*
  6578. eval "ac_cv_lib_$ac_lib_var=yes"
  6579. else
  6580. echo "configure: failed program was:" >&5
  6581. cat conftest.$ac_ext >&5
  6582. rm -rf conftest*
  6583. eval "ac_cv_lib_$ac_lib_var=no"
  6584. fi
  6585. rm -f conftest*
  6586. LIBS="$ac_save_LIBS"
  6587. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6588. echo "$ac_t""yes" 1>&6
  6589. MYSQLLIB="$MYSQLLIB -lmysqlclient $MATHLIB"
  6590. else
  6591. echo "$ac_t""no" 1>&6
  6592. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6593. echo "configure:8135: checking for mysql_query in -lmysqlclient" >&5
  6594. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6595. ac_save_LIBS="$LIBS"
  6596. LIBS="-lmysqlclient $SOCKLIB $LIBS"
  6597. cat > conftest.$ac_ext <<EOF
  6598. #line 8141 "configure"
  6599. #include "confdefs.h"
  6600. /* Override any gcc2 internal prototype to avoid an error. */
  6601. /* We use char because int might match the return type of a gcc2
  6602. builtin and then its argument prototype would still apply. */
  6603. char mysql_query();
  6604. int main() {
  6605. mysql_query()
  6606. ; return 0; }
  6607. EOF
  6608. if { (eval echo configure:8152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6609. rm -rf conftest*
  6610. eval "ac_cv_lib_$ac_lib_var=yes"
  6611. else
  6612. echo "configure: failed program was:" >&5
  6613. cat conftest.$ac_ext >&5
  6614. rm -rf conftest*
  6615. eval "ac_cv_lib_$ac_lib_var=no"
  6616. fi
  6617. rm -f conftest*
  6618. LIBS="$ac_save_LIBS"
  6619. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6620. echo "$ac_t""yes" 1>&6
  6621. MYSQLLIB="$MYSQLLIB -lmysqlclient $SOCKLIB"
  6622. else
  6623. echo "$ac_t""no" 1>&6
  6624. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6625. echo "configure:8171: checking for mysql_query in -lmysqlclient" >&5
  6626. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6627. ac_save_LIBS="$LIBS"
  6628. LIBS="-lmysqlclient $SOCKLIB $MATHLIB $LIBS"
  6629. cat > conftest.$ac_ext <<EOF
  6630. #line 8177 "configure"
  6631. #include "confdefs.h"
  6632. /* Override any gcc2 internal prototype to avoid an error. */
  6633. /* We use char because int might match the return type of a gcc2
  6634. builtin and then its argument prototype would still apply. */
  6635. char mysql_query();
  6636. int main() {
  6637. mysql_query()
  6638. ; return 0; }
  6639. EOF
  6640. if { (eval echo configure:8188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6641. rm -rf conftest*
  6642. eval "ac_cv_lib_$ac_lib_var=yes"
  6643. else
  6644. echo "configure: failed program was:" >&5
  6645. cat conftest.$ac_ext >&5
  6646. rm -rf conftest*
  6647. eval "ac_cv_lib_$ac_lib_var=no"
  6648. fi
  6649. rm -f conftest*
  6650. LIBS="$ac_save_LIBS"
  6651. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6652. echo "$ac_t""yes" 1>&6
  6653. MYSQLLIB="$MYSQLLIB -lmysqlclient $SOCKLIB $MATHLIB"
  6654. else
  6655. echo "$ac_t""no" 1>&6
  6656. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6657. echo "configure:8207: checking for mysql_query in -lmysqlclient" >&5
  6658. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6659. ac_save_LIBS="$LIBS"
  6660. LIBS="-lmysqlclient $ZLIB $LIBS"
  6661. cat > conftest.$ac_ext <<EOF
  6662. #line 8213 "configure"
  6663. #include "confdefs.h"
  6664. /* Override any gcc2 internal prototype to avoid an error. */
  6665. /* We use char because int might match the return type of a gcc2
  6666. builtin and then its argument prototype would still apply. */
  6667. char mysql_query();
  6668. int main() {
  6669. mysql_query()
  6670. ; return 0; }
  6671. EOF
  6672. if { (eval echo configure:8224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6673. rm -rf conftest*
  6674. eval "ac_cv_lib_$ac_lib_var=yes"
  6675. else
  6676. echo "configure: failed program was:" >&5
  6677. cat conftest.$ac_ext >&5
  6678. rm -rf conftest*
  6679. eval "ac_cv_lib_$ac_lib_var=no"
  6680. fi
  6681. rm -f conftest*
  6682. LIBS="$ac_save_LIBS"
  6683. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6684. echo "$ac_t""yes" 1>&6
  6685. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB"
  6686. else
  6687. echo "$ac_t""no" 1>&6
  6688. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6689. echo "configure:8243: checking for mysql_query in -lmysqlclient" >&5
  6690. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6691. ac_save_LIBS="$LIBS"
  6692. LIBS="-lmysqlclient $ZLIB $MATHLIB $LIBS"
  6693. cat > conftest.$ac_ext <<EOF
  6694. #line 8249 "configure"
  6695. #include "confdefs.h"
  6696. /* Override any gcc2 internal prototype to avoid an error. */
  6697. /* We use char because int might match the return type of a gcc2
  6698. builtin and then its argument prototype would still apply. */
  6699. char mysql_query();
  6700. int main() {
  6701. mysql_query()
  6702. ; return 0; }
  6703. EOF
  6704. if { (eval echo configure:8260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6705. rm -rf conftest*
  6706. eval "ac_cv_lib_$ac_lib_var=yes"
  6707. else
  6708. echo "configure: failed program was:" >&5
  6709. cat conftest.$ac_ext >&5
  6710. rm -rf conftest*
  6711. eval "ac_cv_lib_$ac_lib_var=no"
  6712. fi
  6713. rm -f conftest*
  6714. LIBS="$ac_save_LIBS"
  6715. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6716. echo "$ac_t""yes" 1>&6
  6717. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $MATHLIB"
  6718. else
  6719. echo "$ac_t""no" 1>&6
  6720. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6721. echo "configure:8279: checking for mysql_query in -lmysqlclient" >&5
  6722. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6723. ac_save_LIBS="$LIBS"
  6724. LIBS="-lmysqlclient $ZLIB $SOCKLIB $LIBS"
  6725. cat > conftest.$ac_ext <<EOF
  6726. #line 8285 "configure"
  6727. #include "confdefs.h"
  6728. /* Override any gcc2 internal prototype to avoid an error. */
  6729. /* We use char because int might match the return type of a gcc2
  6730. builtin and then its argument prototype would still apply. */
  6731. char mysql_query();
  6732. int main() {
  6733. mysql_query()
  6734. ; return 0; }
  6735. EOF
  6736. if { (eval echo configure:8296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6737. rm -rf conftest*
  6738. eval "ac_cv_lib_$ac_lib_var=yes"
  6739. else
  6740. echo "configure: failed program was:" >&5
  6741. cat conftest.$ac_ext >&5
  6742. rm -rf conftest*
  6743. eval "ac_cv_lib_$ac_lib_var=no"
  6744. fi
  6745. rm -f conftest*
  6746. LIBS="$ac_save_LIBS"
  6747. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6748. echo "$ac_t""yes" 1>&6
  6749. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $SOCKLIB"
  6750. else
  6751. echo "$ac_t""no" 1>&6
  6752. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6753. echo "configure:8315: checking for mysql_query in -lmysqlclient" >&5
  6754. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6755. ac_save_LIBS="$LIBS"
  6756. LIBS="-lmysqlclient $ZLIB $SOCKLIB $MATHLIB $LIBS"
  6757. cat > conftest.$ac_ext <<EOF
  6758. #line 8321 "configure"
  6759. #include "confdefs.h"
  6760. /* Override any gcc2 internal prototype to avoid an error. */
  6761. /* We use char because int might match the return type of a gcc2
  6762. builtin and then its argument prototype would still apply. */
  6763. char mysql_query();
  6764. int main() {
  6765. mysql_query()
  6766. ; return 0; }
  6767. EOF
  6768. if { (eval echo configure:8332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6769. rm -rf conftest*
  6770. eval "ac_cv_lib_$ac_lib_var=yes"
  6771. else
  6772. echo "configure: failed program was:" >&5
  6773. cat conftest.$ac_ext >&5
  6774. rm -rf conftest*
  6775. eval "ac_cv_lib_$ac_lib_var=no"
  6776. fi
  6777. rm -f conftest*
  6778. LIBS="$ac_save_LIBS"
  6779. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6780. echo "$ac_t""yes" 1>&6
  6781. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $SOCKLIB $MATHLIB"
  6782. else
  6783. echo "$ac_t""no" 1>&6
  6784. LDFLAGS=${ac_save_ldflags}
  6785. { echo "configure: error: *** Unable to locate MySQL library." 1>&2; exit 1; }
  6786. fi
  6787. fi
  6788. fi
  6789. fi
  6790. fi
  6791. fi
  6792. fi
  6793. fi
  6794. LDFLAGS=${ac_save_ldflags}
  6795. # Check for libmysqld (for embeded version of the driver)
  6796. # Extract the first word of "mysql_config", so it can be a program name with args.
  6797. set dummy mysql_config; ac_word=$2
  6798. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  6799. echo "configure:8422: checking for $ac_word" >&5
  6800. case "$MYSQLD_CONFIG" in
  6801. /*)
  6802. ac_cv_path_MYSQLD_CONFIG="$MYSQLD_CONFIG" # Let the user override the test with a path.
  6803. ;;
  6804. ?:/*)
  6805. ac_cv_path_MYSQLD_CONFIG="$MYSQLD_CONFIG" # Let the user override the test with a dos path.
  6806. ;;
  6807. *)
  6808. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  6809. ac_dummy="$PATH"
  6810. for ac_dir in $ac_dummy; do
  6811. test -z "$ac_dir" && ac_dir=.
  6812. if test -f $ac_dir/$ac_word; then
  6813. ac_cv_path_MYSQLD_CONFIG="$ac_dir/$ac_word"
  6814. break
  6815. fi
  6816. done
  6817. IFS="$ac_save_ifs"
  6818. test -z "$ac_cv_path_MYSQLD_CONFIG" && ac_cv_path_MYSQLD_CONFIG="no"
  6819. ;;
  6820. esac
  6821. MYSQLD_CONFIG="$ac_cv_path_MYSQLD_CONFIG"
  6822. if test -n "$MYSQLD_CONFIG"; then
  6823. echo "$ac_t""$MYSQLD_CONFIG" 1>&6
  6824. else
  6825. echo "$ac_t""no" 1>&6
  6826. fi
  6827. if test "$MYSQLD_CONFIG" = "no" ; then
  6828. { echo "configure: error: *** couldn't find mysql_config" 1>&2; exit 1; }
  6829. fi
  6830. if test "$MYSQLD_CONFIG" != "" ; then
  6831. ac_ext=C
  6832. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6833. ac_cpp='$CXXCPP $CPPFLAGS'
  6834. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6835. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6836. cross_compiling=$ac_cv_prog_cxx_cross
  6837. ac_save_libs="$LIBS"
  6838. MYSQLDLIB=`"$MYSQLD_CONFIG" --libmysqld-libs`
  6839. LIBS="$MYSQLDLIB $LIBS"
  6840. echo $ac_n "checking for mysql_server_init""... $ac_c" 1>&6
  6841. echo "configure:8471: checking for mysql_server_init" >&5
  6842. cat > conftest.$ac_ext <<EOF
  6843. #line 8474 "configure"
  6844. #include "confdefs.h"
  6845. /* System header to define __stub macros and hopefully few prototypes,
  6846. which can conflict with char mysql_server_init(); below. */
  6847. #include <assert.h>
  6848. /* Override any gcc2 internal prototype to avoid an error. */
  6849. #ifdef __cplusplus
  6850. extern "C"
  6851. #endif
  6852. /* We use char because int might match the return type of a gcc2
  6853. builtin and then its argument prototype would still apply. */
  6854. char mysql_server_init();
  6855. int main() {
  6856. /* The GNU C library defines this for functions which it implements
  6857. to always fail with ENOSYS. Some functions are actually named
  6858. something starting with __ and the normal name is an alias. */
  6859. #if defined (__stub_mysql_server_init) || defined (__stub___mysql_server_init)
  6860. choke me
  6861. #else
  6862. mysql_server_init();
  6863. #endif
  6864. ; return 0; }
  6865. EOF
  6866. if { (eval echo configure:8500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6867. rm -rf conftest*
  6868. eval "ac_cv_func_mysql_server_init=yes"
  6869. else
  6870. echo "configure: failed program was:" >&5
  6871. cat conftest.$ac_ext >&5
  6872. rm -rf conftest*
  6873. eval "ac_cv_func_mysql_server_init=no"
  6874. fi
  6875. rm -f conftest*
  6876. if eval "test \"`echo '$ac_cv_func_'mysql_server_init`\" = yes"; then
  6877. echo "$ac_t""yes" 1>&6
  6878. :
  6879. else
  6880. echo "$ac_t""no" 1>&6
  6881. MYSQLDLIB="";
  6882. echo "configure: warning: libmysqld not found" 1>&2
  6883. fi
  6884. LIBS=$ac_save_libs
  6885. ac_ext=c
  6886. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6887. ac_cpp='$CPP $CPPFLAGS'
  6888. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6889. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6890. cross_compiling=$ac_cv_prog_cc_cross
  6891. ac_ext=c
  6892. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6893. ac_cpp='$CPP $CPPFLAGS'
  6894. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6895. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6896. cross_compiling=$ac_cv_prog_cc_cross
  6897. fi
  6898. fi # $USE_MYSQL
  6899. # Done checking MySQL
  6900. # Enable SQLite option
  6901. echo $ac_n "checking whether to use SQLite""... $ac_c" 1>&6
  6902. echo "configure:8552: checking whether to use SQLite" >&5
  6903. echo "$ac_t"""$with_sqlite"" 1>&6
  6904. case "$with_sqlite" in
  6905. "no") USE_SQLITE= ;;
  6906. "yes") USE_SQLITE="1" ;;
  6907. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6908. esac
  6909. SQLITEINCPATH=
  6910. SQLITELIBPATH=
  6911. SQLITELIB=
  6912. if test -n "$USE_SQLITE"; then
  6913. # With SQLite includes directory
  6914. echo $ac_n "checking for location of SQLite includes""... $ac_c" 1>&6
  6915. echo "configure:8572: checking for location of SQLite includes" >&5
  6916. case "$with_sqlite_includes" in
  6917. y | ye | yes | n | no)
  6918. { echo "configure: error: *** You must supply a directory to --with-sqlite-includes." 1>&2; exit 1; }
  6919. ;;
  6920. esac
  6921. echo "$ac_t""$with_sqlite_includes" 1>&6
  6922. if test -n "$with_sqlite_includes" ; then
  6923. for dir in $with_sqlite_includes; do
  6924. if test -d "$dir"; then
  6925. SQLITEINCPATH="$SQLITEINCPATH -I$dir"
  6926. else
  6927. { echo "configure: error: *** SQLite includes directory $dir does not exist." 1>&2; exit 1; }
  6928. fi
  6929. done
  6930. fi
  6931. ac_save_cppflags="$CPPFLAGS"
  6932. CPPFLAGS="$SQLITEINCPATH $CPPFLAGS"
  6933. for ac_hdr in sqlite3.h
  6934. do
  6935. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6936. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6937. echo "configure:8598: checking for $ac_hdr" >&5
  6938. cat > conftest.$ac_ext <<EOF
  6939. #line 8601 "configure"
  6940. #include "confdefs.h"
  6941. #include <$ac_hdr>
  6942. EOF
  6943. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6944. { (eval echo configure:8606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6945. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6946. if test -z "$ac_err"; then
  6947. rm -rf conftest*
  6948. eval "ac_cv_header_$ac_safe=yes"
  6949. else
  6950. echo "$ac_err" >&5
  6951. echo "configure: failed program was:" >&5
  6952. cat conftest.$ac_ext >&5
  6953. rm -rf conftest*
  6954. eval "ac_cv_header_$ac_safe=no"
  6955. fi
  6956. rm -f conftest*
  6957. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6958. echo "$ac_t""yes" 1>&6
  6959. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6960. cat >> confdefs.h <<EOF
  6961. #define $ac_tr_hdr 1
  6962. EOF
  6963. else
  6964. echo "$ac_t""no" 1>&6
  6965. { echo "configure: error: *** Unable to locate SQLite includes." 1>&2; exit 1; }
  6966. fi
  6967. done
  6968. CPPFLAGS=$ac_save_cppflags
  6969. cat >> confdefs.h <<\EOF
  6970. #define HAVE_SQLITE 1
  6971. EOF
  6972. fi # $USE_SQLITE
  6973. if test -n "$USE_SQLITE"; then
  6974. # With SQLite library directory
  6975. echo $ac_n "checking for location of SQLite library""... $ac_c" 1>&6
  6976. echo "configure:8649: checking for location of SQLite library" >&5
  6977. case "$with_sqlite_libs" in
  6978. y | ye | yes | n | no)
  6979. { echo "configure: error: *** You must supply a directory to --with-sqlite-libs." 1>&2; exit 1; }
  6980. ;;
  6981. esac
  6982. echo "$ac_t""$with_sqlite_libs" 1>&6
  6983. if test -n "$with_sqlite_libs"; then
  6984. for dir in $with_sqlite_libs; do
  6985. if test -d "$dir"; then
  6986. SQLITELIBPATH="$SQLITELIBPATH -L$dir"
  6987. else
  6988. { echo "configure: error: *** SQLite library directory $dir does not exist." 1>&2; exit 1; }
  6989. fi
  6990. done
  6991. fi
  6992. ac_save_ldflags="$LDFLAGS"
  6993. LDFLAGS="$SQLITELIBPATH $LDFLAGS"
  6994. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  6995. echo "configure:8678: checking for sqlite3_open in -lsqlite3" >&5
  6996. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  6997. ac_save_LIBS="$LIBS"
  6998. LIBS="-lsqlite3 $LIBS"
  6999. cat > conftest.$ac_ext <<EOF
  7000. #line 8684 "configure"
  7001. #include "confdefs.h"
  7002. /* Override any gcc2 internal prototype to avoid an error. */
  7003. /* We use char because int might match the return type of a gcc2
  7004. builtin and then its argument prototype would still apply. */
  7005. char sqlite3_open();
  7006. int main() {
  7007. sqlite3_open()
  7008. ; return 0; }
  7009. EOF
  7010. if { (eval echo configure:8695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7011. rm -rf conftest*
  7012. eval "ac_cv_lib_$ac_lib_var=yes"
  7013. else
  7014. echo "configure: failed program was:" >&5
  7015. cat conftest.$ac_ext >&5
  7016. rm -rf conftest*
  7017. eval "ac_cv_lib_$ac_lib_var=no"
  7018. fi
  7019. rm -f conftest*
  7020. LIBS="$ac_save_LIBS"
  7021. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7022. echo "$ac_t""yes" 1>&6
  7023. SQLITELIB="$SQLITELIB -lsqlite3 "
  7024. else
  7025. echo "$ac_t""no" 1>&6
  7026. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  7027. echo "configure:8714: checking for sqlite3_open in -lsqlite3" >&5
  7028. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  7029. ac_save_LIBS="$LIBS"
  7030. LIBS="-lsqlite3 $DLLIB $LIBS"
  7031. cat > conftest.$ac_ext <<EOF
  7032. #line 8720 "configure"
  7033. #include "confdefs.h"
  7034. /* Override any gcc2 internal prototype to avoid an error. */
  7035. /* We use char because int might match the return type of a gcc2
  7036. builtin and then its argument prototype would still apply. */
  7037. char sqlite3_open();
  7038. int main() {
  7039. sqlite3_open()
  7040. ; return 0; }
  7041. EOF
  7042. if { (eval echo configure:8731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7043. rm -rf conftest*
  7044. eval "ac_cv_lib_$ac_lib_var=yes"
  7045. else
  7046. echo "configure: failed program was:" >&5
  7047. cat conftest.$ac_ext >&5
  7048. rm -rf conftest*
  7049. eval "ac_cv_lib_$ac_lib_var=no"
  7050. fi
  7051. rm -f conftest*
  7052. LIBS="$ac_save_LIBS"
  7053. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7054. echo "$ac_t""yes" 1>&6
  7055. SQLITELIB="$SQLITELIB -lsqlite3 $DLLIB"
  7056. else
  7057. echo "$ac_t""no" 1>&6
  7058. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  7059. echo "configure:8750: checking for sqlite3_open in -lsqlite3" >&5
  7060. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  7061. ac_save_LIBS="$LIBS"
  7062. LIBS="-lsqlite3 $MATHLIB $LIBS"
  7063. cat > conftest.$ac_ext <<EOF
  7064. #line 8756 "configure"
  7065. #include "confdefs.h"
  7066. /* Override any gcc2 internal prototype to avoid an error. */
  7067. /* We use char because int might match the return type of a gcc2
  7068. builtin and then its argument prototype would still apply. */
  7069. char sqlite3_open();
  7070. int main() {
  7071. sqlite3_open()
  7072. ; return 0; }
  7073. EOF
  7074. if { (eval echo configure:8767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7075. rm -rf conftest*
  7076. eval "ac_cv_lib_$ac_lib_var=yes"
  7077. else
  7078. echo "configure: failed program was:" >&5
  7079. cat conftest.$ac_ext >&5
  7080. rm -rf conftest*
  7081. eval "ac_cv_lib_$ac_lib_var=no"
  7082. fi
  7083. rm -f conftest*
  7084. LIBS="$ac_save_LIBS"
  7085. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7086. echo "$ac_t""yes" 1>&6
  7087. SQLITELIB="$SQLITELIB -lsqlite3 $MATHLIB"
  7088. else
  7089. echo "$ac_t""no" 1>&6
  7090. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  7091. echo "configure:8786: checking for sqlite3_open in -lsqlite3" >&5
  7092. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  7093. ac_save_LIBS="$LIBS"
  7094. LIBS="-lsqlite3 $MATHLIB $DLLIB $LIBS"
  7095. cat > conftest.$ac_ext <<EOF
  7096. #line 8792 "configure"
  7097. #include "confdefs.h"
  7098. /* Override any gcc2 internal prototype to avoid an error. */
  7099. /* We use char because int might match the return type of a gcc2
  7100. builtin and then its argument prototype would still apply. */
  7101. char sqlite3_open();
  7102. int main() {
  7103. sqlite3_open()
  7104. ; return 0; }
  7105. EOF
  7106. if { (eval echo configure:8803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7107. rm -rf conftest*
  7108. eval "ac_cv_lib_$ac_lib_var=yes"
  7109. else
  7110. echo "configure: failed program was:" >&5
  7111. cat conftest.$ac_ext >&5
  7112. rm -rf conftest*
  7113. eval "ac_cv_lib_$ac_lib_var=no"
  7114. fi
  7115. rm -f conftest*
  7116. LIBS="$ac_save_LIBS"
  7117. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7118. echo "$ac_t""yes" 1>&6
  7119. SQLITELIB="$SQLITELIB -lsqlite3 $MATHLIB $DLLIB"
  7120. else
  7121. echo "$ac_t""no" 1>&6
  7122. LDFLAGS=${ac_save_ldflags}
  7123. { echo "configure: error: *** Unable to locate SQLite library." 1>&2; exit 1; }
  7124. fi
  7125. fi
  7126. fi
  7127. fi
  7128. LDFLAGS=${ac_save_ldflags}
  7129. fi # $USE_SQLITE
  7130. # Done checking SQLite
  7131. # Enable FFMPEG option
  7132. echo $ac_n "checking whether to use FFMPEG""... $ac_c" 1>&6
  7133. echo "configure:8872: checking whether to use FFMPEG" >&5
  7134. echo "$ac_t"""$with_ffmpeg"" 1>&6
  7135. case "$with_ffmpeg" in
  7136. "no") USE_FFMPEG= ;;
  7137. "yes") USE_FFMPEG="1" ;;
  7138. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  7139. esac
  7140. FFMPEGINCPATH=
  7141. FFMPEGLIBPATH=
  7142. FFMPEGLIB=
  7143. if test -n "$USE_FFMPEG"; then
  7144. # With FFMPEG includes directory
  7145. echo $ac_n "checking for location of FFMPEG includes""... $ac_c" 1>&6
  7146. echo "configure:8892: checking for location of FFMPEG includes" >&5
  7147. case "$with_ffmpeg_includes" in
  7148. y | ye | yes | n | no)
  7149. { echo "configure: error: *** You must supply a directory to --with-ffmpeg-includes." 1>&2; exit 1; }
  7150. ;;
  7151. esac
  7152. echo "$ac_t""$with_ffmpeg_includes" 1>&6
  7153. if test -n "$with_ffmpeg_includes" ; then
  7154. for dir in $with_ffmpeg_includes; do
  7155. if test -d "$dir"; then
  7156. FFMPEGINCPATH="$FFMPEGINCPATH -I$dir"
  7157. else
  7158. { echo "configure: error: *** FFMPEG includes directory $dir does not exist." 1>&2; exit 1; }
  7159. fi
  7160. done
  7161. fi
  7162. ac_save_cppflags="$CPPFLAGS"
  7163. CPPFLAGS="$FFMPEGINCPATH $CPPFLAGS"
  7164. for ac_hdr in avcodec.h
  7165. do
  7166. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7167. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7168. echo "configure:8918: checking for $ac_hdr" >&5
  7169. cat > conftest.$ac_ext <<EOF
  7170. #line 8921 "configure"
  7171. #include "confdefs.h"
  7172. #include <$ac_hdr>
  7173. EOF
  7174. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7175. { (eval echo configure:8926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7176. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7177. if test -z "$ac_err"; then
  7178. rm -rf conftest*
  7179. eval "ac_cv_header_$ac_safe=yes"
  7180. else
  7181. echo "$ac_err" >&5
  7182. echo "configure: failed program was:" >&5
  7183. cat conftest.$ac_ext >&5
  7184. rm -rf conftest*
  7185. eval "ac_cv_header_$ac_safe=no"
  7186. fi
  7187. rm -f conftest*
  7188. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7189. echo "$ac_t""yes" 1>&6
  7190. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7191. cat >> confdefs.h <<EOF
  7192. #define $ac_tr_hdr 1
  7193. EOF
  7194. else
  7195. echo "$ac_t""no" 1>&6
  7196. { echo "configure: error: *** Unable to locate FFMPEG includes." 1>&2; exit 1; }
  7197. fi
  7198. done
  7199. CPPFLAGS=$ac_save_cppflags
  7200. ac_save_cppflags="$CPPFLAGS"
  7201. CPPFLAGS="$FFMPEGINCPATH $CPPFLAGS"
  7202. for ac_hdr in avformat.h
  7203. do
  7204. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7205. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7206. echo "configure:8962: checking for $ac_hdr" >&5
  7207. cat > conftest.$ac_ext <<EOF
  7208. #line 8965 "configure"
  7209. #include "confdefs.h"
  7210. #include <$ac_hdr>
  7211. EOF
  7212. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7213. { (eval echo configure:8970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7214. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7215. if test -z "$ac_err"; then
  7216. rm -rf conftest*
  7217. eval "ac_cv_header_$ac_safe=yes"
  7218. else
  7219. echo "$ac_err" >&5
  7220. echo "configure: failed program was:" >&5
  7221. cat conftest.$ac_ext >&5
  7222. rm -rf conftest*
  7223. eval "ac_cv_header_$ac_safe=no"
  7224. fi
  7225. rm -f conftest*
  7226. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7227. echo "$ac_t""yes" 1>&6
  7228. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7229. cat >> confdefs.h <<EOF
  7230. #define $ac_tr_hdr 1
  7231. EOF
  7232. else
  7233. echo "$ac_t""no" 1>&6
  7234. { echo "configure: error: *** Unable to locate FFMPEG includes." 1>&2; exit 1; }
  7235. fi
  7236. done
  7237. CPPFLAGS=$ac_save_cppflags
  7238. ac_save_cppflags="$CPPFLAGS"
  7239. CPPFLAGS="$FFMPEGINCPATH $CPPFLAGS"
  7240. for ac_hdr in swscale.h
  7241. do
  7242. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7243. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7244. echo "configure:9006: checking for $ac_hdr" >&5
  7245. cat > conftest.$ac_ext <<EOF
  7246. #line 9009 "configure"
  7247. #include "confdefs.h"
  7248. #include <$ac_hdr>
  7249. EOF
  7250. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7251. { (eval echo configure:9014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7252. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7253. if test -z "$ac_err"; then
  7254. rm -rf conftest*
  7255. eval "ac_cv_header_$ac_safe=yes"
  7256. else
  7257. echo "$ac_err" >&5
  7258. echo "configure: failed program was:" >&5
  7259. cat conftest.$ac_ext >&5
  7260. rm -rf conftest*
  7261. eval "ac_cv_header_$ac_safe=no"
  7262. fi
  7263. rm -f conftest*
  7264. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7265. echo "$ac_t""yes" 1>&6
  7266. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7267. cat >> confdefs.h <<EOF
  7268. #define $ac_tr_hdr 1
  7269. EOF
  7270. else
  7271. echo "$ac_t""no" 1>&6
  7272. { echo "configure: error: *** Unable to locate FFMPEG includes." 1>&2; exit 1; }
  7273. fi
  7274. done
  7275. CPPFLAGS=$ac_save_cppflags
  7276. cat >> confdefs.h <<\EOF
  7277. #define HAVE_FFMPEG 1
  7278. EOF
  7279. fi # $USE_FFMPEG
  7280. if test -n "$USE_FFMPEG"; then
  7281. # With FFMPEG library directory
  7282. echo $ac_n "checking for location of FFMPEG library""... $ac_c" 1>&6
  7283. echo "configure:9057: checking for location of FFMPEG library" >&5
  7284. case "$with_ffmpeg_libs" in
  7285. y | ye | yes | n | no)
  7286. { echo "configure: error: *** You must supply a directory to --with-ffmpeg-libs." 1>&2; exit 1; }
  7287. ;;
  7288. esac
  7289. echo "$ac_t""$with_ffmpeg_libs" 1>&6
  7290. if test -n "$with_ffmpeg_libs"; then
  7291. for dir in $with_ffmpeg_libs; do
  7292. if test -d "$dir"; then
  7293. FFMPEGLIBPATH="$FFMPEGLIBPATH -L$dir"
  7294. else
  7295. { echo "configure: error: *** FFMPEG library directory $dir does not exist." 1>&2; exit 1; }
  7296. fi
  7297. done
  7298. fi
  7299. ac_save_ldflags="$LDFLAGS"
  7300. LDFLAGS="$FFMPEGLIBPATH $LDFLAGS"
  7301. echo $ac_n "checking for av_free in -lavutil""... $ac_c" 1>&6
  7302. echo "configure:9084: checking for av_free in -lavutil" >&5
  7303. ac_lib_var=`echo avutil'_'av_free | sed 'y%./+-%__p_%'`
  7304. ac_save_LIBS="$LIBS"
  7305. LIBS="-lavutil $LIBS"
  7306. cat > conftest.$ac_ext <<EOF
  7307. #line 9090 "configure"
  7308. #include "confdefs.h"
  7309. /* Override any gcc2 internal prototype to avoid an error. */
  7310. /* We use char because int might match the return type of a gcc2
  7311. builtin and then its argument prototype would still apply. */
  7312. char av_free();
  7313. int main() {
  7314. av_free()
  7315. ; return 0; }
  7316. EOF
  7317. if { (eval echo configure:9101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7318. rm -rf conftest*
  7319. eval "ac_cv_lib_$ac_lib_var=yes"
  7320. else
  7321. echo "configure: failed program was:" >&5
  7322. cat conftest.$ac_ext >&5
  7323. rm -rf conftest*
  7324. eval "ac_cv_lib_$ac_lib_var=no"
  7325. fi
  7326. rm -f conftest*
  7327. LIBS="$ac_save_LIBS"
  7328. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7329. echo "$ac_t""yes" 1>&6
  7330. FFMPEGLIB="$FFMPEGLIB -lavutil "
  7331. else
  7332. echo "$ac_t""no" 1>&6
  7333. echo $ac_n "checking for av_free in -lavutil""... $ac_c" 1>&6
  7334. echo "configure:9120: checking for av_free in -lavutil" >&5
  7335. ac_lib_var=`echo avutil'_'av_free | sed 'y%./+-%__p_%'`
  7336. ac_save_LIBS="$LIBS"
  7337. LIBS="-lavutil $MATHLIB $LIBS"
  7338. cat > conftest.$ac_ext <<EOF
  7339. #line 9126 "configure"
  7340. #include "confdefs.h"
  7341. /* Override any gcc2 internal prototype to avoid an error. */
  7342. /* We use char because int might match the return type of a gcc2
  7343. builtin and then its argument prototype would still apply. */
  7344. char av_free();
  7345. int main() {
  7346. av_free()
  7347. ; return 0; }
  7348. EOF
  7349. if { (eval echo configure:9137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7350. rm -rf conftest*
  7351. eval "ac_cv_lib_$ac_lib_var=yes"
  7352. else
  7353. echo "configure: failed program was:" >&5
  7354. cat conftest.$ac_ext >&5
  7355. rm -rf conftest*
  7356. eval "ac_cv_lib_$ac_lib_var=no"
  7357. fi
  7358. rm -f conftest*
  7359. LIBS="$ac_save_LIBS"
  7360. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7361. echo "$ac_t""yes" 1>&6
  7362. FFMPEGLIB="$FFMPEGLIB -lavutil $MATHLIB"
  7363. else
  7364. echo "$ac_t""no" 1>&6
  7365. LDFLAGS=${ac_save_ldflags}
  7366. { echo "configure: error: *** Unable to locate FFMPEG library." 1>&2; exit 1; }
  7367. fi
  7368. fi
  7369. LDFLAGS=${ac_save_ldflags}
  7370. ac_save_ldflags="$LDFLAGS"
  7371. LDFLAGS="$FFMPEGLIBPATH $LDFLAGS"
  7372. echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
  7373. echo "configure:9182: checking for avcodec_init in -lavcodec" >&5
  7374. ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
  7375. ac_save_LIBS="$LIBS"
  7376. LIBS="-lavcodec $FFMPEGLIB $LIBS"
  7377. cat > conftest.$ac_ext <<EOF
  7378. #line 9188 "configure"
  7379. #include "confdefs.h"
  7380. /* Override any gcc2 internal prototype to avoid an error. */
  7381. /* We use char because int might match the return type of a gcc2
  7382. builtin and then its argument prototype would still apply. */
  7383. char avcodec_init();
  7384. int main() {
  7385. avcodec_init()
  7386. ; return 0; }
  7387. EOF
  7388. if { (eval echo configure:9199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7389. rm -rf conftest*
  7390. eval "ac_cv_lib_$ac_lib_var=yes"
  7391. else
  7392. echo "configure: failed program was:" >&5
  7393. cat conftest.$ac_ext >&5
  7394. rm -rf conftest*
  7395. eval "ac_cv_lib_$ac_lib_var=no"
  7396. fi
  7397. rm -f conftest*
  7398. LIBS="$ac_save_LIBS"
  7399. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7400. echo "$ac_t""yes" 1>&6
  7401. FFMPEGLIB="$FFMPEGLIB -lavcodec "
  7402. else
  7403. echo "$ac_t""no" 1>&6
  7404. echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
  7405. echo "configure:9218: checking for avcodec_init in -lavcodec" >&5
  7406. ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
  7407. ac_save_LIBS="$LIBS"
  7408. LIBS="-lavcodec $FFMPEGLIB $MATHLIB $LIBS"
  7409. cat > conftest.$ac_ext <<EOF
  7410. #line 9224 "configure"
  7411. #include "confdefs.h"
  7412. /* Override any gcc2 internal prototype to avoid an error. */
  7413. /* We use char because int might match the return type of a gcc2
  7414. builtin and then its argument prototype would still apply. */
  7415. char avcodec_init();
  7416. int main() {
  7417. avcodec_init()
  7418. ; return 0; }
  7419. EOF
  7420. if { (eval echo configure:9235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7421. rm -rf conftest*
  7422. eval "ac_cv_lib_$ac_lib_var=yes"
  7423. else
  7424. echo "configure: failed program was:" >&5
  7425. cat conftest.$ac_ext >&5
  7426. rm -rf conftest*
  7427. eval "ac_cv_lib_$ac_lib_var=no"
  7428. fi
  7429. rm -f conftest*
  7430. LIBS="$ac_save_LIBS"
  7431. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7432. echo "$ac_t""yes" 1>&6
  7433. FFMPEGLIB="$FFMPEGLIB -lavcodec $MATHLIB"
  7434. else
  7435. echo "$ac_t""no" 1>&6
  7436. LDFLAGS=${ac_save_ldflags}
  7437. { echo "configure: error: *** Unable to locate FFMPEG library." 1>&2; exit 1; }
  7438. fi
  7439. fi
  7440. LDFLAGS=${ac_save_ldflags}
  7441. ac_save_ldflags="$LDFLAGS"
  7442. LDFLAGS="$FFMPEGLIBPATH $LDFLAGS"
  7443. echo $ac_n "checking for av_set_parameters in -lavformat""... $ac_c" 1>&6
  7444. echo "configure:9280: checking for av_set_parameters in -lavformat" >&5
  7445. ac_lib_var=`echo avformat'_'av_set_parameters | sed 'y%./+-%__p_%'`
  7446. ac_save_LIBS="$LIBS"
  7447. LIBS="-lavformat $FFMPEGLIB $LIBS"
  7448. cat > conftest.$ac_ext <<EOF
  7449. #line 9286 "configure"
  7450. #include "confdefs.h"
  7451. /* Override any gcc2 internal prototype to avoid an error. */
  7452. /* We use char because int might match the return type of a gcc2
  7453. builtin and then its argument prototype would still apply. */
  7454. char av_set_parameters();
  7455. int main() {
  7456. av_set_parameters()
  7457. ; return 0; }
  7458. EOF
  7459. if { (eval echo configure:9297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7460. rm -rf conftest*
  7461. eval "ac_cv_lib_$ac_lib_var=yes"
  7462. else
  7463. echo "configure: failed program was:" >&5
  7464. cat conftest.$ac_ext >&5
  7465. rm -rf conftest*
  7466. eval "ac_cv_lib_$ac_lib_var=no"
  7467. fi
  7468. rm -f conftest*
  7469. LIBS="$ac_save_LIBS"
  7470. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7471. echo "$ac_t""yes" 1>&6
  7472. FFMPEGLIB="$FFMPEGLIB -lavformat "
  7473. else
  7474. echo "$ac_t""no" 1>&6
  7475. echo $ac_n "checking for av_set_parameters in -lavformat""... $ac_c" 1>&6
  7476. echo "configure:9316: checking for av_set_parameters in -lavformat" >&5
  7477. ac_lib_var=`echo avformat'_'av_set_parameters | sed 'y%./+-%__p_%'`
  7478. ac_save_LIBS="$LIBS"
  7479. LIBS="-lavformat $FFMPEGLIB $MATHLIB $LIBS"
  7480. cat > conftest.$ac_ext <<EOF
  7481. #line 9322 "configure"
  7482. #include "confdefs.h"
  7483. /* Override any gcc2 internal prototype to avoid an error. */
  7484. /* We use char because int might match the return type of a gcc2
  7485. builtin and then its argument prototype would still apply. */
  7486. char av_set_parameters();
  7487. int main() {
  7488. av_set_parameters()
  7489. ; return 0; }
  7490. EOF
  7491. if { (eval echo configure:9333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7492. rm -rf conftest*
  7493. eval "ac_cv_lib_$ac_lib_var=yes"
  7494. else
  7495. echo "configure: failed program was:" >&5
  7496. cat conftest.$ac_ext >&5
  7497. rm -rf conftest*
  7498. eval "ac_cv_lib_$ac_lib_var=no"
  7499. fi
  7500. rm -f conftest*
  7501. LIBS="$ac_save_LIBS"
  7502. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7503. echo "$ac_t""yes" 1>&6
  7504. FFMPEGLIB="$FFMPEGLIB -lavformat $MATHLIB"
  7505. else
  7506. echo "$ac_t""no" 1>&6
  7507. LDFLAGS=${ac_save_ldflags}
  7508. { echo "configure: error: *** Unable to locate FFMPEG library." 1>&2; exit 1; }
  7509. fi
  7510. fi
  7511. LDFLAGS=${ac_save_ldflags}
  7512. fi # $USE_FFMPEG
  7513. # Done checking FFMPEG
  7514. # Enable OpenGL option
  7515. OPENGLINC=
  7516. OPENGLLIB=
  7517. OPENGLULIB=
  7518. USE_OPENGL=
  7519. OPENGL_X11=
  7520. OPENGL_AQUA=
  7521. OPENGL_WINDOWS=
  7522. echo $ac_n "checking whether to use OpenGL""... $ac_c" 1>&6
  7523. echo "configure:9392: checking whether to use OpenGL" >&5
  7524. echo "$ac_t"""$with_opengl"" 1>&6
  7525. case "$with_opengl" in
  7526. n|no)
  7527. OPENGL_TYPE=none
  7528. ;;
  7529. y|yes|x|x11|glx)
  7530. OPENGL_TYPE=X11
  7531. USE_OPENGL=1
  7532. OPENGL_X11=1
  7533. ;;
  7534. aqua|mac|osx|macosx|agl)
  7535. OPENGL_TYPE=Aqua
  7536. USE_OPENGL=1
  7537. OPENGL_AQUA=1
  7538. ;;
  7539. win|windows|mswin|wgl)
  7540. OPENGL_TYPE=Windows
  7541. USE_OPENGL=1
  7542. OPENGL_WINDOWS=1
  7543. ;;
  7544. *)
  7545. { echo "configure: error: *** Valid arguments for --with-opengl= are yes,no,x11,aqua,windows." 1>&2; exit 1; }
  7546. ;;
  7547. esac
  7548. if test -n "$USE_OPENGL" ; then
  7549. if test "$OPENGL_X11" = 1 ; then
  7550. # With OpenGL includes directory
  7551. echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
  7552. echo "configure:9426: checking for location of OpenGL includes" >&5
  7553. case "$with_opengl_includes" in
  7554. y | ye | yes | n | no)
  7555. { echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
  7556. ;;
  7557. esac
  7558. echo "$ac_t""$with_opengl_includes" 1>&6
  7559. if test -n "$with_opengl_includes" ; then
  7560. for dir in $with_opengl_includes; do
  7561. if test -d "$dir"; then
  7562. OPENGLINC="$OPENGLINC -I$dir"
  7563. else
  7564. { echo "configure: error: *** OpenGL includes directory $dir does not exist." 1>&2; exit 1; }
  7565. fi
  7566. done
  7567. fi
  7568. ac_save_cppflags="$CPPFLAGS"
  7569. CPPFLAGS="$OPENGLINC $X_CFLAGS $CPPFLAGS"
  7570. for ac_hdr in GL/gl.h GL/glu.h
  7571. do
  7572. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7573. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7574. echo "configure:9452: checking for $ac_hdr" >&5
  7575. cat > conftest.$ac_ext <<EOF
  7576. #line 9455 "configure"
  7577. #include "confdefs.h"
  7578. #include <$ac_hdr>
  7579. EOF
  7580. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7581. { (eval echo configure:9460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7582. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7583. if test -z "$ac_err"; then
  7584. rm -rf conftest*
  7585. eval "ac_cv_header_$ac_safe=yes"
  7586. else
  7587. echo "$ac_err" >&5
  7588. echo "configure: failed program was:" >&5
  7589. cat conftest.$ac_ext >&5
  7590. rm -rf conftest*
  7591. eval "ac_cv_header_$ac_safe=no"
  7592. fi
  7593. rm -f conftest*
  7594. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7595. echo "$ac_t""yes" 1>&6
  7596. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7597. cat >> confdefs.h <<EOF
  7598. #define $ac_tr_hdr 1
  7599. EOF
  7600. else
  7601. echo "$ac_t""no" 1>&6
  7602. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  7603. fi
  7604. done
  7605. CPPFLAGS=$ac_save_cppflags
  7606. # With OpenGL library directory
  7607. echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
  7608. echo "configure:9494: checking for location of OpenGL library" >&5
  7609. case "$with_opengl_libs" in
  7610. y | ye | yes | n | no)
  7611. { echo "configure: error: *** You must supply a directory to --with-opengl-libs." 1>&2; exit 1; }
  7612. ;;
  7613. esac
  7614. echo "$ac_t""$with_opengl_libs" 1>&6
  7615. if test -n "$with_opengl_libs"; then
  7616. for dir in $with_opengl_libs; do
  7617. if test -d "$dir"; then
  7618. OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
  7619. else
  7620. { echo "configure: error: *** OpenGL library directory $dir does not exist." 1>&2; exit 1; }
  7621. fi
  7622. done
  7623. fi
  7624. ac_save_ldflags="$LDFLAGS"
  7625. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7626. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7627. echo "configure:9523: checking for glBegin in -lGL" >&5
  7628. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7629. ac_save_LIBS="$LIBS"
  7630. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
  7631. cat > conftest.$ac_ext <<EOF
  7632. #line 9529 "configure"
  7633. #include "confdefs.h"
  7634. /* Override any gcc2 internal prototype to avoid an error. */
  7635. /* We use char because int might match the return type of a gcc2
  7636. builtin and then its argument prototype would still apply. */
  7637. char glBegin();
  7638. int main() {
  7639. glBegin()
  7640. ; return 0; }
  7641. EOF
  7642. if { (eval echo configure:9540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7643. rm -rf conftest*
  7644. eval "ac_cv_lib_$ac_lib_var=yes"
  7645. else
  7646. echo "configure: failed program was:" >&5
  7647. cat conftest.$ac_ext >&5
  7648. rm -rf conftest*
  7649. eval "ac_cv_lib_$ac_lib_var=no"
  7650. fi
  7651. rm -f conftest*
  7652. LIBS="$ac_save_LIBS"
  7653. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7654. echo "$ac_t""yes" 1>&6
  7655. OPENGLLIB="$OPENGLLIB -lGL "
  7656. else
  7657. echo "$ac_t""no" 1>&6
  7658. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7659. echo "configure:9559: checking for glBegin in -lGL" >&5
  7660. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7661. ac_save_LIBS="$LIBS"
  7662. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lXext $LIBS"
  7663. cat > conftest.$ac_ext <<EOF
  7664. #line 9565 "configure"
  7665. #include "confdefs.h"
  7666. /* Override any gcc2 internal prototype to avoid an error. */
  7667. /* We use char because int might match the return type of a gcc2
  7668. builtin and then its argument prototype would still apply. */
  7669. char glBegin();
  7670. int main() {
  7671. glBegin()
  7672. ; return 0; }
  7673. EOF
  7674. if { (eval echo configure:9576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7675. rm -rf conftest*
  7676. eval "ac_cv_lib_$ac_lib_var=yes"
  7677. else
  7678. echo "configure: failed program was:" >&5
  7679. cat conftest.$ac_ext >&5
  7680. rm -rf conftest*
  7681. eval "ac_cv_lib_$ac_lib_var=no"
  7682. fi
  7683. rm -f conftest*
  7684. LIBS="$ac_save_LIBS"
  7685. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7686. echo "$ac_t""yes" 1>&6
  7687. OPENGLLIB="$OPENGLLIB -lGL -lXext"
  7688. else
  7689. echo "$ac_t""no" 1>&6
  7690. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7691. echo "configure:9595: checking for glBegin in -lGL" >&5
  7692. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7693. ac_save_LIBS="$LIBS"
  7694. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread $LIBS"
  7695. cat > conftest.$ac_ext <<EOF
  7696. #line 9601 "configure"
  7697. #include "confdefs.h"
  7698. /* Override any gcc2 internal prototype to avoid an error. */
  7699. /* We use char because int might match the return type of a gcc2
  7700. builtin and then its argument prototype would still apply. */
  7701. char glBegin();
  7702. int main() {
  7703. glBegin()
  7704. ; return 0; }
  7705. EOF
  7706. if { (eval echo configure:9612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7707. rm -rf conftest*
  7708. eval "ac_cv_lib_$ac_lib_var=yes"
  7709. else
  7710. echo "configure: failed program was:" >&5
  7711. cat conftest.$ac_ext >&5
  7712. rm -rf conftest*
  7713. eval "ac_cv_lib_$ac_lib_var=no"
  7714. fi
  7715. rm -f conftest*
  7716. LIBS="$ac_save_LIBS"
  7717. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7718. echo "$ac_t""yes" 1>&6
  7719. OPENGLLIB="$OPENGLLIB -lGL -lpthread"
  7720. else
  7721. echo "$ac_t""no" 1>&6
  7722. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7723. echo "configure:9631: checking for glBegin in -lGL" >&5
  7724. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7725. ac_save_LIBS="$LIBS"
  7726. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread -lXext $LIBS"
  7727. cat > conftest.$ac_ext <<EOF
  7728. #line 9637 "configure"
  7729. #include "confdefs.h"
  7730. /* Override any gcc2 internal prototype to avoid an error. */
  7731. /* We use char because int might match the return type of a gcc2
  7732. builtin and then its argument prototype would still apply. */
  7733. char glBegin();
  7734. int main() {
  7735. glBegin()
  7736. ; return 0; }
  7737. EOF
  7738. if { (eval echo configure:9648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7739. rm -rf conftest*
  7740. eval "ac_cv_lib_$ac_lib_var=yes"
  7741. else
  7742. echo "configure: failed program was:" >&5
  7743. cat conftest.$ac_ext >&5
  7744. rm -rf conftest*
  7745. eval "ac_cv_lib_$ac_lib_var=no"
  7746. fi
  7747. rm -f conftest*
  7748. LIBS="$ac_save_LIBS"
  7749. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7750. echo "$ac_t""yes" 1>&6
  7751. OPENGLLIB="$OPENGLLIB -lGL -lpthread -lXext"
  7752. else
  7753. echo "$ac_t""no" 1>&6
  7754. LDFLAGS=${ac_save_ldflags}
  7755. { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
  7756. fi
  7757. fi
  7758. fi
  7759. fi
  7760. LDFLAGS=${ac_save_ldflags}
  7761. ac_save_ldflags="$LDFLAGS"
  7762. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7763. echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
  7764. echo "configure:9710: checking for gluBeginCurve in -lGLU" >&5
  7765. ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
  7766. ac_save_LIBS="$LIBS"
  7767. LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
  7768. cat > conftest.$ac_ext <<EOF
  7769. #line 9716 "configure"
  7770. #include "confdefs.h"
  7771. /* Override any gcc2 internal prototype to avoid an error. */
  7772. /* We use char because int might match the return type of a gcc2
  7773. builtin and then its argument prototype would still apply. */
  7774. char gluBeginCurve();
  7775. int main() {
  7776. gluBeginCurve()
  7777. ; return 0; }
  7778. EOF
  7779. if { (eval echo configure:9727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7780. rm -rf conftest*
  7781. eval "ac_cv_lib_$ac_lib_var=yes"
  7782. else
  7783. echo "configure: failed program was:" >&5
  7784. cat conftest.$ac_ext >&5
  7785. rm -rf conftest*
  7786. eval "ac_cv_lib_$ac_lib_var=no"
  7787. fi
  7788. rm -f conftest*
  7789. LIBS="$ac_save_LIBS"
  7790. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7791. echo "$ac_t""yes" 1>&6
  7792. OPENGLULIB="$OPENGLULIB -lGLU "
  7793. else
  7794. echo "$ac_t""no" 1>&6
  7795. echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
  7796. echo "configure:9746: checking for gluBeginCurve in -lGLU" >&5
  7797. ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
  7798. ac_save_LIBS="$LIBS"
  7799. LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lstdc++ $LIBS"
  7800. cat > conftest.$ac_ext <<EOF
  7801. #line 9752 "configure"
  7802. #include "confdefs.h"
  7803. /* Override any gcc2 internal prototype to avoid an error. */
  7804. /* We use char because int might match the return type of a gcc2
  7805. builtin and then its argument prototype would still apply. */
  7806. char gluBeginCurve();
  7807. int main() {
  7808. gluBeginCurve()
  7809. ; return 0; }
  7810. EOF
  7811. if { (eval echo configure:9763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7812. rm -rf conftest*
  7813. eval "ac_cv_lib_$ac_lib_var=yes"
  7814. else
  7815. echo "configure: failed program was:" >&5
  7816. cat conftest.$ac_ext >&5
  7817. rm -rf conftest*
  7818. eval "ac_cv_lib_$ac_lib_var=no"
  7819. fi
  7820. rm -f conftest*
  7821. LIBS="$ac_save_LIBS"
  7822. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7823. echo "$ac_t""yes" 1>&6
  7824. OPENGLULIB="$OPENGLULIB -lGLU -lstdc++"
  7825. else
  7826. echo "$ac_t""no" 1>&6
  7827. LDFLAGS=${ac_save_ldflags}
  7828. { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
  7829. fi
  7830. fi
  7831. LDFLAGS=${ac_save_ldflags}
  7832. OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
  7833. OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
  7834. ac_save_libs="$LIBS"
  7835. ac_save_ldflags="$LDFLAGS"
  7836. LIBS=" $OPENGLLIB $LIBS"
  7837. LDFLAGS=" $LDFLAGS"
  7838. echo $ac_n "checking for glXCreatePbuffer""... $ac_c" 1>&6
  7839. echo "configure:9810: checking for glXCreatePbuffer" >&5
  7840. cat > conftest.$ac_ext <<EOF
  7841. #line 9813 "configure"
  7842. #include "confdefs.h"
  7843. /* System header to define __stub macros and hopefully few prototypes,
  7844. which can conflict with char glXCreatePbuffer(); below. */
  7845. #include <assert.h>
  7846. /* Override any gcc2 internal prototype to avoid an error. */
  7847. /* We use char because int might match the return type of a gcc2
  7848. builtin and then its argument prototype would still apply. */
  7849. char glXCreatePbuffer();
  7850. int main() {
  7851. /* The GNU C library defines this for functions which it implements
  7852. to always fail with ENOSYS. Some functions are actually named
  7853. something starting with __ and the normal name is an alias. */
  7854. #if defined (__stub_glXCreatePbuffer) || defined (__stub___glXCreatePbuffer)
  7855. choke me
  7856. #else
  7857. glXCreatePbuffer();
  7858. #endif
  7859. ; return 0; }
  7860. EOF
  7861. if { (eval echo configure:9836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7862. rm -rf conftest*
  7863. eval "ac_cv_func_glXCreatePbuffer=yes"
  7864. else
  7865. echo "configure: failed program was:" >&5
  7866. cat conftest.$ac_ext >&5
  7867. rm -rf conftest*
  7868. eval "ac_cv_func_glXCreatePbuffer=no"
  7869. fi
  7870. rm -f conftest*
  7871. if eval "test \"`echo '$ac_cv_func_'glXCreatePbuffer`\" = yes"; then
  7872. echo "$ac_t""yes" 1>&6
  7873. cat >> confdefs.h <<\EOF
  7874. #define HAVE_PBUFFERS 1
  7875. EOF
  7876. else
  7877. echo "$ac_t""no" 1>&6
  7878. { echo "configure: error: *** Unable to locate glXCreatePbuffer." 1>&2; exit 1; }
  7879. fi
  7880. LIBS=${ac_save_libs}
  7881. LDFLAGS=${ac_save_ldflags}
  7882. ac_save_libs="$LIBS"
  7883. ac_save_ldflags="$LDFLAGS"
  7884. LIBS=" $OPENGLLIB $LIBS"
  7885. LDFLAGS=" $LDFLAGS"
  7886. echo $ac_n "checking for glXCreateGLXPixmap""... $ac_c" 1>&6
  7887. echo "configure:9873: checking for glXCreateGLXPixmap" >&5
  7888. cat > conftest.$ac_ext <<EOF
  7889. #line 9876 "configure"
  7890. #include "confdefs.h"
  7891. /* System header to define __stub macros and hopefully few prototypes,
  7892. which can conflict with char glXCreateGLXPixmap(); below. */
  7893. #include <assert.h>
  7894. /* Override any gcc2 internal prototype to avoid an error. */
  7895. /* We use char because int might match the return type of a gcc2
  7896. builtin and then its argument prototype would still apply. */
  7897. char glXCreateGLXPixmap();
  7898. int main() {
  7899. /* The GNU C library defines this for functions which it implements
  7900. to always fail with ENOSYS. Some functions are actually named
  7901. something starting with __ and the normal name is an alias. */
  7902. #if defined (__stub_glXCreateGLXPixmap) || defined (__stub___glXCreateGLXPixmap)
  7903. choke me
  7904. #else
  7905. glXCreateGLXPixmap();
  7906. #endif
  7907. ; return 0; }
  7908. EOF
  7909. if { (eval echo configure:9899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7910. rm -rf conftest*
  7911. eval "ac_cv_func_glXCreateGLXPixmap=yes"
  7912. else
  7913. echo "configure: failed program was:" >&5
  7914. cat conftest.$ac_ext >&5
  7915. rm -rf conftest*
  7916. eval "ac_cv_func_glXCreateGLXPixmap=no"
  7917. fi
  7918. rm -f conftest*
  7919. if eval "test \"`echo '$ac_cv_func_'glXCreateGLXPixmap`\" = yes"; then
  7920. echo "$ac_t""yes" 1>&6
  7921. cat >> confdefs.h <<\EOF
  7922. #define HAVE_PIXMAPS 1
  7923. EOF
  7924. else
  7925. echo "$ac_t""no" 1>&6
  7926. { echo "configure: error: *** Unable to locate glXCreateGLXPixmap." 1>&2; exit 1; }
  7927. fi
  7928. LIBS=${ac_save_libs}
  7929. LDFLAGS=${ac_save_ldflags}
  7930. cat >> confdefs.h <<\EOF
  7931. #define OPENGL_X11 1
  7932. EOF
  7933. fi # $OPENGL_X11
  7934. if test "$OPENGL_AQUA" = 1 ; then
  7935. echo $ac_n "checking for location of OpenGL framework""... $ac_c" 1>&6
  7936. echo "configure:9942: checking for location of OpenGL framework" >&5
  7937. case "$with_opengl_framework" in
  7938. y | ye | yes | n | no)
  7939. { echo "configure: error: *** You must supply a directory to --with-opengl-framework." 1>&2; exit 1; }
  7940. ;;
  7941. esac
  7942. echo "$ac_t""$with_opengl_framework" 1>&6
  7943. if test -n "$with_opengl_framework"; then
  7944. if test -d $with_opengl_framework; then
  7945. OPENGLPATH="$OPENGLPATH -F$with_opengl_framework"
  7946. else
  7947. { echo "configure: error: *** OpenGL framework directory $dir does not exist." 1>&2; exit 1; }
  7948. fi
  7949. fi
  7950. ac_save_cppflags="$CPPFLAGS"
  7951. CPPFLAGS="$OPENGLPATH $CPPFLAGS"
  7952. for ac_hdr in OpenGL/gl.h OpenGL/glu.h
  7953. do
  7954. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7955. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7956. echo "configure:9966: checking for $ac_hdr" >&5
  7957. cat > conftest.$ac_ext <<EOF
  7958. #line 9969 "configure"
  7959. #include "confdefs.h"
  7960. #include <$ac_hdr>
  7961. EOF
  7962. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7963. { (eval echo configure:9974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7964. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7965. if test -z "$ac_err"; then
  7966. rm -rf conftest*
  7967. eval "ac_cv_header_$ac_safe=yes"
  7968. else
  7969. echo "$ac_err" >&5
  7970. echo "configure: failed program was:" >&5
  7971. cat conftest.$ac_ext >&5
  7972. rm -rf conftest*
  7973. eval "ac_cv_header_$ac_safe=no"
  7974. fi
  7975. rm -f conftest*
  7976. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7977. echo "$ac_t""yes" 1>&6
  7978. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7979. cat >> confdefs.h <<EOF
  7980. #define $ac_tr_hdr 1
  7981. EOF
  7982. else
  7983. echo "$ac_t""no" 1>&6
  7984. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  7985. fi
  7986. done
  7987. CPPFLAGS=$ac_save_cppflags
  7988. ac_save_libs="$LIBS"
  7989. ac_save_ldflags="$LDFLAGS"
  7990. LIBS="-framework OpenGL -framework AGL -framework ApplicationServices $LIBS"
  7991. LDFLAGS="$OPENGLPATH $LDFLAGS"
  7992. echo $ac_n "checking for glBegin""... $ac_c" 1>&6
  7993. echo "configure:10010: checking for glBegin" >&5
  7994. cat > conftest.$ac_ext <<EOF
  7995. #line 10013 "configure"
  7996. #include "confdefs.h"
  7997. /* System header to define __stub macros and hopefully few prototypes,
  7998. which can conflict with char glBegin(); below. */
  7999. #include <assert.h>
  8000. /* Override any gcc2 internal prototype to avoid an error. */
  8001. /* We use char because int might match the return type of a gcc2
  8002. builtin and then its argument prototype would still apply. */
  8003. char glBegin();
  8004. int main() {
  8005. /* The GNU C library defines this for functions which it implements
  8006. to always fail with ENOSYS. Some functions are actually named
  8007. something starting with __ and the normal name is an alias. */
  8008. #if defined (__stub_glBegin) || defined (__stub___glBegin)
  8009. choke me
  8010. #else
  8011. glBegin();
  8012. #endif
  8013. ; return 0; }
  8014. EOF
  8015. if { (eval echo configure:10036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8016. rm -rf conftest*
  8017. eval "ac_cv_func_glBegin=yes"
  8018. else
  8019. echo "configure: failed program was:" >&5
  8020. cat conftest.$ac_ext >&5
  8021. rm -rf conftest*
  8022. eval "ac_cv_func_glBegin=no"
  8023. fi
  8024. rm -f conftest*
  8025. if eval "test \"`echo '$ac_cv_func_'glBegin`\" = yes"; then
  8026. echo "$ac_t""yes" 1>&6
  8027. OPENGLLIB="$OPENGLLIB -framework OpenGL -framework AGL -framework ApplicationServices"
  8028. else
  8029. echo "$ac_t""no" 1>&6
  8030. { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
  8031. fi
  8032. LIBS=${ac_save_libs}
  8033. LDFLAGS=${ac_save_ldflags}
  8034. ac_save_libs="$LIBS"
  8035. ac_save_ldflags="$LDFLAGS"
  8036. LIBS=" $OPENGLLIB $LIBS"
  8037. LDFLAGS="$OPENGLPATH $LDFLAGS"
  8038. echo $ac_n "checking for gluBeginCurve""... $ac_c" 1>&6
  8039. echo "configure:10073: checking for gluBeginCurve" >&5
  8040. cat > conftest.$ac_ext <<EOF
  8041. #line 10076 "configure"
  8042. #include "confdefs.h"
  8043. /* System header to define __stub macros and hopefully few prototypes,
  8044. which can conflict with char gluBeginCurve(); below. */
  8045. #include <assert.h>
  8046. /* Override any gcc2 internal prototype to avoid an error. */
  8047. /* We use char because int might match the return type of a gcc2
  8048. builtin and then its argument prototype would still apply. */
  8049. char gluBeginCurve();
  8050. int main() {
  8051. /* The GNU C library defines this for functions which it implements
  8052. to always fail with ENOSYS. Some functions are actually named
  8053. something starting with __ and the normal name is an alias. */
  8054. #if defined (__stub_gluBeginCurve) || defined (__stub___gluBeginCurve)
  8055. choke me
  8056. #else
  8057. gluBeginCurve();
  8058. #endif
  8059. ; return 0; }
  8060. EOF
  8061. if { (eval echo configure:10099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8062. rm -rf conftest*
  8063. eval "ac_cv_func_gluBeginCurve=yes"
  8064. else
  8065. echo "configure: failed program was:" >&5
  8066. cat conftest.$ac_ext >&5
  8067. rm -rf conftest*
  8068. eval "ac_cv_func_gluBeginCurve=no"
  8069. fi
  8070. rm -f conftest*
  8071. if eval "test \"`echo '$ac_cv_func_'gluBeginCurve`\" = yes"; then
  8072. echo "$ac_t""yes" 1>&6
  8073. OPENGLLIB="$OPENGLLIB "
  8074. else
  8075. echo "$ac_t""no" 1>&6
  8076. { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
  8077. fi
  8078. LIBS=${ac_save_libs}
  8079. LDFLAGS=${ac_save_ldflags}
  8080. OPENGLINC="$OPENGLPATH"
  8081. OPENGLLIBPATH="$OPENGLPATH"
  8082. cat >> confdefs.h <<\EOF
  8083. #define OPENGL_AQUA 1
  8084. EOF
  8085. fi # $OPENGL_AQUA
  8086. if test "$OPENGL_WINDOWS" = 1 ; then
  8087. # With OpenGL includes directory
  8088. echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
  8089. echo "configure:10147: checking for location of OpenGL includes" >&5
  8090. case "$with_opengl_includes" in
  8091. y | ye | yes | n | no)
  8092. { echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
  8093. ;;
  8094. esac
  8095. echo "$ac_t""$with_opengl_includes" 1>&6
  8096. if test -n "$with_opengl_includes" ; then
  8097. for dir in $with_opengl_includes; do
  8098. if test -d "$dir"; then
  8099. OPENGLINC="$OPENGLINC -I$dir"
  8100. else
  8101. { echo "configure: error: *** OpenGL includes directory $dir does not exist." 1>&2; exit 1; }
  8102. fi
  8103. done
  8104. fi
  8105. ac_save_cppflags="$CPPFLAGS"
  8106. CPPFLAGS="$OPENGLINC $CPPFLAGS"
  8107. for ac_hdr in GL/gl.h GL/glu.h
  8108. do
  8109. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8110. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8111. echo "configure:10173: checking for $ac_hdr" >&5
  8112. cat > conftest.$ac_ext <<EOF
  8113. #line 10176 "configure"
  8114. #include "confdefs.h"
  8115. #include <$ac_hdr>
  8116. EOF
  8117. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8118. { (eval echo configure:10181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8119. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8120. if test -z "$ac_err"; then
  8121. rm -rf conftest*
  8122. eval "ac_cv_header_$ac_safe=yes"
  8123. else
  8124. echo "$ac_err" >&5
  8125. echo "configure: failed program was:" >&5
  8126. cat conftest.$ac_ext >&5
  8127. rm -rf conftest*
  8128. eval "ac_cv_header_$ac_safe=no"
  8129. fi
  8130. rm -f conftest*
  8131. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8132. echo "$ac_t""yes" 1>&6
  8133. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8134. cat >> confdefs.h <<EOF
  8135. #define $ac_tr_hdr 1
  8136. EOF
  8137. else
  8138. echo "$ac_t""no" 1>&6
  8139. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  8140. fi
  8141. done
  8142. CPPFLAGS=$ac_save_cppflags
  8143. # With OpenGL library directory
  8144. echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
  8145. echo "configure:10215: checking for location of OpenGL library" >&5
  8146. case "$with_opengl_libs" in
  8147. y | ye | yes | n | no)
  8148. { echo "configure: error: *** You must supply a directory to --with-opengl-libs." 1>&2; exit 1; }
  8149. ;;
  8150. esac
  8151. echo "$ac_t""$with_opengl_libs" 1>&6
  8152. if test -n "$with_opengl_libs"; then
  8153. for dir in $with_opengl_libs; do
  8154. if test -d "$dir"; then
  8155. OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
  8156. else
  8157. { echo "configure: error: *** OpenGL library directory $dir does not exist." 1>&2; exit 1; }
  8158. fi
  8159. done
  8160. fi
  8161. ac_save_cflags="$CFLAGS"
  8162. CFLAGS="$CFLAGS $OPENGLINC"
  8163. ac_save_ldflags="$LDFLAGS"
  8164. ac_save_libs="$LIBS"
  8165. echo $ac_n "checking for OpenGL library""... $ac_c" 1>&6
  8166. echo "configure:10240: checking for OpenGL library" >&5
  8167. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  8168. LIBS="-lopengl32 "
  8169. cat > conftest.$ac_ext <<EOF
  8170. #line 10244 "configure"
  8171. #include "confdefs.h"
  8172. #include <GL/gl.h>
  8173. int main() {
  8174. glEnd();
  8175. ; return 0; }
  8176. EOF
  8177. if { (eval echo configure:10251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8178. rm -rf conftest*
  8179. echo "$ac_t""found" 1>&6
  8180. OPENGLLIB="$OPENGLLIB -lopengl32 "
  8181. else
  8182. echo "configure: failed program was:" >&5
  8183. cat conftest.$ac_ext >&5
  8184. rm -rf conftest*
  8185. { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
  8186. fi
  8187. rm -f conftest*
  8188. LIBS=${ac_save_libs}
  8189. LDFLAGS=${ac_save_ldflags}
  8190. ac_save_ldflags="$LDFLAGS"
  8191. ac_save_libs="$LIBS"
  8192. echo $ac_n "checking for GLU library""... $ac_c" 1>&6
  8193. echo "configure:10275: checking for GLU library" >&5
  8194. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  8195. LIBS="-lglu32 $OPENGLLIB "
  8196. cat > conftest.$ac_ext <<EOF
  8197. #line 10279 "configure"
  8198. #include "confdefs.h"
  8199. #include <GL/glu.h>
  8200. int main() {
  8201. gluNewQuadric();
  8202. ; return 0; }
  8203. EOF
  8204. if { (eval echo configure:10286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8205. rm -rf conftest*
  8206. echo "$ac_t""found" 1>&6
  8207. OPENGLULIB="$OPENGLULIB -lglu32 "
  8208. else
  8209. echo "configure: failed program was:" >&5
  8210. cat conftest.$ac_ext >&5
  8211. rm -rf conftest*
  8212. { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
  8213. fi
  8214. rm -f conftest*
  8215. LIBS=${ac_save_libs}
  8216. LDFLAGS=${ac_save_ldflags}
  8217. CFLAGS="${ac_save_cflags}"
  8218. OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
  8219. OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
  8220. cat >> confdefs.h <<\EOF
  8221. #define OPENGL_WINDOWS 1
  8222. EOF
  8223. fi # $OPENGL_WINDOWS
  8224. fi # $USE_OPENGL
  8225. # Done checking OpenGL
  8226. # Enable TCLTK option
  8227. echo $ac_n "checking whether to use Tcl/Tk""... $ac_c" 1>&6
  8228. echo "configure:10335: checking whether to use Tcl/Tk" >&5
  8229. echo "$ac_t"""$with_tcltk"" 1>&6
  8230. case "$with_tcltk" in
  8231. "no") USE_TCLTK= ;;
  8232. "yes") USE_TCLTK="1" ;;
  8233. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8234. esac
  8235. TCLINCDIR=
  8236. TCLTKLIBPATH=
  8237. TCLTKLIBS=
  8238. if test -n "$USE_TCLTK"; then
  8239. # With Tcl/Tk includes directory
  8240. echo $ac_n "checking for location of Tcl/Tk includes""... $ac_c" 1>&6
  8241. echo "configure:10355: checking for location of Tcl/Tk includes" >&5
  8242. case "$with_tcltk_includes" in
  8243. y | ye | yes | n | no)
  8244. { echo "configure: error: *** You must supply a directory to --with-tcltk-includes." 1>&2; exit 1; }
  8245. ;;
  8246. esac
  8247. echo "$ac_t""$with_tcltk_includes" 1>&6
  8248. if test -n "$with_tcltk_includes" ; then
  8249. for dir in $with_tcltk_includes; do
  8250. if test -d "$dir"; then
  8251. TCLINCDIR="$TCLINCDIR -I$dir"
  8252. else
  8253. { echo "configure: error: *** Tcl/Tk includes directory $dir does not exist." 1>&2; exit 1; }
  8254. fi
  8255. done
  8256. fi
  8257. ac_save_cppflags="$CPPFLAGS"
  8258. CPPFLAGS="$TCLINCDIR $CPPFLAGS"
  8259. for ac_hdr in tcl.h
  8260. do
  8261. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8262. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8263. echo "configure:10381: checking for $ac_hdr" >&5
  8264. cat > conftest.$ac_ext <<EOF
  8265. #line 10384 "configure"
  8266. #include "confdefs.h"
  8267. #include <$ac_hdr>
  8268. EOF
  8269. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8270. { (eval echo configure:10389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8271. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8272. if test -z "$ac_err"; then
  8273. rm -rf conftest*
  8274. eval "ac_cv_header_$ac_safe=yes"
  8275. else
  8276. echo "$ac_err" >&5
  8277. echo "configure: failed program was:" >&5
  8278. cat conftest.$ac_ext >&5
  8279. rm -rf conftest*
  8280. eval "ac_cv_header_$ac_safe=no"
  8281. fi
  8282. rm -f conftest*
  8283. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8284. echo "$ac_t""yes" 1>&6
  8285. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8286. cat >> confdefs.h <<EOF
  8287. #define $ac_tr_hdr 1
  8288. EOF
  8289. else
  8290. echo "$ac_t""no" 1>&6
  8291. { echo "configure: error: *** Unable to locate Tcl includes." 1>&2; exit 1; }
  8292. fi
  8293. done
  8294. CPPFLAGS=$ac_save_cppflags
  8295. ac_save_cppflags="$CPPFLAGS"
  8296. CPPFLAGS="$TCLINCDIR $X_CFLAGS $CPPFLAGS"
  8297. for ac_hdr in tk.h
  8298. do
  8299. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8300. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8301. echo "configure:10426: checking for $ac_hdr" >&5
  8302. cat > conftest.$ac_ext <<EOF
  8303. #line 10429 "configure"
  8304. #include "confdefs.h"
  8305. #include <$ac_hdr>
  8306. EOF
  8307. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8308. { (eval echo configure:10434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8309. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8310. if test -z "$ac_err"; then
  8311. rm -rf conftest*
  8312. eval "ac_cv_header_$ac_safe=yes"
  8313. else
  8314. echo "$ac_err" >&5
  8315. echo "configure: failed program was:" >&5
  8316. cat conftest.$ac_ext >&5
  8317. rm -rf conftest*
  8318. eval "ac_cv_header_$ac_safe=no"
  8319. fi
  8320. rm -f conftest*
  8321. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8322. echo "$ac_t""yes" 1>&6
  8323. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8324. cat >> confdefs.h <<EOF
  8325. #define $ac_tr_hdr 1
  8326. EOF
  8327. else
  8328. echo "$ac_t""no" 1>&6
  8329. { echo "configure: error: *** Unable to locate Tk includes." 1>&2; exit 1; }
  8330. fi
  8331. done
  8332. CPPFLAGS=$ac_save_cppflags
  8333. # Tcl/Tk version checks
  8334. echo $ac_n "checking Tcl version""... $ac_c" 1>&6
  8335. echo "configure:10468: checking Tcl version" >&5
  8336. ac_save_cppflags="$CPPFLAGS"
  8337. CPPFLAGS="$TCLINCDIR $CPPFLAGS"
  8338. if test "$cross_compiling" = yes; then
  8339. tcl_ver=UNKNOWN
  8340. echo "$ac_t""unknown (cross-compiling)" 1>&6
  8341. else
  8342. cat > conftest.$ac_ext <<EOF
  8343. #line 10476 "configure"
  8344. #include "confdefs.h"
  8345. #include <stdio.h>
  8346. #include <tcl.h>
  8347. int main(void) {
  8348. FILE *fp = fopen("conftestdata","w");
  8349. fputs(TCL_VERSION, fp);
  8350. return 0;
  8351. }
  8352. EOF
  8353. if { (eval echo configure:10488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  8354. then
  8355. tcl_ver=`cat conftestdata`
  8356. echo "$ac_t""$tcl_ver" 1>&6
  8357. else
  8358. echo "configure: failed program was:" >&5
  8359. cat conftest.$ac_ext >&5
  8360. rm -fr conftest*
  8361. { echo "configure: error: *** Could not determine Tcl version." 1>&2; exit 1; }
  8362. fi
  8363. rm -fr conftest*
  8364. fi
  8365. CPPFLAGS=$ac_save_cppflags
  8366. echo $ac_n "checking Tk version""... $ac_c" 1>&6
  8367. echo "configure:10506: checking Tk version" >&5
  8368. ac_save_cppflags="$CPPFLAGS"
  8369. CPPFLAGS="$TCLINCDIR $X_CFLAGS $CPPFLAGS"
  8370. if test "$cross_compiling" = yes; then
  8371. tk_ver=UNKNOWN
  8372. echo "$ac_t""unknown (cross-compiling)" 1>&6
  8373. else
  8374. cat > conftest.$ac_ext <<EOF
  8375. #line 10514 "configure"
  8376. #include "confdefs.h"
  8377. #include <stdio.h>
  8378. #include <tk.h>
  8379. int main(void) {
  8380. FILE *fp = fopen("conftestdata","w");
  8381. fputs(TK_VERSION, fp);
  8382. return 0;
  8383. }
  8384. EOF
  8385. if { (eval echo configure:10526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  8386. then
  8387. tk_ver=`cat conftestdata`
  8388. echo "$ac_t""$tk_ver" 1>&6
  8389. else
  8390. echo "configure: failed program was:" >&5
  8391. cat conftest.$ac_ext >&5
  8392. rm -fr conftest*
  8393. { echo "configure: error: *** Could not determine Tk version." 1>&2; exit 1; }
  8394. fi
  8395. rm -fr conftest*
  8396. fi
  8397. CPPFLAGS=$ac_save_cppflags
  8398. if test "$tcl_ver" = "$tk_ver" ; then
  8399. tcltk_ver="$tcl_ver"
  8400. else
  8401. { echo "configure: error: *** Tcl/Tk version mismatch." 1>&2; exit 1; }
  8402. fi
  8403. # FreeBSD and CygWin don't have a "dot" between major/minor version number
  8404. tcltk_ver2=`echo "$tcltk_ver" | sed 's/\.//g'`
  8405. # With Tcl/Tk library directory
  8406. echo $ac_n "checking for location of Tcl/Tk library""... $ac_c" 1>&6
  8407. echo "configure:10555: checking for location of Tcl/Tk library" >&5
  8408. case "$with_tcltk_libs" in
  8409. y | ye | yes | n | no)
  8410. { echo "configure: error: *** You must supply a directory to --with-tcltk-libs." 1>&2; exit 1; }
  8411. ;;
  8412. esac
  8413. echo "$ac_t""$with_tcltk_libs" 1>&6
  8414. if test -n "$with_tcltk_libs"; then
  8415. for dir in $with_tcltk_libs; do
  8416. if test -d "$dir"; then
  8417. TCLTKLIBPATH="$TCLTKLIBPATH -L$dir"
  8418. else
  8419. { echo "configure: error: *** Tcl/Tk library directory $dir does not exist." 1>&2; exit 1; }
  8420. fi
  8421. done
  8422. fi
  8423. TCLLIB=
  8424. TKLIB=
  8425. MACOSX_ARCHS_TCLTK=
  8426. # Can't test tcl/tk libs on 64bit OSX Aqua for now
  8427. # assume that if OpenGL Aqua, then user specifies TclTk Aqua
  8428. if test "$OPENGL_AQUA" = 1 ; then
  8429. save_CFLAGS="$CFLAGS"
  8430. CFLAGS="`echo \"$CFLAGS\" | sed -E 's/-arch +x86_64//g' | sed -E 's/-arch +ppc64//g'`"
  8431. save_LDFLAGS="$LDFLAGS"
  8432. LDFLAGS="`echo \"$LDFLAGS\" | sed -E 's/-arch +x86_64//g' | sed -E 's/-arch +ppc64//g'`"
  8433. fi
  8434. ac_save_ldflags="$LDFLAGS"
  8435. LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
  8436. echo $ac_n "checking for Tcl_Init in -ltcl""... $ac_c" 1>&6
  8437. echo "configure:10595: checking for Tcl_Init in -ltcl" >&5
  8438. ac_lib_var=`echo tcl'_'Tcl_Init | sed 'y%./+-%__p_%'`
  8439. ac_save_LIBS="$LIBS"
  8440. LIBS="-ltcl $MATHLIB $LIBS"
  8441. cat > conftest.$ac_ext <<EOF
  8442. #line 10601 "configure"
  8443. #include "confdefs.h"
  8444. /* Override any gcc2 internal prototype to avoid an error. */
  8445. /* We use char because int might match the return type of a gcc2
  8446. builtin and then its argument prototype would still apply. */
  8447. char Tcl_Init();
  8448. int main() {
  8449. Tcl_Init()
  8450. ; return 0; }
  8451. EOF
  8452. if { (eval echo configure:10612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8453. rm -rf conftest*
  8454. eval "ac_cv_lib_$ac_lib_var=yes"
  8455. else
  8456. echo "configure: failed program was:" >&5
  8457. cat conftest.$ac_ext >&5
  8458. rm -rf conftest*
  8459. eval "ac_cv_lib_$ac_lib_var=no"
  8460. fi
  8461. rm -f conftest*
  8462. LIBS="$ac_save_LIBS"
  8463. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8464. echo "$ac_t""yes" 1>&6
  8465. TCLLIB="$TCLLIB -ltcl $MATHLIB"
  8466. else
  8467. echo "$ac_t""no" 1>&6
  8468. echo $ac_n "checking for Tcl_Init in -ltcl""... $ac_c" 1>&6
  8469. echo "configure:10631: checking for Tcl_Init in -ltcl" >&5
  8470. ac_lib_var=`echo tcl'_'Tcl_Init | sed 'y%./+-%__p_%'`
  8471. ac_save_LIBS="$LIBS"
  8472. LIBS="-ltcl $MATHLIB $DLLIB $LIBS"
  8473. cat > conftest.$ac_ext <<EOF
  8474. #line 10637 "configure"
  8475. #include "confdefs.h"
  8476. /* Override any gcc2 internal prototype to avoid an error. */
  8477. /* We use char because int might match the return type of a gcc2
  8478. builtin and then its argument prototype would still apply. */
  8479. char Tcl_Init();
  8480. int main() {
  8481. Tcl_Init()
  8482. ; return 0; }
  8483. EOF
  8484. if { (eval echo configure:10648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8485. rm -rf conftest*
  8486. eval "ac_cv_lib_$ac_lib_var=yes"
  8487. else
  8488. echo "configure: failed program was:" >&5
  8489. cat conftest.$ac_ext >&5
  8490. rm -rf conftest*
  8491. eval "ac_cv_lib_$ac_lib_var=no"
  8492. fi
  8493. rm -f conftest*
  8494. LIBS="$ac_save_LIBS"
  8495. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8496. echo "$ac_t""yes" 1>&6
  8497. TCLLIB="$TCLLIB -ltcl $MATHLIB $DLLIB"
  8498. else
  8499. echo "$ac_t""no" 1>&6
  8500. LDFLAGS=${ac_save_ldflags}
  8501. ac_save_ldflags="$LDFLAGS"
  8502. LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
  8503. echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver""... $ac_c" 1>&6
  8504. echo "configure:10675: checking for Tcl_Init in -ltcl$tcltk_ver" >&5
  8505. ac_lib_var=`echo tcl$tcltk_ver'_'Tcl_Init | sed 'y%./+-%__p_%'`
  8506. ac_save_LIBS="$LIBS"
  8507. LIBS="-ltcl$tcltk_ver $MATHLIB $LIBS"
  8508. cat > conftest.$ac_ext <<EOF
  8509. #line 10681 "configure"
  8510. #include "confdefs.h"
  8511. /* Override any gcc2 internal prototype to avoid an error. */
  8512. /* We use char because int might match the return type of a gcc2
  8513. builtin and then its argument prototype would still apply. */
  8514. char Tcl_Init();
  8515. int main() {
  8516. Tcl_Init()
  8517. ; return 0; }
  8518. EOF
  8519. if { (eval echo configure:10692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8520. rm -rf conftest*
  8521. eval "ac_cv_lib_$ac_lib_var=yes"
  8522. else
  8523. echo "configure: failed program was:" >&5
  8524. cat conftest.$ac_ext >&5
  8525. rm -rf conftest*
  8526. eval "ac_cv_lib_$ac_lib_var=no"
  8527. fi
  8528. rm -f conftest*
  8529. LIBS="$ac_save_LIBS"
  8530. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8531. echo "$ac_t""yes" 1>&6
  8532. TCLLIB="$TCLLIB -ltcl$tcltk_ver $MATHLIB"
  8533. else
  8534. echo "$ac_t""no" 1>&6
  8535. echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver""... $ac_c" 1>&6
  8536. echo "configure:10711: checking for Tcl_Init in -ltcl$tcltk_ver" >&5
  8537. ac_lib_var=`echo tcl$tcltk_ver'_'Tcl_Init | sed 'y%./+-%__p_%'`
  8538. ac_save_LIBS="$LIBS"
  8539. LIBS="-ltcl$tcltk_ver $MATHLIB $DLLIB $LIBS"
  8540. cat > conftest.$ac_ext <<EOF
  8541. #line 10717 "configure"
  8542. #include "confdefs.h"
  8543. /* Override any gcc2 internal prototype to avoid an error. */
  8544. /* We use char because int might match the return type of a gcc2
  8545. builtin and then its argument prototype would still apply. */
  8546. char Tcl_Init();
  8547. int main() {
  8548. Tcl_Init()
  8549. ; return 0; }
  8550. EOF
  8551. if { (eval echo configure:10728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8552. rm -rf conftest*
  8553. eval "ac_cv_lib_$ac_lib_var=yes"
  8554. else
  8555. echo "configure: failed program was:" >&5
  8556. cat conftest.$ac_ext >&5
  8557. rm -rf conftest*
  8558. eval "ac_cv_lib_$ac_lib_var=no"
  8559. fi
  8560. rm -f conftest*
  8561. LIBS="$ac_save_LIBS"
  8562. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8563. echo "$ac_t""yes" 1>&6
  8564. TCLLIB="$TCLLIB -ltcl$tcltk_ver $MATHLIB $DLLIB"
  8565. else
  8566. echo "$ac_t""no" 1>&6
  8567. LDFLAGS=${ac_save_ldflags}
  8568. ac_save_ldflags="$LDFLAGS"
  8569. LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
  8570. echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver2""... $ac_c" 1>&6
  8571. echo "configure:10755: checking for Tcl_Init in -ltcl$tcltk_ver2" >&5
  8572. ac_lib_var=`echo tcl$tcltk_ver2'_'Tcl_Init | sed 'y%./+-%__p_%'`
  8573. ac_save_LIBS="$LIBS"
  8574. LIBS="-ltcl$tcltk_ver2 $MATHLIB $LIBS"
  8575. cat > conftest.$ac_ext <<EOF
  8576. #line 10761 "configure"
  8577. #include "confdefs.h"
  8578. /* Override any gcc2 internal prototype to avoid an error. */
  8579. /* We use char because int might match the return type of a gcc2
  8580. builtin and then its argument prototype would still apply. */
  8581. char Tcl_Init();
  8582. int main() {
  8583. Tcl_Init()
  8584. ; return 0; }
  8585. EOF
  8586. if { (eval echo configure:10772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8587. rm -rf conftest*
  8588. eval "ac_cv_lib_$ac_lib_var=yes"
  8589. else
  8590. echo "configure: failed program was:" >&5
  8591. cat conftest.$ac_ext >&5
  8592. rm -rf conftest*
  8593. eval "ac_cv_lib_$ac_lib_var=no"
  8594. fi
  8595. rm -f conftest*
  8596. LIBS="$ac_save_LIBS"
  8597. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8598. echo "$ac_t""yes" 1>&6
  8599. TCLLIB="$TCLLIB -ltcl$tcltk_ver2 $MATHLIB"
  8600. else
  8601. echo "$ac_t""no" 1>&6
  8602. echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver2""... $ac_c" 1>&6
  8603. echo "configure:10791: checking for Tcl_Init in -ltcl$tcltk_ver2" >&5
  8604. ac_lib_var=`echo tcl$tcltk_ver2'_'Tcl_Init | sed 'y%./+-%__p_%'`
  8605. ac_save_LIBS="$LIBS"
  8606. LIBS="-ltcl$tcltk_ver2 $MATHLIB $DLLIB $LIBS"
  8607. cat > conftest.$ac_ext <<EOF
  8608. #line 10797 "configure"
  8609. #include "confdefs.h"
  8610. /* Override any gcc2 internal prototype to avoid an error. */
  8611. /* We use char because int might match the return type of a gcc2
  8612. builtin and then its argument prototype would still apply. */
  8613. char Tcl_Init();
  8614. int main() {
  8615. Tcl_Init()
  8616. ; return 0; }
  8617. EOF
  8618. if { (eval echo configure:10808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8619. rm -rf conftest*
  8620. eval "ac_cv_lib_$ac_lib_var=yes"
  8621. else
  8622. echo "configure: failed program was:" >&5
  8623. cat conftest.$ac_ext >&5
  8624. rm -rf conftest*
  8625. eval "ac_cv_lib_$ac_lib_var=no"
  8626. fi
  8627. rm -f conftest*
  8628. LIBS="$ac_save_LIBS"
  8629. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8630. echo "$ac_t""yes" 1>&6
  8631. TCLLIB="$TCLLIB -ltcl$tcltk_ver2 $MATHLIB $DLLIB"
  8632. else
  8633. echo "$ac_t""no" 1>&6
  8634. LDFLAGS=${ac_save_ldflags}
  8635. { echo "configure: error: *** Unable to locate Tcl library." 1>&2; exit 1; }
  8636. fi
  8637. fi
  8638. LDFLAGS=${ac_save_ldflags}
  8639. fi
  8640. fi
  8641. LDFLAGS=${ac_save_ldflags}
  8642. fi
  8643. fi
  8644. LDFLAGS=${ac_save_ldflags}
  8645. ac_save_ldflags="$LDFLAGS"
  8646. LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
  8647. echo $ac_n "checking for Tk_MainWindow in -ltk""... $ac_c" 1>&6
  8648. echo "configure:10886: checking for Tk_MainWindow in -ltk" >&5
  8649. ac_lib_var=`echo tk'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
  8650. ac_save_LIBS="$LIBS"
  8651. LIBS="-ltk $TCLLIB $MATHLIB $LIBS"
  8652. cat > conftest.$ac_ext <<EOF
  8653. #line 10892 "configure"
  8654. #include "confdefs.h"
  8655. /* Override any gcc2 internal prototype to avoid an error. */
  8656. /* We use char because int might match the return type of a gcc2
  8657. builtin and then its argument prototype would still apply. */
  8658. char Tk_MainWindow();
  8659. int main() {
  8660. Tk_MainWindow()
  8661. ; return 0; }
  8662. EOF
  8663. if { (eval echo configure:10903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8664. rm -rf conftest*
  8665. eval "ac_cv_lib_$ac_lib_var=yes"
  8666. else
  8667. echo "configure: failed program was:" >&5
  8668. cat conftest.$ac_ext >&5
  8669. rm -rf conftest*
  8670. eval "ac_cv_lib_$ac_lib_var=no"
  8671. fi
  8672. rm -f conftest*
  8673. LIBS="$ac_save_LIBS"
  8674. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8675. echo "$ac_t""yes" 1>&6
  8676. TKLIB="$TKLIB -ltk $MATHLIB"
  8677. else
  8678. echo "$ac_t""no" 1>&6
  8679. echo $ac_n "checking for Tk_MainWindow in -ltk""... $ac_c" 1>&6
  8680. echo "configure:10922: checking for Tk_MainWindow in -ltk" >&5
  8681. ac_lib_var=`echo tk'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
  8682. ac_save_LIBS="$LIBS"
  8683. LIBS="-ltk $TCLLIB $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
  8684. cat > conftest.$ac_ext <<EOF
  8685. #line 10928 "configure"
  8686. #include "confdefs.h"
  8687. /* Override any gcc2 internal prototype to avoid an error. */
  8688. /* We use char because int might match the return type of a gcc2
  8689. builtin and then its argument prototype would still apply. */
  8690. char Tk_MainWindow();
  8691. int main() {
  8692. Tk_MainWindow()
  8693. ; return 0; }
  8694. EOF
  8695. if { (eval echo configure:10939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8696. rm -rf conftest*
  8697. eval "ac_cv_lib_$ac_lib_var=yes"
  8698. else
  8699. echo "configure: failed program was:" >&5
  8700. cat conftest.$ac_ext >&5
  8701. rm -rf conftest*
  8702. eval "ac_cv_lib_$ac_lib_var=no"
  8703. fi
  8704. rm -f conftest*
  8705. LIBS="$ac_save_LIBS"
  8706. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8707. echo "$ac_t""yes" 1>&6
  8708. TKLIB="$TKLIB -ltk $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
  8709. else
  8710. echo "$ac_t""no" 1>&6
  8711. LDFLAGS=${ac_save_ldflags}
  8712. ac_save_ldflags="$LDFLAGS"
  8713. LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
  8714. echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver""... $ac_c" 1>&6
  8715. echo "configure:10966: checking for Tk_MainWindow in -ltk$tcltk_ver" >&5
  8716. ac_lib_var=`echo tk$tcltk_ver'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
  8717. ac_save_LIBS="$LIBS"
  8718. LIBS="-ltk$tcltk_ver $TCLLIB $MATHLIB $LIBS"
  8719. cat > conftest.$ac_ext <<EOF
  8720. #line 10972 "configure"
  8721. #include "confdefs.h"
  8722. /* Override any gcc2 internal prototype to avoid an error. */
  8723. /* We use char because int might match the return type of a gcc2
  8724. builtin and then its argument prototype would still apply. */
  8725. char Tk_MainWindow();
  8726. int main() {
  8727. Tk_MainWindow()
  8728. ; return 0; }
  8729. EOF
  8730. if { (eval echo configure:10983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8731. rm -rf conftest*
  8732. eval "ac_cv_lib_$ac_lib_var=yes"
  8733. else
  8734. echo "configure: failed program was:" >&5
  8735. cat conftest.$ac_ext >&5
  8736. rm -rf conftest*
  8737. eval "ac_cv_lib_$ac_lib_var=no"
  8738. fi
  8739. rm -f conftest*
  8740. LIBS="$ac_save_LIBS"
  8741. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8742. echo "$ac_t""yes" 1>&6
  8743. TKLIB="$TKLIB -ltk$tcltk_ver $MATHLIB"
  8744. else
  8745. echo "$ac_t""no" 1>&6
  8746. echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver""... $ac_c" 1>&6
  8747. echo "configure:11002: checking for Tk_MainWindow in -ltk$tcltk_ver" >&5
  8748. ac_lib_var=`echo tk$tcltk_ver'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
  8749. ac_save_LIBS="$LIBS"
  8750. LIBS="-ltk$tcltk_ver $TCLLIB $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
  8751. cat > conftest.$ac_ext <<EOF
  8752. #line 11008 "configure"
  8753. #include "confdefs.h"
  8754. /* Override any gcc2 internal prototype to avoid an error. */
  8755. /* We use char because int might match the return type of a gcc2
  8756. builtin and then its argument prototype would still apply. */
  8757. char Tk_MainWindow();
  8758. int main() {
  8759. Tk_MainWindow()
  8760. ; return 0; }
  8761. EOF
  8762. if { (eval echo configure:11019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8763. rm -rf conftest*
  8764. eval "ac_cv_lib_$ac_lib_var=yes"
  8765. else
  8766. echo "configure: failed program was:" >&5
  8767. cat conftest.$ac_ext >&5
  8768. rm -rf conftest*
  8769. eval "ac_cv_lib_$ac_lib_var=no"
  8770. fi
  8771. rm -f conftest*
  8772. LIBS="$ac_save_LIBS"
  8773. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8774. echo "$ac_t""yes" 1>&6
  8775. TKLIB="$TKLIB -ltk$tcltk_ver $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
  8776. else
  8777. echo "$ac_t""no" 1>&6
  8778. LDFLAGS=${ac_save_ldflags}
  8779. ac_save_ldflags="$LDFLAGS"
  8780. LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
  8781. echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver2""... $ac_c" 1>&6
  8782. echo "configure:11046: checking for Tk_MainWindow in -ltk$tcltk_ver2" >&5
  8783. ac_lib_var=`echo tk$tcltk_ver2'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
  8784. ac_save_LIBS="$LIBS"
  8785. LIBS="-ltk$tcltk_ver2 $TCLLIB $MATHLIB $LIBS"
  8786. cat > conftest.$ac_ext <<EOF
  8787. #line 11052 "configure"
  8788. #include "confdefs.h"
  8789. /* Override any gcc2 internal prototype to avoid an error. */
  8790. /* We use char because int might match the return type of a gcc2
  8791. builtin and then its argument prototype would still apply. */
  8792. char Tk_MainWindow();
  8793. int main() {
  8794. Tk_MainWindow()
  8795. ; return 0; }
  8796. EOF
  8797. if { (eval echo configure:11063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8798. rm -rf conftest*
  8799. eval "ac_cv_lib_$ac_lib_var=yes"
  8800. else
  8801. echo "configure: failed program was:" >&5
  8802. cat conftest.$ac_ext >&5
  8803. rm -rf conftest*
  8804. eval "ac_cv_lib_$ac_lib_var=no"
  8805. fi
  8806. rm -f conftest*
  8807. LIBS="$ac_save_LIBS"
  8808. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8809. echo "$ac_t""yes" 1>&6
  8810. TKLIB="$TKLIB -ltk$tcltk_ver2 $MATHLIB"
  8811. else
  8812. echo "$ac_t""no" 1>&6
  8813. echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver2""... $ac_c" 1>&6
  8814. echo "configure:11082: checking for Tk_MainWindow in -ltk$tcltk_ver2" >&5
  8815. ac_lib_var=`echo tk$tcltk_ver2'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
  8816. ac_save_LIBS="$LIBS"
  8817. LIBS="-ltk$tcltk_ver2 $TCLLIB $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
  8818. cat > conftest.$ac_ext <<EOF
  8819. #line 11088 "configure"
  8820. #include "confdefs.h"
  8821. /* Override any gcc2 internal prototype to avoid an error. */
  8822. /* We use char because int might match the return type of a gcc2
  8823. builtin and then its argument prototype would still apply. */
  8824. char Tk_MainWindow();
  8825. int main() {
  8826. Tk_MainWindow()
  8827. ; return 0; }
  8828. EOF
  8829. if { (eval echo configure:11099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8830. rm -rf conftest*
  8831. eval "ac_cv_lib_$ac_lib_var=yes"
  8832. else
  8833. echo "configure: failed program was:" >&5
  8834. cat conftest.$ac_ext >&5
  8835. rm -rf conftest*
  8836. eval "ac_cv_lib_$ac_lib_var=no"
  8837. fi
  8838. rm -f conftest*
  8839. LIBS="$ac_save_LIBS"
  8840. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8841. echo "$ac_t""yes" 1>&6
  8842. TKLIB="$TKLIB -ltk$tcltk_ver2 $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
  8843. else
  8844. echo "$ac_t""no" 1>&6
  8845. LDFLAGS=${ac_save_ldflags}
  8846. { echo "configure: error: *** Unable to locate Tk library." 1>&2; exit 1; }
  8847. fi
  8848. fi
  8849. LDFLAGS=${ac_save_ldflags}
  8850. fi
  8851. fi
  8852. LDFLAGS=${ac_save_ldflags}
  8853. fi
  8854. fi
  8855. LDFLAGS=${ac_save_ldflags}
  8856. # restore CFLAGS/LDLFAGS from Aqua 64bit strip
  8857. # only Tcl/Tk-based makefiles will strip 64bit out during compile
  8858. if test "$OPENGL_AQUA" = 1 ; then
  8859. CFLAGS="$save_CFLAGS"
  8860. LDFLAGS="$save_LDFLAGS"
  8861. fi
  8862. TCLTKLIBS="$TKLIB $TCLLIB"
  8863. # check for available OSX archs in TclTk
  8864. if test -n "$MACOSX_ARCHS" ; then
  8865. save_LDFLAGS="$LDFLAGS"
  8866. LDFLAGS=
  8867. save_CFLAGS="$CFLAGS"
  8868. CFLAGS=
  8869. tlib=`echo "$TCLLIB" | sed -e 's/-l//' -e 's/^ *//' -e 's/ *$//'`
  8870. for a in i386 ppc x86_64 ppc64
  8871. do
  8872. # add only if in MACOSX_ARCHS
  8873. echo $ac_n "checking for Tcl_Init in -l$tlib""... $ac_c" 1>&6
  8874. echo "configure:11189: checking for Tcl_Init in -l$tlib" >&5
  8875. ac_lib_var=`echo $tlib'_'Tcl_Init | sed 'y%./+-%__p_%'`
  8876. ac_save_LIBS="$LIBS"
  8877. LIBS="-l$tlib -arch $a $MACOSX_SDK $TCLTKLIBPATH $LIBS"
  8878. cat > conftest.$ac_ext <<EOF
  8879. #line 11195 "configure"
  8880. #include "confdefs.h"
  8881. /* Override any gcc2 internal prototype to avoid an error. */
  8882. /* We use char because int might match the return type of a gcc2
  8883. builtin and then its argument prototype would still apply. */
  8884. char Tcl_Init();
  8885. int main() {
  8886. Tcl_Init()
  8887. ; return 0; }
  8888. EOF
  8889. if { (eval echo configure:11206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8890. rm -rf conftest*
  8891. eval "ac_cv_lib_$ac_lib_var=yes"
  8892. else
  8893. echo "configure: failed program was:" >&5
  8894. cat conftest.$ac_ext >&5
  8895. rm -rf conftest*
  8896. eval "ac_cv_lib_$ac_lib_var=no"
  8897. fi
  8898. rm -f conftest*
  8899. LIBS="$ac_save_LIBS"
  8900. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8901. echo "$ac_t""yes" 1>&6
  8902. if test -n "`echo "$MACOSX_ARCHS" | grep $a`" ; then
  8903. MACOSX_ARCHS_TCLTK="$MACOSX_ARCHS_TCLTK -arch $a"
  8904. fi
  8905. else
  8906. echo "$ac_t""no" 1>&6
  8907. fi
  8908. done
  8909. LDFLAGS="$save_LDFLAGS"
  8910. CFLAGS="$save_CFLAGS"
  8911. fi
  8912. cat >> confdefs.h <<\EOF
  8913. #define HAVE_TCLTK 1
  8914. EOF
  8915. fi # $USE_TCLTK
  8916. TKINCDIR=$TCLINCDIR
  8917. # Done checking Tcl/Tk
  8918. # Enable ODBC option
  8919. echo $ac_n "checking whether to use ODBC""... $ac_c" 1>&6
  8920. echo "configure:11256: checking whether to use ODBC" >&5
  8921. echo "$ac_t"""$with_odbc"" 1>&6
  8922. case "$with_odbc" in
  8923. "no") USE_ODBC= ;;
  8924. "yes") USE_ODBC="1" ;;
  8925. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8926. esac
  8927. ODBCINC=
  8928. ODBCLIB=
  8929. if test -n "$USE_ODBC"; then
  8930. # With ODBC includes directory
  8931. echo $ac_n "checking for location of ODBC includes""... $ac_c" 1>&6
  8932. echo "configure:11275: checking for location of ODBC includes" >&5
  8933. case "$with_odbc_includes" in
  8934. y | ye | yes | n | no)
  8935. { echo "configure: error: *** You must supply a directory to --with-odbc-includes." 1>&2; exit 1; }
  8936. ;;
  8937. esac
  8938. echo "$ac_t""$with_odbc_includes" 1>&6
  8939. if test -n "$with_odbc_includes" ; then
  8940. for dir in $with_odbc_includes; do
  8941. if test -d "$dir"; then
  8942. ODBCINC="$ODBCINC -I$dir"
  8943. else
  8944. { echo "configure: error: *** ODBC includes directory $dir does not exist." 1>&2; exit 1; }
  8945. fi
  8946. done
  8947. fi
  8948. ac_save_cppflags="$CPPFLAGS"
  8949. CPPFLAGS="$ODBCINC $CPPFLAGS"
  8950. for ac_hdr in sql.h
  8951. do
  8952. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8953. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8954. echo "configure:11301: checking for $ac_hdr" >&5
  8955. cat > conftest.$ac_ext <<EOF
  8956. #line 11304 "configure"
  8957. #include "confdefs.h"
  8958. #include <$ac_hdr>
  8959. EOF
  8960. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8961. { (eval echo configure:11309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8962. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8963. if test -z "$ac_err"; then
  8964. rm -rf conftest*
  8965. eval "ac_cv_header_$ac_safe=yes"
  8966. else
  8967. echo "$ac_err" >&5
  8968. echo "configure: failed program was:" >&5
  8969. cat conftest.$ac_ext >&5
  8970. rm -rf conftest*
  8971. eval "ac_cv_header_$ac_safe=no"
  8972. fi
  8973. rm -f conftest*
  8974. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8975. echo "$ac_t""yes" 1>&6
  8976. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8977. cat >> confdefs.h <<EOF
  8978. #define $ac_tr_hdr 1
  8979. EOF
  8980. else
  8981. echo "$ac_t""no" 1>&6
  8982. { echo "configure: error: *** Unable to locate ODBC includes." 1>&2; exit 1; }
  8983. fi
  8984. done
  8985. CPPFLAGS=$ac_save_cppflags
  8986. # With ODBC library directory
  8987. echo $ac_n "checking for location of ODBC library""... $ac_c" 1>&6
  8988. echo "configure:11343: checking for location of ODBC library" >&5
  8989. case "$with_odbc_libs" in
  8990. y | ye | yes | n | no)
  8991. { echo "configure: error: *** You must supply a directory to --with-odbc-libs." 1>&2; exit 1; }
  8992. ;;
  8993. esac
  8994. echo "$ac_t""$with_odbc_libs" 1>&6
  8995. if test -n "$with_odbc_libs"; then
  8996. for dir in $with_odbc_libs; do
  8997. if test -d "$dir"; then
  8998. ODBCLIB="$ODBCLIB -L$dir"
  8999. else
  9000. { echo "configure: error: *** ODBC library directory $dir does not exist." 1>&2; exit 1; }
  9001. fi
  9002. done
  9003. fi
  9004. ac_save_ldflags="$LDFLAGS"
  9005. LDFLAGS="$ODBCLIB $LDFLAGS"
  9006. echo $ac_n "checking for SQLConnect in -lodbc""... $ac_c" 1>&6
  9007. echo "configure:11368: checking for SQLConnect in -lodbc" >&5
  9008. ac_lib_var=`echo odbc'_'SQLConnect | sed 'y%./+-%__p_%'`
  9009. ac_save_LIBS="$LIBS"
  9010. LIBS="-lodbc $ICONVLIB $LIBS"
  9011. cat > conftest.$ac_ext <<EOF
  9012. #line 11374 "configure"
  9013. #include "confdefs.h"
  9014. /* Override any gcc2 internal prototype to avoid an error. */
  9015. /* We use char because int might match the return type of a gcc2
  9016. builtin and then its argument prototype would still apply. */
  9017. char SQLConnect();
  9018. int main() {
  9019. SQLConnect()
  9020. ; return 0; }
  9021. EOF
  9022. if { (eval echo configure:11385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9023. rm -rf conftest*
  9024. eval "ac_cv_lib_$ac_lib_var=yes"
  9025. else
  9026. echo "configure: failed program was:" >&5
  9027. cat conftest.$ac_ext >&5
  9028. rm -rf conftest*
  9029. eval "ac_cv_lib_$ac_lib_var=no"
  9030. fi
  9031. rm -f conftest*
  9032. LIBS="$ac_save_LIBS"
  9033. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9034. echo "$ac_t""yes" 1>&6
  9035. ODBCLIB="$ODBCLIB -lodbc "
  9036. else
  9037. echo "$ac_t""no" 1>&6
  9038. LDFLAGS=${ac_save_ldflags}
  9039. ac_save_ldflags="$LDFLAGS"
  9040. LDFLAGS="$ODBCLIB $LDFLAGS"
  9041. echo $ac_n "checking for SQLConnect in -liodbc""... $ac_c" 1>&6
  9042. echo "configure:11410: checking for SQLConnect in -liodbc" >&5
  9043. ac_lib_var=`echo iodbc'_'SQLConnect | sed 'y%./+-%__p_%'`
  9044. ac_save_LIBS="$LIBS"
  9045. LIBS="-liodbc $LIBS"
  9046. cat > conftest.$ac_ext <<EOF
  9047. #line 11416 "configure"
  9048. #include "confdefs.h"
  9049. /* Override any gcc2 internal prototype to avoid an error. */
  9050. /* We use char because int might match the return type of a gcc2
  9051. builtin and then its argument prototype would still apply. */
  9052. char SQLConnect();
  9053. int main() {
  9054. SQLConnect()
  9055. ; return 0; }
  9056. EOF
  9057. if { (eval echo configure:11427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9058. rm -rf conftest*
  9059. eval "ac_cv_lib_$ac_lib_var=yes"
  9060. else
  9061. echo "configure: failed program was:" >&5
  9062. cat conftest.$ac_ext >&5
  9063. rm -rf conftest*
  9064. eval "ac_cv_lib_$ac_lib_var=no"
  9065. fi
  9066. rm -f conftest*
  9067. LIBS="$ac_save_LIBS"
  9068. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9069. echo "$ac_t""yes" 1>&6
  9070. ODBCLIB="$ODBCLIB -liodbc "
  9071. else
  9072. echo "$ac_t""no" 1>&6
  9073. LDFLAGS=${ac_save_ldflags}
  9074. ac_save_cflags="$CFLAGS"
  9075. CFLAGS="$CFLAGS $ODBCINC"
  9076. ac_save_ldflags="$LDFLAGS"
  9077. ac_save_libs="$LIBS"
  9078. echo $ac_n "checking for ODBC library""... $ac_c" 1>&6
  9079. echo "configure:11452: checking for ODBC library" >&5
  9080. LDFLAGS="$ODBCLIB $LDFLAGS"
  9081. LIBS="-lodbc32 "
  9082. cat > conftest.$ac_ext <<EOF
  9083. #line 11456 "configure"
  9084. #include "confdefs.h"
  9085. #include <windows.h>
  9086. #include <sql.h>
  9087. int main() {
  9088. SQLAllocEnv((SQLHENV *)0);
  9089. ; return 0; }
  9090. EOF
  9091. if { (eval echo configure:11464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9092. rm -rf conftest*
  9093. echo "$ac_t""found" 1>&6
  9094. ODBCLIB="$ODBCLIB -lodbc32 "
  9095. else
  9096. echo "configure: failed program was:" >&5
  9097. cat conftest.$ac_ext >&5
  9098. rm -rf conftest*
  9099. { echo "configure: error: *** Unable to locate ODBC library." 1>&2; exit 1; }
  9100. fi
  9101. rm -f conftest*
  9102. LIBS=${ac_save_libs}
  9103. LDFLAGS=${ac_save_ldflags}
  9104. CFLAGS="${ac_save_cflags}"
  9105. fi
  9106. LDFLAGS=${ac_save_ldflags}
  9107. fi
  9108. LDFLAGS=${ac_save_ldflags}
  9109. fi # $USE_ODBC
  9110. # Done checking ODBC
  9111. # Enable FFTW option
  9112. echo $ac_n "checking whether to use FFTW""... $ac_c" 1>&6
  9113. echo "configure:11513: checking whether to use FFTW" >&5
  9114. echo "$ac_t"""$with_fftw"" 1>&6
  9115. case "$with_fftw" in
  9116. "no") USE_FFTW= ;;
  9117. "yes") USE_FFTW="1" ;;
  9118. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9119. esac
  9120. FFTWINC=
  9121. FFTWLIB=
  9122. if test -n "$USE_FFTW"; then
  9123. # With FFTW includes directory
  9124. echo $ac_n "checking for location of FFTW includes""... $ac_c" 1>&6
  9125. echo "configure:11532: checking for location of FFTW includes" >&5
  9126. case "$with_fftw_includes" in
  9127. y | ye | yes | n | no)
  9128. { echo "configure: error: *** You must supply a directory to --with-fftw-includes." 1>&2; exit 1; }
  9129. ;;
  9130. esac
  9131. echo "$ac_t""$with_fftw_includes" 1>&6
  9132. if test -n "$with_fftw_includes" ; then
  9133. for dir in $with_fftw_includes; do
  9134. if test -d "$dir"; then
  9135. FFTWINC="$FFTWINC -I$dir"
  9136. else
  9137. { echo "configure: error: *** FFTW includes directory $dir does not exist." 1>&2; exit 1; }
  9138. fi
  9139. done
  9140. fi
  9141. ac_save_cppflags="$CPPFLAGS"
  9142. CPPFLAGS="$FFTWINC $CPPFLAGS"
  9143. for ac_hdr in fftw3.h
  9144. do
  9145. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9146. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9147. echo "configure:11558: checking for $ac_hdr" >&5
  9148. cat > conftest.$ac_ext <<EOF
  9149. #line 11561 "configure"
  9150. #include "confdefs.h"
  9151. #include <$ac_hdr>
  9152. EOF
  9153. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9154. { (eval echo configure:11566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9155. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9156. if test -z "$ac_err"; then
  9157. rm -rf conftest*
  9158. eval "ac_cv_header_$ac_safe=yes"
  9159. else
  9160. echo "$ac_err" >&5
  9161. echo "configure: failed program was:" >&5
  9162. cat conftest.$ac_ext >&5
  9163. rm -rf conftest*
  9164. eval "ac_cv_header_$ac_safe=no"
  9165. fi
  9166. rm -f conftest*
  9167. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9168. echo "$ac_t""yes" 1>&6
  9169. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9170. cat >> confdefs.h <<EOF
  9171. #define $ac_tr_hdr 1
  9172. EOF
  9173. else
  9174. echo "$ac_t""no" 1>&6
  9175. ac_save_cppflags="$CPPFLAGS"
  9176. CPPFLAGS=" $CPPFLAGS"
  9177. for ac_hdr in fftw.h
  9178. do
  9179. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9180. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9181. echo "configure:11594: checking for $ac_hdr" >&5
  9182. cat > conftest.$ac_ext <<EOF
  9183. #line 11597 "configure"
  9184. #include "confdefs.h"
  9185. #include <$ac_hdr>
  9186. EOF
  9187. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9188. { (eval echo configure:11602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9189. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9190. if test -z "$ac_err"; then
  9191. rm -rf conftest*
  9192. eval "ac_cv_header_$ac_safe=yes"
  9193. else
  9194. echo "$ac_err" >&5
  9195. echo "configure: failed program was:" >&5
  9196. cat conftest.$ac_ext >&5
  9197. rm -rf conftest*
  9198. eval "ac_cv_header_$ac_safe=no"
  9199. fi
  9200. rm -f conftest*
  9201. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9202. echo "$ac_t""yes" 1>&6
  9203. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9204. cat >> confdefs.h <<EOF
  9205. #define $ac_tr_hdr 1
  9206. EOF
  9207. else
  9208. echo "$ac_t""no" 1>&6
  9209. ac_save_cppflags="$CPPFLAGS"
  9210. CPPFLAGS=" $CPPFLAGS"
  9211. for ac_hdr in dfftw.h
  9212. do
  9213. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9214. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9215. echo "configure:11630: checking for $ac_hdr" >&5
  9216. cat > conftest.$ac_ext <<EOF
  9217. #line 11633 "configure"
  9218. #include "confdefs.h"
  9219. #include <$ac_hdr>
  9220. EOF
  9221. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9222. { (eval echo configure:11638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9223. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9224. if test -z "$ac_err"; then
  9225. rm -rf conftest*
  9226. eval "ac_cv_header_$ac_safe=yes"
  9227. else
  9228. echo "$ac_err" >&5
  9229. echo "configure: failed program was:" >&5
  9230. cat conftest.$ac_ext >&5
  9231. rm -rf conftest*
  9232. eval "ac_cv_header_$ac_safe=no"
  9233. fi
  9234. rm -f conftest*
  9235. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9236. echo "$ac_t""yes" 1>&6
  9237. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9238. cat >> confdefs.h <<EOF
  9239. #define $ac_tr_hdr 1
  9240. EOF
  9241. else
  9242. echo "$ac_t""no" 1>&6
  9243. { echo "configure: error: *** Unable to locate FFTW includes." 1>&2; exit 1; }
  9244. fi
  9245. done
  9246. CPPFLAGS=$ac_save_cppflags
  9247. fi
  9248. done
  9249. CPPFLAGS=$ac_save_cppflags
  9250. fi
  9251. done
  9252. CPPFLAGS=$ac_save_cppflags
  9253. # With FFTW library directory
  9254. echo $ac_n "checking for location of FFTW library""... $ac_c" 1>&6
  9255. echo "configure:11684: checking for location of FFTW library" >&5
  9256. case "$with_fftw_libs" in
  9257. y | ye | yes | n | no)
  9258. { echo "configure: error: *** You must supply a directory to --with-fftw-libs." 1>&2; exit 1; }
  9259. ;;
  9260. esac
  9261. echo "$ac_t""$with_fftw_libs" 1>&6
  9262. if test -n "$with_fftw_libs"; then
  9263. for dir in $with_fftw_libs; do
  9264. if test -d "$dir"; then
  9265. FFTWLIB="$FFTWLIB -L$dir"
  9266. else
  9267. { echo "configure: error: *** FFTW library directory $dir does not exist." 1>&2; exit 1; }
  9268. fi
  9269. done
  9270. fi
  9271. ac_save_ldflags="$LDFLAGS"
  9272. LDFLAGS="$FFTWLIB $LDFLAGS"
  9273. echo $ac_n "checking for fftw_execute in -lfftw3""... $ac_c" 1>&6
  9274. echo "configure:11709: checking for fftw_execute in -lfftw3" >&5
  9275. ac_lib_var=`echo fftw3'_'fftw_execute | sed 'y%./+-%__p_%'`
  9276. ac_save_LIBS="$LIBS"
  9277. LIBS="-lfftw3 $MATHLIB $LIBS"
  9278. cat > conftest.$ac_ext <<EOF
  9279. #line 11715 "configure"
  9280. #include "confdefs.h"
  9281. /* Override any gcc2 internal prototype to avoid an error. */
  9282. /* We use char because int might match the return type of a gcc2
  9283. builtin and then its argument prototype would still apply. */
  9284. char fftw_execute();
  9285. int main() {
  9286. fftw_execute()
  9287. ; return 0; }
  9288. EOF
  9289. if { (eval echo configure:11726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9290. rm -rf conftest*
  9291. eval "ac_cv_lib_$ac_lib_var=yes"
  9292. else
  9293. echo "configure: failed program was:" >&5
  9294. cat conftest.$ac_ext >&5
  9295. rm -rf conftest*
  9296. eval "ac_cv_lib_$ac_lib_var=no"
  9297. fi
  9298. rm -f conftest*
  9299. LIBS="$ac_save_LIBS"
  9300. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9301. echo "$ac_t""yes" 1>&6
  9302. FFTWLIB="$FFTWLIB -lfftw3 $MATHLIB"
  9303. else
  9304. echo "$ac_t""no" 1>&6
  9305. LDFLAGS=${ac_save_ldflags}
  9306. ac_save_ldflags="$LDFLAGS"
  9307. LDFLAGS="$FFTWLIB $LDFLAGS"
  9308. echo $ac_n "checking for fftwnd_one in -lfftw""... $ac_c" 1>&6
  9309. echo "configure:11751: checking for fftwnd_one in -lfftw" >&5
  9310. ac_lib_var=`echo fftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
  9311. ac_save_LIBS="$LIBS"
  9312. LIBS="-lfftw $MATHLIB $LIBS"
  9313. cat > conftest.$ac_ext <<EOF
  9314. #line 11757 "configure"
  9315. #include "confdefs.h"
  9316. /* Override any gcc2 internal prototype to avoid an error. */
  9317. /* We use char because int might match the return type of a gcc2
  9318. builtin and then its argument prototype would still apply. */
  9319. char fftwnd_one();
  9320. int main() {
  9321. fftwnd_one()
  9322. ; return 0; }
  9323. EOF
  9324. if { (eval echo configure:11768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9325. rm -rf conftest*
  9326. eval "ac_cv_lib_$ac_lib_var=yes"
  9327. else
  9328. echo "configure: failed program was:" >&5
  9329. cat conftest.$ac_ext >&5
  9330. rm -rf conftest*
  9331. eval "ac_cv_lib_$ac_lib_var=no"
  9332. fi
  9333. rm -f conftest*
  9334. LIBS="$ac_save_LIBS"
  9335. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9336. echo "$ac_t""yes" 1>&6
  9337. FFTWLIB="$FFTWLIB -lfftw $MATHLIB"
  9338. else
  9339. echo "$ac_t""no" 1>&6
  9340. LDFLAGS=${ac_save_ldflags}
  9341. ac_save_ldflags="$LDFLAGS"
  9342. LDFLAGS="$FFTWLIB $LDFLAGS"
  9343. echo $ac_n "checking for fftwnd_one in -ldfftw""... $ac_c" 1>&6
  9344. echo "configure:11793: checking for fftwnd_one in -ldfftw" >&5
  9345. ac_lib_var=`echo dfftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
  9346. ac_save_LIBS="$LIBS"
  9347. LIBS="-ldfftw $MATHLIB $LIBS"
  9348. cat > conftest.$ac_ext <<EOF
  9349. #line 11799 "configure"
  9350. #include "confdefs.h"
  9351. /* Override any gcc2 internal prototype to avoid an error. */
  9352. /* We use char because int might match the return type of a gcc2
  9353. builtin and then its argument prototype would still apply. */
  9354. char fftwnd_one();
  9355. int main() {
  9356. fftwnd_one()
  9357. ; return 0; }
  9358. EOF
  9359. if { (eval echo configure:11810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9360. rm -rf conftest*
  9361. eval "ac_cv_lib_$ac_lib_var=yes"
  9362. else
  9363. echo "configure: failed program was:" >&5
  9364. cat conftest.$ac_ext >&5
  9365. rm -rf conftest*
  9366. eval "ac_cv_lib_$ac_lib_var=no"
  9367. fi
  9368. rm -f conftest*
  9369. LIBS="$ac_save_LIBS"
  9370. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9371. echo "$ac_t""yes" 1>&6
  9372. FFTWLIB="$FFTWLIB -ldfftw $MATHLIB"
  9373. else
  9374. echo "$ac_t""no" 1>&6
  9375. LDFLAGS=${ac_save_ldflags}
  9376. { echo "configure: error: *** Unable to locate FFTW library." 1>&2; exit 1; }
  9377. fi
  9378. LDFLAGS=${ac_save_ldflags}
  9379. fi
  9380. LDFLAGS=${ac_save_ldflags}
  9381. fi
  9382. LDFLAGS=${ac_save_ldflags}
  9383. fi # $USE_FFTW
  9384. # Done checking FFTW
  9385. # Enable BLAS option
  9386. echo $ac_n "checking whether to use BLAS""... $ac_c" 1>&6
  9387. echo "configure:11867: checking whether to use BLAS" >&5
  9388. echo "$ac_t"""$with_blas"" 1>&6
  9389. case "$with_blas" in
  9390. "no") USE_BLAS= ;;
  9391. "yes") USE_BLAS="1" ;;
  9392. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9393. esac
  9394. BLASLIB=
  9395. BLASINC=
  9396. if test -n "$USE_BLAS"; then
  9397. # With BLAS includes directory
  9398. # BLAS doesn't have includes (FORTRAN library)
  9399. # With BLAS library directory
  9400. echo $ac_n "checking for location of BLAS includes""... $ac_c" 1>&6
  9401. echo "configure:11888: checking for location of BLAS includes" >&5
  9402. case "$with_blas_includes" in
  9403. y | ye | yes | n | no)
  9404. { echo "configure: error: *** You must supply a directory to --with-blas-includes." 1>&2; exit 1; }
  9405. ;;
  9406. esac
  9407. echo "$ac_t""$with_blas_includes" 1>&6
  9408. if test -n "$with_blas_includes" ; then
  9409. for dir in $with_blas_includes; do
  9410. if test -d "$dir"; then
  9411. BLASINC="$BLASINC -I$dir"
  9412. else
  9413. { echo "configure: error: *** BLAS includes directory $dir does not exist." 1>&2; exit 1; }
  9414. fi
  9415. done
  9416. fi
  9417. echo $ac_n "checking for location of BLAS library""... $ac_c" 1>&6
  9418. echo "configure:11908: checking for location of BLAS library" >&5
  9419. case "$with_blas_libs" in
  9420. y | ye | yes | n | no)
  9421. { echo "configure: error: *** You must supply a directory to --with-blas-libs." 1>&2; exit 1; }
  9422. ;;
  9423. esac
  9424. echo "$ac_t""$with_blas_libs" 1>&6
  9425. if test -n "$with_blas_libs"; then
  9426. for dir in $with_blas_libs; do
  9427. if test -d "$dir"; then
  9428. BLASLIB="$BLASLIB -L$dir"
  9429. else
  9430. { echo "configure: error: *** BLAS library directory $dir does not exist." 1>&2; exit 1; }
  9431. fi
  9432. done
  9433. fi
  9434. # See if cblas.h exists (CBLAS,ATLAS,others)
  9435. save_CPPFLAGS="$CPPFLAGS"
  9436. CPPFLAGS="$BLASINC $CPPFLAGS"
  9437. for ac_hdr in cblas.h
  9438. do
  9439. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9440. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9441. echo "configure:11934: checking for $ac_hdr" >&5
  9442. cat > conftest.$ac_ext <<EOF
  9443. #line 11937 "configure"
  9444. #include "confdefs.h"
  9445. #include <$ac_hdr>
  9446. EOF
  9447. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9448. { (eval echo configure:11942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9449. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9450. if test -z "$ac_err"; then
  9451. rm -rf conftest*
  9452. eval "ac_cv_header_$ac_safe=yes"
  9453. else
  9454. echo "$ac_err" >&5
  9455. echo "configure: failed program was:" >&5
  9456. cat conftest.$ac_ext >&5
  9457. rm -rf conftest*
  9458. eval "ac_cv_header_$ac_safe=no"
  9459. fi
  9460. rm -f conftest*
  9461. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9462. echo "$ac_t""yes" 1>&6
  9463. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9464. cat >> confdefs.h <<EOF
  9465. #define $ac_tr_hdr 1
  9466. EOF
  9467. else
  9468. echo "$ac_t""no" 1>&6
  9469. fi
  9470. done
  9471. CPPFLAGS="$save_CPPFLAGS"
  9472. ac_save_ldflags="$LDFLAGS"
  9473. LDFLAGS="$BLASLIB $LDFLAGS"
  9474. echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
  9475. echo "configure:11977: checking for dnrm2_ in -lblas" >&5
  9476. ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
  9477. ac_save_LIBS="$LIBS"
  9478. LIBS="-lblas $MATHLIB $LIBS"
  9479. cat > conftest.$ac_ext <<EOF
  9480. #line 11983 "configure"
  9481. #include "confdefs.h"
  9482. /* Override any gcc2 internal prototype to avoid an error. */
  9483. /* We use char because int might match the return type of a gcc2
  9484. builtin and then its argument prototype would still apply. */
  9485. char dnrm2_();
  9486. int main() {
  9487. dnrm2_()
  9488. ; return 0; }
  9489. EOF
  9490. if { (eval echo configure:11994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9491. rm -rf conftest*
  9492. eval "ac_cv_lib_$ac_lib_var=yes"
  9493. else
  9494. echo "configure: failed program was:" >&5
  9495. cat conftest.$ac_ext >&5
  9496. rm -rf conftest*
  9497. eval "ac_cv_lib_$ac_lib_var=no"
  9498. fi
  9499. rm -f conftest*
  9500. LIBS="$ac_save_LIBS"
  9501. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9502. echo "$ac_t""yes" 1>&6
  9503. BLASLIB="$BLASLIB -lblas "
  9504. else
  9505. echo "$ac_t""no" 1>&6
  9506. echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
  9507. echo "configure:12013: checking for dnrm2_ in -lblas" >&5
  9508. ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
  9509. ac_save_LIBS="$LIBS"
  9510. LIBS="-lblas $MATHLIB -lg2c $LIBS"
  9511. cat > conftest.$ac_ext <<EOF
  9512. #line 12019 "configure"
  9513. #include "confdefs.h"
  9514. /* Override any gcc2 internal prototype to avoid an error. */
  9515. /* We use char because int might match the return type of a gcc2
  9516. builtin and then its argument prototype would still apply. */
  9517. char dnrm2_();
  9518. int main() {
  9519. dnrm2_()
  9520. ; return 0; }
  9521. EOF
  9522. if { (eval echo configure:12030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9523. rm -rf conftest*
  9524. eval "ac_cv_lib_$ac_lib_var=yes"
  9525. else
  9526. echo "configure: failed program was:" >&5
  9527. cat conftest.$ac_ext >&5
  9528. rm -rf conftest*
  9529. eval "ac_cv_lib_$ac_lib_var=no"
  9530. fi
  9531. rm -f conftest*
  9532. LIBS="$ac_save_LIBS"
  9533. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9534. echo "$ac_t""yes" 1>&6
  9535. BLASLIB="$BLASLIB -lblas -lg2c"
  9536. else
  9537. echo "$ac_t""no" 1>&6
  9538. LDFLAGS=${ac_save_ldflags}
  9539. { echo "configure: error: *** Unable to locate BLAS library." 1>&2; exit 1; }
  9540. fi
  9541. fi
  9542. LDFLAGS=${ac_save_ldflags}
  9543. blas_ok=no
  9544. # Check for ATLAS
  9545. save_LDFLAGS="$LDFLAGS"
  9546. LDFLAGS="$BLASLIB $LDFLAGS"
  9547. echo $ac_n "checking for ATL_xerbla in -latlas""... $ac_c" 1>&6
  9548. echo "configure:12074: checking for ATL_xerbla in -latlas" >&5
  9549. ac_lib_var=`echo atlas'_'ATL_xerbla | sed 'y%./+-%__p_%'`
  9550. ac_save_LIBS="$LIBS"
  9551. LIBS="-latlas $LIBS"
  9552. cat > conftest.$ac_ext <<EOF
  9553. #line 12080 "configure"
  9554. #include "confdefs.h"
  9555. /* Override any gcc2 internal prototype to avoid an error. */
  9556. /* We use char because int might match the return type of a gcc2
  9557. builtin and then its argument prototype would still apply. */
  9558. char ATL_xerbla();
  9559. int main() {
  9560. ATL_xerbla()
  9561. ; return 0; }
  9562. EOF
  9563. if { (eval echo configure:12091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9564. rm -rf conftest*
  9565. eval "ac_cv_lib_$ac_lib_var=yes"
  9566. else
  9567. echo "configure: failed program was:" >&5
  9568. cat conftest.$ac_ext >&5
  9569. rm -rf conftest*
  9570. eval "ac_cv_lib_$ac_lib_var=no"
  9571. fi
  9572. rm -f conftest*
  9573. LIBS="$ac_save_LIBS"
  9574. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9575. echo "$ac_t""yes" 1>&6
  9576. echo $ac_n "checking for sgemm_ in -lf77blas""... $ac_c" 1>&6
  9577. echo "configure:12106: checking for sgemm_ in -lf77blas" >&5
  9578. ac_lib_var=`echo f77blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  9579. ac_save_LIBS="$LIBS"
  9580. LIBS="-lf77blas -latlas $LIBS"
  9581. cat > conftest.$ac_ext <<EOF
  9582. #line 12112 "configure"
  9583. #include "confdefs.h"
  9584. /* Override any gcc2 internal prototype to avoid an error. */
  9585. /* We use char because int might match the return type of a gcc2
  9586. builtin and then its argument prototype would still apply. */
  9587. char sgemm_();
  9588. int main() {
  9589. sgemm_()
  9590. ; return 0; }
  9591. EOF
  9592. if { (eval echo configure:12123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9593. rm -rf conftest*
  9594. eval "ac_cv_lib_$ac_lib_var=yes"
  9595. else
  9596. echo "configure: failed program was:" >&5
  9597. cat conftest.$ac_ext >&5
  9598. rm -rf conftest*
  9599. eval "ac_cv_lib_$ac_lib_var=no"
  9600. fi
  9601. rm -f conftest*
  9602. LIBS="$ac_save_LIBS"
  9603. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9604. echo "$ac_t""yes" 1>&6
  9605. echo $ac_n "checking for cblas_dgemm in -lcblas""... $ac_c" 1>&6
  9606. echo "configure:12138: checking for cblas_dgemm in -lcblas" >&5
  9607. ac_lib_var=`echo cblas'_'cblas_dgemm | sed 'y%./+-%__p_%'`
  9608. ac_save_LIBS="$LIBS"
  9609. LIBS="-lcblas -lf77blas -latlas $LIBS"
  9610. cat > conftest.$ac_ext <<EOF
  9611. #line 12144 "configure"
  9612. #include "confdefs.h"
  9613. /* Override any gcc2 internal prototype to avoid an error. */
  9614. /* We use char because int might match the return type of a gcc2
  9615. builtin and then its argument prototype would still apply. */
  9616. char cblas_dgemm();
  9617. int main() {
  9618. cblas_dgemm()
  9619. ; return 0; }
  9620. EOF
  9621. if { (eval echo configure:12155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9622. rm -rf conftest*
  9623. eval "ac_cv_lib_$ac_lib_var=yes"
  9624. else
  9625. echo "configure: failed program was:" >&5
  9626. cat conftest.$ac_ext >&5
  9627. rm -rf conftest*
  9628. eval "ac_cv_lib_$ac_lib_var=no"
  9629. fi
  9630. rm -f conftest*
  9631. LIBS="$ac_save_LIBS"
  9632. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9633. echo "$ac_t""yes" 1>&6
  9634. blas_ok=yes; BLASLIB="-lcblas -lf77blas -latlas"
  9635. else
  9636. echo "$ac_t""no" 1>&6
  9637. fi
  9638. else
  9639. echo "$ac_t""no" 1>&6
  9640. fi
  9641. else
  9642. echo "$ac_t""no" 1>&6
  9643. fi
  9644. LDFLAGS="$save_LDFLAGS"
  9645. # Do we have ATLAS?
  9646. if test $blas_ok = yes; then
  9647. cat >> confdefs.h <<\EOF
  9648. #define HAVE_LIBATLAS 1
  9649. EOF
  9650. fi
  9651. # BLAS in Apple vecLib framework? (Mac OS-X)
  9652. # not dependent on APP build
  9653. #if test -n "$MACOSX_APP"; then
  9654. if test $blas_ok = no; then
  9655. vlib_flags="-framework vecLib"
  9656. save_LIBS="$LIBS"
  9657. LIBS="$vlib_flags $LIBS"
  9658. echo $ac_n "checking for sgemm in $vlib_flags""... $ac_c" 1>&6
  9659. echo "configure:12201: checking for sgemm in $vlib_flags" >&5
  9660. cat > conftest.$ac_ext <<EOF
  9661. #line 12203 "configure"
  9662. #include "confdefs.h"
  9663. int main() {
  9664. sgemm
  9665. ; return 0; }
  9666. EOF
  9667. if { (eval echo configure:12210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9668. rm -rf conftest*
  9669. blas_ok=yes; BLASLIB="$vlib_flags"
  9670. else
  9671. echo "configure: failed program was:" >&5
  9672. cat conftest.$ac_ext >&5
  9673. rm -rf conftest*
  9674. BLASLIB=""
  9675. fi
  9676. rm -f conftest*
  9677. echo "$ac_t""$blas_ok" 1>&6
  9678. LIBS="$save_LIBS"
  9679. fi
  9680. #fi # $MACOSX_APP
  9681. # BLAS in PhiPACK libraries? (requires generic BLAS, too)
  9682. if test $blas_ok = no; then
  9683. echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
  9684. echo "configure:12228: checking for sgemm_ in -lblas" >&5
  9685. ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  9686. ac_save_LIBS="$LIBS"
  9687. LIBS="-lblas $LIBS"
  9688. cat > conftest.$ac_ext <<EOF
  9689. #line 12234 "configure"
  9690. #include "confdefs.h"
  9691. /* Override any gcc2 internal prototype to avoid an error. */
  9692. /* We use char because int might match the return type of a gcc2
  9693. builtin and then its argument prototype would still apply. */
  9694. char sgemm_();
  9695. int main() {
  9696. sgemm_()
  9697. ; return 0; }
  9698. EOF
  9699. if { (eval echo configure:12245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9700. rm -rf conftest*
  9701. eval "ac_cv_lib_$ac_lib_var=yes"
  9702. else
  9703. echo "configure: failed program was:" >&5
  9704. cat conftest.$ac_ext >&5
  9705. rm -rf conftest*
  9706. eval "ac_cv_lib_$ac_lib_var=no"
  9707. fi
  9708. rm -f conftest*
  9709. LIBS="$ac_save_LIBS"
  9710. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9711. echo "$ac_t""yes" 1>&6
  9712. echo $ac_n "checking for dgemm_ in -ldgemm""... $ac_c" 1>&6
  9713. echo "configure:12260: checking for dgemm_ in -ldgemm" >&5
  9714. ac_lib_var=`echo dgemm'_'dgemm_ | sed 'y%./+-%__p_%'`
  9715. ac_save_LIBS="$LIBS"
  9716. LIBS="-ldgemm -lblas $LIBS"
  9717. cat > conftest.$ac_ext <<EOF
  9718. #line 12266 "configure"
  9719. #include "confdefs.h"
  9720. /* Override any gcc2 internal prototype to avoid an error. */
  9721. /* We use char because int might match the return type of a gcc2
  9722. builtin and then its argument prototype would still apply. */
  9723. char dgemm_();
  9724. int main() {
  9725. dgemm_()
  9726. ; return 0; }
  9727. EOF
  9728. if { (eval echo configure:12277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9729. rm -rf conftest*
  9730. eval "ac_cv_lib_$ac_lib_var=yes"
  9731. else
  9732. echo "configure: failed program was:" >&5
  9733. cat conftest.$ac_ext >&5
  9734. rm -rf conftest*
  9735. eval "ac_cv_lib_$ac_lib_var=no"
  9736. fi
  9737. rm -f conftest*
  9738. LIBS="$ac_save_LIBS"
  9739. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9740. echo "$ac_t""yes" 1>&6
  9741. echo $ac_n "checking for sgemm_ in -lsgemm""... $ac_c" 1>&6
  9742. echo "configure:12292: checking for sgemm_ in -lsgemm" >&5
  9743. ac_lib_var=`echo sgemm'_'sgemm_ | sed 'y%./+-%__p_%'`
  9744. ac_save_LIBS="$LIBS"
  9745. LIBS="-lsgemm -lblas $LIBS"
  9746. cat > conftest.$ac_ext <<EOF
  9747. #line 12298 "configure"
  9748. #include "confdefs.h"
  9749. /* Override any gcc2 internal prototype to avoid an error. */
  9750. /* We use char because int might match the return type of a gcc2
  9751. builtin and then its argument prototype would still apply. */
  9752. char sgemm_();
  9753. int main() {
  9754. sgemm_()
  9755. ; return 0; }
  9756. EOF
  9757. if { (eval echo configure:12309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9758. rm -rf conftest*
  9759. eval "ac_cv_lib_$ac_lib_var=yes"
  9760. else
  9761. echo "configure: failed program was:" >&5
  9762. cat conftest.$ac_ext >&5
  9763. rm -rf conftest*
  9764. eval "ac_cv_lib_$ac_lib_var=no"
  9765. fi
  9766. rm -f conftest*
  9767. LIBS="$ac_save_LIBS"
  9768. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9769. echo "$ac_t""yes" 1>&6
  9770. blas_ok=yes; BLASLIB="-lsgemm -ldgemm -lblas"
  9771. else
  9772. echo "$ac_t""no" 1>&6
  9773. fi
  9774. else
  9775. echo "$ac_t""no" 1>&6
  9776. fi
  9777. else
  9778. echo "$ac_t""no" 1>&6
  9779. fi
  9780. fi
  9781. # BLAS in Sun Performance library?
  9782. if test $blas_ok = no; then
  9783. if test "x$GCC" != xyes; then # only works with Sun CC
  9784. echo $ac_n "checking for acosp in -lsunmath""... $ac_c" 1>&6
  9785. echo "configure:12343: checking for acosp in -lsunmath" >&5
  9786. ac_lib_var=`echo sunmath'_'acosp | sed 'y%./+-%__p_%'`
  9787. ac_save_LIBS="$LIBS"
  9788. LIBS="-lsunmath $LIBS"
  9789. cat > conftest.$ac_ext <<EOF
  9790. #line 12349 "configure"
  9791. #include "confdefs.h"
  9792. /* Override any gcc2 internal prototype to avoid an error. */
  9793. /* We use char because int might match the return type of a gcc2
  9794. builtin and then its argument prototype would still apply. */
  9795. char acosp();
  9796. int main() {
  9797. acosp()
  9798. ; return 0; }
  9799. EOF
  9800. if { (eval echo configure:12360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9801. rm -rf conftest*
  9802. eval "ac_cv_lib_$ac_lib_var=yes"
  9803. else
  9804. echo "configure: failed program was:" >&5
  9805. cat conftest.$ac_ext >&5
  9806. rm -rf conftest*
  9807. eval "ac_cv_lib_$ac_lib_var=no"
  9808. fi
  9809. rm -f conftest*
  9810. LIBS="$ac_save_LIBS"
  9811. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9812. echo "$ac_t""yes" 1>&6
  9813. echo $ac_n "checking for sgemm_ in -lsunperf""... $ac_c" 1>&6
  9814. echo "configure:12375: checking for sgemm_ in -lsunperf" >&5
  9815. ac_lib_var=`echo sunperf'_'sgemm_ | sed 'y%./+-%__p_%'`
  9816. ac_save_LIBS="$LIBS"
  9817. LIBS="-lsunperf -lsunmath $LIBS"
  9818. cat > conftest.$ac_ext <<EOF
  9819. #line 12381 "configure"
  9820. #include "confdefs.h"
  9821. /* Override any gcc2 internal prototype to avoid an error. */
  9822. /* We use char because int might match the return type of a gcc2
  9823. builtin and then its argument prototype would still apply. */
  9824. char sgemm_();
  9825. int main() {
  9826. sgemm_()
  9827. ; return 0; }
  9828. EOF
  9829. if { (eval echo configure:12392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9830. rm -rf conftest*
  9831. eval "ac_cv_lib_$ac_lib_var=yes"
  9832. else
  9833. echo "configure: failed program was:" >&5
  9834. cat conftest.$ac_ext >&5
  9835. rm -rf conftest*
  9836. eval "ac_cv_lib_$ac_lib_var=no"
  9837. fi
  9838. rm -f conftest*
  9839. LIBS="$ac_save_LIBS"
  9840. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9841. echo "$ac_t""yes" 1>&6
  9842. blas_ok=yes; BLASLIB="-xlic_lib=sunperf -lsunmath"
  9843. else
  9844. echo "$ac_t""no" 1>&6
  9845. fi
  9846. else
  9847. echo "$ac_t""no" 1>&6
  9848. fi
  9849. fi
  9850. fi
  9851. # Generic BLAS library
  9852. if test $blas_ok = no; then
  9853. echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
  9854. echo "configure:12422: checking for sgemm_ in -lblas" >&5
  9855. ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  9856. ac_save_LIBS="$LIBS"
  9857. LIBS="-lblas $LIBS"
  9858. cat > conftest.$ac_ext <<EOF
  9859. #line 12428 "configure"
  9860. #include "confdefs.h"
  9861. /* Override any gcc2 internal prototype to avoid an error. */
  9862. /* We use char because int might match the return type of a gcc2
  9863. builtin and then its argument prototype would still apply. */
  9864. char sgemm_();
  9865. int main() {
  9866. sgemm_()
  9867. ; return 0; }
  9868. EOF
  9869. if { (eval echo configure:12439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9870. rm -rf conftest*
  9871. eval "ac_cv_lib_$ac_lib_var=yes"
  9872. else
  9873. echo "configure: failed program was:" >&5
  9874. cat conftest.$ac_ext >&5
  9875. rm -rf conftest*
  9876. eval "ac_cv_lib_$ac_lib_var=no"
  9877. fi
  9878. rm -f conftest*
  9879. LIBS="$ac_save_LIBS"
  9880. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9881. echo "$ac_t""yes" 1>&6
  9882. blas_ok=yes; BLASLIB="-lblas"
  9883. else
  9884. echo "$ac_t""no" 1>&6
  9885. fi
  9886. fi
  9887. if test $blas_ok = yes; then
  9888. cat >> confdefs.h <<\EOF
  9889. #define HAVE_LIBBLAS 1
  9890. EOF
  9891. fi
  9892. fi # $USE_BLAS
  9893. # Done checking BLAS
  9894. # Enable LAPACK option
  9895. echo $ac_n "checking whether to use LAPACK""... $ac_c" 1>&6
  9896. echo "configure:12478: checking whether to use LAPACK" >&5
  9897. echo "$ac_t"""$with_lapack"" 1>&6
  9898. case "$with_lapack" in
  9899. "no") USE_LAPACK= ;;
  9900. "yes") USE_LAPACK="1" ;;
  9901. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9902. esac
  9903. LAPACKLIB=
  9904. LAPACKINC=
  9905. # LAPACK is useless without BLAS
  9906. if test -n "$USE_BLAS"; then
  9907. if test -n "$USE_LAPACK"; then
  9908. # With LAPACK includes directory
  9909. # LAPACK doesn't have includes (FORTRAN library)
  9910. # With LAPACK library directory
  9911. lapack_ok=no
  9912. echo $ac_n "checking for location of LAPACK includes""... $ac_c" 1>&6
  9913. echo "configure:12503: checking for location of LAPACK includes" >&5
  9914. case "$with_lapack_includes" in
  9915. y | ye | yes | n | no)
  9916. { echo "configure: error: *** You must supply a directory to --with-lapack-includes." 1>&2; exit 1; }
  9917. ;;
  9918. esac
  9919. echo "$ac_t""$with_lapack_includes" 1>&6
  9920. if test -n "$with_lapack_includes" ; then
  9921. for dir in $with_lapack_includes; do
  9922. if test -d "$dir"; then
  9923. LAPACKINC="$LAPACKINC -I$dir"
  9924. else
  9925. { echo "configure: error: *** LAPACK includes directory $dir does not exist." 1>&2; exit 1; }
  9926. fi
  9927. done
  9928. fi
  9929. echo $ac_n "checking for location of LAPACK library""... $ac_c" 1>&6
  9930. echo "configure:12523: checking for location of LAPACK library" >&5
  9931. case "$with_lapack_libs" in
  9932. y | ye | yes | n | no)
  9933. { echo "configure: error: *** You must supply a directory to --with-lapack-libs." 1>&2; exit 1; }
  9934. ;;
  9935. esac
  9936. echo "$ac_t""$with_lapack_libs" 1>&6
  9937. if test -n "$with_lapack_libs"; then
  9938. for dir in $with_lapack_libs; do
  9939. if test -d "$dir"; then
  9940. LAPACKLIB="$LAPACKLIB -L$dir"
  9941. else
  9942. { echo "configure: error: *** LAPACK library directory $dir does not exist." 1>&2; exit 1; }
  9943. fi
  9944. done
  9945. fi
  9946. # See if clapack.h exists (ATLAS)
  9947. save_CPPFLAGS="$CPPFLAGS"
  9948. CPPFLAGS="$LAPACKINC $CPPFLAGS"
  9949. for ac_hdr in clapack.h
  9950. do
  9951. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9952. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9953. echo "configure:12549: checking for $ac_hdr" >&5
  9954. cat > conftest.$ac_ext <<EOF
  9955. #line 12552 "configure"
  9956. #include "confdefs.h"
  9957. #include <$ac_hdr>
  9958. EOF
  9959. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9960. { (eval echo configure:12557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9961. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9962. if test -z "$ac_err"; then
  9963. rm -rf conftest*
  9964. eval "ac_cv_header_$ac_safe=yes"
  9965. else
  9966. echo "$ac_err" >&5
  9967. echo "configure: failed program was:" >&5
  9968. cat conftest.$ac_ext >&5
  9969. rm -rf conftest*
  9970. eval "ac_cv_header_$ac_safe=no"
  9971. fi
  9972. rm -f conftest*
  9973. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9974. echo "$ac_t""yes" 1>&6
  9975. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9976. cat >> confdefs.h <<EOF
  9977. #define $ac_tr_hdr 1
  9978. EOF
  9979. else
  9980. echo "$ac_t""no" 1>&6
  9981. fi
  9982. done
  9983. CPPFLAGS="$save_CPPFLAGS"
  9984. # LAPACK linked to by default?
  9985. if test lapack_ok=no; then
  9986. save_LIBS="$LIBS"; LIBS="$LIBS $BLASLIB $MATHLIB $FLIBS"
  9987. save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
  9988. echo $ac_n "checking for dsegv_""... $ac_c" 1>&6
  9989. echo "configure:12589: checking for dsegv_" >&5
  9990. cat > conftest.$ac_ext <<EOF
  9991. #line 12592 "configure"
  9992. #include "confdefs.h"
  9993. /* System header to define __stub macros and hopefully few prototypes,
  9994. which can conflict with char dsegv_(); below. */
  9995. #include <assert.h>
  9996. /* Override any gcc2 internal prototype to avoid an error. */
  9997. /* We use char because int might match the return type of a gcc2
  9998. builtin and then its argument prototype would still apply. */
  9999. char dsegv_();
  10000. int main() {
  10001. /* The GNU C library defines this for functions which it implements
  10002. to always fail with ENOSYS. Some functions are actually named
  10003. something starting with __ and the normal name is an alias. */
  10004. #if defined (__stub_dsegv_) || defined (__stub___dsegv_)
  10005. choke me
  10006. #else
  10007. dsegv_();
  10008. #endif
  10009. ; return 0; }
  10010. EOF
  10011. if { (eval echo configure:12615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10012. rm -rf conftest*
  10013. eval "ac_cv_func_dsegv_=yes"
  10014. else
  10015. echo "configure: failed program was:" >&5
  10016. cat conftest.$ac_ext >&5
  10017. rm -rf conftest*
  10018. eval "ac_cv_func_dsegv_=no"
  10019. fi
  10020. rm -f conftest*
  10021. if eval "test \"`echo '$ac_cv_func_'dsegv_`\" = yes"; then
  10022. echo "$ac_t""yes" 1>&6
  10023. lapack_ok=yes
  10024. else
  10025. echo "$ac_t""no" 1>&6
  10026. fi
  10027. LIBS="$save_LIBS"
  10028. LDFLAGS="$save_LDFLAGS"
  10029. fi
  10030. # Generic LAPACK library?
  10031. if test $lapack_ok = no; then
  10032. save_libs="$LIBS"; LIBS="$BLASLIB $MATHLIB $LIBS"
  10033. save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
  10034. echo $ac_n "checking for desgv_ in -llapack""... $ac_c" 1>&6
  10035. echo "configure:12642: checking for desgv_ in -llapack" >&5
  10036. ac_lib_var=`echo lapack'_'desgv_ | sed 'y%./+-%__p_%'`
  10037. ac_save_LIBS="$LIBS"
  10038. LIBS="-llapack $FLIBS $LIBS"
  10039. cat > conftest.$ac_ext <<EOF
  10040. #line 12648 "configure"
  10041. #include "confdefs.h"
  10042. /* Override any gcc2 internal prototype to avoid an error. */
  10043. /* We use char because int might match the return type of a gcc2
  10044. builtin and then its argument prototype would still apply. */
  10045. char desgv_();
  10046. int main() {
  10047. desgv_()
  10048. ; return 0; }
  10049. EOF
  10050. if { (eval echo configure:12659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10051. rm -rf conftest*
  10052. eval "ac_cv_lib_$ac_lib_var=yes"
  10053. else
  10054. echo "configure: failed program was:" >&5
  10055. cat conftest.$ac_ext >&5
  10056. rm -rf conftest*
  10057. eval "ac_cv_lib_$ac_lib_var=no"
  10058. fi
  10059. rm -f conftest*
  10060. LIBS="$ac_save_LIBS"
  10061. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10062. echo "$ac_t""yes" 1>&6
  10063. lapack_ok=yes; LAPACKLIB="-llapack"
  10064. else
  10065. echo "$ac_t""no" 1>&6
  10066. fi
  10067. LIBS="$save_LIBS"
  10068. LDFLAGS="$save_LDFLAGS"
  10069. fi
  10070. if test $lapack_ok = no; then
  10071. ac_save_ldflags="$LDFLAGS"
  10072. LDFLAGS="$LAPACKLIB $LDFLAGS"
  10073. echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
  10074. echo "configure:12691: checking for dgesv_ in -llapack" >&5
  10075. ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
  10076. ac_save_LIBS="$LIBS"
  10077. LIBS="-llapack $BLASLIB $MATHLIB $LIBS"
  10078. cat > conftest.$ac_ext <<EOF
  10079. #line 12697 "configure"
  10080. #include "confdefs.h"
  10081. /* Override any gcc2 internal prototype to avoid an error. */
  10082. /* We use char because int might match the return type of a gcc2
  10083. builtin and then its argument prototype would still apply. */
  10084. char dgesv_();
  10085. int main() {
  10086. dgesv_()
  10087. ; return 0; }
  10088. EOF
  10089. if { (eval echo configure:12708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10090. rm -rf conftest*
  10091. eval "ac_cv_lib_$ac_lib_var=yes"
  10092. else
  10093. echo "configure: failed program was:" >&5
  10094. cat conftest.$ac_ext >&5
  10095. rm -rf conftest*
  10096. eval "ac_cv_lib_$ac_lib_var=no"
  10097. fi
  10098. rm -f conftest*
  10099. LIBS="$ac_save_LIBS"
  10100. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10101. echo "$ac_t""yes" 1>&6
  10102. LAPACKLIB="$LAPACKLIB -llapack "
  10103. else
  10104. echo "$ac_t""no" 1>&6
  10105. echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
  10106. echo "configure:12727: checking for dgesv_ in -llapack" >&5
  10107. ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
  10108. ac_save_LIBS="$LIBS"
  10109. LIBS="-llapack $BLASLIB $MATHLIB -lg2c $LIBS"
  10110. cat > conftest.$ac_ext <<EOF
  10111. #line 12733 "configure"
  10112. #include "confdefs.h"
  10113. /* Override any gcc2 internal prototype to avoid an error. */
  10114. /* We use char because int might match the return type of a gcc2
  10115. builtin and then its argument prototype would still apply. */
  10116. char dgesv_();
  10117. int main() {
  10118. dgesv_()
  10119. ; return 0; }
  10120. EOF
  10121. if { (eval echo configure:12744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10122. rm -rf conftest*
  10123. eval "ac_cv_lib_$ac_lib_var=yes"
  10124. else
  10125. echo "configure: failed program was:" >&5
  10126. cat conftest.$ac_ext >&5
  10127. rm -rf conftest*
  10128. eval "ac_cv_lib_$ac_lib_var=no"
  10129. fi
  10130. rm -f conftest*
  10131. LIBS="$ac_save_LIBS"
  10132. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10133. echo "$ac_t""yes" 1>&6
  10134. LAPACKLIB="$LAPACKLIB -llapack -lg2c"
  10135. else
  10136. echo "$ac_t""no" 1>&6
  10137. LDFLAGS=${ac_save_ldflags}
  10138. { echo "configure: error: *** Unable to locate LAPACK library." 1>&2; exit 1; }
  10139. fi
  10140. fi
  10141. LDFLAGS=${ac_save_ldflags}
  10142. fi
  10143. cat >> confdefs.h <<\EOF
  10144. #define HAVE_LIBLAPACK 1
  10145. EOF
  10146. fi # $USE_LAPACK
  10147. fi # $USE_BLAS
  10148. # Done checking LAPACK
  10149. # Enable Cairo display driver option
  10150. echo $ac_n "checking whether to use Cairo""... $ac_c" 1>&6
  10151. echo "configure:12800: checking whether to use Cairo" >&5
  10152. echo "$ac_t"""$with_cairo"" 1>&6
  10153. case "$with_cairo" in
  10154. "no") USE_CAIRO= ;;
  10155. "yes") USE_CAIRO="1" ;;
  10156. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10157. esac
  10158. CAIROINC=
  10159. CAIROLIB=
  10160. if test -n "$USE_CAIRO"; then
  10161. cairo="cairo"
  10162. pkgs="cairo-ft cairo-fc cairo-pdf cairo-ps cairo-svg"
  10163. if test -n "$USE_X11"; then
  10164. pkgs="$pkgs cairo-xlib cairo-xlib-xrender"
  10165. fi
  10166. for pkg in $pkgs ; do
  10167. if pkg-config --exists $pkg ; then
  10168. cairo="$cairo $pkg"
  10169. fi
  10170. done
  10171. # With Cairo includes directory
  10172. #FIXME: somehow quote dirs with spaces in $cairo ?
  10173. CAIROINC=`pkg-config --cflags $cairo`
  10174. echo $ac_n "checking for location of cairo includes""... $ac_c" 1>&6
  10175. echo "configure:12832: checking for location of cairo includes" >&5
  10176. case "$with_cairo_includes" in
  10177. y | ye | yes | n | no)
  10178. { echo "configure: error: *** You must supply a directory to --with-cairo-includes." 1>&2; exit 1; }
  10179. ;;
  10180. esac
  10181. echo "$ac_t""$with_cairo_includes" 1>&6
  10182. if test -n "$with_cairo_includes" ; then
  10183. for dir in $with_cairo_includes; do
  10184. if test -d "$dir"; then
  10185. CAIROINC="$CAIROINC -I$dir"
  10186. else
  10187. { echo "configure: error: *** cairo includes directory $dir does not exist." 1>&2; exit 1; }
  10188. fi
  10189. done
  10190. fi
  10191. ac_save_cppflags="$CPPFLAGS"
  10192. CPPFLAGS="$CAIROINC $CPPFLAGS"
  10193. for ac_hdr in cairo.h
  10194. do
  10195. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10196. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10197. echo "configure:12858: checking for $ac_hdr" >&5
  10198. cat > conftest.$ac_ext <<EOF
  10199. #line 12861 "configure"
  10200. #include "confdefs.h"
  10201. #include <$ac_hdr>
  10202. EOF
  10203. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10204. { (eval echo configure:12866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10205. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10206. if test -z "$ac_err"; then
  10207. rm -rf conftest*
  10208. eval "ac_cv_header_$ac_safe=yes"
  10209. else
  10210. echo "$ac_err" >&5
  10211. echo "configure: failed program was:" >&5
  10212. cat conftest.$ac_ext >&5
  10213. rm -rf conftest*
  10214. eval "ac_cv_header_$ac_safe=no"
  10215. fi
  10216. rm -f conftest*
  10217. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10218. echo "$ac_t""yes" 1>&6
  10219. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10220. cat >> confdefs.h <<EOF
  10221. #define $ac_tr_hdr 1
  10222. EOF
  10223. else
  10224. echo "$ac_t""no" 1>&6
  10225. { echo "configure: error: *** Unable to locate Cairo includes." 1>&2; exit 1; }
  10226. fi
  10227. done
  10228. CPPFLAGS=$ac_save_cppflags
  10229. # With Cairo library directory
  10230. CAIROLIB=`pkg-config --libs $cairo`
  10231. echo $ac_n "checking for location of cairo library""... $ac_c" 1>&6
  10232. echo "configure:12902: checking for location of cairo library" >&5
  10233. case "$with_cairo_libs" in
  10234. y | ye | yes | n | no)
  10235. { echo "configure: error: *** You must supply a directory to --with-cairo-libs." 1>&2; exit 1; }
  10236. ;;
  10237. esac
  10238. echo "$ac_t""$with_cairo_libs" 1>&6
  10239. if test -n "$with_cairo_libs"; then
  10240. for dir in $with_cairo_libs; do
  10241. if test -d "$dir"; then
  10242. CAIROLIB="$CAIROLIB -L$dir"
  10243. else
  10244. { echo "configure: error: *** cairo library directory $dir does not exist." 1>&2; exit 1; }
  10245. fi
  10246. done
  10247. fi
  10248. echo $ac_n "checking for cairo linking flags""... $ac_c" 1>&6
  10249. echo "configure:12922: checking for cairo linking flags" >&5
  10250. case "$with_cairo_ldflags" in
  10251. y | ye | yes | n | no)
  10252. { echo "configure: error: *** You must supply a directory to --with-cairo-ldflags." 1>&2; exit 1; }
  10253. ;;
  10254. esac
  10255. echo "$ac_t""$with_cairo_ldflags" 1>&6
  10256. CAIROLIB="$CAIROLIB $with_cairo_ldflags"
  10257. ac_save_libs="$LIBS"
  10258. ac_save_ldflags="$LDFLAGS"
  10259. LIBS=" $CAIROLIB $LIBS"
  10260. LDFLAGS=" $LDFLAGS"
  10261. echo $ac_n "checking for cairo_create""... $ac_c" 1>&6
  10262. echo "configure:12938: checking for cairo_create" >&5
  10263. cat > conftest.$ac_ext <<EOF
  10264. #line 12941 "configure"
  10265. #include "confdefs.h"
  10266. /* System header to define __stub macros and hopefully few prototypes,
  10267. which can conflict with char cairo_create(); below. */
  10268. #include <assert.h>
  10269. /* Override any gcc2 internal prototype to avoid an error. */
  10270. /* We use char because int might match the return type of a gcc2
  10271. builtin and then its argument prototype would still apply. */
  10272. char cairo_create();
  10273. int main() {
  10274. /* The GNU C library defines this for functions which it implements
  10275. to always fail with ENOSYS. Some functions are actually named
  10276. something starting with __ and the normal name is an alias. */
  10277. #if defined (__stub_cairo_create) || defined (__stub___cairo_create)
  10278. choke me
  10279. #else
  10280. cairo_create();
  10281. #endif
  10282. ; return 0; }
  10283. EOF
  10284. if { (eval echo configure:12964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10285. rm -rf conftest*
  10286. eval "ac_cv_func_cairo_create=yes"
  10287. else
  10288. echo "configure: failed program was:" >&5
  10289. cat conftest.$ac_ext >&5
  10290. rm -rf conftest*
  10291. eval "ac_cv_func_cairo_create=no"
  10292. fi
  10293. rm -f conftest*
  10294. if eval "test \"`echo '$ac_cv_func_'cairo_create`\" = yes"; then
  10295. echo "$ac_t""yes" 1>&6
  10296. :
  10297. else
  10298. echo "$ac_t""no" 1>&6
  10299. { echo "configure: error: *** Unable to locate cairo_create." 1>&2; exit 1; }
  10300. fi
  10301. LIBS=${ac_save_libs}
  10302. LDFLAGS=${ac_save_ldflags}
  10303. ac_save_libs="$LIBS"
  10304. ac_save_ldflags="$LDFLAGS"
  10305. LIBS=" $CAIROLIB $LIBS"
  10306. LDFLAGS=" $LDFLAGS"
  10307. echo $ac_n "checking for cairo_xlib_surface_create_with_xrender_format""... $ac_c" 1>&6
  10308. echo "configure:12998: checking for cairo_xlib_surface_create_with_xrender_format" >&5
  10309. cat > conftest.$ac_ext <<EOF
  10310. #line 13001 "configure"
  10311. #include "confdefs.h"
  10312. /* System header to define __stub macros and hopefully few prototypes,
  10313. which can conflict with char cairo_xlib_surface_create_with_xrender_format(); below. */
  10314. #include <assert.h>
  10315. /* Override any gcc2 internal prototype to avoid an error. */
  10316. /* We use char because int might match the return type of a gcc2
  10317. builtin and then its argument prototype would still apply. */
  10318. char cairo_xlib_surface_create_with_xrender_format();
  10319. int main() {
  10320. /* The GNU C library defines this for functions which it implements
  10321. to always fail with ENOSYS. Some functions are actually named
  10322. something starting with __ and the normal name is an alias. */
  10323. #if defined (__stub_cairo_xlib_surface_create_with_xrender_format) || defined (__stub___cairo_xlib_surface_create_with_xrender_format)
  10324. choke me
  10325. #else
  10326. cairo_xlib_surface_create_with_xrender_format();
  10327. #endif
  10328. ; return 0; }
  10329. EOF
  10330. if { (eval echo configure:13024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10331. rm -rf conftest*
  10332. eval "ac_cv_func_cairo_xlib_surface_create_with_xrender_format=yes"
  10333. else
  10334. echo "configure: failed program was:" >&5
  10335. cat conftest.$ac_ext >&5
  10336. rm -rf conftest*
  10337. eval "ac_cv_func_cairo_xlib_surface_create_with_xrender_format=no"
  10338. fi
  10339. rm -f conftest*
  10340. if eval "test \"`echo '$ac_cv_func_'cairo_xlib_surface_create_with_xrender_format`\" = yes"; then
  10341. echo "$ac_t""yes" 1>&6
  10342. CAIRO_HAS_XRENDER=1
  10343. else
  10344. echo "$ac_t""no" 1>&6
  10345. CAIRO_HAS_XRENDER=
  10346. fi
  10347. LIBS=${ac_save_libs}
  10348. LDFLAGS=${ac_save_ldflags}
  10349. ac_save_libs="$LIBS"
  10350. ac_save_ldflags="$LDFLAGS"
  10351. LIBS=" $CAIROLIB $LIBS"
  10352. LDFLAGS=" $LDFLAGS"
  10353. echo $ac_n "checking for cairo_xlib_surface_get_xrender_format""... $ac_c" 1>&6
  10354. echo "configure:13057: checking for cairo_xlib_surface_get_xrender_format" >&5
  10355. cat > conftest.$ac_ext <<EOF
  10356. #line 13060 "configure"
  10357. #include "confdefs.h"
  10358. /* System header to define __stub macros and hopefully few prototypes,
  10359. which can conflict with char cairo_xlib_surface_get_xrender_format(); below. */
  10360. #include <assert.h>
  10361. /* Override any gcc2 internal prototype to avoid an error. */
  10362. /* We use char because int might match the return type of a gcc2
  10363. builtin and then its argument prototype would still apply. */
  10364. char cairo_xlib_surface_get_xrender_format();
  10365. int main() {
  10366. /* The GNU C library defines this for functions which it implements
  10367. to always fail with ENOSYS. Some functions are actually named
  10368. something starting with __ and the normal name is an alias. */
  10369. #if defined (__stub_cairo_xlib_surface_get_xrender_format) || defined (__stub___cairo_xlib_surface_get_xrender_format)
  10370. choke me
  10371. #else
  10372. cairo_xlib_surface_get_xrender_format();
  10373. #endif
  10374. ; return 0; }
  10375. EOF
  10376. if { (eval echo configure:13083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10377. rm -rf conftest*
  10378. eval "ac_cv_func_cairo_xlib_surface_get_xrender_format=yes"
  10379. else
  10380. echo "configure: failed program was:" >&5
  10381. cat conftest.$ac_ext >&5
  10382. rm -rf conftest*
  10383. eval "ac_cv_func_cairo_xlib_surface_get_xrender_format=no"
  10384. fi
  10385. rm -f conftest*
  10386. if eval "test \"`echo '$ac_cv_func_'cairo_xlib_surface_get_xrender_format`\" = yes"; then
  10387. echo "$ac_t""yes" 1>&6
  10388. CAIRO_HAS_XRENDER_SURFACE=1
  10389. else
  10390. echo "$ac_t""no" 1>&6
  10391. CAIRO_HAS_XRENDER_SURFACE=
  10392. fi
  10393. LIBS=${ac_save_libs}
  10394. LDFLAGS=${ac_save_ldflags}
  10395. CAIROLIB="$CAIROLIB $CAIROLDFLAGS"
  10396. fi # $USE_CAIRO
  10397. # Done checking Cairo
  10398. # Enable FreeType option
  10399. echo $ac_n "checking whether to use FreeType""... $ac_c" 1>&6
  10400. echo "configure:13125: checking whether to use FreeType" >&5
  10401. echo "$ac_t"""$with_freetype"" 1>&6
  10402. case "$with_freetype" in
  10403. "no") USE_FREETYPE= ;;
  10404. "yes") USE_FREETYPE="1" ;;
  10405. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10406. esac
  10407. FTINC=
  10408. FTLIB=
  10409. if test -n "$USE_FREETYPE"; then
  10410. # With FreeType includes directory
  10411. echo $ac_n "checking for location of FreeType includes""... $ac_c" 1>&6
  10412. echo "configure:13144: checking for location of FreeType includes" >&5
  10413. case "$with_freetype_includes" in
  10414. y | ye | yes | n | no)
  10415. { echo "configure: error: *** You must supply a directory to --with-freetype-includes." 1>&2; exit 1; }
  10416. ;;
  10417. esac
  10418. echo "$ac_t""$with_freetype_includes" 1>&6
  10419. if test -n "$with_freetype_includes" ; then
  10420. for dir in $with_freetype_includes; do
  10421. if test -d "$dir"; then
  10422. FTINC="$FTINC -I$dir"
  10423. else
  10424. { echo "configure: error: *** FreeType includes directory $dir does not exist." 1>&2; exit 1; }
  10425. fi
  10426. done
  10427. fi
  10428. ac_save_cppflags="$CPPFLAGS"
  10429. CPPFLAGS="$FTINC $CPPFLAGS"
  10430. for ac_hdr in ft2build.h
  10431. do
  10432. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10433. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10434. echo "configure:13170: checking for $ac_hdr" >&5
  10435. cat > conftest.$ac_ext <<EOF
  10436. #line 13173 "configure"
  10437. #include "confdefs.h"
  10438. #include <$ac_hdr>
  10439. EOF
  10440. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10441. { (eval echo configure:13178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10442. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10443. if test -z "$ac_err"; then
  10444. rm -rf conftest*
  10445. eval "ac_cv_header_$ac_safe=yes"
  10446. else
  10447. echo "$ac_err" >&5
  10448. echo "configure: failed program was:" >&5
  10449. cat conftest.$ac_ext >&5
  10450. rm -rf conftest*
  10451. eval "ac_cv_header_$ac_safe=no"
  10452. fi
  10453. rm -f conftest*
  10454. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10455. echo "$ac_t""yes" 1>&6
  10456. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10457. cat >> confdefs.h <<EOF
  10458. #define $ac_tr_hdr 1
  10459. EOF
  10460. else
  10461. echo "$ac_t""no" 1>&6
  10462. { echo "configure: error: *** Unable to locate FreeType includes." 1>&2; exit 1; }
  10463. fi
  10464. done
  10465. CPPFLAGS=$ac_save_cppflags
  10466. # With FreeType library directory
  10467. echo $ac_n "checking for location of FreeType library""... $ac_c" 1>&6
  10468. echo "configure:13212: checking for location of FreeType library" >&5
  10469. case "$with_freetype_libs" in
  10470. y | ye | yes | n | no)
  10471. { echo "configure: error: *** You must supply a directory to --with-freetype-libs." 1>&2; exit 1; }
  10472. ;;
  10473. esac
  10474. echo "$ac_t""$with_freetype_libs" 1>&6
  10475. if test -n "$with_freetype_libs"; then
  10476. for dir in $with_freetype_libs; do
  10477. if test -d "$dir"; then
  10478. FTLIB="$FTLIB -L$dir"
  10479. else
  10480. { echo "configure: error: *** FreeType library directory $dir does not exist." 1>&2; exit 1; }
  10481. fi
  10482. done
  10483. fi
  10484. ac_save_ldflags="$LDFLAGS"
  10485. LDFLAGS="$FTLIB $LDFLAGS"
  10486. echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
  10487. echo "configure:13237: checking for FT_Init_FreeType in -lfreetype" >&5
  10488. ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
  10489. ac_save_LIBS="$LIBS"
  10490. LIBS="-lfreetype $LIBS"
  10491. cat > conftest.$ac_ext <<EOF
  10492. #line 13243 "configure"
  10493. #include "confdefs.h"
  10494. /* Override any gcc2 internal prototype to avoid an error. */
  10495. /* We use char because int might match the return type of a gcc2
  10496. builtin and then its argument prototype would still apply. */
  10497. char FT_Init_FreeType();
  10498. int main() {
  10499. FT_Init_FreeType()
  10500. ; return 0; }
  10501. EOF
  10502. if { (eval echo configure:13254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10503. rm -rf conftest*
  10504. eval "ac_cv_lib_$ac_lib_var=yes"
  10505. else
  10506. echo "configure: failed program was:" >&5
  10507. cat conftest.$ac_ext >&5
  10508. rm -rf conftest*
  10509. eval "ac_cv_lib_$ac_lib_var=no"
  10510. fi
  10511. rm -f conftest*
  10512. LIBS="$ac_save_LIBS"
  10513. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10514. echo "$ac_t""yes" 1>&6
  10515. FTLIB="$FTLIB -lfreetype "
  10516. else
  10517. echo "$ac_t""no" 1>&6
  10518. LDFLAGS=${ac_save_ldflags}
  10519. { echo "configure: error: *** Unable to locate FreeType library." 1>&2; exit 1; }
  10520. fi
  10521. LDFLAGS=${ac_save_ldflags}
  10522. fi # $USE_FREETYPE
  10523. # Done checking FreeType
  10524. # Enable NLS option
  10525. echo $ac_n "checking whether to use NLS""... $ac_c" 1>&6
  10526. echo "configure:13295: checking whether to use NLS" >&5
  10527. echo "$ac_t"""$with_nls"" 1>&6
  10528. case "$with_nls" in
  10529. "no") USE_NLS= ;;
  10530. "yes") USE_NLS="1" ;;
  10531. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10532. esac
  10533. INTLLIB=
  10534. HAVE_NLS=
  10535. if test -n "${USE_NLS}" ; then
  10536. cat >> confdefs.h <<\EOF
  10537. #define USE_NLS 1
  10538. EOF
  10539. echo $ac_n "checking for gettext""... $ac_c" 1>&6
  10540. echo "configure:13315: checking for gettext" >&5
  10541. cat > conftest.$ac_ext <<EOF
  10542. #line 13318 "configure"
  10543. #include "confdefs.h"
  10544. /* System header to define __stub macros and hopefully few prototypes,
  10545. which can conflict with char gettext(); below. */
  10546. #include <assert.h>
  10547. /* Override any gcc2 internal prototype to avoid an error. */
  10548. /* We use char because int might match the return type of a gcc2
  10549. builtin and then its argument prototype would still apply. */
  10550. char gettext();
  10551. int main() {
  10552. /* The GNU C library defines this for functions which it implements
  10553. to always fail with ENOSYS. Some functions are actually named
  10554. something starting with __ and the normal name is an alias. */
  10555. #if defined (__stub_gettext) || defined (__stub___gettext)
  10556. choke me
  10557. #else
  10558. gettext();
  10559. #endif
  10560. ; return 0; }
  10561. EOF
  10562. if { (eval echo configure:13341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10563. rm -rf conftest*
  10564. eval "ac_cv_func_gettext=yes"
  10565. else
  10566. echo "configure: failed program was:" >&5
  10567. cat conftest.$ac_ext >&5
  10568. rm -rf conftest*
  10569. eval "ac_cv_func_gettext=no"
  10570. fi
  10571. rm -f conftest*
  10572. if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
  10573. echo "$ac_t""yes" 1>&6
  10574. INTLLIB=
  10575. else
  10576. echo "$ac_t""no" 1>&6
  10577. echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
  10578. echo "configure:13359: checking for gettext in -lintl" >&5
  10579. ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
  10580. ac_save_LIBS="$LIBS"
  10581. LIBS="-lintl $LIBS"
  10582. cat > conftest.$ac_ext <<EOF
  10583. #line 13365 "configure"
  10584. #include "confdefs.h"
  10585. /* Override any gcc2 internal prototype to avoid an error. */
  10586. /* We use char because int might match the return type of a gcc2
  10587. builtin and then its argument prototype would still apply. */
  10588. char gettext();
  10589. int main() {
  10590. gettext()
  10591. ; return 0; }
  10592. EOF
  10593. if { (eval echo configure:13376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10594. rm -rf conftest*
  10595. eval "ac_cv_lib_$ac_lib_var=yes"
  10596. else
  10597. echo "configure: failed program was:" >&5
  10598. cat conftest.$ac_ext >&5
  10599. rm -rf conftest*
  10600. eval "ac_cv_lib_$ac_lib_var=no"
  10601. fi
  10602. rm -f conftest*
  10603. LIBS="$ac_save_LIBS"
  10604. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10605. echo "$ac_t""yes" 1>&6
  10606. INTLLIB=-lintl
  10607. else
  10608. echo "$ac_t""no" 1>&6
  10609. { echo "configure: error: *** Unable to locate gettext() function." 1>&2; exit 1; }
  10610. fi
  10611. fi
  10612. HAVE_NLS=1
  10613. fi
  10614. # Enable C++ option
  10615. echo $ac_n "checking whether to use C++""... $ac_c" 1>&6
  10616. echo "configure:13411: checking whether to use C++" >&5
  10617. echo "$ac_t"""$with_cxx"" 1>&6
  10618. case "$with_cxx" in
  10619. "no") USE_CXX= ;;
  10620. "yes") USE_CXX="1" ;;
  10621. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10622. esac
  10623. if test -n "$USE_CXX"; then
  10624. for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
  10625. do
  10626. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10627. set dummy $ac_prog; ac_word=$2
  10628. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  10629. echo "configure:13427: checking for $ac_word" >&5
  10630. if test -n "$CXX"; then
  10631. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10632. else
  10633. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  10634. ac_dummy="$PATH"
  10635. for ac_dir in $ac_dummy; do
  10636. test -z "$ac_dir" && ac_dir=.
  10637. if test -f $ac_dir/$ac_word; then
  10638. ac_cv_prog_CXX="$ac_prog"
  10639. break
  10640. fi
  10641. done
  10642. IFS="$ac_save_ifs"
  10643. fi
  10644. CXX="$ac_cv_prog_CXX"
  10645. if test -n "$CXX"; then
  10646. echo "$ac_t""$CXX" 1>&6
  10647. else
  10648. echo "$ac_t""no" 1>&6
  10649. fi
  10650. test -n "$CXX" && break
  10651. done
  10652. test -n "$CXX" || CXX="gcc"
  10653. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  10654. echo "configure:13456: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  10655. ac_ext=C
  10656. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  10657. ac_cpp='$CXXCPP $CPPFLAGS'
  10658. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  10659. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  10660. cross_compiling=$ac_cv_prog_cxx_cross
  10661. cat > conftest.$ac_ext << EOF
  10662. #line 13467 "configure"
  10663. #include "confdefs.h"
  10664. int main(){return(0);}
  10665. EOF
  10666. if { (eval echo configure:13472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10667. ac_cv_prog_cxx_works=yes
  10668. # If we can't run a trivial program, we are probably using a cross compiler.
  10669. if (./conftest; exit) 2>/dev/null; then
  10670. ac_cv_prog_cxx_cross=no
  10671. else
  10672. ac_cv_prog_cxx_cross=yes
  10673. fi
  10674. else
  10675. echo "configure: failed program was:" >&5
  10676. cat conftest.$ac_ext >&5
  10677. ac_cv_prog_cxx_works=no
  10678. fi
  10679. rm -fr conftest*
  10680. ac_ext=c
  10681. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  10682. ac_cpp='$CPP $CPPFLAGS'
  10683. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  10684. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  10685. cross_compiling=$ac_cv_prog_cc_cross
  10686. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  10687. if test $ac_cv_prog_cxx_works = no; then
  10688. { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  10689. fi
  10690. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  10691. echo "configure:13498: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  10692. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  10693. cross_compiling=$ac_cv_prog_cxx_cross
  10694. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  10695. echo "configure:13503: checking whether we are using GNU C++" >&5
  10696. cat > conftest.C <<EOF
  10697. #ifdef __GNUC__
  10698. yes;
  10699. #endif
  10700. EOF
  10701. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:13510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  10702. ac_cv_prog_gxx=yes
  10703. else
  10704. ac_cv_prog_gxx=no
  10705. fi
  10706. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  10707. if test $ac_cv_prog_gxx = yes; then
  10708. GXX=yes
  10709. else
  10710. GXX=
  10711. fi
  10712. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  10713. ac_save_CXXFLAGS="$CXXFLAGS"
  10714. CXXFLAGS=
  10715. echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  10716. echo "configure:13528: checking whether ${CXX-g++} accepts -g" >&5
  10717. echo 'void f(){}' > conftest.cc
  10718. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  10719. ac_cv_prog_cxx_g=yes
  10720. else
  10721. ac_cv_prog_cxx_g=no
  10722. fi
  10723. rm -f conftest*
  10724. echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  10725. if test "$ac_test_CXXFLAGS" = set; then
  10726. CXXFLAGS="$ac_save_CXXFLAGS"
  10727. elif test $ac_cv_prog_cxx_g = yes; then
  10728. if test "$GXX" = yes; then
  10729. CXXFLAGS="-g -O2"
  10730. else
  10731. CXXFLAGS="-g"
  10732. fi
  10733. else
  10734. if test "$GXX" = yes; then
  10735. CXXFLAGS="-O2"
  10736. else
  10737. CXXFLAGS=
  10738. fi
  10739. fi
  10740. else
  10741. CXX=
  10742. CXXFLAGS=
  10743. fi
  10744. # Done checking C++
  10745. # Enable openDWG option
  10746. echo $ac_n "checking whether to use openDWG""... $ac_c" 1>&6
  10747. echo "configure:13569: checking whether to use openDWG" >&5
  10748. echo "$ac_t"""$with_opendwg"" 1>&6
  10749. case "$with_opendwg" in
  10750. "no") USE_OPENDWG= ;;
  10751. "yes") USE_OPENDWG="1" ;;
  10752. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10753. esac
  10754. OPENDWGINCPATH=
  10755. OPENDWGLIBPATH=
  10756. OPENDWGLIB=
  10757. if test -n "${USE_OPENDWG}"; then
  10758. # With OPENDWG includes directory
  10759. echo $ac_n "checking for location of openDGW includes""... $ac_c" 1>&6
  10760. echo "configure:13589: checking for location of openDGW includes" >&5
  10761. case "$with_opendwg_includes" in
  10762. y | ye | yes | n | no)
  10763. { echo "configure: error: *** You must supply a directory to --with-opendwg-includes." 1>&2; exit 1; }
  10764. ;;
  10765. esac
  10766. echo "$ac_t""$with_opendwg_includes" 1>&6
  10767. if test -n "$with_opendwg_includes" ; then
  10768. for dir in $with_opendwg_includes; do
  10769. if test -d "$dir"; then
  10770. OPENDWGINCPATH="$OPENDWGINCPATH -I$dir"
  10771. else
  10772. { echo "configure: error: *** openDGW includes directory $dir does not exist." 1>&2; exit 1; }
  10773. fi
  10774. done
  10775. fi
  10776. ac_save_cppflags="$CPPFLAGS"
  10777. CPPFLAGS="$OPENDWGINCPATH $CPPFLAGS"
  10778. for ac_hdr in ad2.h
  10779. do
  10780. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10781. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10782. echo "configure:13615: checking for $ac_hdr" >&5
  10783. cat > conftest.$ac_ext <<EOF
  10784. #line 13618 "configure"
  10785. #include "confdefs.h"
  10786. #include <$ac_hdr>
  10787. EOF
  10788. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10789. { (eval echo configure:13623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10790. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10791. if test -z "$ac_err"; then
  10792. rm -rf conftest*
  10793. eval "ac_cv_header_$ac_safe=yes"
  10794. else
  10795. echo "$ac_err" >&5
  10796. echo "configure: failed program was:" >&5
  10797. cat conftest.$ac_ext >&5
  10798. rm -rf conftest*
  10799. eval "ac_cv_header_$ac_safe=no"
  10800. fi
  10801. rm -f conftest*
  10802. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10803. echo "$ac_t""yes" 1>&6
  10804. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10805. cat >> confdefs.h <<EOF
  10806. #define $ac_tr_hdr 1
  10807. EOF
  10808. else
  10809. echo "$ac_t""no" 1>&6
  10810. { echo "configure: error: *** Unable to locate openDWG includes." 1>&2; exit 1; }
  10811. fi
  10812. done
  10813. CPPFLAGS=$ac_save_cppflags
  10814. # With OPENDWG library directory
  10815. echo $ac_n "checking for location of openDWG library""... $ac_c" 1>&6
  10816. echo "configure:13657: checking for location of openDWG library" >&5
  10817. case "$with_opendwg_libs" in
  10818. y | ye | yes | n | no)
  10819. { echo "configure: error: *** You must supply a directory to --with-opendwg-libs." 1>&2; exit 1; }
  10820. ;;
  10821. esac
  10822. echo "$ac_t""$with_opendwg_libs" 1>&6
  10823. if test -n "$with_opendwg_libs"; then
  10824. for dir in $with_opendwg_libs; do
  10825. if test -d "$dir"; then
  10826. OPENDWGLIBPATH="$OPENDWGLIBPATH -L$dir"
  10827. else
  10828. { echo "configure: error: *** openDWG library directory $dir does not exist." 1>&2; exit 1; }
  10829. fi
  10830. done
  10831. fi
  10832. #search for ad2.a, ad3.a ... in openDWG toolkit directory:
  10833. #FIX ME how to program this test??
  10834. #LOC_CHECK_LIBS(ad?.a,adSeekLayer,openDWG,$OPENDWGLIBPATH,OPENDWGLIB,,)
  10835. #
  10836. #for now hack (but working):
  10837. TRUEOPENDWGLIBPATH=`echo "$OPENDWGLIBPATH" | cut -b3-`
  10838. adlib=`ls -1 "$TRUEOPENDWGLIBPATH"/ad?.a | tail -1`
  10839. OPENDWGLIB="$adlib"
  10840. fi # $USE_OPENDWG
  10841. # Done checking OPENDWG
  10842. # Enable pthread option
  10843. echo $ac_n "checking whether to use POSIX threads""... $ac_c" 1>&6
  10844. echo "configure:13698: checking whether to use POSIX threads" >&5
  10845. echo "$ac_t"""$with_pthread"" 1>&6
  10846. case "$with_pthread" in
  10847. "no") USE_PTHREAD= ;;
  10848. "yes") USE_PTHREAD="1" ;;
  10849. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10850. esac
  10851. PTHREADINCPATH=
  10852. PTHREADLIBPATH=
  10853. PTHREADLIB=
  10854. if test -n "$USE_PTHREAD"; then
  10855. # With pthread includes directory
  10856. echo $ac_n "checking for location of POSIX threads includes""... $ac_c" 1>&6
  10857. echo "configure:13718: checking for location of POSIX threads includes" >&5
  10858. case "$with_pthread_includes" in
  10859. y | ye | yes | n | no)
  10860. { echo "configure: error: *** You must supply a directory to --with-pthread-includes." 1>&2; exit 1; }
  10861. ;;
  10862. esac
  10863. echo "$ac_t""$with_pthread_includes" 1>&6
  10864. if test -n "$with_pthread_includes" ; then
  10865. for dir in $with_pthread_includes; do
  10866. if test -d "$dir"; then
  10867. PTHREADINCPATH="$PTHREADINCPATH -I$dir"
  10868. else
  10869. { echo "configure: error: *** POSIX threads includes directory $dir does not exist." 1>&2; exit 1; }
  10870. fi
  10871. done
  10872. fi
  10873. ac_save_cppflags="$CPPFLAGS"
  10874. CPPFLAGS="$PTHREADINCPATH $CPPFLAGS"
  10875. for ac_hdr in pthread.h
  10876. do
  10877. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10878. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10879. echo "configure:13744: checking for $ac_hdr" >&5
  10880. cat > conftest.$ac_ext <<EOF
  10881. #line 13747 "configure"
  10882. #include "confdefs.h"
  10883. #include <$ac_hdr>
  10884. EOF
  10885. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10886. { (eval echo configure:13752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10887. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10888. if test -z "$ac_err"; then
  10889. rm -rf conftest*
  10890. eval "ac_cv_header_$ac_safe=yes"
  10891. else
  10892. echo "$ac_err" >&5
  10893. echo "configure: failed program was:" >&5
  10894. cat conftest.$ac_ext >&5
  10895. rm -rf conftest*
  10896. eval "ac_cv_header_$ac_safe=no"
  10897. fi
  10898. rm -f conftest*
  10899. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10900. echo "$ac_t""yes" 1>&6
  10901. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10902. cat >> confdefs.h <<EOF
  10903. #define $ac_tr_hdr 1
  10904. EOF
  10905. else
  10906. echo "$ac_t""no" 1>&6
  10907. { echo "configure: error: *** Unable to locate POSIX threads includes." 1>&2; exit 1; }
  10908. fi
  10909. done
  10910. CPPFLAGS=$ac_save_cppflags
  10911. # With pthread library directory
  10912. echo $ac_n "checking for location of POSIX threads library""... $ac_c" 1>&6
  10913. echo "configure:13786: checking for location of POSIX threads library" >&5
  10914. case "$with_pthread_libs" in
  10915. y | ye | yes | n | no)
  10916. { echo "configure: error: *** You must supply a directory to --with-pthread-libs." 1>&2; exit 1; }
  10917. ;;
  10918. esac
  10919. echo "$ac_t""$with_pthread_libs" 1>&6
  10920. if test -n "$with_pthread_libs"; then
  10921. for dir in $with_pthread_libs; do
  10922. if test -d "$dir"; then
  10923. PTHREADLIBPATH="$PTHREADLIBPATH -L$dir"
  10924. else
  10925. { echo "configure: error: *** POSIX threads library directory $dir does not exist." 1>&2; exit 1; }
  10926. fi
  10927. done
  10928. fi
  10929. ac_save_libs="$LIBS"
  10930. ac_save_ldflags="$LDFLAGS"
  10931. LIBS=" $LIBS"
  10932. LDFLAGS=" $LDFLAGS"
  10933. echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
  10934. echo "configure:13811: checking for pthread_create" >&5
  10935. cat > conftest.$ac_ext <<EOF
  10936. #line 13814 "configure"
  10937. #include "confdefs.h"
  10938. /* System header to define __stub macros and hopefully few prototypes,
  10939. which can conflict with char pthread_create(); below. */
  10940. #include <assert.h>
  10941. /* Override any gcc2 internal prototype to avoid an error. */
  10942. /* We use char because int might match the return type of a gcc2
  10943. builtin and then its argument prototype would still apply. */
  10944. char pthread_create();
  10945. int main() {
  10946. /* The GNU C library defines this for functions which it implements
  10947. to always fail with ENOSYS. Some functions are actually named
  10948. something starting with __ and the normal name is an alias. */
  10949. #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
  10950. choke me
  10951. #else
  10952. pthread_create();
  10953. #endif
  10954. ; return 0; }
  10955. EOF
  10956. if { (eval echo configure:13837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10957. rm -rf conftest*
  10958. eval "ac_cv_func_pthread_create=yes"
  10959. else
  10960. echo "configure: failed program was:" >&5
  10961. cat conftest.$ac_ext >&5
  10962. rm -rf conftest*
  10963. eval "ac_cv_func_pthread_create=no"
  10964. fi
  10965. rm -f conftest*
  10966. if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
  10967. echo "$ac_t""yes" 1>&6
  10968. PTHREADLIB="$PTHREADLIB "
  10969. else
  10970. echo "$ac_t""no" 1>&6
  10971. ac_save_ldflags="$LDFLAGS"
  10972. LDFLAGS="$PTHREADLIBPATH $LDFLAGS"
  10973. echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
  10974. echo "configure:13864: checking for pthread_create in -lpthread" >&5
  10975. ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
  10976. ac_save_LIBS="$LIBS"
  10977. LIBS="-lpthread $LIBS"
  10978. cat > conftest.$ac_ext <<EOF
  10979. #line 13870 "configure"
  10980. #include "confdefs.h"
  10981. /* Override any gcc2 internal prototype to avoid an error. */
  10982. /* We use char because int might match the return type of a gcc2
  10983. builtin and then its argument prototype would still apply. */
  10984. char pthread_create();
  10985. int main() {
  10986. pthread_create()
  10987. ; return 0; }
  10988. EOF
  10989. if { (eval echo configure:13881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10990. rm -rf conftest*
  10991. eval "ac_cv_lib_$ac_lib_var=yes"
  10992. else
  10993. echo "configure: failed program was:" >&5
  10994. cat conftest.$ac_ext >&5
  10995. rm -rf conftest*
  10996. eval "ac_cv_lib_$ac_lib_var=no"
  10997. fi
  10998. rm -f conftest*
  10999. LIBS="$ac_save_LIBS"
  11000. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  11001. echo "$ac_t""yes" 1>&6
  11002. PTHREADLIB="$PTHREADLIB -lpthread "
  11003. else
  11004. echo "$ac_t""no" 1>&6
  11005. LDFLAGS=${ac_save_ldflags}
  11006. { echo "configure: error: *** Unable to locate POSIX threads library." 1>&2; exit 1; }
  11007. fi
  11008. LDFLAGS=${ac_save_ldflags}
  11009. fi
  11010. LIBS=${ac_save_libs}
  11011. LDFLAGS=${ac_save_ldflags}
  11012. fi # $USE_PTHREAD
  11013. # Done checking pthread
  11014. # Enable LFS (from cdr-tools)
  11015. # Check whether --enable-largefile or --disable-largefile was given.
  11016. if test "${enable_largefile+set}" = set; then
  11017. enableval="$enable_largefile"
  11018. :
  11019. fi
  11020. if test "$enable_largefile" = yes; then
  11021. echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
  11022. echo "configure:13937: checking for special C compiler options needed for large files" >&5
  11023. ac_cv_sys_largefile_CC=no
  11024. largefile_cc_opt=""
  11025. if test "$GCC" != yes; then
  11026. # IRIX 6.2 and later do not support large files by default,
  11027. # so use the C compiler's -n32 option if that helps.
  11028. cat > conftest.$ac_ext <<EOF
  11029. #line 13945 "configure"
  11030. #include "confdefs.h"
  11031. #include <sys/types.h>
  11032. /* Check that off_t can represent 2**63 - 1 correctly.
  11033. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  11034. since some C++ compilers masquerading as C compilers
  11035. incorrectly reject 9223372036854775807. */
  11036. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11037. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11038. && LARGE_OFF_T % 2147483647 == 1)
  11039. ? 1 : -1];
  11040. int main() {
  11041. ; return 0; }
  11042. EOF
  11043. if { (eval echo configure:13961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11044. :
  11045. else
  11046. echo "configure: failed program was:" >&5
  11047. cat conftest.$ac_ext >&5
  11048. rm -rf conftest*
  11049. ac_save_CC="${CC-cc}"
  11050. CC="$CC -n32"
  11051. cat > conftest.$ac_ext <<EOF
  11052. #line 13970 "configure"
  11053. #include "confdefs.h"
  11054. #include <sys/types.h>
  11055. /* Check that off_t can represent 2**63 - 1 correctly.
  11056. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  11057. since some C++ compilers masquerading as C compilers
  11058. incorrectly reject 9223372036854775807. */
  11059. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11060. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11061. && LARGE_OFF_T % 2147483647 == 1)
  11062. ? 1 : -1];
  11063. int main() {
  11064. ; return 0; }
  11065. EOF
  11066. if { (eval echo configure:13986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11067. rm -rf conftest*
  11068. ac_cv_sys_largefile_CC=' -n32'
  11069. else
  11070. echo "configure: failed program was:" >&5
  11071. cat conftest.$ac_ext >&5
  11072. fi
  11073. rm -f conftest*
  11074. CC="$ac_save_CC"
  11075. fi
  11076. rm -f conftest*
  11077. fi
  11078. echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6
  11079. if test "$ac_cv_sys_largefile_CC" != no; then
  11080. CC="$CC$ac_cv_sys_largefile_CC"
  11081. largefile_cc_opt="$ac_cv_sys_largefile_CC"
  11082. fi
  11083. echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
  11084. echo "configure:14006: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  11085. ac_cv_sys_file_offset_bits=no
  11086. cat > conftest.$ac_ext <<EOF
  11087. #line 14010 "configure"
  11088. #include "confdefs.h"
  11089. #include <sys/types.h>
  11090. /* Check that off_t can represent 2**63 - 1 correctly.
  11091. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  11092. since some C++ compilers masquerading as C compilers
  11093. incorrectly reject 9223372036854775807. */
  11094. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11095. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11096. && LARGE_OFF_T % 2147483647 == 1)
  11097. ? 1 : -1];
  11098. int main() {
  11099. ; return 0; }
  11100. EOF
  11101. if { (eval echo configure:14026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11102. :
  11103. else
  11104. echo "configure: failed program was:" >&5
  11105. cat conftest.$ac_ext >&5
  11106. rm -rf conftest*
  11107. cat > conftest.$ac_ext <<EOF
  11108. #line 14033 "configure"
  11109. #include "confdefs.h"
  11110. #define _FILE_OFFSET_BITS 64
  11111. #include <sys/types.h>
  11112. /* Check that off_t can represent 2**63 - 1 correctly.
  11113. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  11114. since some C++ compilers masquerading as C compilers
  11115. incorrectly reject 9223372036854775807. */
  11116. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11117. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11118. && LARGE_OFF_T % 2147483647 == 1)
  11119. ? 1 : -1];
  11120. int main() {
  11121. ; return 0; }
  11122. EOF
  11123. if { (eval echo configure:14051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11124. rm -rf conftest*
  11125. ac_cv_sys_file_offset_bits=64
  11126. else
  11127. echo "configure: failed program was:" >&5
  11128. cat conftest.$ac_ext >&5
  11129. fi
  11130. rm -f conftest*
  11131. fi
  11132. rm -f conftest*
  11133. echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
  11134. if test "$ac_cv_sys_file_offset_bits" != no; then
  11135. cat >> confdefs.h <<EOF
  11136. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  11137. EOF
  11138. fi
  11139. echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
  11140. echo "configure:14070: checking for _LARGE_FILES value needed for large files" >&5
  11141. ac_cv_sys_large_files=no
  11142. cat > conftest.$ac_ext <<EOF
  11143. #line 14074 "configure"
  11144. #include "confdefs.h"
  11145. #include <sys/types.h>
  11146. /* Check that off_t can represent 2**63 - 1 correctly.
  11147. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  11148. since some C++ compilers masquerading as C compilers
  11149. incorrectly reject 9223372036854775807. */
  11150. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11151. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11152. && LARGE_OFF_T % 2147483647 == 1)
  11153. ? 1 : -1];
  11154. int main() {
  11155. ; return 0; }
  11156. EOF
  11157. if { (eval echo configure:14090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11158. :
  11159. else
  11160. echo "configure: failed program was:" >&5
  11161. cat conftest.$ac_ext >&5
  11162. rm -rf conftest*
  11163. cat > conftest.$ac_ext <<EOF
  11164. #line 14097 "configure"
  11165. #include "confdefs.h"
  11166. #define _LARGE_FILES 1
  11167. #include <sys/types.h>
  11168. /* Check that off_t can represent 2**63 - 1 correctly.
  11169. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  11170. since some C++ compilers masquerading as C compilers
  11171. incorrectly reject 9223372036854775807. */
  11172. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11173. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11174. && LARGE_OFF_T % 2147483647 == 1)
  11175. ? 1 : -1];
  11176. int main() {
  11177. ; return 0; }
  11178. EOF
  11179. if { (eval echo configure:14115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11180. rm -rf conftest*
  11181. ac_cv_sys_large_files=1
  11182. else
  11183. echo "configure: failed program was:" >&5
  11184. cat conftest.$ac_ext >&5
  11185. fi
  11186. rm -f conftest*
  11187. fi
  11188. rm -f conftest*
  11189. echo "$ac_t""$ac_cv_sys_large_files" 1>&6
  11190. if test "$ac_cv_sys_large_files" != no; then
  11191. cat >> confdefs.h <<EOF
  11192. #define _LARGE_FILES $ac_cv_sys_large_files
  11193. EOF
  11194. fi
  11195. echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
  11196. echo "configure:14134: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  11197. ac_cv_sys_largefile_source=no
  11198. cat > conftest.$ac_ext <<EOF
  11199. #line 14138 "configure"
  11200. #include "confdefs.h"
  11201. #include <stdio.h>
  11202. int main() {
  11203. return !fseeko;
  11204. ; return 0; }
  11205. EOF
  11206. if { (eval echo configure:14145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11207. :
  11208. else
  11209. echo "configure: failed program was:" >&5
  11210. cat conftest.$ac_ext >&5
  11211. rm -rf conftest*
  11212. cat > conftest.$ac_ext <<EOF
  11213. #line 14152 "configure"
  11214. #include "confdefs.h"
  11215. #define _LARGEFILE_SOURCE 1
  11216. #include <stdio.h>
  11217. int main() {
  11218. return !fseeko;
  11219. ; return 0; }
  11220. EOF
  11221. if { (eval echo configure:14161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11222. rm -rf conftest*
  11223. ac_cv_sys_largefile_source=1
  11224. else
  11225. echo "configure: failed program was:" >&5
  11226. cat conftest.$ac_ext >&5
  11227. fi
  11228. rm -f conftest*
  11229. fi
  11230. rm -f conftest*
  11231. echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
  11232. if test "$ac_cv_sys_largefile_source" != no; then
  11233. cat >> confdefs.h <<EOF
  11234. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  11235. EOF
  11236. fi
  11237. fi
  11238. echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
  11239. echo "configure:14182: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  11240. ac_cv_sys_largefile_source=no
  11241. cat > conftest.$ac_ext <<EOF
  11242. #line 14186 "configure"
  11243. #include "confdefs.h"
  11244. #include <stdio.h>
  11245. int main() {
  11246. return !fseeko;
  11247. ; return 0; }
  11248. EOF
  11249. if { (eval echo configure:14193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11250. :
  11251. else
  11252. echo "configure: failed program was:" >&5
  11253. cat conftest.$ac_ext >&5
  11254. rm -rf conftest*
  11255. cat > conftest.$ac_ext <<EOF
  11256. #line 14200 "configure"
  11257. #include "confdefs.h"
  11258. #define _LARGEFILE_SOURCE 1
  11259. #include <stdio.h>
  11260. int main() {
  11261. return !fseeko;
  11262. ; return 0; }
  11263. EOF
  11264. if { (eval echo configure:14209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11265. rm -rf conftest*
  11266. ac_cv_sys_largefile_source=1
  11267. else
  11268. echo "configure: failed program was:" >&5
  11269. cat conftest.$ac_ext >&5
  11270. fi
  11271. rm -f conftest*
  11272. fi
  11273. rm -f conftest*
  11274. echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
  11275. if test "$ac_cv_sys_largefile_source" != no; then
  11276. cat >> confdefs.h <<EOF
  11277. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  11278. EOF
  11279. fi
  11280. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  11281. # in glibc 2.1.3, but that breaks too many other things.
  11282. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  11283. echo $ac_n "checking for fseeko""... $ac_c" 1>&6
  11284. echo "configure:14232: checking for fseeko" >&5
  11285. ac_cv_func_fseeko=no
  11286. cat > conftest.$ac_ext <<EOF
  11287. #line 14236 "configure"
  11288. #include "confdefs.h"
  11289. #include <stdio.h>
  11290. int main() {
  11291. return fseeko && fseeko (stdin, 0, 0);
  11292. ; return 0; }
  11293. EOF
  11294. if { (eval echo configure:14243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  11295. rm -rf conftest*
  11296. ac_cv_func_fseeko=yes
  11297. else
  11298. echo "configure: failed program was:" >&5
  11299. cat conftest.$ac_ext >&5
  11300. fi
  11301. rm -f conftest*
  11302. echo "$ac_t""$ac_cv_func_fseeko" 1>&6
  11303. if test $ac_cv_func_fseeko != no; then
  11304. cat >> confdefs.h <<\EOF
  11305. #define HAVE_FSEEKO 1
  11306. EOF
  11307. fi
  11308. echo $ac_n "checking if system supports Large Files at all""... $ac_c" 1>&6
  11309. echo "configure:14260: checking if system supports Large Files at all" >&5
  11310. cat > conftest.$ac_ext <<EOF
  11311. #line 14263 "configure"
  11312. #include "confdefs.h"
  11313. #include <stdio.h>
  11314. #include <sys/types.h>
  11315. int main() {
  11316. /*
  11317. * Check that off_t can represent 2**63 - 1 correctly.
  11318. * We can't simply "#define LARGE_OFF_T 9223372036854775807",
  11319. * since some C++ compilers masquerading as C compilers
  11320. * incorrectly reject 9223372036854775807.
  11321. *
  11322. * For MinGW, off64_t should be used and __MSVCRT_VERSION__ >= 0x0601
  11323. * (msvcrt.dll version 6.10 or higher) is needed for _fstat64 and _stat64.
  11324. */
  11325. #ifdef __MINGW32__
  11326. # define LARGE_OFF_T (((off64_t) 1 << 62) - 1 + ((off64_t) 1 << 62))
  11327. #else
  11328. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11329. #endif
  11330. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11331. && LARGE_OFF_T % 2147483647 == 1)
  11332. ? 1 : -1];
  11333. #ifdef __MINGW32__
  11334. return !fseeko64;
  11335. return !ftello64;
  11336. #else
  11337. return !fseeko;
  11338. return !ftello;
  11339. #endif
  11340. ; return 0; }
  11341. EOF
  11342. if { (eval echo configure:14295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11343. rm -rf conftest*
  11344. ac_cv_largefiles=yes
  11345. else
  11346. echo "configure: failed program was:" >&5
  11347. cat conftest.$ac_ext >&5
  11348. rm -rf conftest*
  11349. ac_cv_largefiles=no
  11350. fi
  11351. rm -f conftest*
  11352. echo "$ac_t""$ac_cv_largefiles" 1>&6
  11353. if test $ac_cv_largefiles = yes; then
  11354. cat >> confdefs.h <<\EOF
  11355. #define HAVE_LARGEFILES 1
  11356. EOF
  11357. fi
  11358. USE_LARGEFILES=
  11359. if test $ac_cv_largefiles = yes; then
  11360. USE_LARGEFILES=1
  11361. fi
  11362. # Done large file support
  11363. # Enable wxWidgets support (for wxGUI)
  11364. echo $ac_n "checking whether to use wxWidgets""... $ac_c" 1>&6
  11365. echo "configure:14324: checking whether to use wxWidgets" >&5
  11366. WXVERSION=
  11367. WXWIDGETSCXXFLAGS=
  11368. WXWIDGETSCPPFLAGS=
  11369. WXWIDGETSLIB=
  11370. USE_WXWIDGETS=
  11371. MACOSX_ARCHS_WXPYTHON=
  11372. if test "$with_wxwidgets" = "no" ; then
  11373. echo "$ac_t""no" 1>&6
  11374. else
  11375. echo "$ac_t""yes" 1>&6
  11376. USE_WXWIDGETS="1"
  11377. if test "$with_wxwidgets" != "yes" ; then
  11378. WX_CONFIG="$with_wxwidgets"
  11379. fi
  11380. # Extract the first word of "wx-config", so it can be a program name with args.
  11381. set dummy wx-config; ac_word=$2
  11382. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  11383. echo "configure:14345: checking for $ac_word" >&5
  11384. case "$WX_CONFIG" in
  11385. /*)
  11386. ac_cv_path_WX_CONFIG="$WX_CONFIG" # Let the user override the test with a path.
  11387. ;;
  11388. ?:/*)
  11389. ac_cv_path_WX_CONFIG="$WX_CONFIG" # Let the user override the test with a dos path.
  11390. ;;
  11391. *)
  11392. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  11393. ac_dummy="$PATH"
  11394. for ac_dir in $ac_dummy; do
  11395. test -z "$ac_dir" && ac_dir=.
  11396. if test -f $ac_dir/$ac_word; then
  11397. ac_cv_path_WX_CONFIG="$ac_dir/$ac_word"
  11398. break
  11399. fi
  11400. done
  11401. IFS="$ac_save_ifs"
  11402. test -z "$ac_cv_path_WX_CONFIG" && ac_cv_path_WX_CONFIG="no"
  11403. ;;
  11404. esac
  11405. WX_CONFIG="$ac_cv_path_WX_CONFIG"
  11406. if test -n "$WX_CONFIG"; then
  11407. echo "$ac_t""$WX_CONFIG" 1>&6
  11408. else
  11409. echo "$ac_t""no" 1>&6
  11410. fi
  11411. if test "$WX_CONFIG" = "no" ; then
  11412. { echo "configure: error: *** couldn't find wx-config
  11413. wxWidgets must be installed on your system.
  11414. Please check that wx-config is in path, the directory
  11415. where wxWidgets libraries are installed (returned by
  11416. 'wx-config --libs' or 'wx-config --static --libs' command)
  11417. is in LD_LIBRARY_PATH or equivalent variable and
  11418. wxWidgets version is 2.8.1 or above." 1>&2; exit 1; }
  11419. fi
  11420. # Check wxWidgets version
  11421. REQWX="2.8.1"
  11422. echo $ac_n "checking wxWidgets version""... $ac_c" 1>&6
  11423. echo "configure:14393: checking wxWidgets version" >&5
  11424. if WXVERSION=`"$WX_CONFIG" --version`; then
  11425. echo "$ac_t""$WXVERSION" 1>&6
  11426. else
  11427. echo "$ac_t""not found" 1>&6
  11428. { echo "configure: error: wxWidgets is required." 1>&2; exit 1; }
  11429. fi
  11430. if test `expr "$WXVERSION" \< "$REQWX"` = 1 ; then
  11431. { echo "configure: error: *** wxWidgets "$REQWX" or later is required." 1>&2; exit 1; }
  11432. fi
  11433. # With wxWidgets includes directory
  11434. WXWIDGETSCXXFLAGS=`"$WX_CONFIG" --cxxflags`
  11435. WXWIDGETSCPPFLAGS=`"$WX_CONFIG" --cppflags`
  11436. ac_save_cppflags="$CPPFLAGS"
  11437. CPPFLAGS="$WXWIDGETSCPPFLAGS $CPPFLAGS"
  11438. for ac_hdr in wx/wxprec.h
  11439. do
  11440. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  11441. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  11442. echo "configure:14416: checking for $ac_hdr" >&5
  11443. cat > conftest.$ac_ext <<EOF
  11444. #line 14419 "configure"
  11445. #include "confdefs.h"
  11446. #include <$ac_hdr>
  11447. EOF
  11448. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  11449. { (eval echo configure:14424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  11450. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  11451. if test -z "$ac_err"; then
  11452. rm -rf conftest*
  11453. eval "ac_cv_header_$ac_safe=yes"
  11454. else
  11455. echo "$ac_err" >&5
  11456. echo "configure: failed program was:" >&5
  11457. cat conftest.$ac_ext >&5
  11458. rm -rf conftest*
  11459. eval "ac_cv_header_$ac_safe=no"
  11460. fi
  11461. rm -f conftest*
  11462. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  11463. echo "$ac_t""yes" 1>&6
  11464. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  11465. cat >> confdefs.h <<EOF
  11466. #define $ac_tr_hdr 1
  11467. EOF
  11468. else
  11469. echo "$ac_t""no" 1>&6
  11470. { echo "configure: error: *** Unable to locate wxWidgets includes." 1>&2; exit 1; }
  11471. fi
  11472. done
  11473. CPPFLAGS=$ac_save_cppflags
  11474. # With wxWidgets library directory
  11475. WXWIDGETSLIB=`"$WX_CONFIG" --libs`
  11476. # shouldn't have arch flags in C/LD flags on OSX
  11477. for a in i386 ppc x86_64 ppc64
  11478. do
  11479. WXWIDGETSCXXFLAGS=`echo "$WXWIDGETSCXXFLAGS" | sed "s/-arch *$a//g"`
  11480. WXWIDGETSCPPFLAGS=`echo "$WXWIDGETSCPPFLAGS" | sed "s/-arch *$a//g"`
  11481. WXWIDGETSLIB=`echo "$WXWIDGETSLIB" | sed "s/-arch *$a//g"`
  11482. done
  11483. # check for available OSX archs in wxPython
  11484. if test -n "$MACOSX_ARCHS" ; then
  11485. wxver=`"$WX_CONFIG" --version`
  11486. wxlib=`"$WX_CONFIG" --prefix`/lib/lib`"$WX_CONFIG" --basename`-`echo "$wxver" | cut -d . -f1,2`.dylib
  11487. wxlibinfo=`file "$wxlib"`
  11488. for a in i386 ppc x86_64 ppc64
  11489. do
  11490. # add only if in MACOSX_ARCHS
  11491. if test -n "`echo \"$wxlibinfo\" | grep \"library $a\"`" ; then
  11492. if test -n "`echo \"$MACOSX_ARCHS\" | grep $a`" ; then
  11493. MACOSX_ARCHS_WXPYTHON="$MACOSX_ARCHS_WXPYTHON -arch $a"
  11494. fi
  11495. fi
  11496. done
  11497. fi
  11498. fi # $USE_WXWIDGETS
  11499. # Done checking wxWidgets
  11500. USE_TERMIO=
  11501. STRIPFLAG=
  11502. GRASS_HOME="${DSTDIR}"
  11503. trap '' 1 2 15
  11504. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  11505. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11506. # Let make expand exec_prefix.
  11507. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11508. # Any assignment to VPATH causes Sun make to only execute
  11509. # the first set of double-colon rules, so remove it if not needed.
  11510. # If there is a colon in the path, we need to keep it.
  11511. if test "x$srcdir" = x.; then
  11512. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  11513. fi
  11514. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  11515. DEFS=-DHAVE_CONFIG_H
  11516. # Without the "./", some shells look in PATH for config.status.
  11517. : ${CONFIG_STATUS=./config.status}
  11518. echo creating $CONFIG_STATUS
  11519. rm -f $CONFIG_STATUS
  11520. cat > $CONFIG_STATUS <<EOF
  11521. #! /bin/sh
  11522. # Generated automatically by configure.
  11523. # Run this file to recreate the current configuration.
  11524. # This directory was configured as follows,
  11525. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11526. #
  11527. # $0 $ac_configure_args
  11528. #
  11529. # Compiler output produced by configure, useful for debugging
  11530. # configure, is in ./config.log if it exists.
  11531. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  11532. for ac_option
  11533. do
  11534. case "\$ac_option" in
  11535. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11536. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  11537. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  11538. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  11539. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  11540. exit 0 ;;
  11541. -help | --help | --hel | --he | --h)
  11542. echo "\$ac_cs_usage"; exit 0 ;;
  11543. *) echo "\$ac_cs_usage"; exit 1 ;;
  11544. esac
  11545. done
  11546. ac_given_srcdir=$srcdir
  11547. ac_given_INSTALL="$INSTALL"
  11548. trap 'rm -fr `echo "include/Make/Platform.make include/Make/Doxyfile_arch_html include/Make/Doxyfile_arch_latex include/version.h grass.pc include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  11549. EOF
  11550. cat >> $CONFIG_STATUS <<EOF
  11551. # Protect against being on the right side of a sed subst in config.status.
  11552. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  11553. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  11554. $ac_vpsub
  11555. $extrasub
  11556. s%@SHELL@%$SHELL%g
  11557. s%@CFLAGS@%$CFLAGS%g
  11558. s%@CPPFLAGS@%$CPPFLAGS%g
  11559. s%@CXXFLAGS@%$CXXFLAGS%g
  11560. s%@FFLAGS@%$FFLAGS%g
  11561. s%@DEFS@%$DEFS%g
  11562. s%@LDFLAGS@%$LDFLAGS%g
  11563. s%@LIBS@%$LIBS%g
  11564. s%@exec_prefix@%$exec_prefix%g
  11565. s%@prefix@%$prefix%g
  11566. s%@program_transform_name@%$program_transform_name%g
  11567. s%@bindir@%$bindir%g
  11568. s%@sbindir@%$sbindir%g
  11569. s%@libexecdir@%$libexecdir%g
  11570. s%@datadir@%$datadir%g
  11571. s%@sysconfdir@%$sysconfdir%g
  11572. s%@sharedstatedir@%$sharedstatedir%g
  11573. s%@localstatedir@%$localstatedir%g
  11574. s%@libdir@%$libdir%g
  11575. s%@includedir@%$includedir%g
  11576. s%@oldincludedir@%$oldincludedir%g
  11577. s%@infodir@%$infodir%g
  11578. s%@mandir@%$mandir%g
  11579. s%@host@%$host%g
  11580. s%@host_alias@%$host_alias%g
  11581. s%@host_cpu@%$host_cpu%g
  11582. s%@host_vendor@%$host_vendor%g
  11583. s%@host_os@%$host_os%g
  11584. s%@CC@%$CC%g
  11585. s%@EXEEXT@%$EXEEXT%g
  11586. s%@MINGW32@%$MINGW32%g
  11587. s%@BINDIR@%$BINDIR%g
  11588. s%@pwd@%$pwd%g
  11589. s%@SRCDIR@%$SRCDIR%g
  11590. s%@DSTDIR@%$DSTDIR%g
  11591. s%@ARCH@%$ARCH%g
  11592. s%@GISBASE@%$GISBASE%g
  11593. s%@GRASS_BIN@%$GRASS_BIN%g
  11594. s%@SVN_VERSION@%$SVN_VERSION%g
  11595. s%@GRASS_VERSION_FILE@%$GRASS_VERSION_FILE%g
  11596. s%@GRASS_VERSION_MAJOR@%$GRASS_VERSION_MAJOR%g
  11597. s%@GRASS_VERSION_MINOR@%$GRASS_VERSION_MINOR%g
  11598. s%@GRASS_VERSION_RELEASE@%$GRASS_VERSION_RELEASE%g
  11599. s%@GRASS_VERSION_NUMBER@%$GRASS_VERSION_NUMBER%g
  11600. s%@GRASS_VERSION_DATE@%$GRASS_VERSION_DATE%g
  11601. s%@GRASS_VERSION_SVN@%$GRASS_VERSION_SVN%g
  11602. s%@NAME_VER@%$NAME_VER%g
  11603. s%@LIB_VER@%$LIB_VER%g
  11604. s%@MACOSX_APP@%$MACOSX_APP%g
  11605. s%@MACOSX_ARCHS@%$MACOSX_ARCHS%g
  11606. s%@MACOSX_SDK@%$MACOSX_SDK%g
  11607. s%@INSTDIR@%$INSTDIR%g
  11608. s%@GRASS_LIB_PREFIX@%$GRASS_LIB_PREFIX%g
  11609. s%@GRASS_LIB_SUFFIX@%$GRASS_LIB_SUFFIX%g
  11610. s%@GRASS_LIBRARY_TYPE@%$GRASS_LIBRARY_TYPE%g
  11611. s%@PLAT_OBJS@%$PLAT_OBJS%g
  11612. s%@CC_SEARCH_FLAGS@%$CC_SEARCH_FLAGS%g
  11613. s%@LD_SEARCH_FLAGS@%$LD_SEARCH_FLAGS%g
  11614. s%@LD_LIBRARY_PATH_VAR@%$LD_LIBRARY_PATH_VAR%g
  11615. s%@SHLIB_LD@%$SHLIB_LD%g
  11616. s%@SHLIB_LD_FLAGS@%$SHLIB_LD_FLAGS%g
  11617. s%@SHLIB_LD_LIBS@%$SHLIB_LD_LIBS%g
  11618. s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
  11619. s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
  11620. s%@STLIB_LD@%$STLIB_LD%g
  11621. s%@STLIB_SUFFIX@%$STLIB_SUFFIX%g
  11622. s%@INCLUDE_DIRS@%$INCLUDE_DIRS%g
  11623. s%@LIBRARY_DIRS@%$LIBRARY_DIRS%g
  11624. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  11625. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  11626. s%@INSTALL_DATA@%$INSTALL_DATA%g
  11627. s%@LEX@%$LEX%g
  11628. s%@LEXLIB@%$LEXLIB%g
  11629. s%@LEXPATH@%$LEXPATH%g
  11630. s%@YACC@%$YACC%g
  11631. s%@YACCPATH@%$YACCPATH%g
  11632. s%@RANLIB@%$RANLIB%g
  11633. s%@AR@%$AR%g
  11634. s%@ENV@%$ENV%g
  11635. s%@PERL@%$PERL%g
  11636. s%@CPP@%$CPP%g
  11637. s%@CROSS_COMPILING@%$CROSS_COMPILING%g
  11638. s%@X_CFLAGS@%$X_CFLAGS%g
  11639. s%@X_LIBS@%$X_LIBS%g
  11640. s%@X_PRE_LIBS@%$X_PRE_LIBS%g
  11641. s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  11642. s%@XLIB@%$XLIB%g
  11643. s%@XTLIB@%$XTLIB%g
  11644. s%@USE_X11@%$USE_X11%g
  11645. s%@DBMIEXTRALIB@%$DBMIEXTRALIB%g
  11646. s%@XDRLIB@%$XDRLIB%g
  11647. s%@HAVE_ASPRINTF@%$HAVE_ASPRINTF%g
  11648. s%@MATHLIB@%$MATHLIB%g
  11649. s%@DLLIB@%$DLLIB%g
  11650. s%@ICONVLIB@%$ICONVLIB%g
  11651. s%@SOCKLIB@%$SOCKLIB%g
  11652. s%@HAVE_SOCKET@%$HAVE_SOCKET%g
  11653. s%@ZLIBINCPATH@%$ZLIBINCPATH%g
  11654. s%@ZLIBLIBPATH@%$ZLIBLIBPATH%g
  11655. s%@ZLIB@%$ZLIB%g
  11656. s%@PROJINC@%$PROJINC%g
  11657. s%@PROJLIB@%$PROJLIB%g
  11658. s%@PROJSHARE@%$PROJSHARE%g
  11659. s%@NAD2BIN@%$NAD2BIN%g
  11660. s%@REGEXINCPATH@%$REGEXINCPATH%g
  11661. s%@REGEXLIBPATH@%$REGEXLIBPATH%g
  11662. s%@REGEXLIB@%$REGEXLIB%g
  11663. s%@USE_REGEX@%$USE_REGEX%g
  11664. s%@READLINEINCPATH@%$READLINEINCPATH%g
  11665. s%@READLINELIBPATH@%$READLINELIBPATH%g
  11666. s%@READLINELIB@%$READLINELIB%g
  11667. s%@HISTORYLIB@%$HISTORYLIB%g
  11668. s%@JPEGINCPATH@%$JPEGINCPATH%g
  11669. s%@JPEGLIBPATH@%$JPEGLIBPATH%g
  11670. s%@JPEGLIB@%$JPEGLIB%g
  11671. s%@GDAL_CONFIG@%$GDAL_CONFIG%g
  11672. s%@GDAL_LIBS@%$GDAL_LIBS%g
  11673. s%@GDAL_CFLAGS@%$GDAL_CFLAGS%g
  11674. s%@USE_GDAL@%$USE_GDAL%g
  11675. s%@USE_OGR@%$USE_OGR%g
  11676. s%@LIBLAS_CONFIG@%$LIBLAS_CONFIG%g
  11677. s%@LIBLAS_LIBS@%$LIBLAS_LIBS%g
  11678. s%@LIBLAS_CFLAGS@%$LIBLAS_CFLAGS%g
  11679. s%@LIBLAS_INC@%$LIBLAS_INC%g
  11680. s%@USE_LIBLAS@%$USE_LIBLAS%g
  11681. s%@GEOS_CONFIG@%$GEOS_CONFIG%g
  11682. s%@GEOS_LIBS@%$GEOS_LIBS%g
  11683. s%@GEOS_CFLAGS@%$GEOS_CFLAGS%g
  11684. s%@USE_GEOS@%$USE_GEOS%g
  11685. s%@TIFF_INCLUDE_DIRS@%$TIFF_INCLUDE_DIRS%g
  11686. s%@TIFF_LIBRARY_DIRS@%$TIFF_LIBRARY_DIRS%g
  11687. s%@TIFFLIB@%$TIFFLIB%g
  11688. s%@PNGINC@%$PNGINC%g
  11689. s%@PNGLIB@%$PNGLIB%g
  11690. s%@USE_PNG@%$USE_PNG%g
  11691. s%@USE_POSTGRES@%$USE_POSTGRES%g
  11692. s%@PQINCPATH@%$PQINCPATH%g
  11693. s%@PQLIBPATH@%$PQLIBPATH%g
  11694. s%@PQLIB@%$PQLIB%g
  11695. s%@MYSQLD_CONFIG@%$MYSQLD_CONFIG%g
  11696. s%@USE_MYSQL@%$USE_MYSQL%g
  11697. s%@MYSQLINCPATH@%$MYSQLINCPATH%g
  11698. s%@MYSQLLIBPATH@%$MYSQLLIBPATH%g
  11699. s%@MYSQLLIB@%$MYSQLLIB%g
  11700. s%@MYSQLDLIB@%$MYSQLDLIB%g
  11701. s%@USE_SQLITE@%$USE_SQLITE%g
  11702. s%@SQLITEINCPATH@%$SQLITEINCPATH%g
  11703. s%@SQLITELIBPATH@%$SQLITELIBPATH%g
  11704. s%@SQLITELIB@%$SQLITELIB%g
  11705. s%@USE_FFMPEG@%$USE_FFMPEG%g
  11706. s%@FFMPEGINCPATH@%$FFMPEGINCPATH%g
  11707. s%@FFMPEGLIBPATH@%$FFMPEGLIBPATH%g
  11708. s%@FFMPEGLIB@%$FFMPEGLIB%g
  11709. s%@USE_OPENGL@%$USE_OPENGL%g
  11710. s%@OPENGL_X11@%$OPENGL_X11%g
  11711. s%@OPENGL_AQUA@%$OPENGL_AQUA%g
  11712. s%@OPENGL_WINDOWS@%$OPENGL_WINDOWS%g
  11713. s%@OPENGLINC@%$OPENGLINC%g
  11714. s%@OPENGLLIB@%$OPENGLLIB%g
  11715. s%@OPENGLULIB@%$OPENGLULIB%g
  11716. s%@USE_TCLTK@%$USE_TCLTK%g
  11717. s%@TCLINCDIR@%$TCLINCDIR%g
  11718. s%@TKINCDIR@%$TKINCDIR%g
  11719. s%@TCLTKLIBPATH@%$TCLTKLIBPATH%g
  11720. s%@TCLTKLIBS@%$TCLTKLIBS%g
  11721. s%@MACOSX_ARCHS_TCLTK@%$MACOSX_ARCHS_TCLTK%g
  11722. s%@ODBCINC@%$ODBCINC%g
  11723. s%@ODBCLIB@%$ODBCLIB%g
  11724. s%@FFTWINC@%$FFTWINC%g
  11725. s%@FFTWLIB@%$FFTWLIB%g
  11726. s%@BLASLIB@%$BLASLIB%g
  11727. s%@BLASINC@%$BLASINC%g
  11728. s%@LAPACKLIB@%$LAPACKLIB%g
  11729. s%@LAPACKINC@%$LAPACKINC%g
  11730. s%@CAIRO_HAS_XRENDER@%$CAIRO_HAS_XRENDER%g
  11731. s%@CAIRO_HAS_XRENDER_SURFACE@%$CAIRO_HAS_XRENDER_SURFACE%g
  11732. s%@CAIROINC@%$CAIROINC%g
  11733. s%@CAIROLIB@%$CAIROLIB%g
  11734. s%@USE_CAIRO@%$USE_CAIRO%g
  11735. s%@FTINC@%$FTINC%g
  11736. s%@FTLIB@%$FTLIB%g
  11737. s%@INTLLIB@%$INTLLIB%g
  11738. s%@HAVE_NLS@%$HAVE_NLS%g
  11739. s%@CXX@%$CXX%g
  11740. s%@OPENDWGINCPATH@%$OPENDWGINCPATH%g
  11741. s%@OPENDWGLIBPATH@%$OPENDWGLIBPATH%g
  11742. s%@OPENDWGLIB@%$OPENDWGLIB%g
  11743. s%@USE_OPENDWG@%$USE_OPENDWG%g
  11744. s%@PTHREADINCPATH@%$PTHREADINCPATH%g
  11745. s%@PTHREADLIBPATH@%$PTHREADLIBPATH%g
  11746. s%@PTHREADLIB@%$PTHREADLIB%g
  11747. s%@USE_PTHREAD@%$USE_PTHREAD%g
  11748. s%@USE_LARGEFILES@%$USE_LARGEFILES%g
  11749. s%@WX_CONFIG@%$WX_CONFIG%g
  11750. s%@WXVERSION@%$WXVERSION%g
  11751. s%@WXWIDGETSCXXFLAGS@%$WXWIDGETSCXXFLAGS%g
  11752. s%@WXWIDGETSCPPFLAGS@%$WXWIDGETSCPPFLAGS%g
  11753. s%@WXWIDGETSLIB@%$WXWIDGETSLIB%g
  11754. s%@USE_WXWIDGETS@%$USE_WXWIDGETS%g
  11755. s%@MACOSX_ARCHS_WXPYTHON@%$MACOSX_ARCHS_WXPYTHON%g
  11756. s%@USE_TERMIO@%$USE_TERMIO%g
  11757. s%@STRIPFLAG@%$STRIPFLAG%g
  11758. s%@GRASS_HOME@%$GRASS_HOME%g
  11759. CEOF
  11760. EOF
  11761. cat >> $CONFIG_STATUS <<\EOF
  11762. # Split the substitutions into bite-sized pieces for seds with
  11763. # small command number limits, like on Digital OSF/1 and HP-UX.
  11764. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  11765. ac_file=1 # Number of current file.
  11766. ac_beg=1 # First line for current file.
  11767. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  11768. ac_more_lines=:
  11769. ac_sed_cmds=""
  11770. while $ac_more_lines; do
  11771. if test $ac_beg -gt 1; then
  11772. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  11773. else
  11774. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  11775. fi
  11776. if test ! -s conftest.s$ac_file; then
  11777. ac_more_lines=false
  11778. rm -f conftest.s$ac_file
  11779. else
  11780. if test -z "$ac_sed_cmds"; then
  11781. ac_sed_cmds="sed -f conftest.s$ac_file"
  11782. else
  11783. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  11784. fi
  11785. ac_file=`expr $ac_file + 1`
  11786. ac_beg=$ac_end
  11787. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  11788. fi
  11789. done
  11790. if test -z "$ac_sed_cmds"; then
  11791. ac_sed_cmds=cat
  11792. fi
  11793. EOF
  11794. cat >> $CONFIG_STATUS <<EOF
  11795. CONFIG_FILES=\${CONFIG_FILES-"include/Make/Platform.make include/Make/Doxyfile_arch_html include/Make/Doxyfile_arch_latex include/version.h grass.pc"}
  11796. EOF
  11797. cat >> $CONFIG_STATUS <<\EOF
  11798. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  11799. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11800. case "$ac_file" in
  11801. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  11802. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11803. *) ac_file_in="${ac_file}.in" ;;
  11804. esac
  11805. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  11806. # Remove last slash and all that follows it. Not all systems have dirname.
  11807. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  11808. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  11809. # The file is in a subdirectory.
  11810. test ! -d "$ac_dir" && mkdir "$ac_dir"
  11811. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  11812. # A "../" for each directory in $ac_dir_suffix.
  11813. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  11814. else
  11815. ac_dir_suffix= ac_dots=
  11816. fi
  11817. case "$ac_given_srcdir" in
  11818. .) srcdir=.
  11819. if test -z "$ac_dots"; then top_srcdir=.
  11820. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  11821. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  11822. *) # Relative path.
  11823. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  11824. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  11825. esac
  11826. case "$ac_given_INSTALL" in
  11827. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  11828. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  11829. esac
  11830. echo creating "$ac_file"
  11831. rm -f "$ac_file"
  11832. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  11833. case "$ac_file" in
  11834. *Makefile*) ac_comsub="1i\\
  11835. # $configure_input" ;;
  11836. *) ac_comsub= ;;
  11837. esac
  11838. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  11839. sed -e "$ac_comsub
  11840. s%@configure_input@%$configure_input%g
  11841. s%@srcdir@%$srcdir%g
  11842. s%@top_srcdir@%$top_srcdir%g
  11843. s%@INSTALL@%$INSTALL%g
  11844. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  11845. fi; done
  11846. rm -f conftest.s*
  11847. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11848. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11849. #
  11850. # ac_d sets the value in "#define NAME VALUE" lines.
  11851. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11852. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  11853. ac_dC='\3'
  11854. ac_dD='%g'
  11855. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  11856. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11857. ac_uB='\([ ]\)%\1#\2define\3'
  11858. ac_uC=' '
  11859. ac_uD='\4%g'
  11860. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11861. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11862. ac_eB='$%\1#\2define\3'
  11863. ac_eC=' '
  11864. ac_eD='%g'
  11865. if test "${CONFIG_HEADERS+set}" != set; then
  11866. EOF
  11867. cat >> $CONFIG_STATUS <<EOF
  11868. CONFIG_HEADERS="include/config.h"
  11869. EOF
  11870. cat >> $CONFIG_STATUS <<\EOF
  11871. fi
  11872. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  11873. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11874. case "$ac_file" in
  11875. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  11876. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11877. *) ac_file_in="${ac_file}.in" ;;
  11878. esac
  11879. echo creating $ac_file
  11880. rm -f conftest.frag conftest.in conftest.out
  11881. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  11882. cat $ac_file_inputs > conftest.in
  11883. EOF
  11884. # Transform confdefs.h into a sed script conftest.vals that substitutes
  11885. # the proper values into config.h.in to produce config.h. And first:
  11886. # Protect against being on the right side of a sed subst in config.status.
  11887. # Protect against being in an unquoted here document in config.status.
  11888. rm -f conftest.vals
  11889. cat > conftest.hdr <<\EOF
  11890. s/[\\&%]/\\&/g
  11891. s%[\\$`]%\\&%g
  11892. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  11893. s%ac_d%ac_u%gp
  11894. s%ac_u%ac_e%gp
  11895. EOF
  11896. sed -n -f conftest.hdr confdefs.h > conftest.vals
  11897. rm -f conftest.hdr
  11898. # This sed command replaces #undef with comments. This is necessary, for
  11899. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11900. # on some systems where configure will not decide to define it.
  11901. cat >> conftest.vals <<\EOF
  11902. s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  11903. EOF
  11904. # Break up conftest.vals because some shells have a limit on
  11905. # the size of here documents, and old seds have small limits too.
  11906. rm -f conftest.tail
  11907. while :
  11908. do
  11909. ac_lines=`grep -c . conftest.vals`
  11910. # grep -c gives empty output for an empty file on some AIX systems.
  11911. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  11912. # Write a limited-size here document to conftest.frag.
  11913. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  11914. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  11915. echo 'CEOF
  11916. sed -f conftest.frag conftest.in > conftest.out
  11917. rm -f conftest.in
  11918. mv conftest.out conftest.in
  11919. ' >> $CONFIG_STATUS
  11920. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  11921. rm -f conftest.vals
  11922. mv conftest.tail conftest.vals
  11923. done
  11924. rm -f conftest.vals
  11925. cat >> $CONFIG_STATUS <<\EOF
  11926. rm -f conftest.frag conftest.h
  11927. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  11928. cat conftest.in >> conftest.h
  11929. rm -f conftest.in
  11930. if cmp -s $ac_file conftest.h 2>/dev/null; then
  11931. echo "$ac_file is unchanged"
  11932. rm -f conftest.h
  11933. else
  11934. # Remove last slash and all that follows it. Not all systems have dirname.
  11935. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  11936. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  11937. # The file is in a subdirectory.
  11938. test ! -d "$ac_dir" && mkdir "$ac_dir"
  11939. fi
  11940. rm -f $ac_file
  11941. mv conftest.h $ac_file
  11942. fi
  11943. fi; done
  11944. EOF
  11945. cat >> $CONFIG_STATUS <<EOF
  11946. EOF
  11947. cat >> $CONFIG_STATUS <<\EOF
  11948. exit 0
  11949. EOF
  11950. chmod +x $CONFIG_STATUS
  11951. rm -fr confdefs* $ac_clean_files
  11952. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  11953. echo "Copying config.status to config.status.${ARCH}"
  11954. cp -f config.status config.status.${ARCH}
  11955. # Display configuration status
  11956. USE_TOGL=
  11957. if test -n "${USE_TCLTK}" -a -n "${USE_OPENGL}" ; then
  11958. USE_TOGL="1"
  11959. fi
  11960. echo ""
  11961. echo "GRASS is now configured for: ${host}"
  11962. echo ""
  11963. echo " Source directory: ${SRCDIR}"
  11964. echo " Build directory: ${DSTDIR}"
  11965. echo " Installation directory: ${INSTDIR}"
  11966. echo " Startup script in directory: ${bindir}"
  11967. echo " C compiler: ${CC} ${CFLAGS}"
  11968. echo " C++ compiler: ${CXX} ${CXXFLAGS}"
  11969. #LOC_MSG([ FORTRAN compiler: ${F77} ${FFLAGS}])
  11970. echo " Building shared libraries: ${shared_ok}"
  11971. echo " OpenGL platform: ${OPENGL_TYPE}"
  11972. echo ""
  11973. echo " MacOSX application: `if test -n "${MACOSX_APP}" ; then echo yes ; else echo no ; fi`"
  11974. echo " MacOSX architectures: ${MACOSX_ARCHS}"
  11975. echo " MacOSX SDK: ${MACOSX_SDK}"
  11976. echo ""
  11977. echo " Tcl/Tk NVIZ: `if test -n "${USE_TOGL}" ; then echo yes ; else echo no ; fi`"
  11978. echo ""
  11979. echo " BLAS support: `if test -n "${USE_BLAS}" ; then echo yes ; else echo no ; fi`"
  11980. echo " C++ support: `if test -n "${USE_CXX}" ; then echo yes ; else echo no ; fi`"
  11981. echo " Cairo support: `if test -n "${USE_CAIRO}" ; then echo yes ; else echo no ; fi`"
  11982. echo " DWG support: `if test -n "${USE_OPENDWG}" ; then echo yes ; else echo no ; fi`"
  11983. echo " FFMPEG support: `if test -n "${USE_FFMPEG}" ; then echo yes ; else echo no ; fi`"
  11984. echo " FFTW support: `if test -n "${USE_FFTW}" ; then echo yes ; else echo no ; fi`"
  11985. echo " FreeType support: `if test -n "${USE_FREETYPE}" ; then echo yes ; else echo no ; fi`"
  11986. echo " GDAL support: `if test -n "${USE_GDAL}" ; then echo yes ; else echo no ; fi`"
  11987. echo " GEOS support: `if test -n "${USE_GEOS}" ; then echo yes ; else echo no ; fi`"
  11988. echo " JPEG support: `if test -n "${USE_JPEG}" ; then echo yes ; else echo no ; fi`"
  11989. echo " LAPACK support: `if test -n "${USE_LAPACK}" ; then echo yes ; else echo no ; fi`"
  11990. echo " Large File support (LFS): `if test -n "${USE_LARGEFILES}" ; then echo yes ; else echo no ; fi`"
  11991. echo " libLAS support: `if test -n "${USE_LIBLAS}" ; then echo yes ; else echo no ; fi`"
  11992. echo " MySQL support: `if test -n "${USE_MYSQL}" ; then echo yes ; else echo no ; fi`"
  11993. echo " NLS support: `if test -n "${USE_NLS}" ; then echo yes ; else echo no ; fi`"
  11994. echo " ODBC support: `if test -n "${USE_ODBC}" ; then echo yes ; else echo no ; fi`"
  11995. echo " OGR support: `if test -n "${USE_OGR}" ; then echo yes ; else echo no ; fi`"
  11996. echo " OpenGL support: `if test -n "${USE_OPENGL}" ; then echo yes ; else echo no ; fi`"
  11997. echo " PNG support: `if test -n "${USE_PNG}" ; then echo yes ; else echo no ; fi`"
  11998. echo " PostgreSQL support: `if test -n "${USE_POSTGRES}" ; then echo yes ; else echo no ; fi`"
  11999. echo " Readline support: `if test -n "${USE_READLINE}" ; then echo yes ; else echo no ; fi`"
  12000. echo " SQLite support: `if test -n "${USE_SQLITE}" ; then echo yes ; else echo no ; fi`"
  12001. echo " Tcl/Tk support: `if test -n "${USE_TCLTK}" ; then echo yes ; else echo no ; fi`"
  12002. echo " wxWidgets support: `if test -n "${USE_WXWIDGETS}" ; then echo yes ; else echo no ; fi`"
  12003. echo " TIFF support: `if test -n "${USE_TIFF}" ; then echo yes ; else echo no ; fi`"
  12004. echo " X11 support: `if test -n "${USE_X11}" ; then echo yes ; else echo no ; fi`"
  12005. echo " Regex support: `if test -n "${USE_REGEX}" ; then echo yes ; else echo no ; fi`"
  12006. echo " POSIX thread support: `if test -n "${USE_PTHREAD}" ; then echo yes ; else echo no ; fi`"
  12007. echo ""