configure 386 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118
  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: no)"
  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-python[=path/python-config]
  75. enable support for Python SWIG bindings and wxGUI
  76. Python extensions (python-config with path, e.g.
  77. '--with-python=/usr/bin/python2.5-config',
  78. default: no)"
  79. ac_help="$ac_help
  80. --with-wxwidgets[=path/wx-config]
  81. enable wxWidgets support (wx-config with path,
  82. e.g. '--with-wxwidgets=/usr/local/bin/wx-config',
  83. default: no)"
  84. ac_help="$ac_help
  85. --with-geos[=path/geos-config]
  86. enable GEOS support (geos-config with path,
  87. e.g. '--with-geos=/usr/local/bin/geos-config',
  88. default: no)"
  89. ac_help="$ac_help
  90. --with-includes=DIRS site include files are in DIRS"
  91. ac_help="$ac_help
  92. --with-libs=DIRS site library files are in DIRS"
  93. ac_help="$ac_help
  94. --with-zlib-includes=DIRS
  95. zlib include files are in DIRS"
  96. ac_help="$ac_help
  97. --with-zlib-libs=DIRS zlib library files are in DIRS"
  98. ac_help="$ac_help
  99. --with-readline-includes=DIRS
  100. Readline include files are in DIRS"
  101. ac_help="$ac_help
  102. --with-readline-libs=DIRS
  103. Readline library files are in DIRS"
  104. ac_help="$ac_help
  105. --with-jpeg-includes=DIRS
  106. JPEG include files are in DIRS"
  107. ac_help="$ac_help
  108. --with-jpeg-libs=DIRS JPEG library files are in DIRS"
  109. ac_help="$ac_help
  110. --with-tiff-includes=DIRS
  111. TIFF include files are in DIRS"
  112. ac_help="$ac_help
  113. --with-tiff-libs=DIRS TIFF library files are in DIRS"
  114. ac_help="$ac_help
  115. --with-png-includes=DIRS
  116. PNG include files are in DIRS"
  117. ac_help="$ac_help
  118. --with-png-libs=DIRS PNG library files are in DIRS"
  119. ac_help="$ac_help
  120. --with-tcltk-includes=DIRS
  121. Tcl/Tk include files are in DIRS"
  122. ac_help="$ac_help
  123. --with-tcltk-libs=DIRS Tcl/Tk library files are in DIRS"
  124. ac_help="$ac_help
  125. --with-postgres-includes=DIRS
  126. PostgreSQL include files are in DIRS"
  127. ac_help="$ac_help
  128. --with-postgres-libs=DIRS
  129. PostgreSQL library files are in DIRS"
  130. ac_help="$ac_help
  131. --with-mysql-includes=DIRS
  132. MySQL include files are in DIRS"
  133. ac_help="$ac_help
  134. --with-mysql-libs=DIRS MySQL library files are in DIRS"
  135. ac_help="$ac_help
  136. --with-sqlite-includes=DIRS
  137. SQLite include files are in DIRS"
  138. ac_help="$ac_help
  139. --with-sqlite-libs=DIRS SQLite library files are in DIRS"
  140. ac_help="$ac_help
  141. --with-ffmpeg-includes=DIRS
  142. FFMPEG include files are in DIRS"
  143. ac_help="$ac_help
  144. --with-ffmpeg-libs=DIRS FFMPEG library files are in DIRS"
  145. ac_help="$ac_help
  146. --with-opengl-includes=DIRS
  147. OpenGL include files are in DIRS"
  148. ac_help="$ac_help
  149. --with-opengl-libs=DIRS OpenGL library files are in DIRS"
  150. ac_help="$ac_help
  151. --with-opengl-framework=DIR
  152. OpenGL framework is in DIR"
  153. ac_help="$ac_help
  154. --with-odbc-includes=DIRS
  155. ODBC include files are in DIRS"
  156. ac_help="$ac_help
  157. --with-odbc-libs=DIRS ODBC library files are in DIRS"
  158. ac_help="$ac_help
  159. --with-fftw-includes=DIRS
  160. FFTW include files are in DIRS"
  161. ac_help="$ac_help
  162. --with-fftw-libs=DIRS FFTW library files are in DIRS"
  163. ac_help="$ac_help
  164. --with-blas-includes=DIRS
  165. BLAS include files are in DIRS"
  166. ac_help="$ac_help
  167. --with-blas-libs=DIRS BLAS library files are in DIRS"
  168. ac_help="$ac_help
  169. --with-lapack-includes=DIRS
  170. LAPACK include files are in DIRS"
  171. ac_help="$ac_help
  172. --with-lapack-libs=DIRS LAPACK library files are in DIRS"
  173. ac_help="$ac_help
  174. --with-cairo-includes=DIRS
  175. cairo include files are in DIRS"
  176. ac_help="$ac_help
  177. --with-cairo-libs=DIRS cairo library files are in DIRS"
  178. ac_help="$ac_help
  179. --with-cairo-ldflags=FLAGS
  180. cairo needs FLAGS when linking"
  181. ac_help="$ac_help
  182. --with-freetype-includes=DIRS
  183. FreeType include files are in DIRS"
  184. ac_help="$ac_help
  185. --with-freetype-libs=DIRS
  186. FreeType library files are in DIRS"
  187. ac_help="$ac_help
  188. --with-proj-includes=DIRS
  189. External PROJ.4 include files are in DIRS"
  190. ac_help="$ac_help
  191. --with-proj-libs=DIRS External PROJ.4 library files are in DIRS"
  192. ac_help="$ac_help
  193. --with-proj-share=DIR External PROJ.4 data files are in DIR"
  194. ac_help="$ac_help
  195. --with-opendwg-includes=DIRS
  196. openDWG include files are in DIRS"
  197. ac_help="$ac_help
  198. --with-opendwg-libs=DIRS
  199. openDWG library files are in DIRS"
  200. ac_help="$ac_help
  201. --with-regex-includes=DIRS
  202. regex include files are in DIRS"
  203. ac_help="$ac_help
  204. --with-regex-libs=DIRS regex library files are in DIRS"
  205. ac_help="$ac_help
  206. --with-pthread-includes=DIRS
  207. POSIX threads include files are in DIRS"
  208. ac_help="$ac_help
  209. --with-pthread-libs=DIRS
  210. POSIX threads library files are in DIRS"
  211. ac_help="$ac_help
  212. --with-x use the X Window System"
  213. ac_help="$ac_help
  214. --enable-largefile enable support for large files (LFS)"
  215. # Initialize some variables set by options.
  216. # The variables have the same names as the options, with
  217. # dashes changed to underlines.
  218. build=NONE
  219. cache_file=./config.cache
  220. exec_prefix=NONE
  221. host=NONE
  222. no_create=
  223. nonopt=NONE
  224. no_recursion=
  225. prefix=NONE
  226. program_prefix=NONE
  227. program_suffix=NONE
  228. program_transform_name=s,x,x,
  229. silent=
  230. site=
  231. srcdir=
  232. target=NONE
  233. verbose=
  234. x_includes=NONE
  235. x_libraries=NONE
  236. bindir='${exec_prefix}/bin'
  237. sbindir='${exec_prefix}/sbin'
  238. libexecdir='${exec_prefix}/libexec'
  239. datadir='${prefix}/share'
  240. sysconfdir='${prefix}/etc'
  241. sharedstatedir='${prefix}/com'
  242. localstatedir='${prefix}/var'
  243. libdir='${exec_prefix}/lib'
  244. includedir='${prefix}/include'
  245. oldincludedir='/usr/include'
  246. infodir='${prefix}/info'
  247. mandir='${prefix}/man'
  248. # Initialize some other variables.
  249. subdirs=
  250. MFLAGS= MAKEFLAGS=
  251. SHELL=${CONFIG_SHELL-/bin/sh}
  252. # Maximum number of lines to put in a shell here document.
  253. ac_max_here_lines=12
  254. ac_prev=
  255. for ac_option
  256. do
  257. # If the previous option needs an argument, assign it.
  258. if test -n "$ac_prev"; then
  259. eval "$ac_prev=\$ac_option"
  260. ac_prev=
  261. continue
  262. fi
  263. case "$ac_option" in
  264. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  265. *) ac_optarg= ;;
  266. esac
  267. # Accept the important Cygnus configure options, so we can diagnose typos.
  268. case "$ac_option" in
  269. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  270. ac_prev=bindir ;;
  271. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  272. bindir="$ac_optarg" ;;
  273. -build | --build | --buil | --bui | --bu)
  274. ac_prev=build ;;
  275. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  276. build="$ac_optarg" ;;
  277. -cache-file | --cache-file | --cache-fil | --cache-fi \
  278. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  279. ac_prev=cache_file ;;
  280. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  281. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  282. cache_file="$ac_optarg" ;;
  283. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  284. ac_prev=datadir ;;
  285. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  286. | --da=*)
  287. datadir="$ac_optarg" ;;
  288. -disable-* | --disable-*)
  289. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  290. # Reject names that are not valid shell variable names.
  291. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  292. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  293. fi
  294. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  295. eval "enable_${ac_feature}=no" ;;
  296. -enable-* | --enable-*)
  297. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  298. # Reject names that are not valid shell variable names.
  299. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  300. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  301. fi
  302. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  303. case "$ac_option" in
  304. *=*) ;;
  305. *) ac_optarg=yes ;;
  306. esac
  307. eval "enable_${ac_feature}='$ac_optarg'" ;;
  308. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  309. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  310. | --exec | --exe | --ex)
  311. ac_prev=exec_prefix ;;
  312. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  313. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  314. | --exec=* | --exe=* | --ex=*)
  315. exec_prefix="$ac_optarg" ;;
  316. -gas | --gas | --ga | --g)
  317. # Obsolete; use --with-gas.
  318. with_gas=yes ;;
  319. -help | --help | --hel | --he)
  320. # Omit some internal or obsolete options to make the list less imposing.
  321. # This message is too long to be a string in the A/UX 3.1 sh.
  322. cat << EOF
  323. Usage: configure [options] [host]
  324. Options: [defaults in brackets after descriptions]
  325. Configuration:
  326. --cache-file=FILE cache test results in FILE
  327. --help print this message
  328. --no-create do not create output files
  329. --quiet, --silent do not print \`checking...' messages
  330. --version print the version of autoconf that created configure
  331. Directory and file names:
  332. --prefix=PREFIX install architecture-independent files in PREFIX
  333. [$ac_default_prefix]
  334. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  335. [same as prefix]
  336. --bindir=DIR user executables in DIR [EPREFIX/bin]
  337. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  338. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  339. --datadir=DIR read-only architecture-independent data in DIR
  340. [PREFIX/share]
  341. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  342. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  343. [PREFIX/com]
  344. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  345. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  346. --includedir=DIR C header files in DIR [PREFIX/include]
  347. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  348. --infodir=DIR info documentation in DIR [PREFIX/info]
  349. --mandir=DIR man documentation in DIR [PREFIX/man]
  350. --srcdir=DIR find the sources in DIR [configure dir or ..]
  351. --program-prefix=PREFIX prepend PREFIX to installed program names
  352. --program-suffix=SUFFIX append SUFFIX to installed program names
  353. --program-transform-name=PROGRAM
  354. run sed PROGRAM on installed program names
  355. EOF
  356. cat << EOF
  357. Host type:
  358. --build=BUILD configure for building on BUILD [BUILD=HOST]
  359. --host=HOST configure for HOST [guessed]
  360. --target=TARGET configure for TARGET [TARGET=HOST]
  361. Features and packages:
  362. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  363. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  364. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  365. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  366. --x-includes=DIR X include files are in DIR
  367. --x-libraries=DIR X library files are in DIR
  368. EOF
  369. if test -n "$ac_help"; then
  370. echo "--enable and --with options recognized:$ac_help"
  371. fi
  372. exit 0 ;;
  373. -host | --host | --hos | --ho)
  374. ac_prev=host ;;
  375. -host=* | --host=* | --hos=* | --ho=*)
  376. host="$ac_optarg" ;;
  377. -includedir | --includedir | --includedi | --included | --include \
  378. | --includ | --inclu | --incl | --inc)
  379. ac_prev=includedir ;;
  380. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  381. | --includ=* | --inclu=* | --incl=* | --inc=*)
  382. includedir="$ac_optarg" ;;
  383. -infodir | --infodir | --infodi | --infod | --info | --inf)
  384. ac_prev=infodir ;;
  385. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  386. infodir="$ac_optarg" ;;
  387. -libdir | --libdir | --libdi | --libd)
  388. ac_prev=libdir ;;
  389. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  390. libdir="$ac_optarg" ;;
  391. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  392. | --libexe | --libex | --libe)
  393. ac_prev=libexecdir ;;
  394. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  395. | --libexe=* | --libex=* | --libe=*)
  396. libexecdir="$ac_optarg" ;;
  397. -localstatedir | --localstatedir | --localstatedi | --localstated \
  398. | --localstate | --localstat | --localsta | --localst \
  399. | --locals | --local | --loca | --loc | --lo)
  400. ac_prev=localstatedir ;;
  401. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  402. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  403. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  404. localstatedir="$ac_optarg" ;;
  405. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  406. ac_prev=mandir ;;
  407. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  408. mandir="$ac_optarg" ;;
  409. -nfp | --nfp | --nf)
  410. # Obsolete; use --without-fp.
  411. with_fp=no ;;
  412. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  413. | --no-cr | --no-c)
  414. no_create=yes ;;
  415. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  416. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  417. no_recursion=yes ;;
  418. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  419. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  420. | --oldin | --oldi | --old | --ol | --o)
  421. ac_prev=oldincludedir ;;
  422. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  423. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  424. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  425. oldincludedir="$ac_optarg" ;;
  426. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  427. ac_prev=prefix ;;
  428. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  429. prefix="$ac_optarg" ;;
  430. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  431. | --program-pre | --program-pr | --program-p)
  432. ac_prev=program_prefix ;;
  433. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  434. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  435. program_prefix="$ac_optarg" ;;
  436. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  437. | --program-suf | --program-su | --program-s)
  438. ac_prev=program_suffix ;;
  439. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  440. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  441. program_suffix="$ac_optarg" ;;
  442. -program-transform-name | --program-transform-name \
  443. | --program-transform-nam | --program-transform-na \
  444. | --program-transform-n | --program-transform- \
  445. | --program-transform | --program-transfor \
  446. | --program-transfo | --program-transf \
  447. | --program-trans | --program-tran \
  448. | --progr-tra | --program-tr | --program-t)
  449. ac_prev=program_transform_name ;;
  450. -program-transform-name=* | --program-transform-name=* \
  451. | --program-transform-nam=* | --program-transform-na=* \
  452. | --program-transform-n=* | --program-transform-=* \
  453. | --program-transform=* | --program-transfor=* \
  454. | --program-transfo=* | --program-transf=* \
  455. | --program-trans=* | --program-tran=* \
  456. | --progr-tra=* | --program-tr=* | --program-t=*)
  457. program_transform_name="$ac_optarg" ;;
  458. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  459. | -silent | --silent | --silen | --sile | --sil)
  460. silent=yes ;;
  461. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  462. ac_prev=sbindir ;;
  463. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  464. | --sbi=* | --sb=*)
  465. sbindir="$ac_optarg" ;;
  466. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  467. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  468. | --sharedst | --shareds | --shared | --share | --shar \
  469. | --sha | --sh)
  470. ac_prev=sharedstatedir ;;
  471. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  472. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  473. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  474. | --sha=* | --sh=*)
  475. sharedstatedir="$ac_optarg" ;;
  476. -site | --site | --sit)
  477. ac_prev=site ;;
  478. -site=* | --site=* | --sit=*)
  479. site="$ac_optarg" ;;
  480. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  481. ac_prev=srcdir ;;
  482. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  483. srcdir="$ac_optarg" ;;
  484. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  485. | --syscon | --sysco | --sysc | --sys | --sy)
  486. ac_prev=sysconfdir ;;
  487. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  488. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  489. sysconfdir="$ac_optarg" ;;
  490. -target | --target | --targe | --targ | --tar | --ta | --t)
  491. ac_prev=target ;;
  492. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  493. target="$ac_optarg" ;;
  494. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  495. verbose=yes ;;
  496. -version | --version | --versio | --versi | --vers)
  497. echo "configure generated by autoconf version 2.13"
  498. exit 0 ;;
  499. -with-* | --with-*)
  500. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  501. # Reject names that are not valid shell variable names.
  502. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  503. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  504. fi
  505. ac_package=`echo $ac_package| sed 's/-/_/g'`
  506. case "$ac_option" in
  507. *=*) ;;
  508. *) ac_optarg=yes ;;
  509. esac
  510. eval "with_${ac_package}='$ac_optarg'" ;;
  511. -without-* | --without-*)
  512. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  513. # Reject names that are not valid shell variable names.
  514. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  515. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  516. fi
  517. ac_package=`echo $ac_package| sed 's/-/_/g'`
  518. eval "with_${ac_package}=no" ;;
  519. --x)
  520. # Obsolete; use --with-x.
  521. with_x=yes ;;
  522. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  523. | --x-incl | --x-inc | --x-in | --x-i)
  524. ac_prev=x_includes ;;
  525. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  526. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  527. x_includes="$ac_optarg" ;;
  528. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  529. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  530. ac_prev=x_libraries ;;
  531. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  532. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  533. x_libraries="$ac_optarg" ;;
  534. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  535. ;;
  536. *)
  537. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  538. echo "configure: warning: $ac_option: invalid host type" 1>&2
  539. fi
  540. if test "x$nonopt" != xNONE; then
  541. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  542. fi
  543. nonopt="$ac_option"
  544. ;;
  545. esac
  546. done
  547. if test -n "$ac_prev"; then
  548. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  549. fi
  550. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  551. # File descriptor usage:
  552. # 0 standard input
  553. # 1 file creation
  554. # 2 errors and warnings
  555. # 3 some systems may open it to /dev/tty
  556. # 4 used on the Kubota Titan
  557. # 6 checking for... messages and results
  558. # 5 compiler messages saved in config.log
  559. if test "$silent" = yes; then
  560. exec 6>/dev/null
  561. else
  562. exec 6>&1
  563. fi
  564. exec 5>./config.log
  565. echo "\
  566. This file contains any messages produced by compilers while
  567. running configure, to aid debugging if configure makes a mistake.
  568. " 1>&5
  569. # Strip out --no-create and --no-recursion so they do not pile up.
  570. # Also quote any args containing shell metacharacters.
  571. ac_configure_args=
  572. for ac_arg
  573. do
  574. case "$ac_arg" in
  575. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  576. | --no-cr | --no-c) ;;
  577. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  578. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  579. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  580. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  581. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  582. esac
  583. done
  584. # NLS nuisances.
  585. # Only set these to C if already set. These must not be set unconditionally
  586. # because not all systems understand e.g. LANG=C (notably SCO).
  587. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  588. # Non-C LC_CTYPE values break the ctype check.
  589. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  590. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  591. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  592. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  593. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  594. rm -rf conftest* confdefs.h
  595. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  596. echo > confdefs.h
  597. # A filename unique to this package, relative to the directory that
  598. # configure is in, which we can look for to find out if srcdir is correct.
  599. ac_unique_file=configure.in
  600. # Find the source files, if location was not specified.
  601. if test -z "$srcdir"; then
  602. ac_srcdir_defaulted=yes
  603. # Try the directory containing this script, then its parent.
  604. ac_prog=$0
  605. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  606. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  607. srcdir=$ac_confdir
  608. if test ! -r $srcdir/$ac_unique_file; then
  609. srcdir=..
  610. fi
  611. else
  612. ac_srcdir_defaulted=no
  613. fi
  614. if test ! -r $srcdir/$ac_unique_file; then
  615. if test "$ac_srcdir_defaulted" = yes; then
  616. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  617. else
  618. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  619. fi
  620. fi
  621. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  622. # Prefer explicitly selected file to automatically selected ones.
  623. if test -z "$CONFIG_SITE"; then
  624. if test "x$prefix" != xNONE; then
  625. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  626. else
  627. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  628. fi
  629. fi
  630. for ac_site_file in $CONFIG_SITE; do
  631. if test -r "$ac_site_file"; then
  632. echo "loading site script $ac_site_file"
  633. . "$ac_site_file"
  634. fi
  635. done
  636. ac_ext=c
  637. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  638. ac_cpp='$CPP $CPPFLAGS'
  639. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  640. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  641. cross_compiling=$ac_cv_prog_cc_cross
  642. ac_exeext=
  643. ac_objext=o
  644. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  645. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  646. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  647. ac_n= ac_c='
  648. ' ac_t=' '
  649. else
  650. ac_n=-n ac_c= ac_t=
  651. fi
  652. else
  653. ac_n= ac_c='\c' ac_t=
  654. fi
  655. ac_aux_dir=
  656. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  657. if test -f $ac_dir/install-sh; then
  658. ac_aux_dir=$ac_dir
  659. ac_install_sh="$ac_aux_dir/install-sh -c"
  660. break
  661. elif test -f $ac_dir/install.sh; then
  662. ac_aux_dir=$ac_dir
  663. ac_install_sh="$ac_aux_dir/install.sh -c"
  664. break
  665. fi
  666. done
  667. if test -z "$ac_aux_dir"; then
  668. { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  669. fi
  670. ac_config_guess=$ac_aux_dir/config.guess
  671. ac_config_sub=$ac_aux_dir/config.sub
  672. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  673. # Make sure we can run config.sub.
  674. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  675. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  676. fi
  677. echo $ac_n "checking host system type""... $ac_c" 1>&6
  678. echo "configure:750: checking host system type" >&5
  679. host_alias=$host
  680. case "$host_alias" in
  681. NONE)
  682. case $nonopt in
  683. NONE)
  684. if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  685. else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  686. fi ;;
  687. *) host_alias=$nonopt ;;
  688. esac ;;
  689. esac
  690. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  691. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  692. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  693. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  694. echo "$ac_t""$host" 1>&6
  695. # Extract the first word of "gcc", so it can be a program name with args.
  696. set dummy gcc; ac_word=$2
  697. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  698. echo "configure:773: checking for $ac_word" >&5
  699. if test -n "$CC"; then
  700. ac_cv_prog_CC="$CC" # Let the user override the test.
  701. else
  702. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  703. ac_dummy="$PATH"
  704. for ac_dir in $ac_dummy; do
  705. test -z "$ac_dir" && ac_dir=.
  706. if test -f $ac_dir/$ac_word; then
  707. ac_cv_prog_CC="gcc"
  708. break
  709. fi
  710. done
  711. IFS="$ac_save_ifs"
  712. fi
  713. CC="$ac_cv_prog_CC"
  714. if test -n "$CC"; then
  715. echo "$ac_t""$CC" 1>&6
  716. else
  717. echo "$ac_t""no" 1>&6
  718. fi
  719. if test -z "$CC"; then
  720. # Extract the first word of "cc", so it can be a program name with args.
  721. set dummy cc; ac_word=$2
  722. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  723. echo "configure:800: checking for $ac_word" >&5
  724. if test -n "$CC"; then
  725. ac_cv_prog_CC="$CC" # Let the user override the test.
  726. else
  727. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  728. ac_prog_rejected=no
  729. ac_dummy="$PATH"
  730. for ac_dir in $ac_dummy; do
  731. test -z "$ac_dir" && ac_dir=.
  732. if test -f $ac_dir/$ac_word; then
  733. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  734. ac_prog_rejected=yes
  735. continue
  736. fi
  737. ac_cv_prog_CC="cc"
  738. break
  739. fi
  740. done
  741. IFS="$ac_save_ifs"
  742. if test $ac_prog_rejected = yes; then
  743. # We found a bogon in the path, so make sure we never use it.
  744. set dummy $ac_cv_prog_CC
  745. shift
  746. if test $# -gt 0; then
  747. # We chose a different compiler from the bogus one.
  748. # However, it has the same basename, so the bogon will be chosen
  749. # first if we set CC to just the basename; use the full file name.
  750. shift
  751. set dummy "$ac_dir/$ac_word" "$@"
  752. shift
  753. ac_cv_prog_CC="$@"
  754. fi
  755. fi
  756. fi
  757. CC="$ac_cv_prog_CC"
  758. if test -n "$CC"; then
  759. echo "$ac_t""$CC" 1>&6
  760. else
  761. echo "$ac_t""no" 1>&6
  762. fi
  763. if test -z "$CC"; then
  764. case "`uname -s`" in
  765. *win32* | *WIN32*)
  766. # Extract the first word of "cl", so it can be a program name with args.
  767. set dummy cl; ac_word=$2
  768. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  769. echo "configure:848: checking for $ac_word" >&5
  770. if test -n "$CC"; then
  771. ac_cv_prog_CC="$CC" # Let the user override the test.
  772. else
  773. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  774. ac_dummy="$PATH"
  775. for ac_dir in $ac_dummy; do
  776. test -z "$ac_dir" && ac_dir=.
  777. if test -f $ac_dir/$ac_word; then
  778. ac_cv_prog_CC="cl"
  779. break
  780. fi
  781. done
  782. IFS="$ac_save_ifs"
  783. fi
  784. CC="$ac_cv_prog_CC"
  785. if test -n "$CC"; then
  786. echo "$ac_t""$CC" 1>&6
  787. else
  788. echo "$ac_t""no" 1>&6
  789. fi
  790. ;;
  791. esac
  792. fi
  793. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  794. fi
  795. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  796. echo "configure:877: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  797. ac_ext=c
  798. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  799. ac_cpp='$CPP $CPPFLAGS'
  800. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  801. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  802. cross_compiling=$ac_cv_prog_cc_cross
  803. cat > conftest.$ac_ext << EOF
  804. #line 888 "configure"
  805. #include "confdefs.h"
  806. main(){return(0);}
  807. EOF
  808. if { (eval echo configure:893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  809. ac_cv_prog_cc_works=yes
  810. # If we can't run a trivial program, we are probably using a cross compiler.
  811. if (./conftest; exit) 2>/dev/null; then
  812. ac_cv_prog_cc_cross=no
  813. else
  814. ac_cv_prog_cc_cross=yes
  815. fi
  816. else
  817. echo "configure: failed program was:" >&5
  818. cat conftest.$ac_ext >&5
  819. ac_cv_prog_cc_works=no
  820. fi
  821. rm -fr conftest*
  822. ac_ext=c
  823. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  824. ac_cpp='$CPP $CPPFLAGS'
  825. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  826. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  827. cross_compiling=$ac_cv_prog_cc_cross
  828. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  829. if test $ac_cv_prog_cc_works = no; then
  830. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  831. fi
  832. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  833. echo "configure:919: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  834. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  835. cross_compiling=$ac_cv_prog_cc_cross
  836. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  837. echo "configure:924: checking whether we are using GNU C" >&5
  838. cat > conftest.c <<EOF
  839. #ifdef __GNUC__
  840. yes;
  841. #endif
  842. EOF
  843. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  844. ac_cv_prog_gcc=yes
  845. else
  846. ac_cv_prog_gcc=no
  847. fi
  848. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  849. if test $ac_cv_prog_gcc = yes; then
  850. GCC=yes
  851. else
  852. GCC=
  853. fi
  854. ac_test_CFLAGS="${CFLAGS+set}"
  855. ac_save_CFLAGS="$CFLAGS"
  856. CFLAGS=
  857. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  858. echo "configure:949: checking whether ${CC-cc} accepts -g" >&5
  859. echo 'void f(){}' > conftest.c
  860. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  861. ac_cv_prog_cc_g=yes
  862. else
  863. ac_cv_prog_cc_g=no
  864. fi
  865. rm -f conftest*
  866. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  867. if test "$ac_test_CFLAGS" = set; then
  868. CFLAGS="$ac_save_CFLAGS"
  869. elif test $ac_cv_prog_cc_g = yes; then
  870. if test "$GCC" = yes; then
  871. CFLAGS="-g -O2"
  872. else
  873. CFLAGS="-g"
  874. fi
  875. else
  876. if test "$GCC" = yes; then
  877. CFLAGS="-O2"
  878. else
  879. CFLAGS=
  880. fi
  881. fi
  882. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  883. echo "configure:978: checking for Cygwin environment" >&5
  884. cat > conftest.$ac_ext <<EOF
  885. #line 981 "configure"
  886. #include "confdefs.h"
  887. int main() {
  888. #ifndef __CYGWIN__
  889. #define __CYGWIN__ __CYGWIN32__
  890. #endif
  891. return __CYGWIN__;
  892. ; return 0; }
  893. EOF
  894. if { (eval echo configure:992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  895. rm -rf conftest*
  896. ac_cv_cygwin=yes
  897. else
  898. echo "configure: failed program was:" >&5
  899. cat conftest.$ac_ext >&5
  900. rm -rf conftest*
  901. ac_cv_cygwin=no
  902. fi
  903. rm -f conftest*
  904. rm -f conftest*
  905. echo "$ac_t""$ac_cv_cygwin" 1>&6
  906. CYGWIN=
  907. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  908. echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
  909. echo "configure:1008: checking for mingw32 environment" >&5
  910. cat > conftest.$ac_ext <<EOF
  911. #line 1011 "configure"
  912. #include "confdefs.h"
  913. int main() {
  914. return __MINGW32__;
  915. ; return 0; }
  916. EOF
  917. if { (eval echo configure:1018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  918. rm -rf conftest*
  919. ac_cv_mingw32=yes
  920. else
  921. echo "configure: failed program was:" >&5
  922. cat conftest.$ac_ext >&5
  923. rm -rf conftest*
  924. ac_cv_mingw32=no
  925. fi
  926. rm -f conftest*
  927. rm -f conftest*
  928. echo "$ac_t""$ac_cv_mingw32" 1>&6
  929. MINGW32=
  930. test "$ac_cv_mingw32" = yes && MINGW32=yes
  931. echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
  932. echo "configure:1036: checking for executable suffix" >&5
  933. if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
  934. ac_cv_exeext=.exe
  935. else
  936. ac_cv_exeext=no
  937. fi
  938. EXEEXT=""
  939. test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
  940. echo "$ac_t""${ac_cv_exeext}" 1>&6
  941. ac_exeext=$EXEEXT
  942. # Check for full floating-point support, including Infinity and NaN
  943. IEEEFLAG=
  944. echo $ac_n "checking for full floating-point support""... $ac_c" 1>&6
  945. echo "configure:1055: checking for full floating-point support" >&5
  946. if test "$cross_compiling" = yes; then
  947. echo "$ac_t""unknown (cross-compiling)" 1>&6
  948. echo $ac_n "checking whether "cc -mieee" works""... $ac_c" 1>&6
  949. echo "configure:1060: checking whether "cc -mieee" works" >&5
  950. ac_save_cflags=${CFLAGS}
  951. CFLAGS="$CFLAGS -mieee"
  952. cat > conftest.$ac_ext <<EOF
  953. #line 1064 "configure"
  954. #include "confdefs.h"
  955. int main() {
  956. ; return 0; }
  957. EOF
  958. if { (eval echo configure:1071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  959. rm -rf conftest*
  960. echo "$ac_t""yes" 1>&6
  961. IEEEFLAG="-mieee"
  962. else
  963. echo "configure: failed program was:" >&5
  964. cat conftest.$ac_ext >&5
  965. rm -rf conftest*
  966. echo "$ac_t""no" 1>&6
  967. fi
  968. rm -f conftest*
  969. CFLAGS=${ac_save_cflags}
  970. else
  971. cat > conftest.$ac_ext <<EOF
  972. #line 1087 "configure"
  973. #include "confdefs.h"
  974. #include <float.h>
  975. int main(void) {
  976. double one = 1.0;
  977. double zero = 0.0;
  978. if (one/zero > DBL_MAX) /* infinity */
  979. if (zero/zero != zero/zero) /* NaN */
  980. return 0;
  981. return 1;
  982. }
  983. EOF
  984. if { (eval echo configure:1101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  985. then
  986. echo "$ac_t""yes" 1>&6
  987. else
  988. echo "configure: failed program was:" >&5
  989. cat conftest.$ac_ext >&5
  990. rm -fr conftest*
  991. echo "$ac_t""no" 1>&6
  992. ac_save_cflags=${CFLAGS}
  993. CFLAGS=-mieee
  994. echo $ac_n "checking for full floating-point support with -mieee""... $ac_c" 1>&6
  995. echo "configure:1114: checking for full floating-point support with -mieee" >&5
  996. if test "$cross_compiling" = yes; then
  997. echo "$ac_t""unknown (cross-compiling)" 1>&6
  998. { echo "configure: error: *** INTERNAL CONFIGURE ERROR" 1>&2; exit 1; }
  999. else
  1000. cat > conftest.$ac_ext <<EOF
  1001. #line 1121 "configure"
  1002. #include "confdefs.h"
  1003. #include <float.h>
  1004. int main(void) {
  1005. double one = 1.0;
  1006. double zero = 0.0;
  1007. if (one/zero > DBL_MAX) /* infinity */
  1008. if (zero/zero != zero/zero) /* NaN */
  1009. return 0;
  1010. return 1;
  1011. }
  1012. EOF
  1013. if { (eval echo configure:1135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1014. then
  1015. echo "$ac_t""yes" 1>&6
  1016. IEEEFLAG="-mieee"
  1017. else
  1018. echo "configure: failed program was:" >&5
  1019. cat conftest.$ac_ext >&5
  1020. rm -fr conftest*
  1021. echo "$ac_t""no" 1>&6
  1022. echo "configure: warning: *** Incomplete floating-point support." 1>&2
  1023. fi
  1024. rm -fr conftest*
  1025. fi
  1026. CFLAGS=${ac_save_cflags}
  1027. fi
  1028. rm -fr conftest*
  1029. fi
  1030. CFLAGS="$CFLAGS $IEEEFLAG"
  1031. # Set BINDIR
  1032. if test -n "${bindir}"; then
  1033. BINDIR="${bindir}"
  1034. else
  1035. BINDIR=/usr/local/bin
  1036. fi
  1037. # Set SRCDIR and DSTDIR
  1038. # Extract the first word of "pwd", so it can be a program name with args.
  1039. set dummy pwd; ac_word=$2
  1040. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1041. echo "configure:1172: checking for $ac_word" >&5
  1042. case "$pwd" in
  1043. /*)
  1044. ac_cv_path_pwd="$pwd" # Let the user override the test with a path.
  1045. ;;
  1046. ?:/*)
  1047. ac_cv_path_pwd="$pwd" # Let the user override the test with a dos path.
  1048. ;;
  1049. *)
  1050. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1051. ac_dummy="$PATH"
  1052. for ac_dir in $ac_dummy; do
  1053. test -z "$ac_dir" && ac_dir=.
  1054. if test -f $ac_dir/$ac_word; then
  1055. ac_cv_path_pwd="$ac_dir/$ac_word"
  1056. break
  1057. fi
  1058. done
  1059. IFS="$ac_save_ifs"
  1060. test -z "$ac_cv_path_pwd" && ac_cv_path_pwd="pwd"
  1061. ;;
  1062. esac
  1063. pwd="$ac_cv_path_pwd"
  1064. if test -n "$pwd"; then
  1065. echo "$ac_t""$pwd" 1>&6
  1066. else
  1067. echo "$ac_t""no" 1>&6
  1068. fi
  1069. if test "$MINGW32" = yes ; then
  1070. winpwd="$pwd -W"
  1071. else
  1072. winpwd="$pwd"
  1073. fi
  1074. echo $ac_n "checking for source directory""... $ac_c" 1>&6
  1075. echo "configure:1210: checking for source directory" >&5
  1076. if test -z "$srcdir" ; then
  1077. SRCDIR=`$pwd`
  1078. else
  1079. SRCDIR=`(cd "$srcdir" ; $pwd)`
  1080. fi
  1081. echo "$ac_t"""$SRCDIR"" 1>&6
  1082. echo $ac_n "checking for build directory""... $ac_c" 1>&6
  1083. echo "configure:1221: checking for build directory" >&5
  1084. DSTDIR=`$pwd`
  1085. WINDSTDIR=`$winpwd`
  1086. echo "$ac_t"""$DSTDIR"" 1>&6
  1087. # Set ARCH
  1088. ARCH=
  1089. if test -z "${host}"; then
  1090. ARCH="unknown"
  1091. else
  1092. ARCH="${host}"
  1093. fi
  1094. # Use absolute path for aux directory so that install-sh works
  1095. ac_aux_dir=
  1096. for ac_dir in "$SRCDIR" $srcdir/"$SRCDIR"; do
  1097. if test -f $ac_dir/install-sh; then
  1098. ac_aux_dir=$ac_dir
  1099. ac_install_sh="$ac_aux_dir/install-sh -c"
  1100. break
  1101. elif test -f $ac_dir/install.sh; then
  1102. ac_aux_dir=$ac_dir
  1103. ac_install_sh="$ac_aux_dir/install.sh -c"
  1104. break
  1105. fi
  1106. done
  1107. if test -z "$ac_aux_dir"; then
  1108. { echo "configure: error: can not find install-sh or install.sh in "$SRCDIR" $srcdir/"$SRCDIR"" 1>&2; exit 1; }
  1109. fi
  1110. ac_config_guess=$ac_aux_dir/config.guess
  1111. ac_config_sub=$ac_aux_dir/config.sub
  1112. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  1113. # Set GISBASE and GRASS_BIN
  1114. GISBASE="${WINDSTDIR}/dist.${ARCH}"
  1115. GRASS_BIN="${DSTDIR}/bin.${ARCH}"
  1116. # Set GRASS_VERSION_*
  1117. GRASS_VERSION_FILE=include/VERSION
  1118. GRASS_VERSION_MAJOR=`sed -n 1p "${GRASS_VERSION_FILE}"`
  1119. GRASS_VERSION_MINOR=`sed -n 2p "${GRASS_VERSION_FILE}"`
  1120. GRASS_VERSION_RELEASE=`sed -n 3p "${GRASS_VERSION_FILE}"`
  1121. GRASS_VERSION_DATE=`sed -n 4p "${GRASS_VERSION_FILE}"`
  1122. GRASS_VERSION_NUMBER=`echo ${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.${GRASS_VERSION_RELEASE}`
  1123. NAME_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/\..*//'`
  1124. LIB_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/^\([0-9.]*\).*$/\1/'`
  1125. GRASS_VERSION_SVN=
  1126. # Extract the first word of "svnversion", so it can be a program name with args.
  1127. set dummy svnversion; ac_word=$2
  1128. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1129. echo "configure:1289: checking for $ac_word" >&5
  1130. case "$SVN_VERSION" in
  1131. /*)
  1132. ac_cv_path_SVN_VERSION="$SVN_VERSION" # Let the user override the test with a path.
  1133. ;;
  1134. ?:/*)
  1135. ac_cv_path_SVN_VERSION="$SVN_VERSION" # Let the user override the test with a dos path.
  1136. ;;
  1137. *)
  1138. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1139. ac_dummy="$PATH"
  1140. for ac_dir in $ac_dummy; do
  1141. test -z "$ac_dir" && ac_dir=.
  1142. if test -f $ac_dir/$ac_word; then
  1143. ac_cv_path_SVN_VERSION="$ac_dir/$ac_word"
  1144. break
  1145. fi
  1146. done
  1147. IFS="$ac_save_ifs"
  1148. test -z "$ac_cv_path_SVN_VERSION" && ac_cv_path_SVN_VERSION="no"
  1149. ;;
  1150. esac
  1151. SVN_VERSION="$ac_cv_path_SVN_VERSION"
  1152. if test -n "$SVN_VERSION"; then
  1153. echo "$ac_t""$SVN_VERSION" 1>&6
  1154. else
  1155. echo "$ac_t""no" 1>&6
  1156. fi
  1157. if test "$SVN_VERSION" != "no" ; then
  1158. GRASS_VERSION_SVN=`$SVN_VERSION -c | cut -f2 -d:`
  1159. fi
  1160. # Check for MacOSX App
  1161. # Check whether --enable-macosx-app or --disable-macosx-app was given.
  1162. if test "${enable_macosx_app+set}" = set; then
  1163. enableval="$enable_macosx_app"
  1164. :
  1165. else
  1166. enable_macosx_app=no
  1167. fi
  1168. echo $ac_n "checking for MacOSX App""... $ac_c" 1>&6
  1169. echo "configure:1345: checking for MacOSX App" >&5
  1170. case "$enable_macosx_app" in
  1171. yes) MACOSX_APP=1 ;;
  1172. no) MACOSX_APP= ;;
  1173. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  1174. esac
  1175. echo "$ac_t"""$enable_macosx_app"" 1>&6
  1176. # Check for MacOSX archs
  1177. echo $ac_n "checking for MacOSX architectures""... $ac_c" 1>&6
  1178. echo "configure:1357: checking for MacOSX architectures" >&5
  1179. MACOSX_ARCHS=
  1180. if test -z "$with_macosx_archs" ; then
  1181. echo "$ac_t""no" 1>&6
  1182. else
  1183. for a in $with_macosx_archs
  1184. do
  1185. # check if valid arch?
  1186. case "$a" in
  1187. i386|ppc|x86_64|ppc64)
  1188. MACOSX_ARCHS="$MACOSX_ARCHS -arch $a"
  1189. ;;
  1190. esac
  1191. done
  1192. echo "$ac_t""$MACOSX_ARCHS" 1>&6
  1193. LDFLAGS="$LDFLAGS $MACOSX_ARCHS"
  1194. CFLAGS="$CFLAGS $MACOSX_ARCHS"
  1195. CXXFLAGS="$CXXFLAGS $MACOSX_ARCHS"
  1196. fi
  1197. # Done checking MacOSX archs
  1198. # Check for MacOSX SDK
  1199. echo $ac_n "checking for MacOSX SDK""... $ac_c" 1>&6
  1200. echo "configure:1386: checking for MacOSX SDK" >&5
  1201. MACOSX_SDK=
  1202. if test -z "$with_macosx_sdk" ; then
  1203. echo "$ac_t""no" 1>&6
  1204. else
  1205. ac_safe=`echo "$with_macosx_sdk/SDKSettings.plist" | sed 'y%./+-%__p_%'`
  1206. echo $ac_n "checking for $with_macosx_sdk/SDKSettings.plist""... $ac_c" 1>&6
  1207. echo "configure:1396: checking for $with_macosx_sdk/SDKSettings.plist" >&5
  1208. if test "$cross_compiling" = yes; then
  1209. { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
  1210. else
  1211. if test -r $with_macosx_sdk/SDKSettings.plist; then
  1212. eval "ac_cv_file_$ac_safe=yes"
  1213. else
  1214. eval "ac_cv_file_$ac_safe=no"
  1215. fi
  1216. fi
  1217. if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
  1218. echo "$ac_t""yes" 1>&6
  1219. MACOSX_SDK="-isysroot $with_macosx_sdk"
  1220. else
  1221. echo "$ac_t""no" 1>&6
  1222. { echo "configure: error: *** specified SDK does not exist or is not a SDK" 1>&2; exit 1; }
  1223. fi
  1224. LDFLAGS="$LDFLAGS $MACOSX_SDK"
  1225. CFLAGS="$CFLAGS $MACOSX_SDK"
  1226. CXXFLAGS="$CXXFLAGS $MACOSX_SDK"
  1227. fi
  1228. # Done checking MacOSX SDK
  1229. # Set INST_DIR
  1230. if test -n "$MACOSX_APP" ; then
  1231. INSTDIR='${prefix}'"/GRASS-${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.app/Contents/MacOS"
  1232. else
  1233. INSTDIR='${prefix}'"/grass-${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.${GRASS_VERSION_RELEASE}"
  1234. fi
  1235. # Get flags for building shared libraries
  1236. echo $ac_n "checking how to build libraries""... $ac_c" 1>&6
  1237. echo "configure:1440: checking how to build libraries" >&5
  1238. # Check whether --enable-shared or --disable-shared was given.
  1239. if test "${enable_shared+set}" = set; then
  1240. enableval="$enable_shared"
  1241. shared_ok=$enableval
  1242. else
  1243. shared_ok=yes
  1244. fi
  1245. if test "${enable_shared+set}" = set; then
  1246. enableval="$enable_shared"
  1247. shared_ok=$enableval
  1248. else
  1249. shared_ok=yes
  1250. fi
  1251. if test "$shared_ok" = "yes" ; then
  1252. echo "$ac_t""shared" 1>&6
  1253. SHARED_BUILD=1
  1254. GRASS_LIB_PREFIX='$(SHLIB_PREFIX)'
  1255. GRASS_LIB_SUFFIX='$(SHLIB_SUFFIX)'
  1256. GRASS_LIBRARY_TYPE='shlib'
  1257. else
  1258. echo "$ac_t""static" 1>&6
  1259. SHARED_BUILD=0
  1260. cat >> confdefs.h <<\EOF
  1261. #define STATIC_BUILD 1
  1262. EOF
  1263. GRASS_LIB_PREFIX='$(STLIB_PREFIX)'
  1264. GRASS_LIB_SUFFIX='$(STLIB_SUFFIX)'
  1265. GRASS_LIBRARY_TYPE='stlib'
  1266. fi
  1267. ac_save_ldflags="$LDFLAGS"
  1268. SHLIB_CFLAGS=""
  1269. SHLIB_LD_FLAGS=""
  1270. SHLIB_LD_LIBS=""
  1271. SHLIB_SUFFIX=""
  1272. SHLIB_LD=""
  1273. STLIB_LD='${AR} cr'
  1274. STLIB_SUFFIX='.a'
  1275. LDFLAGS=""
  1276. CC_SEARCH_FLAGS=""
  1277. LD_SEARCH_FLAGS=""
  1278. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1279. PLAT_OBJS=""
  1280. case $host in
  1281. *-linux-*)
  1282. SHLIB_CFLAGS="-fPIC"
  1283. SHLIB_LD_FLAGS=""
  1284. SHLIB_LD_LIBS='${LIBS}'
  1285. SHLIB_SUFFIX=".so"
  1286. SHLIB_LD="${CC} -shared"
  1287. LDFLAGS="-Wl,--export-dynamic"
  1288. CC_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
  1289. LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
  1290. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1291. ;;
  1292. *-pc-cygwin)
  1293. SHLIB_LD_LIBS='${LIBS}'
  1294. SHLIB_SUFFIX=".dll"
  1295. SHLIB_LD="${CC} -shared"
  1296. LDFLAGS="-Wl,--export-dynamic"
  1297. LD_LIBRARY_PATH_VAR="PATH"
  1298. ;;
  1299. *-pc-mingw32)
  1300. SHLIB_LD_LIBS='${LIBS}'
  1301. SHLIB_SUFFIX=".dll"
  1302. SHLIB_LD="${CC} -shared"
  1303. LDFLAGS="-Wl,--export-dynamic,--enable-runtime-pseudo-reloc"
  1304. LD_LIBRARY_PATH_VAR="PATH"
  1305. ;;
  1306. *-apple-darwin*)
  1307. SHLIB_CFLAGS="-fno-common"
  1308. SHLIB_LD_LIBS='${LIBS}'
  1309. SHLIB_SUFFIX=".dylib"
  1310. 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}"
  1311. LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
  1312. ;;
  1313. *-sun-solaris*)
  1314. # Note: If _REENTRANT isn't defined, then Solaris
  1315. # won't define thread-safe library routines.
  1316. cat >> confdefs.h <<\EOF
  1317. #define _REENTRANT 1
  1318. EOF
  1319. cat >> confdefs.h <<\EOF
  1320. #define _POSIX_PTHREAD_SEMANTICS 1
  1321. EOF
  1322. # Note: need the LIBS below, otherwise Tk won't find Tcl's
  1323. # symbols when dynamically loaded into tclsh.
  1324. if test "$GCC" = "yes" ; then
  1325. SHLIB_CFLAGS="-fPIC"
  1326. SHLIB_LD="$CC -shared"
  1327. CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
  1328. else
  1329. SHLIB_CFLAGS="-KPIC"
  1330. SHLIB_LD="/usr/ccs/bin/ld -G -z text"
  1331. CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
  1332. fi
  1333. SHLIB_SUFFIX=".so"
  1334. SHLIB_LD_LIBS='${LIBS}'
  1335. LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
  1336. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1337. ;;
  1338. *)
  1339. { echo "configure: error: ***Unknown platform: $host***" 1>&2; exit 1; }
  1340. ;;
  1341. esac
  1342. LDFLAGS="${ac_save_ldflags} $LDFLAGS"
  1343. # Enable options
  1344. # Check whether --enable-w11 or --disable-w11 was given.
  1345. if test "${enable_w11+set}" = set; then
  1346. enableval="$enable_w11"
  1347. :
  1348. else
  1349. enable_w11=no
  1350. fi
  1351. # With options
  1352. # Check whether --with-cxx or --without-cxx was given.
  1353. if test "${with_cxx+set}" = set; then
  1354. withval="$with_cxx"
  1355. :
  1356. else
  1357. with_cxx=no
  1358. fi
  1359. #LOC_ARG_WITH(g77, GNU Fortran 77, no)
  1360. # Check whether --with-macosx-archs or --without-macosx-archs was given.
  1361. if test "${with_macosx_archs+set}" = set; then
  1362. withval="$with_macosx_archs"
  1363. :
  1364. else
  1365. with_macosx_archs="no"
  1366. fi
  1367. # Check whether --with-macosx-sdk or --without-macosx-sdk was given.
  1368. if test "${with_macosx_sdk+set}" = set; then
  1369. withval="$with_macosx_sdk"
  1370. :
  1371. else
  1372. with_macosx_sdk="no"
  1373. fi
  1374. # Check whether --with-jpeg or --without-jpeg was given.
  1375. if test "${with_jpeg+set}" = set; then
  1376. withval="$with_jpeg"
  1377. :
  1378. else
  1379. with_jpeg=yes
  1380. fi
  1381. # Check whether --with-tiff or --without-tiff was given.
  1382. if test "${with_tiff+set}" = set; then
  1383. withval="$with_tiff"
  1384. :
  1385. else
  1386. with_tiff=yes
  1387. fi
  1388. # Check whether --with-png or --without-png was given.
  1389. if test "${with_png+set}" = set; then
  1390. withval="$with_png"
  1391. :
  1392. else
  1393. with_png=yes
  1394. fi
  1395. # Check whether --with-tcltk or --without-tcltk was given.
  1396. if test "${with_tcltk+set}" = set; then
  1397. withval="$with_tcltk"
  1398. :
  1399. else
  1400. with_tcltk=yes
  1401. fi
  1402. # Check whether --with-postgres or --without-postgres was given.
  1403. if test "${with_postgres+set}" = set; then
  1404. withval="$with_postgres"
  1405. :
  1406. else
  1407. with_postgres=no
  1408. fi
  1409. # Check whether --with-mysql or --without-mysql was given.
  1410. if test "${with_mysql+set}" = set; then
  1411. withval="$with_mysql"
  1412. :
  1413. else
  1414. with_mysql=no
  1415. fi
  1416. # Check whether --with-sqlite or --without-sqlite was given.
  1417. if test "${with_sqlite+set}" = set; then
  1418. withval="$with_sqlite"
  1419. :
  1420. else
  1421. with_sqlite=no
  1422. fi
  1423. # Check whether --with-ffmpeg or --without-ffmpeg was given.
  1424. if test "${with_ffmpeg+set}" = set; then
  1425. withval="$with_ffmpeg"
  1426. :
  1427. else
  1428. with_ffmpeg=no
  1429. fi
  1430. # Check whether --with-opengl or --without-opengl was given.
  1431. if test "${with_opengl+set}" = set; then
  1432. withval="$with_opengl"
  1433. :
  1434. else
  1435. with_opengl=yes
  1436. fi
  1437. # Check whether --with-odbc or --without-odbc was given.
  1438. if test "${with_odbc+set}" = set; then
  1439. withval="$with_odbc"
  1440. :
  1441. else
  1442. with_odbc=no
  1443. fi
  1444. # Check whether --with-fftw or --without-fftw was given.
  1445. if test "${with_fftw+set}" = set; then
  1446. withval="$with_fftw"
  1447. :
  1448. else
  1449. with_fftw=yes
  1450. fi
  1451. # Check whether --with-blas or --without-blas was given.
  1452. if test "${with_blas+set}" = set; then
  1453. withval="$with_blas"
  1454. :
  1455. else
  1456. with_blas=no
  1457. fi
  1458. # Check whether --with-lapack or --without-lapack was given.
  1459. if test "${with_lapack+set}" = set; then
  1460. withval="$with_lapack"
  1461. :
  1462. else
  1463. with_lapack=no
  1464. fi
  1465. # Check whether --with-cairo or --without-cairo was given.
  1466. if test "${with_cairo+set}" = set; then
  1467. withval="$with_cairo"
  1468. :
  1469. else
  1470. with_cairo=yes
  1471. fi
  1472. # Check whether --with-freetype or --without-freetype was given.
  1473. if test "${with_freetype+set}" = set; then
  1474. withval="$with_freetype"
  1475. :
  1476. else
  1477. with_freetype=yes
  1478. fi
  1479. # Check whether --with-nls or --without-nls was given.
  1480. if test "${with_nls+set}" = set; then
  1481. withval="$with_nls"
  1482. :
  1483. else
  1484. with_nls=no
  1485. fi
  1486. # Check whether --with-readline or --without-readline was given.
  1487. if test "${with_readline+set}" = set; then
  1488. withval="$with_readline"
  1489. :
  1490. else
  1491. with_readline=no
  1492. fi
  1493. # Check whether --with-opendwg or --without-opendwg was given.
  1494. if test "${with_opendwg+set}" = set; then
  1495. withval="$with_opendwg"
  1496. :
  1497. else
  1498. with_opendwg=no
  1499. fi
  1500. # Check whether --with-regex or --without-regex was given.
  1501. if test "${with_regex+set}" = set; then
  1502. withval="$with_regex"
  1503. :
  1504. else
  1505. with_regex=yes
  1506. fi
  1507. # Check whether --with-pthread or --without-pthread was given.
  1508. if test "${with_pthread+set}" = set; then
  1509. withval="$with_pthread"
  1510. :
  1511. else
  1512. with_pthread=no
  1513. fi
  1514. # Check whether --with-gdal or --without-gdal was given.
  1515. if test "${with_gdal+set}" = set; then
  1516. withval="$with_gdal"
  1517. :
  1518. fi
  1519. # Check whether --with-python or --without-python was given.
  1520. if test "${with_python+set}" = set; then
  1521. withval="$with_python"
  1522. :
  1523. else
  1524. with_python="no"
  1525. fi
  1526. # Check whether --with-wxwidgets or --without-wxwidgets was given.
  1527. if test "${with_wxwidgets+set}" = set; then
  1528. withval="$with_wxwidgets"
  1529. :
  1530. else
  1531. with_wxwidgets="no"
  1532. fi
  1533. # With includes and libs options
  1534. # Check whether --with-geos or --without-geos was given.
  1535. if test "${with_geos+set}" = set; then
  1536. withval="$with_geos"
  1537. :
  1538. else
  1539. with_geos="no"
  1540. fi
  1541. # Check whether --with-includes or --without-includes was given.
  1542. if test "${with_includes+set}" = set; then
  1543. withval="$with_includes"
  1544. :
  1545. fi
  1546. # Check whether --with-libs or --without-libs was given.
  1547. if test "${with_libs+set}" = set; then
  1548. withval="$with_libs"
  1549. :
  1550. fi
  1551. # Check whether --with-zlib-includes or --without-zlib-includes was given.
  1552. if test "${with_zlib_includes+set}" = set; then
  1553. withval="$with_zlib_includes"
  1554. :
  1555. fi
  1556. # Check whether --with-zlib-libs or --without-zlib-libs was given.
  1557. if test "${with_zlib_libs+set}" = set; then
  1558. withval="$with_zlib_libs"
  1559. :
  1560. fi
  1561. # Check whether --with-readline-includes or --without-readline-includes was given.
  1562. if test "${with_readline_includes+set}" = set; then
  1563. withval="$with_readline_includes"
  1564. :
  1565. fi
  1566. # Check whether --with-readline-libs or --without-readline-libs was given.
  1567. if test "${with_readline_libs+set}" = set; then
  1568. withval="$with_readline_libs"
  1569. :
  1570. fi
  1571. # Check whether --with-jpeg-includes or --without-jpeg-includes was given.
  1572. if test "${with_jpeg_includes+set}" = set; then
  1573. withval="$with_jpeg_includes"
  1574. :
  1575. fi
  1576. # Check whether --with-jpeg-libs or --without-jpeg-libs was given.
  1577. if test "${with_jpeg_libs+set}" = set; then
  1578. withval="$with_jpeg_libs"
  1579. :
  1580. fi
  1581. # Check whether --with-tiff-includes or --without-tiff-includes was given.
  1582. if test "${with_tiff_includes+set}" = set; then
  1583. withval="$with_tiff_includes"
  1584. :
  1585. fi
  1586. # Check whether --with-tiff-libs or --without-tiff-libs was given.
  1587. if test "${with_tiff_libs+set}" = set; then
  1588. withval="$with_tiff_libs"
  1589. :
  1590. fi
  1591. # Check whether --with-png-includes or --without-png-includes was given.
  1592. if test "${with_png_includes+set}" = set; then
  1593. withval="$with_png_includes"
  1594. :
  1595. fi
  1596. # Check whether --with-png-libs or --without-png-libs was given.
  1597. if test "${with_png_libs+set}" = set; then
  1598. withval="$with_png_libs"
  1599. :
  1600. fi
  1601. # Check whether --with-tcltk-includes or --without-tcltk-includes was given.
  1602. if test "${with_tcltk_includes+set}" = set; then
  1603. withval="$with_tcltk_includes"
  1604. :
  1605. fi
  1606. # Check whether --with-tcltk-libs or --without-tcltk-libs was given.
  1607. if test "${with_tcltk_libs+set}" = set; then
  1608. withval="$with_tcltk_libs"
  1609. :
  1610. fi
  1611. # Check whether --with-postgres-includes or --without-postgres-includes was given.
  1612. if test "${with_postgres_includes+set}" = set; then
  1613. withval="$with_postgres_includes"
  1614. :
  1615. fi
  1616. # Check whether --with-postgres-libs or --without-postgres-libs was given.
  1617. if test "${with_postgres_libs+set}" = set; then
  1618. withval="$with_postgres_libs"
  1619. :
  1620. fi
  1621. # Check whether --with-mysql-includes or --without-mysql-includes was given.
  1622. if test "${with_mysql_includes+set}" = set; then
  1623. withval="$with_mysql_includes"
  1624. :
  1625. fi
  1626. # Check whether --with-mysql-libs or --without-mysql-libs was given.
  1627. if test "${with_mysql_libs+set}" = set; then
  1628. withval="$with_mysql_libs"
  1629. :
  1630. fi
  1631. # Check whether --with-sqlite-includes or --without-sqlite-includes was given.
  1632. if test "${with_sqlite_includes+set}" = set; then
  1633. withval="$with_sqlite_includes"
  1634. :
  1635. fi
  1636. # Check whether --with-sqlite-libs or --without-sqlite-libs was given.
  1637. if test "${with_sqlite_libs+set}" = set; then
  1638. withval="$with_sqlite_libs"
  1639. :
  1640. fi
  1641. # Check whether --with-ffmpeg-includes or --without-ffmpeg-includes was given.
  1642. if test "${with_ffmpeg_includes+set}" = set; then
  1643. withval="$with_ffmpeg_includes"
  1644. :
  1645. fi
  1646. # Check whether --with-ffmpeg-libs or --without-ffmpeg-libs was given.
  1647. if test "${with_ffmpeg_libs+set}" = set; then
  1648. withval="$with_ffmpeg_libs"
  1649. :
  1650. fi
  1651. # Check whether --with-opengl-includes or --without-opengl-includes was given.
  1652. if test "${with_opengl_includes+set}" = set; then
  1653. withval="$with_opengl_includes"
  1654. :
  1655. fi
  1656. # Check whether --with-opengl-libs or --without-opengl-libs was given.
  1657. if test "${with_opengl_libs+set}" = set; then
  1658. withval="$with_opengl_libs"
  1659. :
  1660. fi
  1661. # Check whether --with-opengl-framework or --without-opengl-framework was given.
  1662. if test "${with_opengl_framework+set}" = set; then
  1663. withval="$with_opengl_framework"
  1664. :
  1665. fi
  1666. # Check whether --with-odbc-includes or --without-odbc-includes was given.
  1667. if test "${with_odbc_includes+set}" = set; then
  1668. withval="$with_odbc_includes"
  1669. :
  1670. fi
  1671. # Check whether --with-odbc-libs or --without-odbc-libs was given.
  1672. if test "${with_odbc_libs+set}" = set; then
  1673. withval="$with_odbc_libs"
  1674. :
  1675. fi
  1676. # Check whether --with-fftw-includes or --without-fftw-includes was given.
  1677. if test "${with_fftw_includes+set}" = set; then
  1678. withval="$with_fftw_includes"
  1679. :
  1680. fi
  1681. # Check whether --with-fftw-libs or --without-fftw-libs was given.
  1682. if test "${with_fftw_libs+set}" = set; then
  1683. withval="$with_fftw_libs"
  1684. :
  1685. fi
  1686. # Check whether --with-blas-includes or --without-blas-includes was given.
  1687. if test "${with_blas_includes+set}" = set; then
  1688. withval="$with_blas_includes"
  1689. :
  1690. fi
  1691. # Check whether --with-blas-libs or --without-blas-libs was given.
  1692. if test "${with_blas_libs+set}" = set; then
  1693. withval="$with_blas_libs"
  1694. :
  1695. fi
  1696. # Check whether --with-lapack-includes or --without-lapack-includes was given.
  1697. if test "${with_lapack_includes+set}" = set; then
  1698. withval="$with_lapack_includes"
  1699. :
  1700. fi
  1701. # Check whether --with-lapack-libs or --without-lapack-libs was given.
  1702. if test "${with_lapack_libs+set}" = set; then
  1703. withval="$with_lapack_libs"
  1704. :
  1705. fi
  1706. # Check whether --with-cairo-includes or --without-cairo-includes was given.
  1707. if test "${with_cairo_includes+set}" = set; then
  1708. withval="$with_cairo_includes"
  1709. :
  1710. fi
  1711. # Check whether --with-cairo-libs or --without-cairo-libs was given.
  1712. if test "${with_cairo_libs+set}" = set; then
  1713. withval="$with_cairo_libs"
  1714. :
  1715. fi
  1716. # Check whether --with-cairo-ldflags or --without-cairo-ldflags was given.
  1717. if test "${with_cairo_ldflags+set}" = set; then
  1718. withval="$with_cairo_ldflags"
  1719. :
  1720. fi
  1721. # Check whether --with-freetype-includes or --without-freetype-includes was given.
  1722. if test "${with_freetype_includes+set}" = set; then
  1723. withval="$with_freetype_includes"
  1724. :
  1725. fi
  1726. # Check whether --with-freetype-libs or --without-freetype-libs was given.
  1727. if test "${with_freetype_libs+set}" = set; then
  1728. withval="$with_freetype_libs"
  1729. :
  1730. fi
  1731. # Check whether --with-proj-includes or --without-proj-includes was given.
  1732. if test "${with_proj_includes+set}" = set; then
  1733. withval="$with_proj_includes"
  1734. :
  1735. fi
  1736. # Check whether --with-proj-libs or --without-proj-libs was given.
  1737. if test "${with_proj_libs+set}" = set; then
  1738. withval="$with_proj_libs"
  1739. :
  1740. fi
  1741. # Check whether --with-proj-share or --without-proj-share was given.
  1742. if test "${with_proj_share+set}" = set; then
  1743. withval="$with_proj_share"
  1744. :
  1745. fi
  1746. # Check whether --with-opendwg-includes or --without-opendwg-includes was given.
  1747. if test "${with_opendwg_includes+set}" = set; then
  1748. withval="$with_opendwg_includes"
  1749. :
  1750. fi
  1751. # Check whether --with-opendwg-libs or --without-opendwg-libs was given.
  1752. if test "${with_opendwg_libs+set}" = set; then
  1753. withval="$with_opendwg_libs"
  1754. :
  1755. fi
  1756. # Check whether --with-regex-includes or --without-regex-includes was given.
  1757. if test "${with_regex_includes+set}" = set; then
  1758. withval="$with_regex_includes"
  1759. :
  1760. fi
  1761. # Check whether --with-regex-libs or --without-regex-libs was given.
  1762. if test "${with_regex_libs+set}" = set; then
  1763. withval="$with_regex_libs"
  1764. :
  1765. fi
  1766. # Check whether --with-pthread-includes or --without-pthread-includes was given.
  1767. if test "${with_pthread_includes+set}" = set; then
  1768. withval="$with_pthread_includes"
  1769. :
  1770. fi
  1771. # Check whether --with-pthread-libs or --without-pthread-libs was given.
  1772. if test "${with_pthread_libs+set}" = set; then
  1773. withval="$with_pthread_libs"
  1774. :
  1775. fi
  1776. # Put this early on so CPPFLAGS and LDFLAGS have any additional dirs
  1777. # With includes option
  1778. # Handle Fortran compiler choice
  1779. #LOC_CHECK_USE(g77, GNU Fortran 77, USE_G77)
  1780. # Done checking fortran
  1781. echo $ac_n "checking for additional include dirs""... $ac_c" 1>&6
  1782. echo "configure:2258: checking for additional include dirs" >&5
  1783. case "$with_includes" in
  1784. y | ye | yes | n | no)
  1785. { echo "configure: error: *** You must supply a directory to list --with-includes." 1>&2; exit 1; }
  1786. ;;
  1787. esac
  1788. echo "$ac_t""$with_includes" 1>&6
  1789. if test -n "$with_includes"; then
  1790. for dir in $with_includes; do
  1791. if test -d "$dir"; then
  1792. INCLUDE_DIRS="$INCLUDE_DIRS -I$dir"
  1793. else
  1794. { echo "configure: error: *** Include directory $dir does not exist." 1>&2; exit 1; }
  1795. fi
  1796. done
  1797. CPPFLAGS="$CPPFLAGS $INCLUDE_DIRS"
  1798. fi
  1799. # With libs option
  1800. echo $ac_n "checking for additional library dirs""... $ac_c" 1>&6
  1801. echo "configure:2281: checking for additional library dirs" >&5
  1802. case "$with_libs" in
  1803. y | ye | yes | n | no)
  1804. { echo "configure: error: *** You must supply a directory list to --with-libs." 1>&2; exit 1; }
  1805. ;;
  1806. esac
  1807. echo "$ac_t""$with_libs" 1>&6
  1808. if test -n "$with_libs"; then
  1809. for dir in $with_libs; do
  1810. if test -d "$dir"; then
  1811. LIBRARY_DIRS="$LIBRARY_DIRS -L$dir"
  1812. else
  1813. { echo "configure: error: *** Library directory $dir does not exist." 1>&2; exit 1; }
  1814. fi
  1815. done
  1816. LDFLAGS="$LDFLAGS $LIBRARY_DIRS"
  1817. fi
  1818. # Programs and standard headers, libraries, functions
  1819. # Find a good install program. We prefer a C program (faster),
  1820. # so one script is as good as another. But avoid the broken or
  1821. # incompatible versions:
  1822. # SysV /etc/install, /usr/sbin/install
  1823. # SunOS /usr/etc/install
  1824. # IRIX /sbin/install
  1825. # AIX /bin/install
  1826. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1827. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1828. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1829. # ./install, which can be erroneously created by make from ./install.sh.
  1830. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1831. echo "configure:2315: checking for a BSD compatible install" >&5
  1832. if test -z "$INSTALL"; then
  1833. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  1834. for ac_dir in $PATH; do
  1835. # Account for people who put trailing slashes in PATH elements.
  1836. case "$ac_dir/" in
  1837. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1838. *)
  1839. # OSF1 and SCO ODT 3.0 have their own names for install.
  1840. # Don't use installbsd from OSF since it installs stuff as root
  1841. # by default.
  1842. for ac_prog in ginstall scoinst install; do
  1843. if test -f $ac_dir/$ac_prog; then
  1844. if test $ac_prog = install &&
  1845. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1846. # AIX install. It has an incompatible calling convention.
  1847. :
  1848. else
  1849. ac_cv_path_install="$ac_dir/$ac_prog -c"
  1850. break 2
  1851. fi
  1852. fi
  1853. done
  1854. ;;
  1855. esac
  1856. done
  1857. IFS="$ac_save_IFS"
  1858. if test "${ac_cv_path_install+set}" = set; then
  1859. INSTALL="$ac_cv_path_install"
  1860. else
  1861. # As a last resort, use the slow shell script. We don't cache a
  1862. # path for INSTALL within a source directory, because that will
  1863. # break other packages using the cache if that directory is
  1864. # removed, or if the path is relative.
  1865. INSTALL="$ac_install_sh"
  1866. fi
  1867. fi
  1868. echo "$ac_t""$INSTALL" 1>&6
  1869. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1870. # It thinks the first close brace ends the variable substitution.
  1871. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1872. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  1873. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1874. # Extract the first word of "flex", so it can be a program name with args.
  1875. set dummy flex; ac_word=$2
  1876. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1877. echo "configure:2368: checking for $ac_word" >&5
  1878. if test -n "$LEX"; then
  1879. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  1880. else
  1881. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1882. ac_dummy="$PATH"
  1883. for ac_dir in $ac_dummy; do
  1884. test -z "$ac_dir" && ac_dir=.
  1885. if test -f $ac_dir/$ac_word; then
  1886. ac_cv_prog_LEX="flex"
  1887. break
  1888. fi
  1889. done
  1890. IFS="$ac_save_ifs"
  1891. test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
  1892. fi
  1893. LEX="$ac_cv_prog_LEX"
  1894. if test -n "$LEX"; then
  1895. echo "$ac_t""$LEX" 1>&6
  1896. else
  1897. echo "$ac_t""no" 1>&6
  1898. fi
  1899. if test -z "$LEXLIB"
  1900. then
  1901. case "$LEX" in
  1902. flex*) ac_lib=fl ;;
  1903. *) ac_lib=l ;;
  1904. esac
  1905. echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
  1906. echo "configure:2399: checking for yywrap in -l$ac_lib" >&5
  1907. ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
  1908. ac_save_LIBS="$LIBS"
  1909. LIBS="-l$ac_lib $LIBS"
  1910. cat > conftest.$ac_ext <<EOF
  1911. #line 2405 "configure"
  1912. #include "confdefs.h"
  1913. /* Override any gcc2 internal prototype to avoid an error. */
  1914. /* We use char because int might match the return type of a gcc2
  1915. builtin and then its argument prototype would still apply. */
  1916. char yywrap();
  1917. int main() {
  1918. yywrap()
  1919. ; return 0; }
  1920. EOF
  1921. if { (eval echo configure:2416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1922. rm -rf conftest*
  1923. eval "ac_cv_lib_$ac_lib_var=yes"
  1924. else
  1925. echo "configure: failed program was:" >&5
  1926. cat conftest.$ac_ext >&5
  1927. rm -rf conftest*
  1928. eval "ac_cv_lib_$ac_lib_var=no"
  1929. fi
  1930. rm -f conftest*
  1931. LIBS="$ac_save_LIBS"
  1932. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1933. echo "$ac_t""yes" 1>&6
  1934. LEXLIB="-l$ac_lib"
  1935. else
  1936. echo "$ac_t""no" 1>&6
  1937. fi
  1938. fi
  1939. if test "$LEX" = "lex"; then
  1940. # Extract the first word of "lex", so it can be a program name with args.
  1941. set dummy lex; ac_word=$2
  1942. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1943. echo "configure:2441: checking for $ac_word" >&5
  1944. case "$LEXPATH" in
  1945. /*)
  1946. ac_cv_path_LEXPATH="$LEXPATH" # Let the user override the test with a path.
  1947. ;;
  1948. ?:/*)
  1949. ac_cv_path_LEXPATH="$LEXPATH" # Let the user override the test with a dos path.
  1950. ;;
  1951. *)
  1952. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1953. ac_dummy="$PATH"
  1954. for ac_dir in $ac_dummy; do
  1955. test -z "$ac_dir" && ac_dir=.
  1956. if test -f $ac_dir/$ac_word; then
  1957. ac_cv_path_LEXPATH="$ac_dir/$ac_word"
  1958. break
  1959. fi
  1960. done
  1961. IFS="$ac_save_ifs"
  1962. test -z "$ac_cv_path_LEXPATH" && ac_cv_path_LEXPATH="no"
  1963. ;;
  1964. esac
  1965. LEXPATH="$ac_cv_path_LEXPATH"
  1966. if test -n "$LEXPATH"; then
  1967. echo "$ac_t""$LEXPATH" 1>&6
  1968. else
  1969. echo "$ac_t""no" 1>&6
  1970. fi
  1971. if test "$LEXPATH" = "no"; then
  1972. { echo "configure: error: *** Unable to locate lex." 1>&2; exit 1; }
  1973. fi
  1974. fi
  1975. for ac_prog in 'bison -y' byacc
  1976. do
  1977. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1978. set dummy $ac_prog; ac_word=$2
  1979. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1980. echo "configure:2481: checking for $ac_word" >&5
  1981. if test -n "$YACC"; then
  1982. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  1983. else
  1984. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1985. ac_dummy="$PATH"
  1986. for ac_dir in $ac_dummy; do
  1987. test -z "$ac_dir" && ac_dir=.
  1988. if test -f $ac_dir/$ac_word; then
  1989. ac_cv_prog_YACC="$ac_prog"
  1990. break
  1991. fi
  1992. done
  1993. IFS="$ac_save_ifs"
  1994. fi
  1995. YACC="$ac_cv_prog_YACC"
  1996. if test -n "$YACC"; then
  1997. echo "$ac_t""$YACC" 1>&6
  1998. else
  1999. echo "$ac_t""no" 1>&6
  2000. fi
  2001. test -n "$YACC" && break
  2002. done
  2003. test -n "$YACC" || YACC="yacc"
  2004. if test "$YACC" = "yacc"; then
  2005. # Extract the first word of "yacc", so it can be a program name with args.
  2006. set dummy yacc; ac_word=$2
  2007. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2008. echo "configure:2512: checking for $ac_word" >&5
  2009. case "$YACCPATH" in
  2010. /*)
  2011. ac_cv_path_YACCPATH="$YACCPATH" # Let the user override the test with a path.
  2012. ;;
  2013. ?:/*)
  2014. ac_cv_path_YACCPATH="$YACCPATH" # Let the user override the test with a dos path.
  2015. ;;
  2016. *)
  2017. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2018. ac_dummy="$PATH"
  2019. for ac_dir in $ac_dummy; do
  2020. test -z "$ac_dir" && ac_dir=.
  2021. if test -f $ac_dir/$ac_word; then
  2022. ac_cv_path_YACCPATH="$ac_dir/$ac_word"
  2023. break
  2024. fi
  2025. done
  2026. IFS="$ac_save_ifs"
  2027. test -z "$ac_cv_path_YACCPATH" && ac_cv_path_YACCPATH="no"
  2028. ;;
  2029. esac
  2030. YACCPATH="$ac_cv_path_YACCPATH"
  2031. if test -n "$YACCPATH"; then
  2032. echo "$ac_t""$YACCPATH" 1>&6
  2033. else
  2034. echo "$ac_t""no" 1>&6
  2035. fi
  2036. if test "$YACCPATH" = "no"; then
  2037. { echo "configure: error: *** Unable to locate yacc." 1>&2; exit 1; }
  2038. fi
  2039. fi
  2040. # Extract the first word of "ranlib", so it can be a program name with args.
  2041. set dummy ranlib; ac_word=$2
  2042. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2043. echo "configure:2550: checking for $ac_word" >&5
  2044. if test -n "$RANLIB"; then
  2045. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2046. else
  2047. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2048. ac_dummy="$PATH"
  2049. for ac_dir in $ac_dummy; do
  2050. test -z "$ac_dir" && ac_dir=.
  2051. if test -f $ac_dir/$ac_word; then
  2052. ac_cv_prog_RANLIB="ranlib"
  2053. break
  2054. fi
  2055. done
  2056. IFS="$ac_save_ifs"
  2057. test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  2058. fi
  2059. RANLIB="$ac_cv_prog_RANLIB"
  2060. if test -n "$RANLIB"; then
  2061. echo "$ac_t""$RANLIB" 1>&6
  2062. else
  2063. echo "$ac_t""no" 1>&6
  2064. fi
  2065. for ac_prog in ar
  2066. do
  2067. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2068. set dummy $ac_prog; ac_word=$2
  2069. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2070. echo "configure:2579: checking for $ac_word" >&5
  2071. if test -n "$AR"; then
  2072. ac_cv_prog_AR="$AR" # Let the user override the test.
  2073. else
  2074. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2075. ac_dummy="$PATH"
  2076. for ac_dir in $ac_dummy; do
  2077. test -z "$ac_dir" && ac_dir=.
  2078. if test -f $ac_dir/$ac_word; then
  2079. ac_cv_prog_AR="$ac_prog"
  2080. break
  2081. fi
  2082. done
  2083. IFS="$ac_save_ifs"
  2084. fi
  2085. AR="$ac_cv_prog_AR"
  2086. if test -n "$AR"; then
  2087. echo "$ac_t""$AR" 1>&6
  2088. else
  2089. echo "$ac_t""no" 1>&6
  2090. fi
  2091. test -n "$AR" && break
  2092. done
  2093. for ac_prog in env
  2094. do
  2095. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2096. set dummy $ac_prog; ac_word=$2
  2097. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2098. echo "configure:2610: checking for $ac_word" >&5
  2099. if test -n "$ENV"; then
  2100. ac_cv_prog_ENV="$ENV" # Let the user override the test.
  2101. else
  2102. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2103. ac_dummy="$PATH"
  2104. for ac_dir in $ac_dummy; do
  2105. test -z "$ac_dir" && ac_dir=.
  2106. if test -f $ac_dir/$ac_word; then
  2107. ac_cv_prog_ENV="$ac_prog"
  2108. break
  2109. fi
  2110. done
  2111. IFS="$ac_save_ifs"
  2112. fi
  2113. ENV="$ac_cv_prog_ENV"
  2114. if test -n "$ENV"; then
  2115. echo "$ac_t""$ENV" 1>&6
  2116. else
  2117. echo "$ac_t""no" 1>&6
  2118. fi
  2119. test -n "$ENV" && break
  2120. done
  2121. # Extract the first word of "perl", so it can be a program name with args.
  2122. set dummy perl; ac_word=$2
  2123. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2124. echo "configure:2639: checking for $ac_word" >&5
  2125. case "$PERL" in
  2126. /*)
  2127. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  2128. ;;
  2129. ?:/*)
  2130. ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
  2131. ;;
  2132. *)
  2133. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2134. ac_dummy="$PATH"
  2135. for ac_dir in $ac_dummy; do
  2136. test -z "$ac_dir" && ac_dir=.
  2137. if test -f $ac_dir/$ac_word; then
  2138. ac_cv_path_PERL="$ac_dir/$ac_word"
  2139. break
  2140. fi
  2141. done
  2142. IFS="$ac_save_ifs"
  2143. test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
  2144. ;;
  2145. esac
  2146. PERL="$ac_cv_path_PERL"
  2147. if test -n "$PERL"; then
  2148. echo "$ac_t""$PERL" 1>&6
  2149. else
  2150. echo "$ac_t""no" 1>&6
  2151. fi
  2152. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  2153. echo "configure:2670: checking how to run the C preprocessor" >&5
  2154. # On Suns, sometimes $CPP names a directory.
  2155. if test -n "$CPP" && test -d "$CPP"; then
  2156. CPP=
  2157. fi
  2158. if test -z "$CPP"; then
  2159. # This must be in double quotes, not single quotes, because CPP may get
  2160. # substituted into the Makefile and "${CC-cc}" will confuse make.
  2161. CPP="${CC-cc} -E"
  2162. # On the NeXT, cc -E runs the code through the compiler's parser,
  2163. # not just through cpp.
  2164. cat > conftest.$ac_ext <<EOF
  2165. #line 2683 "configure"
  2166. #include "confdefs.h"
  2167. #include <assert.h>
  2168. Syntax Error
  2169. EOF
  2170. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2171. { (eval echo configure:2689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2172. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2173. if test -z "$ac_err"; then
  2174. :
  2175. else
  2176. echo "$ac_err" >&5
  2177. echo "configure: failed program was:" >&5
  2178. cat conftest.$ac_ext >&5
  2179. rm -rf conftest*
  2180. CPP="${CC-cc} -E -traditional-cpp"
  2181. cat > conftest.$ac_ext <<EOF
  2182. #line 2700 "configure"
  2183. #include "confdefs.h"
  2184. #include <assert.h>
  2185. Syntax Error
  2186. EOF
  2187. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2188. { (eval echo configure:2706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2189. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2190. if test -z "$ac_err"; then
  2191. :
  2192. else
  2193. echo "$ac_err" >&5
  2194. echo "configure: failed program was:" >&5
  2195. cat conftest.$ac_ext >&5
  2196. rm -rf conftest*
  2197. CPP="${CC-cc} -nologo -E"
  2198. cat > conftest.$ac_ext <<EOF
  2199. #line 2717 "configure"
  2200. #include "confdefs.h"
  2201. #include <assert.h>
  2202. Syntax Error
  2203. EOF
  2204. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2205. { (eval echo configure:2723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2206. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2207. if test -z "$ac_err"; then
  2208. :
  2209. else
  2210. echo "$ac_err" >&5
  2211. echo "configure: failed program was:" >&5
  2212. cat conftest.$ac_ext >&5
  2213. rm -rf conftest*
  2214. CPP=/lib/cpp
  2215. fi
  2216. rm -f conftest*
  2217. fi
  2218. rm -f conftest*
  2219. fi
  2220. rm -f conftest*
  2221. ac_cv_prog_CPP="$CPP"
  2222. CPP="$ac_cv_prog_CPP"
  2223. else
  2224. ac_cv_prog_CPP="$CPP"
  2225. fi
  2226. echo "$ac_t""$CPP" 1>&6
  2227. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  2228. echo "configure:2747: checking for ANSI C header files" >&5
  2229. cat > conftest.$ac_ext <<EOF
  2230. #line 2750 "configure"
  2231. #include "confdefs.h"
  2232. #include <stdlib.h>
  2233. #include <stdarg.h>
  2234. #include <string.h>
  2235. #include <float.h>
  2236. EOF
  2237. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2238. { (eval echo configure:2758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2239. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2240. if test -z "$ac_err"; then
  2241. rm -rf conftest*
  2242. ac_cv_header_stdc=yes
  2243. else
  2244. echo "$ac_err" >&5
  2245. echo "configure: failed program was:" >&5
  2246. cat conftest.$ac_ext >&5
  2247. rm -rf conftest*
  2248. ac_cv_header_stdc=no
  2249. fi
  2250. rm -f conftest*
  2251. if test $ac_cv_header_stdc = yes; then
  2252. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2253. cat > conftest.$ac_ext <<EOF
  2254. #line 2775 "configure"
  2255. #include "confdefs.h"
  2256. #include <string.h>
  2257. EOF
  2258. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2259. egrep "memchr" >/dev/null 2>&1; then
  2260. :
  2261. else
  2262. rm -rf conftest*
  2263. ac_cv_header_stdc=no
  2264. fi
  2265. rm -f conftest*
  2266. fi
  2267. if test $ac_cv_header_stdc = yes; then
  2268. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2269. cat > conftest.$ac_ext <<EOF
  2270. #line 2793 "configure"
  2271. #include "confdefs.h"
  2272. #include <stdlib.h>
  2273. EOF
  2274. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2275. egrep "free" >/dev/null 2>&1; then
  2276. :
  2277. else
  2278. rm -rf conftest*
  2279. ac_cv_header_stdc=no
  2280. fi
  2281. rm -f conftest*
  2282. fi
  2283. if test $ac_cv_header_stdc = yes; then
  2284. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2285. if test "$cross_compiling" = yes; then
  2286. :
  2287. else
  2288. cat > conftest.$ac_ext <<EOF
  2289. #line 2814 "configure"
  2290. #include "confdefs.h"
  2291. #include <ctype.h>
  2292. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2293. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2294. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2295. int main () { int i; for (i = 0; i < 256; i++)
  2296. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  2297. exit (0); }
  2298. EOF
  2299. if { (eval echo configure:2825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2300. then
  2301. :
  2302. else
  2303. echo "configure: failed program was:" >&5
  2304. cat conftest.$ac_ext >&5
  2305. rm -fr conftest*
  2306. ac_cv_header_stdc=no
  2307. fi
  2308. rm -fr conftest*
  2309. fi
  2310. fi
  2311. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  2312. if test $ac_cv_header_stdc = yes; then
  2313. cat >> confdefs.h <<\EOF
  2314. #define STDC_HEADERS 1
  2315. EOF
  2316. fi
  2317. #AC_CHECK_HEADERS(curses.h limits.h termio.h termios.h unistd.h values.h)
  2318. for ac_hdr in limits.h termio.h termios.h unistd.h values.h f2c.h g2c.h
  2319. do
  2320. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2321. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2322. echo "configure:2852: checking for $ac_hdr" >&5
  2323. cat > conftest.$ac_ext <<EOF
  2324. #line 2855 "configure"
  2325. #include "confdefs.h"
  2326. #include <$ac_hdr>
  2327. EOF
  2328. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2329. { (eval echo configure:2860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2330. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2331. if test -z "$ac_err"; then
  2332. rm -rf conftest*
  2333. eval "ac_cv_header_$ac_safe=yes"
  2334. else
  2335. echo "$ac_err" >&5
  2336. echo "configure: failed program was:" >&5
  2337. cat conftest.$ac_ext >&5
  2338. rm -rf conftest*
  2339. eval "ac_cv_header_$ac_safe=no"
  2340. fi
  2341. rm -f conftest*
  2342. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2343. echo "$ac_t""yes" 1>&6
  2344. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2345. cat >> confdefs.h <<EOF
  2346. #define $ac_tr_hdr 1
  2347. EOF
  2348. else
  2349. echo "$ac_t""no" 1>&6
  2350. fi
  2351. done
  2352. for ac_hdr in sys/ioctl.h sys/mtio.h sys/resource.h sys/time.h
  2353. do
  2354. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2355. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2356. echo "configure:2889: checking for $ac_hdr" >&5
  2357. cat > conftest.$ac_ext <<EOF
  2358. #line 2892 "configure"
  2359. #include "confdefs.h"
  2360. #include <$ac_hdr>
  2361. EOF
  2362. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2363. { (eval echo configure:2897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2364. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2365. if test -z "$ac_err"; then
  2366. rm -rf conftest*
  2367. eval "ac_cv_header_$ac_safe=yes"
  2368. else
  2369. echo "$ac_err" >&5
  2370. echo "configure: failed program was:" >&5
  2371. cat conftest.$ac_ext >&5
  2372. rm -rf conftest*
  2373. eval "ac_cv_header_$ac_safe=no"
  2374. fi
  2375. rm -f conftest*
  2376. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2377. echo "$ac_t""yes" 1>&6
  2378. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2379. cat >> confdefs.h <<EOF
  2380. #define $ac_tr_hdr 1
  2381. EOF
  2382. else
  2383. echo "$ac_t""no" 1>&6
  2384. fi
  2385. done
  2386. for ac_hdr in sys/timeb.h sys/types.h sys/utsname.h
  2387. do
  2388. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2389. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2390. echo "configure:2926: checking for $ac_hdr" >&5
  2391. cat > conftest.$ac_ext <<EOF
  2392. #line 2929 "configure"
  2393. #include "confdefs.h"
  2394. #include <$ac_hdr>
  2395. EOF
  2396. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2397. { (eval echo configure:2934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2398. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2399. if test -z "$ac_err"; then
  2400. rm -rf conftest*
  2401. eval "ac_cv_header_$ac_safe=yes"
  2402. else
  2403. echo "$ac_err" >&5
  2404. echo "configure: failed program was:" >&5
  2405. cat conftest.$ac_ext >&5
  2406. rm -rf conftest*
  2407. eval "ac_cv_header_$ac_safe=no"
  2408. fi
  2409. rm -f conftest*
  2410. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2411. echo "$ac_t""yes" 1>&6
  2412. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2413. cat >> confdefs.h <<EOF
  2414. #define $ac_tr_hdr 1
  2415. EOF
  2416. else
  2417. echo "$ac_t""no" 1>&6
  2418. fi
  2419. done
  2420. for ac_hdr in libintl.h iconv.h
  2421. do
  2422. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2423. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2424. echo "configure:2963: checking for $ac_hdr" >&5
  2425. cat > conftest.$ac_ext <<EOF
  2426. #line 2966 "configure"
  2427. #include "confdefs.h"
  2428. #include <$ac_hdr>
  2429. EOF
  2430. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2431. { (eval echo configure:2971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2432. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2433. if test -z "$ac_err"; then
  2434. rm -rf conftest*
  2435. eval "ac_cv_header_$ac_safe=yes"
  2436. else
  2437. echo "$ac_err" >&5
  2438. echo "configure: failed program was:" >&5
  2439. cat conftest.$ac_ext >&5
  2440. rm -rf conftest*
  2441. eval "ac_cv_header_$ac_safe=no"
  2442. fi
  2443. rm -f conftest*
  2444. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2445. echo "$ac_t""yes" 1>&6
  2446. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2447. cat >> confdefs.h <<EOF
  2448. #define $ac_tr_hdr 1
  2449. EOF
  2450. else
  2451. echo "$ac_t""no" 1>&6
  2452. fi
  2453. done
  2454. for ac_hdr in langinfo.h
  2455. do
  2456. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2457. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2458. echo "configure:3000: checking for $ac_hdr" >&5
  2459. cat > conftest.$ac_ext <<EOF
  2460. #line 3003 "configure"
  2461. #include "confdefs.h"
  2462. #include <$ac_hdr>
  2463. EOF
  2464. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2465. { (eval echo configure:3008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2466. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2467. if test -z "$ac_err"; then
  2468. rm -rf conftest*
  2469. eval "ac_cv_header_$ac_safe=yes"
  2470. else
  2471. echo "$ac_err" >&5
  2472. echo "configure: failed program was:" >&5
  2473. cat conftest.$ac_ext >&5
  2474. rm -rf conftest*
  2475. eval "ac_cv_header_$ac_safe=no"
  2476. fi
  2477. rm -f conftest*
  2478. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2479. echo "$ac_t""yes" 1>&6
  2480. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2481. cat >> confdefs.h <<EOF
  2482. #define $ac_tr_hdr 1
  2483. EOF
  2484. else
  2485. echo "$ac_t""no" 1>&6
  2486. fi
  2487. done
  2488. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  2489. echo "configure:3034: checking whether time.h and sys/time.h may both be included" >&5
  2490. cat > conftest.$ac_ext <<EOF
  2491. #line 3037 "configure"
  2492. #include "confdefs.h"
  2493. #include <sys/types.h>
  2494. #include <sys/time.h>
  2495. #include <time.h>
  2496. int main() {
  2497. struct tm *tp;
  2498. ; return 0; }
  2499. EOF
  2500. if { (eval echo configure:3046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2501. rm -rf conftest*
  2502. ac_cv_header_time=yes
  2503. else
  2504. echo "configure: failed program was:" >&5
  2505. cat conftest.$ac_ext >&5
  2506. rm -rf conftest*
  2507. ac_cv_header_time=no
  2508. fi
  2509. rm -f conftest*
  2510. echo "$ac_t""$ac_cv_header_time" 1>&6
  2511. if test $ac_cv_header_time = yes; then
  2512. cat >> confdefs.h <<\EOF
  2513. #define TIME_WITH_SYS_TIME 1
  2514. EOF
  2515. fi
  2516. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  2517. echo "configure:3066: checking for off_t" >&5
  2518. cat > conftest.$ac_ext <<EOF
  2519. #line 3069 "configure"
  2520. #include "confdefs.h"
  2521. #include <sys/types.h>
  2522. #if STDC_HEADERS
  2523. #include <stdlib.h>
  2524. #include <stddef.h>
  2525. #endif
  2526. EOF
  2527. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2528. egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2529. rm -rf conftest*
  2530. ac_cv_type_off_t=yes
  2531. else
  2532. rm -rf conftest*
  2533. ac_cv_type_off_t=no
  2534. fi
  2535. rm -f conftest*
  2536. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  2537. if test $ac_cv_type_off_t = no; then
  2538. cat >> confdefs.h <<\EOF
  2539. #define off_t long
  2540. EOF
  2541. fi
  2542. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  2543. echo "configure:3096: checking for uid_t in sys/types.h" >&5
  2544. cat > conftest.$ac_ext <<EOF
  2545. #line 3099 "configure"
  2546. #include "confdefs.h"
  2547. #include <sys/types.h>
  2548. EOF
  2549. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2550. egrep "uid_t" >/dev/null 2>&1; then
  2551. rm -rf conftest*
  2552. ac_cv_type_uid_t=yes
  2553. else
  2554. rm -rf conftest*
  2555. ac_cv_type_uid_t=no
  2556. fi
  2557. rm -f conftest*
  2558. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  2559. if test $ac_cv_type_uid_t = no; then
  2560. cat >> confdefs.h <<\EOF
  2561. #define uid_t int
  2562. EOF
  2563. cat >> confdefs.h <<\EOF
  2564. #define gid_t int
  2565. EOF
  2566. fi
  2567. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  2568. echo "configure:3127: checking return type of signal handlers" >&5
  2569. cat > conftest.$ac_ext <<EOF
  2570. #line 3130 "configure"
  2571. #include "confdefs.h"
  2572. #include <sys/types.h>
  2573. #include <signal.h>
  2574. #ifdef signal
  2575. #undef signal
  2576. #endif
  2577. #ifdef __cplusplus
  2578. extern "C" void (*signal (int, void (*)(int)))(int);
  2579. #else
  2580. void (*signal ()) ();
  2581. #endif
  2582. int main() {
  2583. int i;
  2584. ; return 0; }
  2585. EOF
  2586. if { (eval echo configure:3147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2587. rm -rf conftest*
  2588. ac_cv_type_signal=void
  2589. else
  2590. echo "configure: failed program was:" >&5
  2591. cat conftest.$ac_ext >&5
  2592. rm -rf conftest*
  2593. ac_cv_type_signal=int
  2594. fi
  2595. rm -f conftest*
  2596. echo "$ac_t""$ac_cv_type_signal" 1>&6
  2597. cat >> confdefs.h <<EOF
  2598. #define RETSIGTYPE $ac_cv_type_signal
  2599. EOF
  2600. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  2601. echo "configure:3165: checking for Cygwin environment" >&5
  2602. cat > conftest.$ac_ext <<EOF
  2603. #line 3168 "configure"
  2604. #include "confdefs.h"
  2605. int main() {
  2606. #ifndef __CYGWIN__
  2607. #define __CYGWIN__ __CYGWIN32__
  2608. #endif
  2609. return __CYGWIN__;
  2610. ; return 0; }
  2611. EOF
  2612. if { (eval echo configure:3179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2613. rm -rf conftest*
  2614. ac_cv_cygwin=yes
  2615. else
  2616. echo "configure: failed program was:" >&5
  2617. cat conftest.$ac_ext >&5
  2618. rm -rf conftest*
  2619. ac_cv_cygwin=no
  2620. fi
  2621. rm -f conftest*
  2622. rm -f conftest*
  2623. echo "$ac_t""$ac_cv_cygwin" 1>&6
  2624. CYGWIN=
  2625. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  2626. for ac_func in ftime gethostname gettimeofday lseek nice time uname
  2627. do
  2628. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2629. echo "configure:3197: checking for $ac_func" >&5
  2630. cat > conftest.$ac_ext <<EOF
  2631. #line 3200 "configure"
  2632. #include "confdefs.h"
  2633. /* System header to define __stub macros and hopefully few prototypes,
  2634. which can conflict with char $ac_func(); below. */
  2635. #include <assert.h>
  2636. /* Override any gcc2 internal prototype to avoid an error. */
  2637. /* We use char because int might match the return type of a gcc2
  2638. builtin and then its argument prototype would still apply. */
  2639. char $ac_func();
  2640. int main() {
  2641. /* The GNU C library defines this for functions which it implements
  2642. to always fail with ENOSYS. Some functions are actually named
  2643. something starting with __ and the normal name is an alias. */
  2644. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2645. choke me
  2646. #else
  2647. $ac_func();
  2648. #endif
  2649. ; return 0; }
  2650. EOF
  2651. if { (eval echo configure:3223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2652. rm -rf conftest*
  2653. eval "ac_cv_func_$ac_func=yes"
  2654. else
  2655. echo "configure: failed program was:" >&5
  2656. cat conftest.$ac_ext >&5
  2657. rm -rf conftest*
  2658. eval "ac_cv_func_$ac_func=no"
  2659. fi
  2660. rm -f conftest*
  2661. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2662. echo "$ac_t""yes" 1>&6
  2663. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2664. cat >> confdefs.h <<EOF
  2665. #define $ac_tr_func 1
  2666. EOF
  2667. else
  2668. echo "$ac_t""no" 1>&6
  2669. fi
  2670. done
  2671. for ac_func in seteuid setpriority setreuid setruid
  2672. do
  2673. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2674. echo "configure:3249: checking for $ac_func" >&5
  2675. cat > conftest.$ac_ext <<EOF
  2676. #line 3252 "configure"
  2677. #include "confdefs.h"
  2678. /* System header to define __stub macros and hopefully few prototypes,
  2679. which can conflict with char $ac_func(); below. */
  2680. #include <assert.h>
  2681. /* Override any gcc2 internal prototype to avoid an error. */
  2682. /* We use char because int might match the return type of a gcc2
  2683. builtin and then its argument prototype would still apply. */
  2684. char $ac_func();
  2685. int main() {
  2686. /* The GNU C library defines this for functions which it implements
  2687. to always fail with ENOSYS. Some functions are actually named
  2688. something starting with __ and the normal name is an alias. */
  2689. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2690. choke me
  2691. #else
  2692. $ac_func();
  2693. #endif
  2694. ; return 0; }
  2695. EOF
  2696. if { (eval echo configure:3275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2697. rm -rf conftest*
  2698. eval "ac_cv_func_$ac_func=yes"
  2699. else
  2700. echo "configure: failed program was:" >&5
  2701. cat conftest.$ac_ext >&5
  2702. rm -rf conftest*
  2703. eval "ac_cv_func_$ac_func=no"
  2704. fi
  2705. rm -f conftest*
  2706. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2707. echo "$ac_t""yes" 1>&6
  2708. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2709. cat >> confdefs.h <<EOF
  2710. #define $ac_tr_func 1
  2711. EOF
  2712. else
  2713. echo "$ac_t""no" 1>&6
  2714. fi
  2715. done
  2716. for ac_func in drand48
  2717. do
  2718. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2719. echo "configure:3301: checking for $ac_func" >&5
  2720. cat > conftest.$ac_ext <<EOF
  2721. #line 3304 "configure"
  2722. #include "confdefs.h"
  2723. /* System header to define __stub macros and hopefully few prototypes,
  2724. which can conflict with char $ac_func(); below. */
  2725. #include <assert.h>
  2726. /* Override any gcc2 internal prototype to avoid an error. */
  2727. /* We use char because int might match the return type of a gcc2
  2728. builtin and then its argument prototype would still apply. */
  2729. char $ac_func();
  2730. int main() {
  2731. /* The GNU C library defines this for functions which it implements
  2732. to always fail with ENOSYS. Some functions are actually named
  2733. something starting with __ and the normal name is an alias. */
  2734. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2735. choke me
  2736. #else
  2737. $ac_func();
  2738. #endif
  2739. ; return 0; }
  2740. EOF
  2741. if { (eval echo configure:3327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2742. rm -rf conftest*
  2743. eval "ac_cv_func_$ac_func=yes"
  2744. else
  2745. echo "configure: failed program was:" >&5
  2746. cat conftest.$ac_ext >&5
  2747. rm -rf conftest*
  2748. eval "ac_cv_func_$ac_func=no"
  2749. fi
  2750. rm -f conftest*
  2751. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2752. echo "$ac_t""yes" 1>&6
  2753. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2754. cat >> confdefs.h <<EOF
  2755. #define $ac_tr_func 1
  2756. EOF
  2757. else
  2758. echo "$ac_t""no" 1>&6
  2759. fi
  2760. done
  2761. for ac_func in putenv setenv
  2762. do
  2763. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2764. echo "configure:3353: checking for $ac_func" >&5
  2765. cat > conftest.$ac_ext <<EOF
  2766. #line 3356 "configure"
  2767. #include "confdefs.h"
  2768. /* System header to define __stub macros and hopefully few prototypes,
  2769. which can conflict with char $ac_func(); below. */
  2770. #include <assert.h>
  2771. /* Override any gcc2 internal prototype to avoid an error. */
  2772. /* We use char because int might match the return type of a gcc2
  2773. builtin and then its argument prototype would still apply. */
  2774. char $ac_func();
  2775. int main() {
  2776. /* The GNU C library defines this for functions which it implements
  2777. to always fail with ENOSYS. Some functions are actually named
  2778. something starting with __ and the normal name is an alias. */
  2779. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2780. choke me
  2781. #else
  2782. $ac_func();
  2783. #endif
  2784. ; return 0; }
  2785. EOF
  2786. if { (eval echo configure:3379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2787. rm -rf conftest*
  2788. eval "ac_cv_func_$ac_func=yes"
  2789. else
  2790. echo "configure: failed program was:" >&5
  2791. cat conftest.$ac_ext >&5
  2792. rm -rf conftest*
  2793. eval "ac_cv_func_$ac_func=no"
  2794. fi
  2795. rm -f conftest*
  2796. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2797. echo "$ac_t""yes" 1>&6
  2798. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2799. cat >> confdefs.h <<EOF
  2800. #define $ac_tr_func 1
  2801. EOF
  2802. else
  2803. echo "$ac_t""no" 1>&6
  2804. fi
  2805. done
  2806. for ac_func in nanosleep
  2807. do
  2808. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2809. echo "configure:3405: checking for $ac_func" >&5
  2810. cat > conftest.$ac_ext <<EOF
  2811. #line 3408 "configure"
  2812. #include "confdefs.h"
  2813. /* System header to define __stub macros and hopefully few prototypes,
  2814. which can conflict with char $ac_func(); below. */
  2815. #include <assert.h>
  2816. /* Override any gcc2 internal prototype to avoid an error. */
  2817. /* We use char because int might match the return type of a gcc2
  2818. builtin and then its argument prototype would still apply. */
  2819. char $ac_func();
  2820. int main() {
  2821. /* The GNU C library defines this for functions which it implements
  2822. to always fail with ENOSYS. Some functions are actually named
  2823. something starting with __ and the normal name is an alias. */
  2824. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2825. choke me
  2826. #else
  2827. $ac_func();
  2828. #endif
  2829. ; return 0; }
  2830. EOF
  2831. if { (eval echo configure:3431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2832. rm -rf conftest*
  2833. eval "ac_cv_func_$ac_func=yes"
  2834. else
  2835. echo "configure: failed program was:" >&5
  2836. cat conftest.$ac_ext >&5
  2837. rm -rf conftest*
  2838. eval "ac_cv_func_$ac_func=no"
  2839. fi
  2840. rm -f conftest*
  2841. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2842. echo "$ac_t""yes" 1>&6
  2843. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2844. cat >> confdefs.h <<EOF
  2845. #define $ac_tr_func 1
  2846. EOF
  2847. else
  2848. echo "$ac_t""no" 1>&6
  2849. fi
  2850. done
  2851. if test "$cross_compiling" != "yes" ; then
  2852. echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
  2853. echo "configure:3456: checking whether setpgrp takes no argument" >&5
  2854. if test "$cross_compiling" = yes; then
  2855. { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
  2856. else
  2857. cat > conftest.$ac_ext <<EOF
  2858. #line 3462 "configure"
  2859. #include "confdefs.h"
  2860. #ifdef HAVE_UNISTD_H
  2861. #include <unistd.h>
  2862. #endif
  2863. /*
  2864. * If this system has a BSD-style setpgrp, which takes arguments, exit
  2865. * successfully.
  2866. */
  2867. main()
  2868. {
  2869. if (setpgrp(1,1) == -1)
  2870. exit(0);
  2871. else
  2872. exit(1);
  2873. }
  2874. EOF
  2875. if { (eval echo configure:3482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2876. then
  2877. ac_cv_func_setpgrp_void=no
  2878. else
  2879. echo "configure: failed program was:" >&5
  2880. cat conftest.$ac_ext >&5
  2881. rm -fr conftest*
  2882. ac_cv_func_setpgrp_void=yes
  2883. fi
  2884. rm -fr conftest*
  2885. fi
  2886. echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
  2887. if test $ac_cv_func_setpgrp_void = yes; then
  2888. cat >> confdefs.h <<\EOF
  2889. #define SETPGRP_VOID 1
  2890. EOF
  2891. fi
  2892. else
  2893. CROSS_COMPILING=1
  2894. fi
  2895. echo $ac_n "checking for long long int""... $ac_c" 1>&6
  2896. echo "configure:3510: checking for long long int" >&5
  2897. cat > conftest.$ac_ext <<EOF
  2898. #line 3512 "configure"
  2899. #include "confdefs.h"
  2900. int main() {
  2901. long long int x;
  2902. ; return 0; }
  2903. EOF
  2904. if { (eval echo configure:3519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2905. rm -rf conftest*
  2906. echo "$ac_t""yes" 1>&6
  2907. cat >> confdefs.h <<\EOF
  2908. #define HAVE_LONG_LONG_INT 1
  2909. EOF
  2910. else
  2911. echo "configure: failed program was:" >&5
  2912. cat conftest.$ac_ext >&5
  2913. rm -rf conftest*
  2914. echo "$ac_t""no" 1>&6
  2915. fi
  2916. rm -f conftest*
  2917. echo $ac_n "checking for W11""... $ac_c" 1>&6
  2918. echo "configure:3539: checking for W11" >&5
  2919. case "$enable_w11" in
  2920. yes|no) echo "$ac_t"""$enable_w11"" 1>&6 ;;
  2921. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  2922. esac
  2923. USE_X11=
  2924. USE_W11=
  2925. XLIB=
  2926. XTLIB=
  2927. if test "$enable_w11" = "yes" ; then
  2928. X_CFLAGS=-I${SRCDIR}/display/drivers/windows/libW11
  2929. X_LIBS='-L$(LIBDIR)'
  2930. USE_W11="1"
  2931. USE_X11="1"
  2932. XLIB=-lX11
  2933. CFLAGS="$CFLAGS -D__W98__"
  2934. else
  2935. # If we find X, set shell vars x_includes and x_libraries to the
  2936. # paths, otherwise set no_x=yes.
  2937. # Uses ac_ vars as temps to allow command line to override cache and checks.
  2938. # --without-x overrides everything else, but does not touch the cache.
  2939. echo $ac_n "checking for X""... $ac_c" 1>&6
  2940. echo "configure:3567: checking for X" >&5
  2941. # Check whether --with-x or --without-x was given.
  2942. if test "${with_x+set}" = set; then
  2943. withval="$with_x"
  2944. :
  2945. fi
  2946. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  2947. if test "x$with_x" = xno; then
  2948. # The user explicitly disabled X.
  2949. have_x=disabled
  2950. else
  2951. if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  2952. # Both variables are already set.
  2953. have_x=yes
  2954. else
  2955. # One or both of the vars are not set, and there is no cached value.
  2956. ac_x_includes=NO ac_x_libraries=NO
  2957. rm -fr conftestdir
  2958. if mkdir conftestdir; then
  2959. cd conftestdir
  2960. # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  2961. cat > Imakefile <<'EOF'
  2962. acfindx:
  2963. @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  2964. EOF
  2965. if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  2966. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2967. eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  2968. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  2969. for ac_extension in a so sl; do
  2970. if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  2971. test -f $ac_im_libdir/libX11.$ac_extension; then
  2972. ac_im_usrlibdir=$ac_im_libdir; break
  2973. fi
  2974. done
  2975. # Screen out bogus values from the imake configuration. They are
  2976. # bogus both because they are the default anyway, and because
  2977. # using them would break gcc on systems where it needs fixed includes.
  2978. case "$ac_im_incroot" in
  2979. /usr/include) ;;
  2980. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
  2981. esac
  2982. case "$ac_im_usrlibdir" in
  2983. /usr/lib | /lib) ;;
  2984. *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
  2985. esac
  2986. fi
  2987. cd ..
  2988. rm -fr conftestdir
  2989. fi
  2990. if test "$ac_x_includes" = NO; then
  2991. # Guess where to find include files, by looking for this one X11 .h file.
  2992. test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  2993. # First, try using that file with no special directory specified.
  2994. cat > conftest.$ac_ext <<EOF
  2995. #line 3627 "configure"
  2996. #include "confdefs.h"
  2997. #include <$x_direct_test_include>
  2998. EOF
  2999. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3000. { (eval echo configure:3632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3001. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3002. if test -z "$ac_err"; then
  3003. rm -rf conftest*
  3004. # We can compile using X headers with no special include directory.
  3005. ac_x_includes=
  3006. else
  3007. echo "$ac_err" >&5
  3008. echo "configure: failed program was:" >&5
  3009. cat conftest.$ac_ext >&5
  3010. rm -rf conftest*
  3011. # Look for the header file in a standard set of common directories.
  3012. # Check X11 before X11Rn because it is often a symlink to the current release.
  3013. for ac_dir in \
  3014. /usr/X11/include \
  3015. /usr/X11R6/include \
  3016. /usr/X11R5/include \
  3017. /usr/X11R4/include \
  3018. \
  3019. /usr/include/X11 \
  3020. /usr/include/X11R6 \
  3021. /usr/include/X11R5 \
  3022. /usr/include/X11R4 \
  3023. \
  3024. /usr/local/X11/include \
  3025. /usr/local/X11R6/include \
  3026. /usr/local/X11R5/include \
  3027. /usr/local/X11R4/include \
  3028. \
  3029. /usr/local/include/X11 \
  3030. /usr/local/include/X11R6 \
  3031. /usr/local/include/X11R5 \
  3032. /usr/local/include/X11R4 \
  3033. \
  3034. /usr/X386/include \
  3035. /usr/x386/include \
  3036. /usr/XFree86/include/X11 \
  3037. \
  3038. /usr/include \
  3039. /usr/local/include \
  3040. /usr/unsupported/include \
  3041. /usr/athena/include \
  3042. /usr/local/x11r5/include \
  3043. /usr/lpp/Xamples/include \
  3044. \
  3045. /usr/openwin/include \
  3046. /usr/openwin/share/include \
  3047. ; \
  3048. do
  3049. if test -r "$ac_dir/$x_direct_test_include"; then
  3050. ac_x_includes=$ac_dir
  3051. break
  3052. fi
  3053. done
  3054. fi
  3055. rm -f conftest*
  3056. fi # $ac_x_includes = NO
  3057. if test "$ac_x_libraries" = NO; then
  3058. # Check for the libraries.
  3059. test -z "$x_direct_test_library" && x_direct_test_library=Xt
  3060. test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  3061. # See if we find them without any special options.
  3062. # Don't add to $LIBS permanently.
  3063. ac_save_LIBS="$LIBS"
  3064. LIBS="-l$x_direct_test_library $LIBS"
  3065. cat > conftest.$ac_ext <<EOF
  3066. #line 3701 "configure"
  3067. #include "confdefs.h"
  3068. int main() {
  3069. ${x_direct_test_function}()
  3070. ; return 0; }
  3071. EOF
  3072. if { (eval echo configure:3708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3073. rm -rf conftest*
  3074. LIBS="$ac_save_LIBS"
  3075. # We can link X programs with no special library path.
  3076. ac_x_libraries=
  3077. else
  3078. echo "configure: failed program was:" >&5
  3079. cat conftest.$ac_ext >&5
  3080. rm -rf conftest*
  3081. LIBS="$ac_save_LIBS"
  3082. # First see if replacing the include by lib works.
  3083. # Check X11 before X11Rn because it is often a symlink to the current release.
  3084. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  3085. /usr/X11/lib \
  3086. /usr/X11R6/lib \
  3087. /usr/X11R5/lib \
  3088. /usr/X11R4/lib \
  3089. \
  3090. /usr/lib/X11 \
  3091. /usr/lib/X11R6 \
  3092. /usr/lib/X11R5 \
  3093. /usr/lib/X11R4 \
  3094. \
  3095. /usr/local/X11/lib \
  3096. /usr/local/X11R6/lib \
  3097. /usr/local/X11R5/lib \
  3098. /usr/local/X11R4/lib \
  3099. \
  3100. /usr/local/lib/X11 \
  3101. /usr/local/lib/X11R6 \
  3102. /usr/local/lib/X11R5 \
  3103. /usr/local/lib/X11R4 \
  3104. \
  3105. /usr/X386/lib \
  3106. /usr/x386/lib \
  3107. /usr/XFree86/lib/X11 \
  3108. \
  3109. /usr/lib \
  3110. /usr/local/lib \
  3111. /usr/unsupported/lib \
  3112. /usr/athena/lib \
  3113. /usr/local/x11r5/lib \
  3114. /usr/lpp/Xamples/lib \
  3115. /lib/usr/lib/X11 \
  3116. \
  3117. /usr/openwin/lib \
  3118. /usr/openwin/share/lib \
  3119. ; \
  3120. do
  3121. for ac_extension in a so sl; do
  3122. if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  3123. ac_x_libraries=$ac_dir
  3124. break 2
  3125. fi
  3126. done
  3127. done
  3128. fi
  3129. rm -f conftest*
  3130. fi # $ac_x_libraries = NO
  3131. if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
  3132. # Didn't find X anywhere. Cache the known absence of X.
  3133. ac_cv_have_x="have_x=no"
  3134. else
  3135. # Record where we found X for the cache.
  3136. ac_cv_have_x="have_x=yes \
  3137. ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  3138. fi
  3139. fi
  3140. eval "$ac_cv_have_x"
  3141. fi # $with_x != no
  3142. if test "$have_x" != yes; then
  3143. echo "$ac_t""$have_x" 1>&6
  3144. no_x=yes
  3145. else
  3146. # If each of the values was on the command line, it overrides each guess.
  3147. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  3148. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  3149. # Update the cache value to reflect the command line values.
  3150. ac_cv_have_x="have_x=yes \
  3151. ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  3152. echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
  3153. fi
  3154. if test "$no_x" = yes; then
  3155. # Not all programs may use this symbol, but it does not hurt to define it.
  3156. cat >> confdefs.h <<\EOF
  3157. #define X_DISPLAY_MISSING 1
  3158. EOF
  3159. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  3160. else
  3161. if test -n "$x_includes"; then
  3162. X_CFLAGS="$X_CFLAGS -I$x_includes"
  3163. fi
  3164. # It would also be nice to do this for all -L options, not just this one.
  3165. if test -n "$x_libraries"; then
  3166. X_LIBS="$X_LIBS -L$x_libraries"
  3167. # For Solaris; some versions of Sun CC require a space after -R and
  3168. # others require no space. Words are not sufficient . . . .
  3169. case "`(uname -sr) 2>/dev/null`" in
  3170. "SunOS 5"*)
  3171. echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
  3172. echo "configure:3813: checking whether -R must be followed by a space" >&5
  3173. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
  3174. cat > conftest.$ac_ext <<EOF
  3175. #line 3816 "configure"
  3176. #include "confdefs.h"
  3177. int main() {
  3178. ; return 0; }
  3179. EOF
  3180. if { (eval echo configure:3823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3181. rm -rf conftest*
  3182. ac_R_nospace=yes
  3183. else
  3184. echo "configure: failed program was:" >&5
  3185. cat conftest.$ac_ext >&5
  3186. rm -rf conftest*
  3187. ac_R_nospace=no
  3188. fi
  3189. rm -f conftest*
  3190. if test $ac_R_nospace = yes; then
  3191. echo "$ac_t""no" 1>&6
  3192. X_LIBS="$X_LIBS -R$x_libraries"
  3193. else
  3194. LIBS="$ac_xsave_LIBS -R $x_libraries"
  3195. cat > conftest.$ac_ext <<EOF
  3196. #line 3839 "configure"
  3197. #include "confdefs.h"
  3198. int main() {
  3199. ; return 0; }
  3200. EOF
  3201. if { (eval echo configure:3846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3202. rm -rf conftest*
  3203. ac_R_space=yes
  3204. else
  3205. echo "configure: failed program was:" >&5
  3206. cat conftest.$ac_ext >&5
  3207. rm -rf conftest*
  3208. ac_R_space=no
  3209. fi
  3210. rm -f conftest*
  3211. if test $ac_R_space = yes; then
  3212. echo "$ac_t""yes" 1>&6
  3213. X_LIBS="$X_LIBS -R $x_libraries"
  3214. else
  3215. echo "$ac_t""neither works" 1>&6
  3216. fi
  3217. fi
  3218. LIBS="$ac_xsave_LIBS"
  3219. esac
  3220. fi
  3221. # Check for system-dependent libraries X programs must link with.
  3222. # Do this before checking for the system-independent R6 libraries
  3223. # (-lICE), since we may need -lsocket or whatever for X linking.
  3224. if test "$ISC" = yes; then
  3225. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  3226. else
  3227. # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  3228. # libraries were built with DECnet support. And karl@cs.umb.edu says
  3229. # the Alpha needs dnet_stub (dnet does not exist).
  3230. echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
  3231. echo "configure:3878: checking for dnet_ntoa in -ldnet" >&5
  3232. ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  3233. ac_save_LIBS="$LIBS"
  3234. LIBS="-ldnet $LIBS"
  3235. cat > conftest.$ac_ext <<EOF
  3236. #line 3884 "configure"
  3237. #include "confdefs.h"
  3238. /* Override any gcc2 internal prototype to avoid an error. */
  3239. /* We use char because int might match the return type of a gcc2
  3240. builtin and then its argument prototype would still apply. */
  3241. char dnet_ntoa();
  3242. int main() {
  3243. dnet_ntoa()
  3244. ; return 0; }
  3245. EOF
  3246. if { (eval echo configure:3895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3247. rm -rf conftest*
  3248. eval "ac_cv_lib_$ac_lib_var=yes"
  3249. else
  3250. echo "configure: failed program was:" >&5
  3251. cat conftest.$ac_ext >&5
  3252. rm -rf conftest*
  3253. eval "ac_cv_lib_$ac_lib_var=no"
  3254. fi
  3255. rm -f conftest*
  3256. LIBS="$ac_save_LIBS"
  3257. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3258. echo "$ac_t""yes" 1>&6
  3259. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  3260. else
  3261. echo "$ac_t""no" 1>&6
  3262. fi
  3263. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  3264. echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
  3265. echo "configure:3916: checking for dnet_ntoa in -ldnet_stub" >&5
  3266. ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  3267. ac_save_LIBS="$LIBS"
  3268. LIBS="-ldnet_stub $LIBS"
  3269. cat > conftest.$ac_ext <<EOF
  3270. #line 3922 "configure"
  3271. #include "confdefs.h"
  3272. /* Override any gcc2 internal prototype to avoid an error. */
  3273. /* We use char because int might match the return type of a gcc2
  3274. builtin and then its argument prototype would still apply. */
  3275. char dnet_ntoa();
  3276. int main() {
  3277. dnet_ntoa()
  3278. ; return 0; }
  3279. EOF
  3280. if { (eval echo configure:3933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3281. rm -rf conftest*
  3282. eval "ac_cv_lib_$ac_lib_var=yes"
  3283. else
  3284. echo "configure: failed program was:" >&5
  3285. cat conftest.$ac_ext >&5
  3286. rm -rf conftest*
  3287. eval "ac_cv_lib_$ac_lib_var=no"
  3288. fi
  3289. rm -f conftest*
  3290. LIBS="$ac_save_LIBS"
  3291. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3292. echo "$ac_t""yes" 1>&6
  3293. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  3294. else
  3295. echo "$ac_t""no" 1>&6
  3296. fi
  3297. fi
  3298. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  3299. # to get the SysV transport functions.
  3300. # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
  3301. # needs -lnsl.
  3302. # The nsl library prevents programs from opening the X display
  3303. # on Irix 5.2, according to dickey@clark.net.
  3304. echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
  3305. echo "configure:3961: checking for gethostbyname" >&5
  3306. cat > conftest.$ac_ext <<EOF
  3307. #line 3964 "configure"
  3308. #include "confdefs.h"
  3309. /* System header to define __stub macros and hopefully few prototypes,
  3310. which can conflict with char gethostbyname(); below. */
  3311. #include <assert.h>
  3312. /* Override any gcc2 internal prototype to avoid an error. */
  3313. /* We use char because int might match the return type of a gcc2
  3314. builtin and then its argument prototype would still apply. */
  3315. char gethostbyname();
  3316. int main() {
  3317. /* The GNU C library defines this for functions which it implements
  3318. to always fail with ENOSYS. Some functions are actually named
  3319. something starting with __ and the normal name is an alias. */
  3320. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  3321. choke me
  3322. #else
  3323. gethostbyname();
  3324. #endif
  3325. ; return 0; }
  3326. EOF
  3327. if { (eval echo configure:3987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3328. rm -rf conftest*
  3329. eval "ac_cv_func_gethostbyname=yes"
  3330. else
  3331. echo "configure: failed program was:" >&5
  3332. cat conftest.$ac_ext >&5
  3333. rm -rf conftest*
  3334. eval "ac_cv_func_gethostbyname=no"
  3335. fi
  3336. rm -f conftest*
  3337. if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  3338. echo "$ac_t""yes" 1>&6
  3339. :
  3340. else
  3341. echo "$ac_t""no" 1>&6
  3342. fi
  3343. if test $ac_cv_func_gethostbyname = no; then
  3344. echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  3345. echo "configure:4007: checking for gethostbyname in -lnsl" >&5
  3346. ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  3347. ac_save_LIBS="$LIBS"
  3348. LIBS="-lnsl $LIBS"
  3349. cat > conftest.$ac_ext <<EOF
  3350. #line 4013 "configure"
  3351. #include "confdefs.h"
  3352. /* Override any gcc2 internal prototype to avoid an error. */
  3353. /* We use char because int might match the return type of a gcc2
  3354. builtin and then its argument prototype would still apply. */
  3355. char gethostbyname();
  3356. int main() {
  3357. gethostbyname()
  3358. ; return 0; }
  3359. EOF
  3360. if { (eval echo configure:4024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3361. rm -rf conftest*
  3362. eval "ac_cv_lib_$ac_lib_var=yes"
  3363. else
  3364. echo "configure: failed program was:" >&5
  3365. cat conftest.$ac_ext >&5
  3366. rm -rf conftest*
  3367. eval "ac_cv_lib_$ac_lib_var=no"
  3368. fi
  3369. rm -f conftest*
  3370. LIBS="$ac_save_LIBS"
  3371. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3372. echo "$ac_t""yes" 1>&6
  3373. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  3374. else
  3375. echo "$ac_t""no" 1>&6
  3376. fi
  3377. fi
  3378. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  3379. # socket/setsockopt and other routines are undefined under SCO ODT
  3380. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  3381. # on later versions), says simon@lia.di.epfl.ch: it contains
  3382. # gethostby* variants that don't use the nameserver (or something).
  3383. # -lsocket must be given before -lnsl if both are needed.
  3384. # We assume that if connect needs -lnsl, so does gethostbyname.
  3385. echo $ac_n "checking for connect""... $ac_c" 1>&6
  3386. echo "configure:4053: checking for connect" >&5
  3387. cat > conftest.$ac_ext <<EOF
  3388. #line 4056 "configure"
  3389. #include "confdefs.h"
  3390. /* System header to define __stub macros and hopefully few prototypes,
  3391. which can conflict with char connect(); below. */
  3392. #include <assert.h>
  3393. /* Override any gcc2 internal prototype to avoid an error. */
  3394. /* We use char because int might match the return type of a gcc2
  3395. builtin and then its argument prototype would still apply. */
  3396. char connect();
  3397. int main() {
  3398. /* The GNU C library defines this for functions which it implements
  3399. to always fail with ENOSYS. Some functions are actually named
  3400. something starting with __ and the normal name is an alias. */
  3401. #if defined (__stub_connect) || defined (__stub___connect)
  3402. choke me
  3403. #else
  3404. connect();
  3405. #endif
  3406. ; return 0; }
  3407. EOF
  3408. if { (eval echo configure:4079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3409. rm -rf conftest*
  3410. eval "ac_cv_func_connect=yes"
  3411. else
  3412. echo "configure: failed program was:" >&5
  3413. cat conftest.$ac_ext >&5
  3414. rm -rf conftest*
  3415. eval "ac_cv_func_connect=no"
  3416. fi
  3417. rm -f conftest*
  3418. if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  3419. echo "$ac_t""yes" 1>&6
  3420. :
  3421. else
  3422. echo "$ac_t""no" 1>&6
  3423. fi
  3424. if test $ac_cv_func_connect = no; then
  3425. echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
  3426. echo "configure:4099: checking for connect in -lsocket" >&5
  3427. ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
  3428. ac_save_LIBS="$LIBS"
  3429. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  3430. cat > conftest.$ac_ext <<EOF
  3431. #line 4105 "configure"
  3432. #include "confdefs.h"
  3433. /* Override any gcc2 internal prototype to avoid an error. */
  3434. /* We use char because int might match the return type of a gcc2
  3435. builtin and then its argument prototype would still apply. */
  3436. char connect();
  3437. int main() {
  3438. connect()
  3439. ; return 0; }
  3440. EOF
  3441. if { (eval echo configure:4116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3442. rm -rf conftest*
  3443. eval "ac_cv_lib_$ac_lib_var=yes"
  3444. else
  3445. echo "configure: failed program was:" >&5
  3446. cat conftest.$ac_ext >&5
  3447. rm -rf conftest*
  3448. eval "ac_cv_lib_$ac_lib_var=no"
  3449. fi
  3450. rm -f conftest*
  3451. LIBS="$ac_save_LIBS"
  3452. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3453. echo "$ac_t""yes" 1>&6
  3454. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  3455. else
  3456. echo "$ac_t""no" 1>&6
  3457. fi
  3458. fi
  3459. # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
  3460. echo $ac_n "checking for remove""... $ac_c" 1>&6
  3461. echo "configure:4139: checking for remove" >&5
  3462. cat > conftest.$ac_ext <<EOF
  3463. #line 4142 "configure"
  3464. #include "confdefs.h"
  3465. /* System header to define __stub macros and hopefully few prototypes,
  3466. which can conflict with char remove(); below. */
  3467. #include <assert.h>
  3468. /* Override any gcc2 internal prototype to avoid an error. */
  3469. /* We use char because int might match the return type of a gcc2
  3470. builtin and then its argument prototype would still apply. */
  3471. char remove();
  3472. int main() {
  3473. /* The GNU C library defines this for functions which it implements
  3474. to always fail with ENOSYS. Some functions are actually named
  3475. something starting with __ and the normal name is an alias. */
  3476. #if defined (__stub_remove) || defined (__stub___remove)
  3477. choke me
  3478. #else
  3479. remove();
  3480. #endif
  3481. ; return 0; }
  3482. EOF
  3483. if { (eval echo configure:4165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3484. rm -rf conftest*
  3485. eval "ac_cv_func_remove=yes"
  3486. else
  3487. echo "configure: failed program was:" >&5
  3488. cat conftest.$ac_ext >&5
  3489. rm -rf conftest*
  3490. eval "ac_cv_func_remove=no"
  3491. fi
  3492. rm -f conftest*
  3493. if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
  3494. echo "$ac_t""yes" 1>&6
  3495. :
  3496. else
  3497. echo "$ac_t""no" 1>&6
  3498. fi
  3499. if test $ac_cv_func_remove = no; then
  3500. echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
  3501. echo "configure:4185: checking for remove in -lposix" >&5
  3502. ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
  3503. ac_save_LIBS="$LIBS"
  3504. LIBS="-lposix $LIBS"
  3505. cat > conftest.$ac_ext <<EOF
  3506. #line 4191 "configure"
  3507. #include "confdefs.h"
  3508. /* Override any gcc2 internal prototype to avoid an error. */
  3509. /* We use char because int might match the return type of a gcc2
  3510. builtin and then its argument prototype would still apply. */
  3511. char remove();
  3512. int main() {
  3513. remove()
  3514. ; return 0; }
  3515. EOF
  3516. if { (eval echo configure:4202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3517. rm -rf conftest*
  3518. eval "ac_cv_lib_$ac_lib_var=yes"
  3519. else
  3520. echo "configure: failed program was:" >&5
  3521. cat conftest.$ac_ext >&5
  3522. rm -rf conftest*
  3523. eval "ac_cv_lib_$ac_lib_var=no"
  3524. fi
  3525. rm -f conftest*
  3526. LIBS="$ac_save_LIBS"
  3527. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3528. echo "$ac_t""yes" 1>&6
  3529. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  3530. else
  3531. echo "$ac_t""no" 1>&6
  3532. fi
  3533. fi
  3534. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  3535. echo $ac_n "checking for shmat""... $ac_c" 1>&6
  3536. echo "configure:4225: checking for shmat" >&5
  3537. cat > conftest.$ac_ext <<EOF
  3538. #line 4228 "configure"
  3539. #include "confdefs.h"
  3540. /* System header to define __stub macros and hopefully few prototypes,
  3541. which can conflict with char shmat(); below. */
  3542. #include <assert.h>
  3543. /* Override any gcc2 internal prototype to avoid an error. */
  3544. /* We use char because int might match the return type of a gcc2
  3545. builtin and then its argument prototype would still apply. */
  3546. char shmat();
  3547. int main() {
  3548. /* The GNU C library defines this for functions which it implements
  3549. to always fail with ENOSYS. Some functions are actually named
  3550. something starting with __ and the normal name is an alias. */
  3551. #if defined (__stub_shmat) || defined (__stub___shmat)
  3552. choke me
  3553. #else
  3554. shmat();
  3555. #endif
  3556. ; return 0; }
  3557. EOF
  3558. if { (eval echo configure:4251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3559. rm -rf conftest*
  3560. eval "ac_cv_func_shmat=yes"
  3561. else
  3562. echo "configure: failed program was:" >&5
  3563. cat conftest.$ac_ext >&5
  3564. rm -rf conftest*
  3565. eval "ac_cv_func_shmat=no"
  3566. fi
  3567. rm -f conftest*
  3568. if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
  3569. echo "$ac_t""yes" 1>&6
  3570. :
  3571. else
  3572. echo "$ac_t""no" 1>&6
  3573. fi
  3574. if test $ac_cv_func_shmat = no; then
  3575. echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
  3576. echo "configure:4271: checking for shmat in -lipc" >&5
  3577. ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
  3578. ac_save_LIBS="$LIBS"
  3579. LIBS="-lipc $LIBS"
  3580. cat > conftest.$ac_ext <<EOF
  3581. #line 4277 "configure"
  3582. #include "confdefs.h"
  3583. /* Override any gcc2 internal prototype to avoid an error. */
  3584. /* We use char because int might match the return type of a gcc2
  3585. builtin and then its argument prototype would still apply. */
  3586. char shmat();
  3587. int main() {
  3588. shmat()
  3589. ; return 0; }
  3590. EOF
  3591. if { (eval echo configure:4288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3592. rm -rf conftest*
  3593. eval "ac_cv_lib_$ac_lib_var=yes"
  3594. else
  3595. echo "configure: failed program was:" >&5
  3596. cat conftest.$ac_ext >&5
  3597. rm -rf conftest*
  3598. eval "ac_cv_lib_$ac_lib_var=no"
  3599. fi
  3600. rm -f conftest*
  3601. LIBS="$ac_save_LIBS"
  3602. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3603. echo "$ac_t""yes" 1>&6
  3604. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  3605. else
  3606. echo "$ac_t""no" 1>&6
  3607. fi
  3608. fi
  3609. fi
  3610. # Check for libraries that X11R6 Xt/Xaw programs need.
  3611. ac_save_LDFLAGS="$LDFLAGS"
  3612. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  3613. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  3614. # check for ICE first), but we must link in the order -lSM -lICE or
  3615. # we get undefined symbols. So assume we have SM if we have ICE.
  3616. # These have to be linked with before -lX11, unlike the other
  3617. # libraries we check for below, so use a different variable.
  3618. # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  3619. echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
  3620. echo "configure:4320: checking for IceConnectionNumber in -lICE" >&5
  3621. ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
  3622. ac_save_LIBS="$LIBS"
  3623. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  3624. cat > conftest.$ac_ext <<EOF
  3625. #line 4326 "configure"
  3626. #include "confdefs.h"
  3627. /* Override any gcc2 internal prototype to avoid an error. */
  3628. /* We use char because int might match the return type of a gcc2
  3629. builtin and then its argument prototype would still apply. */
  3630. char IceConnectionNumber();
  3631. int main() {
  3632. IceConnectionNumber()
  3633. ; return 0; }
  3634. EOF
  3635. if { (eval echo configure:4337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3636. rm -rf conftest*
  3637. eval "ac_cv_lib_$ac_lib_var=yes"
  3638. else
  3639. echo "configure: failed program was:" >&5
  3640. cat conftest.$ac_ext >&5
  3641. rm -rf conftest*
  3642. eval "ac_cv_lib_$ac_lib_var=no"
  3643. fi
  3644. rm -f conftest*
  3645. LIBS="$ac_save_LIBS"
  3646. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3647. echo "$ac_t""yes" 1>&6
  3648. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  3649. else
  3650. echo "$ac_t""no" 1>&6
  3651. fi
  3652. LDFLAGS="$ac_save_LDFLAGS"
  3653. fi
  3654. if test "$no_x" != "yes"; then
  3655. USE_X11="1"
  3656. XLIB=-lX11
  3657. XTLIB=-lXt
  3658. fi
  3659. fi
  3660. # Note that some systems (FreeBSD for example) need an extra library for
  3661. # cuserid
  3662. ac_save_libs="$LIBS"
  3663. LIBS=""
  3664. echo $ac_n "checking for library containing cuserid""... $ac_c" 1>&6
  3665. echo "configure:4377: checking for library containing cuserid" >&5
  3666. ac_func_search_save_LIBS="$LIBS"
  3667. ac_cv_search_cuserid="no"
  3668. cat > conftest.$ac_ext <<EOF
  3669. #line 4382 "configure"
  3670. #include "confdefs.h"
  3671. /* Override any gcc2 internal prototype to avoid an error. */
  3672. /* We use char because int might match the return type of a gcc2
  3673. builtin and then its argument prototype would still apply. */
  3674. char cuserid();
  3675. int main() {
  3676. cuserid()
  3677. ; return 0; }
  3678. EOF
  3679. if { (eval echo configure:4393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3680. rm -rf conftest*
  3681. ac_cv_search_cuserid="none required"
  3682. else
  3683. echo "configure: failed program was:" >&5
  3684. cat conftest.$ac_ext >&5
  3685. fi
  3686. rm -f conftest*
  3687. test "$ac_cv_search_cuserid" = "no" && for i in compat; do
  3688. LIBS="-l$i $ac_func_search_save_LIBS"
  3689. cat > conftest.$ac_ext <<EOF
  3690. #line 4404 "configure"
  3691. #include "confdefs.h"
  3692. /* Override any gcc2 internal prototype to avoid an error. */
  3693. /* We use char because int might match the return type of a gcc2
  3694. builtin and then its argument prototype would still apply. */
  3695. char cuserid();
  3696. int main() {
  3697. cuserid()
  3698. ; return 0; }
  3699. EOF
  3700. if { (eval echo configure:4415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3701. rm -rf conftest*
  3702. ac_cv_search_cuserid="-l$i"
  3703. break
  3704. else
  3705. echo "configure: failed program was:" >&5
  3706. cat conftest.$ac_ext >&5
  3707. fi
  3708. rm -f conftest*
  3709. done
  3710. LIBS="$ac_func_search_save_LIBS"
  3711. echo "$ac_t""$ac_cv_search_cuserid" 1>&6
  3712. if test "$ac_cv_search_cuserid" != "no"; then
  3713. test "$ac_cv_search_cuserid" = "none required" || LIBS="$ac_cv_search_cuserid $LIBS"
  3714. else :
  3715. fi
  3716. DBMIEXTRALIB="$LIBS"
  3717. LIBS="$ac_save_libs"
  3718. # Note: -lxdr -liberty -lws2_32 is for MinGW
  3719. echo $ac_n "checking for xdrmem_create""... $ac_c" 1>&6
  3720. echo "configure:4441: checking for xdrmem_create" >&5
  3721. cat > conftest.$ac_ext <<EOF
  3722. #line 4444 "configure"
  3723. #include "confdefs.h"
  3724. /* System header to define __stub macros and hopefully few prototypes,
  3725. which can conflict with char xdrmem_create(); below. */
  3726. #include <assert.h>
  3727. /* Override any gcc2 internal prototype to avoid an error. */
  3728. /* We use char because int might match the return type of a gcc2
  3729. builtin and then its argument prototype would still apply. */
  3730. char xdrmem_create();
  3731. int main() {
  3732. /* The GNU C library defines this for functions which it implements
  3733. to always fail with ENOSYS. Some functions are actually named
  3734. something starting with __ and the normal name is an alias. */
  3735. #if defined (__stub_xdrmem_create) || defined (__stub___xdrmem_create)
  3736. choke me
  3737. #else
  3738. xdrmem_create();
  3739. #endif
  3740. ; return 0; }
  3741. EOF
  3742. if { (eval echo configure:4467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3743. rm -rf conftest*
  3744. eval "ac_cv_func_xdrmem_create=yes"
  3745. else
  3746. echo "configure: failed program was:" >&5
  3747. cat conftest.$ac_ext >&5
  3748. rm -rf conftest*
  3749. eval "ac_cv_func_xdrmem_create=no"
  3750. fi
  3751. rm -f conftest*
  3752. if eval "test \"`echo '$ac_cv_func_'xdrmem_create`\" = yes"; then
  3753. echo "$ac_t""yes" 1>&6
  3754. XDRLIB=
  3755. else
  3756. echo "$ac_t""no" 1>&6
  3757. echo $ac_n "checking for xdrmem_create in -lsun""... $ac_c" 1>&6
  3758. echo "configure:4485: checking for xdrmem_create in -lsun" >&5
  3759. ac_lib_var=`echo sun'_'xdrmem_create | sed 'y%./+-%__p_%'`
  3760. ac_save_LIBS="$LIBS"
  3761. LIBS="-lsun $LIBS"
  3762. cat > conftest.$ac_ext <<EOF
  3763. #line 4491 "configure"
  3764. #include "confdefs.h"
  3765. /* Override any gcc2 internal prototype to avoid an error. */
  3766. /* We use char because int might match the return type of a gcc2
  3767. builtin and then its argument prototype would still apply. */
  3768. char xdrmem_create();
  3769. int main() {
  3770. xdrmem_create()
  3771. ; return 0; }
  3772. EOF
  3773. if { (eval echo configure:4502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3774. rm -rf conftest*
  3775. eval "ac_cv_lib_$ac_lib_var=yes"
  3776. else
  3777. echo "configure: failed program was:" >&5
  3778. cat conftest.$ac_ext >&5
  3779. rm -rf conftest*
  3780. eval "ac_cv_lib_$ac_lib_var=no"
  3781. fi
  3782. rm -f conftest*
  3783. LIBS="$ac_save_LIBS"
  3784. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3785. echo "$ac_t""yes" 1>&6
  3786. XDRLIB=-lsun
  3787. else
  3788. echo "$ac_t""no" 1>&6
  3789. echo $ac_n "checking for xdrmem_create in -lnsl""... $ac_c" 1>&6
  3790. echo "configure:4521: checking for xdrmem_create in -lnsl" >&5
  3791. ac_lib_var=`echo nsl'_'xdrmem_create | sed 'y%./+-%__p_%'`
  3792. ac_save_LIBS="$LIBS"
  3793. LIBS="-lnsl $LIBS"
  3794. cat > conftest.$ac_ext <<EOF
  3795. #line 4527 "configure"
  3796. #include "confdefs.h"
  3797. /* Override any gcc2 internal prototype to avoid an error. */
  3798. /* We use char because int might match the return type of a gcc2
  3799. builtin and then its argument prototype would still apply. */
  3800. char xdrmem_create();
  3801. int main() {
  3802. xdrmem_create()
  3803. ; return 0; }
  3804. EOF
  3805. if { (eval echo configure:4538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3806. rm -rf conftest*
  3807. eval "ac_cv_lib_$ac_lib_var=yes"
  3808. else
  3809. echo "configure: failed program was:" >&5
  3810. cat conftest.$ac_ext >&5
  3811. rm -rf conftest*
  3812. eval "ac_cv_lib_$ac_lib_var=no"
  3813. fi
  3814. rm -f conftest*
  3815. LIBS="$ac_save_LIBS"
  3816. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3817. echo "$ac_t""yes" 1>&6
  3818. XDRLIB=-lnsl
  3819. else
  3820. echo "$ac_t""no" 1>&6
  3821. echo $ac_n "checking for xdrmem_create in -lrpclib""... $ac_c" 1>&6
  3822. echo "configure:4557: checking for xdrmem_create in -lrpclib" >&5
  3823. ac_lib_var=`echo rpclib'_'xdrmem_create | sed 'y%./+-%__p_%'`
  3824. ac_save_LIBS="$LIBS"
  3825. LIBS="-lrpclib $LIBS"
  3826. cat > conftest.$ac_ext <<EOF
  3827. #line 4563 "configure"
  3828. #include "confdefs.h"
  3829. /* Override any gcc2 internal prototype to avoid an error. */
  3830. /* We use char because int might match the return type of a gcc2
  3831. builtin and then its argument prototype would still apply. */
  3832. char xdrmem_create();
  3833. int main() {
  3834. xdrmem_create()
  3835. ; return 0; }
  3836. EOF
  3837. if { (eval echo configure:4574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3838. rm -rf conftest*
  3839. eval "ac_cv_lib_$ac_lib_var=yes"
  3840. else
  3841. echo "configure: failed program was:" >&5
  3842. cat conftest.$ac_ext >&5
  3843. rm -rf conftest*
  3844. eval "ac_cv_lib_$ac_lib_var=no"
  3845. fi
  3846. rm -f conftest*
  3847. LIBS="$ac_save_LIBS"
  3848. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3849. echo "$ac_t""yes" 1>&6
  3850. XDRLIB=-lrpclib
  3851. else
  3852. echo "$ac_t""no" 1>&6
  3853. echo $ac_n "checking for xdrmem_create in -lxdr""... $ac_c" 1>&6
  3854. echo "configure:4593: checking for xdrmem_create in -lxdr" >&5
  3855. ac_lib_var=`echo xdr'_'xdrmem_create | sed 'y%./+-%__p_%'`
  3856. ac_save_LIBS="$LIBS"
  3857. LIBS="-lxdr -liberty -lws2_32 $LIBS"
  3858. cat > conftest.$ac_ext <<EOF
  3859. #line 4599 "configure"
  3860. #include "confdefs.h"
  3861. /* Override any gcc2 internal prototype to avoid an error. */
  3862. /* We use char because int might match the return type of a gcc2
  3863. builtin and then its argument prototype would still apply. */
  3864. char xdrmem_create();
  3865. int main() {
  3866. xdrmem_create()
  3867. ; return 0; }
  3868. EOF
  3869. if { (eval echo configure:4610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3870. rm -rf conftest*
  3871. eval "ac_cv_lib_$ac_lib_var=yes"
  3872. else
  3873. echo "configure: failed program was:" >&5
  3874. cat conftest.$ac_ext >&5
  3875. rm -rf conftest*
  3876. eval "ac_cv_lib_$ac_lib_var=no"
  3877. fi
  3878. rm -f conftest*
  3879. LIBS="$ac_save_LIBS"
  3880. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3881. echo "$ac_t""yes" 1>&6
  3882. XDRLIB="-lxdr -liberty -lws2_32"
  3883. else
  3884. echo "$ac_t""no" 1>&6
  3885. { echo "configure: error: *** Unable to locate XDR functions." 1>&2; exit 1; }
  3886. fi
  3887. fi
  3888. fi
  3889. fi
  3890. fi
  3891. for ac_func in asprintf
  3892. do
  3893. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3894. echo "configure:4644: checking for $ac_func" >&5
  3895. cat > conftest.$ac_ext <<EOF
  3896. #line 4647 "configure"
  3897. #include "confdefs.h"
  3898. /* System header to define __stub macros and hopefully few prototypes,
  3899. which can conflict with char $ac_func(); below. */
  3900. #include <assert.h>
  3901. /* Override any gcc2 internal prototype to avoid an error. */
  3902. /* We use char because int might match the return type of a gcc2
  3903. builtin and then its argument prototype would still apply. */
  3904. char $ac_func();
  3905. int main() {
  3906. /* The GNU C library defines this for functions which it implements
  3907. to always fail with ENOSYS. Some functions are actually named
  3908. something starting with __ and the normal name is an alias. */
  3909. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3910. choke me
  3911. #else
  3912. $ac_func();
  3913. #endif
  3914. ; return 0; }
  3915. EOF
  3916. if { (eval echo configure:4670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3917. rm -rf conftest*
  3918. eval "ac_cv_func_$ac_func=yes"
  3919. else
  3920. echo "configure: failed program was:" >&5
  3921. cat conftest.$ac_ext >&5
  3922. rm -rf conftest*
  3923. eval "ac_cv_func_$ac_func=no"
  3924. fi
  3925. rm -f conftest*
  3926. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3927. echo "$ac_t""yes" 1>&6
  3928. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3929. cat >> confdefs.h <<EOF
  3930. #define $ac_tr_func 1
  3931. EOF
  3932. else
  3933. echo "$ac_t""no" 1>&6
  3934. fi
  3935. done
  3936. # Test if mathlib needs -lm flag or is included with libc
  3937. echo $ac_n "checking for atan""... $ac_c" 1>&6
  3938. echo "configure:4697: checking for atan" >&5
  3939. cat > conftest.$ac_ext <<EOF
  3940. #line 4700 "configure"
  3941. #include "confdefs.h"
  3942. /* System header to define __stub macros and hopefully few prototypes,
  3943. which can conflict with char atan(); below. */
  3944. #include <assert.h>
  3945. /* Override any gcc2 internal prototype to avoid an error. */
  3946. /* We use char because int might match the return type of a gcc2
  3947. builtin and then its argument prototype would still apply. */
  3948. char atan();
  3949. int main() {
  3950. /* The GNU C library defines this for functions which it implements
  3951. to always fail with ENOSYS. Some functions are actually named
  3952. something starting with __ and the normal name is an alias. */
  3953. #if defined (__stub_atan) || defined (__stub___atan)
  3954. choke me
  3955. #else
  3956. atan();
  3957. #endif
  3958. ; return 0; }
  3959. EOF
  3960. if { (eval echo configure:4723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3961. rm -rf conftest*
  3962. eval "ac_cv_func_atan=yes"
  3963. else
  3964. echo "configure: failed program was:" >&5
  3965. cat conftest.$ac_ext >&5
  3966. rm -rf conftest*
  3967. eval "ac_cv_func_atan=no"
  3968. fi
  3969. rm -f conftest*
  3970. if eval "test \"`echo '$ac_cv_func_'atan`\" = yes"; then
  3971. echo "$ac_t""yes" 1>&6
  3972. MATHLIB=
  3973. else
  3974. echo "$ac_t""no" 1>&6
  3975. echo $ac_n "checking for atan in -lm""... $ac_c" 1>&6
  3976. echo "configure:4741: checking for atan in -lm" >&5
  3977. ac_lib_var=`echo m'_'atan | sed 'y%./+-%__p_%'`
  3978. ac_save_LIBS="$LIBS"
  3979. LIBS="-lm $LIBS"
  3980. cat > conftest.$ac_ext <<EOF
  3981. #line 4747 "configure"
  3982. #include "confdefs.h"
  3983. /* Override any gcc2 internal prototype to avoid an error. */
  3984. /* We use char because int might match the return type of a gcc2
  3985. builtin and then its argument prototype would still apply. */
  3986. char atan();
  3987. int main() {
  3988. atan()
  3989. ; return 0; }
  3990. EOF
  3991. if { (eval echo configure:4758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3992. rm -rf conftest*
  3993. eval "ac_cv_lib_$ac_lib_var=yes"
  3994. else
  3995. echo "configure: failed program was:" >&5
  3996. cat conftest.$ac_ext >&5
  3997. rm -rf conftest*
  3998. eval "ac_cv_lib_$ac_lib_var=no"
  3999. fi
  4000. rm -f conftest*
  4001. LIBS="$ac_save_LIBS"
  4002. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4003. echo "$ac_t""yes" 1>&6
  4004. MATHLIB=-lm
  4005. else
  4006. echo "$ac_t""no" 1>&6
  4007. { echo "configure: error: *** Failed check for math library." 1>&2; exit 1; }
  4008. fi
  4009. fi
  4010. echo $ac_n "checking for dlsym""... $ac_c" 1>&6
  4011. echo "configure:4785: checking for dlsym" >&5
  4012. cat > conftest.$ac_ext <<EOF
  4013. #line 4788 "configure"
  4014. #include "confdefs.h"
  4015. /* System header to define __stub macros and hopefully few prototypes,
  4016. which can conflict with char dlsym(); below. */
  4017. #include <assert.h>
  4018. /* Override any gcc2 internal prototype to avoid an error. */
  4019. /* We use char because int might match the return type of a gcc2
  4020. builtin and then its argument prototype would still apply. */
  4021. char dlsym();
  4022. int main() {
  4023. /* The GNU C library defines this for functions which it implements
  4024. to always fail with ENOSYS. Some functions are actually named
  4025. something starting with __ and the normal name is an alias. */
  4026. #if defined (__stub_dlsym) || defined (__stub___dlsym)
  4027. choke me
  4028. #else
  4029. dlsym();
  4030. #endif
  4031. ; return 0; }
  4032. EOF
  4033. if { (eval echo configure:4811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4034. rm -rf conftest*
  4035. eval "ac_cv_func_dlsym=yes"
  4036. else
  4037. echo "configure: failed program was:" >&5
  4038. cat conftest.$ac_ext >&5
  4039. rm -rf conftest*
  4040. eval "ac_cv_func_dlsym=no"
  4041. fi
  4042. rm -f conftest*
  4043. if eval "test \"`echo '$ac_cv_func_'dlsym`\" = yes"; then
  4044. echo "$ac_t""yes" 1>&6
  4045. DLLIB=
  4046. else
  4047. echo "$ac_t""no" 1>&6
  4048. echo $ac_n "checking for dlsym in -ldl""... $ac_c" 1>&6
  4049. echo "configure:4829: checking for dlsym in -ldl" >&5
  4050. ac_lib_var=`echo dl'_'dlsym | sed 'y%./+-%__p_%'`
  4051. ac_save_LIBS="$LIBS"
  4052. LIBS="-ldl $LIBS"
  4053. cat > conftest.$ac_ext <<EOF
  4054. #line 4835 "configure"
  4055. #include "confdefs.h"
  4056. /* Override any gcc2 internal prototype to avoid an error. */
  4057. /* We use char because int might match the return type of a gcc2
  4058. builtin and then its argument prototype would still apply. */
  4059. char dlsym();
  4060. int main() {
  4061. dlsym()
  4062. ; return 0; }
  4063. EOF
  4064. if { (eval echo configure:4846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4065. rm -rf conftest*
  4066. eval "ac_cv_lib_$ac_lib_var=yes"
  4067. else
  4068. echo "configure: failed program was:" >&5
  4069. cat conftest.$ac_ext >&5
  4070. rm -rf conftest*
  4071. eval "ac_cv_lib_$ac_lib_var=no"
  4072. fi
  4073. rm -f conftest*
  4074. LIBS="$ac_save_LIBS"
  4075. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4076. echo "$ac_t""yes" 1>&6
  4077. DLLIB=-ldl
  4078. else
  4079. echo "$ac_t""no" 1>&6
  4080. DLLIB=
  4081. fi
  4082. fi
  4083. echo $ac_n "checking for iconv""... $ac_c" 1>&6
  4084. echo "configure:4873: checking for iconv" >&5
  4085. cat > conftest.$ac_ext <<EOF
  4086. #line 4876 "configure"
  4087. #include "confdefs.h"
  4088. /* System header to define __stub macros and hopefully few prototypes,
  4089. which can conflict with char iconv(); below. */
  4090. #include <assert.h>
  4091. /* Override any gcc2 internal prototype to avoid an error. */
  4092. /* We use char because int might match the return type of a gcc2
  4093. builtin and then its argument prototype would still apply. */
  4094. char iconv();
  4095. int main() {
  4096. /* The GNU C library defines this for functions which it implements
  4097. to always fail with ENOSYS. Some functions are actually named
  4098. something starting with __ and the normal name is an alias. */
  4099. #if defined (__stub_iconv) || defined (__stub___iconv)
  4100. choke me
  4101. #else
  4102. iconv();
  4103. #endif
  4104. ; return 0; }
  4105. EOF
  4106. if { (eval echo configure:4899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4107. rm -rf conftest*
  4108. eval "ac_cv_func_iconv=yes"
  4109. else
  4110. echo "configure: failed program was:" >&5
  4111. cat conftest.$ac_ext >&5
  4112. rm -rf conftest*
  4113. eval "ac_cv_func_iconv=no"
  4114. fi
  4115. rm -f conftest*
  4116. if eval "test \"`echo '$ac_cv_func_'iconv`\" = yes"; then
  4117. echo "$ac_t""yes" 1>&6
  4118. ICONVLIB=
  4119. else
  4120. echo "$ac_t""no" 1>&6
  4121. echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
  4122. echo "configure:4917: checking for iconv in -liconv" >&5
  4123. ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
  4124. ac_save_LIBS="$LIBS"
  4125. LIBS="-liconv $LIBS"
  4126. cat > conftest.$ac_ext <<EOF
  4127. #line 4923 "configure"
  4128. #include "confdefs.h"
  4129. /* Override any gcc2 internal prototype to avoid an error. */
  4130. /* We use char because int might match the return type of a gcc2
  4131. builtin and then its argument prototype would still apply. */
  4132. char iconv();
  4133. int main() {
  4134. iconv()
  4135. ; return 0; }
  4136. EOF
  4137. if { (eval echo configure:4934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4138. rm -rf conftest*
  4139. eval "ac_cv_lib_$ac_lib_var=yes"
  4140. else
  4141. echo "configure: failed program was:" >&5
  4142. cat conftest.$ac_ext >&5
  4143. rm -rf conftest*
  4144. eval "ac_cv_lib_$ac_lib_var=no"
  4145. fi
  4146. rm -f conftest*
  4147. LIBS="$ac_save_LIBS"
  4148. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4149. echo "$ac_t""yes" 1>&6
  4150. ICONVLIB=-liconv
  4151. else
  4152. echo "$ac_t""no" 1>&6
  4153. echo $ac_n "checking for iconv in -lgiconv""... $ac_c" 1>&6
  4154. echo "configure:4953: checking for iconv in -lgiconv" >&5
  4155. ac_lib_var=`echo giconv'_'iconv | sed 'y%./+-%__p_%'`
  4156. ac_save_LIBS="$LIBS"
  4157. LIBS="-lgiconv $LIBS"
  4158. cat > conftest.$ac_ext <<EOF
  4159. #line 4959 "configure"
  4160. #include "confdefs.h"
  4161. /* Override any gcc2 internal prototype to avoid an error. */
  4162. /* We use char because int might match the return type of a gcc2
  4163. builtin and then its argument prototype would still apply. */
  4164. char iconv();
  4165. int main() {
  4166. iconv()
  4167. ; return 0; }
  4168. EOF
  4169. if { (eval echo configure:4970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4170. rm -rf conftest*
  4171. eval "ac_cv_lib_$ac_lib_var=yes"
  4172. else
  4173. echo "configure: failed program was:" >&5
  4174. cat conftest.$ac_ext >&5
  4175. rm -rf conftest*
  4176. eval "ac_cv_lib_$ac_lib_var=no"
  4177. fi
  4178. rm -f conftest*
  4179. LIBS="$ac_save_LIBS"
  4180. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4181. echo "$ac_t""yes" 1>&6
  4182. ICONVLIB=-lgiconv
  4183. else
  4184. echo "$ac_t""no" 1>&6
  4185. echo $ac_n "checking for libiconv""... $ac_c" 1>&6
  4186. echo "configure:4989: checking for libiconv" >&5
  4187. cat > conftest.$ac_ext <<EOF
  4188. #line 4992 "configure"
  4189. #include "confdefs.h"
  4190. /* System header to define __stub macros and hopefully few prototypes,
  4191. which can conflict with char libiconv(); below. */
  4192. #include <assert.h>
  4193. /* Override any gcc2 internal prototype to avoid an error. */
  4194. /* We use char because int might match the return type of a gcc2
  4195. builtin and then its argument prototype would still apply. */
  4196. char libiconv();
  4197. int main() {
  4198. /* The GNU C library defines this for functions which it implements
  4199. to always fail with ENOSYS. Some functions are actually named
  4200. something starting with __ and the normal name is an alias. */
  4201. #if defined (__stub_libiconv) || defined (__stub___libiconv)
  4202. choke me
  4203. #else
  4204. libiconv();
  4205. #endif
  4206. ; return 0; }
  4207. EOF
  4208. if { (eval echo configure:5015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4209. rm -rf conftest*
  4210. eval "ac_cv_func_libiconv=yes"
  4211. else
  4212. echo "configure: failed program was:" >&5
  4213. cat conftest.$ac_ext >&5
  4214. rm -rf conftest*
  4215. eval "ac_cv_func_libiconv=no"
  4216. fi
  4217. rm -f conftest*
  4218. if eval "test \"`echo '$ac_cv_func_'libiconv`\" = yes"; then
  4219. echo "$ac_t""yes" 1>&6
  4220. ICONVLIB=
  4221. else
  4222. echo "$ac_t""no" 1>&6
  4223. echo $ac_n "checking for libiconv in -liconv""... $ac_c" 1>&6
  4224. echo "configure:5033: checking for libiconv in -liconv" >&5
  4225. ac_lib_var=`echo iconv'_'libiconv | sed 'y%./+-%__p_%'`
  4226. ac_save_LIBS="$LIBS"
  4227. LIBS="-liconv $LIBS"
  4228. cat > conftest.$ac_ext <<EOF
  4229. #line 5039 "configure"
  4230. #include "confdefs.h"
  4231. /* Override any gcc2 internal prototype to avoid an error. */
  4232. /* We use char because int might match the return type of a gcc2
  4233. builtin and then its argument prototype would still apply. */
  4234. char libiconv();
  4235. int main() {
  4236. libiconv()
  4237. ; return 0; }
  4238. EOF
  4239. if { (eval echo configure:5050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4240. rm -rf conftest*
  4241. eval "ac_cv_lib_$ac_lib_var=yes"
  4242. else
  4243. echo "configure: failed program was:" >&5
  4244. cat conftest.$ac_ext >&5
  4245. rm -rf conftest*
  4246. eval "ac_cv_lib_$ac_lib_var=no"
  4247. fi
  4248. rm -f conftest*
  4249. LIBS="$ac_save_LIBS"
  4250. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4251. echo "$ac_t""yes" 1>&6
  4252. ICONVLIB=-liconv
  4253. else
  4254. echo "$ac_t""no" 1>&6
  4255. echo $ac_n "checking for libiconv in -lgiconv""... $ac_c" 1>&6
  4256. echo "configure:5069: checking for libiconv in -lgiconv" >&5
  4257. ac_lib_var=`echo giconv'_'libiconv | sed 'y%./+-%__p_%'`
  4258. ac_save_LIBS="$LIBS"
  4259. LIBS="-lgiconv $LIBS"
  4260. cat > conftest.$ac_ext <<EOF
  4261. #line 5075 "configure"
  4262. #include "confdefs.h"
  4263. /* Override any gcc2 internal prototype to avoid an error. */
  4264. /* We use char because int might match the return type of a gcc2
  4265. builtin and then its argument prototype would still apply. */
  4266. char libiconv();
  4267. int main() {
  4268. libiconv()
  4269. ; return 0; }
  4270. EOF
  4271. if { (eval echo configure:5086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4272. rm -rf conftest*
  4273. eval "ac_cv_lib_$ac_lib_var=yes"
  4274. else
  4275. echo "configure: failed program was:" >&5
  4276. cat conftest.$ac_ext >&5
  4277. rm -rf conftest*
  4278. eval "ac_cv_lib_$ac_lib_var=no"
  4279. fi
  4280. rm -f conftest*
  4281. LIBS="$ac_save_LIBS"
  4282. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4283. echo "$ac_t""yes" 1>&6
  4284. ICONVLIB=-lgiconv
  4285. else
  4286. echo "$ac_t""no" 1>&6
  4287. echo "configure: warning: *** Unable to locate iconv() function." 1>&2
  4288. ICONVLIB=
  4289. fi
  4290. fi
  4291. fi
  4292. fi
  4293. fi
  4294. fi
  4295. have_socket=1
  4296. echo $ac_n "checking for socket""... $ac_c" 1>&6
  4297. echo "configure:5123: checking for socket" >&5
  4298. cat > conftest.$ac_ext <<EOF
  4299. #line 5126 "configure"
  4300. #include "confdefs.h"
  4301. /* System header to define __stub macros and hopefully few prototypes,
  4302. which can conflict with char socket(); below. */
  4303. #include <assert.h>
  4304. /* Override any gcc2 internal prototype to avoid an error. */
  4305. /* We use char because int might match the return type of a gcc2
  4306. builtin and then its argument prototype would still apply. */
  4307. char socket();
  4308. int main() {
  4309. /* The GNU C library defines this for functions which it implements
  4310. to always fail with ENOSYS. Some functions are actually named
  4311. something starting with __ and the normal name is an alias. */
  4312. #if defined (__stub_socket) || defined (__stub___socket)
  4313. choke me
  4314. #else
  4315. socket();
  4316. #endif
  4317. ; return 0; }
  4318. EOF
  4319. if { (eval echo configure:5149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4320. rm -rf conftest*
  4321. eval "ac_cv_func_socket=yes"
  4322. else
  4323. echo "configure: failed program was:" >&5
  4324. cat conftest.$ac_ext >&5
  4325. rm -rf conftest*
  4326. eval "ac_cv_func_socket=no"
  4327. fi
  4328. rm -f conftest*
  4329. if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
  4330. echo "$ac_t""yes" 1>&6
  4331. SOCKLIB=
  4332. else
  4333. echo "$ac_t""no" 1>&6
  4334. echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
  4335. echo "configure:5167: checking for socket in -lsocket" >&5
  4336. ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
  4337. ac_save_LIBS="$LIBS"
  4338. LIBS="-lsocket $LIBS"
  4339. cat > conftest.$ac_ext <<EOF
  4340. #line 5173 "configure"
  4341. #include "confdefs.h"
  4342. /* Override any gcc2 internal prototype to avoid an error. */
  4343. /* We use char because int might match the return type of a gcc2
  4344. builtin and then its argument prototype would still apply. */
  4345. char socket();
  4346. int main() {
  4347. socket()
  4348. ; return 0; }
  4349. EOF
  4350. if { (eval echo configure:5184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4351. rm -rf conftest*
  4352. eval "ac_cv_lib_$ac_lib_var=yes"
  4353. else
  4354. echo "configure: failed program was:" >&5
  4355. cat conftest.$ac_ext >&5
  4356. rm -rf conftest*
  4357. eval "ac_cv_lib_$ac_lib_var=no"
  4358. fi
  4359. rm -f conftest*
  4360. LIBS="$ac_save_LIBS"
  4361. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4362. echo "$ac_t""yes" 1>&6
  4363. SOCKLIB=-lsocket
  4364. else
  4365. echo "$ac_t""no" 1>&6
  4366. have_socket=0
  4367. echo "configure: warning: *** Unable to locate socket() function." 1>&2
  4368. fi
  4369. fi
  4370. if test "$have_socket" = 1 ; then
  4371. HAVE_SOCKET=1
  4372. cat >> confdefs.h <<\EOF
  4373. #define HAVE_SOCKET 1
  4374. EOF
  4375. else
  4376. HAVE_SOCKET=
  4377. fi
  4378. # Mandatory zlib dependency
  4379. ZLIBLIBPATH=
  4380. ZLIBINCPATH=
  4381. ZLIB=
  4382. # With zlib includes directory
  4383. echo $ac_n "checking for location of zlib includes""... $ac_c" 1>&6
  4384. echo "configure:5232: checking for location of zlib includes" >&5
  4385. case "$with_zlib_includes" in
  4386. y | ye | yes | n | no)
  4387. { echo "configure: error: *** You must supply a directory to --with-zlib-includes." 1>&2; exit 1; }
  4388. ;;
  4389. esac
  4390. echo "$ac_t""$with_zlib_includes" 1>&6
  4391. if test -n "$with_zlib_includes" ; then
  4392. for dir in $with_zlib_includes; do
  4393. if test -d "$dir"; then
  4394. ZLIBINCPATH="$ZLIBINCPATH -I$dir"
  4395. else
  4396. { echo "configure: error: *** zlib includes directory $dir does not exist." 1>&2; exit 1; }
  4397. fi
  4398. done
  4399. fi
  4400. ac_save_cppflags="$CPPFLAGS"
  4401. CPPFLAGS="$ZLIBINCPATH $CPPFLAGS"
  4402. for ac_hdr in zlib.h
  4403. do
  4404. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4405. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4406. echo "configure:5258: checking for $ac_hdr" >&5
  4407. cat > conftest.$ac_ext <<EOF
  4408. #line 5261 "configure"
  4409. #include "confdefs.h"
  4410. #include <$ac_hdr>
  4411. EOF
  4412. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4413. { (eval echo configure:5266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4414. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4415. if test -z "$ac_err"; then
  4416. rm -rf conftest*
  4417. eval "ac_cv_header_$ac_safe=yes"
  4418. else
  4419. echo "$ac_err" >&5
  4420. echo "configure: failed program was:" >&5
  4421. cat conftest.$ac_ext >&5
  4422. rm -rf conftest*
  4423. eval "ac_cv_header_$ac_safe=no"
  4424. fi
  4425. rm -f conftest*
  4426. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4427. echo "$ac_t""yes" 1>&6
  4428. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4429. cat >> confdefs.h <<EOF
  4430. #define $ac_tr_hdr 1
  4431. EOF
  4432. else
  4433. echo "$ac_t""no" 1>&6
  4434. { echo "configure: error: *** Unable to locate zlib includes." 1>&2; exit 1; }
  4435. fi
  4436. done
  4437. CPPFLAGS=$ac_save_cppflags
  4438. # With zlib library directory
  4439. echo $ac_n "checking for location of zlib library""... $ac_c" 1>&6
  4440. echo "configure:5300: checking for location of zlib library" >&5
  4441. case "$with_zlib_libs" in
  4442. y | ye | yes | n | no)
  4443. { echo "configure: error: *** You must supply a directory to --with-zlib-libs." 1>&2; exit 1; }
  4444. ;;
  4445. esac
  4446. echo "$ac_t""$with_zlib_libs" 1>&6
  4447. if test -n "$with_zlib_libs"; then
  4448. for dir in $with_zlib_libs; do
  4449. if test -d "$dir"; then
  4450. ZLIBLIBPATH="$ZLIBLIBPATH -L$dir"
  4451. else
  4452. { echo "configure: error: *** zlib library directory $dir does not exist." 1>&2; exit 1; }
  4453. fi
  4454. done
  4455. fi
  4456. ac_save_ldflags="$LDFLAGS"
  4457. LDFLAGS="$ZLIBLIBPATH $LDFLAGS"
  4458. echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
  4459. echo "configure:5325: checking for deflate in -lz" >&5
  4460. ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
  4461. ac_save_LIBS="$LIBS"
  4462. LIBS="-lz $LIBS"
  4463. cat > conftest.$ac_ext <<EOF
  4464. #line 5331 "configure"
  4465. #include "confdefs.h"
  4466. /* Override any gcc2 internal prototype to avoid an error. */
  4467. /* We use char because int might match the return type of a gcc2
  4468. builtin and then its argument prototype would still apply. */
  4469. char deflate();
  4470. int main() {
  4471. deflate()
  4472. ; return 0; }
  4473. EOF
  4474. if { (eval echo configure:5342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4475. rm -rf conftest*
  4476. eval "ac_cv_lib_$ac_lib_var=yes"
  4477. else
  4478. echo "configure: failed program was:" >&5
  4479. cat conftest.$ac_ext >&5
  4480. rm -rf conftest*
  4481. eval "ac_cv_lib_$ac_lib_var=no"
  4482. fi
  4483. rm -f conftest*
  4484. LIBS="$ac_save_LIBS"
  4485. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4486. echo "$ac_t""yes" 1>&6
  4487. ZLIB="$ZLIB -lz "
  4488. else
  4489. echo "$ac_t""no" 1>&6
  4490. LDFLAGS=${ac_save_ldflags}
  4491. { echo "configure: error: *** Unable to locate zlib library." 1>&2; exit 1; }
  4492. fi
  4493. LDFLAGS=${ac_save_ldflags}
  4494. #
  4495. # Done checking zlib
  4496. # Mandatory PROJ dependency
  4497. PROJINC=
  4498. PROJLIB=
  4499. PROJSHARE=
  4500. # With PROJ includes directory
  4501. echo $ac_n "checking for location of External PROJ.4 includes""... $ac_c" 1>&6
  4502. echo "configure:5390: checking for location of External PROJ.4 includes" >&5
  4503. case "$with_proj_includes" in
  4504. y | ye | yes | n | no)
  4505. { echo "configure: error: *** You must supply a directory to --with-proj-includes." 1>&2; exit 1; }
  4506. ;;
  4507. esac
  4508. echo "$ac_t""$with_proj_includes" 1>&6
  4509. if test -n "$with_proj_includes" ; then
  4510. for dir in $with_proj_includes; do
  4511. if test -d "$dir"; then
  4512. PROJINC="$PROJINC -I$dir"
  4513. else
  4514. { echo "configure: error: *** External PROJ.4 includes directory $dir does not exist." 1>&2; exit 1; }
  4515. fi
  4516. done
  4517. fi
  4518. ac_save_cppflags="$CPPFLAGS"
  4519. CPPFLAGS="$PROJINC $CPPFLAGS"
  4520. for ac_hdr in proj_api.h
  4521. do
  4522. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4523. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4524. echo "configure:5416: checking for $ac_hdr" >&5
  4525. cat > conftest.$ac_ext <<EOF
  4526. #line 5419 "configure"
  4527. #include "confdefs.h"
  4528. #include <$ac_hdr>
  4529. EOF
  4530. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4531. { (eval echo configure:5424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4532. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4533. if test -z "$ac_err"; then
  4534. rm -rf conftest*
  4535. eval "ac_cv_header_$ac_safe=yes"
  4536. else
  4537. echo "$ac_err" >&5
  4538. echo "configure: failed program was:" >&5
  4539. cat conftest.$ac_ext >&5
  4540. rm -rf conftest*
  4541. eval "ac_cv_header_$ac_safe=no"
  4542. fi
  4543. rm -f conftest*
  4544. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4545. echo "$ac_t""yes" 1>&6
  4546. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4547. cat >> confdefs.h <<EOF
  4548. #define $ac_tr_hdr 1
  4549. EOF
  4550. else
  4551. echo "$ac_t""no" 1>&6
  4552. { echo "configure: error: *** Unable to locate External PROJ.4 includes." 1>&2; exit 1; }
  4553. fi
  4554. done
  4555. CPPFLAGS=$ac_save_cppflags
  4556. # PROJ version check
  4557. if test "$cross_compiling" = yes; then
  4558. echo "configure: warning: *** Cannot check PROJ.4 version (cross-compiling)." 1>&2
  4559. else
  4560. echo $ac_n "checking External PROJ.4 version""... $ac_c" 1>&6
  4561. echo "configure:5461: checking External PROJ.4 version" >&5
  4562. ac_save_cppflags="$CPPFLAGS"
  4563. CPPFLAGS="$PROJINC $CPPFLAGS"
  4564. if test "$cross_compiling" = yes; then
  4565. proj_ver=0
  4566. echo "$ac_t""unknown (cross-compiling)" 1>&6
  4567. else
  4568. cat > conftest.$ac_ext <<EOF
  4569. #line 5469 "configure"
  4570. #include "confdefs.h"
  4571. #include <stdio.h>
  4572. #include <proj_api.h>
  4573. int main(void) {
  4574. FILE *fp = fopen("conftestdata","w");
  4575. fprintf(fp, "%d", PJ_VERSION);
  4576. return 0;
  4577. }
  4578. EOF
  4579. if { (eval echo configure:5481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4580. then
  4581. proj_ver=`cat conftestdata`
  4582. echo "$ac_t""$proj_ver" 1>&6
  4583. else
  4584. echo "configure: failed program was:" >&5
  4585. cat conftest.$ac_ext >&5
  4586. rm -fr conftest*
  4587. { echo "configure: error: *** Could not determine External PROJ.4 version." 1>&2; exit 1; }
  4588. fi
  4589. rm -fr conftest*
  4590. fi
  4591. CPPFLAGS=$ac_save_cppflags
  4592. if test `expr "$proj_ver" \< 446` = 1 ; then
  4593. { echo "configure: error: *** PROJ.4.4.6 or later is required." 1>&2; exit 1; }
  4594. fi
  4595. fi
  4596. # With PROJ library directory
  4597. echo $ac_n "checking for location of External PROJ.4 library""... $ac_c" 1>&6
  4598. echo "configure:5506: checking for location of External PROJ.4 library" >&5
  4599. case "$with_proj_libs" in
  4600. y | ye | yes | n | no)
  4601. { echo "configure: error: *** You must supply a directory to --with-proj-libs." 1>&2; exit 1; }
  4602. ;;
  4603. esac
  4604. echo "$ac_t""$with_proj_libs" 1>&6
  4605. if test -n "$with_proj_libs"; then
  4606. for dir in $with_proj_libs; do
  4607. if test -d "$dir"; then
  4608. PROJLIB="$PROJLIB -L$dir"
  4609. else
  4610. { echo "configure: error: *** External PROJ.4 library directory $dir does not exist." 1>&2; exit 1; }
  4611. fi
  4612. done
  4613. fi
  4614. ac_save_ldflags="$LDFLAGS"
  4615. LDFLAGS="$PROJLIB $LDFLAGS"
  4616. echo $ac_n "checking for pj_get_def in -lproj""... $ac_c" 1>&6
  4617. echo "configure:5531: checking for pj_get_def in -lproj" >&5
  4618. ac_lib_var=`echo proj'_'pj_get_def | sed 'y%./+-%__p_%'`
  4619. ac_save_LIBS="$LIBS"
  4620. LIBS="-lproj $LIBS"
  4621. cat > conftest.$ac_ext <<EOF
  4622. #line 5537 "configure"
  4623. #include "confdefs.h"
  4624. /* Override any gcc2 internal prototype to avoid an error. */
  4625. /* We use char because int might match the return type of a gcc2
  4626. builtin and then its argument prototype would still apply. */
  4627. char pj_get_def();
  4628. int main() {
  4629. pj_get_def()
  4630. ; return 0; }
  4631. EOF
  4632. if { (eval echo configure:5548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4633. rm -rf conftest*
  4634. eval "ac_cv_lib_$ac_lib_var=yes"
  4635. else
  4636. echo "configure: failed program was:" >&5
  4637. cat conftest.$ac_ext >&5
  4638. rm -rf conftest*
  4639. eval "ac_cv_lib_$ac_lib_var=no"
  4640. fi
  4641. rm -f conftest*
  4642. LIBS="$ac_save_LIBS"
  4643. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4644. echo "$ac_t""yes" 1>&6
  4645. PROJLIB="$PROJLIB -lproj "
  4646. else
  4647. echo "$ac_t""no" 1>&6
  4648. LDFLAGS=${ac_save_ldflags}
  4649. { echo "configure: error: *** Unable to locate External PROJ.4 library." 1>&2; exit 1; }
  4650. fi
  4651. LDFLAGS=${ac_save_ldflags}
  4652. # With PROJ share directory
  4653. echo $ac_n "checking for location of External PROJ.4 data files""... $ac_c" 1>&6
  4654. echo "configure:5582: checking for location of External PROJ.4 data files" >&5
  4655. case "$with_proj_share" in
  4656. y | ye | yes | n | no)
  4657. { echo "configure: error: *** You must supply a directory to --with-proj-share." 1>&2; exit 1; }
  4658. ;;
  4659. esac
  4660. echo "$ac_t""$with_proj_share" 1>&6
  4661. if test -n "$with_proj_share" ; then
  4662. if test -d "$with_proj_share"; then
  4663. PROJSHARE="$with_proj_share"
  4664. else
  4665. { echo "configure: error: *** External PROJ.4 data directory $dir does not exist." 1>&2; exit 1; }
  4666. fi
  4667. fi
  4668. if test -z "$PROJSHARE" ; then
  4669. echo "configure: warning: *** External PROJ.4 directory not specified; default will be used" 1>&2
  4670. PROJSHARE=/usr/local/share/proj
  4671. fi
  4672. # LOC_CHECK_SHARE does not work when cross compiling
  4673. if test "$cross_compiling" = "yes" ; then
  4674. echo $ac_n "checking for epsg""... $ac_c" 1>&6
  4675. echo "configure:5606: checking for epsg" >&5
  4676. echo "$ac_t""unknown (cross-compiling)" 1>&6
  4677. else
  4678. ac_safe=`echo "$PROJSHARE/epsg" | sed 'y%./+-%__p_%'`
  4679. echo $ac_n "checking for $PROJSHARE/epsg""... $ac_c" 1>&6
  4680. echo "configure:5613: checking for $PROJSHARE/epsg" >&5
  4681. if test "$cross_compiling" = yes; then
  4682. { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
  4683. else
  4684. if test -r $PROJSHARE/epsg; then
  4685. eval "ac_cv_file_$ac_safe=yes"
  4686. else
  4687. eval "ac_cv_file_$ac_safe=no"
  4688. fi
  4689. fi
  4690. if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
  4691. echo "$ac_t""yes" 1>&6
  4692. :
  4693. else
  4694. echo "$ac_t""no" 1>&6
  4695. echo "configure: warning: *** Unable to locate PROJ data files." 1>&2
  4696. fi
  4697. fi
  4698. # nad2bin needs to be in path for installing datum gridshift files
  4699. # Extract the first word of "nad2bin", so it can be a program name with args.
  4700. set dummy nad2bin; ac_word=$2
  4701. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  4702. echo "configure:5645: checking for $ac_word" >&5
  4703. case "$NAD2BIN" in
  4704. /*)
  4705. ac_cv_path_NAD2BIN="$NAD2BIN" # Let the user override the test with a path.
  4706. ;;
  4707. ?:/*)
  4708. ac_cv_path_NAD2BIN="$NAD2BIN" # Let the user override the test with a dos path.
  4709. ;;
  4710. *)
  4711. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  4712. ac_dummy="$PATH"
  4713. for ac_dir in $ac_dummy; do
  4714. test -z "$ac_dir" && ac_dir=.
  4715. if test -f $ac_dir/$ac_word; then
  4716. ac_cv_path_NAD2BIN="$ac_dir/$ac_word"
  4717. break
  4718. fi
  4719. done
  4720. IFS="$ac_save_ifs"
  4721. test -z "$ac_cv_path_NAD2BIN" && ac_cv_path_NAD2BIN="no"
  4722. ;;
  4723. esac
  4724. NAD2BIN="$ac_cv_path_NAD2BIN"
  4725. if test -n "$NAD2BIN"; then
  4726. echo "$ac_t""$NAD2BIN" 1>&6
  4727. else
  4728. echo "$ac_t""no" 1>&6
  4729. fi
  4730. if test "$NAD2BIN" = "no"; then
  4731. { echo "configure: error: *** Unable to locate nad2bin (needs to be in PATH)." 1>&2; exit 1; }
  4732. fi
  4733. # Done checking PROJ
  4734. # Enable regex option
  4735. echo $ac_n "checking whether to use regex""... $ac_c" 1>&6
  4736. echo "configure:5685: checking whether to use regex" >&5
  4737. echo "$ac_t"""$with_regex"" 1>&6
  4738. case "$with_regex" in
  4739. "no") USE_REGEX= ;;
  4740. "yes") USE_REGEX="1" ;;
  4741. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  4742. esac
  4743. REGEXINCPATH=
  4744. REGEXLIBPATH=
  4745. REGEXLIB=
  4746. if test -n "$USE_REGEX"; then
  4747. # With regex includes directory
  4748. echo $ac_n "checking for location of regex includes""... $ac_c" 1>&6
  4749. echo "configure:5705: checking for location of regex includes" >&5
  4750. case "$with_regex_includes" in
  4751. y | ye | yes | n | no)
  4752. { echo "configure: error: *** You must supply a directory to --with-regex-includes." 1>&2; exit 1; }
  4753. ;;
  4754. esac
  4755. echo "$ac_t""$with_regex_includes" 1>&6
  4756. if test -n "$with_regex_includes" ; then
  4757. for dir in $with_regex_includes; do
  4758. if test -d "$dir"; then
  4759. REGEXINCPATH="$REGEXINCPATH -I$dir"
  4760. else
  4761. { echo "configure: error: *** regex includes directory $dir does not exist." 1>&2; exit 1; }
  4762. fi
  4763. done
  4764. fi
  4765. ac_save_cppflags="$CPPFLAGS"
  4766. CPPFLAGS="$REGEXINCPATH $CPPFLAGS"
  4767. for ac_hdr in regex.h
  4768. do
  4769. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4770. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4771. echo "configure:5731: checking for $ac_hdr" >&5
  4772. cat > conftest.$ac_ext <<EOF
  4773. #line 5734 "configure"
  4774. #include "confdefs.h"
  4775. #include <$ac_hdr>
  4776. EOF
  4777. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4778. { (eval echo configure:5739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4779. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4780. if test -z "$ac_err"; then
  4781. rm -rf conftest*
  4782. eval "ac_cv_header_$ac_safe=yes"
  4783. else
  4784. echo "$ac_err" >&5
  4785. echo "configure: failed program was:" >&5
  4786. cat conftest.$ac_ext >&5
  4787. rm -rf conftest*
  4788. eval "ac_cv_header_$ac_safe=no"
  4789. fi
  4790. rm -f conftest*
  4791. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4792. echo "$ac_t""yes" 1>&6
  4793. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4794. cat >> confdefs.h <<EOF
  4795. #define $ac_tr_hdr 1
  4796. EOF
  4797. else
  4798. echo "$ac_t""no" 1>&6
  4799. { echo "configure: error: *** Unable to locate regex includes." 1>&2; exit 1; }
  4800. fi
  4801. done
  4802. CPPFLAGS=$ac_save_cppflags
  4803. # With regex library directory
  4804. echo $ac_n "checking for location of regex library""... $ac_c" 1>&6
  4805. echo "configure:5773: checking for location of regex library" >&5
  4806. case "$with_regex_libs" in
  4807. y | ye | yes | n | no)
  4808. { echo "configure: error: *** You must supply a directory to --with-regex-libs." 1>&2; exit 1; }
  4809. ;;
  4810. esac
  4811. echo "$ac_t""$with_regex_libs" 1>&6
  4812. if test -n "$with_regex_libs"; then
  4813. for dir in $with_regex_libs; do
  4814. if test -d "$dir"; then
  4815. REGEXLIBPATH="$REGEXLIBPATH -L$dir"
  4816. else
  4817. { echo "configure: error: *** regex library directory $dir does not exist." 1>&2; exit 1; }
  4818. fi
  4819. done
  4820. fi
  4821. ac_save_libs="$LIBS"
  4822. ac_save_ldflags="$LDFLAGS"
  4823. LIBS=" $LIBS"
  4824. LDFLAGS=" $LDFLAGS"
  4825. echo $ac_n "checking for regcomp""... $ac_c" 1>&6
  4826. echo "configure:5798: checking for regcomp" >&5
  4827. cat > conftest.$ac_ext <<EOF
  4828. #line 5801 "configure"
  4829. #include "confdefs.h"
  4830. /* System header to define __stub macros and hopefully few prototypes,
  4831. which can conflict with char regcomp(); below. */
  4832. #include <assert.h>
  4833. /* Override any gcc2 internal prototype to avoid an error. */
  4834. /* We use char because int might match the return type of a gcc2
  4835. builtin and then its argument prototype would still apply. */
  4836. char regcomp();
  4837. int main() {
  4838. /* The GNU C library defines this for functions which it implements
  4839. to always fail with ENOSYS. Some functions are actually named
  4840. something starting with __ and the normal name is an alias. */
  4841. #if defined (__stub_regcomp) || defined (__stub___regcomp)
  4842. choke me
  4843. #else
  4844. regcomp();
  4845. #endif
  4846. ; return 0; }
  4847. EOF
  4848. if { (eval echo configure:5824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4849. rm -rf conftest*
  4850. eval "ac_cv_func_regcomp=yes"
  4851. else
  4852. echo "configure: failed program was:" >&5
  4853. cat conftest.$ac_ext >&5
  4854. rm -rf conftest*
  4855. eval "ac_cv_func_regcomp=no"
  4856. fi
  4857. rm -f conftest*
  4858. if eval "test \"`echo '$ac_cv_func_'regcomp`\" = yes"; then
  4859. echo "$ac_t""yes" 1>&6
  4860. REGEXLIB="$REGEXLIB "
  4861. else
  4862. echo "$ac_t""no" 1>&6
  4863. ac_save_ldflags="$LDFLAGS"
  4864. LDFLAGS="$REGEXLIBPATH $LDFLAGS"
  4865. echo $ac_n "checking for regcomp in -lregex""... $ac_c" 1>&6
  4866. echo "configure:5851: checking for regcomp in -lregex" >&5
  4867. ac_lib_var=`echo regex'_'regcomp | sed 'y%./+-%__p_%'`
  4868. ac_save_LIBS="$LIBS"
  4869. LIBS="-lregex $LIBS"
  4870. cat > conftest.$ac_ext <<EOF
  4871. #line 5857 "configure"
  4872. #include "confdefs.h"
  4873. /* Override any gcc2 internal prototype to avoid an error. */
  4874. /* We use char because int might match the return type of a gcc2
  4875. builtin and then its argument prototype would still apply. */
  4876. char regcomp();
  4877. int main() {
  4878. regcomp()
  4879. ; return 0; }
  4880. EOF
  4881. if { (eval echo configure:5868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4882. rm -rf conftest*
  4883. eval "ac_cv_lib_$ac_lib_var=yes"
  4884. else
  4885. echo "configure: failed program was:" >&5
  4886. cat conftest.$ac_ext >&5
  4887. rm -rf conftest*
  4888. eval "ac_cv_lib_$ac_lib_var=no"
  4889. fi
  4890. rm -f conftest*
  4891. LIBS="$ac_save_LIBS"
  4892. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4893. echo "$ac_t""yes" 1>&6
  4894. REGEXLIB="$REGEXLIB -lregex "
  4895. else
  4896. echo "$ac_t""no" 1>&6
  4897. LDFLAGS=${ac_save_ldflags}
  4898. { echo "configure: error: *** Unable to locate regex library." 1>&2; exit 1; }
  4899. fi
  4900. LDFLAGS=${ac_save_ldflags}
  4901. fi
  4902. LIBS=${ac_save_libs}
  4903. LDFLAGS=${ac_save_ldflags}
  4904. fi # $USE_REGEX
  4905. # Done checking regex
  4906. # Enable Readline option
  4907. echo $ac_n "checking whether to use Readline""... $ac_c" 1>&6
  4908. echo "configure:5918: checking whether to use Readline" >&5
  4909. echo "$ac_t"""$with_readline"" 1>&6
  4910. case "$with_readline" in
  4911. "no") USE_READLINE= ;;
  4912. "yes") USE_READLINE="1" ;;
  4913. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  4914. esac
  4915. READLINEINCPATH=
  4916. READLINELIBPATH=
  4917. READLINELIB=
  4918. HISTORYLIB=
  4919. if test -n "$USE_READLINE"; then
  4920. # With Readline includes directory
  4921. echo $ac_n "checking for location of Readline includes""... $ac_c" 1>&6
  4922. echo "configure:5939: checking for location of Readline includes" >&5
  4923. case "$with_readline_includes" in
  4924. y | ye | yes | n | no)
  4925. { echo "configure: error: *** You must supply a directory to --with-readline-includes." 1>&2; exit 1; }
  4926. ;;
  4927. esac
  4928. echo "$ac_t""$with_readline_includes" 1>&6
  4929. if test -n "$with_readline_includes" ; then
  4930. for dir in $with_readline_includes; do
  4931. if test -d "$dir"; then
  4932. READLINEINCPATH="$READLINEINCPATH -I$dir"
  4933. else
  4934. { echo "configure: error: *** Readline includes directory $dir does not exist." 1>&2; exit 1; }
  4935. fi
  4936. done
  4937. fi
  4938. ac_save_cppflags="$CPPFLAGS"
  4939. CPPFLAGS="$READLINEINCPATH $CPPFLAGS"
  4940. for ac_hdr in readline/readline.h
  4941. do
  4942. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4943. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4944. echo "configure:5965: checking for $ac_hdr" >&5
  4945. cat > conftest.$ac_ext <<EOF
  4946. #line 5968 "configure"
  4947. #include "confdefs.h"
  4948. #include <$ac_hdr>
  4949. EOF
  4950. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4951. { (eval echo configure:5973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4952. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4953. if test -z "$ac_err"; then
  4954. rm -rf conftest*
  4955. eval "ac_cv_header_$ac_safe=yes"
  4956. else
  4957. echo "$ac_err" >&5
  4958. echo "configure: failed program was:" >&5
  4959. cat conftest.$ac_ext >&5
  4960. rm -rf conftest*
  4961. eval "ac_cv_header_$ac_safe=no"
  4962. fi
  4963. rm -f conftest*
  4964. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4965. echo "$ac_t""yes" 1>&6
  4966. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4967. cat >> confdefs.h <<EOF
  4968. #define $ac_tr_hdr 1
  4969. EOF
  4970. else
  4971. echo "$ac_t""no" 1>&6
  4972. { echo "configure: error: *** Unable to locate Readline includes." 1>&2; exit 1; }
  4973. fi
  4974. done
  4975. CPPFLAGS=$ac_save_cppflags
  4976. ac_save_cppflags="$CPPFLAGS"
  4977. CPPFLAGS="$READLINEINCPATH $CPPFLAGS"
  4978. for ac_hdr in readline/history.h
  4979. do
  4980. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4981. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4982. echo "configure:6009: checking for $ac_hdr" >&5
  4983. cat > conftest.$ac_ext <<EOF
  4984. #line 6012 "configure"
  4985. #include "confdefs.h"
  4986. #include <$ac_hdr>
  4987. EOF
  4988. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4989. { (eval echo configure:6017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4990. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4991. if test -z "$ac_err"; then
  4992. rm -rf conftest*
  4993. eval "ac_cv_header_$ac_safe=yes"
  4994. else
  4995. echo "$ac_err" >&5
  4996. echo "configure: failed program was:" >&5
  4997. cat conftest.$ac_ext >&5
  4998. rm -rf conftest*
  4999. eval "ac_cv_header_$ac_safe=no"
  5000. fi
  5001. rm -f conftest*
  5002. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5003. echo "$ac_t""yes" 1>&6
  5004. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5005. cat >> confdefs.h <<EOF
  5006. #define $ac_tr_hdr 1
  5007. EOF
  5008. else
  5009. echo "$ac_t""no" 1>&6
  5010. { echo "configure: error: *** Unable to locate Readline includes." 1>&2; exit 1; }
  5011. fi
  5012. done
  5013. CPPFLAGS=$ac_save_cppflags
  5014. # With Readline library directory
  5015. echo $ac_n "checking for location of Readline library""... $ac_c" 1>&6
  5016. echo "configure:6051: checking for location of Readline library" >&5
  5017. case "$with_readline_libs" in
  5018. y | ye | yes | n | no)
  5019. { echo "configure: error: *** You must supply a directory to --with-readline-libs." 1>&2; exit 1; }
  5020. ;;
  5021. esac
  5022. echo "$ac_t""$with_readline_libs" 1>&6
  5023. if test -n "$with_readline_libs"; then
  5024. for dir in $with_readline_libs; do
  5025. if test -d "$dir"; then
  5026. READLINELIBPATH="$READLINELIBPATH -L$dir"
  5027. else
  5028. { echo "configure: error: *** Readline library directory $dir does not exist." 1>&2; exit 1; }
  5029. fi
  5030. done
  5031. fi
  5032. ac_save_ldflags="$LDFLAGS"
  5033. LDFLAGS="$READLINELIBPATH $LDFLAGS"
  5034. echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
  5035. echo "configure:6076: checking for readline in -lreadline" >&5
  5036. ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
  5037. ac_save_LIBS="$LIBS"
  5038. LIBS="-lreadline $LIBS"
  5039. cat > conftest.$ac_ext <<EOF
  5040. #line 6082 "configure"
  5041. #include "confdefs.h"
  5042. /* Override any gcc2 internal prototype to avoid an error. */
  5043. /* We use char because int might match the return type of a gcc2
  5044. builtin and then its argument prototype would still apply. */
  5045. char readline();
  5046. int main() {
  5047. readline()
  5048. ; return 0; }
  5049. EOF
  5050. if { (eval echo configure:6093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5051. rm -rf conftest*
  5052. eval "ac_cv_lib_$ac_lib_var=yes"
  5053. else
  5054. echo "configure: failed program was:" >&5
  5055. cat conftest.$ac_ext >&5
  5056. rm -rf conftest*
  5057. eval "ac_cv_lib_$ac_lib_var=no"
  5058. fi
  5059. rm -f conftest*
  5060. LIBS="$ac_save_LIBS"
  5061. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5062. echo "$ac_t""yes" 1>&6
  5063. READLINELIB="$READLINELIB -lreadline "
  5064. else
  5065. echo "$ac_t""no" 1>&6
  5066. LDFLAGS=${ac_save_ldflags}
  5067. { echo "configure: error: *** Unable to locate Readline library." 1>&2; exit 1; }
  5068. fi
  5069. LDFLAGS=${ac_save_ldflags}
  5070. ac_save_ldflags="$LDFLAGS"
  5071. LDFLAGS="$READLINELIBPATH $LDFLAGS"
  5072. echo $ac_n "checking for add_history in -lhistory""... $ac_c" 1>&6
  5073. echo "configure:6128: checking for add_history in -lhistory" >&5
  5074. ac_lib_var=`echo history'_'add_history | sed 'y%./+-%__p_%'`
  5075. ac_save_LIBS="$LIBS"
  5076. LIBS="-lhistory $LIBS"
  5077. cat > conftest.$ac_ext <<EOF
  5078. #line 6134 "configure"
  5079. #include "confdefs.h"
  5080. /* Override any gcc2 internal prototype to avoid an error. */
  5081. /* We use char because int might match the return type of a gcc2
  5082. builtin and then its argument prototype would still apply. */
  5083. char add_history();
  5084. int main() {
  5085. add_history()
  5086. ; return 0; }
  5087. EOF
  5088. if { (eval echo configure:6145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5089. rm -rf conftest*
  5090. eval "ac_cv_lib_$ac_lib_var=yes"
  5091. else
  5092. echo "configure: failed program was:" >&5
  5093. cat conftest.$ac_ext >&5
  5094. rm -rf conftest*
  5095. eval "ac_cv_lib_$ac_lib_var=no"
  5096. fi
  5097. rm -f conftest*
  5098. LIBS="$ac_save_LIBS"
  5099. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5100. echo "$ac_t""yes" 1>&6
  5101. HISTORYLIB="$HISTORYLIB -lhistory "
  5102. else
  5103. echo "$ac_t""no" 1>&6
  5104. LDFLAGS=${ac_save_ldflags}
  5105. { echo "configure: error: *** Unable to locate History library." 1>&2; exit 1; }
  5106. fi
  5107. LDFLAGS=${ac_save_ldflags}
  5108. fi # $USE_READLINE
  5109. # Done checking Readline
  5110. # Enable JPEG option
  5111. echo $ac_n "checking whether to use JPEG""... $ac_c" 1>&6
  5112. echo "configure:6188: checking whether to use JPEG" >&5
  5113. echo "$ac_t"""$with_jpeg"" 1>&6
  5114. case "$with_jpeg" in
  5115. "no") USE_JPEG= ;;
  5116. "yes") USE_JPEG="1" ;;
  5117. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  5118. esac
  5119. JPEGINCPATH=
  5120. JPEGLIBPATH=
  5121. JPEGLIB=
  5122. if test -n "$USE_JPEG"; then
  5123. # With JPEG includes directory
  5124. echo $ac_n "checking for location of JPEG includes""... $ac_c" 1>&6
  5125. echo "configure:6208: checking for location of JPEG includes" >&5
  5126. case "$with_jpeg_includes" in
  5127. y | ye | yes | n | no)
  5128. { echo "configure: error: *** You must supply a directory to --with-jpeg-includes." 1>&2; exit 1; }
  5129. ;;
  5130. esac
  5131. echo "$ac_t""$with_jpeg_includes" 1>&6
  5132. if test -n "$with_jpeg_includes" ; then
  5133. for dir in $with_jpeg_includes; do
  5134. if test -d "$dir"; then
  5135. JPEGINCPATH="$JPEGINCPATH -I$dir"
  5136. else
  5137. { echo "configure: error: *** JPEG includes directory $dir does not exist." 1>&2; exit 1; }
  5138. fi
  5139. done
  5140. fi
  5141. ac_save_cppflags="$CPPFLAGS"
  5142. CPPFLAGS="$JPEGINCPATH $CPPFLAGS"
  5143. for ac_hdr in jpeglib.h
  5144. do
  5145. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5146. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5147. echo "configure:6234: checking for $ac_hdr" >&5
  5148. cat > conftest.$ac_ext <<EOF
  5149. #line 6237 "configure"
  5150. #include "confdefs.h"
  5151. #include <$ac_hdr>
  5152. EOF
  5153. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5154. { (eval echo configure:6242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5155. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5156. if test -z "$ac_err"; then
  5157. rm -rf conftest*
  5158. eval "ac_cv_header_$ac_safe=yes"
  5159. else
  5160. echo "$ac_err" >&5
  5161. echo "configure: failed program was:" >&5
  5162. cat conftest.$ac_ext >&5
  5163. rm -rf conftest*
  5164. eval "ac_cv_header_$ac_safe=no"
  5165. fi
  5166. rm -f conftest*
  5167. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5168. echo "$ac_t""yes" 1>&6
  5169. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5170. cat >> confdefs.h <<EOF
  5171. #define $ac_tr_hdr 1
  5172. EOF
  5173. else
  5174. echo "$ac_t""no" 1>&6
  5175. { echo "configure: error: *** Unable to locate JPEG includes." 1>&2; exit 1; }
  5176. fi
  5177. done
  5178. CPPFLAGS=$ac_save_cppflags
  5179. # With JPEG library directory
  5180. echo $ac_n "checking for location of JPEG library""... $ac_c" 1>&6
  5181. echo "configure:6276: checking for location of JPEG library" >&5
  5182. case "$with_jpeg_libs" in
  5183. y | ye | yes | n | no)
  5184. { echo "configure: error: *** You must supply a directory to --with-jpeg-libs." 1>&2; exit 1; }
  5185. ;;
  5186. esac
  5187. echo "$ac_t""$with_jpeg_libs" 1>&6
  5188. if test -n "$with_jpeg_libs"; then
  5189. for dir in $with_jpeg_libs; do
  5190. if test -d "$dir"; then
  5191. JPEGLIBPATH="$JPEGLIBPATH -L$dir"
  5192. else
  5193. { echo "configure: error: *** JPEG library directory $dir does not exist." 1>&2; exit 1; }
  5194. fi
  5195. done
  5196. fi
  5197. ac_save_ldflags="$LDFLAGS"
  5198. LDFLAGS="$JPEGLIBPATH $LDFLAGS"
  5199. echo $ac_n "checking for jpeg_start_compress in -ljpeg""... $ac_c" 1>&6
  5200. echo "configure:6303: checking for jpeg_start_compress in -ljpeg" >&5
  5201. ac_lib_var=`echo jpeg'_'jpeg_start_compress | sed 'y%./+-%__p_%'`
  5202. ac_save_LIBS="$LIBS"
  5203. LIBS="-ljpeg $LIBS"
  5204. cat > conftest.$ac_ext <<EOF
  5205. #line 6309 "configure"
  5206. #include "confdefs.h"
  5207. /* Override any gcc2 internal prototype to avoid an error. */
  5208. /* We use char because int might match the return type of a gcc2
  5209. builtin and then its argument prototype would still apply. */
  5210. char jpeg_start_compress();
  5211. int main() {
  5212. jpeg_start_compress()
  5213. ; return 0; }
  5214. EOF
  5215. if { (eval echo configure:6320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5216. rm -rf conftest*
  5217. eval "ac_cv_lib_$ac_lib_var=yes"
  5218. else
  5219. echo "configure: failed program was:" >&5
  5220. cat conftest.$ac_ext >&5
  5221. rm -rf conftest*
  5222. eval "ac_cv_lib_$ac_lib_var=no"
  5223. fi
  5224. rm -f conftest*
  5225. LIBS="$ac_save_LIBS"
  5226. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5227. echo "$ac_t""yes" 1>&6
  5228. JPEGLIB="$JPEGLIB -ljpeg "
  5229. else
  5230. echo "$ac_t""no" 1>&6
  5231. echo $ac_n "checking for jpeg_start_compress in -ljpeg""... $ac_c" 1>&6
  5232. echo "configure:6339: checking for jpeg_start_compress in -ljpeg" >&5
  5233. ac_lib_var=`echo jpeg'_'jpeg_start_compress | sed 'y%./+-%__p_%'`
  5234. ac_save_LIBS="$LIBS"
  5235. LIBS="-ljpeg $ZLIB $LIBS"
  5236. cat > conftest.$ac_ext <<EOF
  5237. #line 6345 "configure"
  5238. #include "confdefs.h"
  5239. /* Override any gcc2 internal prototype to avoid an error. */
  5240. /* We use char because int might match the return type of a gcc2
  5241. builtin and then its argument prototype would still apply. */
  5242. char jpeg_start_compress();
  5243. int main() {
  5244. jpeg_start_compress()
  5245. ; return 0; }
  5246. EOF
  5247. if { (eval echo configure:6356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5248. rm -rf conftest*
  5249. eval "ac_cv_lib_$ac_lib_var=yes"
  5250. else
  5251. echo "configure: failed program was:" >&5
  5252. cat conftest.$ac_ext >&5
  5253. rm -rf conftest*
  5254. eval "ac_cv_lib_$ac_lib_var=no"
  5255. fi
  5256. rm -f conftest*
  5257. LIBS="$ac_save_LIBS"
  5258. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5259. echo "$ac_t""yes" 1>&6
  5260. JPEGLIB="$JPEGLIB -ljpeg $ZLIB"
  5261. else
  5262. echo "$ac_t""no" 1>&6
  5263. LDFLAGS=${ac_save_ldflags}
  5264. { echo "configure: error: *** Unable to locate JPEG library." 1>&2; exit 1; }
  5265. fi
  5266. fi
  5267. LDFLAGS=${ac_save_ldflags}
  5268. fi # $USE_JPEG
  5269. # Done checking JPEG
  5270. # GDAL option
  5271. echo $ac_n "checking whether to use GDAL""... $ac_c" 1>&6
  5272. echo "configure:6405: checking whether to use GDAL" >&5
  5273. GDAL_LIBS=
  5274. GDAL_CFLAGS=
  5275. USE_GDAL=
  5276. USE_OGR=
  5277. if test "`basename xx/$with_gdal`" = "gdal-config" ; then
  5278. GDAL_CONFIG="$with_gdal"
  5279. fi
  5280. if test "$with_gdal" = "no" ; then
  5281. echo "$ac_t""no" 1>&6
  5282. else
  5283. echo "$ac_t""yes" 1>&6
  5284. # Extract the first word of "gdal-config", so it can be a program name with args.
  5285. set dummy gdal-config; ac_word=$2
  5286. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5287. echo "configure:6423: checking for $ac_word" >&5
  5288. case "$GDAL_CONFIG" in
  5289. /*)
  5290. ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a path.
  5291. ;;
  5292. ?:/*)
  5293. ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a dos path.
  5294. ;;
  5295. *)
  5296. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5297. ac_dummy="$PATH"
  5298. for ac_dir in $ac_dummy; do
  5299. test -z "$ac_dir" && ac_dir=.
  5300. if test -f $ac_dir/$ac_word; then
  5301. ac_cv_path_GDAL_CONFIG="$ac_dir/$ac_word"
  5302. break
  5303. fi
  5304. done
  5305. IFS="$ac_save_ifs"
  5306. test -z "$ac_cv_path_GDAL_CONFIG" && ac_cv_path_GDAL_CONFIG="no"
  5307. ;;
  5308. esac
  5309. GDAL_CONFIG="$ac_cv_path_GDAL_CONFIG"
  5310. if test -n "$GDAL_CONFIG"; then
  5311. echo "$ac_t""$GDAL_CONFIG" 1>&6
  5312. else
  5313. echo "$ac_t""no" 1>&6
  5314. fi
  5315. if test "$GDAL_CONFIG" = "no" ; then
  5316. { echo "configure: error: *** couldn't find gdal-config" 1>&2; exit 1; }
  5317. fi
  5318. if test "$GDAL_CONFIG" != "" ; then
  5319. GDAL_LIBS=`"$GDAL_CONFIG" --libs`
  5320. GDAL_DEP_LIBS=`"$GDAL_CONFIG" --dep-libs`
  5321. GDAL_CFLAGS=`"$GDAL_CONFIG" --cflags`
  5322. USE_GDAL=1
  5323. if test `"$GDAL_CONFIG" --ogr-enabled` = "yes" ; then
  5324. cat >> confdefs.h <<\EOF
  5325. #define HAVE_OGR 1
  5326. EOF
  5327. USE_OGR=1
  5328. fi
  5329. fi
  5330. GDAL=
  5331. ac_save_libs="$LIBS"
  5332. ac_save_cflags="$CFLAGS"
  5333. LIBS="$LIBS $GDAL_LIBS"
  5334. CFLAGS="$CFLAGS $GDAL_CFLAGS"
  5335. cat > conftest.$ac_ext <<EOF
  5336. #line 6478 "configure"
  5337. #include "confdefs.h"
  5338. #include <gdal.h>
  5339. int main() {
  5340. GDALOpen("foo", GA_ReadOnly);
  5341. ; return 0; }
  5342. EOF
  5343. if { (eval echo configure:6485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5344. :
  5345. else
  5346. echo "configure: failed program was:" >&5
  5347. cat conftest.$ac_ext >&5
  5348. rm -rf conftest*
  5349. LIBS="$LIBS $GDAL_DEP_LIBS"
  5350. cat > conftest.$ac_ext <<EOF
  5351. #line 6494 "configure"
  5352. #include "confdefs.h"
  5353. #include <gdal.h>
  5354. int main() {
  5355. GDALOpen("foo", GA_ReadOnly);
  5356. ; return 0; }
  5357. EOF
  5358. if { (eval echo configure:6501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5359. rm -rf conftest*
  5360. GDAL_LIBS="$GDAL_LIBS $GDAL_DEP_LIBS"
  5361. else
  5362. echo "configure: failed program was:" >&5
  5363. cat conftest.$ac_ext >&5
  5364. rm -rf conftest*
  5365. { echo "configure: error: *** Unable to locate GDAL library." 1>&2; exit 1; }
  5366. fi
  5367. rm -f conftest*
  5368. fi
  5369. rm -f conftest*
  5370. LIBS=${ac_save_libs}
  5371. CFLAGS=${ac_save_cflags}
  5372. cat >> confdefs.h <<\EOF
  5373. #define HAVE_GDAL 1
  5374. EOF
  5375. fi
  5376. # GEOS option
  5377. echo $ac_n "checking whether to use GEOS""... $ac_c" 1>&6
  5378. echo "configure:6533: checking whether to use GEOS" >&5
  5379. GEOS_LIBS=
  5380. GGEOS_CFLAGS=
  5381. USE_GEOS=
  5382. # FIXME: "quote" $with_geos ?
  5383. if test "`basename xx/$with_geos`" = "geos-config" ; then
  5384. GEOS_CONFIG="$with_geos"
  5385. fi
  5386. if test "$with_geos" = "no" ; then
  5387. echo "$ac_t""no" 1>&6
  5388. else
  5389. echo "$ac_t""yes" 1>&6
  5390. # Extract the first word of "geos-config", so it can be a program name with args.
  5391. set dummy geos-config; ac_word=$2
  5392. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5393. echo "configure:6551: checking for $ac_word" >&5
  5394. case "$GEOS_CONFIG" in
  5395. /*)
  5396. ac_cv_path_GEOS_CONFIG="$GEOS_CONFIG" # Let the user override the test with a path.
  5397. ;;
  5398. ?:/*)
  5399. ac_cv_path_GEOS_CONFIG="$GEOS_CONFIG" # Let the user override the test with a dos path.
  5400. ;;
  5401. *)
  5402. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5403. ac_dummy="$PATH"
  5404. for ac_dir in $ac_dummy; do
  5405. test -z "$ac_dir" && ac_dir=.
  5406. if test -f $ac_dir/$ac_word; then
  5407. ac_cv_path_GEOS_CONFIG="$ac_dir/$ac_word"
  5408. break
  5409. fi
  5410. done
  5411. IFS="$ac_save_ifs"
  5412. test -z "$ac_cv_path_GEOS_CONFIG" && ac_cv_path_GEOS_CONFIG="no"
  5413. ;;
  5414. esac
  5415. GEOS_CONFIG="$ac_cv_path_GEOS_CONFIG"
  5416. if test -n "$GEOS_CONFIG"; then
  5417. echo "$ac_t""$GEOS_CONFIG" 1>&6
  5418. else
  5419. echo "$ac_t""no" 1>&6
  5420. fi
  5421. if test "$GEOS_CONFIG" = "no" ; then
  5422. { echo "configure: error: *** couldn't find geos-config" 1>&2; exit 1; }
  5423. fi
  5424. if test "$GEOS_CONFIG" != "" ; then
  5425. GEOS_LIBS=`"$GEOS_CONFIG" --libs`
  5426. GEOS_CFLAGS=`"$GEOS_CONFIG" --cflags`
  5427. USE_GEOS=1
  5428. fi
  5429. ac_save_cppflags="$CPPFLAGS"
  5430. CPPFLAGS="$GEOS_CFLAGS $CPPFLAGS"
  5431. for ac_hdr in geos_c.h
  5432. do
  5433. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5434. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5435. echo "configure:6599: checking for $ac_hdr" >&5
  5436. cat > conftest.$ac_ext <<EOF
  5437. #line 6602 "configure"
  5438. #include "confdefs.h"
  5439. #include <$ac_hdr>
  5440. EOF
  5441. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5442. { (eval echo configure:6607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5443. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5444. if test -z "$ac_err"; then
  5445. rm -rf conftest*
  5446. eval "ac_cv_header_$ac_safe=yes"
  5447. else
  5448. echo "$ac_err" >&5
  5449. echo "configure: failed program was:" >&5
  5450. cat conftest.$ac_ext >&5
  5451. rm -rf conftest*
  5452. eval "ac_cv_header_$ac_safe=no"
  5453. fi
  5454. rm -f conftest*
  5455. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5456. echo "$ac_t""yes" 1>&6
  5457. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5458. cat >> confdefs.h <<EOF
  5459. #define $ac_tr_hdr 1
  5460. EOF
  5461. else
  5462. echo "$ac_t""no" 1>&6
  5463. { echo "configure: error: *** Unable to locate GEOS includes." 1>&2; exit 1; }
  5464. fi
  5465. done
  5466. CPPFLAGS=$ac_save_cppflags
  5467. ac_save_ldflags="$LDFLAGS"
  5468. LDFLAGS="$GEOS_LIBS $LDFLAGS"
  5469. echo $ac_n "checking for initGEOS in -lgeos_c""... $ac_c" 1>&6
  5470. echo "configure:6642: checking for initGEOS in -lgeos_c" >&5
  5471. ac_lib_var=`echo geos_c'_'initGEOS | sed 'y%./+-%__p_%'`
  5472. ac_save_LIBS="$LIBS"
  5473. LIBS="-lgeos_c $LIBS"
  5474. cat > conftest.$ac_ext <<EOF
  5475. #line 6648 "configure"
  5476. #include "confdefs.h"
  5477. /* Override any gcc2 internal prototype to avoid an error. */
  5478. /* We use char because int might match the return type of a gcc2
  5479. builtin and then its argument prototype would still apply. */
  5480. char initGEOS();
  5481. int main() {
  5482. initGEOS()
  5483. ; return 0; }
  5484. EOF
  5485. if { (eval echo configure:6659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5486. rm -rf conftest*
  5487. eval "ac_cv_lib_$ac_lib_var=yes"
  5488. else
  5489. echo "configure: failed program was:" >&5
  5490. cat conftest.$ac_ext >&5
  5491. rm -rf conftest*
  5492. eval "ac_cv_lib_$ac_lib_var=no"
  5493. fi
  5494. rm -f conftest*
  5495. LIBS="$ac_save_LIBS"
  5496. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5497. echo "$ac_t""yes" 1>&6
  5498. GEOS_LIBS="$GEOS_LIBS -lgeos_c "
  5499. else
  5500. echo "$ac_t""no" 1>&6
  5501. LDFLAGS=${ac_save_ldflags}
  5502. { echo "configure: error: *** Unable to locate GEOS library." 1>&2; exit 1; }
  5503. fi
  5504. LDFLAGS=${ac_save_ldflags}
  5505. cat >> confdefs.h <<\EOF
  5506. #define HAVE_GEOS 1
  5507. EOF
  5508. fi
  5509. # Enable TIFF option
  5510. echo $ac_n "checking whether to use TIFF""... $ac_c" 1>&6
  5511. echo "configure:6702: checking whether to use TIFF" >&5
  5512. echo "$ac_t"""$with_tiff"" 1>&6
  5513. case "$with_tiff" in
  5514. "no") USE_TIFF= ;;
  5515. "yes") USE_TIFF="1" ;;
  5516. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  5517. esac
  5518. TIFF_INCLUDE_DIRS=
  5519. TIFF_LIBRARY_DIRS=
  5520. TIFFLIB=
  5521. if test -n "$USE_TIFF"; then
  5522. # With TIFF includes directory
  5523. echo $ac_n "checking for location of TIFF includes""... $ac_c" 1>&6
  5524. echo "configure:6722: checking for location of TIFF includes" >&5
  5525. case "$with_tiff_includes" in
  5526. y | ye | yes | n | no)
  5527. { echo "configure: error: *** You must supply a directory to --with-tiff-includes." 1>&2; exit 1; }
  5528. ;;
  5529. esac
  5530. echo "$ac_t""$with_tiff_includes" 1>&6
  5531. if test -n "$with_tiff_includes" ; then
  5532. for dir in $with_tiff_includes; do
  5533. if test -d "$dir"; then
  5534. TIFF_INCLUDE_DIRS="$TIFF_INCLUDE_DIRS -I$dir"
  5535. else
  5536. { echo "configure: error: *** TIFF includes directory $dir does not exist." 1>&2; exit 1; }
  5537. fi
  5538. done
  5539. fi
  5540. ac_save_cppflags="$CPPFLAGS"
  5541. CPPFLAGS="$TIFF_INCLUDE_DIRS $CPPFLAGS"
  5542. for ac_hdr in tiffio.h
  5543. do
  5544. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5545. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5546. echo "configure:6748: checking for $ac_hdr" >&5
  5547. cat > conftest.$ac_ext <<EOF
  5548. #line 6751 "configure"
  5549. #include "confdefs.h"
  5550. #include <$ac_hdr>
  5551. EOF
  5552. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5553. { (eval echo configure:6756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5554. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5555. if test -z "$ac_err"; then
  5556. rm -rf conftest*
  5557. eval "ac_cv_header_$ac_safe=yes"
  5558. else
  5559. echo "$ac_err" >&5
  5560. echo "configure: failed program was:" >&5
  5561. cat conftest.$ac_ext >&5
  5562. rm -rf conftest*
  5563. eval "ac_cv_header_$ac_safe=no"
  5564. fi
  5565. rm -f conftest*
  5566. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5567. echo "$ac_t""yes" 1>&6
  5568. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5569. cat >> confdefs.h <<EOF
  5570. #define $ac_tr_hdr 1
  5571. EOF
  5572. else
  5573. echo "$ac_t""no" 1>&6
  5574. { echo "configure: error: *** Unable to locate TIFF includes." 1>&2; exit 1; }
  5575. fi
  5576. done
  5577. CPPFLAGS=$ac_save_cppflags
  5578. # With TIFF library directory
  5579. echo $ac_n "checking for location of TIFF library""... $ac_c" 1>&6
  5580. echo "configure:6790: checking for location of TIFF library" >&5
  5581. case "$with_tiff_libs" in
  5582. y | ye | yes | n | no)
  5583. { echo "configure: error: *** You must supply a directory to --with-tiff-libs." 1>&2; exit 1; }
  5584. ;;
  5585. esac
  5586. echo "$ac_t""$with_tiff_libs" 1>&6
  5587. if test -n "$with_tiff_libs"; then
  5588. for dir in $with_tiff_libs; do
  5589. if test -d "$dir"; then
  5590. TIFF_LIBRARY_DIRS="$TIFF_LIBRARY_DIRS -L$dir"
  5591. else
  5592. { echo "configure: error: *** TIFF library directory $dir does not exist." 1>&2; exit 1; }
  5593. fi
  5594. done
  5595. fi
  5596. ac_save_ldflags="$LDFLAGS"
  5597. LDFLAGS="$TIFF_LIBRARY_DIRS $LDFLAGS"
  5598. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5599. echo "configure:6821: checking for TIFFOpen in -ltiff" >&5
  5600. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5601. ac_save_LIBS="$LIBS"
  5602. LIBS="-ltiff $LIBS"
  5603. cat > conftest.$ac_ext <<EOF
  5604. #line 6827 "configure"
  5605. #include "confdefs.h"
  5606. /* Override any gcc2 internal prototype to avoid an error. */
  5607. /* We use char because int might match the return type of a gcc2
  5608. builtin and then its argument prototype would still apply. */
  5609. char TIFFOpen();
  5610. int main() {
  5611. TIFFOpen()
  5612. ; return 0; }
  5613. EOF
  5614. if { (eval echo configure:6838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5615. rm -rf conftest*
  5616. eval "ac_cv_lib_$ac_lib_var=yes"
  5617. else
  5618. echo "configure: failed program was:" >&5
  5619. cat conftest.$ac_ext >&5
  5620. rm -rf conftest*
  5621. eval "ac_cv_lib_$ac_lib_var=no"
  5622. fi
  5623. rm -f conftest*
  5624. LIBS="$ac_save_LIBS"
  5625. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5626. echo "$ac_t""yes" 1>&6
  5627. TIFFLIB="$TIFFLIB -ltiff "
  5628. else
  5629. echo "$ac_t""no" 1>&6
  5630. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5631. echo "configure:6857: checking for TIFFOpen in -ltiff" >&5
  5632. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5633. ac_save_LIBS="$LIBS"
  5634. LIBS="-ltiff $MATHLIB $LIBS"
  5635. cat > conftest.$ac_ext <<EOF
  5636. #line 6863 "configure"
  5637. #include "confdefs.h"
  5638. /* Override any gcc2 internal prototype to avoid an error. */
  5639. /* We use char because int might match the return type of a gcc2
  5640. builtin and then its argument prototype would still apply. */
  5641. char TIFFOpen();
  5642. int main() {
  5643. TIFFOpen()
  5644. ; return 0; }
  5645. EOF
  5646. if { (eval echo configure:6874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5647. rm -rf conftest*
  5648. eval "ac_cv_lib_$ac_lib_var=yes"
  5649. else
  5650. echo "configure: failed program was:" >&5
  5651. cat conftest.$ac_ext >&5
  5652. rm -rf conftest*
  5653. eval "ac_cv_lib_$ac_lib_var=no"
  5654. fi
  5655. rm -f conftest*
  5656. LIBS="$ac_save_LIBS"
  5657. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5658. echo "$ac_t""yes" 1>&6
  5659. TIFFLIB="$TIFFLIB -ltiff $MATHLIB"
  5660. else
  5661. echo "$ac_t""no" 1>&6
  5662. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5663. echo "configure:6893: checking for TIFFOpen in -ltiff" >&5
  5664. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5665. ac_save_LIBS="$LIBS"
  5666. LIBS="-ltiff $ZLIB $LIBS"
  5667. cat > conftest.$ac_ext <<EOF
  5668. #line 6899 "configure"
  5669. #include "confdefs.h"
  5670. /* Override any gcc2 internal prototype to avoid an error. */
  5671. /* We use char because int might match the return type of a gcc2
  5672. builtin and then its argument prototype would still apply. */
  5673. char TIFFOpen();
  5674. int main() {
  5675. TIFFOpen()
  5676. ; return 0; }
  5677. EOF
  5678. if { (eval echo configure:6910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5679. rm -rf conftest*
  5680. eval "ac_cv_lib_$ac_lib_var=yes"
  5681. else
  5682. echo "configure: failed program was:" >&5
  5683. cat conftest.$ac_ext >&5
  5684. rm -rf conftest*
  5685. eval "ac_cv_lib_$ac_lib_var=no"
  5686. fi
  5687. rm -f conftest*
  5688. LIBS="$ac_save_LIBS"
  5689. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5690. echo "$ac_t""yes" 1>&6
  5691. TIFFLIB="$TIFFLIB -ltiff $ZLIB"
  5692. else
  5693. echo "$ac_t""no" 1>&6
  5694. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5695. echo "configure:6929: checking for TIFFOpen in -ltiff" >&5
  5696. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5697. ac_save_LIBS="$LIBS"
  5698. LIBS="-ltiff $ZLIB $MATHLIB $LIBS"
  5699. cat > conftest.$ac_ext <<EOF
  5700. #line 6935 "configure"
  5701. #include "confdefs.h"
  5702. /* Override any gcc2 internal prototype to avoid an error. */
  5703. /* We use char because int might match the return type of a gcc2
  5704. builtin and then its argument prototype would still apply. */
  5705. char TIFFOpen();
  5706. int main() {
  5707. TIFFOpen()
  5708. ; return 0; }
  5709. EOF
  5710. if { (eval echo configure:6946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5711. rm -rf conftest*
  5712. eval "ac_cv_lib_$ac_lib_var=yes"
  5713. else
  5714. echo "configure: failed program was:" >&5
  5715. cat conftest.$ac_ext >&5
  5716. rm -rf conftest*
  5717. eval "ac_cv_lib_$ac_lib_var=no"
  5718. fi
  5719. rm -f conftest*
  5720. LIBS="$ac_save_LIBS"
  5721. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5722. echo "$ac_t""yes" 1>&6
  5723. TIFFLIB="$TIFFLIB -ltiff $ZLIB $MATHLIB"
  5724. else
  5725. echo "$ac_t""no" 1>&6
  5726. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5727. echo "configure:6965: checking for TIFFOpen in -ltiff" >&5
  5728. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5729. ac_save_LIBS="$LIBS"
  5730. LIBS="-ltiff $JPEGLIBPATH $JPEGLIB $LIBS"
  5731. cat > conftest.$ac_ext <<EOF
  5732. #line 6971 "configure"
  5733. #include "confdefs.h"
  5734. /* Override any gcc2 internal prototype to avoid an error. */
  5735. /* We use char because int might match the return type of a gcc2
  5736. builtin and then its argument prototype would still apply. */
  5737. char TIFFOpen();
  5738. int main() {
  5739. TIFFOpen()
  5740. ; return 0; }
  5741. EOF
  5742. if { (eval echo configure:6982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5743. rm -rf conftest*
  5744. eval "ac_cv_lib_$ac_lib_var=yes"
  5745. else
  5746. echo "configure: failed program was:" >&5
  5747. cat conftest.$ac_ext >&5
  5748. rm -rf conftest*
  5749. eval "ac_cv_lib_$ac_lib_var=no"
  5750. fi
  5751. rm -f conftest*
  5752. LIBS="$ac_save_LIBS"
  5753. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5754. echo "$ac_t""yes" 1>&6
  5755. TIFFLIB="$TIFFLIB -ltiff $JPEGLIBPATH $JPEGLIB"
  5756. else
  5757. echo "$ac_t""no" 1>&6
  5758. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5759. echo "configure:7001: checking for TIFFOpen in -ltiff" >&5
  5760. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5761. ac_save_LIBS="$LIBS"
  5762. LIBS="-ltiff $JPEGLIBPATH $JPEGLIB $MATHLIB $LIBS"
  5763. cat > conftest.$ac_ext <<EOF
  5764. #line 7007 "configure"
  5765. #include "confdefs.h"
  5766. /* Override any gcc2 internal prototype to avoid an error. */
  5767. /* We use char because int might match the return type of a gcc2
  5768. builtin and then its argument prototype would still apply. */
  5769. char TIFFOpen();
  5770. int main() {
  5771. TIFFOpen()
  5772. ; return 0; }
  5773. EOF
  5774. if { (eval echo configure:7018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5775. rm -rf conftest*
  5776. eval "ac_cv_lib_$ac_lib_var=yes"
  5777. else
  5778. echo "configure: failed program was:" >&5
  5779. cat conftest.$ac_ext >&5
  5780. rm -rf conftest*
  5781. eval "ac_cv_lib_$ac_lib_var=no"
  5782. fi
  5783. rm -f conftest*
  5784. LIBS="$ac_save_LIBS"
  5785. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5786. echo "$ac_t""yes" 1>&6
  5787. TIFFLIB="$TIFFLIB -ltiff $JPEGLIBPATH $JPEGLIB $MATHLIB"
  5788. else
  5789. echo "$ac_t""no" 1>&6
  5790. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5791. echo "configure:7037: checking for TIFFOpen in -ltiff" >&5
  5792. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5793. ac_save_LIBS="$LIBS"
  5794. LIBS="-ltiff $JPEGLIBPATH $JPEGLIB $ZLIB $LIBS"
  5795. cat > conftest.$ac_ext <<EOF
  5796. #line 7043 "configure"
  5797. #include "confdefs.h"
  5798. /* Override any gcc2 internal prototype to avoid an error. */
  5799. /* We use char because int might match the return type of a gcc2
  5800. builtin and then its argument prototype would still apply. */
  5801. char TIFFOpen();
  5802. int main() {
  5803. TIFFOpen()
  5804. ; return 0; }
  5805. EOF
  5806. if { (eval echo configure:7054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5807. rm -rf conftest*
  5808. eval "ac_cv_lib_$ac_lib_var=yes"
  5809. else
  5810. echo "configure: failed program was:" >&5
  5811. cat conftest.$ac_ext >&5
  5812. rm -rf conftest*
  5813. eval "ac_cv_lib_$ac_lib_var=no"
  5814. fi
  5815. rm -f conftest*
  5816. LIBS="$ac_save_LIBS"
  5817. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5818. echo "$ac_t""yes" 1>&6
  5819. TIFFLIB="$TIFFLIB -ltiff $JPEGLIBPATH $JPEGLIB $ZLIB"
  5820. else
  5821. echo "$ac_t""no" 1>&6
  5822. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5823. echo "configure:7073: checking for TIFFOpen in -ltiff" >&5
  5824. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5825. ac_save_LIBS="$LIBS"
  5826. LIBS="-ltiff $JPEGLIBPATH $JPEGLIB $ZLIB $MATHLIB $LIBS"
  5827. cat > conftest.$ac_ext <<EOF
  5828. #line 7079 "configure"
  5829. #include "confdefs.h"
  5830. /* Override any gcc2 internal prototype to avoid an error. */
  5831. /* We use char because int might match the return type of a gcc2
  5832. builtin and then its argument prototype would still apply. */
  5833. char TIFFOpen();
  5834. int main() {
  5835. TIFFOpen()
  5836. ; return 0; }
  5837. EOF
  5838. if { (eval echo configure:7090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5839. rm -rf conftest*
  5840. eval "ac_cv_lib_$ac_lib_var=yes"
  5841. else
  5842. echo "configure: failed program was:" >&5
  5843. cat conftest.$ac_ext >&5
  5844. rm -rf conftest*
  5845. eval "ac_cv_lib_$ac_lib_var=no"
  5846. fi
  5847. rm -f conftest*
  5848. LIBS="$ac_save_LIBS"
  5849. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5850. echo "$ac_t""yes" 1>&6
  5851. TIFFLIB="$TIFFLIB -ltiff $JPEGLIBPATH $JPEGLIB $ZLIB $MATHLIB"
  5852. else
  5853. echo "$ac_t""no" 1>&6
  5854. LDFLAGS=${ac_save_ldflags}
  5855. { echo "configure: error: *** Unable to locate TIFF library." 1>&2; exit 1; }
  5856. fi
  5857. fi
  5858. fi
  5859. fi
  5860. fi
  5861. fi
  5862. fi
  5863. fi
  5864. LDFLAGS=${ac_save_ldflags}
  5865. fi # $USE_TIFF
  5866. # Done checking TIFF
  5867. # Enable PNG option
  5868. echo $ac_n "checking whether to use PNG""... $ac_c" 1>&6
  5869. echo "configure:7188: checking whether to use PNG" >&5
  5870. echo "$ac_t"""$with_png"" 1>&6
  5871. case "$with_png" in
  5872. "no") USE_PNG= ;;
  5873. "yes") USE_PNG="1" ;;
  5874. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  5875. esac
  5876. PNGINC=
  5877. PNGLIB=
  5878. if test -n "$USE_PNG"; then
  5879. # With PNG includes directory
  5880. echo $ac_n "checking for location of PNG includes""... $ac_c" 1>&6
  5881. echo "configure:7207: checking for location of PNG includes" >&5
  5882. case "$with_png_includes" in
  5883. y | ye | yes | n | no)
  5884. { echo "configure: error: *** You must supply a directory to --with-png-includes." 1>&2; exit 1; }
  5885. ;;
  5886. esac
  5887. echo "$ac_t""$with_png_includes" 1>&6
  5888. if test -n "$with_png_includes" ; then
  5889. for dir in $with_png_includes; do
  5890. if test -d "$dir"; then
  5891. PNGINC="$PNGINC -I$dir"
  5892. else
  5893. { echo "configure: error: *** PNG includes directory $dir does not exist." 1>&2; exit 1; }
  5894. fi
  5895. done
  5896. fi
  5897. ac_save_cppflags="$CPPFLAGS"
  5898. CPPFLAGS="$PNGINC $CPPFLAGS"
  5899. for ac_hdr in png.h
  5900. do
  5901. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5902. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5903. echo "configure:7233: checking for $ac_hdr" >&5
  5904. cat > conftest.$ac_ext <<EOF
  5905. #line 7236 "configure"
  5906. #include "confdefs.h"
  5907. #include <$ac_hdr>
  5908. EOF
  5909. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5910. { (eval echo configure:7241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5911. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5912. if test -z "$ac_err"; then
  5913. rm -rf conftest*
  5914. eval "ac_cv_header_$ac_safe=yes"
  5915. else
  5916. echo "$ac_err" >&5
  5917. echo "configure: failed program was:" >&5
  5918. cat conftest.$ac_ext >&5
  5919. rm -rf conftest*
  5920. eval "ac_cv_header_$ac_safe=no"
  5921. fi
  5922. rm -f conftest*
  5923. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5924. echo "$ac_t""yes" 1>&6
  5925. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5926. cat >> confdefs.h <<EOF
  5927. #define $ac_tr_hdr 1
  5928. EOF
  5929. else
  5930. echo "$ac_t""no" 1>&6
  5931. { echo "configure: error: *** Unable to locate PNG includes." 1>&2; exit 1; }
  5932. fi
  5933. done
  5934. CPPFLAGS=$ac_save_cppflags
  5935. # With PNG library directory
  5936. echo $ac_n "checking for location of PNG library""... $ac_c" 1>&6
  5937. echo "configure:7275: checking for location of PNG library" >&5
  5938. case "$with_png_libs" in
  5939. y | ye | yes | n | no)
  5940. { echo "configure: error: *** You must supply a directory to --with-png-libs." 1>&2; exit 1; }
  5941. ;;
  5942. esac
  5943. echo "$ac_t""$with_png_libs" 1>&6
  5944. if test -n "$with_png_libs"; then
  5945. for dir in $with_png_libs; do
  5946. if test -d "$dir"; then
  5947. PNGLIB="$PNGLIB -L$dir"
  5948. else
  5949. { echo "configure: error: *** PNG library directory $dir does not exist." 1>&2; exit 1; }
  5950. fi
  5951. done
  5952. fi
  5953. ac_save_ldflags="$LDFLAGS"
  5954. LDFLAGS="$PNGLIB $LDFLAGS"
  5955. echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
  5956. echo "configure:7300: checking for png_read_image in -lpng" >&5
  5957. ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
  5958. ac_save_LIBS="$LIBS"
  5959. LIBS="-lpng $ZLIB $MATHLIB $LIBS"
  5960. cat > conftest.$ac_ext <<EOF
  5961. #line 7306 "configure"
  5962. #include "confdefs.h"
  5963. /* Override any gcc2 internal prototype to avoid an error. */
  5964. /* We use char because int might match the return type of a gcc2
  5965. builtin and then its argument prototype would still apply. */
  5966. char png_read_image();
  5967. int main() {
  5968. png_read_image()
  5969. ; return 0; }
  5970. EOF
  5971. if { (eval echo configure:7317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5972. rm -rf conftest*
  5973. eval "ac_cv_lib_$ac_lib_var=yes"
  5974. else
  5975. echo "configure: failed program was:" >&5
  5976. cat conftest.$ac_ext >&5
  5977. rm -rf conftest*
  5978. eval "ac_cv_lib_$ac_lib_var=no"
  5979. fi
  5980. rm -f conftest*
  5981. LIBS="$ac_save_LIBS"
  5982. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5983. echo "$ac_t""yes" 1>&6
  5984. PNGLIB="$PNGLIB -lpng $ZLIB $MATHLIB"
  5985. else
  5986. echo "$ac_t""no" 1>&6
  5987. LDFLAGS=${ac_save_ldflags}
  5988. { echo "configure: error: *** Unable to locate PNG library." 1>&2; exit 1; }
  5989. fi
  5990. LDFLAGS=${ac_save_ldflags}
  5991. fi # $USE_PNG
  5992. # Done checking PNG
  5993. # Enable PostgreSQL option
  5994. echo $ac_n "checking whether to use PostgreSQL""... $ac_c" 1>&6
  5995. echo "configure:7359: checking whether to use PostgreSQL" >&5
  5996. echo "$ac_t"""$with_postgres"" 1>&6
  5997. case "$with_postgres" in
  5998. "no") USE_POSTGRES= ;;
  5999. "yes") USE_POSTGRES="1" ;;
  6000. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6001. esac
  6002. if test -n "$USE_POSTGRES"; then
  6003. cat >> confdefs.h <<\EOF
  6004. #define HAVE_POSTGRES 1
  6005. EOF
  6006. fi # $USE_POSTGRES
  6007. PQINCPATH=
  6008. PQLIBPATH=
  6009. PQLIB=
  6010. if test -n "$USE_POSTGRES"; then
  6011. # With PostgreSQL includes directory
  6012. echo $ac_n "checking for location of PostgreSQL includes""... $ac_c" 1>&6
  6013. echo "configure:7386: checking for location of PostgreSQL includes" >&5
  6014. case "$with_postgres_includes" in
  6015. y | ye | yes | n | no)
  6016. { echo "configure: error: *** You must supply a directory to --with-postgres-includes." 1>&2; exit 1; }
  6017. ;;
  6018. esac
  6019. echo "$ac_t""$with_postgres_includes" 1>&6
  6020. if test -n "$with_postgres_includes" ; then
  6021. for dir in $with_postgres_includes; do
  6022. if test -d "$dir"; then
  6023. PQINCPATH="$PQINCPATH -I$dir"
  6024. else
  6025. { echo "configure: error: *** PostgreSQL includes directory $dir does not exist." 1>&2; exit 1; }
  6026. fi
  6027. done
  6028. fi
  6029. ac_save_cppflags="$CPPFLAGS"
  6030. CPPFLAGS="$PQINCPATH $CPPFLAGS"
  6031. for ac_hdr in libpq-fe.h
  6032. do
  6033. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6034. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6035. echo "configure:7412: checking for $ac_hdr" >&5
  6036. cat > conftest.$ac_ext <<EOF
  6037. #line 7415 "configure"
  6038. #include "confdefs.h"
  6039. #include <$ac_hdr>
  6040. EOF
  6041. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6042. { (eval echo configure:7420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6043. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6044. if test -z "$ac_err"; then
  6045. rm -rf conftest*
  6046. eval "ac_cv_header_$ac_safe=yes"
  6047. else
  6048. echo "$ac_err" >&5
  6049. echo "configure: failed program was:" >&5
  6050. cat conftest.$ac_ext >&5
  6051. rm -rf conftest*
  6052. eval "ac_cv_header_$ac_safe=no"
  6053. fi
  6054. rm -f conftest*
  6055. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6056. echo "$ac_t""yes" 1>&6
  6057. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6058. cat >> confdefs.h <<EOF
  6059. #define $ac_tr_hdr 1
  6060. EOF
  6061. else
  6062. echo "$ac_t""no" 1>&6
  6063. { echo "configure: error: *** Unable to locate PostgreSQL includes." 1>&2; exit 1; }
  6064. fi
  6065. done
  6066. CPPFLAGS=$ac_save_cppflags
  6067. fi # $USE_POSTGRES
  6068. if test -n "$USE_POSTGRES"; then
  6069. # With PostgreSQL library directory
  6070. echo $ac_n "checking for location of PostgreSQL library""... $ac_c" 1>&6
  6071. echo "configure:7458: checking for location of PostgreSQL library" >&5
  6072. case "$with_postgres_libs" in
  6073. y | ye | yes | n | no)
  6074. { echo "configure: error: *** You must supply a directory to --with-postgres-libs." 1>&2; exit 1; }
  6075. ;;
  6076. esac
  6077. echo "$ac_t""$with_postgres_libs" 1>&6
  6078. if test -n "$with_postgres_libs"; then
  6079. for dir in $with_postgres_libs; do
  6080. if test -d "$dir"; then
  6081. PQLIBPATH="$PQLIBPATH -L$dir"
  6082. else
  6083. { echo "configure: error: *** PostgreSQL library directory $dir does not exist." 1>&2; exit 1; }
  6084. fi
  6085. done
  6086. fi
  6087. ac_save_ldflags="$LDFLAGS"
  6088. LDFLAGS="$PQLIBPATH $LDFLAGS"
  6089. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6090. echo "configure:7487: checking for PQsetdbLogin in -lpq" >&5
  6091. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6092. ac_save_LIBS="$LIBS"
  6093. LIBS="-lpq $LIBS"
  6094. cat > conftest.$ac_ext <<EOF
  6095. #line 7493 "configure"
  6096. #include "confdefs.h"
  6097. /* Override any gcc2 internal prototype to avoid an error. */
  6098. /* We use char because int might match the return type of a gcc2
  6099. builtin and then its argument prototype would still apply. */
  6100. char PQsetdbLogin();
  6101. int main() {
  6102. PQsetdbLogin()
  6103. ; return 0; }
  6104. EOF
  6105. if { (eval echo configure:7504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6106. rm -rf conftest*
  6107. eval "ac_cv_lib_$ac_lib_var=yes"
  6108. else
  6109. echo "configure: failed program was:" >&5
  6110. cat conftest.$ac_ext >&5
  6111. rm -rf conftest*
  6112. eval "ac_cv_lib_$ac_lib_var=no"
  6113. fi
  6114. rm -f conftest*
  6115. LIBS="$ac_save_LIBS"
  6116. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6117. echo "$ac_t""yes" 1>&6
  6118. PQLIB="$PQLIB -lpq "
  6119. else
  6120. echo "$ac_t""no" 1>&6
  6121. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6122. echo "configure:7523: checking for PQsetdbLogin in -lpq" >&5
  6123. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6124. ac_save_LIBS="$LIBS"
  6125. LIBS="-lpq -lssl -lcrypto $LIBS"
  6126. cat > conftest.$ac_ext <<EOF
  6127. #line 7529 "configure"
  6128. #include "confdefs.h"
  6129. /* Override any gcc2 internal prototype to avoid an error. */
  6130. /* We use char because int might match the return type of a gcc2
  6131. builtin and then its argument prototype would still apply. */
  6132. char PQsetdbLogin();
  6133. int main() {
  6134. PQsetdbLogin()
  6135. ; return 0; }
  6136. EOF
  6137. if { (eval echo configure:7540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6138. rm -rf conftest*
  6139. eval "ac_cv_lib_$ac_lib_var=yes"
  6140. else
  6141. echo "configure: failed program was:" >&5
  6142. cat conftest.$ac_ext >&5
  6143. rm -rf conftest*
  6144. eval "ac_cv_lib_$ac_lib_var=no"
  6145. fi
  6146. rm -f conftest*
  6147. LIBS="$ac_save_LIBS"
  6148. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6149. echo "$ac_t""yes" 1>&6
  6150. PQLIB="$PQLIB -lpq -lssl -lcrypto"
  6151. else
  6152. echo "$ac_t""no" 1>&6
  6153. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6154. echo "configure:7559: checking for PQsetdbLogin in -lpq" >&5
  6155. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6156. ac_save_LIBS="$LIBS"
  6157. LIBS="-lpq -lcrypt $LIBS"
  6158. cat > conftest.$ac_ext <<EOF
  6159. #line 7565 "configure"
  6160. #include "confdefs.h"
  6161. /* Override any gcc2 internal prototype to avoid an error. */
  6162. /* We use char because int might match the return type of a gcc2
  6163. builtin and then its argument prototype would still apply. */
  6164. char PQsetdbLogin();
  6165. int main() {
  6166. PQsetdbLogin()
  6167. ; return 0; }
  6168. EOF
  6169. if { (eval echo configure:7576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6170. rm -rf conftest*
  6171. eval "ac_cv_lib_$ac_lib_var=yes"
  6172. else
  6173. echo "configure: failed program was:" >&5
  6174. cat conftest.$ac_ext >&5
  6175. rm -rf conftest*
  6176. eval "ac_cv_lib_$ac_lib_var=no"
  6177. fi
  6178. rm -f conftest*
  6179. LIBS="$ac_save_LIBS"
  6180. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6181. echo "$ac_t""yes" 1>&6
  6182. PQLIB="$PQLIB -lpq -lcrypt"
  6183. else
  6184. echo "$ac_t""no" 1>&6
  6185. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6186. echo "configure:7595: checking for PQsetdbLogin in -lpq" >&5
  6187. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6188. ac_save_LIBS="$LIBS"
  6189. LIBS="-lpq -lcrypt -lssl -lcrypto $LIBS"
  6190. cat > conftest.$ac_ext <<EOF
  6191. #line 7601 "configure"
  6192. #include "confdefs.h"
  6193. /* Override any gcc2 internal prototype to avoid an error. */
  6194. /* We use char because int might match the return type of a gcc2
  6195. builtin and then its argument prototype would still apply. */
  6196. char PQsetdbLogin();
  6197. int main() {
  6198. PQsetdbLogin()
  6199. ; return 0; }
  6200. EOF
  6201. if { (eval echo configure:7612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6202. rm -rf conftest*
  6203. eval "ac_cv_lib_$ac_lib_var=yes"
  6204. else
  6205. echo "configure: failed program was:" >&5
  6206. cat conftest.$ac_ext >&5
  6207. rm -rf conftest*
  6208. eval "ac_cv_lib_$ac_lib_var=no"
  6209. fi
  6210. rm -f conftest*
  6211. LIBS="$ac_save_LIBS"
  6212. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6213. echo "$ac_t""yes" 1>&6
  6214. PQLIB="$PQLIB -lpq -lcrypt -lssl -lcrypto"
  6215. else
  6216. echo "$ac_t""no" 1>&6
  6217. LDFLAGS=${ac_save_ldflags}
  6218. { echo "configure: error: *** Unable to locate PostgreSQL library." 1>&2; exit 1; }
  6219. fi
  6220. fi
  6221. fi
  6222. fi
  6223. LDFLAGS=${ac_save_ldflags}
  6224. ac_save_ldflags="$LDFLAGS"
  6225. LDFLAGS="$LDFLAGS $PQLIBPATH"
  6226. echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
  6227. echo "configure:7669: checking for PQcmdTuples in -lpq" >&5
  6228. ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
  6229. ac_save_LIBS="$LIBS"
  6230. LIBS="-lpq $LIBS"
  6231. cat > conftest.$ac_ext <<EOF
  6232. #line 7675 "configure"
  6233. #include "confdefs.h"
  6234. /* Override any gcc2 internal prototype to avoid an error. */
  6235. /* We use char because int might match the return type of a gcc2
  6236. builtin and then its argument prototype would still apply. */
  6237. char PQcmdTuples();
  6238. int main() {
  6239. PQcmdTuples()
  6240. ; return 0; }
  6241. EOF
  6242. if { (eval echo configure:7686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6243. rm -rf conftest*
  6244. eval "ac_cv_lib_$ac_lib_var=yes"
  6245. else
  6246. echo "configure: failed program was:" >&5
  6247. cat conftest.$ac_ext >&5
  6248. rm -rf conftest*
  6249. eval "ac_cv_lib_$ac_lib_var=no"
  6250. fi
  6251. rm -f conftest*
  6252. LIBS="$ac_save_LIBS"
  6253. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6254. echo "$ac_t""yes" 1>&6
  6255. cat >> confdefs.h <<\EOF
  6256. #define HAVE_PQCMDTUPLES 1
  6257. EOF
  6258. else
  6259. echo "$ac_t""no" 1>&6
  6260. echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
  6261. echo "configure:7708: checking for PQcmdTuples in -lpq" >&5
  6262. ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
  6263. ac_save_LIBS="$LIBS"
  6264. LIBS="-lpq -lcrypt $LIBS"
  6265. cat > conftest.$ac_ext <<EOF
  6266. #line 7714 "configure"
  6267. #include "confdefs.h"
  6268. /* Override any gcc2 internal prototype to avoid an error. */
  6269. /* We use char because int might match the return type of a gcc2
  6270. builtin and then its argument prototype would still apply. */
  6271. char PQcmdTuples();
  6272. int main() {
  6273. PQcmdTuples()
  6274. ; return 0; }
  6275. EOF
  6276. if { (eval echo configure:7725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6277. rm -rf conftest*
  6278. eval "ac_cv_lib_$ac_lib_var=yes"
  6279. else
  6280. echo "configure: failed program was:" >&5
  6281. cat conftest.$ac_ext >&5
  6282. rm -rf conftest*
  6283. eval "ac_cv_lib_$ac_lib_var=no"
  6284. fi
  6285. rm -f conftest*
  6286. LIBS="$ac_save_LIBS"
  6287. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6288. echo "$ac_t""yes" 1>&6
  6289. cat >> confdefs.h <<\EOF
  6290. #define HAVE_PQCMDTUPLES 1
  6291. EOF
  6292. else
  6293. echo "$ac_t""no" 1>&6
  6294. fi
  6295. fi
  6296. LDFLAGS="${ac_save_ldflags}"
  6297. fi # $USE_POSTGRES
  6298. # Done checking PostgreSQL
  6299. # Enable MySQL option
  6300. echo $ac_n "checking whether to use MySQL""... $ac_c" 1>&6
  6301. echo "configure:7768: checking whether to use MySQL" >&5
  6302. echo "$ac_t"""$with_mysql"" 1>&6
  6303. case "$with_mysql" in
  6304. "no") USE_MYSQL= ;;
  6305. "yes") USE_MYSQL="1" ;;
  6306. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6307. esac
  6308. MYSQLINCPATH=
  6309. MYSQLLIBPATH=
  6310. MYSQLLIB=
  6311. if test -n "$USE_MYSQL"; then
  6312. # With MySQL includes directory
  6313. echo $ac_n "checking for location of MySQL includes""... $ac_c" 1>&6
  6314. echo "configure:7788: checking for location of MySQL includes" >&5
  6315. case "$with_mysql_includes" in
  6316. y | ye | yes | n | no)
  6317. { echo "configure: error: *** You must supply a directory to --with-mysql-includes." 1>&2; exit 1; }
  6318. ;;
  6319. esac
  6320. echo "$ac_t""$with_mysql_includes" 1>&6
  6321. if test -n "$with_mysql_includes" ; then
  6322. for dir in $with_mysql_includes; do
  6323. if test -d "$dir"; then
  6324. MYSQLINCPATH="$MYSQLINCPATH -I$dir"
  6325. else
  6326. { echo "configure: error: *** MySQL includes directory $dir does not exist." 1>&2; exit 1; }
  6327. fi
  6328. done
  6329. fi
  6330. ac_save_cppflags="$CPPFLAGS"
  6331. CPPFLAGS="$MYSQLINCPATH $CPPFLAGS"
  6332. for ac_hdr in mysql.h
  6333. do
  6334. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6335. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6336. echo "configure:7814: checking for $ac_hdr" >&5
  6337. cat > conftest.$ac_ext <<EOF
  6338. #line 7817 "configure"
  6339. #include "confdefs.h"
  6340. #include <$ac_hdr>
  6341. EOF
  6342. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6343. { (eval echo configure:7822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6344. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6345. if test -z "$ac_err"; then
  6346. rm -rf conftest*
  6347. eval "ac_cv_header_$ac_safe=yes"
  6348. else
  6349. echo "$ac_err" >&5
  6350. echo "configure: failed program was:" >&5
  6351. cat conftest.$ac_ext >&5
  6352. rm -rf conftest*
  6353. eval "ac_cv_header_$ac_safe=no"
  6354. fi
  6355. rm -f conftest*
  6356. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6357. echo "$ac_t""yes" 1>&6
  6358. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6359. cat >> confdefs.h <<EOF
  6360. #define $ac_tr_hdr 1
  6361. EOF
  6362. else
  6363. echo "$ac_t""no" 1>&6
  6364. { echo "configure: error: *** Unable to locate MySQL includes." 1>&2; exit 1; }
  6365. fi
  6366. done
  6367. CPPFLAGS=$ac_save_cppflags
  6368. fi # $USE_MYSQL
  6369. if test -n "$USE_MYSQL"; then
  6370. # With MySQL library directory
  6371. echo $ac_n "checking for location of MySQL library""... $ac_c" 1>&6
  6372. echo "configure:7859: checking for location of MySQL library" >&5
  6373. case "$with_mysql_libs" in
  6374. y | ye | yes | n | no)
  6375. { echo "configure: error: *** You must supply a directory to --with-mysql-libs." 1>&2; exit 1; }
  6376. ;;
  6377. esac
  6378. echo "$ac_t""$with_mysql_libs" 1>&6
  6379. if test -n "$with_mysql_libs"; then
  6380. for dir in $with_mysql_libs; do
  6381. if test -d "$dir"; then
  6382. MYSQLLIBPATH="$MYSQLLIBPATH -L$dir"
  6383. else
  6384. { echo "configure: error: *** MySQL library directory $dir does not exist." 1>&2; exit 1; }
  6385. fi
  6386. done
  6387. fi
  6388. ac_save_ldflags="$LDFLAGS"
  6389. LDFLAGS="$MYSQLLIBPATH $LDFLAGS"
  6390. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6391. echo "configure:7890: checking for mysql_query in -lmysqlclient" >&5
  6392. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6393. ac_save_LIBS="$LIBS"
  6394. LIBS="-lmysqlclient $LIBS"
  6395. cat > conftest.$ac_ext <<EOF
  6396. #line 7896 "configure"
  6397. #include "confdefs.h"
  6398. /* Override any gcc2 internal prototype to avoid an error. */
  6399. /* We use char because int might match the return type of a gcc2
  6400. builtin and then its argument prototype would still apply. */
  6401. char mysql_query();
  6402. int main() {
  6403. mysql_query()
  6404. ; return 0; }
  6405. EOF
  6406. if { (eval echo configure:7907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6407. rm -rf conftest*
  6408. eval "ac_cv_lib_$ac_lib_var=yes"
  6409. else
  6410. echo "configure: failed program was:" >&5
  6411. cat conftest.$ac_ext >&5
  6412. rm -rf conftest*
  6413. eval "ac_cv_lib_$ac_lib_var=no"
  6414. fi
  6415. rm -f conftest*
  6416. LIBS="$ac_save_LIBS"
  6417. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6418. echo "$ac_t""yes" 1>&6
  6419. MYSQLLIB="$MYSQLLIB -lmysqlclient "
  6420. else
  6421. echo "$ac_t""no" 1>&6
  6422. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6423. echo "configure:7926: checking for mysql_query in -lmysqlclient" >&5
  6424. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6425. ac_save_LIBS="$LIBS"
  6426. LIBS="-lmysqlclient $MATHLIB $LIBS"
  6427. cat > conftest.$ac_ext <<EOF
  6428. #line 7932 "configure"
  6429. #include "confdefs.h"
  6430. /* Override any gcc2 internal prototype to avoid an error. */
  6431. /* We use char because int might match the return type of a gcc2
  6432. builtin and then its argument prototype would still apply. */
  6433. char mysql_query();
  6434. int main() {
  6435. mysql_query()
  6436. ; return 0; }
  6437. EOF
  6438. if { (eval echo configure:7943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6439. rm -rf conftest*
  6440. eval "ac_cv_lib_$ac_lib_var=yes"
  6441. else
  6442. echo "configure: failed program was:" >&5
  6443. cat conftest.$ac_ext >&5
  6444. rm -rf conftest*
  6445. eval "ac_cv_lib_$ac_lib_var=no"
  6446. fi
  6447. rm -f conftest*
  6448. LIBS="$ac_save_LIBS"
  6449. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6450. echo "$ac_t""yes" 1>&6
  6451. MYSQLLIB="$MYSQLLIB -lmysqlclient $MATHLIB"
  6452. else
  6453. echo "$ac_t""no" 1>&6
  6454. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6455. echo "configure:7962: checking for mysql_query in -lmysqlclient" >&5
  6456. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6457. ac_save_LIBS="$LIBS"
  6458. LIBS="-lmysqlclient $SOCKLIB $LIBS"
  6459. cat > conftest.$ac_ext <<EOF
  6460. #line 7968 "configure"
  6461. #include "confdefs.h"
  6462. /* Override any gcc2 internal prototype to avoid an error. */
  6463. /* We use char because int might match the return type of a gcc2
  6464. builtin and then its argument prototype would still apply. */
  6465. char mysql_query();
  6466. int main() {
  6467. mysql_query()
  6468. ; return 0; }
  6469. EOF
  6470. if { (eval echo configure:7979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6471. rm -rf conftest*
  6472. eval "ac_cv_lib_$ac_lib_var=yes"
  6473. else
  6474. echo "configure: failed program was:" >&5
  6475. cat conftest.$ac_ext >&5
  6476. rm -rf conftest*
  6477. eval "ac_cv_lib_$ac_lib_var=no"
  6478. fi
  6479. rm -f conftest*
  6480. LIBS="$ac_save_LIBS"
  6481. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6482. echo "$ac_t""yes" 1>&6
  6483. MYSQLLIB="$MYSQLLIB -lmysqlclient $SOCKLIB"
  6484. else
  6485. echo "$ac_t""no" 1>&6
  6486. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6487. echo "configure:7998: checking for mysql_query in -lmysqlclient" >&5
  6488. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6489. ac_save_LIBS="$LIBS"
  6490. LIBS="-lmysqlclient $SOCKLIB $MATHLIB $LIBS"
  6491. cat > conftest.$ac_ext <<EOF
  6492. #line 8004 "configure"
  6493. #include "confdefs.h"
  6494. /* Override any gcc2 internal prototype to avoid an error. */
  6495. /* We use char because int might match the return type of a gcc2
  6496. builtin and then its argument prototype would still apply. */
  6497. char mysql_query();
  6498. int main() {
  6499. mysql_query()
  6500. ; return 0; }
  6501. EOF
  6502. if { (eval echo configure:8015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6503. rm -rf conftest*
  6504. eval "ac_cv_lib_$ac_lib_var=yes"
  6505. else
  6506. echo "configure: failed program was:" >&5
  6507. cat conftest.$ac_ext >&5
  6508. rm -rf conftest*
  6509. eval "ac_cv_lib_$ac_lib_var=no"
  6510. fi
  6511. rm -f conftest*
  6512. LIBS="$ac_save_LIBS"
  6513. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6514. echo "$ac_t""yes" 1>&6
  6515. MYSQLLIB="$MYSQLLIB -lmysqlclient $SOCKLIB $MATHLIB"
  6516. else
  6517. echo "$ac_t""no" 1>&6
  6518. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6519. echo "configure:8034: checking for mysql_query in -lmysqlclient" >&5
  6520. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6521. ac_save_LIBS="$LIBS"
  6522. LIBS="-lmysqlclient $ZLIB $LIBS"
  6523. cat > conftest.$ac_ext <<EOF
  6524. #line 8040 "configure"
  6525. #include "confdefs.h"
  6526. /* Override any gcc2 internal prototype to avoid an error. */
  6527. /* We use char because int might match the return type of a gcc2
  6528. builtin and then its argument prototype would still apply. */
  6529. char mysql_query();
  6530. int main() {
  6531. mysql_query()
  6532. ; return 0; }
  6533. EOF
  6534. if { (eval echo configure:8051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6535. rm -rf conftest*
  6536. eval "ac_cv_lib_$ac_lib_var=yes"
  6537. else
  6538. echo "configure: failed program was:" >&5
  6539. cat conftest.$ac_ext >&5
  6540. rm -rf conftest*
  6541. eval "ac_cv_lib_$ac_lib_var=no"
  6542. fi
  6543. rm -f conftest*
  6544. LIBS="$ac_save_LIBS"
  6545. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6546. echo "$ac_t""yes" 1>&6
  6547. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB"
  6548. else
  6549. echo "$ac_t""no" 1>&6
  6550. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6551. echo "configure:8070: checking for mysql_query in -lmysqlclient" >&5
  6552. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6553. ac_save_LIBS="$LIBS"
  6554. LIBS="-lmysqlclient $ZLIB $MATHLIB $LIBS"
  6555. cat > conftest.$ac_ext <<EOF
  6556. #line 8076 "configure"
  6557. #include "confdefs.h"
  6558. /* Override any gcc2 internal prototype to avoid an error. */
  6559. /* We use char because int might match the return type of a gcc2
  6560. builtin and then its argument prototype would still apply. */
  6561. char mysql_query();
  6562. int main() {
  6563. mysql_query()
  6564. ; return 0; }
  6565. EOF
  6566. if { (eval echo configure:8087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6567. rm -rf conftest*
  6568. eval "ac_cv_lib_$ac_lib_var=yes"
  6569. else
  6570. echo "configure: failed program was:" >&5
  6571. cat conftest.$ac_ext >&5
  6572. rm -rf conftest*
  6573. eval "ac_cv_lib_$ac_lib_var=no"
  6574. fi
  6575. rm -f conftest*
  6576. LIBS="$ac_save_LIBS"
  6577. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6578. echo "$ac_t""yes" 1>&6
  6579. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $MATHLIB"
  6580. else
  6581. echo "$ac_t""no" 1>&6
  6582. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6583. echo "configure:8106: checking for mysql_query in -lmysqlclient" >&5
  6584. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6585. ac_save_LIBS="$LIBS"
  6586. LIBS="-lmysqlclient $ZLIB $SOCKLIB $LIBS"
  6587. cat > conftest.$ac_ext <<EOF
  6588. #line 8112 "configure"
  6589. #include "confdefs.h"
  6590. /* Override any gcc2 internal prototype to avoid an error. */
  6591. /* We use char because int might match the return type of a gcc2
  6592. builtin and then its argument prototype would still apply. */
  6593. char mysql_query();
  6594. int main() {
  6595. mysql_query()
  6596. ; return 0; }
  6597. EOF
  6598. if { (eval echo configure:8123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6599. rm -rf conftest*
  6600. eval "ac_cv_lib_$ac_lib_var=yes"
  6601. else
  6602. echo "configure: failed program was:" >&5
  6603. cat conftest.$ac_ext >&5
  6604. rm -rf conftest*
  6605. eval "ac_cv_lib_$ac_lib_var=no"
  6606. fi
  6607. rm -f conftest*
  6608. LIBS="$ac_save_LIBS"
  6609. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6610. echo "$ac_t""yes" 1>&6
  6611. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $SOCKLIB"
  6612. else
  6613. echo "$ac_t""no" 1>&6
  6614. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6615. echo "configure:8142: checking for mysql_query in -lmysqlclient" >&5
  6616. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6617. ac_save_LIBS="$LIBS"
  6618. LIBS="-lmysqlclient $ZLIB $SOCKLIB $MATHLIB $LIBS"
  6619. cat > conftest.$ac_ext <<EOF
  6620. #line 8148 "configure"
  6621. #include "confdefs.h"
  6622. /* Override any gcc2 internal prototype to avoid an error. */
  6623. /* We use char because int might match the return type of a gcc2
  6624. builtin and then its argument prototype would still apply. */
  6625. char mysql_query();
  6626. int main() {
  6627. mysql_query()
  6628. ; return 0; }
  6629. EOF
  6630. if { (eval echo configure:8159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6631. rm -rf conftest*
  6632. eval "ac_cv_lib_$ac_lib_var=yes"
  6633. else
  6634. echo "configure: failed program was:" >&5
  6635. cat conftest.$ac_ext >&5
  6636. rm -rf conftest*
  6637. eval "ac_cv_lib_$ac_lib_var=no"
  6638. fi
  6639. rm -f conftest*
  6640. LIBS="$ac_save_LIBS"
  6641. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6642. echo "$ac_t""yes" 1>&6
  6643. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $SOCKLIB $MATHLIB"
  6644. else
  6645. echo "$ac_t""no" 1>&6
  6646. LDFLAGS=${ac_save_ldflags}
  6647. { echo "configure: error: *** Unable to locate MySQL library." 1>&2; exit 1; }
  6648. fi
  6649. fi
  6650. fi
  6651. fi
  6652. fi
  6653. fi
  6654. fi
  6655. fi
  6656. LDFLAGS=${ac_save_ldflags}
  6657. # Check for libmysqld (for embeded version of the driver)
  6658. # Extract the first word of "mysql_config", so it can be a program name with args.
  6659. set dummy mysql_config; ac_word=$2
  6660. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  6661. echo "configure:8249: checking for $ac_word" >&5
  6662. case "$MYSQLD_CONFIG" in
  6663. /*)
  6664. ac_cv_path_MYSQLD_CONFIG="$MYSQLD_CONFIG" # Let the user override the test with a path.
  6665. ;;
  6666. ?:/*)
  6667. ac_cv_path_MYSQLD_CONFIG="$MYSQLD_CONFIG" # Let the user override the test with a dos path.
  6668. ;;
  6669. *)
  6670. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  6671. ac_dummy="$PATH"
  6672. for ac_dir in $ac_dummy; do
  6673. test -z "$ac_dir" && ac_dir=.
  6674. if test -f $ac_dir/$ac_word; then
  6675. ac_cv_path_MYSQLD_CONFIG="$ac_dir/$ac_word"
  6676. break
  6677. fi
  6678. done
  6679. IFS="$ac_save_ifs"
  6680. test -z "$ac_cv_path_MYSQLD_CONFIG" && ac_cv_path_MYSQLD_CONFIG="no"
  6681. ;;
  6682. esac
  6683. MYSQLD_CONFIG="$ac_cv_path_MYSQLD_CONFIG"
  6684. if test -n "$MYSQLD_CONFIG"; then
  6685. echo "$ac_t""$MYSQLD_CONFIG" 1>&6
  6686. else
  6687. echo "$ac_t""no" 1>&6
  6688. fi
  6689. if test "$MYSQLD_CONFIG" = "no" ; then
  6690. { echo "configure: error: *** couldn't find mysql_config" 1>&2; exit 1; }
  6691. fi
  6692. if test "$MYSQLD_CONFIG" != "" ; then
  6693. ac_ext=C
  6694. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6695. ac_cpp='$CXXCPP $CPPFLAGS'
  6696. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6697. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6698. cross_compiling=$ac_cv_prog_cxx_cross
  6699. ac_save_libs="$LIBS"
  6700. MYSQLDLIB=`"$MYSQLD_CONFIG" --libmysqld-libs`
  6701. LIBS="$MYSQLDLIB $LIBS"
  6702. echo $ac_n "checking for mysql_server_init""... $ac_c" 1>&6
  6703. echo "configure:8298: checking for mysql_server_init" >&5
  6704. cat > conftest.$ac_ext <<EOF
  6705. #line 8301 "configure"
  6706. #include "confdefs.h"
  6707. /* System header to define __stub macros and hopefully few prototypes,
  6708. which can conflict with char mysql_server_init(); below. */
  6709. #include <assert.h>
  6710. /* Override any gcc2 internal prototype to avoid an error. */
  6711. #ifdef __cplusplus
  6712. extern "C"
  6713. #endif
  6714. /* We use char because int might match the return type of a gcc2
  6715. builtin and then its argument prototype would still apply. */
  6716. char mysql_server_init();
  6717. int main() {
  6718. /* The GNU C library defines this for functions which it implements
  6719. to always fail with ENOSYS. Some functions are actually named
  6720. something starting with __ and the normal name is an alias. */
  6721. #if defined (__stub_mysql_server_init) || defined (__stub___mysql_server_init)
  6722. choke me
  6723. #else
  6724. mysql_server_init();
  6725. #endif
  6726. ; return 0; }
  6727. EOF
  6728. if { (eval echo configure:8327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6729. rm -rf conftest*
  6730. eval "ac_cv_func_mysql_server_init=yes"
  6731. else
  6732. echo "configure: failed program was:" >&5
  6733. cat conftest.$ac_ext >&5
  6734. rm -rf conftest*
  6735. eval "ac_cv_func_mysql_server_init=no"
  6736. fi
  6737. rm -f conftest*
  6738. if eval "test \"`echo '$ac_cv_func_'mysql_server_init`\" = yes"; then
  6739. echo "$ac_t""yes" 1>&6
  6740. :
  6741. else
  6742. echo "$ac_t""no" 1>&6
  6743. MYSQLDLIB="";
  6744. echo "configure: warning: libmysqld not found" 1>&2
  6745. fi
  6746. LIBS=$ac_save_libs
  6747. ac_ext=c
  6748. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6749. ac_cpp='$CPP $CPPFLAGS'
  6750. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6751. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6752. cross_compiling=$ac_cv_prog_cc_cross
  6753. ac_ext=c
  6754. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6755. ac_cpp='$CPP $CPPFLAGS'
  6756. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6757. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6758. cross_compiling=$ac_cv_prog_cc_cross
  6759. fi
  6760. fi # $USE_MYSQL
  6761. # Done checking MySQL
  6762. # Enable SQLite option
  6763. echo $ac_n "checking whether to use SQLite""... $ac_c" 1>&6
  6764. echo "configure:8379: checking whether to use SQLite" >&5
  6765. echo "$ac_t"""$with_sqlite"" 1>&6
  6766. case "$with_sqlite" in
  6767. "no") USE_SQLITE= ;;
  6768. "yes") USE_SQLITE="1" ;;
  6769. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6770. esac
  6771. SQLITEINCPATH=
  6772. SQLITELIBPATH=
  6773. SQLITELIB=
  6774. if test -n "$USE_SQLITE"; then
  6775. # With SQLite includes directory
  6776. echo $ac_n "checking for location of SQLite includes""... $ac_c" 1>&6
  6777. echo "configure:8399: checking for location of SQLite includes" >&5
  6778. case "$with_sqlite_includes" in
  6779. y | ye | yes | n | no)
  6780. { echo "configure: error: *** You must supply a directory to --with-sqlite-includes." 1>&2; exit 1; }
  6781. ;;
  6782. esac
  6783. echo "$ac_t""$with_sqlite_includes" 1>&6
  6784. if test -n "$with_sqlite_includes" ; then
  6785. for dir in $with_sqlite_includes; do
  6786. if test -d "$dir"; then
  6787. SQLITEINCPATH="$SQLITEINCPATH -I$dir"
  6788. else
  6789. { echo "configure: error: *** SQLite includes directory $dir does not exist." 1>&2; exit 1; }
  6790. fi
  6791. done
  6792. fi
  6793. ac_save_cppflags="$CPPFLAGS"
  6794. CPPFLAGS="$SQLITEINCPATH $CPPFLAGS"
  6795. for ac_hdr in sqlite3.h
  6796. do
  6797. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6798. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6799. echo "configure:8425: checking for $ac_hdr" >&5
  6800. cat > conftest.$ac_ext <<EOF
  6801. #line 8428 "configure"
  6802. #include "confdefs.h"
  6803. #include <$ac_hdr>
  6804. EOF
  6805. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6806. { (eval echo configure:8433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6807. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6808. if test -z "$ac_err"; then
  6809. rm -rf conftest*
  6810. eval "ac_cv_header_$ac_safe=yes"
  6811. else
  6812. echo "$ac_err" >&5
  6813. echo "configure: failed program was:" >&5
  6814. cat conftest.$ac_ext >&5
  6815. rm -rf conftest*
  6816. eval "ac_cv_header_$ac_safe=no"
  6817. fi
  6818. rm -f conftest*
  6819. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6820. echo "$ac_t""yes" 1>&6
  6821. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6822. cat >> confdefs.h <<EOF
  6823. #define $ac_tr_hdr 1
  6824. EOF
  6825. else
  6826. echo "$ac_t""no" 1>&6
  6827. { echo "configure: error: *** Unable to locate SQLite includes." 1>&2; exit 1; }
  6828. fi
  6829. done
  6830. CPPFLAGS=$ac_save_cppflags
  6831. cat >> confdefs.h <<\EOF
  6832. #define HAVE_SQLITE 1
  6833. EOF
  6834. fi # $USE_SQLITE
  6835. if test -n "$USE_SQLITE"; then
  6836. # With SQLite library directory
  6837. echo $ac_n "checking for location of SQLite library""... $ac_c" 1>&6
  6838. echo "configure:8476: checking for location of SQLite library" >&5
  6839. case "$with_sqlite_libs" in
  6840. y | ye | yes | n | no)
  6841. { echo "configure: error: *** You must supply a directory to --with-sqlite-libs." 1>&2; exit 1; }
  6842. ;;
  6843. esac
  6844. echo "$ac_t""$with_sqlite_libs" 1>&6
  6845. if test -n "$with_sqlite_libs"; then
  6846. for dir in $with_sqlite_libs; do
  6847. if test -d "$dir"; then
  6848. SQLITELIBPATH="$SQLITELIBPATH -L$dir"
  6849. else
  6850. { echo "configure: error: *** SQLite library directory $dir does not exist." 1>&2; exit 1; }
  6851. fi
  6852. done
  6853. fi
  6854. ac_save_ldflags="$LDFLAGS"
  6855. LDFLAGS="$SQLITELIBPATH $LDFLAGS"
  6856. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  6857. echo "configure:8505: checking for sqlite3_open in -lsqlite3" >&5
  6858. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  6859. ac_save_LIBS="$LIBS"
  6860. LIBS="-lsqlite3 $LIBS"
  6861. cat > conftest.$ac_ext <<EOF
  6862. #line 8511 "configure"
  6863. #include "confdefs.h"
  6864. /* Override any gcc2 internal prototype to avoid an error. */
  6865. /* We use char because int might match the return type of a gcc2
  6866. builtin and then its argument prototype would still apply. */
  6867. char sqlite3_open();
  6868. int main() {
  6869. sqlite3_open()
  6870. ; return 0; }
  6871. EOF
  6872. if { (eval echo configure:8522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6873. rm -rf conftest*
  6874. eval "ac_cv_lib_$ac_lib_var=yes"
  6875. else
  6876. echo "configure: failed program was:" >&5
  6877. cat conftest.$ac_ext >&5
  6878. rm -rf conftest*
  6879. eval "ac_cv_lib_$ac_lib_var=no"
  6880. fi
  6881. rm -f conftest*
  6882. LIBS="$ac_save_LIBS"
  6883. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6884. echo "$ac_t""yes" 1>&6
  6885. SQLITELIB="$SQLITELIB -lsqlite3 "
  6886. else
  6887. echo "$ac_t""no" 1>&6
  6888. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  6889. echo "configure:8541: checking for sqlite3_open in -lsqlite3" >&5
  6890. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  6891. ac_save_LIBS="$LIBS"
  6892. LIBS="-lsqlite3 $DLLIB $LIBS"
  6893. cat > conftest.$ac_ext <<EOF
  6894. #line 8547 "configure"
  6895. #include "confdefs.h"
  6896. /* Override any gcc2 internal prototype to avoid an error. */
  6897. /* We use char because int might match the return type of a gcc2
  6898. builtin and then its argument prototype would still apply. */
  6899. char sqlite3_open();
  6900. int main() {
  6901. sqlite3_open()
  6902. ; return 0; }
  6903. EOF
  6904. if { (eval echo configure:8558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6905. rm -rf conftest*
  6906. eval "ac_cv_lib_$ac_lib_var=yes"
  6907. else
  6908. echo "configure: failed program was:" >&5
  6909. cat conftest.$ac_ext >&5
  6910. rm -rf conftest*
  6911. eval "ac_cv_lib_$ac_lib_var=no"
  6912. fi
  6913. rm -f conftest*
  6914. LIBS="$ac_save_LIBS"
  6915. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6916. echo "$ac_t""yes" 1>&6
  6917. SQLITELIB="$SQLITELIB -lsqlite3 $DLLIB"
  6918. else
  6919. echo "$ac_t""no" 1>&6
  6920. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  6921. echo "configure:8577: checking for sqlite3_open in -lsqlite3" >&5
  6922. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  6923. ac_save_LIBS="$LIBS"
  6924. LIBS="-lsqlite3 $MATHLIB $LIBS"
  6925. cat > conftest.$ac_ext <<EOF
  6926. #line 8583 "configure"
  6927. #include "confdefs.h"
  6928. /* Override any gcc2 internal prototype to avoid an error. */
  6929. /* We use char because int might match the return type of a gcc2
  6930. builtin and then its argument prototype would still apply. */
  6931. char sqlite3_open();
  6932. int main() {
  6933. sqlite3_open()
  6934. ; return 0; }
  6935. EOF
  6936. if { (eval echo configure:8594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6937. rm -rf conftest*
  6938. eval "ac_cv_lib_$ac_lib_var=yes"
  6939. else
  6940. echo "configure: failed program was:" >&5
  6941. cat conftest.$ac_ext >&5
  6942. rm -rf conftest*
  6943. eval "ac_cv_lib_$ac_lib_var=no"
  6944. fi
  6945. rm -f conftest*
  6946. LIBS="$ac_save_LIBS"
  6947. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6948. echo "$ac_t""yes" 1>&6
  6949. SQLITELIB="$SQLITELIB -lsqlite3 $MATHLIB"
  6950. else
  6951. echo "$ac_t""no" 1>&6
  6952. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  6953. echo "configure:8613: checking for sqlite3_open in -lsqlite3" >&5
  6954. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  6955. ac_save_LIBS="$LIBS"
  6956. LIBS="-lsqlite3 $MATHLIB $DLLIB $LIBS"
  6957. cat > conftest.$ac_ext <<EOF
  6958. #line 8619 "configure"
  6959. #include "confdefs.h"
  6960. /* Override any gcc2 internal prototype to avoid an error. */
  6961. /* We use char because int might match the return type of a gcc2
  6962. builtin and then its argument prototype would still apply. */
  6963. char sqlite3_open();
  6964. int main() {
  6965. sqlite3_open()
  6966. ; return 0; }
  6967. EOF
  6968. if { (eval echo configure:8630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6969. rm -rf conftest*
  6970. eval "ac_cv_lib_$ac_lib_var=yes"
  6971. else
  6972. echo "configure: failed program was:" >&5
  6973. cat conftest.$ac_ext >&5
  6974. rm -rf conftest*
  6975. eval "ac_cv_lib_$ac_lib_var=no"
  6976. fi
  6977. rm -f conftest*
  6978. LIBS="$ac_save_LIBS"
  6979. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6980. echo "$ac_t""yes" 1>&6
  6981. SQLITELIB="$SQLITELIB -lsqlite3 $MATHLIB $DLLIB"
  6982. else
  6983. echo "$ac_t""no" 1>&6
  6984. LDFLAGS=${ac_save_ldflags}
  6985. { echo "configure: error: *** Unable to locate SQLite library." 1>&2; exit 1; }
  6986. fi
  6987. fi
  6988. fi
  6989. fi
  6990. LDFLAGS=${ac_save_ldflags}
  6991. fi # $USE_SQLITE
  6992. # Done checking SQLite
  6993. # Enable FFMPEG option
  6994. echo $ac_n "checking whether to use FFMPEG""... $ac_c" 1>&6
  6995. echo "configure:8699: checking whether to use FFMPEG" >&5
  6996. echo "$ac_t"""$with_ffmpeg"" 1>&6
  6997. case "$with_ffmpeg" in
  6998. "no") USE_FFMPEG= ;;
  6999. "yes") USE_FFMPEG="1" ;;
  7000. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  7001. esac
  7002. FFMPEGINCPATH=
  7003. FFMPEGLIBPATH=
  7004. FFMPEGLIB=
  7005. if test -n "$USE_FFMPEG"; then
  7006. # With FFMPEG includes directory
  7007. echo $ac_n "checking for location of FFMPEG includes""... $ac_c" 1>&6
  7008. echo "configure:8719: checking for location of FFMPEG includes" >&5
  7009. case "$with_ffmpeg_includes" in
  7010. y | ye | yes | n | no)
  7011. { echo "configure: error: *** You must supply a directory to --with-ffmpeg-includes." 1>&2; exit 1; }
  7012. ;;
  7013. esac
  7014. echo "$ac_t""$with_ffmpeg_includes" 1>&6
  7015. if test -n "$with_ffmpeg_includes" ; then
  7016. for dir in $with_ffmpeg_includes; do
  7017. if test -d "$dir"; then
  7018. FFMPEGINCPATH="$FFMPEGINCPATH -I$dir"
  7019. else
  7020. { echo "configure: error: *** FFMPEG includes directory $dir does not exist." 1>&2; exit 1; }
  7021. fi
  7022. done
  7023. fi
  7024. ac_save_cppflags="$CPPFLAGS"
  7025. CPPFLAGS="$FFMPEGINCPATH $CPPFLAGS"
  7026. for ac_hdr in avcodec.h
  7027. do
  7028. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7029. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7030. echo "configure:8745: checking for $ac_hdr" >&5
  7031. cat > conftest.$ac_ext <<EOF
  7032. #line 8748 "configure"
  7033. #include "confdefs.h"
  7034. #include <$ac_hdr>
  7035. EOF
  7036. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7037. { (eval echo configure:8753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7038. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7039. if test -z "$ac_err"; then
  7040. rm -rf conftest*
  7041. eval "ac_cv_header_$ac_safe=yes"
  7042. else
  7043. echo "$ac_err" >&5
  7044. echo "configure: failed program was:" >&5
  7045. cat conftest.$ac_ext >&5
  7046. rm -rf conftest*
  7047. eval "ac_cv_header_$ac_safe=no"
  7048. fi
  7049. rm -f conftest*
  7050. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7051. echo "$ac_t""yes" 1>&6
  7052. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7053. cat >> confdefs.h <<EOF
  7054. #define $ac_tr_hdr 1
  7055. EOF
  7056. else
  7057. echo "$ac_t""no" 1>&6
  7058. { echo "configure: error: *** Unable to locate FFMPEG includes." 1>&2; exit 1; }
  7059. fi
  7060. done
  7061. CPPFLAGS=$ac_save_cppflags
  7062. ac_save_cppflags="$CPPFLAGS"
  7063. CPPFLAGS="$FFMPEGINCPATH $CPPFLAGS"
  7064. for ac_hdr in avformat.h
  7065. do
  7066. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7067. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7068. echo "configure:8789: checking for $ac_hdr" >&5
  7069. cat > conftest.$ac_ext <<EOF
  7070. #line 8792 "configure"
  7071. #include "confdefs.h"
  7072. #include <$ac_hdr>
  7073. EOF
  7074. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7075. { (eval echo configure:8797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7076. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7077. if test -z "$ac_err"; then
  7078. rm -rf conftest*
  7079. eval "ac_cv_header_$ac_safe=yes"
  7080. else
  7081. echo "$ac_err" >&5
  7082. echo "configure: failed program was:" >&5
  7083. cat conftest.$ac_ext >&5
  7084. rm -rf conftest*
  7085. eval "ac_cv_header_$ac_safe=no"
  7086. fi
  7087. rm -f conftest*
  7088. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7089. echo "$ac_t""yes" 1>&6
  7090. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7091. cat >> confdefs.h <<EOF
  7092. #define $ac_tr_hdr 1
  7093. EOF
  7094. else
  7095. echo "$ac_t""no" 1>&6
  7096. { echo "configure: error: *** Unable to locate FFMPEG includes." 1>&2; exit 1; }
  7097. fi
  7098. done
  7099. CPPFLAGS=$ac_save_cppflags
  7100. ac_save_cppflags="$CPPFLAGS"
  7101. CPPFLAGS="$FFMPEGINCPATH $CPPFLAGS"
  7102. for ac_hdr in swscale.h
  7103. do
  7104. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7105. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7106. echo "configure:8833: checking for $ac_hdr" >&5
  7107. cat > conftest.$ac_ext <<EOF
  7108. #line 8836 "configure"
  7109. #include "confdefs.h"
  7110. #include <$ac_hdr>
  7111. EOF
  7112. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7113. { (eval echo configure:8841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7114. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7115. if test -z "$ac_err"; then
  7116. rm -rf conftest*
  7117. eval "ac_cv_header_$ac_safe=yes"
  7118. else
  7119. echo "$ac_err" >&5
  7120. echo "configure: failed program was:" >&5
  7121. cat conftest.$ac_ext >&5
  7122. rm -rf conftest*
  7123. eval "ac_cv_header_$ac_safe=no"
  7124. fi
  7125. rm -f conftest*
  7126. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7127. echo "$ac_t""yes" 1>&6
  7128. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7129. cat >> confdefs.h <<EOF
  7130. #define $ac_tr_hdr 1
  7131. EOF
  7132. else
  7133. echo "$ac_t""no" 1>&6
  7134. { echo "configure: error: *** Unable to locate FFMPEG includes." 1>&2; exit 1; }
  7135. fi
  7136. done
  7137. CPPFLAGS=$ac_save_cppflags
  7138. cat >> confdefs.h <<\EOF
  7139. #define HAVE_FFMPEG 1
  7140. EOF
  7141. fi # $USE_FFMPEG
  7142. if test -n "$USE_FFMPEG"; then
  7143. # With FFMPEG library directory
  7144. echo $ac_n "checking for location of FFMPEG library""... $ac_c" 1>&6
  7145. echo "configure:8884: checking for location of FFMPEG library" >&5
  7146. case "$with_ffmpeg_libs" in
  7147. y | ye | yes | n | no)
  7148. { echo "configure: error: *** You must supply a directory to --with-ffmpeg-libs." 1>&2; exit 1; }
  7149. ;;
  7150. esac
  7151. echo "$ac_t""$with_ffmpeg_libs" 1>&6
  7152. if test -n "$with_ffmpeg_libs"; then
  7153. for dir in $with_ffmpeg_libs; do
  7154. if test -d "$dir"; then
  7155. FFMPEGLIBPATH="$FFMPEGLIBPATH -L$dir"
  7156. else
  7157. { echo "configure: error: *** FFMPEG library directory $dir does not exist." 1>&2; exit 1; }
  7158. fi
  7159. done
  7160. fi
  7161. ac_save_ldflags="$LDFLAGS"
  7162. LDFLAGS="$FFMPEGLIBPATH $LDFLAGS"
  7163. echo $ac_n "checking for av_free in -lavutil""... $ac_c" 1>&6
  7164. echo "configure:8911: checking for av_free in -lavutil" >&5
  7165. ac_lib_var=`echo avutil'_'av_free | sed 'y%./+-%__p_%'`
  7166. ac_save_LIBS="$LIBS"
  7167. LIBS="-lavutil $LIBS"
  7168. cat > conftest.$ac_ext <<EOF
  7169. #line 8917 "configure"
  7170. #include "confdefs.h"
  7171. /* Override any gcc2 internal prototype to avoid an error. */
  7172. /* We use char because int might match the return type of a gcc2
  7173. builtin and then its argument prototype would still apply. */
  7174. char av_free();
  7175. int main() {
  7176. av_free()
  7177. ; return 0; }
  7178. EOF
  7179. if { (eval echo configure:8928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7180. rm -rf conftest*
  7181. eval "ac_cv_lib_$ac_lib_var=yes"
  7182. else
  7183. echo "configure: failed program was:" >&5
  7184. cat conftest.$ac_ext >&5
  7185. rm -rf conftest*
  7186. eval "ac_cv_lib_$ac_lib_var=no"
  7187. fi
  7188. rm -f conftest*
  7189. LIBS="$ac_save_LIBS"
  7190. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7191. echo "$ac_t""yes" 1>&6
  7192. FFMPEGLIB="$FFMPEGLIB -lavutil "
  7193. else
  7194. echo "$ac_t""no" 1>&6
  7195. echo $ac_n "checking for av_free in -lavutil""... $ac_c" 1>&6
  7196. echo "configure:8947: checking for av_free in -lavutil" >&5
  7197. ac_lib_var=`echo avutil'_'av_free | sed 'y%./+-%__p_%'`
  7198. ac_save_LIBS="$LIBS"
  7199. LIBS="-lavutil $MATHLIB $LIBS"
  7200. cat > conftest.$ac_ext <<EOF
  7201. #line 8953 "configure"
  7202. #include "confdefs.h"
  7203. /* Override any gcc2 internal prototype to avoid an error. */
  7204. /* We use char because int might match the return type of a gcc2
  7205. builtin and then its argument prototype would still apply. */
  7206. char av_free();
  7207. int main() {
  7208. av_free()
  7209. ; return 0; }
  7210. EOF
  7211. if { (eval echo configure:8964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7212. rm -rf conftest*
  7213. eval "ac_cv_lib_$ac_lib_var=yes"
  7214. else
  7215. echo "configure: failed program was:" >&5
  7216. cat conftest.$ac_ext >&5
  7217. rm -rf conftest*
  7218. eval "ac_cv_lib_$ac_lib_var=no"
  7219. fi
  7220. rm -f conftest*
  7221. LIBS="$ac_save_LIBS"
  7222. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7223. echo "$ac_t""yes" 1>&6
  7224. FFMPEGLIB="$FFMPEGLIB -lavutil $MATHLIB"
  7225. else
  7226. echo "$ac_t""no" 1>&6
  7227. LDFLAGS=${ac_save_ldflags}
  7228. { echo "configure: error: *** Unable to locate FFMPEG library." 1>&2; exit 1; }
  7229. fi
  7230. fi
  7231. LDFLAGS=${ac_save_ldflags}
  7232. ac_save_ldflags="$LDFLAGS"
  7233. LDFLAGS="$FFMPEGLIBPATH $LDFLAGS"
  7234. echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
  7235. echo "configure:9009: checking for avcodec_init in -lavcodec" >&5
  7236. ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
  7237. ac_save_LIBS="$LIBS"
  7238. LIBS="-lavcodec $FFMPEGLIB $LIBS"
  7239. cat > conftest.$ac_ext <<EOF
  7240. #line 9015 "configure"
  7241. #include "confdefs.h"
  7242. /* Override any gcc2 internal prototype to avoid an error. */
  7243. /* We use char because int might match the return type of a gcc2
  7244. builtin and then its argument prototype would still apply. */
  7245. char avcodec_init();
  7246. int main() {
  7247. avcodec_init()
  7248. ; return 0; }
  7249. EOF
  7250. if { (eval echo configure:9026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7251. rm -rf conftest*
  7252. eval "ac_cv_lib_$ac_lib_var=yes"
  7253. else
  7254. echo "configure: failed program was:" >&5
  7255. cat conftest.$ac_ext >&5
  7256. rm -rf conftest*
  7257. eval "ac_cv_lib_$ac_lib_var=no"
  7258. fi
  7259. rm -f conftest*
  7260. LIBS="$ac_save_LIBS"
  7261. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7262. echo "$ac_t""yes" 1>&6
  7263. FFMPEGLIB="$FFMPEGLIB -lavcodec "
  7264. else
  7265. echo "$ac_t""no" 1>&6
  7266. echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
  7267. echo "configure:9045: checking for avcodec_init in -lavcodec" >&5
  7268. ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
  7269. ac_save_LIBS="$LIBS"
  7270. LIBS="-lavcodec $FFMPEGLIB $MATHLIB $LIBS"
  7271. cat > conftest.$ac_ext <<EOF
  7272. #line 9051 "configure"
  7273. #include "confdefs.h"
  7274. /* Override any gcc2 internal prototype to avoid an error. */
  7275. /* We use char because int might match the return type of a gcc2
  7276. builtin and then its argument prototype would still apply. */
  7277. char avcodec_init();
  7278. int main() {
  7279. avcodec_init()
  7280. ; return 0; }
  7281. EOF
  7282. if { (eval echo configure:9062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7283. rm -rf conftest*
  7284. eval "ac_cv_lib_$ac_lib_var=yes"
  7285. else
  7286. echo "configure: failed program was:" >&5
  7287. cat conftest.$ac_ext >&5
  7288. rm -rf conftest*
  7289. eval "ac_cv_lib_$ac_lib_var=no"
  7290. fi
  7291. rm -f conftest*
  7292. LIBS="$ac_save_LIBS"
  7293. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7294. echo "$ac_t""yes" 1>&6
  7295. FFMPEGLIB="$FFMPEGLIB -lavcodec $MATHLIB"
  7296. else
  7297. echo "$ac_t""no" 1>&6
  7298. LDFLAGS=${ac_save_ldflags}
  7299. { echo "configure: error: *** Unable to locate FFMPEG library." 1>&2; exit 1; }
  7300. fi
  7301. fi
  7302. LDFLAGS=${ac_save_ldflags}
  7303. ac_save_ldflags="$LDFLAGS"
  7304. LDFLAGS="$FFMPEGLIBPATH $LDFLAGS"
  7305. echo $ac_n "checking for av_set_parameters in -lavformat""... $ac_c" 1>&6
  7306. echo "configure:9107: checking for av_set_parameters in -lavformat" >&5
  7307. ac_lib_var=`echo avformat'_'av_set_parameters | sed 'y%./+-%__p_%'`
  7308. ac_save_LIBS="$LIBS"
  7309. LIBS="-lavformat $FFMPEGLIB $LIBS"
  7310. cat > conftest.$ac_ext <<EOF
  7311. #line 9113 "configure"
  7312. #include "confdefs.h"
  7313. /* Override any gcc2 internal prototype to avoid an error. */
  7314. /* We use char because int might match the return type of a gcc2
  7315. builtin and then its argument prototype would still apply. */
  7316. char av_set_parameters();
  7317. int main() {
  7318. av_set_parameters()
  7319. ; return 0; }
  7320. EOF
  7321. if { (eval echo configure:9124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7322. rm -rf conftest*
  7323. eval "ac_cv_lib_$ac_lib_var=yes"
  7324. else
  7325. echo "configure: failed program was:" >&5
  7326. cat conftest.$ac_ext >&5
  7327. rm -rf conftest*
  7328. eval "ac_cv_lib_$ac_lib_var=no"
  7329. fi
  7330. rm -f conftest*
  7331. LIBS="$ac_save_LIBS"
  7332. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7333. echo "$ac_t""yes" 1>&6
  7334. FFMPEGLIB="$FFMPEGLIB -lavformat "
  7335. else
  7336. echo "$ac_t""no" 1>&6
  7337. echo $ac_n "checking for av_set_parameters in -lavformat""... $ac_c" 1>&6
  7338. echo "configure:9143: checking for av_set_parameters in -lavformat" >&5
  7339. ac_lib_var=`echo avformat'_'av_set_parameters | sed 'y%./+-%__p_%'`
  7340. ac_save_LIBS="$LIBS"
  7341. LIBS="-lavformat $FFMPEGLIB $MATHLIB $LIBS"
  7342. cat > conftest.$ac_ext <<EOF
  7343. #line 9149 "configure"
  7344. #include "confdefs.h"
  7345. /* Override any gcc2 internal prototype to avoid an error. */
  7346. /* We use char because int might match the return type of a gcc2
  7347. builtin and then its argument prototype would still apply. */
  7348. char av_set_parameters();
  7349. int main() {
  7350. av_set_parameters()
  7351. ; return 0; }
  7352. EOF
  7353. if { (eval echo configure:9160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7354. rm -rf conftest*
  7355. eval "ac_cv_lib_$ac_lib_var=yes"
  7356. else
  7357. echo "configure: failed program was:" >&5
  7358. cat conftest.$ac_ext >&5
  7359. rm -rf conftest*
  7360. eval "ac_cv_lib_$ac_lib_var=no"
  7361. fi
  7362. rm -f conftest*
  7363. LIBS="$ac_save_LIBS"
  7364. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7365. echo "$ac_t""yes" 1>&6
  7366. FFMPEGLIB="$FFMPEGLIB -lavformat $MATHLIB"
  7367. else
  7368. echo "$ac_t""no" 1>&6
  7369. LDFLAGS=${ac_save_ldflags}
  7370. { echo "configure: error: *** Unable to locate FFMPEG library." 1>&2; exit 1; }
  7371. fi
  7372. fi
  7373. LDFLAGS=${ac_save_ldflags}
  7374. fi # $USE_FFMPEG
  7375. # Done checking FFMPEG
  7376. # Enable OpenGL option
  7377. OPENGLINC=
  7378. OPENGLLIB=
  7379. OPENGLULIB=
  7380. USE_OPENGL=
  7381. OPENGL_X11=
  7382. OPENGL_AQUA=
  7383. OPENGL_WINDOWS=
  7384. echo $ac_n "checking whether to use OpenGL""... $ac_c" 1>&6
  7385. echo "configure:9219: checking whether to use OpenGL" >&5
  7386. echo "$ac_t"""$with_opengl"" 1>&6
  7387. case "$with_opengl" in
  7388. n|no)
  7389. OPENGL_TYPE=none
  7390. ;;
  7391. y|yes|x|x11|glx)
  7392. OPENGL_TYPE=X11
  7393. USE_OPENGL=1
  7394. OPENGL_X11=1
  7395. ;;
  7396. aqua|mac|osx|macosx|agl)
  7397. OPENGL_TYPE=Aqua
  7398. USE_OPENGL=1
  7399. OPENGL_AQUA=1
  7400. ;;
  7401. win|windows|mswin|wgl)
  7402. OPENGL_TYPE=Windows
  7403. USE_OPENGL=1
  7404. OPENGL_WINDOWS=1
  7405. ;;
  7406. *)
  7407. { echo "configure: error: *** Valid arguments for --with-opengl= are yes,no,x11,aqua,windows." 1>&2; exit 1; }
  7408. ;;
  7409. esac
  7410. if test -n "$USE_OPENGL" ; then
  7411. if test "$OPENGL_X11" = 1 ; then
  7412. # With OpenGL includes directory
  7413. echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
  7414. echo "configure:9253: checking for location of OpenGL includes" >&5
  7415. case "$with_opengl_includes" in
  7416. y | ye | yes | n | no)
  7417. { echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
  7418. ;;
  7419. esac
  7420. echo "$ac_t""$with_opengl_includes" 1>&6
  7421. if test -n "$with_opengl_includes" ; then
  7422. for dir in $with_opengl_includes; do
  7423. if test -d "$dir"; then
  7424. OPENGLINC="$OPENGLINC -I$dir"
  7425. else
  7426. { echo "configure: error: *** OpenGL includes directory $dir does not exist." 1>&2; exit 1; }
  7427. fi
  7428. done
  7429. fi
  7430. ac_save_cppflags="$CPPFLAGS"
  7431. CPPFLAGS="$OPENGLINC $X_CFLAGS $CPPFLAGS"
  7432. for ac_hdr in GL/gl.h GL/glu.h
  7433. do
  7434. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7435. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7436. echo "configure:9279: checking for $ac_hdr" >&5
  7437. cat > conftest.$ac_ext <<EOF
  7438. #line 9282 "configure"
  7439. #include "confdefs.h"
  7440. #include <$ac_hdr>
  7441. EOF
  7442. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7443. { (eval echo configure:9287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7444. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7445. if test -z "$ac_err"; then
  7446. rm -rf conftest*
  7447. eval "ac_cv_header_$ac_safe=yes"
  7448. else
  7449. echo "$ac_err" >&5
  7450. echo "configure: failed program was:" >&5
  7451. cat conftest.$ac_ext >&5
  7452. rm -rf conftest*
  7453. eval "ac_cv_header_$ac_safe=no"
  7454. fi
  7455. rm -f conftest*
  7456. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7457. echo "$ac_t""yes" 1>&6
  7458. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7459. cat >> confdefs.h <<EOF
  7460. #define $ac_tr_hdr 1
  7461. EOF
  7462. else
  7463. echo "$ac_t""no" 1>&6
  7464. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  7465. fi
  7466. done
  7467. CPPFLAGS=$ac_save_cppflags
  7468. # With OpenGL library directory
  7469. echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
  7470. echo "configure:9321: checking for location of OpenGL library" >&5
  7471. case "$with_opengl_libs" in
  7472. y | ye | yes | n | no)
  7473. { echo "configure: error: *** You must supply a directory to --with-opengl-libs." 1>&2; exit 1; }
  7474. ;;
  7475. esac
  7476. echo "$ac_t""$with_opengl_libs" 1>&6
  7477. if test -n "$with_opengl_libs"; then
  7478. for dir in $with_opengl_libs; do
  7479. if test -d "$dir"; then
  7480. OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
  7481. else
  7482. { echo "configure: error: *** OpenGL library directory $dir does not exist." 1>&2; exit 1; }
  7483. fi
  7484. done
  7485. fi
  7486. ac_save_ldflags="$LDFLAGS"
  7487. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7488. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7489. echo "configure:9350: checking for glBegin in -lGL" >&5
  7490. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7491. ac_save_LIBS="$LIBS"
  7492. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
  7493. cat > conftest.$ac_ext <<EOF
  7494. #line 9356 "configure"
  7495. #include "confdefs.h"
  7496. /* Override any gcc2 internal prototype to avoid an error. */
  7497. /* We use char because int might match the return type of a gcc2
  7498. builtin and then its argument prototype would still apply. */
  7499. char glBegin();
  7500. int main() {
  7501. glBegin()
  7502. ; return 0; }
  7503. EOF
  7504. if { (eval echo configure:9367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7505. rm -rf conftest*
  7506. eval "ac_cv_lib_$ac_lib_var=yes"
  7507. else
  7508. echo "configure: failed program was:" >&5
  7509. cat conftest.$ac_ext >&5
  7510. rm -rf conftest*
  7511. eval "ac_cv_lib_$ac_lib_var=no"
  7512. fi
  7513. rm -f conftest*
  7514. LIBS="$ac_save_LIBS"
  7515. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7516. echo "$ac_t""yes" 1>&6
  7517. OPENGLLIB="$OPENGLLIB -lGL "
  7518. else
  7519. echo "$ac_t""no" 1>&6
  7520. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7521. echo "configure:9386: checking for glBegin in -lGL" >&5
  7522. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7523. ac_save_LIBS="$LIBS"
  7524. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lXext $LIBS"
  7525. cat > conftest.$ac_ext <<EOF
  7526. #line 9392 "configure"
  7527. #include "confdefs.h"
  7528. /* Override any gcc2 internal prototype to avoid an error. */
  7529. /* We use char because int might match the return type of a gcc2
  7530. builtin and then its argument prototype would still apply. */
  7531. char glBegin();
  7532. int main() {
  7533. glBegin()
  7534. ; return 0; }
  7535. EOF
  7536. if { (eval echo configure:9403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7537. rm -rf conftest*
  7538. eval "ac_cv_lib_$ac_lib_var=yes"
  7539. else
  7540. echo "configure: failed program was:" >&5
  7541. cat conftest.$ac_ext >&5
  7542. rm -rf conftest*
  7543. eval "ac_cv_lib_$ac_lib_var=no"
  7544. fi
  7545. rm -f conftest*
  7546. LIBS="$ac_save_LIBS"
  7547. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7548. echo "$ac_t""yes" 1>&6
  7549. OPENGLLIB="$OPENGLLIB -lGL -lXext"
  7550. else
  7551. echo "$ac_t""no" 1>&6
  7552. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7553. echo "configure:9422: checking for glBegin in -lGL" >&5
  7554. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7555. ac_save_LIBS="$LIBS"
  7556. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread $LIBS"
  7557. cat > conftest.$ac_ext <<EOF
  7558. #line 9428 "configure"
  7559. #include "confdefs.h"
  7560. /* Override any gcc2 internal prototype to avoid an error. */
  7561. /* We use char because int might match the return type of a gcc2
  7562. builtin and then its argument prototype would still apply. */
  7563. char glBegin();
  7564. int main() {
  7565. glBegin()
  7566. ; return 0; }
  7567. EOF
  7568. if { (eval echo configure:9439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7569. rm -rf conftest*
  7570. eval "ac_cv_lib_$ac_lib_var=yes"
  7571. else
  7572. echo "configure: failed program was:" >&5
  7573. cat conftest.$ac_ext >&5
  7574. rm -rf conftest*
  7575. eval "ac_cv_lib_$ac_lib_var=no"
  7576. fi
  7577. rm -f conftest*
  7578. LIBS="$ac_save_LIBS"
  7579. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7580. echo "$ac_t""yes" 1>&6
  7581. OPENGLLIB="$OPENGLLIB -lGL -lpthread"
  7582. else
  7583. echo "$ac_t""no" 1>&6
  7584. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7585. echo "configure:9458: checking for glBegin in -lGL" >&5
  7586. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7587. ac_save_LIBS="$LIBS"
  7588. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread -lXext $LIBS"
  7589. cat > conftest.$ac_ext <<EOF
  7590. #line 9464 "configure"
  7591. #include "confdefs.h"
  7592. /* Override any gcc2 internal prototype to avoid an error. */
  7593. /* We use char because int might match the return type of a gcc2
  7594. builtin and then its argument prototype would still apply. */
  7595. char glBegin();
  7596. int main() {
  7597. glBegin()
  7598. ; return 0; }
  7599. EOF
  7600. if { (eval echo configure:9475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7601. rm -rf conftest*
  7602. eval "ac_cv_lib_$ac_lib_var=yes"
  7603. else
  7604. echo "configure: failed program was:" >&5
  7605. cat conftest.$ac_ext >&5
  7606. rm -rf conftest*
  7607. eval "ac_cv_lib_$ac_lib_var=no"
  7608. fi
  7609. rm -f conftest*
  7610. LIBS="$ac_save_LIBS"
  7611. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7612. echo "$ac_t""yes" 1>&6
  7613. OPENGLLIB="$OPENGLLIB -lGL -lpthread -lXext"
  7614. else
  7615. echo "$ac_t""no" 1>&6
  7616. LDFLAGS=${ac_save_ldflags}
  7617. { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
  7618. fi
  7619. fi
  7620. fi
  7621. fi
  7622. LDFLAGS=${ac_save_ldflags}
  7623. ac_save_ldflags="$LDFLAGS"
  7624. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7625. echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
  7626. echo "configure:9537: checking for gluBeginCurve in -lGLU" >&5
  7627. ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
  7628. ac_save_LIBS="$LIBS"
  7629. LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
  7630. cat > conftest.$ac_ext <<EOF
  7631. #line 9543 "configure"
  7632. #include "confdefs.h"
  7633. /* Override any gcc2 internal prototype to avoid an error. */
  7634. /* We use char because int might match the return type of a gcc2
  7635. builtin and then its argument prototype would still apply. */
  7636. char gluBeginCurve();
  7637. int main() {
  7638. gluBeginCurve()
  7639. ; return 0; }
  7640. EOF
  7641. if { (eval echo configure:9554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7642. rm -rf conftest*
  7643. eval "ac_cv_lib_$ac_lib_var=yes"
  7644. else
  7645. echo "configure: failed program was:" >&5
  7646. cat conftest.$ac_ext >&5
  7647. rm -rf conftest*
  7648. eval "ac_cv_lib_$ac_lib_var=no"
  7649. fi
  7650. rm -f conftest*
  7651. LIBS="$ac_save_LIBS"
  7652. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7653. echo "$ac_t""yes" 1>&6
  7654. OPENGLULIB="$OPENGLULIB -lGLU "
  7655. else
  7656. echo "$ac_t""no" 1>&6
  7657. echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
  7658. echo "configure:9573: checking for gluBeginCurve in -lGLU" >&5
  7659. ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
  7660. ac_save_LIBS="$LIBS"
  7661. LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lstdc++ $LIBS"
  7662. cat > conftest.$ac_ext <<EOF
  7663. #line 9579 "configure"
  7664. #include "confdefs.h"
  7665. /* Override any gcc2 internal prototype to avoid an error. */
  7666. /* We use char because int might match the return type of a gcc2
  7667. builtin and then its argument prototype would still apply. */
  7668. char gluBeginCurve();
  7669. int main() {
  7670. gluBeginCurve()
  7671. ; return 0; }
  7672. EOF
  7673. if { (eval echo configure:9590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7674. rm -rf conftest*
  7675. eval "ac_cv_lib_$ac_lib_var=yes"
  7676. else
  7677. echo "configure: failed program was:" >&5
  7678. cat conftest.$ac_ext >&5
  7679. rm -rf conftest*
  7680. eval "ac_cv_lib_$ac_lib_var=no"
  7681. fi
  7682. rm -f conftest*
  7683. LIBS="$ac_save_LIBS"
  7684. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7685. echo "$ac_t""yes" 1>&6
  7686. OPENGLULIB="$OPENGLULIB -lGLU -lstdc++"
  7687. else
  7688. echo "$ac_t""no" 1>&6
  7689. LDFLAGS=${ac_save_ldflags}
  7690. { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
  7691. fi
  7692. fi
  7693. LDFLAGS=${ac_save_ldflags}
  7694. OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
  7695. OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
  7696. ac_save_libs="$LIBS"
  7697. ac_save_ldflags="$LDFLAGS"
  7698. LIBS=" $OPENGLLIB $LIBS"
  7699. LDFLAGS=" $LDFLAGS"
  7700. echo $ac_n "checking for glXCreatePbuffer""... $ac_c" 1>&6
  7701. echo "configure:9637: checking for glXCreatePbuffer" >&5
  7702. cat > conftest.$ac_ext <<EOF
  7703. #line 9640 "configure"
  7704. #include "confdefs.h"
  7705. /* System header to define __stub macros and hopefully few prototypes,
  7706. which can conflict with char glXCreatePbuffer(); below. */
  7707. #include <assert.h>
  7708. /* Override any gcc2 internal prototype to avoid an error. */
  7709. /* We use char because int might match the return type of a gcc2
  7710. builtin and then its argument prototype would still apply. */
  7711. char glXCreatePbuffer();
  7712. int main() {
  7713. /* The GNU C library defines this for functions which it implements
  7714. to always fail with ENOSYS. Some functions are actually named
  7715. something starting with __ and the normal name is an alias. */
  7716. #if defined (__stub_glXCreatePbuffer) || defined (__stub___glXCreatePbuffer)
  7717. choke me
  7718. #else
  7719. glXCreatePbuffer();
  7720. #endif
  7721. ; return 0; }
  7722. EOF
  7723. if { (eval echo configure:9663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7724. rm -rf conftest*
  7725. eval "ac_cv_func_glXCreatePbuffer=yes"
  7726. else
  7727. echo "configure: failed program was:" >&5
  7728. cat conftest.$ac_ext >&5
  7729. rm -rf conftest*
  7730. eval "ac_cv_func_glXCreatePbuffer=no"
  7731. fi
  7732. rm -f conftest*
  7733. if eval "test \"`echo '$ac_cv_func_'glXCreatePbuffer`\" = yes"; then
  7734. echo "$ac_t""yes" 1>&6
  7735. cat >> confdefs.h <<\EOF
  7736. #define HAVE_PBUFFERS 1
  7737. EOF
  7738. else
  7739. echo "$ac_t""no" 1>&6
  7740. { echo "configure: error: *** Unable to locate ." 1>&2; exit 1; }
  7741. fi
  7742. LIBS=${ac_save_libs}
  7743. LDFLAGS=${ac_save_ldflags}
  7744. ac_save_libs="$LIBS"
  7745. ac_save_ldflags="$LDFLAGS"
  7746. LIBS=" $OPENGLLIB $LIBS"
  7747. LDFLAGS=" $LDFLAGS"
  7748. echo $ac_n "checking for glXCreateGLXPixmap""... $ac_c" 1>&6
  7749. echo "configure:9700: checking for glXCreateGLXPixmap" >&5
  7750. cat > conftest.$ac_ext <<EOF
  7751. #line 9703 "configure"
  7752. #include "confdefs.h"
  7753. /* System header to define __stub macros and hopefully few prototypes,
  7754. which can conflict with char glXCreateGLXPixmap(); below. */
  7755. #include <assert.h>
  7756. /* Override any gcc2 internal prototype to avoid an error. */
  7757. /* We use char because int might match the return type of a gcc2
  7758. builtin and then its argument prototype would still apply. */
  7759. char glXCreateGLXPixmap();
  7760. int main() {
  7761. /* The GNU C library defines this for functions which it implements
  7762. to always fail with ENOSYS. Some functions are actually named
  7763. something starting with __ and the normal name is an alias. */
  7764. #if defined (__stub_glXCreateGLXPixmap) || defined (__stub___glXCreateGLXPixmap)
  7765. choke me
  7766. #else
  7767. glXCreateGLXPixmap();
  7768. #endif
  7769. ; return 0; }
  7770. EOF
  7771. if { (eval echo configure:9726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7772. rm -rf conftest*
  7773. eval "ac_cv_func_glXCreateGLXPixmap=yes"
  7774. else
  7775. echo "configure: failed program was:" >&5
  7776. cat conftest.$ac_ext >&5
  7777. rm -rf conftest*
  7778. eval "ac_cv_func_glXCreateGLXPixmap=no"
  7779. fi
  7780. rm -f conftest*
  7781. if eval "test \"`echo '$ac_cv_func_'glXCreateGLXPixmap`\" = yes"; then
  7782. echo "$ac_t""yes" 1>&6
  7783. cat >> confdefs.h <<\EOF
  7784. #define HAVE_PIXMAPS 1
  7785. EOF
  7786. else
  7787. echo "$ac_t""no" 1>&6
  7788. { echo "configure: error: *** Unable to locate ." 1>&2; exit 1; }
  7789. fi
  7790. LIBS=${ac_save_libs}
  7791. LDFLAGS=${ac_save_ldflags}
  7792. cat >> confdefs.h <<\EOF
  7793. #define OPENGL_X11 1
  7794. EOF
  7795. fi # $OPENGL_X11
  7796. if test "$OPENGL_AQUA" = 1 ; then
  7797. echo $ac_n "checking for location of OpenGL framework""... $ac_c" 1>&6
  7798. echo "configure:9769: checking for location of OpenGL framework" >&5
  7799. case "$with_opengl_framework" in
  7800. y | ye | yes | n | no)
  7801. { echo "configure: error: *** You must supply a directory to --with-opengl-framework." 1>&2; exit 1; }
  7802. ;;
  7803. esac
  7804. echo "$ac_t""$with_opengl_framework" 1>&6
  7805. if test -n "$with_opengl_framework"; then
  7806. if test -d $with_opengl_framework; then
  7807. OPENGLPATH="$OPENGLPATH -F$with_opengl_framework"
  7808. else
  7809. { echo "configure: error: *** OpenGL framework directory $dir does not exist." 1>&2; exit 1; }
  7810. fi
  7811. fi
  7812. ac_save_cppflags="$CPPFLAGS"
  7813. CPPFLAGS="$OPENGLPATH $CPPFLAGS"
  7814. for ac_hdr in OpenGL/gl.h OpenGL/glu.h
  7815. do
  7816. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7817. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7818. echo "configure:9793: checking for $ac_hdr" >&5
  7819. cat > conftest.$ac_ext <<EOF
  7820. #line 9796 "configure"
  7821. #include "confdefs.h"
  7822. #include <$ac_hdr>
  7823. EOF
  7824. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7825. { (eval echo configure:9801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7826. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7827. if test -z "$ac_err"; then
  7828. rm -rf conftest*
  7829. eval "ac_cv_header_$ac_safe=yes"
  7830. else
  7831. echo "$ac_err" >&5
  7832. echo "configure: failed program was:" >&5
  7833. cat conftest.$ac_ext >&5
  7834. rm -rf conftest*
  7835. eval "ac_cv_header_$ac_safe=no"
  7836. fi
  7837. rm -f conftest*
  7838. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7839. echo "$ac_t""yes" 1>&6
  7840. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7841. cat >> confdefs.h <<EOF
  7842. #define $ac_tr_hdr 1
  7843. EOF
  7844. else
  7845. echo "$ac_t""no" 1>&6
  7846. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  7847. fi
  7848. done
  7849. CPPFLAGS=$ac_save_cppflags
  7850. ac_save_libs="$LIBS"
  7851. ac_save_ldflags="$LDFLAGS"
  7852. LIBS="-framework OpenGL -framework AGL -framework ApplicationServices $LIBS"
  7853. LDFLAGS="$OPENGLPATH $LDFLAGS"
  7854. echo $ac_n "checking for glBegin""... $ac_c" 1>&6
  7855. echo "configure:9837: checking for glBegin" >&5
  7856. cat > conftest.$ac_ext <<EOF
  7857. #line 9840 "configure"
  7858. #include "confdefs.h"
  7859. /* System header to define __stub macros and hopefully few prototypes,
  7860. which can conflict with char glBegin(); below. */
  7861. #include <assert.h>
  7862. /* Override any gcc2 internal prototype to avoid an error. */
  7863. /* We use char because int might match the return type of a gcc2
  7864. builtin and then its argument prototype would still apply. */
  7865. char glBegin();
  7866. int main() {
  7867. /* The GNU C library defines this for functions which it implements
  7868. to always fail with ENOSYS. Some functions are actually named
  7869. something starting with __ and the normal name is an alias. */
  7870. #if defined (__stub_glBegin) || defined (__stub___glBegin)
  7871. choke me
  7872. #else
  7873. glBegin();
  7874. #endif
  7875. ; return 0; }
  7876. EOF
  7877. if { (eval echo configure:9863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7878. rm -rf conftest*
  7879. eval "ac_cv_func_glBegin=yes"
  7880. else
  7881. echo "configure: failed program was:" >&5
  7882. cat conftest.$ac_ext >&5
  7883. rm -rf conftest*
  7884. eval "ac_cv_func_glBegin=no"
  7885. fi
  7886. rm -f conftest*
  7887. if eval "test \"`echo '$ac_cv_func_'glBegin`\" = yes"; then
  7888. echo "$ac_t""yes" 1>&6
  7889. OPENGLLIB="$OPENGLLIB -framework OpenGL -framework AGL -framework ApplicationServices"
  7890. else
  7891. echo "$ac_t""no" 1>&6
  7892. { echo "configure: error: *** Unable to locate glBegin." 1>&2; exit 1; }
  7893. fi
  7894. LIBS=${ac_save_libs}
  7895. LDFLAGS=${ac_save_ldflags}
  7896. ac_save_libs="$LIBS"
  7897. ac_save_ldflags="$LDFLAGS"
  7898. LIBS=" $OPENGLLIB $LIBS"
  7899. LDFLAGS="$OPENGLPATH $LDFLAGS"
  7900. echo $ac_n "checking for gluBeginCurve""... $ac_c" 1>&6
  7901. echo "configure:9900: checking for gluBeginCurve" >&5
  7902. cat > conftest.$ac_ext <<EOF
  7903. #line 9903 "configure"
  7904. #include "confdefs.h"
  7905. /* System header to define __stub macros and hopefully few prototypes,
  7906. which can conflict with char gluBeginCurve(); below. */
  7907. #include <assert.h>
  7908. /* Override any gcc2 internal prototype to avoid an error. */
  7909. /* We use char because int might match the return type of a gcc2
  7910. builtin and then its argument prototype would still apply. */
  7911. char gluBeginCurve();
  7912. int main() {
  7913. /* The GNU C library defines this for functions which it implements
  7914. to always fail with ENOSYS. Some functions are actually named
  7915. something starting with __ and the normal name is an alias. */
  7916. #if defined (__stub_gluBeginCurve) || defined (__stub___gluBeginCurve)
  7917. choke me
  7918. #else
  7919. gluBeginCurve();
  7920. #endif
  7921. ; return 0; }
  7922. EOF
  7923. if { (eval echo configure:9926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7924. rm -rf conftest*
  7925. eval "ac_cv_func_gluBeginCurve=yes"
  7926. else
  7927. echo "configure: failed program was:" >&5
  7928. cat conftest.$ac_ext >&5
  7929. rm -rf conftest*
  7930. eval "ac_cv_func_gluBeginCurve=no"
  7931. fi
  7932. rm -f conftest*
  7933. if eval "test \"`echo '$ac_cv_func_'gluBeginCurve`\" = yes"; then
  7934. echo "$ac_t""yes" 1>&6
  7935. OPENGLLIB="$OPENGLLIB "
  7936. else
  7937. echo "$ac_t""no" 1>&6
  7938. { echo "configure: error: *** Unable to locate gluBeginCurve." 1>&2; exit 1; }
  7939. fi
  7940. LIBS=${ac_save_libs}
  7941. LDFLAGS=${ac_save_ldflags}
  7942. OPENGLINC="$OPENGLPATH"
  7943. OPENGLLIBPATH="$OPENGLPATH"
  7944. cat >> confdefs.h <<\EOF
  7945. #define OPENGL_AQUA 1
  7946. EOF
  7947. fi # $OPENGL_AQUA
  7948. if test "$OPENGL_WINDOWS" = 1 ; then
  7949. # With OpenGL includes directory
  7950. echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
  7951. echo "configure:9974: checking for location of OpenGL includes" >&5
  7952. case "$with_opengl_includes" in
  7953. y | ye | yes | n | no)
  7954. { echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
  7955. ;;
  7956. esac
  7957. echo "$ac_t""$with_opengl_includes" 1>&6
  7958. if test -n "$with_opengl_includes" ; then
  7959. for dir in $with_opengl_includes; do
  7960. if test -d "$dir"; then
  7961. OPENGLINC="$OPENGLINC -I$dir"
  7962. else
  7963. { echo "configure: error: *** OpenGL includes directory $dir does not exist." 1>&2; exit 1; }
  7964. fi
  7965. done
  7966. fi
  7967. ac_save_cppflags="$CPPFLAGS"
  7968. CPPFLAGS="$OPENGLINC $CPPFLAGS"
  7969. for ac_hdr in GL/gl.h GL/glu.h
  7970. do
  7971. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7972. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7973. echo "configure:10000: checking for $ac_hdr" >&5
  7974. cat > conftest.$ac_ext <<EOF
  7975. #line 10003 "configure"
  7976. #include "confdefs.h"
  7977. #include <$ac_hdr>
  7978. EOF
  7979. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7980. { (eval echo configure:10008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7981. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7982. if test -z "$ac_err"; then
  7983. rm -rf conftest*
  7984. eval "ac_cv_header_$ac_safe=yes"
  7985. else
  7986. echo "$ac_err" >&5
  7987. echo "configure: failed program was:" >&5
  7988. cat conftest.$ac_ext >&5
  7989. rm -rf conftest*
  7990. eval "ac_cv_header_$ac_safe=no"
  7991. fi
  7992. rm -f conftest*
  7993. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7994. echo "$ac_t""yes" 1>&6
  7995. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7996. cat >> confdefs.h <<EOF
  7997. #define $ac_tr_hdr 1
  7998. EOF
  7999. else
  8000. echo "$ac_t""no" 1>&6
  8001. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  8002. fi
  8003. done
  8004. CPPFLAGS=$ac_save_cppflags
  8005. # With OpenGL library directory
  8006. echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
  8007. echo "configure:10042: checking for location of OpenGL library" >&5
  8008. case "$with_opengl_libs" in
  8009. y | ye | yes | n | no)
  8010. { echo "configure: error: *** You must supply a directory to --with-opengl-libs." 1>&2; exit 1; }
  8011. ;;
  8012. esac
  8013. echo "$ac_t""$with_opengl_libs" 1>&6
  8014. if test -n "$with_opengl_libs"; then
  8015. for dir in $with_opengl_libs; do
  8016. if test -d "$dir"; then
  8017. OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
  8018. else
  8019. { echo "configure: error: *** OpenGL library directory $dir does not exist." 1>&2; exit 1; }
  8020. fi
  8021. done
  8022. fi
  8023. ac_save_cflags="$CFLAGS"
  8024. CFLAGS="$CFLAGS $OPENGLINC"
  8025. ac_save_ldflags="$LDFLAGS"
  8026. ac_save_libs="$LIBS"
  8027. echo $ac_n "checking for OpenGL library""... $ac_c" 1>&6
  8028. echo "configure:10067: checking for OpenGL library" >&5
  8029. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  8030. LIBS="-lopengl32 "
  8031. cat > conftest.$ac_ext <<EOF
  8032. #line 10071 "configure"
  8033. #include "confdefs.h"
  8034. #include <GL/gl.h>
  8035. int main() {
  8036. glEnd();
  8037. ; return 0; }
  8038. EOF
  8039. if { (eval echo configure:10078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8040. rm -rf conftest*
  8041. echo "$ac_t""found" 1>&6
  8042. OPENGLLIB="$OPENGLLIB -lopengl32 "
  8043. else
  8044. echo "configure: failed program was:" >&5
  8045. cat conftest.$ac_ext >&5
  8046. rm -rf conftest*
  8047. { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
  8048. fi
  8049. rm -f conftest*
  8050. LIBS=${ac_save_libs}
  8051. LDFLAGS=${ac_save_ldflags}
  8052. ac_save_ldflags="$LDFLAGS"
  8053. ac_save_libs="$LIBS"
  8054. echo $ac_n "checking for GLU library""... $ac_c" 1>&6
  8055. echo "configure:10102: checking for GLU library" >&5
  8056. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  8057. LIBS="-lglu32 $OPENGLLIB "
  8058. cat > conftest.$ac_ext <<EOF
  8059. #line 10106 "configure"
  8060. #include "confdefs.h"
  8061. #include <GL/glu.h>
  8062. int main() {
  8063. gluNewQuadric();
  8064. ; return 0; }
  8065. EOF
  8066. if { (eval echo configure:10113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8067. rm -rf conftest*
  8068. echo "$ac_t""found" 1>&6
  8069. OPENGLULIB="$OPENGLULIB -lglu32 "
  8070. else
  8071. echo "configure: failed program was:" >&5
  8072. cat conftest.$ac_ext >&5
  8073. rm -rf conftest*
  8074. { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
  8075. fi
  8076. rm -f conftest*
  8077. LIBS=${ac_save_libs}
  8078. LDFLAGS=${ac_save_ldflags}
  8079. CFLAGS="${ac_save_cflags}"
  8080. OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
  8081. OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
  8082. cat >> confdefs.h <<\EOF
  8083. #define OPENGL_WINDOWS 1
  8084. EOF
  8085. fi # $OPENGL_WINDOWS
  8086. fi # $USE_OPENGL
  8087. # Done checking OpenGL
  8088. # Enable TCLTK option
  8089. echo $ac_n "checking whether to use Tcl/Tk""... $ac_c" 1>&6
  8090. echo "configure:10162: checking whether to use Tcl/Tk" >&5
  8091. echo "$ac_t"""$with_tcltk"" 1>&6
  8092. case "$with_tcltk" in
  8093. "no") USE_TCLTK= ;;
  8094. "yes") USE_TCLTK="1" ;;
  8095. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8096. esac
  8097. TCLINCDIR=
  8098. TCLTKLIBPATH=
  8099. TCLTKLIBS=
  8100. if test -n "$USE_TCLTK"; then
  8101. # With Tcl/Tk includes directory
  8102. echo $ac_n "checking for location of Tcl/Tk includes""... $ac_c" 1>&6
  8103. echo "configure:10182: checking for location of Tcl/Tk includes" >&5
  8104. case "$with_tcltk_includes" in
  8105. y | ye | yes | n | no)
  8106. { echo "configure: error: *** You must supply a directory to --with-tcltk-includes." 1>&2; exit 1; }
  8107. ;;
  8108. esac
  8109. echo "$ac_t""$with_tcltk_includes" 1>&6
  8110. if test -n "$with_tcltk_includes" ; then
  8111. for dir in $with_tcltk_includes; do
  8112. if test -d "$dir"; then
  8113. TCLINCDIR="$TCLINCDIR -I$dir"
  8114. else
  8115. { echo "configure: error: *** Tcl/Tk includes directory $dir does not exist." 1>&2; exit 1; }
  8116. fi
  8117. done
  8118. fi
  8119. ac_save_cppflags="$CPPFLAGS"
  8120. CPPFLAGS="$TCLINCDIR $CPPFLAGS"
  8121. for ac_hdr in tcl.h
  8122. do
  8123. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8124. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8125. echo "configure:10208: checking for $ac_hdr" >&5
  8126. cat > conftest.$ac_ext <<EOF
  8127. #line 10211 "configure"
  8128. #include "confdefs.h"
  8129. #include <$ac_hdr>
  8130. EOF
  8131. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8132. { (eval echo configure:10216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8133. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8134. if test -z "$ac_err"; then
  8135. rm -rf conftest*
  8136. eval "ac_cv_header_$ac_safe=yes"
  8137. else
  8138. echo "$ac_err" >&5
  8139. echo "configure: failed program was:" >&5
  8140. cat conftest.$ac_ext >&5
  8141. rm -rf conftest*
  8142. eval "ac_cv_header_$ac_safe=no"
  8143. fi
  8144. rm -f conftest*
  8145. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8146. echo "$ac_t""yes" 1>&6
  8147. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8148. cat >> confdefs.h <<EOF
  8149. #define $ac_tr_hdr 1
  8150. EOF
  8151. else
  8152. echo "$ac_t""no" 1>&6
  8153. { echo "configure: error: *** Unable to locate Tcl includes." 1>&2; exit 1; }
  8154. fi
  8155. done
  8156. CPPFLAGS=$ac_save_cppflags
  8157. ac_save_cppflags="$CPPFLAGS"
  8158. CPPFLAGS="$TCLINCDIR $X_CFLAGS $CPPFLAGS"
  8159. for ac_hdr in tk.h
  8160. do
  8161. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8162. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8163. echo "configure:10253: checking for $ac_hdr" >&5
  8164. cat > conftest.$ac_ext <<EOF
  8165. #line 10256 "configure"
  8166. #include "confdefs.h"
  8167. #include <$ac_hdr>
  8168. EOF
  8169. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8170. { (eval echo configure:10261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8171. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8172. if test -z "$ac_err"; then
  8173. rm -rf conftest*
  8174. eval "ac_cv_header_$ac_safe=yes"
  8175. else
  8176. echo "$ac_err" >&5
  8177. echo "configure: failed program was:" >&5
  8178. cat conftest.$ac_ext >&5
  8179. rm -rf conftest*
  8180. eval "ac_cv_header_$ac_safe=no"
  8181. fi
  8182. rm -f conftest*
  8183. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8184. echo "$ac_t""yes" 1>&6
  8185. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8186. cat >> confdefs.h <<EOF
  8187. #define $ac_tr_hdr 1
  8188. EOF
  8189. else
  8190. echo "$ac_t""no" 1>&6
  8191. { echo "configure: error: *** Unable to locate Tk includes." 1>&2; exit 1; }
  8192. fi
  8193. done
  8194. CPPFLAGS=$ac_save_cppflags
  8195. # Tcl/Tk version checks
  8196. echo $ac_n "checking Tcl version""... $ac_c" 1>&6
  8197. echo "configure:10295: checking Tcl version" >&5
  8198. ac_save_cppflags="$CPPFLAGS"
  8199. CPPFLAGS="$TCLINCDIR $CPPFLAGS"
  8200. if test "$cross_compiling" = yes; then
  8201. tcl_ver=UNKNOWN
  8202. echo "$ac_t""unknown (cross-compiling)" 1>&6
  8203. else
  8204. cat > conftest.$ac_ext <<EOF
  8205. #line 10303 "configure"
  8206. #include "confdefs.h"
  8207. #include <stdio.h>
  8208. #include <tcl.h>
  8209. int main(void) {
  8210. FILE *fp = fopen("conftestdata","w");
  8211. fputs(TCL_VERSION, fp);
  8212. return 0;
  8213. }
  8214. EOF
  8215. if { (eval echo configure:10315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  8216. then
  8217. tcl_ver=`cat conftestdata`
  8218. echo "$ac_t""$tcl_ver" 1>&6
  8219. else
  8220. echo "configure: failed program was:" >&5
  8221. cat conftest.$ac_ext >&5
  8222. rm -fr conftest*
  8223. { echo "configure: error: *** Could not determine Tcl version." 1>&2; exit 1; }
  8224. fi
  8225. rm -fr conftest*
  8226. fi
  8227. CPPFLAGS=$ac_save_cppflags
  8228. echo $ac_n "checking Tk version""... $ac_c" 1>&6
  8229. echo "configure:10333: checking Tk version" >&5
  8230. ac_save_cppflags="$CPPFLAGS"
  8231. CPPFLAGS="$TCLINCDIR $X_CFLAGS $CPPFLAGS"
  8232. if test "$cross_compiling" = yes; then
  8233. tk_ver=UNKNOWN
  8234. echo "$ac_t""unknown (cross-compiling)" 1>&6
  8235. else
  8236. cat > conftest.$ac_ext <<EOF
  8237. #line 10341 "configure"
  8238. #include "confdefs.h"
  8239. #include <stdio.h>
  8240. #include <tk.h>
  8241. int main(void) {
  8242. FILE *fp = fopen("conftestdata","w");
  8243. fputs(TK_VERSION, fp);
  8244. return 0;
  8245. }
  8246. EOF
  8247. if { (eval echo configure:10353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  8248. then
  8249. tk_ver=`cat conftestdata`
  8250. echo "$ac_t""$tk_ver" 1>&6
  8251. else
  8252. echo "configure: failed program was:" >&5
  8253. cat conftest.$ac_ext >&5
  8254. rm -fr conftest*
  8255. { echo "configure: error: *** Could not determine Tk version." 1>&2; exit 1; }
  8256. fi
  8257. rm -fr conftest*
  8258. fi
  8259. CPPFLAGS=$ac_save_cppflags
  8260. if test "$tcl_ver" = "$tk_ver" ; then
  8261. tcltk_ver="$tcl_ver"
  8262. else
  8263. { echo "configure: error: *** Tcl/Tk version mismatch." 1>&2; exit 1; }
  8264. fi
  8265. # FreeBSD and CygWin don't have a "dot" between major/minor version number
  8266. tcltk_ver2=`echo "$tcltk_ver" | sed 's/\.//g'`
  8267. # With Tcl/Tk library directory
  8268. echo $ac_n "checking for location of Tcl/Tk library""... $ac_c" 1>&6
  8269. echo "configure:10382: checking for location of Tcl/Tk library" >&5
  8270. case "$with_tcltk_libs" in
  8271. y | ye | yes | n | no)
  8272. { echo "configure: error: *** You must supply a directory to --with-tcltk-libs." 1>&2; exit 1; }
  8273. ;;
  8274. esac
  8275. echo "$ac_t""$with_tcltk_libs" 1>&6
  8276. if test -n "$with_tcltk_libs"; then
  8277. for dir in $with_tcltk_libs; do
  8278. if test -d "$dir"; then
  8279. TCLTKLIBPATH="$TCLTKLIBPATH -L$dir"
  8280. else
  8281. { echo "configure: error: *** Tcl/Tk library directory $dir does not exist." 1>&2; exit 1; }
  8282. fi
  8283. done
  8284. fi
  8285. TCLLIB=
  8286. TKLIB=
  8287. MACOSX_ARCHS_TCLTK=
  8288. # Can't test tcl/tk libs on 64bit OSX Aqua for now
  8289. # assume that if OpenGL Aqua, then user specifies TclTk Aqua
  8290. if test "$OPENGL_AQUA" = 1 ; then
  8291. save_CFLAGS="$CFLAGS"
  8292. CFLAGS="`echo \"$CFLAGS\" | sed -E 's/-arch +x86_64//g' | sed -E 's/-arch +ppc64//g'`"
  8293. save_LDFLAGS="$LDFLAGS"
  8294. LDFLAGS="`echo \"$LDFLAGS\" | sed -E 's/-arch +x86_64//g' | sed -E 's/-arch +ppc64//g'`"
  8295. fi
  8296. ac_save_ldflags="$LDFLAGS"
  8297. LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
  8298. echo $ac_n "checking for Tcl_Init in -ltcl""... $ac_c" 1>&6
  8299. echo "configure:10422: checking for Tcl_Init in -ltcl" >&5
  8300. ac_lib_var=`echo tcl'_'Tcl_Init | sed 'y%./+-%__p_%'`
  8301. ac_save_LIBS="$LIBS"
  8302. LIBS="-ltcl $MATHLIB $LIBS"
  8303. cat > conftest.$ac_ext <<EOF
  8304. #line 10428 "configure"
  8305. #include "confdefs.h"
  8306. /* Override any gcc2 internal prototype to avoid an error. */
  8307. /* We use char because int might match the return type of a gcc2
  8308. builtin and then its argument prototype would still apply. */
  8309. char Tcl_Init();
  8310. int main() {
  8311. Tcl_Init()
  8312. ; return 0; }
  8313. EOF
  8314. if { (eval echo configure:10439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8315. rm -rf conftest*
  8316. eval "ac_cv_lib_$ac_lib_var=yes"
  8317. else
  8318. echo "configure: failed program was:" >&5
  8319. cat conftest.$ac_ext >&5
  8320. rm -rf conftest*
  8321. eval "ac_cv_lib_$ac_lib_var=no"
  8322. fi
  8323. rm -f conftest*
  8324. LIBS="$ac_save_LIBS"
  8325. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8326. echo "$ac_t""yes" 1>&6
  8327. TCLLIB="$TCLLIB -ltcl $MATHLIB"
  8328. else
  8329. echo "$ac_t""no" 1>&6
  8330. echo $ac_n "checking for Tcl_Init in -ltcl""... $ac_c" 1>&6
  8331. echo "configure:10458: checking for Tcl_Init in -ltcl" >&5
  8332. ac_lib_var=`echo tcl'_'Tcl_Init | sed 'y%./+-%__p_%'`
  8333. ac_save_LIBS="$LIBS"
  8334. LIBS="-ltcl $MATHLIB $DLLIB $LIBS"
  8335. cat > conftest.$ac_ext <<EOF
  8336. #line 10464 "configure"
  8337. #include "confdefs.h"
  8338. /* Override any gcc2 internal prototype to avoid an error. */
  8339. /* We use char because int might match the return type of a gcc2
  8340. builtin and then its argument prototype would still apply. */
  8341. char Tcl_Init();
  8342. int main() {
  8343. Tcl_Init()
  8344. ; return 0; }
  8345. EOF
  8346. if { (eval echo configure:10475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8347. rm -rf conftest*
  8348. eval "ac_cv_lib_$ac_lib_var=yes"
  8349. else
  8350. echo "configure: failed program was:" >&5
  8351. cat conftest.$ac_ext >&5
  8352. rm -rf conftest*
  8353. eval "ac_cv_lib_$ac_lib_var=no"
  8354. fi
  8355. rm -f conftest*
  8356. LIBS="$ac_save_LIBS"
  8357. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8358. echo "$ac_t""yes" 1>&6
  8359. TCLLIB="$TCLLIB -ltcl $MATHLIB $DLLIB"
  8360. else
  8361. echo "$ac_t""no" 1>&6
  8362. LDFLAGS=${ac_save_ldflags}
  8363. ac_save_ldflags="$LDFLAGS"
  8364. LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
  8365. echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver""... $ac_c" 1>&6
  8366. echo "configure:10502: checking for Tcl_Init in -ltcl$tcltk_ver" >&5
  8367. ac_lib_var=`echo tcl$tcltk_ver'_'Tcl_Init | sed 'y%./+-%__p_%'`
  8368. ac_save_LIBS="$LIBS"
  8369. LIBS="-ltcl$tcltk_ver $MATHLIB $LIBS"
  8370. cat > conftest.$ac_ext <<EOF
  8371. #line 10508 "configure"
  8372. #include "confdefs.h"
  8373. /* Override any gcc2 internal prototype to avoid an error. */
  8374. /* We use char because int might match the return type of a gcc2
  8375. builtin and then its argument prototype would still apply. */
  8376. char Tcl_Init();
  8377. int main() {
  8378. Tcl_Init()
  8379. ; return 0; }
  8380. EOF
  8381. if { (eval echo configure:10519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8382. rm -rf conftest*
  8383. eval "ac_cv_lib_$ac_lib_var=yes"
  8384. else
  8385. echo "configure: failed program was:" >&5
  8386. cat conftest.$ac_ext >&5
  8387. rm -rf conftest*
  8388. eval "ac_cv_lib_$ac_lib_var=no"
  8389. fi
  8390. rm -f conftest*
  8391. LIBS="$ac_save_LIBS"
  8392. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8393. echo "$ac_t""yes" 1>&6
  8394. TCLLIB="$TCLLIB -ltcl$tcltk_ver $MATHLIB"
  8395. else
  8396. echo "$ac_t""no" 1>&6
  8397. echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver""... $ac_c" 1>&6
  8398. echo "configure:10538: checking for Tcl_Init in -ltcl$tcltk_ver" >&5
  8399. ac_lib_var=`echo tcl$tcltk_ver'_'Tcl_Init | sed 'y%./+-%__p_%'`
  8400. ac_save_LIBS="$LIBS"
  8401. LIBS="-ltcl$tcltk_ver $MATHLIB $DLLIB $LIBS"
  8402. cat > conftest.$ac_ext <<EOF
  8403. #line 10544 "configure"
  8404. #include "confdefs.h"
  8405. /* Override any gcc2 internal prototype to avoid an error. */
  8406. /* We use char because int might match the return type of a gcc2
  8407. builtin and then its argument prototype would still apply. */
  8408. char Tcl_Init();
  8409. int main() {
  8410. Tcl_Init()
  8411. ; return 0; }
  8412. EOF
  8413. if { (eval echo configure:10555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8414. rm -rf conftest*
  8415. eval "ac_cv_lib_$ac_lib_var=yes"
  8416. else
  8417. echo "configure: failed program was:" >&5
  8418. cat conftest.$ac_ext >&5
  8419. rm -rf conftest*
  8420. eval "ac_cv_lib_$ac_lib_var=no"
  8421. fi
  8422. rm -f conftest*
  8423. LIBS="$ac_save_LIBS"
  8424. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8425. echo "$ac_t""yes" 1>&6
  8426. TCLLIB="$TCLLIB -ltcl$tcltk_ver $MATHLIB $DLLIB"
  8427. else
  8428. echo "$ac_t""no" 1>&6
  8429. LDFLAGS=${ac_save_ldflags}
  8430. ac_save_ldflags="$LDFLAGS"
  8431. LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
  8432. echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver2""... $ac_c" 1>&6
  8433. echo "configure:10582: checking for Tcl_Init in -ltcl$tcltk_ver2" >&5
  8434. ac_lib_var=`echo tcl$tcltk_ver2'_'Tcl_Init | sed 'y%./+-%__p_%'`
  8435. ac_save_LIBS="$LIBS"
  8436. LIBS="-ltcl$tcltk_ver2 $MATHLIB $LIBS"
  8437. cat > conftest.$ac_ext <<EOF
  8438. #line 10588 "configure"
  8439. #include "confdefs.h"
  8440. /* Override any gcc2 internal prototype to avoid an error. */
  8441. /* We use char because int might match the return type of a gcc2
  8442. builtin and then its argument prototype would still apply. */
  8443. char Tcl_Init();
  8444. int main() {
  8445. Tcl_Init()
  8446. ; return 0; }
  8447. EOF
  8448. if { (eval echo configure:10599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8449. rm -rf conftest*
  8450. eval "ac_cv_lib_$ac_lib_var=yes"
  8451. else
  8452. echo "configure: failed program was:" >&5
  8453. cat conftest.$ac_ext >&5
  8454. rm -rf conftest*
  8455. eval "ac_cv_lib_$ac_lib_var=no"
  8456. fi
  8457. rm -f conftest*
  8458. LIBS="$ac_save_LIBS"
  8459. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8460. echo "$ac_t""yes" 1>&6
  8461. TCLLIB="$TCLLIB -ltcl$tcltk_ver2 $MATHLIB"
  8462. else
  8463. echo "$ac_t""no" 1>&6
  8464. echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver2""... $ac_c" 1>&6
  8465. echo "configure:10618: checking for Tcl_Init in -ltcl$tcltk_ver2" >&5
  8466. ac_lib_var=`echo tcl$tcltk_ver2'_'Tcl_Init | sed 'y%./+-%__p_%'`
  8467. ac_save_LIBS="$LIBS"
  8468. LIBS="-ltcl$tcltk_ver2 $MATHLIB $DLLIB $LIBS"
  8469. cat > conftest.$ac_ext <<EOF
  8470. #line 10624 "configure"
  8471. #include "confdefs.h"
  8472. /* Override any gcc2 internal prototype to avoid an error. */
  8473. /* We use char because int might match the return type of a gcc2
  8474. builtin and then its argument prototype would still apply. */
  8475. char Tcl_Init();
  8476. int main() {
  8477. Tcl_Init()
  8478. ; return 0; }
  8479. EOF
  8480. if { (eval echo configure:10635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8481. rm -rf conftest*
  8482. eval "ac_cv_lib_$ac_lib_var=yes"
  8483. else
  8484. echo "configure: failed program was:" >&5
  8485. cat conftest.$ac_ext >&5
  8486. rm -rf conftest*
  8487. eval "ac_cv_lib_$ac_lib_var=no"
  8488. fi
  8489. rm -f conftest*
  8490. LIBS="$ac_save_LIBS"
  8491. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8492. echo "$ac_t""yes" 1>&6
  8493. TCLLIB="$TCLLIB -ltcl$tcltk_ver2 $MATHLIB $DLLIB"
  8494. else
  8495. echo "$ac_t""no" 1>&6
  8496. LDFLAGS=${ac_save_ldflags}
  8497. { echo "configure: error: *** Unable to locate Tcl library." 1>&2; exit 1; }
  8498. fi
  8499. fi
  8500. LDFLAGS=${ac_save_ldflags}
  8501. fi
  8502. fi
  8503. LDFLAGS=${ac_save_ldflags}
  8504. fi
  8505. fi
  8506. LDFLAGS=${ac_save_ldflags}
  8507. ac_save_ldflags="$LDFLAGS"
  8508. LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
  8509. echo $ac_n "checking for Tk_MainWindow in -ltk""... $ac_c" 1>&6
  8510. echo "configure:10713: checking for Tk_MainWindow in -ltk" >&5
  8511. ac_lib_var=`echo tk'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
  8512. ac_save_LIBS="$LIBS"
  8513. LIBS="-ltk $TCLLIB $MATHLIB $LIBS"
  8514. cat > conftest.$ac_ext <<EOF
  8515. #line 10719 "configure"
  8516. #include "confdefs.h"
  8517. /* Override any gcc2 internal prototype to avoid an error. */
  8518. /* We use char because int might match the return type of a gcc2
  8519. builtin and then its argument prototype would still apply. */
  8520. char Tk_MainWindow();
  8521. int main() {
  8522. Tk_MainWindow()
  8523. ; return 0; }
  8524. EOF
  8525. if { (eval echo configure:10730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8526. rm -rf conftest*
  8527. eval "ac_cv_lib_$ac_lib_var=yes"
  8528. else
  8529. echo "configure: failed program was:" >&5
  8530. cat conftest.$ac_ext >&5
  8531. rm -rf conftest*
  8532. eval "ac_cv_lib_$ac_lib_var=no"
  8533. fi
  8534. rm -f conftest*
  8535. LIBS="$ac_save_LIBS"
  8536. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8537. echo "$ac_t""yes" 1>&6
  8538. TKLIB="$TKLIB -ltk $MATHLIB"
  8539. else
  8540. echo "$ac_t""no" 1>&6
  8541. echo $ac_n "checking for Tk_MainWindow in -ltk""... $ac_c" 1>&6
  8542. echo "configure:10749: checking for Tk_MainWindow in -ltk" >&5
  8543. ac_lib_var=`echo tk'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
  8544. ac_save_LIBS="$LIBS"
  8545. LIBS="-ltk $TCLLIB $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
  8546. cat > conftest.$ac_ext <<EOF
  8547. #line 10755 "configure"
  8548. #include "confdefs.h"
  8549. /* Override any gcc2 internal prototype to avoid an error. */
  8550. /* We use char because int might match the return type of a gcc2
  8551. builtin and then its argument prototype would still apply. */
  8552. char Tk_MainWindow();
  8553. int main() {
  8554. Tk_MainWindow()
  8555. ; return 0; }
  8556. EOF
  8557. if { (eval echo configure:10766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8558. rm -rf conftest*
  8559. eval "ac_cv_lib_$ac_lib_var=yes"
  8560. else
  8561. echo "configure: failed program was:" >&5
  8562. cat conftest.$ac_ext >&5
  8563. rm -rf conftest*
  8564. eval "ac_cv_lib_$ac_lib_var=no"
  8565. fi
  8566. rm -f conftest*
  8567. LIBS="$ac_save_LIBS"
  8568. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8569. echo "$ac_t""yes" 1>&6
  8570. TKLIB="$TKLIB -ltk $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
  8571. else
  8572. echo "$ac_t""no" 1>&6
  8573. LDFLAGS=${ac_save_ldflags}
  8574. ac_save_ldflags="$LDFLAGS"
  8575. LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
  8576. echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver""... $ac_c" 1>&6
  8577. echo "configure:10793: checking for Tk_MainWindow in -ltk$tcltk_ver" >&5
  8578. ac_lib_var=`echo tk$tcltk_ver'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
  8579. ac_save_LIBS="$LIBS"
  8580. LIBS="-ltk$tcltk_ver $TCLLIB $MATHLIB $LIBS"
  8581. cat > conftest.$ac_ext <<EOF
  8582. #line 10799 "configure"
  8583. #include "confdefs.h"
  8584. /* Override any gcc2 internal prototype to avoid an error. */
  8585. /* We use char because int might match the return type of a gcc2
  8586. builtin and then its argument prototype would still apply. */
  8587. char Tk_MainWindow();
  8588. int main() {
  8589. Tk_MainWindow()
  8590. ; return 0; }
  8591. EOF
  8592. if { (eval echo configure:10810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8593. rm -rf conftest*
  8594. eval "ac_cv_lib_$ac_lib_var=yes"
  8595. else
  8596. echo "configure: failed program was:" >&5
  8597. cat conftest.$ac_ext >&5
  8598. rm -rf conftest*
  8599. eval "ac_cv_lib_$ac_lib_var=no"
  8600. fi
  8601. rm -f conftest*
  8602. LIBS="$ac_save_LIBS"
  8603. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8604. echo "$ac_t""yes" 1>&6
  8605. TKLIB="$TKLIB -ltk$tcltk_ver $MATHLIB"
  8606. else
  8607. echo "$ac_t""no" 1>&6
  8608. echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver""... $ac_c" 1>&6
  8609. echo "configure:10829: checking for Tk_MainWindow in -ltk$tcltk_ver" >&5
  8610. ac_lib_var=`echo tk$tcltk_ver'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
  8611. ac_save_LIBS="$LIBS"
  8612. LIBS="-ltk$tcltk_ver $TCLLIB $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
  8613. cat > conftest.$ac_ext <<EOF
  8614. #line 10835 "configure"
  8615. #include "confdefs.h"
  8616. /* Override any gcc2 internal prototype to avoid an error. */
  8617. /* We use char because int might match the return type of a gcc2
  8618. builtin and then its argument prototype would still apply. */
  8619. char Tk_MainWindow();
  8620. int main() {
  8621. Tk_MainWindow()
  8622. ; return 0; }
  8623. EOF
  8624. if { (eval echo configure:10846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8625. rm -rf conftest*
  8626. eval "ac_cv_lib_$ac_lib_var=yes"
  8627. else
  8628. echo "configure: failed program was:" >&5
  8629. cat conftest.$ac_ext >&5
  8630. rm -rf conftest*
  8631. eval "ac_cv_lib_$ac_lib_var=no"
  8632. fi
  8633. rm -f conftest*
  8634. LIBS="$ac_save_LIBS"
  8635. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8636. echo "$ac_t""yes" 1>&6
  8637. TKLIB="$TKLIB -ltk$tcltk_ver $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
  8638. else
  8639. echo "$ac_t""no" 1>&6
  8640. LDFLAGS=${ac_save_ldflags}
  8641. ac_save_ldflags="$LDFLAGS"
  8642. LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
  8643. echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver2""... $ac_c" 1>&6
  8644. echo "configure:10873: checking for Tk_MainWindow in -ltk$tcltk_ver2" >&5
  8645. ac_lib_var=`echo tk$tcltk_ver2'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
  8646. ac_save_LIBS="$LIBS"
  8647. LIBS="-ltk$tcltk_ver2 $TCLLIB $MATHLIB $LIBS"
  8648. cat > conftest.$ac_ext <<EOF
  8649. #line 10879 "configure"
  8650. #include "confdefs.h"
  8651. /* Override any gcc2 internal prototype to avoid an error. */
  8652. /* We use char because int might match the return type of a gcc2
  8653. builtin and then its argument prototype would still apply. */
  8654. char Tk_MainWindow();
  8655. int main() {
  8656. Tk_MainWindow()
  8657. ; return 0; }
  8658. EOF
  8659. if { (eval echo configure:10890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8660. rm -rf conftest*
  8661. eval "ac_cv_lib_$ac_lib_var=yes"
  8662. else
  8663. echo "configure: failed program was:" >&5
  8664. cat conftest.$ac_ext >&5
  8665. rm -rf conftest*
  8666. eval "ac_cv_lib_$ac_lib_var=no"
  8667. fi
  8668. rm -f conftest*
  8669. LIBS="$ac_save_LIBS"
  8670. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8671. echo "$ac_t""yes" 1>&6
  8672. TKLIB="$TKLIB -ltk$tcltk_ver2 $MATHLIB"
  8673. else
  8674. echo "$ac_t""no" 1>&6
  8675. echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver2""... $ac_c" 1>&6
  8676. echo "configure:10909: checking for Tk_MainWindow in -ltk$tcltk_ver2" >&5
  8677. ac_lib_var=`echo tk$tcltk_ver2'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
  8678. ac_save_LIBS="$LIBS"
  8679. LIBS="-ltk$tcltk_ver2 $TCLLIB $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
  8680. cat > conftest.$ac_ext <<EOF
  8681. #line 10915 "configure"
  8682. #include "confdefs.h"
  8683. /* Override any gcc2 internal prototype to avoid an error. */
  8684. /* We use char because int might match the return type of a gcc2
  8685. builtin and then its argument prototype would still apply. */
  8686. char Tk_MainWindow();
  8687. int main() {
  8688. Tk_MainWindow()
  8689. ; return 0; }
  8690. EOF
  8691. if { (eval echo configure:10926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8692. rm -rf conftest*
  8693. eval "ac_cv_lib_$ac_lib_var=yes"
  8694. else
  8695. echo "configure: failed program was:" >&5
  8696. cat conftest.$ac_ext >&5
  8697. rm -rf conftest*
  8698. eval "ac_cv_lib_$ac_lib_var=no"
  8699. fi
  8700. rm -f conftest*
  8701. LIBS="$ac_save_LIBS"
  8702. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8703. echo "$ac_t""yes" 1>&6
  8704. TKLIB="$TKLIB -ltk$tcltk_ver2 $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
  8705. else
  8706. echo "$ac_t""no" 1>&6
  8707. LDFLAGS=${ac_save_ldflags}
  8708. { echo "configure: error: *** Unable to locate Tk library." 1>&2; exit 1; }
  8709. fi
  8710. fi
  8711. LDFLAGS=${ac_save_ldflags}
  8712. fi
  8713. fi
  8714. LDFLAGS=${ac_save_ldflags}
  8715. fi
  8716. fi
  8717. LDFLAGS=${ac_save_ldflags}
  8718. # restore CFLAGS/LDLFAGS from Aqua 64bit strip
  8719. # only Tcl/Tk-based makefiles will strip 64bit out during compile
  8720. if test "$OPENGL_AQUA" = 1 ; then
  8721. CFLAGS="$save_CFLAGS"
  8722. LDFLAGS="$save_LDFLAGS"
  8723. fi
  8724. TCLTKLIBS="$TKLIB $TCLLIB"
  8725. # check for available OSX archs in TclTk
  8726. if test -n "$MACOSX_ARCHS" ; then
  8727. save_LDFLAGS="$LDFLAGS"
  8728. LDFLAGS=
  8729. save_CFLAGS="$CFLAGS"
  8730. CFLAGS=
  8731. tlib=`echo "$TCLLIB" | sed -e 's/-l//' -e 's/^ *//' -e 's/ *$//'`
  8732. for a in i386 ppc x86_64 ppc64
  8733. do
  8734. # add only if in MACOSX_ARCHS
  8735. echo $ac_n "checking for Tcl_Init in -l$tlib""... $ac_c" 1>&6
  8736. echo "configure:11016: checking for Tcl_Init in -l$tlib" >&5
  8737. ac_lib_var=`echo $tlib'_'Tcl_Init | sed 'y%./+-%__p_%'`
  8738. ac_save_LIBS="$LIBS"
  8739. LIBS="-l$tlib -arch $a $MACOSX_SDK $TCLTKLIBPATH $LIBS"
  8740. cat > conftest.$ac_ext <<EOF
  8741. #line 11022 "configure"
  8742. #include "confdefs.h"
  8743. /* Override any gcc2 internal prototype to avoid an error. */
  8744. /* We use char because int might match the return type of a gcc2
  8745. builtin and then its argument prototype would still apply. */
  8746. char Tcl_Init();
  8747. int main() {
  8748. Tcl_Init()
  8749. ; return 0; }
  8750. EOF
  8751. if { (eval echo configure:11033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8752. rm -rf conftest*
  8753. eval "ac_cv_lib_$ac_lib_var=yes"
  8754. else
  8755. echo "configure: failed program was:" >&5
  8756. cat conftest.$ac_ext >&5
  8757. rm -rf conftest*
  8758. eval "ac_cv_lib_$ac_lib_var=no"
  8759. fi
  8760. rm -f conftest*
  8761. LIBS="$ac_save_LIBS"
  8762. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8763. echo "$ac_t""yes" 1>&6
  8764. if test -n "`echo "$MACOSX_ARCHS" | grep $a`" ; then
  8765. MACOSX_ARCHS_TCLTK="$MACOSX_ARCHS_TCLTK -arch $a"
  8766. fi
  8767. else
  8768. echo "$ac_t""no" 1>&6
  8769. fi
  8770. done
  8771. LDFLAGS="$save_LDFLAGS"
  8772. CFLAGS="$save_CFLAGS"
  8773. fi
  8774. cat >> confdefs.h <<\EOF
  8775. #define HAVE_TCLTK 1
  8776. EOF
  8777. fi # $USE_TCLTK
  8778. TKINCDIR=$TCLINCDIR
  8779. # Done checking Tcl/Tk
  8780. # Enable ODBC option
  8781. echo $ac_n "checking whether to use ODBC""... $ac_c" 1>&6
  8782. echo "configure:11083: checking whether to use ODBC" >&5
  8783. echo "$ac_t"""$with_odbc"" 1>&6
  8784. case "$with_odbc" in
  8785. "no") USE_ODBC= ;;
  8786. "yes") USE_ODBC="1" ;;
  8787. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8788. esac
  8789. ODBCINC=
  8790. ODBCLIB=
  8791. if test -n "$USE_ODBC"; then
  8792. # With ODBC includes directory
  8793. echo $ac_n "checking for location of ODBC includes""... $ac_c" 1>&6
  8794. echo "configure:11102: checking for location of ODBC includes" >&5
  8795. case "$with_odbc_includes" in
  8796. y | ye | yes | n | no)
  8797. { echo "configure: error: *** You must supply a directory to --with-odbc-includes." 1>&2; exit 1; }
  8798. ;;
  8799. esac
  8800. echo "$ac_t""$with_odbc_includes" 1>&6
  8801. if test -n "$with_odbc_includes" ; then
  8802. for dir in $with_odbc_includes; do
  8803. if test -d "$dir"; then
  8804. ODBCINC="$ODBCINC -I$dir"
  8805. else
  8806. { echo "configure: error: *** ODBC includes directory $dir does not exist." 1>&2; exit 1; }
  8807. fi
  8808. done
  8809. fi
  8810. ac_save_cppflags="$CPPFLAGS"
  8811. CPPFLAGS="$ODBCINC $CPPFLAGS"
  8812. for ac_hdr in sql.h
  8813. do
  8814. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8815. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8816. echo "configure:11128: checking for $ac_hdr" >&5
  8817. cat > conftest.$ac_ext <<EOF
  8818. #line 11131 "configure"
  8819. #include "confdefs.h"
  8820. #include <$ac_hdr>
  8821. EOF
  8822. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8823. { (eval echo configure:11136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8824. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8825. if test -z "$ac_err"; then
  8826. rm -rf conftest*
  8827. eval "ac_cv_header_$ac_safe=yes"
  8828. else
  8829. echo "$ac_err" >&5
  8830. echo "configure: failed program was:" >&5
  8831. cat conftest.$ac_ext >&5
  8832. rm -rf conftest*
  8833. eval "ac_cv_header_$ac_safe=no"
  8834. fi
  8835. rm -f conftest*
  8836. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8837. echo "$ac_t""yes" 1>&6
  8838. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8839. cat >> confdefs.h <<EOF
  8840. #define $ac_tr_hdr 1
  8841. EOF
  8842. else
  8843. echo "$ac_t""no" 1>&6
  8844. { echo "configure: error: *** Unable to locate ODBC includes." 1>&2; exit 1; }
  8845. fi
  8846. done
  8847. CPPFLAGS=$ac_save_cppflags
  8848. # With ODBC library directory
  8849. echo $ac_n "checking for location of ODBC library""... $ac_c" 1>&6
  8850. echo "configure:11170: checking for location of ODBC library" >&5
  8851. case "$with_odbc_libs" in
  8852. y | ye | yes | n | no)
  8853. { echo "configure: error: *** You must supply a directory to --with-odbc-libs." 1>&2; exit 1; }
  8854. ;;
  8855. esac
  8856. echo "$ac_t""$with_odbc_libs" 1>&6
  8857. if test -n "$with_odbc_libs"; then
  8858. for dir in $with_odbc_libs; do
  8859. if test -d "$dir"; then
  8860. ODBCLIB="$ODBCLIB -L$dir"
  8861. else
  8862. { echo "configure: error: *** ODBC library directory $dir does not exist." 1>&2; exit 1; }
  8863. fi
  8864. done
  8865. fi
  8866. ac_save_ldflags="$LDFLAGS"
  8867. LDFLAGS="$ODBCLIB $LDFLAGS"
  8868. echo $ac_n "checking for SQLConnect in -lodbc""... $ac_c" 1>&6
  8869. echo "configure:11195: checking for SQLConnect in -lodbc" >&5
  8870. ac_lib_var=`echo odbc'_'SQLConnect | sed 'y%./+-%__p_%'`
  8871. ac_save_LIBS="$LIBS"
  8872. LIBS="-lodbc $ICONVLIB $LIBS"
  8873. cat > conftest.$ac_ext <<EOF
  8874. #line 11201 "configure"
  8875. #include "confdefs.h"
  8876. /* Override any gcc2 internal prototype to avoid an error. */
  8877. /* We use char because int might match the return type of a gcc2
  8878. builtin and then its argument prototype would still apply. */
  8879. char SQLConnect();
  8880. int main() {
  8881. SQLConnect()
  8882. ; return 0; }
  8883. EOF
  8884. if { (eval echo configure:11212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8885. rm -rf conftest*
  8886. eval "ac_cv_lib_$ac_lib_var=yes"
  8887. else
  8888. echo "configure: failed program was:" >&5
  8889. cat conftest.$ac_ext >&5
  8890. rm -rf conftest*
  8891. eval "ac_cv_lib_$ac_lib_var=no"
  8892. fi
  8893. rm -f conftest*
  8894. LIBS="$ac_save_LIBS"
  8895. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8896. echo "$ac_t""yes" 1>&6
  8897. ODBCLIB="$ODBCLIB -lodbc "
  8898. else
  8899. echo "$ac_t""no" 1>&6
  8900. LDFLAGS=${ac_save_ldflags}
  8901. ac_save_ldflags="$LDFLAGS"
  8902. LDFLAGS="$ODBCLIB $LDFLAGS"
  8903. echo $ac_n "checking for SQLConnect in -liodbc""... $ac_c" 1>&6
  8904. echo "configure:11237: checking for SQLConnect in -liodbc" >&5
  8905. ac_lib_var=`echo iodbc'_'SQLConnect | sed 'y%./+-%__p_%'`
  8906. ac_save_LIBS="$LIBS"
  8907. LIBS="-liodbc $LIBS"
  8908. cat > conftest.$ac_ext <<EOF
  8909. #line 11243 "configure"
  8910. #include "confdefs.h"
  8911. /* Override any gcc2 internal prototype to avoid an error. */
  8912. /* We use char because int might match the return type of a gcc2
  8913. builtin and then its argument prototype would still apply. */
  8914. char SQLConnect();
  8915. int main() {
  8916. SQLConnect()
  8917. ; return 0; }
  8918. EOF
  8919. if { (eval echo configure:11254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8920. rm -rf conftest*
  8921. eval "ac_cv_lib_$ac_lib_var=yes"
  8922. else
  8923. echo "configure: failed program was:" >&5
  8924. cat conftest.$ac_ext >&5
  8925. rm -rf conftest*
  8926. eval "ac_cv_lib_$ac_lib_var=no"
  8927. fi
  8928. rm -f conftest*
  8929. LIBS="$ac_save_LIBS"
  8930. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8931. echo "$ac_t""yes" 1>&6
  8932. ODBCLIB="$ODBCLIB -liodbc "
  8933. else
  8934. echo "$ac_t""no" 1>&6
  8935. LDFLAGS=${ac_save_ldflags}
  8936. ac_save_cflags="$CFLAGS"
  8937. CFLAGS="$CFLAGS $ODBCINC"
  8938. ac_save_ldflags="$LDFLAGS"
  8939. ac_save_libs="$LIBS"
  8940. echo $ac_n "checking for ODBC library""... $ac_c" 1>&6
  8941. echo "configure:11279: checking for ODBC library" >&5
  8942. LDFLAGS="$ODBCLIB $LDFLAGS"
  8943. LIBS="-lodbc32 "
  8944. cat > conftest.$ac_ext <<EOF
  8945. #line 11283 "configure"
  8946. #include "confdefs.h"
  8947. #include <windows.h>
  8948. #include <sql.h>
  8949. int main() {
  8950. SQLAllocEnv((SQLHENV *)0);
  8951. ; return 0; }
  8952. EOF
  8953. if { (eval echo configure:11291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8954. rm -rf conftest*
  8955. echo "$ac_t""found" 1>&6
  8956. ODBCLIB="$ODBCLIB -lodbc32 "
  8957. else
  8958. echo "configure: failed program was:" >&5
  8959. cat conftest.$ac_ext >&5
  8960. rm -rf conftest*
  8961. { echo "configure: error: *** Unable to locate ODBC library." 1>&2; exit 1; }
  8962. fi
  8963. rm -f conftest*
  8964. LIBS=${ac_save_libs}
  8965. LDFLAGS=${ac_save_ldflags}
  8966. CFLAGS="${ac_save_cflags}"
  8967. fi
  8968. LDFLAGS=${ac_save_ldflags}
  8969. fi
  8970. LDFLAGS=${ac_save_ldflags}
  8971. fi # $USE_ODBC
  8972. # Done checking ODBC
  8973. # Enable FFTW option
  8974. echo $ac_n "checking whether to use FFTW""... $ac_c" 1>&6
  8975. echo "configure:11340: checking whether to use FFTW" >&5
  8976. echo "$ac_t"""$with_fftw"" 1>&6
  8977. case "$with_fftw" in
  8978. "no") USE_FFTW= ;;
  8979. "yes") USE_FFTW="1" ;;
  8980. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8981. esac
  8982. FFTWINC=
  8983. FFTWLIB=
  8984. if test -n "$USE_FFTW"; then
  8985. # With FFTW includes directory
  8986. echo $ac_n "checking for location of FFTW includes""... $ac_c" 1>&6
  8987. echo "configure:11359: checking for location of FFTW includes" >&5
  8988. case "$with_fftw_includes" in
  8989. y | ye | yes | n | no)
  8990. { echo "configure: error: *** You must supply a directory to --with-fftw-includes." 1>&2; exit 1; }
  8991. ;;
  8992. esac
  8993. echo "$ac_t""$with_fftw_includes" 1>&6
  8994. if test -n "$with_fftw_includes" ; then
  8995. for dir in $with_fftw_includes; do
  8996. if test -d "$dir"; then
  8997. FFTWINC="$FFTWINC -I$dir"
  8998. else
  8999. { echo "configure: error: *** FFTW includes directory $dir does not exist." 1>&2; exit 1; }
  9000. fi
  9001. done
  9002. fi
  9003. ac_save_cppflags="$CPPFLAGS"
  9004. CPPFLAGS="$FFTWINC $CPPFLAGS"
  9005. for ac_hdr in fftw3.h
  9006. do
  9007. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9008. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9009. echo "configure:11385: checking for $ac_hdr" >&5
  9010. cat > conftest.$ac_ext <<EOF
  9011. #line 11388 "configure"
  9012. #include "confdefs.h"
  9013. #include <$ac_hdr>
  9014. EOF
  9015. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9016. { (eval echo configure:11393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9017. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9018. if test -z "$ac_err"; then
  9019. rm -rf conftest*
  9020. eval "ac_cv_header_$ac_safe=yes"
  9021. else
  9022. echo "$ac_err" >&5
  9023. echo "configure: failed program was:" >&5
  9024. cat conftest.$ac_ext >&5
  9025. rm -rf conftest*
  9026. eval "ac_cv_header_$ac_safe=no"
  9027. fi
  9028. rm -f conftest*
  9029. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9030. echo "$ac_t""yes" 1>&6
  9031. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9032. cat >> confdefs.h <<EOF
  9033. #define $ac_tr_hdr 1
  9034. EOF
  9035. else
  9036. echo "$ac_t""no" 1>&6
  9037. ac_save_cppflags="$CPPFLAGS"
  9038. CPPFLAGS=" $CPPFLAGS"
  9039. for ac_hdr in fftw.h
  9040. do
  9041. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9042. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9043. echo "configure:11421: checking for $ac_hdr" >&5
  9044. cat > conftest.$ac_ext <<EOF
  9045. #line 11424 "configure"
  9046. #include "confdefs.h"
  9047. #include <$ac_hdr>
  9048. EOF
  9049. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9050. { (eval echo configure:11429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9051. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9052. if test -z "$ac_err"; then
  9053. rm -rf conftest*
  9054. eval "ac_cv_header_$ac_safe=yes"
  9055. else
  9056. echo "$ac_err" >&5
  9057. echo "configure: failed program was:" >&5
  9058. cat conftest.$ac_ext >&5
  9059. rm -rf conftest*
  9060. eval "ac_cv_header_$ac_safe=no"
  9061. fi
  9062. rm -f conftest*
  9063. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9064. echo "$ac_t""yes" 1>&6
  9065. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9066. cat >> confdefs.h <<EOF
  9067. #define $ac_tr_hdr 1
  9068. EOF
  9069. else
  9070. echo "$ac_t""no" 1>&6
  9071. ac_save_cppflags="$CPPFLAGS"
  9072. CPPFLAGS=" $CPPFLAGS"
  9073. for ac_hdr in dfftw.h
  9074. do
  9075. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9076. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9077. echo "configure:11457: checking for $ac_hdr" >&5
  9078. cat > conftest.$ac_ext <<EOF
  9079. #line 11460 "configure"
  9080. #include "confdefs.h"
  9081. #include <$ac_hdr>
  9082. EOF
  9083. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9084. { (eval echo configure:11465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9085. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9086. if test -z "$ac_err"; then
  9087. rm -rf conftest*
  9088. eval "ac_cv_header_$ac_safe=yes"
  9089. else
  9090. echo "$ac_err" >&5
  9091. echo "configure: failed program was:" >&5
  9092. cat conftest.$ac_ext >&5
  9093. rm -rf conftest*
  9094. eval "ac_cv_header_$ac_safe=no"
  9095. fi
  9096. rm -f conftest*
  9097. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9098. echo "$ac_t""yes" 1>&6
  9099. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9100. cat >> confdefs.h <<EOF
  9101. #define $ac_tr_hdr 1
  9102. EOF
  9103. else
  9104. echo "$ac_t""no" 1>&6
  9105. { echo "configure: error: *** Unable to locate FFTW includes." 1>&2; exit 1; }
  9106. fi
  9107. done
  9108. CPPFLAGS=$ac_save_cppflags
  9109. fi
  9110. done
  9111. CPPFLAGS=$ac_save_cppflags
  9112. fi
  9113. done
  9114. CPPFLAGS=$ac_save_cppflags
  9115. # With FFTW library directory
  9116. echo $ac_n "checking for location of FFTW library""... $ac_c" 1>&6
  9117. echo "configure:11511: checking for location of FFTW library" >&5
  9118. case "$with_fftw_libs" in
  9119. y | ye | yes | n | no)
  9120. { echo "configure: error: *** You must supply a directory to --with-fftw-libs." 1>&2; exit 1; }
  9121. ;;
  9122. esac
  9123. echo "$ac_t""$with_fftw_libs" 1>&6
  9124. if test -n "$with_fftw_libs"; then
  9125. for dir in $with_fftw_libs; do
  9126. if test -d "$dir"; then
  9127. FFTWLIB="$FFTWLIB -L$dir"
  9128. else
  9129. { echo "configure: error: *** FFTW library directory $dir does not exist." 1>&2; exit 1; }
  9130. fi
  9131. done
  9132. fi
  9133. ac_save_ldflags="$LDFLAGS"
  9134. LDFLAGS="$FFTWLIB $LDFLAGS"
  9135. echo $ac_n "checking for fftw_execute in -lfftw3""... $ac_c" 1>&6
  9136. echo "configure:11536: checking for fftw_execute in -lfftw3" >&5
  9137. ac_lib_var=`echo fftw3'_'fftw_execute | sed 'y%./+-%__p_%'`
  9138. ac_save_LIBS="$LIBS"
  9139. LIBS="-lfftw3 $MATHLIB $LIBS"
  9140. cat > conftest.$ac_ext <<EOF
  9141. #line 11542 "configure"
  9142. #include "confdefs.h"
  9143. /* Override any gcc2 internal prototype to avoid an error. */
  9144. /* We use char because int might match the return type of a gcc2
  9145. builtin and then its argument prototype would still apply. */
  9146. char fftw_execute();
  9147. int main() {
  9148. fftw_execute()
  9149. ; return 0; }
  9150. EOF
  9151. if { (eval echo configure:11553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9152. rm -rf conftest*
  9153. eval "ac_cv_lib_$ac_lib_var=yes"
  9154. else
  9155. echo "configure: failed program was:" >&5
  9156. cat conftest.$ac_ext >&5
  9157. rm -rf conftest*
  9158. eval "ac_cv_lib_$ac_lib_var=no"
  9159. fi
  9160. rm -f conftest*
  9161. LIBS="$ac_save_LIBS"
  9162. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9163. echo "$ac_t""yes" 1>&6
  9164. FFTWLIB="$FFTWLIB -lfftw3 $MATHLIB"
  9165. else
  9166. echo "$ac_t""no" 1>&6
  9167. LDFLAGS=${ac_save_ldflags}
  9168. ac_save_ldflags="$LDFLAGS"
  9169. LDFLAGS="$FFTWLIB $LDFLAGS"
  9170. echo $ac_n "checking for fftwnd_one in -lfftw""... $ac_c" 1>&6
  9171. echo "configure:11578: checking for fftwnd_one in -lfftw" >&5
  9172. ac_lib_var=`echo fftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
  9173. ac_save_LIBS="$LIBS"
  9174. LIBS="-lfftw $MATHLIB $LIBS"
  9175. cat > conftest.$ac_ext <<EOF
  9176. #line 11584 "configure"
  9177. #include "confdefs.h"
  9178. /* Override any gcc2 internal prototype to avoid an error. */
  9179. /* We use char because int might match the return type of a gcc2
  9180. builtin and then its argument prototype would still apply. */
  9181. char fftwnd_one();
  9182. int main() {
  9183. fftwnd_one()
  9184. ; return 0; }
  9185. EOF
  9186. if { (eval echo configure:11595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9187. rm -rf conftest*
  9188. eval "ac_cv_lib_$ac_lib_var=yes"
  9189. else
  9190. echo "configure: failed program was:" >&5
  9191. cat conftest.$ac_ext >&5
  9192. rm -rf conftest*
  9193. eval "ac_cv_lib_$ac_lib_var=no"
  9194. fi
  9195. rm -f conftest*
  9196. LIBS="$ac_save_LIBS"
  9197. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9198. echo "$ac_t""yes" 1>&6
  9199. FFTWLIB="$FFTWLIB -lfftw $MATHLIB"
  9200. else
  9201. echo "$ac_t""no" 1>&6
  9202. LDFLAGS=${ac_save_ldflags}
  9203. ac_save_ldflags="$LDFLAGS"
  9204. LDFLAGS="$FFTWLIB $LDFLAGS"
  9205. echo $ac_n "checking for fftwnd_one in -ldfftw""... $ac_c" 1>&6
  9206. echo "configure:11620: checking for fftwnd_one in -ldfftw" >&5
  9207. ac_lib_var=`echo dfftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
  9208. ac_save_LIBS="$LIBS"
  9209. LIBS="-ldfftw $MATHLIB $LIBS"
  9210. cat > conftest.$ac_ext <<EOF
  9211. #line 11626 "configure"
  9212. #include "confdefs.h"
  9213. /* Override any gcc2 internal prototype to avoid an error. */
  9214. /* We use char because int might match the return type of a gcc2
  9215. builtin and then its argument prototype would still apply. */
  9216. char fftwnd_one();
  9217. int main() {
  9218. fftwnd_one()
  9219. ; return 0; }
  9220. EOF
  9221. if { (eval echo configure:11637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9222. rm -rf conftest*
  9223. eval "ac_cv_lib_$ac_lib_var=yes"
  9224. else
  9225. echo "configure: failed program was:" >&5
  9226. cat conftest.$ac_ext >&5
  9227. rm -rf conftest*
  9228. eval "ac_cv_lib_$ac_lib_var=no"
  9229. fi
  9230. rm -f conftest*
  9231. LIBS="$ac_save_LIBS"
  9232. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9233. echo "$ac_t""yes" 1>&6
  9234. FFTWLIB="$FFTWLIB -ldfftw $MATHLIB"
  9235. else
  9236. echo "$ac_t""no" 1>&6
  9237. LDFLAGS=${ac_save_ldflags}
  9238. { echo "configure: error: *** Unable to locate FFTW library." 1>&2; exit 1; }
  9239. fi
  9240. LDFLAGS=${ac_save_ldflags}
  9241. fi
  9242. LDFLAGS=${ac_save_ldflags}
  9243. fi
  9244. LDFLAGS=${ac_save_ldflags}
  9245. fi # $USE_FFTW
  9246. # Done checking FFTW
  9247. # Enable BLAS option
  9248. echo $ac_n "checking whether to use BLAS""... $ac_c" 1>&6
  9249. echo "configure:11694: checking whether to use BLAS" >&5
  9250. echo "$ac_t"""$with_blas"" 1>&6
  9251. case "$with_blas" in
  9252. "no") USE_BLAS= ;;
  9253. "yes") USE_BLAS="1" ;;
  9254. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9255. esac
  9256. BLASLIB=
  9257. BLASINC=
  9258. if test -n "$USE_BLAS"; then
  9259. # With BLAS includes directory
  9260. # BLAS doesn't have includes (FORTRAN library)
  9261. # With BLAS library directory
  9262. echo $ac_n "checking for location of BLAS includes""... $ac_c" 1>&6
  9263. echo "configure:11715: checking for location of BLAS includes" >&5
  9264. case "$with_blas_includes" in
  9265. y | ye | yes | n | no)
  9266. { echo "configure: error: *** You must supply a directory to --with-blas-includes." 1>&2; exit 1; }
  9267. ;;
  9268. esac
  9269. echo "$ac_t""$with_blas_includes" 1>&6
  9270. if test -n "$with_blas_includes" ; then
  9271. for dir in $with_blas_includes; do
  9272. if test -d "$dir"; then
  9273. BLASINC="$BLASINC -I$dir"
  9274. else
  9275. { echo "configure: error: *** BLAS includes directory $dir does not exist." 1>&2; exit 1; }
  9276. fi
  9277. done
  9278. fi
  9279. echo $ac_n "checking for location of BLAS library""... $ac_c" 1>&6
  9280. echo "configure:11735: checking for location of BLAS library" >&5
  9281. case "$with_blas_libs" in
  9282. y | ye | yes | n | no)
  9283. { echo "configure: error: *** You must supply a directory to --with-blas-libs." 1>&2; exit 1; }
  9284. ;;
  9285. esac
  9286. echo "$ac_t""$with_blas_libs" 1>&6
  9287. if test -n "$with_blas_libs"; then
  9288. for dir in $with_blas_libs; do
  9289. if test -d "$dir"; then
  9290. BLASLIB="$BLASLIB -L$dir"
  9291. else
  9292. { echo "configure: error: *** BLAS library directory $dir does not exist." 1>&2; exit 1; }
  9293. fi
  9294. done
  9295. fi
  9296. # See if cblas.h exists (CBLAS,ATLAS,others)
  9297. save_CPPFLAGS="$CPPFLAGS"
  9298. CPPFLAGS="$BLASINC $CPPFLAGS"
  9299. for ac_hdr in cblas.h
  9300. do
  9301. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9302. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9303. echo "configure:11761: checking for $ac_hdr" >&5
  9304. cat > conftest.$ac_ext <<EOF
  9305. #line 11764 "configure"
  9306. #include "confdefs.h"
  9307. #include <$ac_hdr>
  9308. EOF
  9309. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9310. { (eval echo configure:11769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9311. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9312. if test -z "$ac_err"; then
  9313. rm -rf conftest*
  9314. eval "ac_cv_header_$ac_safe=yes"
  9315. else
  9316. echo "$ac_err" >&5
  9317. echo "configure: failed program was:" >&5
  9318. cat conftest.$ac_ext >&5
  9319. rm -rf conftest*
  9320. eval "ac_cv_header_$ac_safe=no"
  9321. fi
  9322. rm -f conftest*
  9323. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9324. echo "$ac_t""yes" 1>&6
  9325. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9326. cat >> confdefs.h <<EOF
  9327. #define $ac_tr_hdr 1
  9328. EOF
  9329. else
  9330. echo "$ac_t""no" 1>&6
  9331. fi
  9332. done
  9333. CPPFLAGS="$save_CPPFLAGS"
  9334. ac_save_ldflags="$LDFLAGS"
  9335. LDFLAGS="$BLASLIB $LDFLAGS"
  9336. echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
  9337. echo "configure:11804: checking for dnrm2_ in -lblas" >&5
  9338. ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
  9339. ac_save_LIBS="$LIBS"
  9340. LIBS="-lblas $MATHLIB $LIBS"
  9341. cat > conftest.$ac_ext <<EOF
  9342. #line 11810 "configure"
  9343. #include "confdefs.h"
  9344. /* Override any gcc2 internal prototype to avoid an error. */
  9345. /* We use char because int might match the return type of a gcc2
  9346. builtin and then its argument prototype would still apply. */
  9347. char dnrm2_();
  9348. int main() {
  9349. dnrm2_()
  9350. ; return 0; }
  9351. EOF
  9352. if { (eval echo configure:11821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9353. rm -rf conftest*
  9354. eval "ac_cv_lib_$ac_lib_var=yes"
  9355. else
  9356. echo "configure: failed program was:" >&5
  9357. cat conftest.$ac_ext >&5
  9358. rm -rf conftest*
  9359. eval "ac_cv_lib_$ac_lib_var=no"
  9360. fi
  9361. rm -f conftest*
  9362. LIBS="$ac_save_LIBS"
  9363. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9364. echo "$ac_t""yes" 1>&6
  9365. BLASLIB="$BLASLIB -lblas "
  9366. else
  9367. echo "$ac_t""no" 1>&6
  9368. echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
  9369. echo "configure:11840: checking for dnrm2_ in -lblas" >&5
  9370. ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
  9371. ac_save_LIBS="$LIBS"
  9372. LIBS="-lblas $MATHLIB -lg2c $LIBS"
  9373. cat > conftest.$ac_ext <<EOF
  9374. #line 11846 "configure"
  9375. #include "confdefs.h"
  9376. /* Override any gcc2 internal prototype to avoid an error. */
  9377. /* We use char because int might match the return type of a gcc2
  9378. builtin and then its argument prototype would still apply. */
  9379. char dnrm2_();
  9380. int main() {
  9381. dnrm2_()
  9382. ; return 0; }
  9383. EOF
  9384. if { (eval echo configure:11857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9385. rm -rf conftest*
  9386. eval "ac_cv_lib_$ac_lib_var=yes"
  9387. else
  9388. echo "configure: failed program was:" >&5
  9389. cat conftest.$ac_ext >&5
  9390. rm -rf conftest*
  9391. eval "ac_cv_lib_$ac_lib_var=no"
  9392. fi
  9393. rm -f conftest*
  9394. LIBS="$ac_save_LIBS"
  9395. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9396. echo "$ac_t""yes" 1>&6
  9397. BLASLIB="$BLASLIB -lblas -lg2c"
  9398. else
  9399. echo "$ac_t""no" 1>&6
  9400. LDFLAGS=${ac_save_ldflags}
  9401. { echo "configure: error: *** Unable to locate BLAS library." 1>&2; exit 1; }
  9402. fi
  9403. fi
  9404. LDFLAGS=${ac_save_ldflags}
  9405. blas_ok=no
  9406. # Check for ATLAS
  9407. save_LDFLAGS="$LDFLAGS"
  9408. LDFLAGS="$BLASLIB $LDFLAGS"
  9409. echo $ac_n "checking for ATL_xerbla in -latlas""... $ac_c" 1>&6
  9410. echo "configure:11901: checking for ATL_xerbla in -latlas" >&5
  9411. ac_lib_var=`echo atlas'_'ATL_xerbla | sed 'y%./+-%__p_%'`
  9412. ac_save_LIBS="$LIBS"
  9413. LIBS="-latlas $LIBS"
  9414. cat > conftest.$ac_ext <<EOF
  9415. #line 11907 "configure"
  9416. #include "confdefs.h"
  9417. /* Override any gcc2 internal prototype to avoid an error. */
  9418. /* We use char because int might match the return type of a gcc2
  9419. builtin and then its argument prototype would still apply. */
  9420. char ATL_xerbla();
  9421. int main() {
  9422. ATL_xerbla()
  9423. ; return 0; }
  9424. EOF
  9425. if { (eval echo configure:11918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9426. rm -rf conftest*
  9427. eval "ac_cv_lib_$ac_lib_var=yes"
  9428. else
  9429. echo "configure: failed program was:" >&5
  9430. cat conftest.$ac_ext >&5
  9431. rm -rf conftest*
  9432. eval "ac_cv_lib_$ac_lib_var=no"
  9433. fi
  9434. rm -f conftest*
  9435. LIBS="$ac_save_LIBS"
  9436. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9437. echo "$ac_t""yes" 1>&6
  9438. echo $ac_n "checking for sgemm_ in -lf77blas""... $ac_c" 1>&6
  9439. echo "configure:11933: checking for sgemm_ in -lf77blas" >&5
  9440. ac_lib_var=`echo f77blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  9441. ac_save_LIBS="$LIBS"
  9442. LIBS="-lf77blas -latlas $LIBS"
  9443. cat > conftest.$ac_ext <<EOF
  9444. #line 11939 "configure"
  9445. #include "confdefs.h"
  9446. /* Override any gcc2 internal prototype to avoid an error. */
  9447. /* We use char because int might match the return type of a gcc2
  9448. builtin and then its argument prototype would still apply. */
  9449. char sgemm_();
  9450. int main() {
  9451. sgemm_()
  9452. ; return 0; }
  9453. EOF
  9454. if { (eval echo configure:11950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9455. rm -rf conftest*
  9456. eval "ac_cv_lib_$ac_lib_var=yes"
  9457. else
  9458. echo "configure: failed program was:" >&5
  9459. cat conftest.$ac_ext >&5
  9460. rm -rf conftest*
  9461. eval "ac_cv_lib_$ac_lib_var=no"
  9462. fi
  9463. rm -f conftest*
  9464. LIBS="$ac_save_LIBS"
  9465. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9466. echo "$ac_t""yes" 1>&6
  9467. echo $ac_n "checking for cblas_dgemm in -lcblas""... $ac_c" 1>&6
  9468. echo "configure:11965: checking for cblas_dgemm in -lcblas" >&5
  9469. ac_lib_var=`echo cblas'_'cblas_dgemm | sed 'y%./+-%__p_%'`
  9470. ac_save_LIBS="$LIBS"
  9471. LIBS="-lcblas -lf77blas -latlas $LIBS"
  9472. cat > conftest.$ac_ext <<EOF
  9473. #line 11971 "configure"
  9474. #include "confdefs.h"
  9475. /* Override any gcc2 internal prototype to avoid an error. */
  9476. /* We use char because int might match the return type of a gcc2
  9477. builtin and then its argument prototype would still apply. */
  9478. char cblas_dgemm();
  9479. int main() {
  9480. cblas_dgemm()
  9481. ; return 0; }
  9482. EOF
  9483. if { (eval echo configure:11982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9484. rm -rf conftest*
  9485. eval "ac_cv_lib_$ac_lib_var=yes"
  9486. else
  9487. echo "configure: failed program was:" >&5
  9488. cat conftest.$ac_ext >&5
  9489. rm -rf conftest*
  9490. eval "ac_cv_lib_$ac_lib_var=no"
  9491. fi
  9492. rm -f conftest*
  9493. LIBS="$ac_save_LIBS"
  9494. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9495. echo "$ac_t""yes" 1>&6
  9496. blas_ok=yes; BLASLIB="-lcblas -lf77blas -latlas"
  9497. else
  9498. echo "$ac_t""no" 1>&6
  9499. fi
  9500. else
  9501. echo "$ac_t""no" 1>&6
  9502. fi
  9503. else
  9504. echo "$ac_t""no" 1>&6
  9505. fi
  9506. LDFLAGS="$save_LDFLAGS"
  9507. # Do we have ATLAS?
  9508. if test $blas_ok = yes; then
  9509. cat >> confdefs.h <<\EOF
  9510. #define HAVE_LIBATLAS 1
  9511. EOF
  9512. fi
  9513. # BLAS in Apple vecLib framework? (Mac OS-X)
  9514. # not dependent on APP build
  9515. #if test -n "$MACOSX_APP"; then
  9516. if test $blas_ok = no; then
  9517. vlib_flags="-framework vecLib"
  9518. save_LIBS="$LIBS"
  9519. LIBS="$vlib_flags $LIBS"
  9520. echo $ac_n "checking for sgemm in $vlib_flags""... $ac_c" 1>&6
  9521. echo "configure:12028: checking for sgemm in $vlib_flags" >&5
  9522. cat > conftest.$ac_ext <<EOF
  9523. #line 12030 "configure"
  9524. #include "confdefs.h"
  9525. int main() {
  9526. sgemm
  9527. ; return 0; }
  9528. EOF
  9529. if { (eval echo configure:12037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9530. rm -rf conftest*
  9531. blas_ok=yes; BLASLIB="$vlib_flags"
  9532. else
  9533. echo "configure: failed program was:" >&5
  9534. cat conftest.$ac_ext >&5
  9535. rm -rf conftest*
  9536. BLASLIB=""
  9537. fi
  9538. rm -f conftest*
  9539. echo "$ac_t""$blas_ok" 1>&6
  9540. LIBS="$save_LIBS"
  9541. fi
  9542. #fi # $MACOSX_APP
  9543. # BLAS in PhiPACK libraries? (requires generic BLAS, too)
  9544. if test $blas_ok = no; then
  9545. echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
  9546. echo "configure:12055: checking for sgemm_ in -lblas" >&5
  9547. ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  9548. ac_save_LIBS="$LIBS"
  9549. LIBS="-lblas $LIBS"
  9550. cat > conftest.$ac_ext <<EOF
  9551. #line 12061 "configure"
  9552. #include "confdefs.h"
  9553. /* Override any gcc2 internal prototype to avoid an error. */
  9554. /* We use char because int might match the return type of a gcc2
  9555. builtin and then its argument prototype would still apply. */
  9556. char sgemm_();
  9557. int main() {
  9558. sgemm_()
  9559. ; return 0; }
  9560. EOF
  9561. if { (eval echo configure:12072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9562. rm -rf conftest*
  9563. eval "ac_cv_lib_$ac_lib_var=yes"
  9564. else
  9565. echo "configure: failed program was:" >&5
  9566. cat conftest.$ac_ext >&5
  9567. rm -rf conftest*
  9568. eval "ac_cv_lib_$ac_lib_var=no"
  9569. fi
  9570. rm -f conftest*
  9571. LIBS="$ac_save_LIBS"
  9572. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9573. echo "$ac_t""yes" 1>&6
  9574. echo $ac_n "checking for dgemm_ in -ldgemm""... $ac_c" 1>&6
  9575. echo "configure:12087: checking for dgemm_ in -ldgemm" >&5
  9576. ac_lib_var=`echo dgemm'_'dgemm_ | sed 'y%./+-%__p_%'`
  9577. ac_save_LIBS="$LIBS"
  9578. LIBS="-ldgemm -lblas $LIBS"
  9579. cat > conftest.$ac_ext <<EOF
  9580. #line 12093 "configure"
  9581. #include "confdefs.h"
  9582. /* Override any gcc2 internal prototype to avoid an error. */
  9583. /* We use char because int might match the return type of a gcc2
  9584. builtin and then its argument prototype would still apply. */
  9585. char dgemm_();
  9586. int main() {
  9587. dgemm_()
  9588. ; return 0; }
  9589. EOF
  9590. if { (eval echo configure:12104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9591. rm -rf conftest*
  9592. eval "ac_cv_lib_$ac_lib_var=yes"
  9593. else
  9594. echo "configure: failed program was:" >&5
  9595. cat conftest.$ac_ext >&5
  9596. rm -rf conftest*
  9597. eval "ac_cv_lib_$ac_lib_var=no"
  9598. fi
  9599. rm -f conftest*
  9600. LIBS="$ac_save_LIBS"
  9601. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9602. echo "$ac_t""yes" 1>&6
  9603. echo $ac_n "checking for sgemm_ in -lsgemm""... $ac_c" 1>&6
  9604. echo "configure:12119: checking for sgemm_ in -lsgemm" >&5
  9605. ac_lib_var=`echo sgemm'_'sgemm_ | sed 'y%./+-%__p_%'`
  9606. ac_save_LIBS="$LIBS"
  9607. LIBS="-lsgemm -lblas $LIBS"
  9608. cat > conftest.$ac_ext <<EOF
  9609. #line 12125 "configure"
  9610. #include "confdefs.h"
  9611. /* Override any gcc2 internal prototype to avoid an error. */
  9612. /* We use char because int might match the return type of a gcc2
  9613. builtin and then its argument prototype would still apply. */
  9614. char sgemm_();
  9615. int main() {
  9616. sgemm_()
  9617. ; return 0; }
  9618. EOF
  9619. if { (eval echo configure:12136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9620. rm -rf conftest*
  9621. eval "ac_cv_lib_$ac_lib_var=yes"
  9622. else
  9623. echo "configure: failed program was:" >&5
  9624. cat conftest.$ac_ext >&5
  9625. rm -rf conftest*
  9626. eval "ac_cv_lib_$ac_lib_var=no"
  9627. fi
  9628. rm -f conftest*
  9629. LIBS="$ac_save_LIBS"
  9630. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9631. echo "$ac_t""yes" 1>&6
  9632. blas_ok=yes; BLASLIB="-lsgemm -ldgemm -lblas"
  9633. else
  9634. echo "$ac_t""no" 1>&6
  9635. fi
  9636. else
  9637. echo "$ac_t""no" 1>&6
  9638. fi
  9639. else
  9640. echo "$ac_t""no" 1>&6
  9641. fi
  9642. fi
  9643. # BLAS in Sun Performance library?
  9644. if test $blas_ok = no; then
  9645. if test "x$GCC" != xyes; then # only works with Sun CC
  9646. echo $ac_n "checking for acosp in -lsunmath""... $ac_c" 1>&6
  9647. echo "configure:12170: checking for acosp in -lsunmath" >&5
  9648. ac_lib_var=`echo sunmath'_'acosp | sed 'y%./+-%__p_%'`
  9649. ac_save_LIBS="$LIBS"
  9650. LIBS="-lsunmath $LIBS"
  9651. cat > conftest.$ac_ext <<EOF
  9652. #line 12176 "configure"
  9653. #include "confdefs.h"
  9654. /* Override any gcc2 internal prototype to avoid an error. */
  9655. /* We use char because int might match the return type of a gcc2
  9656. builtin and then its argument prototype would still apply. */
  9657. char acosp();
  9658. int main() {
  9659. acosp()
  9660. ; return 0; }
  9661. EOF
  9662. if { (eval echo configure:12187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9663. rm -rf conftest*
  9664. eval "ac_cv_lib_$ac_lib_var=yes"
  9665. else
  9666. echo "configure: failed program was:" >&5
  9667. cat conftest.$ac_ext >&5
  9668. rm -rf conftest*
  9669. eval "ac_cv_lib_$ac_lib_var=no"
  9670. fi
  9671. rm -f conftest*
  9672. LIBS="$ac_save_LIBS"
  9673. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9674. echo "$ac_t""yes" 1>&6
  9675. echo $ac_n "checking for sgemm_ in -lsunperf""... $ac_c" 1>&6
  9676. echo "configure:12202: checking for sgemm_ in -lsunperf" >&5
  9677. ac_lib_var=`echo sunperf'_'sgemm_ | sed 'y%./+-%__p_%'`
  9678. ac_save_LIBS="$LIBS"
  9679. LIBS="-lsunperf -lsunmath $LIBS"
  9680. cat > conftest.$ac_ext <<EOF
  9681. #line 12208 "configure"
  9682. #include "confdefs.h"
  9683. /* Override any gcc2 internal prototype to avoid an error. */
  9684. /* We use char because int might match the return type of a gcc2
  9685. builtin and then its argument prototype would still apply. */
  9686. char sgemm_();
  9687. int main() {
  9688. sgemm_()
  9689. ; return 0; }
  9690. EOF
  9691. if { (eval echo configure:12219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9692. rm -rf conftest*
  9693. eval "ac_cv_lib_$ac_lib_var=yes"
  9694. else
  9695. echo "configure: failed program was:" >&5
  9696. cat conftest.$ac_ext >&5
  9697. rm -rf conftest*
  9698. eval "ac_cv_lib_$ac_lib_var=no"
  9699. fi
  9700. rm -f conftest*
  9701. LIBS="$ac_save_LIBS"
  9702. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9703. echo "$ac_t""yes" 1>&6
  9704. blas_ok=yes; BLASLIB="-xlic_lib=sunperf -lsunmath"
  9705. else
  9706. echo "$ac_t""no" 1>&6
  9707. fi
  9708. else
  9709. echo "$ac_t""no" 1>&6
  9710. fi
  9711. fi
  9712. fi
  9713. # Generic BLAS library
  9714. if test $blas_ok = no; then
  9715. echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
  9716. echo "configure:12249: checking for sgemm_ in -lblas" >&5
  9717. ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  9718. ac_save_LIBS="$LIBS"
  9719. LIBS="-lblas $LIBS"
  9720. cat > conftest.$ac_ext <<EOF
  9721. #line 12255 "configure"
  9722. #include "confdefs.h"
  9723. /* Override any gcc2 internal prototype to avoid an error. */
  9724. /* We use char because int might match the return type of a gcc2
  9725. builtin and then its argument prototype would still apply. */
  9726. char sgemm_();
  9727. int main() {
  9728. sgemm_()
  9729. ; return 0; }
  9730. EOF
  9731. if { (eval echo configure:12266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9732. rm -rf conftest*
  9733. eval "ac_cv_lib_$ac_lib_var=yes"
  9734. else
  9735. echo "configure: failed program was:" >&5
  9736. cat conftest.$ac_ext >&5
  9737. rm -rf conftest*
  9738. eval "ac_cv_lib_$ac_lib_var=no"
  9739. fi
  9740. rm -f conftest*
  9741. LIBS="$ac_save_LIBS"
  9742. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9743. echo "$ac_t""yes" 1>&6
  9744. blas_ok=yes; BLASLIB="-lblas"
  9745. else
  9746. echo "$ac_t""no" 1>&6
  9747. fi
  9748. fi
  9749. if test $blas_ok = yes; then
  9750. cat >> confdefs.h <<\EOF
  9751. #define HAVE_LIBBLAS 1
  9752. EOF
  9753. fi
  9754. fi # $USE_BLAS
  9755. # Done checking BLAS
  9756. # Enable LAPACK option
  9757. echo $ac_n "checking whether to use LAPACK""... $ac_c" 1>&6
  9758. echo "configure:12305: checking whether to use LAPACK" >&5
  9759. echo "$ac_t"""$with_lapack"" 1>&6
  9760. case "$with_lapack" in
  9761. "no") USE_LAPACK= ;;
  9762. "yes") USE_LAPACK="1" ;;
  9763. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9764. esac
  9765. LAPACKLIB=
  9766. LAPACKINC=
  9767. # LAPACK is useless without BLAS
  9768. if test -n "$USE_BLAS"; then
  9769. if test -n "$USE_LAPACK"; then
  9770. # With LAPACK includes directory
  9771. # LAPACK doesn't have includes (FORTRAN library)
  9772. # With LAPACK library directory
  9773. lapack_ok=no
  9774. echo $ac_n "checking for location of LAPACK includes""... $ac_c" 1>&6
  9775. echo "configure:12330: checking for location of LAPACK includes" >&5
  9776. case "$with_lapack_includes" in
  9777. y | ye | yes | n | no)
  9778. { echo "configure: error: *** You must supply a directory to --with-lapack-includes." 1>&2; exit 1; }
  9779. ;;
  9780. esac
  9781. echo "$ac_t""$with_lapack_includes" 1>&6
  9782. if test -n "$with_lapack_includes" ; then
  9783. for dir in $with_lapack_includes; do
  9784. if test -d "$dir"; then
  9785. LAPACKINC="$LAPACKINC -I$dir"
  9786. else
  9787. { echo "configure: error: *** LAPACK includes directory $dir does not exist." 1>&2; exit 1; }
  9788. fi
  9789. done
  9790. fi
  9791. echo $ac_n "checking for location of LAPACK library""... $ac_c" 1>&6
  9792. echo "configure:12350: checking for location of LAPACK library" >&5
  9793. case "$with_lapack_libs" in
  9794. y | ye | yes | n | no)
  9795. { echo "configure: error: *** You must supply a directory to --with-lapack-libs." 1>&2; exit 1; }
  9796. ;;
  9797. esac
  9798. echo "$ac_t""$with_lapack_libs" 1>&6
  9799. if test -n "$with_lapack_libs"; then
  9800. for dir in $with_lapack_libs; do
  9801. if test -d "$dir"; then
  9802. LAPACKLIB="$LAPACKLIB -L$dir"
  9803. else
  9804. { echo "configure: error: *** LAPACK library directory $dir does not exist." 1>&2; exit 1; }
  9805. fi
  9806. done
  9807. fi
  9808. # See if clapack.h exists (ATLAS)
  9809. save_CPPFLAGS="$CPPFLAGS"
  9810. CPPFLAGS="$LAPACKINC $CPPFLAGS"
  9811. for ac_hdr in clapack.h
  9812. do
  9813. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9814. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9815. echo "configure:12376: checking for $ac_hdr" >&5
  9816. cat > conftest.$ac_ext <<EOF
  9817. #line 12379 "configure"
  9818. #include "confdefs.h"
  9819. #include <$ac_hdr>
  9820. EOF
  9821. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9822. { (eval echo configure:12384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9823. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9824. if test -z "$ac_err"; then
  9825. rm -rf conftest*
  9826. eval "ac_cv_header_$ac_safe=yes"
  9827. else
  9828. echo "$ac_err" >&5
  9829. echo "configure: failed program was:" >&5
  9830. cat conftest.$ac_ext >&5
  9831. rm -rf conftest*
  9832. eval "ac_cv_header_$ac_safe=no"
  9833. fi
  9834. rm -f conftest*
  9835. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9836. echo "$ac_t""yes" 1>&6
  9837. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9838. cat >> confdefs.h <<EOF
  9839. #define $ac_tr_hdr 1
  9840. EOF
  9841. else
  9842. echo "$ac_t""no" 1>&6
  9843. fi
  9844. done
  9845. CPPFLAGS="$save_CPPFLAGS"
  9846. # LAPACK linked to by default?
  9847. if test lapack_ok=no; then
  9848. save_LIBS="$LIBS"; LIBS="$LIBS $BLASLIB $MATHLIB $FLIBS"
  9849. save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
  9850. echo $ac_n "checking for dsegv_""... $ac_c" 1>&6
  9851. echo "configure:12416: checking for dsegv_" >&5
  9852. cat > conftest.$ac_ext <<EOF
  9853. #line 12419 "configure"
  9854. #include "confdefs.h"
  9855. /* System header to define __stub macros and hopefully few prototypes,
  9856. which can conflict with char dsegv_(); below. */
  9857. #include <assert.h>
  9858. /* Override any gcc2 internal prototype to avoid an error. */
  9859. /* We use char because int might match the return type of a gcc2
  9860. builtin and then its argument prototype would still apply. */
  9861. char dsegv_();
  9862. int main() {
  9863. /* The GNU C library defines this for functions which it implements
  9864. to always fail with ENOSYS. Some functions are actually named
  9865. something starting with __ and the normal name is an alias. */
  9866. #if defined (__stub_dsegv_) || defined (__stub___dsegv_)
  9867. choke me
  9868. #else
  9869. dsegv_();
  9870. #endif
  9871. ; return 0; }
  9872. EOF
  9873. if { (eval echo configure:12442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9874. rm -rf conftest*
  9875. eval "ac_cv_func_dsegv_=yes"
  9876. else
  9877. echo "configure: failed program was:" >&5
  9878. cat conftest.$ac_ext >&5
  9879. rm -rf conftest*
  9880. eval "ac_cv_func_dsegv_=no"
  9881. fi
  9882. rm -f conftest*
  9883. if eval "test \"`echo '$ac_cv_func_'dsegv_`\" = yes"; then
  9884. echo "$ac_t""yes" 1>&6
  9885. lapack_ok=yes
  9886. else
  9887. echo "$ac_t""no" 1>&6
  9888. fi
  9889. LIBS="$save_LIBS"
  9890. LDFLAGS="$save_LDFLAGS"
  9891. fi
  9892. # Generic LAPACK library?
  9893. if test $lapack_ok = no; then
  9894. save_libs="$LIBS"; LIBS="$BLASLIB $MATHLIB $LIBS"
  9895. save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
  9896. echo $ac_n "checking for desgv_ in -llapack""... $ac_c" 1>&6
  9897. echo "configure:12469: checking for desgv_ in -llapack" >&5
  9898. ac_lib_var=`echo lapack'_'desgv_ | sed 'y%./+-%__p_%'`
  9899. ac_save_LIBS="$LIBS"
  9900. LIBS="-llapack $FLIBS $LIBS"
  9901. cat > conftest.$ac_ext <<EOF
  9902. #line 12475 "configure"
  9903. #include "confdefs.h"
  9904. /* Override any gcc2 internal prototype to avoid an error. */
  9905. /* We use char because int might match the return type of a gcc2
  9906. builtin and then its argument prototype would still apply. */
  9907. char desgv_();
  9908. int main() {
  9909. desgv_()
  9910. ; return 0; }
  9911. EOF
  9912. if { (eval echo configure:12486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9913. rm -rf conftest*
  9914. eval "ac_cv_lib_$ac_lib_var=yes"
  9915. else
  9916. echo "configure: failed program was:" >&5
  9917. cat conftest.$ac_ext >&5
  9918. rm -rf conftest*
  9919. eval "ac_cv_lib_$ac_lib_var=no"
  9920. fi
  9921. rm -f conftest*
  9922. LIBS="$ac_save_LIBS"
  9923. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9924. echo "$ac_t""yes" 1>&6
  9925. lapack_ok=yes; LAPACKLIB="-llapack"
  9926. else
  9927. echo "$ac_t""no" 1>&6
  9928. fi
  9929. LIBS="$save_LIBS"
  9930. LDFLAGS="$save_LDFLAGS"
  9931. fi
  9932. if test $lapack_ok = no; then
  9933. ac_save_ldflags="$LDFLAGS"
  9934. LDFLAGS="$LAPACKLIB $LDFLAGS"
  9935. echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
  9936. echo "configure:12518: checking for dgesv_ in -llapack" >&5
  9937. ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
  9938. ac_save_LIBS="$LIBS"
  9939. LIBS="-llapack $BLASLIB $MATHLIB $LIBS"
  9940. cat > conftest.$ac_ext <<EOF
  9941. #line 12524 "configure"
  9942. #include "confdefs.h"
  9943. /* Override any gcc2 internal prototype to avoid an error. */
  9944. /* We use char because int might match the return type of a gcc2
  9945. builtin and then its argument prototype would still apply. */
  9946. char dgesv_();
  9947. int main() {
  9948. dgesv_()
  9949. ; return 0; }
  9950. EOF
  9951. if { (eval echo configure:12535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9952. rm -rf conftest*
  9953. eval "ac_cv_lib_$ac_lib_var=yes"
  9954. else
  9955. echo "configure: failed program was:" >&5
  9956. cat conftest.$ac_ext >&5
  9957. rm -rf conftest*
  9958. eval "ac_cv_lib_$ac_lib_var=no"
  9959. fi
  9960. rm -f conftest*
  9961. LIBS="$ac_save_LIBS"
  9962. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9963. echo "$ac_t""yes" 1>&6
  9964. LAPACKLIB="$LAPACKLIB -llapack "
  9965. else
  9966. echo "$ac_t""no" 1>&6
  9967. echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
  9968. echo "configure:12554: checking for dgesv_ in -llapack" >&5
  9969. ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
  9970. ac_save_LIBS="$LIBS"
  9971. LIBS="-llapack $BLASLIB $MATHLIB -lg2c $LIBS"
  9972. cat > conftest.$ac_ext <<EOF
  9973. #line 12560 "configure"
  9974. #include "confdefs.h"
  9975. /* Override any gcc2 internal prototype to avoid an error. */
  9976. /* We use char because int might match the return type of a gcc2
  9977. builtin and then its argument prototype would still apply. */
  9978. char dgesv_();
  9979. int main() {
  9980. dgesv_()
  9981. ; return 0; }
  9982. EOF
  9983. if { (eval echo configure:12571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9984. rm -rf conftest*
  9985. eval "ac_cv_lib_$ac_lib_var=yes"
  9986. else
  9987. echo "configure: failed program was:" >&5
  9988. cat conftest.$ac_ext >&5
  9989. rm -rf conftest*
  9990. eval "ac_cv_lib_$ac_lib_var=no"
  9991. fi
  9992. rm -f conftest*
  9993. LIBS="$ac_save_LIBS"
  9994. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9995. echo "$ac_t""yes" 1>&6
  9996. LAPACKLIB="$LAPACKLIB -llapack -lg2c"
  9997. else
  9998. echo "$ac_t""no" 1>&6
  9999. LDFLAGS=${ac_save_ldflags}
  10000. { echo "configure: error: *** Unable to locate LAPACK library." 1>&2; exit 1; }
  10001. fi
  10002. fi
  10003. LDFLAGS=${ac_save_ldflags}
  10004. fi
  10005. cat >> confdefs.h <<\EOF
  10006. #define HAVE_LIBLAPACK 1
  10007. EOF
  10008. fi # $USE_LAPACK
  10009. fi # $USE_BLAS
  10010. # Done checking LAPACK
  10011. # Enable Cairo display driver option
  10012. echo $ac_n "checking whether to use Cairo""... $ac_c" 1>&6
  10013. echo "configure:12627: checking whether to use Cairo" >&5
  10014. echo "$ac_t"""$with_cairo"" 1>&6
  10015. case "$with_cairo" in
  10016. "no") USE_CAIRO= ;;
  10017. "yes") USE_CAIRO="1" ;;
  10018. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10019. esac
  10020. CAIROINC=
  10021. CAIROLIB=
  10022. if test -n "$USE_CAIRO"; then
  10023. cairo="cairo cairo-ft"
  10024. if test -n "$USE_X11"; then
  10025. cairo="$cairo cairo-xlib-xrender"
  10026. fi
  10027. # With Cairo includes directory
  10028. #FIXME: somehow quote dirs with spaces in $cairo ?
  10029. CAIROINC=`pkg-config --cflags $cairo`
  10030. echo $ac_n "checking for location of cairo includes""... $ac_c" 1>&6
  10031. echo "configure:12653: checking for location of cairo includes" >&5
  10032. case "$with_cairo_includes" in
  10033. y | ye | yes | n | no)
  10034. { echo "configure: error: *** You must supply a directory to --with-cairo-includes." 1>&2; exit 1; }
  10035. ;;
  10036. esac
  10037. echo "$ac_t""$with_cairo_includes" 1>&6
  10038. if test -n "$with_cairo_includes" ; then
  10039. for dir in $with_cairo_includes; do
  10040. if test -d "$dir"; then
  10041. CAIROINC="$CAIROINC -I$dir"
  10042. else
  10043. { echo "configure: error: *** cairo includes directory $dir does not exist." 1>&2; exit 1; }
  10044. fi
  10045. done
  10046. fi
  10047. ac_save_cppflags="$CPPFLAGS"
  10048. CPPFLAGS="$CAIROINC $CPPFLAGS"
  10049. for ac_hdr in cairo.h
  10050. do
  10051. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10052. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10053. echo "configure:12679: checking for $ac_hdr" >&5
  10054. cat > conftest.$ac_ext <<EOF
  10055. #line 12682 "configure"
  10056. #include "confdefs.h"
  10057. #include <$ac_hdr>
  10058. EOF
  10059. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10060. { (eval echo configure:12687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10061. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10062. if test -z "$ac_err"; then
  10063. rm -rf conftest*
  10064. eval "ac_cv_header_$ac_safe=yes"
  10065. else
  10066. echo "$ac_err" >&5
  10067. echo "configure: failed program was:" >&5
  10068. cat conftest.$ac_ext >&5
  10069. rm -rf conftest*
  10070. eval "ac_cv_header_$ac_safe=no"
  10071. fi
  10072. rm -f conftest*
  10073. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10074. echo "$ac_t""yes" 1>&6
  10075. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10076. cat >> confdefs.h <<EOF
  10077. #define $ac_tr_hdr 1
  10078. EOF
  10079. else
  10080. echo "$ac_t""no" 1>&6
  10081. { echo "configure: error: *** Unable to locate Cairo includes." 1>&2; exit 1; }
  10082. fi
  10083. done
  10084. CPPFLAGS=$ac_save_cppflags
  10085. # With Cairo library directory
  10086. CAIROLIB=`pkg-config --libs $cairo`
  10087. echo $ac_n "checking for location of cairo library""... $ac_c" 1>&6
  10088. echo "configure:12723: checking for location of cairo library" >&5
  10089. case "$with_cairo_libs" in
  10090. y | ye | yes | n | no)
  10091. { echo "configure: error: *** You must supply a directory to --with-cairo-libs." 1>&2; exit 1; }
  10092. ;;
  10093. esac
  10094. echo "$ac_t""$with_cairo_libs" 1>&6
  10095. if test -n "$with_cairo_libs"; then
  10096. for dir in $with_cairo_libs; do
  10097. if test -d "$dir"; then
  10098. CAIROLIB="$CAIROLIB -L$dir"
  10099. else
  10100. { echo "configure: error: *** cairo library directory $dir does not exist." 1>&2; exit 1; }
  10101. fi
  10102. done
  10103. fi
  10104. echo $ac_n "checking for cairo linking flags""... $ac_c" 1>&6
  10105. echo "configure:12743: checking for cairo linking flags" >&5
  10106. case "$with_cairo_ldflags" in
  10107. y | ye | yes | n | no)
  10108. { echo "configure: error: *** You must supply a directory to --with-cairo-ldflags." 1>&2; exit 1; }
  10109. ;;
  10110. esac
  10111. echo "$ac_t""$with_cairo_ldflags" 1>&6
  10112. CAIROLIB="$CAIROLIB $with_cairo_ldflags"
  10113. ac_save_libs="$LIBS"
  10114. ac_save_ldflags="$LDFLAGS"
  10115. LIBS=" $CAIROLIB $LIBS"
  10116. LDFLAGS=" $LDFLAGS"
  10117. echo $ac_n "checking for cairo_create""... $ac_c" 1>&6
  10118. echo "configure:12759: checking for cairo_create" >&5
  10119. cat > conftest.$ac_ext <<EOF
  10120. #line 12762 "configure"
  10121. #include "confdefs.h"
  10122. /* System header to define __stub macros and hopefully few prototypes,
  10123. which can conflict with char cairo_create(); below. */
  10124. #include <assert.h>
  10125. /* Override any gcc2 internal prototype to avoid an error. */
  10126. /* We use char because int might match the return type of a gcc2
  10127. builtin and then its argument prototype would still apply. */
  10128. char cairo_create();
  10129. int main() {
  10130. /* The GNU C library defines this for functions which it implements
  10131. to always fail with ENOSYS. Some functions are actually named
  10132. something starting with __ and the normal name is an alias. */
  10133. #if defined (__stub_cairo_create) || defined (__stub___cairo_create)
  10134. choke me
  10135. #else
  10136. cairo_create();
  10137. #endif
  10138. ; return 0; }
  10139. EOF
  10140. if { (eval echo configure:12785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10141. rm -rf conftest*
  10142. eval "ac_cv_func_cairo_create=yes"
  10143. else
  10144. echo "configure: failed program was:" >&5
  10145. cat conftest.$ac_ext >&5
  10146. rm -rf conftest*
  10147. eval "ac_cv_func_cairo_create=no"
  10148. fi
  10149. rm -f conftest*
  10150. if eval "test \"`echo '$ac_cv_func_'cairo_create`\" = yes"; then
  10151. echo "$ac_t""yes" 1>&6
  10152. :
  10153. else
  10154. echo "$ac_t""no" 1>&6
  10155. { echo "configure: error: *** Unable to locate ." 1>&2; exit 1; }
  10156. fi
  10157. LIBS=${ac_save_libs}
  10158. LDFLAGS=${ac_save_ldflags}
  10159. ac_save_libs="$LIBS"
  10160. ac_save_ldflags="$LDFLAGS"
  10161. LIBS=" $CAIROLIB $LIBS"
  10162. LDFLAGS=" $LDFLAGS"
  10163. echo $ac_n "checking for cairo_xlib_surface_create_with_xrender_format""... $ac_c" 1>&6
  10164. echo "configure:12819: checking for cairo_xlib_surface_create_with_xrender_format" >&5
  10165. cat > conftest.$ac_ext <<EOF
  10166. #line 12822 "configure"
  10167. #include "confdefs.h"
  10168. /* System header to define __stub macros and hopefully few prototypes,
  10169. which can conflict with char cairo_xlib_surface_create_with_xrender_format(); below. */
  10170. #include <assert.h>
  10171. /* Override any gcc2 internal prototype to avoid an error. */
  10172. /* We use char because int might match the return type of a gcc2
  10173. builtin and then its argument prototype would still apply. */
  10174. char cairo_xlib_surface_create_with_xrender_format();
  10175. int main() {
  10176. /* The GNU C library defines this for functions which it implements
  10177. to always fail with ENOSYS. Some functions are actually named
  10178. something starting with __ and the normal name is an alias. */
  10179. #if defined (__stub_cairo_xlib_surface_create_with_xrender_format) || defined (__stub___cairo_xlib_surface_create_with_xrender_format)
  10180. choke me
  10181. #else
  10182. cairo_xlib_surface_create_with_xrender_format();
  10183. #endif
  10184. ; return 0; }
  10185. EOF
  10186. if { (eval echo configure:12845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10187. rm -rf conftest*
  10188. eval "ac_cv_func_cairo_xlib_surface_create_with_xrender_format=yes"
  10189. else
  10190. echo "configure: failed program was:" >&5
  10191. cat conftest.$ac_ext >&5
  10192. rm -rf conftest*
  10193. eval "ac_cv_func_cairo_xlib_surface_create_with_xrender_format=no"
  10194. fi
  10195. rm -f conftest*
  10196. if eval "test \"`echo '$ac_cv_func_'cairo_xlib_surface_create_with_xrender_format`\" = yes"; then
  10197. echo "$ac_t""yes" 1>&6
  10198. CAIRO_HAS_XRENDER=1
  10199. else
  10200. echo "$ac_t""no" 1>&6
  10201. CAIRO_HAS_XRENDER=
  10202. fi
  10203. LIBS=${ac_save_libs}
  10204. LDFLAGS=${ac_save_ldflags}
  10205. ac_save_libs="$LIBS"
  10206. ac_save_ldflags="$LDFLAGS"
  10207. LIBS=" $CAIROLIB $LIBS"
  10208. LDFLAGS=" $LDFLAGS"
  10209. echo $ac_n "checking for cairo_xlib_surface_get_xrender_format""... $ac_c" 1>&6
  10210. echo "configure:12878: checking for cairo_xlib_surface_get_xrender_format" >&5
  10211. cat > conftest.$ac_ext <<EOF
  10212. #line 12881 "configure"
  10213. #include "confdefs.h"
  10214. /* System header to define __stub macros and hopefully few prototypes,
  10215. which can conflict with char cairo_xlib_surface_get_xrender_format(); below. */
  10216. #include <assert.h>
  10217. /* Override any gcc2 internal prototype to avoid an error. */
  10218. /* We use char because int might match the return type of a gcc2
  10219. builtin and then its argument prototype would still apply. */
  10220. char cairo_xlib_surface_get_xrender_format();
  10221. int main() {
  10222. /* The GNU C library defines this for functions which it implements
  10223. to always fail with ENOSYS. Some functions are actually named
  10224. something starting with __ and the normal name is an alias. */
  10225. #if defined (__stub_cairo_xlib_surface_get_xrender_format) || defined (__stub___cairo_xlib_surface_get_xrender_format)
  10226. choke me
  10227. #else
  10228. cairo_xlib_surface_get_xrender_format();
  10229. #endif
  10230. ; return 0; }
  10231. EOF
  10232. if { (eval echo configure:12904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10233. rm -rf conftest*
  10234. eval "ac_cv_func_cairo_xlib_surface_get_xrender_format=yes"
  10235. else
  10236. echo "configure: failed program was:" >&5
  10237. cat conftest.$ac_ext >&5
  10238. rm -rf conftest*
  10239. eval "ac_cv_func_cairo_xlib_surface_get_xrender_format=no"
  10240. fi
  10241. rm -f conftest*
  10242. if eval "test \"`echo '$ac_cv_func_'cairo_xlib_surface_get_xrender_format`\" = yes"; then
  10243. echo "$ac_t""yes" 1>&6
  10244. CAIRO_HAS_XRENDER_SURFACE=1
  10245. else
  10246. echo "$ac_t""no" 1>&6
  10247. CAIRO_HAS_XRENDER_SURFACE=
  10248. fi
  10249. LIBS=${ac_save_libs}
  10250. LDFLAGS=${ac_save_ldflags}
  10251. CAIROLIB="$CAIROLIB $CAIROLDFLAGS"
  10252. fi # $USE_CAIRO
  10253. # Done checking Cairo
  10254. # Enable FreeType option
  10255. echo $ac_n "checking whether to use FreeType""... $ac_c" 1>&6
  10256. echo "configure:12946: checking whether to use FreeType" >&5
  10257. echo "$ac_t"""$with_freetype"" 1>&6
  10258. case "$with_freetype" in
  10259. "no") USE_FREETYPE= ;;
  10260. "yes") USE_FREETYPE="1" ;;
  10261. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10262. esac
  10263. FTINC=
  10264. FTLIB=
  10265. if test -n "$USE_FREETYPE"; then
  10266. # With FreeType includes directory
  10267. echo $ac_n "checking for location of FreeType includes""... $ac_c" 1>&6
  10268. echo "configure:12965: checking for location of FreeType includes" >&5
  10269. case "$with_freetype_includes" in
  10270. y | ye | yes | n | no)
  10271. { echo "configure: error: *** You must supply a directory to --with-freetype-includes." 1>&2; exit 1; }
  10272. ;;
  10273. esac
  10274. echo "$ac_t""$with_freetype_includes" 1>&6
  10275. if test -n "$with_freetype_includes" ; then
  10276. for dir in $with_freetype_includes; do
  10277. if test -d "$dir"; then
  10278. FTINC="$FTINC -I$dir"
  10279. else
  10280. { echo "configure: error: *** FreeType includes directory $dir does not exist." 1>&2; exit 1; }
  10281. fi
  10282. done
  10283. fi
  10284. ac_save_cppflags="$CPPFLAGS"
  10285. CPPFLAGS="$FTINC $CPPFLAGS"
  10286. for ac_hdr in ft2build.h
  10287. do
  10288. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10289. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10290. echo "configure:12991: checking for $ac_hdr" >&5
  10291. cat > conftest.$ac_ext <<EOF
  10292. #line 12994 "configure"
  10293. #include "confdefs.h"
  10294. #include <$ac_hdr>
  10295. EOF
  10296. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10297. { (eval echo configure:12999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10298. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10299. if test -z "$ac_err"; then
  10300. rm -rf conftest*
  10301. eval "ac_cv_header_$ac_safe=yes"
  10302. else
  10303. echo "$ac_err" >&5
  10304. echo "configure: failed program was:" >&5
  10305. cat conftest.$ac_ext >&5
  10306. rm -rf conftest*
  10307. eval "ac_cv_header_$ac_safe=no"
  10308. fi
  10309. rm -f conftest*
  10310. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10311. echo "$ac_t""yes" 1>&6
  10312. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10313. cat >> confdefs.h <<EOF
  10314. #define $ac_tr_hdr 1
  10315. EOF
  10316. else
  10317. echo "$ac_t""no" 1>&6
  10318. { echo "configure: error: *** Unable to locate FreeType includes." 1>&2; exit 1; }
  10319. fi
  10320. done
  10321. CPPFLAGS=$ac_save_cppflags
  10322. # With FreeType library directory
  10323. echo $ac_n "checking for location of FreeType library""... $ac_c" 1>&6
  10324. echo "configure:13033: checking for location of FreeType library" >&5
  10325. case "$with_freetype_libs" in
  10326. y | ye | yes | n | no)
  10327. { echo "configure: error: *** You must supply a directory to --with-freetype-libs." 1>&2; exit 1; }
  10328. ;;
  10329. esac
  10330. echo "$ac_t""$with_freetype_libs" 1>&6
  10331. if test -n "$with_freetype_libs"; then
  10332. for dir in $with_freetype_libs; do
  10333. if test -d "$dir"; then
  10334. FTLIB="$FTLIB -L$dir"
  10335. else
  10336. { echo "configure: error: *** FreeType library directory $dir does not exist." 1>&2; exit 1; }
  10337. fi
  10338. done
  10339. fi
  10340. ac_save_ldflags="$LDFLAGS"
  10341. LDFLAGS="$FTLIB $LDFLAGS"
  10342. echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
  10343. echo "configure:13058: checking for FT_Init_FreeType in -lfreetype" >&5
  10344. ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
  10345. ac_save_LIBS="$LIBS"
  10346. LIBS="-lfreetype $LIBS"
  10347. cat > conftest.$ac_ext <<EOF
  10348. #line 13064 "configure"
  10349. #include "confdefs.h"
  10350. /* Override any gcc2 internal prototype to avoid an error. */
  10351. /* We use char because int might match the return type of a gcc2
  10352. builtin and then its argument prototype would still apply. */
  10353. char FT_Init_FreeType();
  10354. int main() {
  10355. FT_Init_FreeType()
  10356. ; return 0; }
  10357. EOF
  10358. if { (eval echo configure:13075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10359. rm -rf conftest*
  10360. eval "ac_cv_lib_$ac_lib_var=yes"
  10361. else
  10362. echo "configure: failed program was:" >&5
  10363. cat conftest.$ac_ext >&5
  10364. rm -rf conftest*
  10365. eval "ac_cv_lib_$ac_lib_var=no"
  10366. fi
  10367. rm -f conftest*
  10368. LIBS="$ac_save_LIBS"
  10369. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10370. echo "$ac_t""yes" 1>&6
  10371. FTLIB="$FTLIB -lfreetype "
  10372. else
  10373. echo "$ac_t""no" 1>&6
  10374. LDFLAGS=${ac_save_ldflags}
  10375. { echo "configure: error: *** Unable to locate FreeType library." 1>&2; exit 1; }
  10376. fi
  10377. LDFLAGS=${ac_save_ldflags}
  10378. fi # $USE_FREETYPE
  10379. # Done checking FreeType
  10380. # Enable NLS option
  10381. echo $ac_n "checking whether to use NLS""... $ac_c" 1>&6
  10382. echo "configure:13116: checking whether to use NLS" >&5
  10383. echo "$ac_t"""$with_nls"" 1>&6
  10384. case "$with_nls" in
  10385. "no") USE_NLS= ;;
  10386. "yes") USE_NLS="1" ;;
  10387. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10388. esac
  10389. INTLLIB=
  10390. HAVE_NLS=
  10391. if test -n "${USE_NLS}" ; then
  10392. cat >> confdefs.h <<\EOF
  10393. #define USE_NLS 1
  10394. EOF
  10395. echo $ac_n "checking for gettext""... $ac_c" 1>&6
  10396. echo "configure:13136: checking for gettext" >&5
  10397. cat > conftest.$ac_ext <<EOF
  10398. #line 13139 "configure"
  10399. #include "confdefs.h"
  10400. /* System header to define __stub macros and hopefully few prototypes,
  10401. which can conflict with char gettext(); below. */
  10402. #include <assert.h>
  10403. /* Override any gcc2 internal prototype to avoid an error. */
  10404. /* We use char because int might match the return type of a gcc2
  10405. builtin and then its argument prototype would still apply. */
  10406. char gettext();
  10407. int main() {
  10408. /* The GNU C library defines this for functions which it implements
  10409. to always fail with ENOSYS. Some functions are actually named
  10410. something starting with __ and the normal name is an alias. */
  10411. #if defined (__stub_gettext) || defined (__stub___gettext)
  10412. choke me
  10413. #else
  10414. gettext();
  10415. #endif
  10416. ; return 0; }
  10417. EOF
  10418. if { (eval echo configure:13162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10419. rm -rf conftest*
  10420. eval "ac_cv_func_gettext=yes"
  10421. else
  10422. echo "configure: failed program was:" >&5
  10423. cat conftest.$ac_ext >&5
  10424. rm -rf conftest*
  10425. eval "ac_cv_func_gettext=no"
  10426. fi
  10427. rm -f conftest*
  10428. if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
  10429. echo "$ac_t""yes" 1>&6
  10430. INTLLIB=
  10431. else
  10432. echo "$ac_t""no" 1>&6
  10433. echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
  10434. echo "configure:13180: checking for gettext in -lintl" >&5
  10435. ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
  10436. ac_save_LIBS="$LIBS"
  10437. LIBS="-lintl $LIBS"
  10438. cat > conftest.$ac_ext <<EOF
  10439. #line 13186 "configure"
  10440. #include "confdefs.h"
  10441. /* Override any gcc2 internal prototype to avoid an error. */
  10442. /* We use char because int might match the return type of a gcc2
  10443. builtin and then its argument prototype would still apply. */
  10444. char gettext();
  10445. int main() {
  10446. gettext()
  10447. ; return 0; }
  10448. EOF
  10449. if { (eval echo configure:13197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10450. rm -rf conftest*
  10451. eval "ac_cv_lib_$ac_lib_var=yes"
  10452. else
  10453. echo "configure: failed program was:" >&5
  10454. cat conftest.$ac_ext >&5
  10455. rm -rf conftest*
  10456. eval "ac_cv_lib_$ac_lib_var=no"
  10457. fi
  10458. rm -f conftest*
  10459. LIBS="$ac_save_LIBS"
  10460. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10461. echo "$ac_t""yes" 1>&6
  10462. INTLLIB=-lintl
  10463. else
  10464. echo "$ac_t""no" 1>&6
  10465. { echo "configure: error: *** Unable to locate gettext() function." 1>&2; exit 1; }
  10466. fi
  10467. fi
  10468. HAVE_NLS=1
  10469. fi
  10470. # Enable C++ option
  10471. echo $ac_n "checking whether to use C++""... $ac_c" 1>&6
  10472. echo "configure:13232: checking whether to use C++" >&5
  10473. echo "$ac_t"""$with_cxx"" 1>&6
  10474. case "$with_cxx" in
  10475. "no") USE_CXX= ;;
  10476. "yes") USE_CXX="1" ;;
  10477. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10478. esac
  10479. if test -n "$USE_CXX"; then
  10480. for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
  10481. do
  10482. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10483. set dummy $ac_prog; ac_word=$2
  10484. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  10485. echo "configure:13248: checking for $ac_word" >&5
  10486. if test -n "$CXX"; then
  10487. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10488. else
  10489. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  10490. ac_dummy="$PATH"
  10491. for ac_dir in $ac_dummy; do
  10492. test -z "$ac_dir" && ac_dir=.
  10493. if test -f $ac_dir/$ac_word; then
  10494. ac_cv_prog_CXX="$ac_prog"
  10495. break
  10496. fi
  10497. done
  10498. IFS="$ac_save_ifs"
  10499. fi
  10500. CXX="$ac_cv_prog_CXX"
  10501. if test -n "$CXX"; then
  10502. echo "$ac_t""$CXX" 1>&6
  10503. else
  10504. echo "$ac_t""no" 1>&6
  10505. fi
  10506. test -n "$CXX" && break
  10507. done
  10508. test -n "$CXX" || CXX="gcc"
  10509. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  10510. echo "configure:13277: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  10511. ac_ext=C
  10512. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  10513. ac_cpp='$CXXCPP $CPPFLAGS'
  10514. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  10515. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  10516. cross_compiling=$ac_cv_prog_cxx_cross
  10517. cat > conftest.$ac_ext << EOF
  10518. #line 13288 "configure"
  10519. #include "confdefs.h"
  10520. int main(){return(0);}
  10521. EOF
  10522. if { (eval echo configure:13293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10523. ac_cv_prog_cxx_works=yes
  10524. # If we can't run a trivial program, we are probably using a cross compiler.
  10525. if (./conftest; exit) 2>/dev/null; then
  10526. ac_cv_prog_cxx_cross=no
  10527. else
  10528. ac_cv_prog_cxx_cross=yes
  10529. fi
  10530. else
  10531. echo "configure: failed program was:" >&5
  10532. cat conftest.$ac_ext >&5
  10533. ac_cv_prog_cxx_works=no
  10534. fi
  10535. rm -fr conftest*
  10536. ac_ext=c
  10537. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  10538. ac_cpp='$CPP $CPPFLAGS'
  10539. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  10540. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  10541. cross_compiling=$ac_cv_prog_cc_cross
  10542. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  10543. if test $ac_cv_prog_cxx_works = no; then
  10544. { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  10545. fi
  10546. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  10547. echo "configure:13319: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  10548. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  10549. cross_compiling=$ac_cv_prog_cxx_cross
  10550. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  10551. echo "configure:13324: checking whether we are using GNU C++" >&5
  10552. cat > conftest.C <<EOF
  10553. #ifdef __GNUC__
  10554. yes;
  10555. #endif
  10556. EOF
  10557. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:13331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  10558. ac_cv_prog_gxx=yes
  10559. else
  10560. ac_cv_prog_gxx=no
  10561. fi
  10562. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  10563. if test $ac_cv_prog_gxx = yes; then
  10564. GXX=yes
  10565. else
  10566. GXX=
  10567. fi
  10568. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  10569. ac_save_CXXFLAGS="$CXXFLAGS"
  10570. CXXFLAGS=
  10571. echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  10572. echo "configure:13349: checking whether ${CXX-g++} accepts -g" >&5
  10573. echo 'void f(){}' > conftest.cc
  10574. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  10575. ac_cv_prog_cxx_g=yes
  10576. else
  10577. ac_cv_prog_cxx_g=no
  10578. fi
  10579. rm -f conftest*
  10580. echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  10581. if test "$ac_test_CXXFLAGS" = set; then
  10582. CXXFLAGS="$ac_save_CXXFLAGS"
  10583. elif test $ac_cv_prog_cxx_g = yes; then
  10584. if test "$GXX" = yes; then
  10585. CXXFLAGS="-g -O2"
  10586. else
  10587. CXXFLAGS="-g"
  10588. fi
  10589. else
  10590. if test "$GXX" = yes; then
  10591. CXXFLAGS="-O2"
  10592. else
  10593. CXXFLAGS=
  10594. fi
  10595. fi
  10596. else
  10597. CXX=
  10598. CXXFLAGS=
  10599. fi
  10600. # Done checking C++
  10601. # Enable openDWG option
  10602. echo $ac_n "checking whether to use openDWG""... $ac_c" 1>&6
  10603. echo "configure:13390: checking whether to use openDWG" >&5
  10604. echo "$ac_t"""$with_opendwg"" 1>&6
  10605. case "$with_opendwg" in
  10606. "no") USE_OPENDWG= ;;
  10607. "yes") USE_OPENDWG="1" ;;
  10608. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10609. esac
  10610. OPENDWGINCPATH=
  10611. OPENDWGLIBPATH=
  10612. OPENDWGLIB=
  10613. if test -n "${USE_OPENDWG}"; then
  10614. # With OPENDWG includes directory
  10615. echo $ac_n "checking for location of openDGW includes""... $ac_c" 1>&6
  10616. echo "configure:13410: checking for location of openDGW includes" >&5
  10617. case "$with_opendwg_includes" in
  10618. y | ye | yes | n | no)
  10619. { echo "configure: error: *** You must supply a directory to --with-opendwg-includes." 1>&2; exit 1; }
  10620. ;;
  10621. esac
  10622. echo "$ac_t""$with_opendwg_includes" 1>&6
  10623. if test -n "$with_opendwg_includes" ; then
  10624. for dir in $with_opendwg_includes; do
  10625. if test -d "$dir"; then
  10626. OPENDWGINCPATH="$OPENDWGINCPATH -I$dir"
  10627. else
  10628. { echo "configure: error: *** openDGW includes directory $dir does not exist." 1>&2; exit 1; }
  10629. fi
  10630. done
  10631. fi
  10632. ac_save_cppflags="$CPPFLAGS"
  10633. CPPFLAGS="$OPENDWGINCPATH $CPPFLAGS"
  10634. for ac_hdr in ad2.h
  10635. do
  10636. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10637. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10638. echo "configure:13436: checking for $ac_hdr" >&5
  10639. cat > conftest.$ac_ext <<EOF
  10640. #line 13439 "configure"
  10641. #include "confdefs.h"
  10642. #include <$ac_hdr>
  10643. EOF
  10644. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10645. { (eval echo configure:13444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10646. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10647. if test -z "$ac_err"; then
  10648. rm -rf conftest*
  10649. eval "ac_cv_header_$ac_safe=yes"
  10650. else
  10651. echo "$ac_err" >&5
  10652. echo "configure: failed program was:" >&5
  10653. cat conftest.$ac_ext >&5
  10654. rm -rf conftest*
  10655. eval "ac_cv_header_$ac_safe=no"
  10656. fi
  10657. rm -f conftest*
  10658. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10659. echo "$ac_t""yes" 1>&6
  10660. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10661. cat >> confdefs.h <<EOF
  10662. #define $ac_tr_hdr 1
  10663. EOF
  10664. else
  10665. echo "$ac_t""no" 1>&6
  10666. { echo "configure: error: *** Unable to locate openDWG includes." 1>&2; exit 1; }
  10667. fi
  10668. done
  10669. CPPFLAGS=$ac_save_cppflags
  10670. # With OPENDWG library directory
  10671. echo $ac_n "checking for location of openDWG library""... $ac_c" 1>&6
  10672. echo "configure:13478: checking for location of openDWG library" >&5
  10673. case "$with_opendwg_libs" in
  10674. y | ye | yes | n | no)
  10675. { echo "configure: error: *** You must supply a directory to --with-opendwg-libs." 1>&2; exit 1; }
  10676. ;;
  10677. esac
  10678. echo "$ac_t""$with_opendwg_libs" 1>&6
  10679. if test -n "$with_opendwg_libs"; then
  10680. for dir in $with_opendwg_libs; do
  10681. if test -d "$dir"; then
  10682. OPENDWGLIBPATH="$OPENDWGLIBPATH -L$dir"
  10683. else
  10684. { echo "configure: error: *** openDWG library directory $dir does not exist." 1>&2; exit 1; }
  10685. fi
  10686. done
  10687. fi
  10688. #search for ad2.a, ad3.a ... in openDWG toolkit directory:
  10689. #FIX ME how to program this test??
  10690. #LOC_CHECK_LIBS(ad?.a,adSeekLayer,openDWG,$OPENDWGLIBPATH,OPENDWGLIB,,)
  10691. #
  10692. #for now hack (but working):
  10693. TRUEOPENDWGLIBPATH=`echo "$OPENDWGLIBPATH" | cut -b3-`
  10694. adlib=`ls -1 "$TRUEOPENDWGLIBPATH"/ad?.a | tail -1`
  10695. OPENDWGLIB="$adlib"
  10696. fi # $USE_OPENDWG
  10697. # Done checking OPENDWG
  10698. # Enable pthread option
  10699. echo $ac_n "checking whether to use POSIX threads""... $ac_c" 1>&6
  10700. echo "configure:13519: checking whether to use POSIX threads" >&5
  10701. echo "$ac_t"""$with_pthread"" 1>&6
  10702. case "$with_pthread" in
  10703. "no") USE_PTHREAD= ;;
  10704. "yes") USE_PTHREAD="1" ;;
  10705. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10706. esac
  10707. PTHREADINCPATH=
  10708. PTHREADLIBPATH=
  10709. PTHREADLIB=
  10710. if test -n "$USE_PTHREAD"; then
  10711. # With pthread includes directory
  10712. echo $ac_n "checking for location of POSIX threads includes""... $ac_c" 1>&6
  10713. echo "configure:13539: checking for location of POSIX threads includes" >&5
  10714. case "$with_pthread_includes" in
  10715. y | ye | yes | n | no)
  10716. { echo "configure: error: *** You must supply a directory to --with-pthread-includes." 1>&2; exit 1; }
  10717. ;;
  10718. esac
  10719. echo "$ac_t""$with_pthread_includes" 1>&6
  10720. if test -n "$with_pthread_includes" ; then
  10721. for dir in $with_pthread_includes; do
  10722. if test -d "$dir"; then
  10723. PTHREADINCPATH="$PTHREADINCPATH -I$dir"
  10724. else
  10725. { echo "configure: error: *** POSIX threads includes directory $dir does not exist." 1>&2; exit 1; }
  10726. fi
  10727. done
  10728. fi
  10729. ac_save_cppflags="$CPPFLAGS"
  10730. CPPFLAGS="$PTHREADINCPATH $CPPFLAGS"
  10731. for ac_hdr in pthread.h
  10732. do
  10733. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10734. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10735. echo "configure:13565: checking for $ac_hdr" >&5
  10736. cat > conftest.$ac_ext <<EOF
  10737. #line 13568 "configure"
  10738. #include "confdefs.h"
  10739. #include <$ac_hdr>
  10740. EOF
  10741. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10742. { (eval echo configure:13573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10743. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10744. if test -z "$ac_err"; then
  10745. rm -rf conftest*
  10746. eval "ac_cv_header_$ac_safe=yes"
  10747. else
  10748. echo "$ac_err" >&5
  10749. echo "configure: failed program was:" >&5
  10750. cat conftest.$ac_ext >&5
  10751. rm -rf conftest*
  10752. eval "ac_cv_header_$ac_safe=no"
  10753. fi
  10754. rm -f conftest*
  10755. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10756. echo "$ac_t""yes" 1>&6
  10757. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10758. cat >> confdefs.h <<EOF
  10759. #define $ac_tr_hdr 1
  10760. EOF
  10761. else
  10762. echo "$ac_t""no" 1>&6
  10763. { echo "configure: error: *** Unable to locate POSIX threads includes." 1>&2; exit 1; }
  10764. fi
  10765. done
  10766. CPPFLAGS=$ac_save_cppflags
  10767. # With pthread library directory
  10768. echo $ac_n "checking for location of POSIX threads library""... $ac_c" 1>&6
  10769. echo "configure:13607: checking for location of POSIX threads library" >&5
  10770. case "$with_pthread_libs" in
  10771. y | ye | yes | n | no)
  10772. { echo "configure: error: *** You must supply a directory to --with-pthread-libs." 1>&2; exit 1; }
  10773. ;;
  10774. esac
  10775. echo "$ac_t""$with_pthread_libs" 1>&6
  10776. if test -n "$with_pthread_libs"; then
  10777. for dir in $with_pthread_libs; do
  10778. if test -d "$dir"; then
  10779. PTHREADLIBPATH="$PTHREADLIBPATH -L$dir"
  10780. else
  10781. { echo "configure: error: *** POSIX threads library directory $dir does not exist." 1>&2; exit 1; }
  10782. fi
  10783. done
  10784. fi
  10785. ac_save_libs="$LIBS"
  10786. ac_save_ldflags="$LDFLAGS"
  10787. LIBS=" $LIBS"
  10788. LDFLAGS=" $LDFLAGS"
  10789. echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
  10790. echo "configure:13632: checking for pthread_create" >&5
  10791. cat > conftest.$ac_ext <<EOF
  10792. #line 13635 "configure"
  10793. #include "confdefs.h"
  10794. /* System header to define __stub macros and hopefully few prototypes,
  10795. which can conflict with char pthread_create(); below. */
  10796. #include <assert.h>
  10797. /* Override any gcc2 internal prototype to avoid an error. */
  10798. /* We use char because int might match the return type of a gcc2
  10799. builtin and then its argument prototype would still apply. */
  10800. char pthread_create();
  10801. int main() {
  10802. /* The GNU C library defines this for functions which it implements
  10803. to always fail with ENOSYS. Some functions are actually named
  10804. something starting with __ and the normal name is an alias. */
  10805. #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
  10806. choke me
  10807. #else
  10808. pthread_create();
  10809. #endif
  10810. ; return 0; }
  10811. EOF
  10812. if { (eval echo configure:13658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10813. rm -rf conftest*
  10814. eval "ac_cv_func_pthread_create=yes"
  10815. else
  10816. echo "configure: failed program was:" >&5
  10817. cat conftest.$ac_ext >&5
  10818. rm -rf conftest*
  10819. eval "ac_cv_func_pthread_create=no"
  10820. fi
  10821. rm -f conftest*
  10822. if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
  10823. echo "$ac_t""yes" 1>&6
  10824. PTHREADLIB="$PTHREADLIB "
  10825. else
  10826. echo "$ac_t""no" 1>&6
  10827. ac_save_ldflags="$LDFLAGS"
  10828. LDFLAGS="$PTHREADLIBPATH $LDFLAGS"
  10829. echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
  10830. echo "configure:13685: checking for pthread_create in -lpthread" >&5
  10831. ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
  10832. ac_save_LIBS="$LIBS"
  10833. LIBS="-lpthread $LIBS"
  10834. cat > conftest.$ac_ext <<EOF
  10835. #line 13691 "configure"
  10836. #include "confdefs.h"
  10837. /* Override any gcc2 internal prototype to avoid an error. */
  10838. /* We use char because int might match the return type of a gcc2
  10839. builtin and then its argument prototype would still apply. */
  10840. char pthread_create();
  10841. int main() {
  10842. pthread_create()
  10843. ; return 0; }
  10844. EOF
  10845. if { (eval echo configure:13702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10846. rm -rf conftest*
  10847. eval "ac_cv_lib_$ac_lib_var=yes"
  10848. else
  10849. echo "configure: failed program was:" >&5
  10850. cat conftest.$ac_ext >&5
  10851. rm -rf conftest*
  10852. eval "ac_cv_lib_$ac_lib_var=no"
  10853. fi
  10854. rm -f conftest*
  10855. LIBS="$ac_save_LIBS"
  10856. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10857. echo "$ac_t""yes" 1>&6
  10858. PTHREADLIB="$PTHREADLIB -lpthread "
  10859. else
  10860. echo "$ac_t""no" 1>&6
  10861. LDFLAGS=${ac_save_ldflags}
  10862. { echo "configure: error: *** Unable to locate POSIX threads library." 1>&2; exit 1; }
  10863. fi
  10864. LDFLAGS=${ac_save_ldflags}
  10865. fi
  10866. LIBS=${ac_save_libs}
  10867. LDFLAGS=${ac_save_ldflags}
  10868. fi # $USE_PTHREAD
  10869. # Done checking pthread
  10870. # Enable LFS (from cdr-tools)
  10871. # Check whether --enable-largefile or --disable-largefile was given.
  10872. if test "${enable_largefile+set}" = set; then
  10873. enableval="$enable_largefile"
  10874. :
  10875. fi
  10876. if test "$enable_largefile" = yes; then
  10877. echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
  10878. echo "configure:13758: checking for special C compiler options needed for large files" >&5
  10879. ac_cv_sys_largefile_CC=no
  10880. largefile_cc_opt=""
  10881. if test "$GCC" != yes; then
  10882. # IRIX 6.2 and later do not support large files by default,
  10883. # so use the C compiler's -n32 option if that helps.
  10884. cat > conftest.$ac_ext <<EOF
  10885. #line 13766 "configure"
  10886. #include "confdefs.h"
  10887. #include <sys/types.h>
  10888. /* Check that off_t can represent 2**63 - 1 correctly.
  10889. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10890. since some C++ compilers masquerading as C compilers
  10891. incorrectly reject 9223372036854775807. */
  10892. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10893. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10894. && LARGE_OFF_T % 2147483647 == 1)
  10895. ? 1 : -1];
  10896. int main() {
  10897. ; return 0; }
  10898. EOF
  10899. if { (eval echo configure:13782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10900. :
  10901. else
  10902. echo "configure: failed program was:" >&5
  10903. cat conftest.$ac_ext >&5
  10904. rm -rf conftest*
  10905. ac_save_CC="${CC-cc}"
  10906. CC="$CC -n32"
  10907. cat > conftest.$ac_ext <<EOF
  10908. #line 13791 "configure"
  10909. #include "confdefs.h"
  10910. #include <sys/types.h>
  10911. /* Check that off_t can represent 2**63 - 1 correctly.
  10912. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10913. since some C++ compilers masquerading as C compilers
  10914. incorrectly reject 9223372036854775807. */
  10915. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10916. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10917. && LARGE_OFF_T % 2147483647 == 1)
  10918. ? 1 : -1];
  10919. int main() {
  10920. ; return 0; }
  10921. EOF
  10922. if { (eval echo configure:13807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10923. rm -rf conftest*
  10924. ac_cv_sys_largefile_CC=' -n32'
  10925. else
  10926. echo "configure: failed program was:" >&5
  10927. cat conftest.$ac_ext >&5
  10928. fi
  10929. rm -f conftest*
  10930. CC="$ac_save_CC"
  10931. fi
  10932. rm -f conftest*
  10933. fi
  10934. echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6
  10935. if test "$ac_cv_sys_largefile_CC" != no; then
  10936. CC="$CC$ac_cv_sys_largefile_CC"
  10937. largefile_cc_opt="$ac_cv_sys_largefile_CC"
  10938. fi
  10939. echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
  10940. echo "configure:13827: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  10941. ac_cv_sys_file_offset_bits=no
  10942. cat > conftest.$ac_ext <<EOF
  10943. #line 13831 "configure"
  10944. #include "confdefs.h"
  10945. #include <sys/types.h>
  10946. /* Check that off_t can represent 2**63 - 1 correctly.
  10947. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10948. since some C++ compilers masquerading as C compilers
  10949. incorrectly reject 9223372036854775807. */
  10950. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10951. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10952. && LARGE_OFF_T % 2147483647 == 1)
  10953. ? 1 : -1];
  10954. int main() {
  10955. ; return 0; }
  10956. EOF
  10957. if { (eval echo configure:13847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10958. :
  10959. else
  10960. echo "configure: failed program was:" >&5
  10961. cat conftest.$ac_ext >&5
  10962. rm -rf conftest*
  10963. cat > conftest.$ac_ext <<EOF
  10964. #line 13854 "configure"
  10965. #include "confdefs.h"
  10966. #define _FILE_OFFSET_BITS 64
  10967. #include <sys/types.h>
  10968. /* Check that off_t can represent 2**63 - 1 correctly.
  10969. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10970. since some C++ compilers masquerading as C compilers
  10971. incorrectly reject 9223372036854775807. */
  10972. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10973. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10974. && LARGE_OFF_T % 2147483647 == 1)
  10975. ? 1 : -1];
  10976. int main() {
  10977. ; return 0; }
  10978. EOF
  10979. if { (eval echo configure:13872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10980. rm -rf conftest*
  10981. ac_cv_sys_file_offset_bits=64
  10982. else
  10983. echo "configure: failed program was:" >&5
  10984. cat conftest.$ac_ext >&5
  10985. fi
  10986. rm -f conftest*
  10987. fi
  10988. rm -f conftest*
  10989. echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
  10990. if test "$ac_cv_sys_file_offset_bits" != no; then
  10991. cat >> confdefs.h <<EOF
  10992. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  10993. EOF
  10994. fi
  10995. echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
  10996. echo "configure:13891: checking for _LARGE_FILES value needed for large files" >&5
  10997. ac_cv_sys_large_files=no
  10998. cat > conftest.$ac_ext <<EOF
  10999. #line 13895 "configure"
  11000. #include "confdefs.h"
  11001. #include <sys/types.h>
  11002. /* Check that off_t can represent 2**63 - 1 correctly.
  11003. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  11004. since some C++ compilers masquerading as C compilers
  11005. incorrectly reject 9223372036854775807. */
  11006. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11007. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11008. && LARGE_OFF_T % 2147483647 == 1)
  11009. ? 1 : -1];
  11010. int main() {
  11011. ; return 0; }
  11012. EOF
  11013. if { (eval echo configure:13911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11014. :
  11015. else
  11016. echo "configure: failed program was:" >&5
  11017. cat conftest.$ac_ext >&5
  11018. rm -rf conftest*
  11019. cat > conftest.$ac_ext <<EOF
  11020. #line 13918 "configure"
  11021. #include "confdefs.h"
  11022. #define _LARGE_FILES 1
  11023. #include <sys/types.h>
  11024. /* Check that off_t can represent 2**63 - 1 correctly.
  11025. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  11026. since some C++ compilers masquerading as C compilers
  11027. incorrectly reject 9223372036854775807. */
  11028. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11029. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11030. && LARGE_OFF_T % 2147483647 == 1)
  11031. ? 1 : -1];
  11032. int main() {
  11033. ; return 0; }
  11034. EOF
  11035. if { (eval echo configure:13936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11036. rm -rf conftest*
  11037. ac_cv_sys_large_files=1
  11038. else
  11039. echo "configure: failed program was:" >&5
  11040. cat conftest.$ac_ext >&5
  11041. fi
  11042. rm -f conftest*
  11043. fi
  11044. rm -f conftest*
  11045. echo "$ac_t""$ac_cv_sys_large_files" 1>&6
  11046. if test "$ac_cv_sys_large_files" != no; then
  11047. cat >> confdefs.h <<EOF
  11048. #define _LARGE_FILES $ac_cv_sys_large_files
  11049. EOF
  11050. fi
  11051. echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
  11052. echo "configure:13955: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  11053. ac_cv_sys_largefile_source=no
  11054. cat > conftest.$ac_ext <<EOF
  11055. #line 13959 "configure"
  11056. #include "confdefs.h"
  11057. #include <stdio.h>
  11058. int main() {
  11059. return !fseeko;
  11060. ; return 0; }
  11061. EOF
  11062. if { (eval echo configure:13966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11063. :
  11064. else
  11065. echo "configure: failed program was:" >&5
  11066. cat conftest.$ac_ext >&5
  11067. rm -rf conftest*
  11068. cat > conftest.$ac_ext <<EOF
  11069. #line 13973 "configure"
  11070. #include "confdefs.h"
  11071. #define _LARGEFILE_SOURCE 1
  11072. #include <stdio.h>
  11073. int main() {
  11074. return !fseeko;
  11075. ; return 0; }
  11076. EOF
  11077. if { (eval echo configure:13982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11078. rm -rf conftest*
  11079. ac_cv_sys_largefile_source=1
  11080. else
  11081. echo "configure: failed program was:" >&5
  11082. cat conftest.$ac_ext >&5
  11083. fi
  11084. rm -f conftest*
  11085. fi
  11086. rm -f conftest*
  11087. echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
  11088. if test "$ac_cv_sys_largefile_source" != no; then
  11089. cat >> confdefs.h <<EOF
  11090. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  11091. EOF
  11092. fi
  11093. fi
  11094. echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
  11095. echo "configure:14003: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  11096. ac_cv_sys_largefile_source=no
  11097. cat > conftest.$ac_ext <<EOF
  11098. #line 14007 "configure"
  11099. #include "confdefs.h"
  11100. #include <stdio.h>
  11101. int main() {
  11102. return !fseeko;
  11103. ; return 0; }
  11104. EOF
  11105. if { (eval echo configure:14014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11106. :
  11107. else
  11108. echo "configure: failed program was:" >&5
  11109. cat conftest.$ac_ext >&5
  11110. rm -rf conftest*
  11111. cat > conftest.$ac_ext <<EOF
  11112. #line 14021 "configure"
  11113. #include "confdefs.h"
  11114. #define _LARGEFILE_SOURCE 1
  11115. #include <stdio.h>
  11116. int main() {
  11117. return !fseeko;
  11118. ; return 0; }
  11119. EOF
  11120. if { (eval echo configure:14030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11121. rm -rf conftest*
  11122. ac_cv_sys_largefile_source=1
  11123. else
  11124. echo "configure: failed program was:" >&5
  11125. cat conftest.$ac_ext >&5
  11126. fi
  11127. rm -f conftest*
  11128. fi
  11129. rm -f conftest*
  11130. echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
  11131. if test "$ac_cv_sys_largefile_source" != no; then
  11132. cat >> confdefs.h <<EOF
  11133. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  11134. EOF
  11135. fi
  11136. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  11137. # in glibc 2.1.3, but that breaks too many other things.
  11138. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  11139. echo $ac_n "checking for fseeko""... $ac_c" 1>&6
  11140. echo "configure:14053: checking for fseeko" >&5
  11141. ac_cv_func_fseeko=no
  11142. cat > conftest.$ac_ext <<EOF
  11143. #line 14057 "configure"
  11144. #include "confdefs.h"
  11145. #include <stdio.h>
  11146. int main() {
  11147. return fseeko && fseeko (stdin, 0, 0);
  11148. ; return 0; }
  11149. EOF
  11150. if { (eval echo configure:14064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  11151. rm -rf conftest*
  11152. ac_cv_func_fseeko=yes
  11153. else
  11154. echo "configure: failed program was:" >&5
  11155. cat conftest.$ac_ext >&5
  11156. fi
  11157. rm -f conftest*
  11158. echo "$ac_t""$ac_cv_func_fseeko" 1>&6
  11159. if test $ac_cv_func_fseeko != no; then
  11160. cat >> confdefs.h <<\EOF
  11161. #define HAVE_FSEEKO 1
  11162. EOF
  11163. fi
  11164. echo $ac_n "checking if system supports Large Files at all""... $ac_c" 1>&6
  11165. echo "configure:14081: checking if system supports Large Files at all" >&5
  11166. cat > conftest.$ac_ext <<EOF
  11167. #line 14084 "configure"
  11168. #include "confdefs.h"
  11169. #include <stdio.h>
  11170. #include <sys/types.h>
  11171. int main() {
  11172. /*
  11173. * Check that off_t can represent 2**63 - 1 correctly.
  11174. * We can't simply "#define LARGE_OFF_T 9223372036854775807",
  11175. * since some C++ compilers masquerading as C compilers
  11176. * incorrectly reject 9223372036854775807.
  11177. *
  11178. * For MinGW, off64_t should be used and __MSVCRT_VERSION__ >= 0x0601
  11179. * (msvcrt.dll version 6.10 or higher) is needed for _fstat64 and _stat64.
  11180. */
  11181. #ifdef __MINGW32__
  11182. # define LARGE_OFF_T (((off64_t) 1 << 62) - 1 + ((off64_t) 1 << 62))
  11183. #else
  11184. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11185. #endif
  11186. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11187. && LARGE_OFF_T % 2147483647 == 1)
  11188. ? 1 : -1];
  11189. #ifdef __MINGW32__
  11190. return !fseeko64;
  11191. return !ftello64;
  11192. #else
  11193. return !fseeko;
  11194. return !ftello;
  11195. #endif
  11196. ; return 0; }
  11197. EOF
  11198. if { (eval echo configure:14116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11199. rm -rf conftest*
  11200. ac_cv_largefiles=yes
  11201. else
  11202. echo "configure: failed program was:" >&5
  11203. cat conftest.$ac_ext >&5
  11204. rm -rf conftest*
  11205. ac_cv_largefiles=no
  11206. fi
  11207. rm -f conftest*
  11208. echo "$ac_t""$ac_cv_largefiles" 1>&6
  11209. if test $ac_cv_largefiles = yes; then
  11210. cat >> confdefs.h <<\EOF
  11211. #define HAVE_LARGEFILES 1
  11212. EOF
  11213. fi
  11214. USE_LARGEFILES=
  11215. if test $ac_cv_largefiles = yes; then
  11216. USE_LARGEFILES=1
  11217. fi
  11218. # Done large file support
  11219. # Python check
  11220. echo $ac_n "checking whether to use Python""... $ac_c" 1>&6
  11221. echo "configure:14145: checking whether to use Python" >&5
  11222. PYTHONINC=
  11223. PYTHONCFLAGS=
  11224. PYTHONLDFLAGS=
  11225. SWIG=
  11226. USE_PYTHON=
  11227. MACOSX_ARCHS_PYTHON=
  11228. if test "$with_python" = "no" ; then
  11229. echo "$ac_t""no" 1>&6
  11230. else
  11231. echo "$ac_t""yes" 1>&6
  11232. USE_PYTHON="1"
  11233. if test "$with_python" != "yes" ; then
  11234. PY_CONFIG="$with_python"
  11235. fi
  11236. # Extract the first word of "python-config", so it can be a program name with args.
  11237. set dummy python-config; ac_word=$2
  11238. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  11239. echo "configure:14166: checking for $ac_word" >&5
  11240. case "$PY_CONFIG" in
  11241. /*)
  11242. ac_cv_path_PY_CONFIG="$PY_CONFIG" # Let the user override the test with a path.
  11243. ;;
  11244. ?:/*)
  11245. ac_cv_path_PY_CONFIG="$PY_CONFIG" # Let the user override the test with a dos path.
  11246. ;;
  11247. *)
  11248. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  11249. ac_dummy="$PATH"
  11250. for ac_dir in $ac_dummy; do
  11251. test -z "$ac_dir" && ac_dir=.
  11252. if test -f $ac_dir/$ac_word; then
  11253. ac_cv_path_PY_CONFIG="$ac_dir/$ac_word"
  11254. break
  11255. fi
  11256. done
  11257. IFS="$ac_save_ifs"
  11258. test -z "$ac_cv_path_PY_CONFIG" && ac_cv_path_PY_CONFIG="no"
  11259. ;;
  11260. esac
  11261. PY_CONFIG="$ac_cv_path_PY_CONFIG"
  11262. if test -n "$PY_CONFIG"; then
  11263. echo "$ac_t""$PY_CONFIG" 1>&6
  11264. else
  11265. echo "$ac_t""no" 1>&6
  11266. fi
  11267. if test "$PY_CONFIG" != "no" ; then
  11268. # With Python includes directory
  11269. PYTHONINC=`"$PY_CONFIG" --includes`
  11270. ac_save_cppflags="$CPPFLAGS"
  11271. CPPFLAGS="$PYTHONINC $CPPFLAGS"
  11272. for ac_hdr in Python.h
  11273. do
  11274. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  11275. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  11276. echo "configure:14208: checking for $ac_hdr" >&5
  11277. cat > conftest.$ac_ext <<EOF
  11278. #line 14211 "configure"
  11279. #include "confdefs.h"
  11280. #include <$ac_hdr>
  11281. EOF
  11282. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  11283. { (eval echo configure:14216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  11284. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  11285. if test -z "$ac_err"; then
  11286. rm -rf conftest*
  11287. eval "ac_cv_header_$ac_safe=yes"
  11288. else
  11289. echo "$ac_err" >&5
  11290. echo "configure: failed program was:" >&5
  11291. cat conftest.$ac_ext >&5
  11292. rm -rf conftest*
  11293. eval "ac_cv_header_$ac_safe=no"
  11294. fi
  11295. rm -f conftest*
  11296. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  11297. echo "$ac_t""yes" 1>&6
  11298. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  11299. cat >> confdefs.h <<EOF
  11300. #define $ac_tr_hdr 1
  11301. EOF
  11302. else
  11303. echo "$ac_t""no" 1>&6
  11304. { echo "configure: error: *** Unable to locate Python includes." 1>&2; exit 1; }
  11305. fi
  11306. done
  11307. CPPFLAGS=$ac_save_cppflags
  11308. PYTHONCFLAGS=`"$PY_CONFIG" --cflags`
  11309. # With Python library directory
  11310. PYTHONLDFLAGS=`"$PY_CONFIG" --ldflags`
  11311. # shouldn't have arch flags in C/LD flags on OSX
  11312. for a in i386 ppc x86_64 ppc64
  11313. do
  11314. PYTHONCFLAGS=`echo "$PYTHONCFLAGS" | sed "s/-arch *$a//g"`
  11315. PYTHONLDFLAGS=`echo "$PYTHONLDFLAGS" | sed "s/-arch *$a//g"`
  11316. done
  11317. fi
  11318. # look for the swig program
  11319. # Extract the first word of "swig", so it can be a program name with args.
  11320. set dummy swig; ac_word=$2
  11321. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  11322. echo "configure:14264: checking for $ac_word" >&5
  11323. case "$SWIG" in
  11324. /*)
  11325. ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
  11326. ;;
  11327. ?:/*)
  11328. ac_cv_path_SWIG="$SWIG" # Let the user override the test with a dos path.
  11329. ;;
  11330. *)
  11331. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  11332. ac_dummy="$PATH"
  11333. for ac_dir in $ac_dummy; do
  11334. test -z "$ac_dir" && ac_dir=.
  11335. if test -f $ac_dir/$ac_word; then
  11336. ac_cv_path_SWIG="$ac_dir/$ac_word"
  11337. break
  11338. fi
  11339. done
  11340. IFS="$ac_save_ifs"
  11341. test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="no"
  11342. ;;
  11343. esac
  11344. SWIG="$ac_cv_path_SWIG"
  11345. if test -n "$SWIG"; then
  11346. echo "$ac_t""$SWIG" 1>&6
  11347. else
  11348. echo "$ac_t""no" 1>&6
  11349. fi
  11350. # if test "$SWIG" = "no" ; then
  11351. # AC_MSG_ERROR([*** couldn't find swig])
  11352. # fi
  11353. # check for available OSX archs in Python, assume framework
  11354. if test -n "$MACOSX_ARCHS" ; then
  11355. pylib=`"$PY_CONFIG" --prefix`/Python
  11356. pylibinfo=`file -L "$pylib"`
  11357. for a in i386 ppc x86_64 ppc64
  11358. do
  11359. # add only if in MACOSX_ARCHS
  11360. if test -n "`echo \"$pylibinfo\" | grep \"library $a\"`" ; then
  11361. if test -n "`echo "$MACOSX_ARCHS" | grep $a`" ; then
  11362. MACOSX_ARCHS_PYTHON="$MACOSX_ARCHS_PYTHON -arch $a"
  11363. fi
  11364. fi
  11365. done
  11366. fi
  11367. fi # Done checking Python
  11368. # Enable wxWidgets support (for wxGUI)
  11369. echo $ac_n "checking whether to use wxWidgets""... $ac_c" 1>&6
  11370. echo "configure:14326: checking whether to use wxWidgets" >&5
  11371. WXVERSION=
  11372. WXWIDGETSCXXFLAGS=
  11373. WXWIDGETSCPPFLAGS=
  11374. WXWIDGETSLIB=
  11375. USE_WXWIDGETS=
  11376. MACOSX_ARCHS_WXPYTHON=
  11377. if test "$with_wxwidgets" = "no" ; then
  11378. echo "$ac_t""no" 1>&6
  11379. else
  11380. echo "$ac_t""yes" 1>&6
  11381. USE_WXWIDGETS="1"
  11382. if test "$with_wxwidgets" != "yes" ; then
  11383. WX_CONFIG="$with_wxwidgets"
  11384. fi
  11385. # Extract the first word of "wx-config", so it can be a program name with args.
  11386. set dummy wx-config; ac_word=$2
  11387. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  11388. echo "configure:14347: checking for $ac_word" >&5
  11389. case "$WX_CONFIG" in
  11390. /*)
  11391. ac_cv_path_WX_CONFIG="$WX_CONFIG" # Let the user override the test with a path.
  11392. ;;
  11393. ?:/*)
  11394. ac_cv_path_WX_CONFIG="$WX_CONFIG" # Let the user override the test with a dos path.
  11395. ;;
  11396. *)
  11397. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  11398. ac_dummy="$PATH"
  11399. for ac_dir in $ac_dummy; do
  11400. test -z "$ac_dir" && ac_dir=.
  11401. if test -f $ac_dir/$ac_word; then
  11402. ac_cv_path_WX_CONFIG="$ac_dir/$ac_word"
  11403. break
  11404. fi
  11405. done
  11406. IFS="$ac_save_ifs"
  11407. test -z "$ac_cv_path_WX_CONFIG" && ac_cv_path_WX_CONFIG="no"
  11408. ;;
  11409. esac
  11410. WX_CONFIG="$ac_cv_path_WX_CONFIG"
  11411. if test -n "$WX_CONFIG"; then
  11412. echo "$ac_t""$WX_CONFIG" 1>&6
  11413. else
  11414. echo "$ac_t""no" 1>&6
  11415. fi
  11416. if test "$WX_CONFIG" = "no" ; then
  11417. { echo "configure: error: *** couldn't find wx-config
  11418. wxWidgets must be installed on your system.
  11419. Please check that wx-config is in path, the directory
  11420. where wxWidgets libraries are installed (returned by
  11421. 'wx-config --libs' or 'wx-config --static --libs' command)
  11422. is in LD_LIBRARY_PATH or equivalent variable and
  11423. wxWidgets version is 2.8.1 or above." 1>&2; exit 1; }
  11424. fi
  11425. # Check wxWidgets version
  11426. REQWX="2.8.1"
  11427. echo $ac_n "checking wxWidgets version""... $ac_c" 1>&6
  11428. echo "configure:14395: checking wxWidgets version" >&5
  11429. if WXVERSION=`"$WX_CONFIG" --version`; then
  11430. echo "$ac_t""$WXVERSION" 1>&6
  11431. else
  11432. echo "$ac_t""not found" 1>&6
  11433. { echo "configure: error: wxWidgets is required." 1>&2; exit 1; }
  11434. fi
  11435. if test `expr "$WXVERSION" \< "$REQWX"` = 1 ; then
  11436. { echo "configure: error: *** wxWidgets "$REQWX" or later is required." 1>&2; exit 1; }
  11437. fi
  11438. # With wxWidgets includes directory
  11439. WXWIDGETSCXXFLAGS=`"$WX_CONFIG" --cxxflags`
  11440. WXWIDGETSCPPFLAGS=`"$WX_CONFIG" --cppflags`
  11441. ac_save_cppflags="$CPPFLAGS"
  11442. CPPFLAGS="$WXWIDGETSCPPFLAGS $CPPFLAGS"
  11443. for ac_hdr in wx/wxprec.h
  11444. do
  11445. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  11446. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  11447. echo "configure:14418: checking for $ac_hdr" >&5
  11448. cat > conftest.$ac_ext <<EOF
  11449. #line 14421 "configure"
  11450. #include "confdefs.h"
  11451. #include <$ac_hdr>
  11452. EOF
  11453. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  11454. { (eval echo configure:14426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  11455. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  11456. if test -z "$ac_err"; then
  11457. rm -rf conftest*
  11458. eval "ac_cv_header_$ac_safe=yes"
  11459. else
  11460. echo "$ac_err" >&5
  11461. echo "configure: failed program was:" >&5
  11462. cat conftest.$ac_ext >&5
  11463. rm -rf conftest*
  11464. eval "ac_cv_header_$ac_safe=no"
  11465. fi
  11466. rm -f conftest*
  11467. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  11468. echo "$ac_t""yes" 1>&6
  11469. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  11470. cat >> confdefs.h <<EOF
  11471. #define $ac_tr_hdr 1
  11472. EOF
  11473. else
  11474. echo "$ac_t""no" 1>&6
  11475. { echo "configure: error: *** Unable to locate wxWidgets includes." 1>&2; exit 1; }
  11476. fi
  11477. done
  11478. CPPFLAGS=$ac_save_cppflags
  11479. # With wxWidgets library directory
  11480. WXWIDGETSLIB=`"$WX_CONFIG" --libs`
  11481. # shouldn't have arch flags in C/LD flags on OSX
  11482. for a in i386 ppc x86_64 ppc64
  11483. do
  11484. WXWIDGETSCXXFLAGS=`echo "$WXWIDGETSCXXFLAGS" | sed "s/-arch *$a//g"`
  11485. WXWIDGETSCPPFLAGS=`echo "$WXWIDGETSCPPFLAGS" | sed "s/-arch *$a//g"`
  11486. WXWIDGETSLIB=`echo "$WXWIDGETSLIB" | sed "s/-arch *$a//g"`
  11487. done
  11488. # check for available OSX archs in wxPython
  11489. if test -n "$MACOSX_ARCHS" ; then
  11490. wxver=`"$WX_CONFIG" --version`
  11491. wxlib=`"$WX_CONFIG" --prefix`/lib/lib`"$WX_CONFIG" --basename`-`echo "$wxver" | cut -d . -f1,2`.dylib
  11492. wxlibinfo=`file "$wxlib"`
  11493. for a in i386 ppc x86_64 ppc64
  11494. do
  11495. # add only if in MACOSX_ARCHS
  11496. if test -n "`echo \"$wxlibinfo\" | grep \"library $a\"`" ; then
  11497. if test -n "`echo \"$MACOSX_ARCHS\" | grep $a`" ; then
  11498. MACOSX_ARCHS_WXPYTHON="$MACOSX_ARCHS_WXPYTHON -arch $a"
  11499. fi
  11500. fi
  11501. done
  11502. fi
  11503. fi # $USE_WXWIDGETS
  11504. # Done checking wxWidgets
  11505. USE_TERMIO=
  11506. STRIPFLAG=
  11507. GRASS_HOME="${DSTDIR}"
  11508. trap '' 1 2 15
  11509. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  11510. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11511. # Let make expand exec_prefix.
  11512. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11513. # Any assignment to VPATH causes Sun make to only execute
  11514. # the first set of double-colon rules, so remove it if not needed.
  11515. # If there is a colon in the path, we need to keep it.
  11516. if test "x$srcdir" = x.; then
  11517. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  11518. fi
  11519. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  11520. DEFS=-DHAVE_CONFIG_H
  11521. # Without the "./", some shells look in PATH for config.status.
  11522. : ${CONFIG_STATUS=./config.status}
  11523. echo creating $CONFIG_STATUS
  11524. rm -f $CONFIG_STATUS
  11525. cat > $CONFIG_STATUS <<EOF
  11526. #! /bin/sh
  11527. # Generated automatically by configure.
  11528. # Run this file to recreate the current configuration.
  11529. # This directory was configured as follows,
  11530. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11531. #
  11532. # $0 $ac_configure_args
  11533. #
  11534. # Compiler output produced by configure, useful for debugging
  11535. # configure, is in ./config.log if it exists.
  11536. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  11537. for ac_option
  11538. do
  11539. case "\$ac_option" in
  11540. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11541. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  11542. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  11543. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  11544. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  11545. exit 0 ;;
  11546. -help | --help | --hel | --he | --h)
  11547. echo "\$ac_cs_usage"; exit 0 ;;
  11548. *) echo "\$ac_cs_usage"; exit 1 ;;
  11549. esac
  11550. done
  11551. ac_given_srcdir=$srcdir
  11552. ac_given_INSTALL="$INSTALL"
  11553. 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
  11554. EOF
  11555. cat >> $CONFIG_STATUS <<EOF
  11556. # Protect against being on the right side of a sed subst in config.status.
  11557. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  11558. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  11559. $ac_vpsub
  11560. $extrasub
  11561. s%@SHELL@%$SHELL%g
  11562. s%@CFLAGS@%$CFLAGS%g
  11563. s%@CPPFLAGS@%$CPPFLAGS%g
  11564. s%@CXXFLAGS@%$CXXFLAGS%g
  11565. s%@FFLAGS@%$FFLAGS%g
  11566. s%@DEFS@%$DEFS%g
  11567. s%@LDFLAGS@%$LDFLAGS%g
  11568. s%@LIBS@%$LIBS%g
  11569. s%@exec_prefix@%$exec_prefix%g
  11570. s%@prefix@%$prefix%g
  11571. s%@program_transform_name@%$program_transform_name%g
  11572. s%@bindir@%$bindir%g
  11573. s%@sbindir@%$sbindir%g
  11574. s%@libexecdir@%$libexecdir%g
  11575. s%@datadir@%$datadir%g
  11576. s%@sysconfdir@%$sysconfdir%g
  11577. s%@sharedstatedir@%$sharedstatedir%g
  11578. s%@localstatedir@%$localstatedir%g
  11579. s%@libdir@%$libdir%g
  11580. s%@includedir@%$includedir%g
  11581. s%@oldincludedir@%$oldincludedir%g
  11582. s%@infodir@%$infodir%g
  11583. s%@mandir@%$mandir%g
  11584. s%@host@%$host%g
  11585. s%@host_alias@%$host_alias%g
  11586. s%@host_cpu@%$host_cpu%g
  11587. s%@host_vendor@%$host_vendor%g
  11588. s%@host_os@%$host_os%g
  11589. s%@CC@%$CC%g
  11590. s%@EXEEXT@%$EXEEXT%g
  11591. s%@MINGW32@%$MINGW32%g
  11592. s%@BINDIR@%$BINDIR%g
  11593. s%@pwd@%$pwd%g
  11594. s%@SRCDIR@%$SRCDIR%g
  11595. s%@DSTDIR@%$DSTDIR%g
  11596. s%@ARCH@%$ARCH%g
  11597. s%@GISBASE@%$GISBASE%g
  11598. s%@GRASS_BIN@%$GRASS_BIN%g
  11599. s%@SVN_VERSION@%$SVN_VERSION%g
  11600. s%@GRASS_VERSION_FILE@%$GRASS_VERSION_FILE%g
  11601. s%@GRASS_VERSION_MAJOR@%$GRASS_VERSION_MAJOR%g
  11602. s%@GRASS_VERSION_MINOR@%$GRASS_VERSION_MINOR%g
  11603. s%@GRASS_VERSION_RELEASE@%$GRASS_VERSION_RELEASE%g
  11604. s%@GRASS_VERSION_NUMBER@%$GRASS_VERSION_NUMBER%g
  11605. s%@GRASS_VERSION_DATE@%$GRASS_VERSION_DATE%g
  11606. s%@GRASS_VERSION_SVN@%$GRASS_VERSION_SVN%g
  11607. s%@NAME_VER@%$NAME_VER%g
  11608. s%@LIB_VER@%$LIB_VER%g
  11609. s%@MACOSX_APP@%$MACOSX_APP%g
  11610. s%@MACOSX_ARCHS@%$MACOSX_ARCHS%g
  11611. s%@MACOSX_SDK@%$MACOSX_SDK%g
  11612. s%@INSTDIR@%$INSTDIR%g
  11613. s%@GRASS_LIB_PREFIX@%$GRASS_LIB_PREFIX%g
  11614. s%@GRASS_LIB_SUFFIX@%$GRASS_LIB_SUFFIX%g
  11615. s%@GRASS_LIBRARY_TYPE@%$GRASS_LIBRARY_TYPE%g
  11616. s%@PLAT_OBJS@%$PLAT_OBJS%g
  11617. s%@CC_SEARCH_FLAGS@%$CC_SEARCH_FLAGS%g
  11618. s%@LD_SEARCH_FLAGS@%$LD_SEARCH_FLAGS%g
  11619. s%@LD_LIBRARY_PATH_VAR@%$LD_LIBRARY_PATH_VAR%g
  11620. s%@SHLIB_LD@%$SHLIB_LD%g
  11621. s%@SHLIB_LD_FLAGS@%$SHLIB_LD_FLAGS%g
  11622. s%@SHLIB_LD_LIBS@%$SHLIB_LD_LIBS%g
  11623. s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
  11624. s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
  11625. s%@STLIB_LD@%$STLIB_LD%g
  11626. s%@STLIB_SUFFIX@%$STLIB_SUFFIX%g
  11627. s%@INCLUDE_DIRS@%$INCLUDE_DIRS%g
  11628. s%@LIBRARY_DIRS@%$LIBRARY_DIRS%g
  11629. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  11630. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  11631. s%@INSTALL_DATA@%$INSTALL_DATA%g
  11632. s%@LEX@%$LEX%g
  11633. s%@LEXLIB@%$LEXLIB%g
  11634. s%@LEXPATH@%$LEXPATH%g
  11635. s%@YACC@%$YACC%g
  11636. s%@YACCPATH@%$YACCPATH%g
  11637. s%@RANLIB@%$RANLIB%g
  11638. s%@AR@%$AR%g
  11639. s%@ENV@%$ENV%g
  11640. s%@PERL@%$PERL%g
  11641. s%@CPP@%$CPP%g
  11642. s%@CROSS_COMPILING@%$CROSS_COMPILING%g
  11643. s%@X_CFLAGS@%$X_CFLAGS%g
  11644. s%@X_LIBS@%$X_LIBS%g
  11645. s%@X_PRE_LIBS@%$X_PRE_LIBS%g
  11646. s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  11647. s%@XLIB@%$XLIB%g
  11648. s%@XTLIB@%$XTLIB%g
  11649. s%@USE_X11@%$USE_X11%g
  11650. s%@DBMIEXTRALIB@%$DBMIEXTRALIB%g
  11651. s%@XDRLIB@%$XDRLIB%g
  11652. s%@HAVE_ASPRINTF@%$HAVE_ASPRINTF%g
  11653. s%@MATHLIB@%$MATHLIB%g
  11654. s%@DLLIB@%$DLLIB%g
  11655. s%@ICONVLIB@%$ICONVLIB%g
  11656. s%@SOCKLIB@%$SOCKLIB%g
  11657. s%@HAVE_SOCKET@%$HAVE_SOCKET%g
  11658. s%@ZLIBINCPATH@%$ZLIBINCPATH%g
  11659. s%@ZLIBLIBPATH@%$ZLIBLIBPATH%g
  11660. s%@ZLIB@%$ZLIB%g
  11661. s%@PROJINC@%$PROJINC%g
  11662. s%@PROJLIB@%$PROJLIB%g
  11663. s%@PROJSHARE@%$PROJSHARE%g
  11664. s%@NAD2BIN@%$NAD2BIN%g
  11665. s%@REGEXINCPATH@%$REGEXINCPATH%g
  11666. s%@REGEXLIBPATH@%$REGEXLIBPATH%g
  11667. s%@REGEXLIB@%$REGEXLIB%g
  11668. s%@USE_REGEX@%$USE_REGEX%g
  11669. s%@READLINEINCPATH@%$READLINEINCPATH%g
  11670. s%@READLINELIBPATH@%$READLINELIBPATH%g
  11671. s%@READLINELIB@%$READLINELIB%g
  11672. s%@HISTORYLIB@%$HISTORYLIB%g
  11673. s%@JPEGINCPATH@%$JPEGINCPATH%g
  11674. s%@JPEGLIBPATH@%$JPEGLIBPATH%g
  11675. s%@JPEGLIB@%$JPEGLIB%g
  11676. s%@GDAL_CONFIG@%$GDAL_CONFIG%g
  11677. s%@GDAL_LIBS@%$GDAL_LIBS%g
  11678. s%@GDAL_CFLAGS@%$GDAL_CFLAGS%g
  11679. s%@USE_GDAL@%$USE_GDAL%g
  11680. s%@USE_OGR@%$USE_OGR%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%@PY_CONFIG@%$PY_CONFIG%g
  11750. s%@SWIG@%$SWIG%g
  11751. s%@PYTHONINC@%$PYTHONINC%g
  11752. s%@PYTHONCFLAGS@%$PYTHONCFLAGS%g
  11753. s%@PYTHONLDFLAGS@%$PYTHONLDFLAGS%g
  11754. s%@USE_PYTHON@%$USE_PYTHON%g
  11755. s%@MACOSX_ARCHS_PYTHON@%$MACOSX_ARCHS_PYTHON%g
  11756. s%@WX_CONFIG@%$WX_CONFIG%g
  11757. s%@WXVERSION@%$WXVERSION%g
  11758. s%@WXWIDGETSCXXFLAGS@%$WXWIDGETSCXXFLAGS%g
  11759. s%@WXWIDGETSCPPFLAGS@%$WXWIDGETSCPPFLAGS%g
  11760. s%@WXWIDGETSLIB@%$WXWIDGETSLIB%g
  11761. s%@USE_WXWIDGETS@%$USE_WXWIDGETS%g
  11762. s%@MACOSX_ARCHS_WXPYTHON@%$MACOSX_ARCHS_WXPYTHON%g
  11763. s%@USE_TERMIO@%$USE_TERMIO%g
  11764. s%@STRIPFLAG@%$STRIPFLAG%g
  11765. s%@GRASS_HOME@%$GRASS_HOME%g
  11766. CEOF
  11767. EOF
  11768. cat >> $CONFIG_STATUS <<\EOF
  11769. # Split the substitutions into bite-sized pieces for seds with
  11770. # small command number limits, like on Digital OSF/1 and HP-UX.
  11771. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  11772. ac_file=1 # Number of current file.
  11773. ac_beg=1 # First line for current file.
  11774. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  11775. ac_more_lines=:
  11776. ac_sed_cmds=""
  11777. while $ac_more_lines; do
  11778. if test $ac_beg -gt 1; then
  11779. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  11780. else
  11781. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  11782. fi
  11783. if test ! -s conftest.s$ac_file; then
  11784. ac_more_lines=false
  11785. rm -f conftest.s$ac_file
  11786. else
  11787. if test -z "$ac_sed_cmds"; then
  11788. ac_sed_cmds="sed -f conftest.s$ac_file"
  11789. else
  11790. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  11791. fi
  11792. ac_file=`expr $ac_file + 1`
  11793. ac_beg=$ac_end
  11794. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  11795. fi
  11796. done
  11797. if test -z "$ac_sed_cmds"; then
  11798. ac_sed_cmds=cat
  11799. fi
  11800. EOF
  11801. cat >> $CONFIG_STATUS <<EOF
  11802. CONFIG_FILES=\${CONFIG_FILES-"include/Make/Platform.make include/Make/Doxyfile_arch_html include/Make/Doxyfile_arch_latex include/version.h grass.pc"}
  11803. EOF
  11804. cat >> $CONFIG_STATUS <<\EOF
  11805. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  11806. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11807. case "$ac_file" in
  11808. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  11809. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11810. *) ac_file_in="${ac_file}.in" ;;
  11811. esac
  11812. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  11813. # Remove last slash and all that follows it. Not all systems have dirname.
  11814. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  11815. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  11816. # The file is in a subdirectory.
  11817. test ! -d "$ac_dir" && mkdir "$ac_dir"
  11818. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  11819. # A "../" for each directory in $ac_dir_suffix.
  11820. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  11821. else
  11822. ac_dir_suffix= ac_dots=
  11823. fi
  11824. case "$ac_given_srcdir" in
  11825. .) srcdir=.
  11826. if test -z "$ac_dots"; then top_srcdir=.
  11827. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  11828. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  11829. *) # Relative path.
  11830. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  11831. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  11832. esac
  11833. case "$ac_given_INSTALL" in
  11834. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  11835. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  11836. esac
  11837. echo creating "$ac_file"
  11838. rm -f "$ac_file"
  11839. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  11840. case "$ac_file" in
  11841. *Makefile*) ac_comsub="1i\\
  11842. # $configure_input" ;;
  11843. *) ac_comsub= ;;
  11844. esac
  11845. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  11846. sed -e "$ac_comsub
  11847. s%@configure_input@%$configure_input%g
  11848. s%@srcdir@%$srcdir%g
  11849. s%@top_srcdir@%$top_srcdir%g
  11850. s%@INSTALL@%$INSTALL%g
  11851. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  11852. fi; done
  11853. rm -f conftest.s*
  11854. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11855. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11856. #
  11857. # ac_d sets the value in "#define NAME VALUE" lines.
  11858. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11859. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  11860. ac_dC='\3'
  11861. ac_dD='%g'
  11862. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  11863. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11864. ac_uB='\([ ]\)%\1#\2define\3'
  11865. ac_uC=' '
  11866. ac_uD='\4%g'
  11867. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11868. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11869. ac_eB='$%\1#\2define\3'
  11870. ac_eC=' '
  11871. ac_eD='%g'
  11872. if test "${CONFIG_HEADERS+set}" != set; then
  11873. EOF
  11874. cat >> $CONFIG_STATUS <<EOF
  11875. CONFIG_HEADERS="include/config.h"
  11876. EOF
  11877. cat >> $CONFIG_STATUS <<\EOF
  11878. fi
  11879. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  11880. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11881. case "$ac_file" in
  11882. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  11883. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11884. *) ac_file_in="${ac_file}.in" ;;
  11885. esac
  11886. echo creating $ac_file
  11887. rm -f conftest.frag conftest.in conftest.out
  11888. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  11889. cat $ac_file_inputs > conftest.in
  11890. EOF
  11891. # Transform confdefs.h into a sed script conftest.vals that substitutes
  11892. # the proper values into config.h.in to produce config.h. And first:
  11893. # Protect against being on the right side of a sed subst in config.status.
  11894. # Protect against being in an unquoted here document in config.status.
  11895. rm -f conftest.vals
  11896. cat > conftest.hdr <<\EOF
  11897. s/[\\&%]/\\&/g
  11898. s%[\\$`]%\\&%g
  11899. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  11900. s%ac_d%ac_u%gp
  11901. s%ac_u%ac_e%gp
  11902. EOF
  11903. sed -n -f conftest.hdr confdefs.h > conftest.vals
  11904. rm -f conftest.hdr
  11905. # This sed command replaces #undef with comments. This is necessary, for
  11906. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11907. # on some systems where configure will not decide to define it.
  11908. cat >> conftest.vals <<\EOF
  11909. s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  11910. EOF
  11911. # Break up conftest.vals because some shells have a limit on
  11912. # the size of here documents, and old seds have small limits too.
  11913. rm -f conftest.tail
  11914. while :
  11915. do
  11916. ac_lines=`grep -c . conftest.vals`
  11917. # grep -c gives empty output for an empty file on some AIX systems.
  11918. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  11919. # Write a limited-size here document to conftest.frag.
  11920. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  11921. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  11922. echo 'CEOF
  11923. sed -f conftest.frag conftest.in > conftest.out
  11924. rm -f conftest.in
  11925. mv conftest.out conftest.in
  11926. ' >> $CONFIG_STATUS
  11927. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  11928. rm -f conftest.vals
  11929. mv conftest.tail conftest.vals
  11930. done
  11931. rm -f conftest.vals
  11932. cat >> $CONFIG_STATUS <<\EOF
  11933. rm -f conftest.frag conftest.h
  11934. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  11935. cat conftest.in >> conftest.h
  11936. rm -f conftest.in
  11937. if cmp -s $ac_file conftest.h 2>/dev/null; then
  11938. echo "$ac_file is unchanged"
  11939. rm -f conftest.h
  11940. else
  11941. # Remove last slash and all that follows it. Not all systems have dirname.
  11942. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  11943. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  11944. # The file is in a subdirectory.
  11945. test ! -d "$ac_dir" && mkdir "$ac_dir"
  11946. fi
  11947. rm -f $ac_file
  11948. mv conftest.h $ac_file
  11949. fi
  11950. fi; done
  11951. EOF
  11952. cat >> $CONFIG_STATUS <<EOF
  11953. EOF
  11954. cat >> $CONFIG_STATUS <<\EOF
  11955. exit 0
  11956. EOF
  11957. chmod +x $CONFIG_STATUS
  11958. rm -fr confdefs* $ac_clean_files
  11959. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  11960. echo "Copying config.status to config.status.${ARCH}"
  11961. cp -f config.status config.status.${ARCH}
  11962. # Display configuration status
  11963. USE_TOGL=
  11964. if test -n "${USE_TCLTK}" -a -n "${USE_OPENGL}" ; then
  11965. USE_TOGL="1"
  11966. fi
  11967. echo ""
  11968. echo "GRASS is now configured for: ${host}"
  11969. echo ""
  11970. echo " Source directory: ${SRCDIR}"
  11971. echo " Build directory: ${DSTDIR}"
  11972. echo " Installation directory: ${INSTDIR}"
  11973. echo " Startup script in directory: ${bindir}"
  11974. echo " C compiler: ${CC} ${CFLAGS}"
  11975. echo " C++ compiler: ${CXX} ${CXXFLAGS}"
  11976. #LOC_MSG([ FORTRAN compiler: ${F77} ${FFLAGS}])
  11977. echo " Building shared libraries: ${shared_ok}"
  11978. echo " 64bit support: ${do64bit}"
  11979. echo " OpenGL platform: ${OPENGL_TYPE}"
  11980. echo ""
  11981. echo " MacOSX application: `if test -n "${MACOSX_APP}" ; then echo yes ; else echo no ; fi`"
  11982. echo " MacOSX architectures: ${MACOSX_ARCHS}"
  11983. echo " MacOSX SDK: ${MACOSX_SDK}"
  11984. echo ""
  11985. echo " NVIZ: `if test -n "${USE_TOGL}" ; then echo yes ; else echo no ; fi`"
  11986. echo ""
  11987. echo " BLAS support: `if test -n "${USE_BLAS}" ; then echo yes ; else echo no ; fi`"
  11988. echo " C++ support: `if test -n "${USE_CXX}" ; then echo yes ; else echo no ; fi`"
  11989. echo " Cairo support: `if test -n "${USE_CAIRO}" ; then echo yes ; else echo no ; fi`"
  11990. echo " DWG support: `if test -n "${USE_OPENDWG}" ; then echo yes ; else echo no ; fi`"
  11991. echo " FFMPEG support: `if test -n "${USE_FFMPEG}" ; then echo yes ; else echo no ; fi`"
  11992. echo " FFTW support: `if test -n "${USE_FFTW}" ; then echo yes ; else echo no ; fi`"
  11993. echo " FreeType support: `if test -n "${USE_FREETYPE}" ; then echo yes ; else echo no ; fi`"
  11994. echo " GDAL support: `if test -n "${USE_GDAL}" ; then echo yes ; else echo no ; fi`"
  11995. echo " GEOS support: `if test -n "${USE_GEOS}" ; then echo yes ; else echo no ; fi`"
  11996. echo " JPEG support: `if test -n "${USE_JPEG}" ; then echo yes ; else echo no ; fi`"
  11997. echo " LAPACK support: `if test -n "${USE_LAPACK}" ; then echo yes ; else echo no ; fi`"
  11998. echo " Large File support (LFS): `if test -n "${USE_LARGEFILES}" ; then echo yes ; else echo no ; fi`"
  11999. echo " MySQL support: `if test -n "${USE_MYSQL}" ; then echo yes ; else echo no ; fi`"
  12000. echo " NLS support: `if test -n "${USE_NLS}" ; then echo yes ; else echo no ; fi`"
  12001. echo " ODBC support: `if test -n "${USE_ODBC}" ; then echo yes ; else echo no ; fi`"
  12002. echo " OGR support: `if test -n "${USE_OGR}" ; then echo yes ; else echo no ; fi`"
  12003. echo " OpenGL support: `if test -n "${USE_OPENGL}" ; then echo yes ; else echo no ; fi`"
  12004. echo " PNG support: `if test -n "${USE_PNG}" ; then echo yes ; else echo no ; fi`"
  12005. echo " PostgreSQL support: `if test -n "${USE_POSTGRES}" ; then echo yes ; else echo no ; fi`"
  12006. echo " Python support: `if test -n "${USE_PYTHON}" ; then echo yes ; else echo no ; fi`"
  12007. echo " Readline support: `if test -n "${USE_READLINE}" ; then echo yes ; else echo no ; fi`"
  12008. echo " SQLite support: `if test -n "${USE_SQLITE}" ; then echo yes ; else echo no ; fi`"
  12009. echo " Tcl/Tk support: `if test -n "${USE_TCLTK}" ; then echo yes ; else echo no ; fi`"
  12010. echo " wxWidgets support: `if test -n "${USE_WXWIDGETS}" ; then echo yes ; else echo no ; fi`"
  12011. echo " TIFF support: `if test -n "${USE_TIFF}" ; then echo yes ; else echo no ; fi`"
  12012. echo " X11 support: `if test -n "${USE_X11}" ; then echo yes ; else echo no ; fi`"
  12013. echo " Regex support: `if test -n "${USE_REGEX}" ; then echo yes ; else echo no ; fi`"
  12014. echo " POSIX thread support: `if test -n "${USE_PTHREAD}" ; then echo yes ; else echo no ; fi`"
  12015. echo ""