configure 384 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028
  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:8503: 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 8509 "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:8520: \"$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:8539: 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 $MATHLIB $LIBS"
  6893. cat > conftest.$ac_ext <<EOF
  6894. #line 8545 "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:8556: \"$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 $MATHLIB"
  6918. else
  6919. echo "$ac_t""no" 1>&6
  6920. LDFLAGS=${ac_save_ldflags}
  6921. { echo "configure: error: *** Unable to locate SQLite library." 1>&2; exit 1; }
  6922. fi
  6923. fi
  6924. LDFLAGS=${ac_save_ldflags}
  6925. fi # $USE_SQLITE
  6926. # Done checking SQLite
  6927. # Enable FFMPEG option
  6928. echo $ac_n "checking whether to use FFMPEG""... $ac_c" 1>&6
  6929. echo "configure:8609: checking whether to use FFMPEG" >&5
  6930. echo "$ac_t"""$with_ffmpeg"" 1>&6
  6931. case "$with_ffmpeg" in
  6932. "no") USE_FFMPEG= ;;
  6933. "yes") USE_FFMPEG="1" ;;
  6934. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6935. esac
  6936. FFMPEGINCPATH=
  6937. FFMPEGLIBPATH=
  6938. FFMPEGLIB=
  6939. if test -n "$USE_FFMPEG"; then
  6940. # With FFMPEG includes directory
  6941. echo $ac_n "checking for location of FFMPEG includes""... $ac_c" 1>&6
  6942. echo "configure:8629: checking for location of FFMPEG includes" >&5
  6943. case "$with_ffmpeg_includes" in
  6944. y | ye | yes | n | no)
  6945. { echo "configure: error: *** You must supply a directory to --with-ffmpeg-includes." 1>&2; exit 1; }
  6946. ;;
  6947. esac
  6948. echo "$ac_t""$with_ffmpeg_includes" 1>&6
  6949. if test -n "$with_ffmpeg_includes" ; then
  6950. for dir in $with_ffmpeg_includes; do
  6951. if test -d "$dir"; then
  6952. FFMPEGINCPATH="$FFMPEGINCPATH -I$dir"
  6953. else
  6954. { echo "configure: error: *** FFMPEG includes directory $dir does not exist." 1>&2; exit 1; }
  6955. fi
  6956. done
  6957. fi
  6958. ac_save_cppflags="$CPPFLAGS"
  6959. CPPFLAGS="$FFMPEGINCPATH $CPPFLAGS"
  6960. for ac_hdr in avcodec.h
  6961. do
  6962. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6963. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6964. echo "configure:8655: checking for $ac_hdr" >&5
  6965. cat > conftest.$ac_ext <<EOF
  6966. #line 8658 "configure"
  6967. #include "confdefs.h"
  6968. #include <$ac_hdr>
  6969. EOF
  6970. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6971. { (eval echo configure:8663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6972. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6973. if test -z "$ac_err"; then
  6974. rm -rf conftest*
  6975. eval "ac_cv_header_$ac_safe=yes"
  6976. else
  6977. echo "$ac_err" >&5
  6978. echo "configure: failed program was:" >&5
  6979. cat conftest.$ac_ext >&5
  6980. rm -rf conftest*
  6981. eval "ac_cv_header_$ac_safe=no"
  6982. fi
  6983. rm -f conftest*
  6984. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6985. echo "$ac_t""yes" 1>&6
  6986. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6987. cat >> confdefs.h <<EOF
  6988. #define $ac_tr_hdr 1
  6989. EOF
  6990. else
  6991. echo "$ac_t""no" 1>&6
  6992. { echo "configure: error: *** Unable to locate FFMPEG includes." 1>&2; exit 1; }
  6993. fi
  6994. done
  6995. CPPFLAGS=$ac_save_cppflags
  6996. ac_save_cppflags="$CPPFLAGS"
  6997. CPPFLAGS="$FFMPEGINCPATH $CPPFLAGS"
  6998. for ac_hdr in avformat.h
  6999. do
  7000. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7001. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7002. echo "configure:8699: checking for $ac_hdr" >&5
  7003. cat > conftest.$ac_ext <<EOF
  7004. #line 8702 "configure"
  7005. #include "confdefs.h"
  7006. #include <$ac_hdr>
  7007. EOF
  7008. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7009. { (eval echo configure:8707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7010. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7011. if test -z "$ac_err"; then
  7012. rm -rf conftest*
  7013. eval "ac_cv_header_$ac_safe=yes"
  7014. else
  7015. echo "$ac_err" >&5
  7016. echo "configure: failed program was:" >&5
  7017. cat conftest.$ac_ext >&5
  7018. rm -rf conftest*
  7019. eval "ac_cv_header_$ac_safe=no"
  7020. fi
  7021. rm -f conftest*
  7022. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7023. echo "$ac_t""yes" 1>&6
  7024. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7025. cat >> confdefs.h <<EOF
  7026. #define $ac_tr_hdr 1
  7027. EOF
  7028. else
  7029. echo "$ac_t""no" 1>&6
  7030. { echo "configure: error: *** Unable to locate FFMPEG includes." 1>&2; exit 1; }
  7031. fi
  7032. done
  7033. CPPFLAGS=$ac_save_cppflags
  7034. ac_save_cppflags="$CPPFLAGS"
  7035. CPPFLAGS="$FFMPEGINCPATH $CPPFLAGS"
  7036. for ac_hdr in swscale.h
  7037. do
  7038. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7039. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7040. echo "configure:8743: checking for $ac_hdr" >&5
  7041. cat > conftest.$ac_ext <<EOF
  7042. #line 8746 "configure"
  7043. #include "confdefs.h"
  7044. #include <$ac_hdr>
  7045. EOF
  7046. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7047. { (eval echo configure:8751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7048. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7049. if test -z "$ac_err"; then
  7050. rm -rf conftest*
  7051. eval "ac_cv_header_$ac_safe=yes"
  7052. else
  7053. echo "$ac_err" >&5
  7054. echo "configure: failed program was:" >&5
  7055. cat conftest.$ac_ext >&5
  7056. rm -rf conftest*
  7057. eval "ac_cv_header_$ac_safe=no"
  7058. fi
  7059. rm -f conftest*
  7060. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7061. echo "$ac_t""yes" 1>&6
  7062. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7063. cat >> confdefs.h <<EOF
  7064. #define $ac_tr_hdr 1
  7065. EOF
  7066. else
  7067. echo "$ac_t""no" 1>&6
  7068. { echo "configure: error: *** Unable to locate FFMPEG includes." 1>&2; exit 1; }
  7069. fi
  7070. done
  7071. CPPFLAGS=$ac_save_cppflags
  7072. cat >> confdefs.h <<\EOF
  7073. #define HAVE_FFMPEG 1
  7074. EOF
  7075. fi # $USE_FFMPEG
  7076. if test -n "$USE_FFMPEG"; then
  7077. # With FFMPEG library directory
  7078. echo $ac_n "checking for location of FFMPEG library""... $ac_c" 1>&6
  7079. echo "configure:8794: checking for location of FFMPEG library" >&5
  7080. case "$with_ffmpeg_libs" in
  7081. y | ye | yes | n | no)
  7082. { echo "configure: error: *** You must supply a directory to --with-ffmpeg-libs." 1>&2; exit 1; }
  7083. ;;
  7084. esac
  7085. echo "$ac_t""$with_ffmpeg_libs" 1>&6
  7086. if test -n "$with_ffmpeg_libs"; then
  7087. for dir in $with_ffmpeg_libs; do
  7088. if test -d "$dir"; then
  7089. FFMPEGLIBPATH="$FFMPEGLIBPATH -L$dir"
  7090. else
  7091. { echo "configure: error: *** FFMPEG library directory $dir does not exist." 1>&2; exit 1; }
  7092. fi
  7093. done
  7094. fi
  7095. ac_save_ldflags="$LDFLAGS"
  7096. LDFLAGS="$FFMPEGLIBPATH $LDFLAGS"
  7097. echo $ac_n "checking for av_free in -lavutil""... $ac_c" 1>&6
  7098. echo "configure:8821: checking for av_free in -lavutil" >&5
  7099. ac_lib_var=`echo avutil'_'av_free | sed 'y%./+-%__p_%'`
  7100. ac_save_LIBS="$LIBS"
  7101. LIBS="-lavutil $LIBS"
  7102. cat > conftest.$ac_ext <<EOF
  7103. #line 8827 "configure"
  7104. #include "confdefs.h"
  7105. /* Override any gcc2 internal prototype to avoid an error. */
  7106. /* We use char because int might match the return type of a gcc2
  7107. builtin and then its argument prototype would still apply. */
  7108. char av_free();
  7109. int main() {
  7110. av_free()
  7111. ; return 0; }
  7112. EOF
  7113. if { (eval echo configure:8838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7114. rm -rf conftest*
  7115. eval "ac_cv_lib_$ac_lib_var=yes"
  7116. else
  7117. echo "configure: failed program was:" >&5
  7118. cat conftest.$ac_ext >&5
  7119. rm -rf conftest*
  7120. eval "ac_cv_lib_$ac_lib_var=no"
  7121. fi
  7122. rm -f conftest*
  7123. LIBS="$ac_save_LIBS"
  7124. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7125. echo "$ac_t""yes" 1>&6
  7126. FFMPEGLIB="$FFMPEGLIB -lavutil "
  7127. else
  7128. echo "$ac_t""no" 1>&6
  7129. echo $ac_n "checking for av_free in -lavutil""... $ac_c" 1>&6
  7130. echo "configure:8857: checking for av_free in -lavutil" >&5
  7131. ac_lib_var=`echo avutil'_'av_free | sed 'y%./+-%__p_%'`
  7132. ac_save_LIBS="$LIBS"
  7133. LIBS="-lavutil $MATHLIB $LIBS"
  7134. cat > conftest.$ac_ext <<EOF
  7135. #line 8863 "configure"
  7136. #include "confdefs.h"
  7137. /* Override any gcc2 internal prototype to avoid an error. */
  7138. /* We use char because int might match the return type of a gcc2
  7139. builtin and then its argument prototype would still apply. */
  7140. char av_free();
  7141. int main() {
  7142. av_free()
  7143. ; return 0; }
  7144. EOF
  7145. if { (eval echo configure:8874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7146. rm -rf conftest*
  7147. eval "ac_cv_lib_$ac_lib_var=yes"
  7148. else
  7149. echo "configure: failed program was:" >&5
  7150. cat conftest.$ac_ext >&5
  7151. rm -rf conftest*
  7152. eval "ac_cv_lib_$ac_lib_var=no"
  7153. fi
  7154. rm -f conftest*
  7155. LIBS="$ac_save_LIBS"
  7156. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7157. echo "$ac_t""yes" 1>&6
  7158. FFMPEGLIB="$FFMPEGLIB -lavutil $MATHLIB"
  7159. else
  7160. echo "$ac_t""no" 1>&6
  7161. LDFLAGS=${ac_save_ldflags}
  7162. { echo "configure: error: *** Unable to locate FFMPEG library." 1>&2; exit 1; }
  7163. fi
  7164. fi
  7165. LDFLAGS=${ac_save_ldflags}
  7166. ac_save_ldflags="$LDFLAGS"
  7167. LDFLAGS="$FFMPEGLIBPATH $LDFLAGS"
  7168. echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
  7169. echo "configure:8919: checking for avcodec_init in -lavcodec" >&5
  7170. ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
  7171. ac_save_LIBS="$LIBS"
  7172. LIBS="-lavcodec $FFMPEGLIB $LIBS"
  7173. cat > conftest.$ac_ext <<EOF
  7174. #line 8925 "configure"
  7175. #include "confdefs.h"
  7176. /* Override any gcc2 internal prototype to avoid an error. */
  7177. /* We use char because int might match the return type of a gcc2
  7178. builtin and then its argument prototype would still apply. */
  7179. char avcodec_init();
  7180. int main() {
  7181. avcodec_init()
  7182. ; return 0; }
  7183. EOF
  7184. if { (eval echo configure:8936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7185. rm -rf conftest*
  7186. eval "ac_cv_lib_$ac_lib_var=yes"
  7187. else
  7188. echo "configure: failed program was:" >&5
  7189. cat conftest.$ac_ext >&5
  7190. rm -rf conftest*
  7191. eval "ac_cv_lib_$ac_lib_var=no"
  7192. fi
  7193. rm -f conftest*
  7194. LIBS="$ac_save_LIBS"
  7195. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7196. echo "$ac_t""yes" 1>&6
  7197. FFMPEGLIB="$FFMPEGLIB -lavcodec "
  7198. else
  7199. echo "$ac_t""no" 1>&6
  7200. echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
  7201. echo "configure:8955: checking for avcodec_init in -lavcodec" >&5
  7202. ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
  7203. ac_save_LIBS="$LIBS"
  7204. LIBS="-lavcodec $FFMPEGLIB $MATHLIB $LIBS"
  7205. cat > conftest.$ac_ext <<EOF
  7206. #line 8961 "configure"
  7207. #include "confdefs.h"
  7208. /* Override any gcc2 internal prototype to avoid an error. */
  7209. /* We use char because int might match the return type of a gcc2
  7210. builtin and then its argument prototype would still apply. */
  7211. char avcodec_init();
  7212. int main() {
  7213. avcodec_init()
  7214. ; return 0; }
  7215. EOF
  7216. if { (eval echo configure:8972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7217. rm -rf conftest*
  7218. eval "ac_cv_lib_$ac_lib_var=yes"
  7219. else
  7220. echo "configure: failed program was:" >&5
  7221. cat conftest.$ac_ext >&5
  7222. rm -rf conftest*
  7223. eval "ac_cv_lib_$ac_lib_var=no"
  7224. fi
  7225. rm -f conftest*
  7226. LIBS="$ac_save_LIBS"
  7227. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7228. echo "$ac_t""yes" 1>&6
  7229. FFMPEGLIB="$FFMPEGLIB -lavcodec $MATHLIB"
  7230. else
  7231. echo "$ac_t""no" 1>&6
  7232. LDFLAGS=${ac_save_ldflags}
  7233. { echo "configure: error: *** Unable to locate FFMPEG library." 1>&2; exit 1; }
  7234. fi
  7235. fi
  7236. LDFLAGS=${ac_save_ldflags}
  7237. ac_save_ldflags="$LDFLAGS"
  7238. LDFLAGS="$FFMPEGLIBPATH $LDFLAGS"
  7239. echo $ac_n "checking for av_set_parameters in -lavformat""... $ac_c" 1>&6
  7240. echo "configure:9017: checking for av_set_parameters in -lavformat" >&5
  7241. ac_lib_var=`echo avformat'_'av_set_parameters | sed 'y%./+-%__p_%'`
  7242. ac_save_LIBS="$LIBS"
  7243. LIBS="-lavformat $FFMPEGLIB $LIBS"
  7244. cat > conftest.$ac_ext <<EOF
  7245. #line 9023 "configure"
  7246. #include "confdefs.h"
  7247. /* Override any gcc2 internal prototype to avoid an error. */
  7248. /* We use char because int might match the return type of a gcc2
  7249. builtin and then its argument prototype would still apply. */
  7250. char av_set_parameters();
  7251. int main() {
  7252. av_set_parameters()
  7253. ; return 0; }
  7254. EOF
  7255. if { (eval echo configure:9034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7256. rm -rf conftest*
  7257. eval "ac_cv_lib_$ac_lib_var=yes"
  7258. else
  7259. echo "configure: failed program was:" >&5
  7260. cat conftest.$ac_ext >&5
  7261. rm -rf conftest*
  7262. eval "ac_cv_lib_$ac_lib_var=no"
  7263. fi
  7264. rm -f conftest*
  7265. LIBS="$ac_save_LIBS"
  7266. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7267. echo "$ac_t""yes" 1>&6
  7268. FFMPEGLIB="$FFMPEGLIB -lavformat "
  7269. else
  7270. echo "$ac_t""no" 1>&6
  7271. echo $ac_n "checking for av_set_parameters in -lavformat""... $ac_c" 1>&6
  7272. echo "configure:9053: checking for av_set_parameters in -lavformat" >&5
  7273. ac_lib_var=`echo avformat'_'av_set_parameters | sed 'y%./+-%__p_%'`
  7274. ac_save_LIBS="$LIBS"
  7275. LIBS="-lavformat $FFMPEGLIB $MATHLIB $LIBS"
  7276. cat > conftest.$ac_ext <<EOF
  7277. #line 9059 "configure"
  7278. #include "confdefs.h"
  7279. /* Override any gcc2 internal prototype to avoid an error. */
  7280. /* We use char because int might match the return type of a gcc2
  7281. builtin and then its argument prototype would still apply. */
  7282. char av_set_parameters();
  7283. int main() {
  7284. av_set_parameters()
  7285. ; return 0; }
  7286. EOF
  7287. if { (eval echo configure:9070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7288. rm -rf conftest*
  7289. eval "ac_cv_lib_$ac_lib_var=yes"
  7290. else
  7291. echo "configure: failed program was:" >&5
  7292. cat conftest.$ac_ext >&5
  7293. rm -rf conftest*
  7294. eval "ac_cv_lib_$ac_lib_var=no"
  7295. fi
  7296. rm -f conftest*
  7297. LIBS="$ac_save_LIBS"
  7298. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7299. echo "$ac_t""yes" 1>&6
  7300. FFMPEGLIB="$FFMPEGLIB -lavformat $MATHLIB"
  7301. else
  7302. echo "$ac_t""no" 1>&6
  7303. LDFLAGS=${ac_save_ldflags}
  7304. { echo "configure: error: *** Unable to locate FFMPEG library." 1>&2; exit 1; }
  7305. fi
  7306. fi
  7307. LDFLAGS=${ac_save_ldflags}
  7308. fi # $USE_FFMPEG
  7309. # Done checking FFMPEG
  7310. # Enable OpenGL option
  7311. OPENGLINC=
  7312. OPENGLLIB=
  7313. OPENGLULIB=
  7314. USE_OPENGL=
  7315. OPENGL_X11=
  7316. OPENGL_AQUA=
  7317. OPENGL_WINDOWS=
  7318. echo $ac_n "checking whether to use OpenGL""... $ac_c" 1>&6
  7319. echo "configure:9129: checking whether to use OpenGL" >&5
  7320. echo "$ac_t"""$with_opengl"" 1>&6
  7321. case "$with_opengl" in
  7322. n|no)
  7323. OPENGL_TYPE=none
  7324. ;;
  7325. y|yes|x|x11|glx)
  7326. OPENGL_TYPE=X11
  7327. USE_OPENGL=1
  7328. OPENGL_X11=1
  7329. ;;
  7330. aqua|mac|osx|macosx|agl)
  7331. OPENGL_TYPE=Aqua
  7332. USE_OPENGL=1
  7333. OPENGL_AQUA=1
  7334. ;;
  7335. win|windows|mswin|wgl)
  7336. OPENGL_TYPE=Windows
  7337. USE_OPENGL=1
  7338. OPENGL_WINDOWS=1
  7339. ;;
  7340. *)
  7341. { echo "configure: error: *** Valid arguments for --with-opengl= are yes,no,x11,aqua,windows." 1>&2; exit 1; }
  7342. ;;
  7343. esac
  7344. if test -n "$USE_OPENGL" ; then
  7345. if test "$OPENGL_X11" = 1 ; then
  7346. # With OpenGL includes directory
  7347. echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
  7348. echo "configure:9163: checking for location of OpenGL includes" >&5
  7349. case "$with_opengl_includes" in
  7350. y | ye | yes | n | no)
  7351. { echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
  7352. ;;
  7353. esac
  7354. echo "$ac_t""$with_opengl_includes" 1>&6
  7355. if test -n "$with_opengl_includes" ; then
  7356. for dir in $with_opengl_includes; do
  7357. if test -d "$dir"; then
  7358. OPENGLINC="$OPENGLINC -I$dir"
  7359. else
  7360. { echo "configure: error: *** OpenGL includes directory $dir does not exist." 1>&2; exit 1; }
  7361. fi
  7362. done
  7363. fi
  7364. ac_save_cppflags="$CPPFLAGS"
  7365. CPPFLAGS="$OPENGLINC $X_CFLAGS $CPPFLAGS"
  7366. for ac_hdr in GL/gl.h GL/glu.h
  7367. do
  7368. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7369. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7370. echo "configure:9189: checking for $ac_hdr" >&5
  7371. cat > conftest.$ac_ext <<EOF
  7372. #line 9192 "configure"
  7373. #include "confdefs.h"
  7374. #include <$ac_hdr>
  7375. EOF
  7376. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7377. { (eval echo configure:9197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7378. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7379. if test -z "$ac_err"; then
  7380. rm -rf conftest*
  7381. eval "ac_cv_header_$ac_safe=yes"
  7382. else
  7383. echo "$ac_err" >&5
  7384. echo "configure: failed program was:" >&5
  7385. cat conftest.$ac_ext >&5
  7386. rm -rf conftest*
  7387. eval "ac_cv_header_$ac_safe=no"
  7388. fi
  7389. rm -f conftest*
  7390. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7391. echo "$ac_t""yes" 1>&6
  7392. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7393. cat >> confdefs.h <<EOF
  7394. #define $ac_tr_hdr 1
  7395. EOF
  7396. else
  7397. echo "$ac_t""no" 1>&6
  7398. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  7399. fi
  7400. done
  7401. CPPFLAGS=$ac_save_cppflags
  7402. # With OpenGL library directory
  7403. echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
  7404. echo "configure:9231: checking for location of OpenGL library" >&5
  7405. case "$with_opengl_libs" in
  7406. y | ye | yes | n | no)
  7407. { echo "configure: error: *** You must supply a directory to --with-opengl-libs." 1>&2; exit 1; }
  7408. ;;
  7409. esac
  7410. echo "$ac_t""$with_opengl_libs" 1>&6
  7411. if test -n "$with_opengl_libs"; then
  7412. for dir in $with_opengl_libs; do
  7413. if test -d "$dir"; then
  7414. OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
  7415. else
  7416. { echo "configure: error: *** OpenGL library directory $dir does not exist." 1>&2; exit 1; }
  7417. fi
  7418. done
  7419. fi
  7420. ac_save_ldflags="$LDFLAGS"
  7421. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7422. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7423. echo "configure:9260: checking for glBegin in -lGL" >&5
  7424. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7425. ac_save_LIBS="$LIBS"
  7426. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
  7427. cat > conftest.$ac_ext <<EOF
  7428. #line 9266 "configure"
  7429. #include "confdefs.h"
  7430. /* Override any gcc2 internal prototype to avoid an error. */
  7431. /* We use char because int might match the return type of a gcc2
  7432. builtin and then its argument prototype would still apply. */
  7433. char glBegin();
  7434. int main() {
  7435. glBegin()
  7436. ; return 0; }
  7437. EOF
  7438. if { (eval echo configure:9277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7439. rm -rf conftest*
  7440. eval "ac_cv_lib_$ac_lib_var=yes"
  7441. else
  7442. echo "configure: failed program was:" >&5
  7443. cat conftest.$ac_ext >&5
  7444. rm -rf conftest*
  7445. eval "ac_cv_lib_$ac_lib_var=no"
  7446. fi
  7447. rm -f conftest*
  7448. LIBS="$ac_save_LIBS"
  7449. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7450. echo "$ac_t""yes" 1>&6
  7451. OPENGLLIB="$OPENGLLIB -lGL "
  7452. else
  7453. echo "$ac_t""no" 1>&6
  7454. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7455. echo "configure:9296: checking for glBegin in -lGL" >&5
  7456. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7457. ac_save_LIBS="$LIBS"
  7458. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lXext $LIBS"
  7459. cat > conftest.$ac_ext <<EOF
  7460. #line 9302 "configure"
  7461. #include "confdefs.h"
  7462. /* Override any gcc2 internal prototype to avoid an error. */
  7463. /* We use char because int might match the return type of a gcc2
  7464. builtin and then its argument prototype would still apply. */
  7465. char glBegin();
  7466. int main() {
  7467. glBegin()
  7468. ; return 0; }
  7469. EOF
  7470. if { (eval echo configure:9313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7471. rm -rf conftest*
  7472. eval "ac_cv_lib_$ac_lib_var=yes"
  7473. else
  7474. echo "configure: failed program was:" >&5
  7475. cat conftest.$ac_ext >&5
  7476. rm -rf conftest*
  7477. eval "ac_cv_lib_$ac_lib_var=no"
  7478. fi
  7479. rm -f conftest*
  7480. LIBS="$ac_save_LIBS"
  7481. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7482. echo "$ac_t""yes" 1>&6
  7483. OPENGLLIB="$OPENGLLIB -lGL -lXext"
  7484. else
  7485. echo "$ac_t""no" 1>&6
  7486. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7487. echo "configure:9332: checking for glBegin in -lGL" >&5
  7488. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7489. ac_save_LIBS="$LIBS"
  7490. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread $LIBS"
  7491. cat > conftest.$ac_ext <<EOF
  7492. #line 9338 "configure"
  7493. #include "confdefs.h"
  7494. /* Override any gcc2 internal prototype to avoid an error. */
  7495. /* We use char because int might match the return type of a gcc2
  7496. builtin and then its argument prototype would still apply. */
  7497. char glBegin();
  7498. int main() {
  7499. glBegin()
  7500. ; return 0; }
  7501. EOF
  7502. if { (eval echo configure:9349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7503. rm -rf conftest*
  7504. eval "ac_cv_lib_$ac_lib_var=yes"
  7505. else
  7506. echo "configure: failed program was:" >&5
  7507. cat conftest.$ac_ext >&5
  7508. rm -rf conftest*
  7509. eval "ac_cv_lib_$ac_lib_var=no"
  7510. fi
  7511. rm -f conftest*
  7512. LIBS="$ac_save_LIBS"
  7513. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7514. echo "$ac_t""yes" 1>&6
  7515. OPENGLLIB="$OPENGLLIB -lGL -lpthread"
  7516. else
  7517. echo "$ac_t""no" 1>&6
  7518. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7519. echo "configure:9368: checking for glBegin in -lGL" >&5
  7520. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7521. ac_save_LIBS="$LIBS"
  7522. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread -lXext $LIBS"
  7523. cat > conftest.$ac_ext <<EOF
  7524. #line 9374 "configure"
  7525. #include "confdefs.h"
  7526. /* Override any gcc2 internal prototype to avoid an error. */
  7527. /* We use char because int might match the return type of a gcc2
  7528. builtin and then its argument prototype would still apply. */
  7529. char glBegin();
  7530. int main() {
  7531. glBegin()
  7532. ; return 0; }
  7533. EOF
  7534. if { (eval echo configure:9385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7535. rm -rf conftest*
  7536. eval "ac_cv_lib_$ac_lib_var=yes"
  7537. else
  7538. echo "configure: failed program was:" >&5
  7539. cat conftest.$ac_ext >&5
  7540. rm -rf conftest*
  7541. eval "ac_cv_lib_$ac_lib_var=no"
  7542. fi
  7543. rm -f conftest*
  7544. LIBS="$ac_save_LIBS"
  7545. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7546. echo "$ac_t""yes" 1>&6
  7547. OPENGLLIB="$OPENGLLIB -lGL -lpthread -lXext"
  7548. else
  7549. echo "$ac_t""no" 1>&6
  7550. LDFLAGS=${ac_save_ldflags}
  7551. { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
  7552. fi
  7553. fi
  7554. fi
  7555. fi
  7556. LDFLAGS=${ac_save_ldflags}
  7557. ac_save_ldflags="$LDFLAGS"
  7558. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7559. echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
  7560. echo "configure:9447: checking for gluBeginCurve in -lGLU" >&5
  7561. ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
  7562. ac_save_LIBS="$LIBS"
  7563. LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
  7564. cat > conftest.$ac_ext <<EOF
  7565. #line 9453 "configure"
  7566. #include "confdefs.h"
  7567. /* Override any gcc2 internal prototype to avoid an error. */
  7568. /* We use char because int might match the return type of a gcc2
  7569. builtin and then its argument prototype would still apply. */
  7570. char gluBeginCurve();
  7571. int main() {
  7572. gluBeginCurve()
  7573. ; return 0; }
  7574. EOF
  7575. if { (eval echo configure:9464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7576. rm -rf conftest*
  7577. eval "ac_cv_lib_$ac_lib_var=yes"
  7578. else
  7579. echo "configure: failed program was:" >&5
  7580. cat conftest.$ac_ext >&5
  7581. rm -rf conftest*
  7582. eval "ac_cv_lib_$ac_lib_var=no"
  7583. fi
  7584. rm -f conftest*
  7585. LIBS="$ac_save_LIBS"
  7586. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7587. echo "$ac_t""yes" 1>&6
  7588. OPENGLULIB="$OPENGLULIB -lGLU "
  7589. else
  7590. echo "$ac_t""no" 1>&6
  7591. echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
  7592. echo "configure:9483: checking for gluBeginCurve in -lGLU" >&5
  7593. ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
  7594. ac_save_LIBS="$LIBS"
  7595. LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lstdc++ $LIBS"
  7596. cat > conftest.$ac_ext <<EOF
  7597. #line 9489 "configure"
  7598. #include "confdefs.h"
  7599. /* Override any gcc2 internal prototype to avoid an error. */
  7600. /* We use char because int might match the return type of a gcc2
  7601. builtin and then its argument prototype would still apply. */
  7602. char gluBeginCurve();
  7603. int main() {
  7604. gluBeginCurve()
  7605. ; return 0; }
  7606. EOF
  7607. if { (eval echo configure:9500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7608. rm -rf conftest*
  7609. eval "ac_cv_lib_$ac_lib_var=yes"
  7610. else
  7611. echo "configure: failed program was:" >&5
  7612. cat conftest.$ac_ext >&5
  7613. rm -rf conftest*
  7614. eval "ac_cv_lib_$ac_lib_var=no"
  7615. fi
  7616. rm -f conftest*
  7617. LIBS="$ac_save_LIBS"
  7618. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7619. echo "$ac_t""yes" 1>&6
  7620. OPENGLULIB="$OPENGLULIB -lGLU -lstdc++"
  7621. else
  7622. echo "$ac_t""no" 1>&6
  7623. LDFLAGS=${ac_save_ldflags}
  7624. { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
  7625. fi
  7626. fi
  7627. LDFLAGS=${ac_save_ldflags}
  7628. OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
  7629. OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
  7630. ac_save_libs="$LIBS"
  7631. ac_save_ldflags="$LDFLAGS"
  7632. LIBS=" $OPENGLLIB $LIBS"
  7633. LDFLAGS=" $LDFLAGS"
  7634. echo $ac_n "checking for glXCreatePbuffer""... $ac_c" 1>&6
  7635. echo "configure:9547: checking for glXCreatePbuffer" >&5
  7636. cat > conftest.$ac_ext <<EOF
  7637. #line 9550 "configure"
  7638. #include "confdefs.h"
  7639. /* System header to define __stub macros and hopefully few prototypes,
  7640. which can conflict with char glXCreatePbuffer(); below. */
  7641. #include <assert.h>
  7642. /* Override any gcc2 internal prototype to avoid an error. */
  7643. /* We use char because int might match the return type of a gcc2
  7644. builtin and then its argument prototype would still apply. */
  7645. char glXCreatePbuffer();
  7646. int main() {
  7647. /* The GNU C library defines this for functions which it implements
  7648. to always fail with ENOSYS. Some functions are actually named
  7649. something starting with __ and the normal name is an alias. */
  7650. #if defined (__stub_glXCreatePbuffer) || defined (__stub___glXCreatePbuffer)
  7651. choke me
  7652. #else
  7653. glXCreatePbuffer();
  7654. #endif
  7655. ; return 0; }
  7656. EOF
  7657. if { (eval echo configure:9573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7658. rm -rf conftest*
  7659. eval "ac_cv_func_glXCreatePbuffer=yes"
  7660. else
  7661. echo "configure: failed program was:" >&5
  7662. cat conftest.$ac_ext >&5
  7663. rm -rf conftest*
  7664. eval "ac_cv_func_glXCreatePbuffer=no"
  7665. fi
  7666. rm -f conftest*
  7667. if eval "test \"`echo '$ac_cv_func_'glXCreatePbuffer`\" = yes"; then
  7668. echo "$ac_t""yes" 1>&6
  7669. cat >> confdefs.h <<\EOF
  7670. #define HAVE_PBUFFERS 1
  7671. EOF
  7672. else
  7673. echo "$ac_t""no" 1>&6
  7674. { echo "configure: error: *** Unable to locate ." 1>&2; exit 1; }
  7675. fi
  7676. LIBS=${ac_save_libs}
  7677. LDFLAGS=${ac_save_ldflags}
  7678. ac_save_libs="$LIBS"
  7679. ac_save_ldflags="$LDFLAGS"
  7680. LIBS=" $OPENGLLIB $LIBS"
  7681. LDFLAGS=" $LDFLAGS"
  7682. echo $ac_n "checking for glXCreateGLXPixmap""... $ac_c" 1>&6
  7683. echo "configure:9610: checking for glXCreateGLXPixmap" >&5
  7684. cat > conftest.$ac_ext <<EOF
  7685. #line 9613 "configure"
  7686. #include "confdefs.h"
  7687. /* System header to define __stub macros and hopefully few prototypes,
  7688. which can conflict with char glXCreateGLXPixmap(); below. */
  7689. #include <assert.h>
  7690. /* Override any gcc2 internal prototype to avoid an error. */
  7691. /* We use char because int might match the return type of a gcc2
  7692. builtin and then its argument prototype would still apply. */
  7693. char glXCreateGLXPixmap();
  7694. int main() {
  7695. /* The GNU C library defines this for functions which it implements
  7696. to always fail with ENOSYS. Some functions are actually named
  7697. something starting with __ and the normal name is an alias. */
  7698. #if defined (__stub_glXCreateGLXPixmap) || defined (__stub___glXCreateGLXPixmap)
  7699. choke me
  7700. #else
  7701. glXCreateGLXPixmap();
  7702. #endif
  7703. ; return 0; }
  7704. EOF
  7705. if { (eval echo configure:9636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7706. rm -rf conftest*
  7707. eval "ac_cv_func_glXCreateGLXPixmap=yes"
  7708. else
  7709. echo "configure: failed program was:" >&5
  7710. cat conftest.$ac_ext >&5
  7711. rm -rf conftest*
  7712. eval "ac_cv_func_glXCreateGLXPixmap=no"
  7713. fi
  7714. rm -f conftest*
  7715. if eval "test \"`echo '$ac_cv_func_'glXCreateGLXPixmap`\" = yes"; then
  7716. echo "$ac_t""yes" 1>&6
  7717. cat >> confdefs.h <<\EOF
  7718. #define HAVE_PIXMAPS 1
  7719. EOF
  7720. else
  7721. echo "$ac_t""no" 1>&6
  7722. { echo "configure: error: *** Unable to locate ." 1>&2; exit 1; }
  7723. fi
  7724. LIBS=${ac_save_libs}
  7725. LDFLAGS=${ac_save_ldflags}
  7726. cat >> confdefs.h <<\EOF
  7727. #define OPENGL_X11 1
  7728. EOF
  7729. fi # $OPENGL_X11
  7730. if test "$OPENGL_AQUA" = 1 ; then
  7731. echo $ac_n "checking for location of OpenGL framework""... $ac_c" 1>&6
  7732. echo "configure:9679: checking for location of OpenGL framework" >&5
  7733. case "$with_opengl_framework" in
  7734. y | ye | yes | n | no)
  7735. { echo "configure: error: *** You must supply a directory to --with-opengl-framework." 1>&2; exit 1; }
  7736. ;;
  7737. esac
  7738. echo "$ac_t""$with_opengl_framework" 1>&6
  7739. if test -n "$with_opengl_framework"; then
  7740. if test -d $with_opengl_framework; then
  7741. OPENGLPATH="$OPENGLPATH -F$with_opengl_framework"
  7742. else
  7743. { echo "configure: error: *** OpenGL framework directory $dir does not exist." 1>&2; exit 1; }
  7744. fi
  7745. fi
  7746. ac_save_cppflags="$CPPFLAGS"
  7747. CPPFLAGS="$OPENGLPATH $CPPFLAGS"
  7748. for ac_hdr in OpenGL/gl.h OpenGL/glu.h
  7749. do
  7750. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7751. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7752. echo "configure:9703: checking for $ac_hdr" >&5
  7753. cat > conftest.$ac_ext <<EOF
  7754. #line 9706 "configure"
  7755. #include "confdefs.h"
  7756. #include <$ac_hdr>
  7757. EOF
  7758. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7759. { (eval echo configure:9711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7760. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7761. if test -z "$ac_err"; then
  7762. rm -rf conftest*
  7763. eval "ac_cv_header_$ac_safe=yes"
  7764. else
  7765. echo "$ac_err" >&5
  7766. echo "configure: failed program was:" >&5
  7767. cat conftest.$ac_ext >&5
  7768. rm -rf conftest*
  7769. eval "ac_cv_header_$ac_safe=no"
  7770. fi
  7771. rm -f conftest*
  7772. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7773. echo "$ac_t""yes" 1>&6
  7774. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7775. cat >> confdefs.h <<EOF
  7776. #define $ac_tr_hdr 1
  7777. EOF
  7778. else
  7779. echo "$ac_t""no" 1>&6
  7780. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  7781. fi
  7782. done
  7783. CPPFLAGS=$ac_save_cppflags
  7784. ac_save_libs="$LIBS"
  7785. ac_save_ldflags="$LDFLAGS"
  7786. LIBS="-framework OpenGL -framework AGL -framework ApplicationServices $LIBS"
  7787. LDFLAGS="$OPENGLPATH $LDFLAGS"
  7788. echo $ac_n "checking for glBegin""... $ac_c" 1>&6
  7789. echo "configure:9747: checking for glBegin" >&5
  7790. cat > conftest.$ac_ext <<EOF
  7791. #line 9750 "configure"
  7792. #include "confdefs.h"
  7793. /* System header to define __stub macros and hopefully few prototypes,
  7794. which can conflict with char glBegin(); below. */
  7795. #include <assert.h>
  7796. /* Override any gcc2 internal prototype to avoid an error. */
  7797. /* We use char because int might match the return type of a gcc2
  7798. builtin and then its argument prototype would still apply. */
  7799. char glBegin();
  7800. int main() {
  7801. /* The GNU C library defines this for functions which it implements
  7802. to always fail with ENOSYS. Some functions are actually named
  7803. something starting with __ and the normal name is an alias. */
  7804. #if defined (__stub_glBegin) || defined (__stub___glBegin)
  7805. choke me
  7806. #else
  7807. glBegin();
  7808. #endif
  7809. ; return 0; }
  7810. EOF
  7811. if { (eval echo configure:9773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7812. rm -rf conftest*
  7813. eval "ac_cv_func_glBegin=yes"
  7814. else
  7815. echo "configure: failed program was:" >&5
  7816. cat conftest.$ac_ext >&5
  7817. rm -rf conftest*
  7818. eval "ac_cv_func_glBegin=no"
  7819. fi
  7820. rm -f conftest*
  7821. if eval "test \"`echo '$ac_cv_func_'glBegin`\" = yes"; then
  7822. echo "$ac_t""yes" 1>&6
  7823. OPENGLLIB="$OPENGLLIB -framework OpenGL -framework AGL -framework ApplicationServices"
  7824. else
  7825. echo "$ac_t""no" 1>&6
  7826. { echo "configure: error: *** Unable to locate glBegin." 1>&2; exit 1; }
  7827. fi
  7828. LIBS=${ac_save_libs}
  7829. LDFLAGS=${ac_save_ldflags}
  7830. ac_save_libs="$LIBS"
  7831. ac_save_ldflags="$LDFLAGS"
  7832. LIBS=" $OPENGLLIB $LIBS"
  7833. LDFLAGS="$OPENGLPATH $LDFLAGS"
  7834. echo $ac_n "checking for gluBeginCurve""... $ac_c" 1>&6
  7835. echo "configure:9810: checking for gluBeginCurve" >&5
  7836. cat > conftest.$ac_ext <<EOF
  7837. #line 9813 "configure"
  7838. #include "confdefs.h"
  7839. /* System header to define __stub macros and hopefully few prototypes,
  7840. which can conflict with char gluBeginCurve(); below. */
  7841. #include <assert.h>
  7842. /* Override any gcc2 internal prototype to avoid an error. */
  7843. /* We use char because int might match the return type of a gcc2
  7844. builtin and then its argument prototype would still apply. */
  7845. char gluBeginCurve();
  7846. int main() {
  7847. /* The GNU C library defines this for functions which it implements
  7848. to always fail with ENOSYS. Some functions are actually named
  7849. something starting with __ and the normal name is an alias. */
  7850. #if defined (__stub_gluBeginCurve) || defined (__stub___gluBeginCurve)
  7851. choke me
  7852. #else
  7853. gluBeginCurve();
  7854. #endif
  7855. ; return 0; }
  7856. EOF
  7857. if { (eval echo configure:9836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7858. rm -rf conftest*
  7859. eval "ac_cv_func_gluBeginCurve=yes"
  7860. else
  7861. echo "configure: failed program was:" >&5
  7862. cat conftest.$ac_ext >&5
  7863. rm -rf conftest*
  7864. eval "ac_cv_func_gluBeginCurve=no"
  7865. fi
  7866. rm -f conftest*
  7867. if eval "test \"`echo '$ac_cv_func_'gluBeginCurve`\" = yes"; then
  7868. echo "$ac_t""yes" 1>&6
  7869. OPENGLLIB="$OPENGLLIB "
  7870. else
  7871. echo "$ac_t""no" 1>&6
  7872. { echo "configure: error: *** Unable to locate gluBeginCurve." 1>&2; exit 1; }
  7873. fi
  7874. LIBS=${ac_save_libs}
  7875. LDFLAGS=${ac_save_ldflags}
  7876. OPENGLINC="$OPENGLPATH"
  7877. OPENGLLIBPATH="$OPENGLPATH"
  7878. cat >> confdefs.h <<\EOF
  7879. #define OPENGL_AQUA 1
  7880. EOF
  7881. fi # $OPENGL_AQUA
  7882. if test "$OPENGL_WINDOWS" = 1 ; then
  7883. # With OpenGL includes directory
  7884. echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
  7885. echo "configure:9884: checking for location of OpenGL includes" >&5
  7886. case "$with_opengl_includes" in
  7887. y | ye | yes | n | no)
  7888. { echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
  7889. ;;
  7890. esac
  7891. echo "$ac_t""$with_opengl_includes" 1>&6
  7892. if test -n "$with_opengl_includes" ; then
  7893. for dir in $with_opengl_includes; do
  7894. if test -d "$dir"; then
  7895. OPENGLINC="$OPENGLINC -I$dir"
  7896. else
  7897. { echo "configure: error: *** OpenGL includes directory $dir does not exist." 1>&2; exit 1; }
  7898. fi
  7899. done
  7900. fi
  7901. ac_save_cppflags="$CPPFLAGS"
  7902. CPPFLAGS="$OPENGLINC $CPPFLAGS"
  7903. for ac_hdr in GL/gl.h GL/glu.h
  7904. do
  7905. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7906. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7907. echo "configure:9910: checking for $ac_hdr" >&5
  7908. cat > conftest.$ac_ext <<EOF
  7909. #line 9913 "configure"
  7910. #include "confdefs.h"
  7911. #include <$ac_hdr>
  7912. EOF
  7913. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7914. { (eval echo configure:9918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7915. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7916. if test -z "$ac_err"; then
  7917. rm -rf conftest*
  7918. eval "ac_cv_header_$ac_safe=yes"
  7919. else
  7920. echo "$ac_err" >&5
  7921. echo "configure: failed program was:" >&5
  7922. cat conftest.$ac_ext >&5
  7923. rm -rf conftest*
  7924. eval "ac_cv_header_$ac_safe=no"
  7925. fi
  7926. rm -f conftest*
  7927. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7928. echo "$ac_t""yes" 1>&6
  7929. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7930. cat >> confdefs.h <<EOF
  7931. #define $ac_tr_hdr 1
  7932. EOF
  7933. else
  7934. echo "$ac_t""no" 1>&6
  7935. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  7936. fi
  7937. done
  7938. CPPFLAGS=$ac_save_cppflags
  7939. # With OpenGL library directory
  7940. echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
  7941. echo "configure:9952: checking for location of OpenGL library" >&5
  7942. case "$with_opengl_libs" in
  7943. y | ye | yes | n | no)
  7944. { echo "configure: error: *** You must supply a directory to --with-opengl-libs." 1>&2; exit 1; }
  7945. ;;
  7946. esac
  7947. echo "$ac_t""$with_opengl_libs" 1>&6
  7948. if test -n "$with_opengl_libs"; then
  7949. for dir in $with_opengl_libs; do
  7950. if test -d "$dir"; then
  7951. OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
  7952. else
  7953. { echo "configure: error: *** OpenGL library directory $dir does not exist." 1>&2; exit 1; }
  7954. fi
  7955. done
  7956. fi
  7957. ac_save_cflags="$CFLAGS"
  7958. CFLAGS="$CFLAGS $OPENGLINC"
  7959. ac_save_ldflags="$LDFLAGS"
  7960. ac_save_libs="$LIBS"
  7961. echo $ac_n "checking for OpenGL library""... $ac_c" 1>&6
  7962. echo "configure:9977: checking for OpenGL library" >&5
  7963. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7964. LIBS="-lopengl32 "
  7965. cat > conftest.$ac_ext <<EOF
  7966. #line 9981 "configure"
  7967. #include "confdefs.h"
  7968. #include <GL/gl.h>
  7969. int main() {
  7970. glEnd();
  7971. ; return 0; }
  7972. EOF
  7973. if { (eval echo configure:9988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7974. rm -rf conftest*
  7975. echo "$ac_t""found" 1>&6
  7976. OPENGLLIB="$OPENGLLIB -lopengl32 "
  7977. else
  7978. echo "configure: failed program was:" >&5
  7979. cat conftest.$ac_ext >&5
  7980. rm -rf conftest*
  7981. { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
  7982. fi
  7983. rm -f conftest*
  7984. LIBS=${ac_save_libs}
  7985. LDFLAGS=${ac_save_ldflags}
  7986. ac_save_ldflags="$LDFLAGS"
  7987. ac_save_libs="$LIBS"
  7988. echo $ac_n "checking for GLU library""... $ac_c" 1>&6
  7989. echo "configure:10012: checking for GLU library" >&5
  7990. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7991. LIBS="-lglu32 $OPENGLLIB "
  7992. cat > conftest.$ac_ext <<EOF
  7993. #line 10016 "configure"
  7994. #include "confdefs.h"
  7995. #include <GL/glu.h>
  7996. int main() {
  7997. gluNewQuadric();
  7998. ; return 0; }
  7999. EOF
  8000. if { (eval echo configure:10023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8001. rm -rf conftest*
  8002. echo "$ac_t""found" 1>&6
  8003. OPENGLULIB="$OPENGLULIB -lglu32 "
  8004. else
  8005. echo "configure: failed program was:" >&5
  8006. cat conftest.$ac_ext >&5
  8007. rm -rf conftest*
  8008. { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
  8009. fi
  8010. rm -f conftest*
  8011. LIBS=${ac_save_libs}
  8012. LDFLAGS=${ac_save_ldflags}
  8013. CFLAGS="${ac_save_cflags}"
  8014. OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
  8015. OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
  8016. cat >> confdefs.h <<\EOF
  8017. #define OPENGL_WINDOWS 1
  8018. EOF
  8019. fi # $OPENGL_WINDOWS
  8020. fi # $USE_OPENGL
  8021. # Done checking OpenGL
  8022. # Enable TCLTK option
  8023. echo $ac_n "checking whether to use Tcl/Tk""... $ac_c" 1>&6
  8024. echo "configure:10072: checking whether to use Tcl/Tk" >&5
  8025. echo "$ac_t"""$with_tcltk"" 1>&6
  8026. case "$with_tcltk" in
  8027. "no") USE_TCLTK= ;;
  8028. "yes") USE_TCLTK="1" ;;
  8029. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8030. esac
  8031. TCLINCDIR=
  8032. TCLTKLIBPATH=
  8033. TCLTKLIBS=
  8034. if test -n "$USE_TCLTK"; then
  8035. # With Tcl/Tk includes directory
  8036. echo $ac_n "checking for location of Tcl/Tk includes""... $ac_c" 1>&6
  8037. echo "configure:10092: checking for location of Tcl/Tk includes" >&5
  8038. case "$with_tcltk_includes" in
  8039. y | ye | yes | n | no)
  8040. { echo "configure: error: *** You must supply a directory to --with-tcltk-includes." 1>&2; exit 1; }
  8041. ;;
  8042. esac
  8043. echo "$ac_t""$with_tcltk_includes" 1>&6
  8044. if test -n "$with_tcltk_includes" ; then
  8045. for dir in $with_tcltk_includes; do
  8046. if test -d "$dir"; then
  8047. TCLINCDIR="$TCLINCDIR -I$dir"
  8048. else
  8049. { echo "configure: error: *** Tcl/Tk includes directory $dir does not exist." 1>&2; exit 1; }
  8050. fi
  8051. done
  8052. fi
  8053. ac_save_cppflags="$CPPFLAGS"
  8054. CPPFLAGS="$TCLINCDIR $CPPFLAGS"
  8055. for ac_hdr in tcl.h
  8056. do
  8057. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8058. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8059. echo "configure:10118: checking for $ac_hdr" >&5
  8060. cat > conftest.$ac_ext <<EOF
  8061. #line 10121 "configure"
  8062. #include "confdefs.h"
  8063. #include <$ac_hdr>
  8064. EOF
  8065. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8066. { (eval echo configure:10126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8067. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8068. if test -z "$ac_err"; then
  8069. rm -rf conftest*
  8070. eval "ac_cv_header_$ac_safe=yes"
  8071. else
  8072. echo "$ac_err" >&5
  8073. echo "configure: failed program was:" >&5
  8074. cat conftest.$ac_ext >&5
  8075. rm -rf conftest*
  8076. eval "ac_cv_header_$ac_safe=no"
  8077. fi
  8078. rm -f conftest*
  8079. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8080. echo "$ac_t""yes" 1>&6
  8081. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8082. cat >> confdefs.h <<EOF
  8083. #define $ac_tr_hdr 1
  8084. EOF
  8085. else
  8086. echo "$ac_t""no" 1>&6
  8087. { echo "configure: error: *** Unable to locate Tcl includes." 1>&2; exit 1; }
  8088. fi
  8089. done
  8090. CPPFLAGS=$ac_save_cppflags
  8091. ac_save_cppflags="$CPPFLAGS"
  8092. CPPFLAGS="$TCLINCDIR $X_CFLAGS $CPPFLAGS"
  8093. for ac_hdr in tk.h
  8094. do
  8095. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8096. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8097. echo "configure:10163: checking for $ac_hdr" >&5
  8098. cat > conftest.$ac_ext <<EOF
  8099. #line 10166 "configure"
  8100. #include "confdefs.h"
  8101. #include <$ac_hdr>
  8102. EOF
  8103. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8104. { (eval echo configure:10171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8105. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8106. if test -z "$ac_err"; then
  8107. rm -rf conftest*
  8108. eval "ac_cv_header_$ac_safe=yes"
  8109. else
  8110. echo "$ac_err" >&5
  8111. echo "configure: failed program was:" >&5
  8112. cat conftest.$ac_ext >&5
  8113. rm -rf conftest*
  8114. eval "ac_cv_header_$ac_safe=no"
  8115. fi
  8116. rm -f conftest*
  8117. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8118. echo "$ac_t""yes" 1>&6
  8119. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8120. cat >> confdefs.h <<EOF
  8121. #define $ac_tr_hdr 1
  8122. EOF
  8123. else
  8124. echo "$ac_t""no" 1>&6
  8125. { echo "configure: error: *** Unable to locate Tk includes." 1>&2; exit 1; }
  8126. fi
  8127. done
  8128. CPPFLAGS=$ac_save_cppflags
  8129. # Tcl/Tk version checks
  8130. echo $ac_n "checking Tcl version""... $ac_c" 1>&6
  8131. echo "configure:10205: checking Tcl version" >&5
  8132. ac_save_cppflags="$CPPFLAGS"
  8133. CPPFLAGS="$TCLINCDIR $CPPFLAGS"
  8134. if test "$cross_compiling" = yes; then
  8135. tcl_ver=UNKNOWN
  8136. echo "$ac_t""unknown (cross-compiling)" 1>&6
  8137. else
  8138. cat > conftest.$ac_ext <<EOF
  8139. #line 10213 "configure"
  8140. #include "confdefs.h"
  8141. #include <stdio.h>
  8142. #include <tcl.h>
  8143. int main(void) {
  8144. FILE *fp = fopen("conftestdata","w");
  8145. fputs(TCL_VERSION, fp);
  8146. return 0;
  8147. }
  8148. EOF
  8149. if { (eval echo configure:10225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  8150. then
  8151. tcl_ver=`cat conftestdata`
  8152. echo "$ac_t""$tcl_ver" 1>&6
  8153. else
  8154. echo "configure: failed program was:" >&5
  8155. cat conftest.$ac_ext >&5
  8156. rm -fr conftest*
  8157. { echo "configure: error: *** Could not determine Tcl version." 1>&2; exit 1; }
  8158. fi
  8159. rm -fr conftest*
  8160. fi
  8161. CPPFLAGS=$ac_save_cppflags
  8162. echo $ac_n "checking Tk version""... $ac_c" 1>&6
  8163. echo "configure:10243: checking Tk version" >&5
  8164. ac_save_cppflags="$CPPFLAGS"
  8165. CPPFLAGS="$TCLINCDIR $X_CFLAGS $CPPFLAGS"
  8166. if test "$cross_compiling" = yes; then
  8167. tk_ver=UNKNOWN
  8168. echo "$ac_t""unknown (cross-compiling)" 1>&6
  8169. else
  8170. cat > conftest.$ac_ext <<EOF
  8171. #line 10251 "configure"
  8172. #include "confdefs.h"
  8173. #include <stdio.h>
  8174. #include <tk.h>
  8175. int main(void) {
  8176. FILE *fp = fopen("conftestdata","w");
  8177. fputs(TK_VERSION, fp);
  8178. return 0;
  8179. }
  8180. EOF
  8181. if { (eval echo configure:10263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  8182. then
  8183. tk_ver=`cat conftestdata`
  8184. echo "$ac_t""$tk_ver" 1>&6
  8185. else
  8186. echo "configure: failed program was:" >&5
  8187. cat conftest.$ac_ext >&5
  8188. rm -fr conftest*
  8189. { echo "configure: error: *** Could not determine Tk version." 1>&2; exit 1; }
  8190. fi
  8191. rm -fr conftest*
  8192. fi
  8193. CPPFLAGS=$ac_save_cppflags
  8194. if test "$tcl_ver" = "$tk_ver" ; then
  8195. tcltk_ver="$tcl_ver"
  8196. else
  8197. { echo "configure: error: *** Tcl/Tk version mismatch." 1>&2; exit 1; }
  8198. fi
  8199. # FreeBSD and CygWin don't have a "dot" between major/minor version number
  8200. tcltk_ver2=`echo "$tcltk_ver" | sed 's/\.//g'`
  8201. # With Tcl/Tk library directory
  8202. echo $ac_n "checking for location of Tcl/Tk library""... $ac_c" 1>&6
  8203. echo "configure:10292: checking for location of Tcl/Tk library" >&5
  8204. case "$with_tcltk_libs" in
  8205. y | ye | yes | n | no)
  8206. { echo "configure: error: *** You must supply a directory to --with-tcltk-libs." 1>&2; exit 1; }
  8207. ;;
  8208. esac
  8209. echo "$ac_t""$with_tcltk_libs" 1>&6
  8210. if test -n "$with_tcltk_libs"; then
  8211. for dir in $with_tcltk_libs; do
  8212. if test -d "$dir"; then
  8213. TCLTKLIBPATH="$TCLTKLIBPATH -L$dir"
  8214. else
  8215. { echo "configure: error: *** Tcl/Tk library directory $dir does not exist." 1>&2; exit 1; }
  8216. fi
  8217. done
  8218. fi
  8219. TCLLIB=
  8220. TKLIB=
  8221. MACOSX_ARCHS_TCLTK=
  8222. # Can't test tcl/tk libs on 64bit OSX Aqua for now
  8223. # assume that if OpenGL Aqua, then user specifies TclTk Aqua
  8224. if test "$OPENGL_AQUA" = 1 ; then
  8225. save_CFLAGS="$CFLAGS"
  8226. CFLAGS="`echo \"$CFLAGS\" | sed -E 's/-arch +x86_64//g' | sed -E 's/-arch +ppc64//g'`"
  8227. save_LDFLAGS="$LDFLAGS"
  8228. LDFLAGS="`echo \"$LDFLAGS\" | sed -E 's/-arch +x86_64//g' | sed -E 's/-arch +ppc64//g'`"
  8229. fi
  8230. ac_save_ldflags="$LDFLAGS"
  8231. LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
  8232. echo $ac_n "checking for Tcl_Init in -ltcl""... $ac_c" 1>&6
  8233. echo "configure:10332: checking for Tcl_Init in -ltcl" >&5
  8234. ac_lib_var=`echo tcl'_'Tcl_Init | sed 'y%./+-%__p_%'`
  8235. ac_save_LIBS="$LIBS"
  8236. LIBS="-ltcl $MATHLIB $LIBS"
  8237. cat > conftest.$ac_ext <<EOF
  8238. #line 10338 "configure"
  8239. #include "confdefs.h"
  8240. /* Override any gcc2 internal prototype to avoid an error. */
  8241. /* We use char because int might match the return type of a gcc2
  8242. builtin and then its argument prototype would still apply. */
  8243. char Tcl_Init();
  8244. int main() {
  8245. Tcl_Init()
  8246. ; return 0; }
  8247. EOF
  8248. if { (eval echo configure:10349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8249. rm -rf conftest*
  8250. eval "ac_cv_lib_$ac_lib_var=yes"
  8251. else
  8252. echo "configure: failed program was:" >&5
  8253. cat conftest.$ac_ext >&5
  8254. rm -rf conftest*
  8255. eval "ac_cv_lib_$ac_lib_var=no"
  8256. fi
  8257. rm -f conftest*
  8258. LIBS="$ac_save_LIBS"
  8259. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8260. echo "$ac_t""yes" 1>&6
  8261. TCLLIB="$TCLLIB -ltcl $MATHLIB"
  8262. else
  8263. echo "$ac_t""no" 1>&6
  8264. echo $ac_n "checking for Tcl_Init in -ltcl""... $ac_c" 1>&6
  8265. echo "configure:10368: checking for Tcl_Init in -ltcl" >&5
  8266. ac_lib_var=`echo tcl'_'Tcl_Init | sed 'y%./+-%__p_%'`
  8267. ac_save_LIBS="$LIBS"
  8268. LIBS="-ltcl $MATHLIB $DLLIB $LIBS"
  8269. cat > conftest.$ac_ext <<EOF
  8270. #line 10374 "configure"
  8271. #include "confdefs.h"
  8272. /* Override any gcc2 internal prototype to avoid an error. */
  8273. /* We use char because int might match the return type of a gcc2
  8274. builtin and then its argument prototype would still apply. */
  8275. char Tcl_Init();
  8276. int main() {
  8277. Tcl_Init()
  8278. ; return 0; }
  8279. EOF
  8280. if { (eval echo configure:10385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8281. rm -rf conftest*
  8282. eval "ac_cv_lib_$ac_lib_var=yes"
  8283. else
  8284. echo "configure: failed program was:" >&5
  8285. cat conftest.$ac_ext >&5
  8286. rm -rf conftest*
  8287. eval "ac_cv_lib_$ac_lib_var=no"
  8288. fi
  8289. rm -f conftest*
  8290. LIBS="$ac_save_LIBS"
  8291. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8292. echo "$ac_t""yes" 1>&6
  8293. TCLLIB="$TCLLIB -ltcl $MATHLIB $DLLIB"
  8294. else
  8295. echo "$ac_t""no" 1>&6
  8296. LDFLAGS=${ac_save_ldflags}
  8297. ac_save_ldflags="$LDFLAGS"
  8298. LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
  8299. echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver""... $ac_c" 1>&6
  8300. echo "configure:10412: checking for Tcl_Init in -ltcl$tcltk_ver" >&5
  8301. ac_lib_var=`echo tcl$tcltk_ver'_'Tcl_Init | sed 'y%./+-%__p_%'`
  8302. ac_save_LIBS="$LIBS"
  8303. LIBS="-ltcl$tcltk_ver $MATHLIB $LIBS"
  8304. cat > conftest.$ac_ext <<EOF
  8305. #line 10418 "configure"
  8306. #include "confdefs.h"
  8307. /* Override any gcc2 internal prototype to avoid an error. */
  8308. /* We use char because int might match the return type of a gcc2
  8309. builtin and then its argument prototype would still apply. */
  8310. char Tcl_Init();
  8311. int main() {
  8312. Tcl_Init()
  8313. ; return 0; }
  8314. EOF
  8315. if { (eval echo configure:10429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8316. rm -rf conftest*
  8317. eval "ac_cv_lib_$ac_lib_var=yes"
  8318. else
  8319. echo "configure: failed program was:" >&5
  8320. cat conftest.$ac_ext >&5
  8321. rm -rf conftest*
  8322. eval "ac_cv_lib_$ac_lib_var=no"
  8323. fi
  8324. rm -f conftest*
  8325. LIBS="$ac_save_LIBS"
  8326. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8327. echo "$ac_t""yes" 1>&6
  8328. TCLLIB="$TCLLIB -ltcl$tcltk_ver $MATHLIB"
  8329. else
  8330. echo "$ac_t""no" 1>&6
  8331. echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver""... $ac_c" 1>&6
  8332. echo "configure:10448: checking for Tcl_Init in -ltcl$tcltk_ver" >&5
  8333. ac_lib_var=`echo tcl$tcltk_ver'_'Tcl_Init | sed 'y%./+-%__p_%'`
  8334. ac_save_LIBS="$LIBS"
  8335. LIBS="-ltcl$tcltk_ver $MATHLIB $DLLIB $LIBS"
  8336. cat > conftest.$ac_ext <<EOF
  8337. #line 10454 "configure"
  8338. #include "confdefs.h"
  8339. /* Override any gcc2 internal prototype to avoid an error. */
  8340. /* We use char because int might match the return type of a gcc2
  8341. builtin and then its argument prototype would still apply. */
  8342. char Tcl_Init();
  8343. int main() {
  8344. Tcl_Init()
  8345. ; return 0; }
  8346. EOF
  8347. if { (eval echo configure:10465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8348. rm -rf conftest*
  8349. eval "ac_cv_lib_$ac_lib_var=yes"
  8350. else
  8351. echo "configure: failed program was:" >&5
  8352. cat conftest.$ac_ext >&5
  8353. rm -rf conftest*
  8354. eval "ac_cv_lib_$ac_lib_var=no"
  8355. fi
  8356. rm -f conftest*
  8357. LIBS="$ac_save_LIBS"
  8358. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8359. echo "$ac_t""yes" 1>&6
  8360. TCLLIB="$TCLLIB -ltcl$tcltk_ver $MATHLIB $DLLIB"
  8361. else
  8362. echo "$ac_t""no" 1>&6
  8363. LDFLAGS=${ac_save_ldflags}
  8364. ac_save_ldflags="$LDFLAGS"
  8365. LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
  8366. echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver2""... $ac_c" 1>&6
  8367. echo "configure:10492: checking for Tcl_Init in -ltcl$tcltk_ver2" >&5
  8368. ac_lib_var=`echo tcl$tcltk_ver2'_'Tcl_Init | sed 'y%./+-%__p_%'`
  8369. ac_save_LIBS="$LIBS"
  8370. LIBS="-ltcl$tcltk_ver2 $MATHLIB $LIBS"
  8371. cat > conftest.$ac_ext <<EOF
  8372. #line 10498 "configure"
  8373. #include "confdefs.h"
  8374. /* Override any gcc2 internal prototype to avoid an error. */
  8375. /* We use char because int might match the return type of a gcc2
  8376. builtin and then its argument prototype would still apply. */
  8377. char Tcl_Init();
  8378. int main() {
  8379. Tcl_Init()
  8380. ; return 0; }
  8381. EOF
  8382. if { (eval echo configure:10509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8383. rm -rf conftest*
  8384. eval "ac_cv_lib_$ac_lib_var=yes"
  8385. else
  8386. echo "configure: failed program was:" >&5
  8387. cat conftest.$ac_ext >&5
  8388. rm -rf conftest*
  8389. eval "ac_cv_lib_$ac_lib_var=no"
  8390. fi
  8391. rm -f conftest*
  8392. LIBS="$ac_save_LIBS"
  8393. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8394. echo "$ac_t""yes" 1>&6
  8395. TCLLIB="$TCLLIB -ltcl$tcltk_ver2 $MATHLIB"
  8396. else
  8397. echo "$ac_t""no" 1>&6
  8398. echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver2""... $ac_c" 1>&6
  8399. echo "configure:10528: checking for Tcl_Init in -ltcl$tcltk_ver2" >&5
  8400. ac_lib_var=`echo tcl$tcltk_ver2'_'Tcl_Init | sed 'y%./+-%__p_%'`
  8401. ac_save_LIBS="$LIBS"
  8402. LIBS="-ltcl$tcltk_ver2 $MATHLIB $DLLIB $LIBS"
  8403. cat > conftest.$ac_ext <<EOF
  8404. #line 10534 "configure"
  8405. #include "confdefs.h"
  8406. /* Override any gcc2 internal prototype to avoid an error. */
  8407. /* We use char because int might match the return type of a gcc2
  8408. builtin and then its argument prototype would still apply. */
  8409. char Tcl_Init();
  8410. int main() {
  8411. Tcl_Init()
  8412. ; return 0; }
  8413. EOF
  8414. if { (eval echo configure:10545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8415. rm -rf conftest*
  8416. eval "ac_cv_lib_$ac_lib_var=yes"
  8417. else
  8418. echo "configure: failed program was:" >&5
  8419. cat conftest.$ac_ext >&5
  8420. rm -rf conftest*
  8421. eval "ac_cv_lib_$ac_lib_var=no"
  8422. fi
  8423. rm -f conftest*
  8424. LIBS="$ac_save_LIBS"
  8425. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8426. echo "$ac_t""yes" 1>&6
  8427. TCLLIB="$TCLLIB -ltcl$tcltk_ver2 $MATHLIB $DLLIB"
  8428. else
  8429. echo "$ac_t""no" 1>&6
  8430. LDFLAGS=${ac_save_ldflags}
  8431. { echo "configure: error: *** Unable to locate Tcl library." 1>&2; exit 1; }
  8432. fi
  8433. fi
  8434. LDFLAGS=${ac_save_ldflags}
  8435. fi
  8436. fi
  8437. LDFLAGS=${ac_save_ldflags}
  8438. fi
  8439. fi
  8440. LDFLAGS=${ac_save_ldflags}
  8441. ac_save_ldflags="$LDFLAGS"
  8442. LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
  8443. echo $ac_n "checking for Tk_MainWindow in -ltk""... $ac_c" 1>&6
  8444. echo "configure:10623: checking for Tk_MainWindow in -ltk" >&5
  8445. ac_lib_var=`echo tk'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
  8446. ac_save_LIBS="$LIBS"
  8447. LIBS="-ltk $TCLLIB $MATHLIB $LIBS"
  8448. cat > conftest.$ac_ext <<EOF
  8449. #line 10629 "configure"
  8450. #include "confdefs.h"
  8451. /* Override any gcc2 internal prototype to avoid an error. */
  8452. /* We use char because int might match the return type of a gcc2
  8453. builtin and then its argument prototype would still apply. */
  8454. char Tk_MainWindow();
  8455. int main() {
  8456. Tk_MainWindow()
  8457. ; return 0; }
  8458. EOF
  8459. if { (eval echo configure:10640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8460. rm -rf conftest*
  8461. eval "ac_cv_lib_$ac_lib_var=yes"
  8462. else
  8463. echo "configure: failed program was:" >&5
  8464. cat conftest.$ac_ext >&5
  8465. rm -rf conftest*
  8466. eval "ac_cv_lib_$ac_lib_var=no"
  8467. fi
  8468. rm -f conftest*
  8469. LIBS="$ac_save_LIBS"
  8470. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8471. echo "$ac_t""yes" 1>&6
  8472. TKLIB="$TKLIB -ltk $MATHLIB"
  8473. else
  8474. echo "$ac_t""no" 1>&6
  8475. echo $ac_n "checking for Tk_MainWindow in -ltk""... $ac_c" 1>&6
  8476. echo "configure:10659: checking for Tk_MainWindow in -ltk" >&5
  8477. ac_lib_var=`echo tk'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
  8478. ac_save_LIBS="$LIBS"
  8479. LIBS="-ltk $TCLLIB $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
  8480. cat > conftest.$ac_ext <<EOF
  8481. #line 10665 "configure"
  8482. #include "confdefs.h"
  8483. /* Override any gcc2 internal prototype to avoid an error. */
  8484. /* We use char because int might match the return type of a gcc2
  8485. builtin and then its argument prototype would still apply. */
  8486. char Tk_MainWindow();
  8487. int main() {
  8488. Tk_MainWindow()
  8489. ; return 0; }
  8490. EOF
  8491. if { (eval echo configure:10676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8492. rm -rf conftest*
  8493. eval "ac_cv_lib_$ac_lib_var=yes"
  8494. else
  8495. echo "configure: failed program was:" >&5
  8496. cat conftest.$ac_ext >&5
  8497. rm -rf conftest*
  8498. eval "ac_cv_lib_$ac_lib_var=no"
  8499. fi
  8500. rm -f conftest*
  8501. LIBS="$ac_save_LIBS"
  8502. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8503. echo "$ac_t""yes" 1>&6
  8504. TKLIB="$TKLIB -ltk $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
  8505. else
  8506. echo "$ac_t""no" 1>&6
  8507. LDFLAGS=${ac_save_ldflags}
  8508. ac_save_ldflags="$LDFLAGS"
  8509. LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
  8510. echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver""... $ac_c" 1>&6
  8511. echo "configure:10703: checking for Tk_MainWindow in -ltk$tcltk_ver" >&5
  8512. ac_lib_var=`echo tk$tcltk_ver'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
  8513. ac_save_LIBS="$LIBS"
  8514. LIBS="-ltk$tcltk_ver $TCLLIB $MATHLIB $LIBS"
  8515. cat > conftest.$ac_ext <<EOF
  8516. #line 10709 "configure"
  8517. #include "confdefs.h"
  8518. /* Override any gcc2 internal prototype to avoid an error. */
  8519. /* We use char because int might match the return type of a gcc2
  8520. builtin and then its argument prototype would still apply. */
  8521. char Tk_MainWindow();
  8522. int main() {
  8523. Tk_MainWindow()
  8524. ; return 0; }
  8525. EOF
  8526. if { (eval echo configure:10720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8527. rm -rf conftest*
  8528. eval "ac_cv_lib_$ac_lib_var=yes"
  8529. else
  8530. echo "configure: failed program was:" >&5
  8531. cat conftest.$ac_ext >&5
  8532. rm -rf conftest*
  8533. eval "ac_cv_lib_$ac_lib_var=no"
  8534. fi
  8535. rm -f conftest*
  8536. LIBS="$ac_save_LIBS"
  8537. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8538. echo "$ac_t""yes" 1>&6
  8539. TKLIB="$TKLIB -ltk$tcltk_ver $MATHLIB"
  8540. else
  8541. echo "$ac_t""no" 1>&6
  8542. echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver""... $ac_c" 1>&6
  8543. echo "configure:10739: checking for Tk_MainWindow in -ltk$tcltk_ver" >&5
  8544. ac_lib_var=`echo tk$tcltk_ver'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
  8545. ac_save_LIBS="$LIBS"
  8546. LIBS="-ltk$tcltk_ver $TCLLIB $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
  8547. cat > conftest.$ac_ext <<EOF
  8548. #line 10745 "configure"
  8549. #include "confdefs.h"
  8550. /* Override any gcc2 internal prototype to avoid an error. */
  8551. /* We use char because int might match the return type of a gcc2
  8552. builtin and then its argument prototype would still apply. */
  8553. char Tk_MainWindow();
  8554. int main() {
  8555. Tk_MainWindow()
  8556. ; return 0; }
  8557. EOF
  8558. if { (eval echo configure:10756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8559. rm -rf conftest*
  8560. eval "ac_cv_lib_$ac_lib_var=yes"
  8561. else
  8562. echo "configure: failed program was:" >&5
  8563. cat conftest.$ac_ext >&5
  8564. rm -rf conftest*
  8565. eval "ac_cv_lib_$ac_lib_var=no"
  8566. fi
  8567. rm -f conftest*
  8568. LIBS="$ac_save_LIBS"
  8569. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8570. echo "$ac_t""yes" 1>&6
  8571. TKLIB="$TKLIB -ltk$tcltk_ver $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
  8572. else
  8573. echo "$ac_t""no" 1>&6
  8574. LDFLAGS=${ac_save_ldflags}
  8575. ac_save_ldflags="$LDFLAGS"
  8576. LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
  8577. echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver2""... $ac_c" 1>&6
  8578. echo "configure:10783: checking for Tk_MainWindow in -ltk$tcltk_ver2" >&5
  8579. ac_lib_var=`echo tk$tcltk_ver2'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
  8580. ac_save_LIBS="$LIBS"
  8581. LIBS="-ltk$tcltk_ver2 $TCLLIB $MATHLIB $LIBS"
  8582. cat > conftest.$ac_ext <<EOF
  8583. #line 10789 "configure"
  8584. #include "confdefs.h"
  8585. /* Override any gcc2 internal prototype to avoid an error. */
  8586. /* We use char because int might match the return type of a gcc2
  8587. builtin and then its argument prototype would still apply. */
  8588. char Tk_MainWindow();
  8589. int main() {
  8590. Tk_MainWindow()
  8591. ; return 0; }
  8592. EOF
  8593. if { (eval echo configure:10800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8594. rm -rf conftest*
  8595. eval "ac_cv_lib_$ac_lib_var=yes"
  8596. else
  8597. echo "configure: failed program was:" >&5
  8598. cat conftest.$ac_ext >&5
  8599. rm -rf conftest*
  8600. eval "ac_cv_lib_$ac_lib_var=no"
  8601. fi
  8602. rm -f conftest*
  8603. LIBS="$ac_save_LIBS"
  8604. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8605. echo "$ac_t""yes" 1>&6
  8606. TKLIB="$TKLIB -ltk$tcltk_ver2 $MATHLIB"
  8607. else
  8608. echo "$ac_t""no" 1>&6
  8609. echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver2""... $ac_c" 1>&6
  8610. echo "configure:10819: checking for Tk_MainWindow in -ltk$tcltk_ver2" >&5
  8611. ac_lib_var=`echo tk$tcltk_ver2'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
  8612. ac_save_LIBS="$LIBS"
  8613. LIBS="-ltk$tcltk_ver2 $TCLLIB $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
  8614. cat > conftest.$ac_ext <<EOF
  8615. #line 10825 "configure"
  8616. #include "confdefs.h"
  8617. /* Override any gcc2 internal prototype to avoid an error. */
  8618. /* We use char because int might match the return type of a gcc2
  8619. builtin and then its argument prototype would still apply. */
  8620. char Tk_MainWindow();
  8621. int main() {
  8622. Tk_MainWindow()
  8623. ; return 0; }
  8624. EOF
  8625. if { (eval echo configure:10836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8626. rm -rf conftest*
  8627. eval "ac_cv_lib_$ac_lib_var=yes"
  8628. else
  8629. echo "configure: failed program was:" >&5
  8630. cat conftest.$ac_ext >&5
  8631. rm -rf conftest*
  8632. eval "ac_cv_lib_$ac_lib_var=no"
  8633. fi
  8634. rm -f conftest*
  8635. LIBS="$ac_save_LIBS"
  8636. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8637. echo "$ac_t""yes" 1>&6
  8638. TKLIB="$TKLIB -ltk$tcltk_ver2 $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
  8639. else
  8640. echo "$ac_t""no" 1>&6
  8641. LDFLAGS=${ac_save_ldflags}
  8642. { echo "configure: error: *** Unable to locate Tk library." 1>&2; exit 1; }
  8643. fi
  8644. fi
  8645. LDFLAGS=${ac_save_ldflags}
  8646. fi
  8647. fi
  8648. LDFLAGS=${ac_save_ldflags}
  8649. fi
  8650. fi
  8651. LDFLAGS=${ac_save_ldflags}
  8652. # restore CFLAGS/LDLFAGS from Aqua 64bit strip
  8653. # only Tcl/Tk-based makefiles will strip 64bit out during compile
  8654. if test "$OPENGL_AQUA" = 1 ; then
  8655. CFLAGS="$save_CFLAGS"
  8656. LDFLAGS="$save_LDFLAGS"
  8657. fi
  8658. TCLTKLIBS="$TKLIB $TCLLIB"
  8659. # check for available OSX archs in TclTk
  8660. if test -n "$MACOSX_ARCHS" ; then
  8661. save_LDFLAGS="$LDFLAGS"
  8662. LDFLAGS=
  8663. save_CFLAGS="$CFLAGS"
  8664. CFLAGS=
  8665. tlib=`echo "$TCLLIB" | sed -e 's/-l//' -e 's/^ *//' -e 's/ *$//'`
  8666. for a in i386 ppc x86_64 ppc64
  8667. do
  8668. # add only if in MACOSX_ARCHS
  8669. echo $ac_n "checking for Tcl_Init in -l$tlib""... $ac_c" 1>&6
  8670. echo "configure:10926: checking for Tcl_Init in -l$tlib" >&5
  8671. ac_lib_var=`echo $tlib'_'Tcl_Init | sed 'y%./+-%__p_%'`
  8672. ac_save_LIBS="$LIBS"
  8673. LIBS="-l$tlib -arch $a $MACOSX_SDK $TCLTKLIBPATH $LIBS"
  8674. cat > conftest.$ac_ext <<EOF
  8675. #line 10932 "configure"
  8676. #include "confdefs.h"
  8677. /* Override any gcc2 internal prototype to avoid an error. */
  8678. /* We use char because int might match the return type of a gcc2
  8679. builtin and then its argument prototype would still apply. */
  8680. char Tcl_Init();
  8681. int main() {
  8682. Tcl_Init()
  8683. ; return 0; }
  8684. EOF
  8685. if { (eval echo configure:10943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8686. rm -rf conftest*
  8687. eval "ac_cv_lib_$ac_lib_var=yes"
  8688. else
  8689. echo "configure: failed program was:" >&5
  8690. cat conftest.$ac_ext >&5
  8691. rm -rf conftest*
  8692. eval "ac_cv_lib_$ac_lib_var=no"
  8693. fi
  8694. rm -f conftest*
  8695. LIBS="$ac_save_LIBS"
  8696. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8697. echo "$ac_t""yes" 1>&6
  8698. if test -n "`echo "$MACOSX_ARCHS" | grep $a`" ; then
  8699. MACOSX_ARCHS_TCLTK="$MACOSX_ARCHS_TCLTK -arch $a"
  8700. fi
  8701. else
  8702. echo "$ac_t""no" 1>&6
  8703. fi
  8704. done
  8705. LDFLAGS="$save_LDFLAGS"
  8706. CFLAGS="$save_CFLAGS"
  8707. fi
  8708. cat >> confdefs.h <<\EOF
  8709. #define HAVE_TCLTK 1
  8710. EOF
  8711. fi # $USE_TCLTK
  8712. TKINCDIR=$TCLINCDIR
  8713. # Done checking Tcl/Tk
  8714. # Enable ODBC option
  8715. echo $ac_n "checking whether to use ODBC""... $ac_c" 1>&6
  8716. echo "configure:10993: checking whether to use ODBC" >&5
  8717. echo "$ac_t"""$with_odbc"" 1>&6
  8718. case "$with_odbc" in
  8719. "no") USE_ODBC= ;;
  8720. "yes") USE_ODBC="1" ;;
  8721. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8722. esac
  8723. ODBCINC=
  8724. ODBCLIB=
  8725. if test -n "$USE_ODBC"; then
  8726. # With ODBC includes directory
  8727. echo $ac_n "checking for location of ODBC includes""... $ac_c" 1>&6
  8728. echo "configure:11012: checking for location of ODBC includes" >&5
  8729. case "$with_odbc_includes" in
  8730. y | ye | yes | n | no)
  8731. { echo "configure: error: *** You must supply a directory to --with-odbc-includes." 1>&2; exit 1; }
  8732. ;;
  8733. esac
  8734. echo "$ac_t""$with_odbc_includes" 1>&6
  8735. if test -n "$with_odbc_includes" ; then
  8736. for dir in $with_odbc_includes; do
  8737. if test -d "$dir"; then
  8738. ODBCINC="$ODBCINC -I$dir"
  8739. else
  8740. { echo "configure: error: *** ODBC includes directory $dir does not exist." 1>&2; exit 1; }
  8741. fi
  8742. done
  8743. fi
  8744. ac_save_cppflags="$CPPFLAGS"
  8745. CPPFLAGS="$ODBCINC $CPPFLAGS"
  8746. for ac_hdr in sql.h
  8747. do
  8748. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8749. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8750. echo "configure:11038: checking for $ac_hdr" >&5
  8751. cat > conftest.$ac_ext <<EOF
  8752. #line 11041 "configure"
  8753. #include "confdefs.h"
  8754. #include <$ac_hdr>
  8755. EOF
  8756. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8757. { (eval echo configure:11046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8758. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8759. if test -z "$ac_err"; then
  8760. rm -rf conftest*
  8761. eval "ac_cv_header_$ac_safe=yes"
  8762. else
  8763. echo "$ac_err" >&5
  8764. echo "configure: failed program was:" >&5
  8765. cat conftest.$ac_ext >&5
  8766. rm -rf conftest*
  8767. eval "ac_cv_header_$ac_safe=no"
  8768. fi
  8769. rm -f conftest*
  8770. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8771. echo "$ac_t""yes" 1>&6
  8772. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8773. cat >> confdefs.h <<EOF
  8774. #define $ac_tr_hdr 1
  8775. EOF
  8776. else
  8777. echo "$ac_t""no" 1>&6
  8778. { echo "configure: error: *** Unable to locate ODBC includes." 1>&2; exit 1; }
  8779. fi
  8780. done
  8781. CPPFLAGS=$ac_save_cppflags
  8782. # With ODBC library directory
  8783. echo $ac_n "checking for location of ODBC library""... $ac_c" 1>&6
  8784. echo "configure:11080: checking for location of ODBC library" >&5
  8785. case "$with_odbc_libs" in
  8786. y | ye | yes | n | no)
  8787. { echo "configure: error: *** You must supply a directory to --with-odbc-libs." 1>&2; exit 1; }
  8788. ;;
  8789. esac
  8790. echo "$ac_t""$with_odbc_libs" 1>&6
  8791. if test -n "$with_odbc_libs"; then
  8792. for dir in $with_odbc_libs; do
  8793. if test -d "$dir"; then
  8794. ODBCLIB="$ODBCLIB -L$dir"
  8795. else
  8796. { echo "configure: error: *** ODBC library directory $dir does not exist." 1>&2; exit 1; }
  8797. fi
  8798. done
  8799. fi
  8800. ac_save_ldflags="$LDFLAGS"
  8801. LDFLAGS="$ODBCLIB $LDFLAGS"
  8802. echo $ac_n "checking for SQLConnect in -lodbc""... $ac_c" 1>&6
  8803. echo "configure:11105: checking for SQLConnect in -lodbc" >&5
  8804. ac_lib_var=`echo odbc'_'SQLConnect | sed 'y%./+-%__p_%'`
  8805. ac_save_LIBS="$LIBS"
  8806. LIBS="-lodbc $ICONVLIB $LIBS"
  8807. cat > conftest.$ac_ext <<EOF
  8808. #line 11111 "configure"
  8809. #include "confdefs.h"
  8810. /* Override any gcc2 internal prototype to avoid an error. */
  8811. /* We use char because int might match the return type of a gcc2
  8812. builtin and then its argument prototype would still apply. */
  8813. char SQLConnect();
  8814. int main() {
  8815. SQLConnect()
  8816. ; return 0; }
  8817. EOF
  8818. if { (eval echo configure:11122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8819. rm -rf conftest*
  8820. eval "ac_cv_lib_$ac_lib_var=yes"
  8821. else
  8822. echo "configure: failed program was:" >&5
  8823. cat conftest.$ac_ext >&5
  8824. rm -rf conftest*
  8825. eval "ac_cv_lib_$ac_lib_var=no"
  8826. fi
  8827. rm -f conftest*
  8828. LIBS="$ac_save_LIBS"
  8829. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8830. echo "$ac_t""yes" 1>&6
  8831. ODBCLIB="$ODBCLIB -lodbc "
  8832. else
  8833. echo "$ac_t""no" 1>&6
  8834. LDFLAGS=${ac_save_ldflags}
  8835. ac_save_ldflags="$LDFLAGS"
  8836. LDFLAGS="$ODBCLIB $LDFLAGS"
  8837. echo $ac_n "checking for SQLConnect in -liodbc""... $ac_c" 1>&6
  8838. echo "configure:11147: checking for SQLConnect in -liodbc" >&5
  8839. ac_lib_var=`echo iodbc'_'SQLConnect | sed 'y%./+-%__p_%'`
  8840. ac_save_LIBS="$LIBS"
  8841. LIBS="-liodbc $LIBS"
  8842. cat > conftest.$ac_ext <<EOF
  8843. #line 11153 "configure"
  8844. #include "confdefs.h"
  8845. /* Override any gcc2 internal prototype to avoid an error. */
  8846. /* We use char because int might match the return type of a gcc2
  8847. builtin and then its argument prototype would still apply. */
  8848. char SQLConnect();
  8849. int main() {
  8850. SQLConnect()
  8851. ; return 0; }
  8852. EOF
  8853. if { (eval echo configure:11164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8854. rm -rf conftest*
  8855. eval "ac_cv_lib_$ac_lib_var=yes"
  8856. else
  8857. echo "configure: failed program was:" >&5
  8858. cat conftest.$ac_ext >&5
  8859. rm -rf conftest*
  8860. eval "ac_cv_lib_$ac_lib_var=no"
  8861. fi
  8862. rm -f conftest*
  8863. LIBS="$ac_save_LIBS"
  8864. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8865. echo "$ac_t""yes" 1>&6
  8866. ODBCLIB="$ODBCLIB -liodbc "
  8867. else
  8868. echo "$ac_t""no" 1>&6
  8869. LDFLAGS=${ac_save_ldflags}
  8870. ac_save_cflags="$CFLAGS"
  8871. CFLAGS="$CFLAGS $ODBCINC"
  8872. ac_save_ldflags="$LDFLAGS"
  8873. ac_save_libs="$LIBS"
  8874. echo $ac_n "checking for ODBC library""... $ac_c" 1>&6
  8875. echo "configure:11189: checking for ODBC library" >&5
  8876. LDFLAGS="$ODBCLIB $LDFLAGS"
  8877. LIBS="-lodbc32 "
  8878. cat > conftest.$ac_ext <<EOF
  8879. #line 11193 "configure"
  8880. #include "confdefs.h"
  8881. #include <windows.h>
  8882. #include <sql.h>
  8883. int main() {
  8884. SQLAllocEnv((SQLHENV *)0);
  8885. ; return 0; }
  8886. EOF
  8887. if { (eval echo configure:11201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8888. rm -rf conftest*
  8889. echo "$ac_t""found" 1>&6
  8890. ODBCLIB="$ODBCLIB -lodbc32 "
  8891. else
  8892. echo "configure: failed program was:" >&5
  8893. cat conftest.$ac_ext >&5
  8894. rm -rf conftest*
  8895. { echo "configure: error: *** Unable to locate ODBC library." 1>&2; exit 1; }
  8896. fi
  8897. rm -f conftest*
  8898. LIBS=${ac_save_libs}
  8899. LDFLAGS=${ac_save_ldflags}
  8900. CFLAGS="${ac_save_cflags}"
  8901. fi
  8902. LDFLAGS=${ac_save_ldflags}
  8903. fi
  8904. LDFLAGS=${ac_save_ldflags}
  8905. fi # $USE_ODBC
  8906. # Done checking ODBC
  8907. # Enable FFTW option
  8908. echo $ac_n "checking whether to use FFTW""... $ac_c" 1>&6
  8909. echo "configure:11250: checking whether to use FFTW" >&5
  8910. echo "$ac_t"""$with_fftw"" 1>&6
  8911. case "$with_fftw" in
  8912. "no") USE_FFTW= ;;
  8913. "yes") USE_FFTW="1" ;;
  8914. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8915. esac
  8916. FFTWINC=
  8917. FFTWLIB=
  8918. if test -n "$USE_FFTW"; then
  8919. # With FFTW includes directory
  8920. echo $ac_n "checking for location of FFTW includes""... $ac_c" 1>&6
  8921. echo "configure:11269: checking for location of FFTW includes" >&5
  8922. case "$with_fftw_includes" in
  8923. y | ye | yes | n | no)
  8924. { echo "configure: error: *** You must supply a directory to --with-fftw-includes." 1>&2; exit 1; }
  8925. ;;
  8926. esac
  8927. echo "$ac_t""$with_fftw_includes" 1>&6
  8928. if test -n "$with_fftw_includes" ; then
  8929. for dir in $with_fftw_includes; do
  8930. if test -d "$dir"; then
  8931. FFTWINC="$FFTWINC -I$dir"
  8932. else
  8933. { echo "configure: error: *** FFTW includes directory $dir does not exist." 1>&2; exit 1; }
  8934. fi
  8935. done
  8936. fi
  8937. ac_save_cppflags="$CPPFLAGS"
  8938. CPPFLAGS="$FFTWINC $CPPFLAGS"
  8939. for ac_hdr in fftw3.h
  8940. do
  8941. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8942. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8943. echo "configure:11295: checking for $ac_hdr" >&5
  8944. cat > conftest.$ac_ext <<EOF
  8945. #line 11298 "configure"
  8946. #include "confdefs.h"
  8947. #include <$ac_hdr>
  8948. EOF
  8949. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8950. { (eval echo configure:11303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8951. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8952. if test -z "$ac_err"; then
  8953. rm -rf conftest*
  8954. eval "ac_cv_header_$ac_safe=yes"
  8955. else
  8956. echo "$ac_err" >&5
  8957. echo "configure: failed program was:" >&5
  8958. cat conftest.$ac_ext >&5
  8959. rm -rf conftest*
  8960. eval "ac_cv_header_$ac_safe=no"
  8961. fi
  8962. rm -f conftest*
  8963. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8964. echo "$ac_t""yes" 1>&6
  8965. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8966. cat >> confdefs.h <<EOF
  8967. #define $ac_tr_hdr 1
  8968. EOF
  8969. else
  8970. echo "$ac_t""no" 1>&6
  8971. ac_save_cppflags="$CPPFLAGS"
  8972. CPPFLAGS=" $CPPFLAGS"
  8973. for ac_hdr in fftw.h
  8974. do
  8975. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8976. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8977. echo "configure:11331: checking for $ac_hdr" >&5
  8978. cat > conftest.$ac_ext <<EOF
  8979. #line 11334 "configure"
  8980. #include "confdefs.h"
  8981. #include <$ac_hdr>
  8982. EOF
  8983. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8984. { (eval echo configure:11339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8985. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8986. if test -z "$ac_err"; then
  8987. rm -rf conftest*
  8988. eval "ac_cv_header_$ac_safe=yes"
  8989. else
  8990. echo "$ac_err" >&5
  8991. echo "configure: failed program was:" >&5
  8992. cat conftest.$ac_ext >&5
  8993. rm -rf conftest*
  8994. eval "ac_cv_header_$ac_safe=no"
  8995. fi
  8996. rm -f conftest*
  8997. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8998. echo "$ac_t""yes" 1>&6
  8999. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9000. cat >> confdefs.h <<EOF
  9001. #define $ac_tr_hdr 1
  9002. EOF
  9003. else
  9004. echo "$ac_t""no" 1>&6
  9005. ac_save_cppflags="$CPPFLAGS"
  9006. CPPFLAGS=" $CPPFLAGS"
  9007. for ac_hdr in dfftw.h
  9008. do
  9009. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9010. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9011. echo "configure:11367: checking for $ac_hdr" >&5
  9012. cat > conftest.$ac_ext <<EOF
  9013. #line 11370 "configure"
  9014. #include "confdefs.h"
  9015. #include <$ac_hdr>
  9016. EOF
  9017. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9018. { (eval echo configure:11375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9019. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9020. if test -z "$ac_err"; then
  9021. rm -rf conftest*
  9022. eval "ac_cv_header_$ac_safe=yes"
  9023. else
  9024. echo "$ac_err" >&5
  9025. echo "configure: failed program was:" >&5
  9026. cat conftest.$ac_ext >&5
  9027. rm -rf conftest*
  9028. eval "ac_cv_header_$ac_safe=no"
  9029. fi
  9030. rm -f conftest*
  9031. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9032. echo "$ac_t""yes" 1>&6
  9033. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9034. cat >> confdefs.h <<EOF
  9035. #define $ac_tr_hdr 1
  9036. EOF
  9037. else
  9038. echo "$ac_t""no" 1>&6
  9039. { echo "configure: error: *** Unable to locate FFTW includes." 1>&2; exit 1; }
  9040. fi
  9041. done
  9042. CPPFLAGS=$ac_save_cppflags
  9043. fi
  9044. done
  9045. CPPFLAGS=$ac_save_cppflags
  9046. fi
  9047. done
  9048. CPPFLAGS=$ac_save_cppflags
  9049. # With FFTW library directory
  9050. echo $ac_n "checking for location of FFTW library""... $ac_c" 1>&6
  9051. echo "configure:11421: checking for location of FFTW library" >&5
  9052. case "$with_fftw_libs" in
  9053. y | ye | yes | n | no)
  9054. { echo "configure: error: *** You must supply a directory to --with-fftw-libs." 1>&2; exit 1; }
  9055. ;;
  9056. esac
  9057. echo "$ac_t""$with_fftw_libs" 1>&6
  9058. if test -n "$with_fftw_libs"; then
  9059. for dir in $with_fftw_libs; do
  9060. if test -d "$dir"; then
  9061. FFTWLIB="$FFTWLIB -L$dir"
  9062. else
  9063. { echo "configure: error: *** FFTW library directory $dir does not exist." 1>&2; exit 1; }
  9064. fi
  9065. done
  9066. fi
  9067. ac_save_ldflags="$LDFLAGS"
  9068. LDFLAGS="$FFTWLIB $LDFLAGS"
  9069. echo $ac_n "checking for fftw_execute in -lfftw3""... $ac_c" 1>&6
  9070. echo "configure:11446: checking for fftw_execute in -lfftw3" >&5
  9071. ac_lib_var=`echo fftw3'_'fftw_execute | sed 'y%./+-%__p_%'`
  9072. ac_save_LIBS="$LIBS"
  9073. LIBS="-lfftw3 $MATHLIB $LIBS"
  9074. cat > conftest.$ac_ext <<EOF
  9075. #line 11452 "configure"
  9076. #include "confdefs.h"
  9077. /* Override any gcc2 internal prototype to avoid an error. */
  9078. /* We use char because int might match the return type of a gcc2
  9079. builtin and then its argument prototype would still apply. */
  9080. char fftw_execute();
  9081. int main() {
  9082. fftw_execute()
  9083. ; return 0; }
  9084. EOF
  9085. if { (eval echo configure:11463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9086. rm -rf conftest*
  9087. eval "ac_cv_lib_$ac_lib_var=yes"
  9088. else
  9089. echo "configure: failed program was:" >&5
  9090. cat conftest.$ac_ext >&5
  9091. rm -rf conftest*
  9092. eval "ac_cv_lib_$ac_lib_var=no"
  9093. fi
  9094. rm -f conftest*
  9095. LIBS="$ac_save_LIBS"
  9096. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9097. echo "$ac_t""yes" 1>&6
  9098. FFTWLIB="$FFTWLIB -lfftw3 $MATHLIB"
  9099. else
  9100. echo "$ac_t""no" 1>&6
  9101. LDFLAGS=${ac_save_ldflags}
  9102. ac_save_ldflags="$LDFLAGS"
  9103. LDFLAGS="$FFTWLIB $LDFLAGS"
  9104. echo $ac_n "checking for fftwnd_one in -lfftw""... $ac_c" 1>&6
  9105. echo "configure:11488: checking for fftwnd_one in -lfftw" >&5
  9106. ac_lib_var=`echo fftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
  9107. ac_save_LIBS="$LIBS"
  9108. LIBS="-lfftw $MATHLIB $LIBS"
  9109. cat > conftest.$ac_ext <<EOF
  9110. #line 11494 "configure"
  9111. #include "confdefs.h"
  9112. /* Override any gcc2 internal prototype to avoid an error. */
  9113. /* We use char because int might match the return type of a gcc2
  9114. builtin and then its argument prototype would still apply. */
  9115. char fftwnd_one();
  9116. int main() {
  9117. fftwnd_one()
  9118. ; return 0; }
  9119. EOF
  9120. if { (eval echo configure:11505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9121. rm -rf conftest*
  9122. eval "ac_cv_lib_$ac_lib_var=yes"
  9123. else
  9124. echo "configure: failed program was:" >&5
  9125. cat conftest.$ac_ext >&5
  9126. rm -rf conftest*
  9127. eval "ac_cv_lib_$ac_lib_var=no"
  9128. fi
  9129. rm -f conftest*
  9130. LIBS="$ac_save_LIBS"
  9131. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9132. echo "$ac_t""yes" 1>&6
  9133. FFTWLIB="$FFTWLIB -lfftw $MATHLIB"
  9134. else
  9135. echo "$ac_t""no" 1>&6
  9136. LDFLAGS=${ac_save_ldflags}
  9137. ac_save_ldflags="$LDFLAGS"
  9138. LDFLAGS="$FFTWLIB $LDFLAGS"
  9139. echo $ac_n "checking for fftwnd_one in -ldfftw""... $ac_c" 1>&6
  9140. echo "configure:11530: checking for fftwnd_one in -ldfftw" >&5
  9141. ac_lib_var=`echo dfftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
  9142. ac_save_LIBS="$LIBS"
  9143. LIBS="-ldfftw $MATHLIB $LIBS"
  9144. cat > conftest.$ac_ext <<EOF
  9145. #line 11536 "configure"
  9146. #include "confdefs.h"
  9147. /* Override any gcc2 internal prototype to avoid an error. */
  9148. /* We use char because int might match the return type of a gcc2
  9149. builtin and then its argument prototype would still apply. */
  9150. char fftwnd_one();
  9151. int main() {
  9152. fftwnd_one()
  9153. ; return 0; }
  9154. EOF
  9155. if { (eval echo configure:11547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9156. rm -rf conftest*
  9157. eval "ac_cv_lib_$ac_lib_var=yes"
  9158. else
  9159. echo "configure: failed program was:" >&5
  9160. cat conftest.$ac_ext >&5
  9161. rm -rf conftest*
  9162. eval "ac_cv_lib_$ac_lib_var=no"
  9163. fi
  9164. rm -f conftest*
  9165. LIBS="$ac_save_LIBS"
  9166. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9167. echo "$ac_t""yes" 1>&6
  9168. FFTWLIB="$FFTWLIB -ldfftw $MATHLIB"
  9169. else
  9170. echo "$ac_t""no" 1>&6
  9171. LDFLAGS=${ac_save_ldflags}
  9172. { echo "configure: error: *** Unable to locate FFTW library." 1>&2; exit 1; }
  9173. fi
  9174. LDFLAGS=${ac_save_ldflags}
  9175. fi
  9176. LDFLAGS=${ac_save_ldflags}
  9177. fi
  9178. LDFLAGS=${ac_save_ldflags}
  9179. fi # $USE_FFTW
  9180. # Done checking FFTW
  9181. # Enable BLAS option
  9182. echo $ac_n "checking whether to use BLAS""... $ac_c" 1>&6
  9183. echo "configure:11604: checking whether to use BLAS" >&5
  9184. echo "$ac_t"""$with_blas"" 1>&6
  9185. case "$with_blas" in
  9186. "no") USE_BLAS= ;;
  9187. "yes") USE_BLAS="1" ;;
  9188. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9189. esac
  9190. BLASLIB=
  9191. BLASINC=
  9192. if test -n "$USE_BLAS"; then
  9193. # With BLAS includes directory
  9194. # BLAS doesn't have includes (FORTRAN library)
  9195. # With BLAS library directory
  9196. echo $ac_n "checking for location of BLAS includes""... $ac_c" 1>&6
  9197. echo "configure:11625: checking for location of BLAS includes" >&5
  9198. case "$with_blas_includes" in
  9199. y | ye | yes | n | no)
  9200. { echo "configure: error: *** You must supply a directory to --with-blas-includes." 1>&2; exit 1; }
  9201. ;;
  9202. esac
  9203. echo "$ac_t""$with_blas_includes" 1>&6
  9204. if test -n "$with_blas_includes" ; then
  9205. for dir in $with_blas_includes; do
  9206. if test -d "$dir"; then
  9207. BLASINC="$BLASINC -I$dir"
  9208. else
  9209. { echo "configure: error: *** BLAS includes directory $dir does not exist." 1>&2; exit 1; }
  9210. fi
  9211. done
  9212. fi
  9213. echo $ac_n "checking for location of BLAS library""... $ac_c" 1>&6
  9214. echo "configure:11645: checking for location of BLAS library" >&5
  9215. case "$with_blas_libs" in
  9216. y | ye | yes | n | no)
  9217. { echo "configure: error: *** You must supply a directory to --with-blas-libs." 1>&2; exit 1; }
  9218. ;;
  9219. esac
  9220. echo "$ac_t""$with_blas_libs" 1>&6
  9221. if test -n "$with_blas_libs"; then
  9222. for dir in $with_blas_libs; do
  9223. if test -d "$dir"; then
  9224. BLASLIB="$BLASLIB -L$dir"
  9225. else
  9226. { echo "configure: error: *** BLAS library directory $dir does not exist." 1>&2; exit 1; }
  9227. fi
  9228. done
  9229. fi
  9230. # See if cblas.h exists (CBLAS,ATLAS,others)
  9231. save_CPPFLAGS="$CPPFLAGS"
  9232. CPPFLAGS="$BLASINC $CPPFLAGS"
  9233. for ac_hdr in cblas.h
  9234. do
  9235. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9236. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9237. echo "configure:11671: checking for $ac_hdr" >&5
  9238. cat > conftest.$ac_ext <<EOF
  9239. #line 11674 "configure"
  9240. #include "confdefs.h"
  9241. #include <$ac_hdr>
  9242. EOF
  9243. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9244. { (eval echo configure:11679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9245. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9246. if test -z "$ac_err"; then
  9247. rm -rf conftest*
  9248. eval "ac_cv_header_$ac_safe=yes"
  9249. else
  9250. echo "$ac_err" >&5
  9251. echo "configure: failed program was:" >&5
  9252. cat conftest.$ac_ext >&5
  9253. rm -rf conftest*
  9254. eval "ac_cv_header_$ac_safe=no"
  9255. fi
  9256. rm -f conftest*
  9257. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9258. echo "$ac_t""yes" 1>&6
  9259. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9260. cat >> confdefs.h <<EOF
  9261. #define $ac_tr_hdr 1
  9262. EOF
  9263. else
  9264. echo "$ac_t""no" 1>&6
  9265. fi
  9266. done
  9267. CPPFLAGS="$save_CPPFLAGS"
  9268. ac_save_ldflags="$LDFLAGS"
  9269. LDFLAGS="$BLASLIB $LDFLAGS"
  9270. echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
  9271. echo "configure:11714: checking for dnrm2_ in -lblas" >&5
  9272. ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
  9273. ac_save_LIBS="$LIBS"
  9274. LIBS="-lblas $MATHLIB $LIBS"
  9275. cat > conftest.$ac_ext <<EOF
  9276. #line 11720 "configure"
  9277. #include "confdefs.h"
  9278. /* Override any gcc2 internal prototype to avoid an error. */
  9279. /* We use char because int might match the return type of a gcc2
  9280. builtin and then its argument prototype would still apply. */
  9281. char dnrm2_();
  9282. int main() {
  9283. dnrm2_()
  9284. ; return 0; }
  9285. EOF
  9286. if { (eval echo configure:11731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9287. rm -rf conftest*
  9288. eval "ac_cv_lib_$ac_lib_var=yes"
  9289. else
  9290. echo "configure: failed program was:" >&5
  9291. cat conftest.$ac_ext >&5
  9292. rm -rf conftest*
  9293. eval "ac_cv_lib_$ac_lib_var=no"
  9294. fi
  9295. rm -f conftest*
  9296. LIBS="$ac_save_LIBS"
  9297. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9298. echo "$ac_t""yes" 1>&6
  9299. BLASLIB="$BLASLIB -lblas "
  9300. else
  9301. echo "$ac_t""no" 1>&6
  9302. echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
  9303. echo "configure:11750: checking for dnrm2_ in -lblas" >&5
  9304. ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
  9305. ac_save_LIBS="$LIBS"
  9306. LIBS="-lblas $MATHLIB -lg2c $LIBS"
  9307. cat > conftest.$ac_ext <<EOF
  9308. #line 11756 "configure"
  9309. #include "confdefs.h"
  9310. /* Override any gcc2 internal prototype to avoid an error. */
  9311. /* We use char because int might match the return type of a gcc2
  9312. builtin and then its argument prototype would still apply. */
  9313. char dnrm2_();
  9314. int main() {
  9315. dnrm2_()
  9316. ; return 0; }
  9317. EOF
  9318. if { (eval echo configure:11767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9319. rm -rf conftest*
  9320. eval "ac_cv_lib_$ac_lib_var=yes"
  9321. else
  9322. echo "configure: failed program was:" >&5
  9323. cat conftest.$ac_ext >&5
  9324. rm -rf conftest*
  9325. eval "ac_cv_lib_$ac_lib_var=no"
  9326. fi
  9327. rm -f conftest*
  9328. LIBS="$ac_save_LIBS"
  9329. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9330. echo "$ac_t""yes" 1>&6
  9331. BLASLIB="$BLASLIB -lblas -lg2c"
  9332. else
  9333. echo "$ac_t""no" 1>&6
  9334. LDFLAGS=${ac_save_ldflags}
  9335. { echo "configure: error: *** Unable to locate BLAS library." 1>&2; exit 1; }
  9336. fi
  9337. fi
  9338. LDFLAGS=${ac_save_ldflags}
  9339. blas_ok=no
  9340. # Check for ATLAS
  9341. save_LDFLAGS="$LDFLAGS"
  9342. LDFLAGS="$BLASLIB $LDFLAGS"
  9343. echo $ac_n "checking for ATL_xerbla in -latlas""... $ac_c" 1>&6
  9344. echo "configure:11811: checking for ATL_xerbla in -latlas" >&5
  9345. ac_lib_var=`echo atlas'_'ATL_xerbla | sed 'y%./+-%__p_%'`
  9346. ac_save_LIBS="$LIBS"
  9347. LIBS="-latlas $LIBS"
  9348. cat > conftest.$ac_ext <<EOF
  9349. #line 11817 "configure"
  9350. #include "confdefs.h"
  9351. /* Override any gcc2 internal prototype to avoid an error. */
  9352. /* We use char because int might match the return type of a gcc2
  9353. builtin and then its argument prototype would still apply. */
  9354. char ATL_xerbla();
  9355. int main() {
  9356. ATL_xerbla()
  9357. ; return 0; }
  9358. EOF
  9359. if { (eval echo configure:11828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9360. rm -rf conftest*
  9361. eval "ac_cv_lib_$ac_lib_var=yes"
  9362. else
  9363. echo "configure: failed program was:" >&5
  9364. cat conftest.$ac_ext >&5
  9365. rm -rf conftest*
  9366. eval "ac_cv_lib_$ac_lib_var=no"
  9367. fi
  9368. rm -f conftest*
  9369. LIBS="$ac_save_LIBS"
  9370. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9371. echo "$ac_t""yes" 1>&6
  9372. echo $ac_n "checking for sgemm_ in -lf77blas""... $ac_c" 1>&6
  9373. echo "configure:11843: checking for sgemm_ in -lf77blas" >&5
  9374. ac_lib_var=`echo f77blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  9375. ac_save_LIBS="$LIBS"
  9376. LIBS="-lf77blas -latlas $LIBS"
  9377. cat > conftest.$ac_ext <<EOF
  9378. #line 11849 "configure"
  9379. #include "confdefs.h"
  9380. /* Override any gcc2 internal prototype to avoid an error. */
  9381. /* We use char because int might match the return type of a gcc2
  9382. builtin and then its argument prototype would still apply. */
  9383. char sgemm_();
  9384. int main() {
  9385. sgemm_()
  9386. ; return 0; }
  9387. EOF
  9388. if { (eval echo configure:11860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9389. rm -rf conftest*
  9390. eval "ac_cv_lib_$ac_lib_var=yes"
  9391. else
  9392. echo "configure: failed program was:" >&5
  9393. cat conftest.$ac_ext >&5
  9394. rm -rf conftest*
  9395. eval "ac_cv_lib_$ac_lib_var=no"
  9396. fi
  9397. rm -f conftest*
  9398. LIBS="$ac_save_LIBS"
  9399. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9400. echo "$ac_t""yes" 1>&6
  9401. echo $ac_n "checking for cblas_dgemm in -lcblas""... $ac_c" 1>&6
  9402. echo "configure:11875: checking for cblas_dgemm in -lcblas" >&5
  9403. ac_lib_var=`echo cblas'_'cblas_dgemm | sed 'y%./+-%__p_%'`
  9404. ac_save_LIBS="$LIBS"
  9405. LIBS="-lcblas -lf77blas -latlas $LIBS"
  9406. cat > conftest.$ac_ext <<EOF
  9407. #line 11881 "configure"
  9408. #include "confdefs.h"
  9409. /* Override any gcc2 internal prototype to avoid an error. */
  9410. /* We use char because int might match the return type of a gcc2
  9411. builtin and then its argument prototype would still apply. */
  9412. char cblas_dgemm();
  9413. int main() {
  9414. cblas_dgemm()
  9415. ; return 0; }
  9416. EOF
  9417. if { (eval echo configure:11892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9418. rm -rf conftest*
  9419. eval "ac_cv_lib_$ac_lib_var=yes"
  9420. else
  9421. echo "configure: failed program was:" >&5
  9422. cat conftest.$ac_ext >&5
  9423. rm -rf conftest*
  9424. eval "ac_cv_lib_$ac_lib_var=no"
  9425. fi
  9426. rm -f conftest*
  9427. LIBS="$ac_save_LIBS"
  9428. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9429. echo "$ac_t""yes" 1>&6
  9430. blas_ok=yes; BLASLIB="-lcblas -lf77blas -latlas"
  9431. else
  9432. echo "$ac_t""no" 1>&6
  9433. fi
  9434. else
  9435. echo "$ac_t""no" 1>&6
  9436. fi
  9437. else
  9438. echo "$ac_t""no" 1>&6
  9439. fi
  9440. LDFLAGS="$save_LDFLAGS"
  9441. # Do we have ATLAS?
  9442. if test $blas_ok = yes; then
  9443. cat >> confdefs.h <<\EOF
  9444. #define HAVE_LIBATLAS 1
  9445. EOF
  9446. fi
  9447. # BLAS in Apple vecLib framework? (Mac OS-X)
  9448. # not dependent on APP build
  9449. #if test -n "$MACOSX_APP"; then
  9450. if test $blas_ok = no; then
  9451. vlib_flags="-framework vecLib"
  9452. save_LIBS="$LIBS"
  9453. LIBS="$vlib_flags $LIBS"
  9454. echo $ac_n "checking for sgemm in $vlib_flags""... $ac_c" 1>&6
  9455. echo "configure:11938: checking for sgemm in $vlib_flags" >&5
  9456. cat > conftest.$ac_ext <<EOF
  9457. #line 11940 "configure"
  9458. #include "confdefs.h"
  9459. int main() {
  9460. sgemm
  9461. ; return 0; }
  9462. EOF
  9463. if { (eval echo configure:11947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9464. rm -rf conftest*
  9465. blas_ok=yes; BLASLIB="$vlib_flags"
  9466. else
  9467. echo "configure: failed program was:" >&5
  9468. cat conftest.$ac_ext >&5
  9469. rm -rf conftest*
  9470. BLASLIB=""
  9471. fi
  9472. rm -f conftest*
  9473. echo "$ac_t""$blas_ok" 1>&6
  9474. LIBS="$save_LIBS"
  9475. fi
  9476. #fi # $MACOSX_APP
  9477. # BLAS in PhiPACK libraries? (requires generic BLAS, too)
  9478. if test $blas_ok = no; then
  9479. echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
  9480. echo "configure:11965: checking for sgemm_ in -lblas" >&5
  9481. ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  9482. ac_save_LIBS="$LIBS"
  9483. LIBS="-lblas $LIBS"
  9484. cat > conftest.$ac_ext <<EOF
  9485. #line 11971 "configure"
  9486. #include "confdefs.h"
  9487. /* Override any gcc2 internal prototype to avoid an error. */
  9488. /* We use char because int might match the return type of a gcc2
  9489. builtin and then its argument prototype would still apply. */
  9490. char sgemm_();
  9491. int main() {
  9492. sgemm_()
  9493. ; return 0; }
  9494. EOF
  9495. if { (eval echo configure:11982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9496. rm -rf conftest*
  9497. eval "ac_cv_lib_$ac_lib_var=yes"
  9498. else
  9499. echo "configure: failed program was:" >&5
  9500. cat conftest.$ac_ext >&5
  9501. rm -rf conftest*
  9502. eval "ac_cv_lib_$ac_lib_var=no"
  9503. fi
  9504. rm -f conftest*
  9505. LIBS="$ac_save_LIBS"
  9506. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9507. echo "$ac_t""yes" 1>&6
  9508. echo $ac_n "checking for dgemm_ in -ldgemm""... $ac_c" 1>&6
  9509. echo "configure:11997: checking for dgemm_ in -ldgemm" >&5
  9510. ac_lib_var=`echo dgemm'_'dgemm_ | sed 'y%./+-%__p_%'`
  9511. ac_save_LIBS="$LIBS"
  9512. LIBS="-ldgemm -lblas $LIBS"
  9513. cat > conftest.$ac_ext <<EOF
  9514. #line 12003 "configure"
  9515. #include "confdefs.h"
  9516. /* Override any gcc2 internal prototype to avoid an error. */
  9517. /* We use char because int might match the return type of a gcc2
  9518. builtin and then its argument prototype would still apply. */
  9519. char dgemm_();
  9520. int main() {
  9521. dgemm_()
  9522. ; return 0; }
  9523. EOF
  9524. if { (eval echo configure:12014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9525. rm -rf conftest*
  9526. eval "ac_cv_lib_$ac_lib_var=yes"
  9527. else
  9528. echo "configure: failed program was:" >&5
  9529. cat conftest.$ac_ext >&5
  9530. rm -rf conftest*
  9531. eval "ac_cv_lib_$ac_lib_var=no"
  9532. fi
  9533. rm -f conftest*
  9534. LIBS="$ac_save_LIBS"
  9535. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9536. echo "$ac_t""yes" 1>&6
  9537. echo $ac_n "checking for sgemm_ in -lsgemm""... $ac_c" 1>&6
  9538. echo "configure:12029: checking for sgemm_ in -lsgemm" >&5
  9539. ac_lib_var=`echo sgemm'_'sgemm_ | sed 'y%./+-%__p_%'`
  9540. ac_save_LIBS="$LIBS"
  9541. LIBS="-lsgemm -lblas $LIBS"
  9542. cat > conftest.$ac_ext <<EOF
  9543. #line 12035 "configure"
  9544. #include "confdefs.h"
  9545. /* Override any gcc2 internal prototype to avoid an error. */
  9546. /* We use char because int might match the return type of a gcc2
  9547. builtin and then its argument prototype would still apply. */
  9548. char sgemm_();
  9549. int main() {
  9550. sgemm_()
  9551. ; return 0; }
  9552. EOF
  9553. if { (eval echo configure:12046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9554. rm -rf conftest*
  9555. eval "ac_cv_lib_$ac_lib_var=yes"
  9556. else
  9557. echo "configure: failed program was:" >&5
  9558. cat conftest.$ac_ext >&5
  9559. rm -rf conftest*
  9560. eval "ac_cv_lib_$ac_lib_var=no"
  9561. fi
  9562. rm -f conftest*
  9563. LIBS="$ac_save_LIBS"
  9564. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9565. echo "$ac_t""yes" 1>&6
  9566. blas_ok=yes; BLASLIB="-lsgemm -ldgemm -lblas"
  9567. else
  9568. echo "$ac_t""no" 1>&6
  9569. fi
  9570. else
  9571. echo "$ac_t""no" 1>&6
  9572. fi
  9573. else
  9574. echo "$ac_t""no" 1>&6
  9575. fi
  9576. fi
  9577. # BLAS in Sun Performance library?
  9578. if test $blas_ok = no; then
  9579. if test "x$GCC" != xyes; then # only works with Sun CC
  9580. echo $ac_n "checking for acosp in -lsunmath""... $ac_c" 1>&6
  9581. echo "configure:12080: checking for acosp in -lsunmath" >&5
  9582. ac_lib_var=`echo sunmath'_'acosp | sed 'y%./+-%__p_%'`
  9583. ac_save_LIBS="$LIBS"
  9584. LIBS="-lsunmath $LIBS"
  9585. cat > conftest.$ac_ext <<EOF
  9586. #line 12086 "configure"
  9587. #include "confdefs.h"
  9588. /* Override any gcc2 internal prototype to avoid an error. */
  9589. /* We use char because int might match the return type of a gcc2
  9590. builtin and then its argument prototype would still apply. */
  9591. char acosp();
  9592. int main() {
  9593. acosp()
  9594. ; return 0; }
  9595. EOF
  9596. if { (eval echo configure:12097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9597. rm -rf conftest*
  9598. eval "ac_cv_lib_$ac_lib_var=yes"
  9599. else
  9600. echo "configure: failed program was:" >&5
  9601. cat conftest.$ac_ext >&5
  9602. rm -rf conftest*
  9603. eval "ac_cv_lib_$ac_lib_var=no"
  9604. fi
  9605. rm -f conftest*
  9606. LIBS="$ac_save_LIBS"
  9607. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9608. echo "$ac_t""yes" 1>&6
  9609. echo $ac_n "checking for sgemm_ in -lsunperf""... $ac_c" 1>&6
  9610. echo "configure:12112: checking for sgemm_ in -lsunperf" >&5
  9611. ac_lib_var=`echo sunperf'_'sgemm_ | sed 'y%./+-%__p_%'`
  9612. ac_save_LIBS="$LIBS"
  9613. LIBS="-lsunperf -lsunmath $LIBS"
  9614. cat > conftest.$ac_ext <<EOF
  9615. #line 12118 "configure"
  9616. #include "confdefs.h"
  9617. /* Override any gcc2 internal prototype to avoid an error. */
  9618. /* We use char because int might match the return type of a gcc2
  9619. builtin and then its argument prototype would still apply. */
  9620. char sgemm_();
  9621. int main() {
  9622. sgemm_()
  9623. ; return 0; }
  9624. EOF
  9625. if { (eval echo configure:12129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9626. rm -rf conftest*
  9627. eval "ac_cv_lib_$ac_lib_var=yes"
  9628. else
  9629. echo "configure: failed program was:" >&5
  9630. cat conftest.$ac_ext >&5
  9631. rm -rf conftest*
  9632. eval "ac_cv_lib_$ac_lib_var=no"
  9633. fi
  9634. rm -f conftest*
  9635. LIBS="$ac_save_LIBS"
  9636. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9637. echo "$ac_t""yes" 1>&6
  9638. blas_ok=yes; BLASLIB="-xlic_lib=sunperf -lsunmath"
  9639. else
  9640. echo "$ac_t""no" 1>&6
  9641. fi
  9642. else
  9643. echo "$ac_t""no" 1>&6
  9644. fi
  9645. fi
  9646. fi
  9647. # Generic BLAS library
  9648. if test $blas_ok = no; then
  9649. echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
  9650. echo "configure:12159: checking for sgemm_ in -lblas" >&5
  9651. ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  9652. ac_save_LIBS="$LIBS"
  9653. LIBS="-lblas $LIBS"
  9654. cat > conftest.$ac_ext <<EOF
  9655. #line 12165 "configure"
  9656. #include "confdefs.h"
  9657. /* Override any gcc2 internal prototype to avoid an error. */
  9658. /* We use char because int might match the return type of a gcc2
  9659. builtin and then its argument prototype would still apply. */
  9660. char sgemm_();
  9661. int main() {
  9662. sgemm_()
  9663. ; return 0; }
  9664. EOF
  9665. if { (eval echo configure:12176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9666. rm -rf conftest*
  9667. eval "ac_cv_lib_$ac_lib_var=yes"
  9668. else
  9669. echo "configure: failed program was:" >&5
  9670. cat conftest.$ac_ext >&5
  9671. rm -rf conftest*
  9672. eval "ac_cv_lib_$ac_lib_var=no"
  9673. fi
  9674. rm -f conftest*
  9675. LIBS="$ac_save_LIBS"
  9676. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9677. echo "$ac_t""yes" 1>&6
  9678. blas_ok=yes; BLASLIB="-lblas"
  9679. else
  9680. echo "$ac_t""no" 1>&6
  9681. fi
  9682. fi
  9683. if test $blas_ok = yes; then
  9684. cat >> confdefs.h <<\EOF
  9685. #define HAVE_LIBBLAS 1
  9686. EOF
  9687. fi
  9688. fi # $USE_BLAS
  9689. # Done checking BLAS
  9690. # Enable LAPACK option
  9691. echo $ac_n "checking whether to use LAPACK""... $ac_c" 1>&6
  9692. echo "configure:12215: checking whether to use LAPACK" >&5
  9693. echo "$ac_t"""$with_lapack"" 1>&6
  9694. case "$with_lapack" in
  9695. "no") USE_LAPACK= ;;
  9696. "yes") USE_LAPACK="1" ;;
  9697. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9698. esac
  9699. LAPACKLIB=
  9700. LAPACKINC=
  9701. # LAPACK is useless without BLAS
  9702. if test -n "$USE_BLAS"; then
  9703. if test -n "$USE_LAPACK"; then
  9704. # With LAPACK includes directory
  9705. # LAPACK doesn't have includes (FORTRAN library)
  9706. # With LAPACK library directory
  9707. lapack_ok=no
  9708. echo $ac_n "checking for location of LAPACK includes""... $ac_c" 1>&6
  9709. echo "configure:12240: checking for location of LAPACK includes" >&5
  9710. case "$with_lapack_includes" in
  9711. y | ye | yes | n | no)
  9712. { echo "configure: error: *** You must supply a directory to --with-lapack-includes." 1>&2; exit 1; }
  9713. ;;
  9714. esac
  9715. echo "$ac_t""$with_lapack_includes" 1>&6
  9716. if test -n "$with_lapack_includes" ; then
  9717. for dir in $with_lapack_includes; do
  9718. if test -d "$dir"; then
  9719. LAPACKINC="$LAPACKINC -I$dir"
  9720. else
  9721. { echo "configure: error: *** LAPACK includes directory $dir does not exist." 1>&2; exit 1; }
  9722. fi
  9723. done
  9724. fi
  9725. echo $ac_n "checking for location of LAPACK library""... $ac_c" 1>&6
  9726. echo "configure:12260: checking for location of LAPACK library" >&5
  9727. case "$with_lapack_libs" in
  9728. y | ye | yes | n | no)
  9729. { echo "configure: error: *** You must supply a directory to --with-lapack-libs." 1>&2; exit 1; }
  9730. ;;
  9731. esac
  9732. echo "$ac_t""$with_lapack_libs" 1>&6
  9733. if test -n "$with_lapack_libs"; then
  9734. for dir in $with_lapack_libs; do
  9735. if test -d "$dir"; then
  9736. LAPACKLIB="$LAPACKLIB -L$dir"
  9737. else
  9738. { echo "configure: error: *** LAPACK library directory $dir does not exist." 1>&2; exit 1; }
  9739. fi
  9740. done
  9741. fi
  9742. # See if clapack.h exists (ATLAS)
  9743. save_CPPFLAGS="$CPPFLAGS"
  9744. CPPFLAGS="$LAPACKINC $CPPFLAGS"
  9745. for ac_hdr in clapack.h
  9746. do
  9747. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9748. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9749. echo "configure:12286: checking for $ac_hdr" >&5
  9750. cat > conftest.$ac_ext <<EOF
  9751. #line 12289 "configure"
  9752. #include "confdefs.h"
  9753. #include <$ac_hdr>
  9754. EOF
  9755. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9756. { (eval echo configure:12294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9757. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9758. if test -z "$ac_err"; then
  9759. rm -rf conftest*
  9760. eval "ac_cv_header_$ac_safe=yes"
  9761. else
  9762. echo "$ac_err" >&5
  9763. echo "configure: failed program was:" >&5
  9764. cat conftest.$ac_ext >&5
  9765. rm -rf conftest*
  9766. eval "ac_cv_header_$ac_safe=no"
  9767. fi
  9768. rm -f conftest*
  9769. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9770. echo "$ac_t""yes" 1>&6
  9771. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9772. cat >> confdefs.h <<EOF
  9773. #define $ac_tr_hdr 1
  9774. EOF
  9775. else
  9776. echo "$ac_t""no" 1>&6
  9777. fi
  9778. done
  9779. CPPFLAGS="$save_CPPFLAGS"
  9780. # LAPACK linked to by default?
  9781. if test lapack_ok=no; then
  9782. save_LIBS="$LIBS"; LIBS="$LIBS $BLASLIB $MATHLIB $FLIBS"
  9783. save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
  9784. echo $ac_n "checking for dsegv_""... $ac_c" 1>&6
  9785. echo "configure:12326: checking for dsegv_" >&5
  9786. cat > conftest.$ac_ext <<EOF
  9787. #line 12329 "configure"
  9788. #include "confdefs.h"
  9789. /* System header to define __stub macros and hopefully few prototypes,
  9790. which can conflict with char dsegv_(); below. */
  9791. #include <assert.h>
  9792. /* Override any gcc2 internal prototype to avoid an error. */
  9793. /* We use char because int might match the return type of a gcc2
  9794. builtin and then its argument prototype would still apply. */
  9795. char dsegv_();
  9796. int main() {
  9797. /* The GNU C library defines this for functions which it implements
  9798. to always fail with ENOSYS. Some functions are actually named
  9799. something starting with __ and the normal name is an alias. */
  9800. #if defined (__stub_dsegv_) || defined (__stub___dsegv_)
  9801. choke me
  9802. #else
  9803. dsegv_();
  9804. #endif
  9805. ; return 0; }
  9806. EOF
  9807. if { (eval echo configure:12352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9808. rm -rf conftest*
  9809. eval "ac_cv_func_dsegv_=yes"
  9810. else
  9811. echo "configure: failed program was:" >&5
  9812. cat conftest.$ac_ext >&5
  9813. rm -rf conftest*
  9814. eval "ac_cv_func_dsegv_=no"
  9815. fi
  9816. rm -f conftest*
  9817. if eval "test \"`echo '$ac_cv_func_'dsegv_`\" = yes"; then
  9818. echo "$ac_t""yes" 1>&6
  9819. lapack_ok=yes
  9820. else
  9821. echo "$ac_t""no" 1>&6
  9822. fi
  9823. LIBS="$save_LIBS"
  9824. LDFLAGS="$save_LDFLAGS"
  9825. fi
  9826. # Generic LAPACK library?
  9827. if test $lapack_ok = no; then
  9828. save_libs="$LIBS"; LIBS="$BLASLIB $MATHLIB $LIBS"
  9829. save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
  9830. echo $ac_n "checking for desgv_ in -llapack""... $ac_c" 1>&6
  9831. echo "configure:12379: checking for desgv_ in -llapack" >&5
  9832. ac_lib_var=`echo lapack'_'desgv_ | sed 'y%./+-%__p_%'`
  9833. ac_save_LIBS="$LIBS"
  9834. LIBS="-llapack $FLIBS $LIBS"
  9835. cat > conftest.$ac_ext <<EOF
  9836. #line 12385 "configure"
  9837. #include "confdefs.h"
  9838. /* Override any gcc2 internal prototype to avoid an error. */
  9839. /* We use char because int might match the return type of a gcc2
  9840. builtin and then its argument prototype would still apply. */
  9841. char desgv_();
  9842. int main() {
  9843. desgv_()
  9844. ; return 0; }
  9845. EOF
  9846. if { (eval echo configure:12396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9847. rm -rf conftest*
  9848. eval "ac_cv_lib_$ac_lib_var=yes"
  9849. else
  9850. echo "configure: failed program was:" >&5
  9851. cat conftest.$ac_ext >&5
  9852. rm -rf conftest*
  9853. eval "ac_cv_lib_$ac_lib_var=no"
  9854. fi
  9855. rm -f conftest*
  9856. LIBS="$ac_save_LIBS"
  9857. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9858. echo "$ac_t""yes" 1>&6
  9859. lapack_ok=yes; LAPACKLIB="-llapack"
  9860. else
  9861. echo "$ac_t""no" 1>&6
  9862. fi
  9863. LIBS="$save_LIBS"
  9864. LDFLAGS="$save_LDFLAGS"
  9865. fi
  9866. if test $lapack_ok = no; then
  9867. ac_save_ldflags="$LDFLAGS"
  9868. LDFLAGS="$LAPACKLIB $LDFLAGS"
  9869. echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
  9870. echo "configure:12428: checking for dgesv_ in -llapack" >&5
  9871. ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
  9872. ac_save_LIBS="$LIBS"
  9873. LIBS="-llapack $BLASLIB $MATHLIB $LIBS"
  9874. cat > conftest.$ac_ext <<EOF
  9875. #line 12434 "configure"
  9876. #include "confdefs.h"
  9877. /* Override any gcc2 internal prototype to avoid an error. */
  9878. /* We use char because int might match the return type of a gcc2
  9879. builtin and then its argument prototype would still apply. */
  9880. char dgesv_();
  9881. int main() {
  9882. dgesv_()
  9883. ; return 0; }
  9884. EOF
  9885. if { (eval echo configure:12445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9886. rm -rf conftest*
  9887. eval "ac_cv_lib_$ac_lib_var=yes"
  9888. else
  9889. echo "configure: failed program was:" >&5
  9890. cat conftest.$ac_ext >&5
  9891. rm -rf conftest*
  9892. eval "ac_cv_lib_$ac_lib_var=no"
  9893. fi
  9894. rm -f conftest*
  9895. LIBS="$ac_save_LIBS"
  9896. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9897. echo "$ac_t""yes" 1>&6
  9898. LAPACKLIB="$LAPACKLIB -llapack "
  9899. else
  9900. echo "$ac_t""no" 1>&6
  9901. echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
  9902. echo "configure:12464: checking for dgesv_ in -llapack" >&5
  9903. ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
  9904. ac_save_LIBS="$LIBS"
  9905. LIBS="-llapack $BLASLIB $MATHLIB -lg2c $LIBS"
  9906. cat > conftest.$ac_ext <<EOF
  9907. #line 12470 "configure"
  9908. #include "confdefs.h"
  9909. /* Override any gcc2 internal prototype to avoid an error. */
  9910. /* We use char because int might match the return type of a gcc2
  9911. builtin and then its argument prototype would still apply. */
  9912. char dgesv_();
  9913. int main() {
  9914. dgesv_()
  9915. ; return 0; }
  9916. EOF
  9917. if { (eval echo configure:12481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9918. rm -rf conftest*
  9919. eval "ac_cv_lib_$ac_lib_var=yes"
  9920. else
  9921. echo "configure: failed program was:" >&5
  9922. cat conftest.$ac_ext >&5
  9923. rm -rf conftest*
  9924. eval "ac_cv_lib_$ac_lib_var=no"
  9925. fi
  9926. rm -f conftest*
  9927. LIBS="$ac_save_LIBS"
  9928. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9929. echo "$ac_t""yes" 1>&6
  9930. LAPACKLIB="$LAPACKLIB -llapack -lg2c"
  9931. else
  9932. echo "$ac_t""no" 1>&6
  9933. LDFLAGS=${ac_save_ldflags}
  9934. { echo "configure: error: *** Unable to locate LAPACK library." 1>&2; exit 1; }
  9935. fi
  9936. fi
  9937. LDFLAGS=${ac_save_ldflags}
  9938. fi
  9939. cat >> confdefs.h <<\EOF
  9940. #define HAVE_LIBLAPACK 1
  9941. EOF
  9942. fi # $USE_LAPACK
  9943. fi # $USE_BLAS
  9944. # Done checking LAPACK
  9945. # Enable Cairo display driver option
  9946. echo $ac_n "checking whether to use Cairo""... $ac_c" 1>&6
  9947. echo "configure:12537: checking whether to use Cairo" >&5
  9948. echo "$ac_t"""$with_cairo"" 1>&6
  9949. case "$with_cairo" in
  9950. "no") USE_CAIRO= ;;
  9951. "yes") USE_CAIRO="1" ;;
  9952. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9953. esac
  9954. CAIROINC=
  9955. CAIROLIB=
  9956. if test -n "$USE_CAIRO"; then
  9957. cairo="cairo cairo-ft"
  9958. if test -n "$USE_X11"; then
  9959. cairo="$cairo cairo-xlib-xrender"
  9960. fi
  9961. # With Cairo includes directory
  9962. #FIXME: somehow quote dirs with spaces in $cairo ?
  9963. CAIROINC=`pkg-config --cflags $cairo`
  9964. echo $ac_n "checking for location of cairo includes""... $ac_c" 1>&6
  9965. echo "configure:12563: checking for location of cairo includes" >&5
  9966. case "$with_cairo_includes" in
  9967. y | ye | yes | n | no)
  9968. { echo "configure: error: *** You must supply a directory to --with-cairo-includes." 1>&2; exit 1; }
  9969. ;;
  9970. esac
  9971. echo "$ac_t""$with_cairo_includes" 1>&6
  9972. if test -n "$with_cairo_includes" ; then
  9973. for dir in $with_cairo_includes; do
  9974. if test -d "$dir"; then
  9975. CAIROINC="$CAIROINC -I$dir"
  9976. else
  9977. { echo "configure: error: *** cairo includes directory $dir does not exist." 1>&2; exit 1; }
  9978. fi
  9979. done
  9980. fi
  9981. ac_save_cppflags="$CPPFLAGS"
  9982. CPPFLAGS="$CAIROINC $CPPFLAGS"
  9983. for ac_hdr in cairo.h
  9984. do
  9985. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9986. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9987. echo "configure:12589: checking for $ac_hdr" >&5
  9988. cat > conftest.$ac_ext <<EOF
  9989. #line 12592 "configure"
  9990. #include "confdefs.h"
  9991. #include <$ac_hdr>
  9992. EOF
  9993. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9994. { (eval echo configure:12597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9995. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9996. if test -z "$ac_err"; then
  9997. rm -rf conftest*
  9998. eval "ac_cv_header_$ac_safe=yes"
  9999. else
  10000. echo "$ac_err" >&5
  10001. echo "configure: failed program was:" >&5
  10002. cat conftest.$ac_ext >&5
  10003. rm -rf conftest*
  10004. eval "ac_cv_header_$ac_safe=no"
  10005. fi
  10006. rm -f conftest*
  10007. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10008. echo "$ac_t""yes" 1>&6
  10009. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10010. cat >> confdefs.h <<EOF
  10011. #define $ac_tr_hdr 1
  10012. EOF
  10013. else
  10014. echo "$ac_t""no" 1>&6
  10015. { echo "configure: error: *** Unable to locate Cairo includes." 1>&2; exit 1; }
  10016. fi
  10017. done
  10018. CPPFLAGS=$ac_save_cppflags
  10019. # With Cairo library directory
  10020. CAIROLIB=`pkg-config --libs $cairo`
  10021. echo $ac_n "checking for location of cairo library""... $ac_c" 1>&6
  10022. echo "configure:12633: checking for location of cairo library" >&5
  10023. case "$with_cairo_libs" in
  10024. y | ye | yes | n | no)
  10025. { echo "configure: error: *** You must supply a directory to --with-cairo-libs." 1>&2; exit 1; }
  10026. ;;
  10027. esac
  10028. echo "$ac_t""$with_cairo_libs" 1>&6
  10029. if test -n "$with_cairo_libs"; then
  10030. for dir in $with_cairo_libs; do
  10031. if test -d "$dir"; then
  10032. CAIROLIB="$CAIROLIB -L$dir"
  10033. else
  10034. { echo "configure: error: *** cairo library directory $dir does not exist." 1>&2; exit 1; }
  10035. fi
  10036. done
  10037. fi
  10038. echo $ac_n "checking for cairo linking flags""... $ac_c" 1>&6
  10039. echo "configure:12653: checking for cairo linking flags" >&5
  10040. case "$with_cairo_ldflags" in
  10041. y | ye | yes | n | no)
  10042. { echo "configure: error: *** You must supply a directory to --with-cairo-ldflags." 1>&2; exit 1; }
  10043. ;;
  10044. esac
  10045. echo "$ac_t""$with_cairo_ldflags" 1>&6
  10046. CAIROLIB="$CAIROLIB $with_cairo_ldflags"
  10047. ac_save_libs="$LIBS"
  10048. ac_save_ldflags="$LDFLAGS"
  10049. LIBS=" $CAIROLIB $LIBS"
  10050. LDFLAGS=" $LDFLAGS"
  10051. echo $ac_n "checking for cairo_create""... $ac_c" 1>&6
  10052. echo "configure:12669: checking for cairo_create" >&5
  10053. cat > conftest.$ac_ext <<EOF
  10054. #line 12672 "configure"
  10055. #include "confdefs.h"
  10056. /* System header to define __stub macros and hopefully few prototypes,
  10057. which can conflict with char cairo_create(); below. */
  10058. #include <assert.h>
  10059. /* Override any gcc2 internal prototype to avoid an error. */
  10060. /* We use char because int might match the return type of a gcc2
  10061. builtin and then its argument prototype would still apply. */
  10062. char cairo_create();
  10063. int main() {
  10064. /* The GNU C library defines this for functions which it implements
  10065. to always fail with ENOSYS. Some functions are actually named
  10066. something starting with __ and the normal name is an alias. */
  10067. #if defined (__stub_cairo_create) || defined (__stub___cairo_create)
  10068. choke me
  10069. #else
  10070. cairo_create();
  10071. #endif
  10072. ; return 0; }
  10073. EOF
  10074. if { (eval echo configure:12695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10075. rm -rf conftest*
  10076. eval "ac_cv_func_cairo_create=yes"
  10077. else
  10078. echo "configure: failed program was:" >&5
  10079. cat conftest.$ac_ext >&5
  10080. rm -rf conftest*
  10081. eval "ac_cv_func_cairo_create=no"
  10082. fi
  10083. rm -f conftest*
  10084. if eval "test \"`echo '$ac_cv_func_'cairo_create`\" = yes"; then
  10085. echo "$ac_t""yes" 1>&6
  10086. :
  10087. else
  10088. echo "$ac_t""no" 1>&6
  10089. { echo "configure: error: *** Unable to locate ." 1>&2; exit 1; }
  10090. fi
  10091. LIBS=${ac_save_libs}
  10092. LDFLAGS=${ac_save_ldflags}
  10093. ac_save_libs="$LIBS"
  10094. ac_save_ldflags="$LDFLAGS"
  10095. LIBS=" $CAIROLIB $LIBS"
  10096. LDFLAGS=" $LDFLAGS"
  10097. echo $ac_n "checking for cairo_xlib_surface_create_with_xrender_format""... $ac_c" 1>&6
  10098. echo "configure:12729: checking for cairo_xlib_surface_create_with_xrender_format" >&5
  10099. cat > conftest.$ac_ext <<EOF
  10100. #line 12732 "configure"
  10101. #include "confdefs.h"
  10102. /* System header to define __stub macros and hopefully few prototypes,
  10103. which can conflict with char cairo_xlib_surface_create_with_xrender_format(); below. */
  10104. #include <assert.h>
  10105. /* Override any gcc2 internal prototype to avoid an error. */
  10106. /* We use char because int might match the return type of a gcc2
  10107. builtin and then its argument prototype would still apply. */
  10108. char cairo_xlib_surface_create_with_xrender_format();
  10109. int main() {
  10110. /* The GNU C library defines this for functions which it implements
  10111. to always fail with ENOSYS. Some functions are actually named
  10112. something starting with __ and the normal name is an alias. */
  10113. #if defined (__stub_cairo_xlib_surface_create_with_xrender_format) || defined (__stub___cairo_xlib_surface_create_with_xrender_format)
  10114. choke me
  10115. #else
  10116. cairo_xlib_surface_create_with_xrender_format();
  10117. #endif
  10118. ; return 0; }
  10119. EOF
  10120. if { (eval echo configure:12755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10121. rm -rf conftest*
  10122. eval "ac_cv_func_cairo_xlib_surface_create_with_xrender_format=yes"
  10123. else
  10124. echo "configure: failed program was:" >&5
  10125. cat conftest.$ac_ext >&5
  10126. rm -rf conftest*
  10127. eval "ac_cv_func_cairo_xlib_surface_create_with_xrender_format=no"
  10128. fi
  10129. rm -f conftest*
  10130. if eval "test \"`echo '$ac_cv_func_'cairo_xlib_surface_create_with_xrender_format`\" = yes"; then
  10131. echo "$ac_t""yes" 1>&6
  10132. CAIRO_HAS_XRENDER=1
  10133. else
  10134. echo "$ac_t""no" 1>&6
  10135. CAIRO_HAS_XRENDER=
  10136. fi
  10137. LIBS=${ac_save_libs}
  10138. LDFLAGS=${ac_save_ldflags}
  10139. ac_save_libs="$LIBS"
  10140. ac_save_ldflags="$LDFLAGS"
  10141. LIBS=" $CAIROLIB $LIBS"
  10142. LDFLAGS=" $LDFLAGS"
  10143. echo $ac_n "checking for cairo_xlib_surface_get_xrender_format""... $ac_c" 1>&6
  10144. echo "configure:12788: checking for cairo_xlib_surface_get_xrender_format" >&5
  10145. cat > conftest.$ac_ext <<EOF
  10146. #line 12791 "configure"
  10147. #include "confdefs.h"
  10148. /* System header to define __stub macros and hopefully few prototypes,
  10149. which can conflict with char cairo_xlib_surface_get_xrender_format(); below. */
  10150. #include <assert.h>
  10151. /* Override any gcc2 internal prototype to avoid an error. */
  10152. /* We use char because int might match the return type of a gcc2
  10153. builtin and then its argument prototype would still apply. */
  10154. char cairo_xlib_surface_get_xrender_format();
  10155. int main() {
  10156. /* The GNU C library defines this for functions which it implements
  10157. to always fail with ENOSYS. Some functions are actually named
  10158. something starting with __ and the normal name is an alias. */
  10159. #if defined (__stub_cairo_xlib_surface_get_xrender_format) || defined (__stub___cairo_xlib_surface_get_xrender_format)
  10160. choke me
  10161. #else
  10162. cairo_xlib_surface_get_xrender_format();
  10163. #endif
  10164. ; return 0; }
  10165. EOF
  10166. if { (eval echo configure:12814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10167. rm -rf conftest*
  10168. eval "ac_cv_func_cairo_xlib_surface_get_xrender_format=yes"
  10169. else
  10170. echo "configure: failed program was:" >&5
  10171. cat conftest.$ac_ext >&5
  10172. rm -rf conftest*
  10173. eval "ac_cv_func_cairo_xlib_surface_get_xrender_format=no"
  10174. fi
  10175. rm -f conftest*
  10176. if eval "test \"`echo '$ac_cv_func_'cairo_xlib_surface_get_xrender_format`\" = yes"; then
  10177. echo "$ac_t""yes" 1>&6
  10178. CAIRO_HAS_XRENDER_SURFACE=1
  10179. else
  10180. echo "$ac_t""no" 1>&6
  10181. CAIRO_HAS_XRENDER_SURFACE=
  10182. fi
  10183. LIBS=${ac_save_libs}
  10184. LDFLAGS=${ac_save_ldflags}
  10185. CAIROLIB="$CAIROLIB $CAIROLDFLAGS"
  10186. fi # $USE_CAIRO
  10187. # Done checking Cairo
  10188. # Enable FreeType option
  10189. echo $ac_n "checking whether to use FreeType""... $ac_c" 1>&6
  10190. echo "configure:12856: checking whether to use FreeType" >&5
  10191. echo "$ac_t"""$with_freetype"" 1>&6
  10192. case "$with_freetype" in
  10193. "no") USE_FREETYPE= ;;
  10194. "yes") USE_FREETYPE="1" ;;
  10195. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10196. esac
  10197. FTINC=
  10198. FTLIB=
  10199. if test -n "$USE_FREETYPE"; then
  10200. # With FreeType includes directory
  10201. echo $ac_n "checking for location of FreeType includes""... $ac_c" 1>&6
  10202. echo "configure:12875: checking for location of FreeType includes" >&5
  10203. case "$with_freetype_includes" in
  10204. y | ye | yes | n | no)
  10205. { echo "configure: error: *** You must supply a directory to --with-freetype-includes." 1>&2; exit 1; }
  10206. ;;
  10207. esac
  10208. echo "$ac_t""$with_freetype_includes" 1>&6
  10209. if test -n "$with_freetype_includes" ; then
  10210. for dir in $with_freetype_includes; do
  10211. if test -d "$dir"; then
  10212. FTINC="$FTINC -I$dir"
  10213. else
  10214. { echo "configure: error: *** FreeType includes directory $dir does not exist." 1>&2; exit 1; }
  10215. fi
  10216. done
  10217. fi
  10218. ac_save_cppflags="$CPPFLAGS"
  10219. CPPFLAGS="$FTINC $CPPFLAGS"
  10220. for ac_hdr in ft2build.h
  10221. do
  10222. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10223. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10224. echo "configure:12901: checking for $ac_hdr" >&5
  10225. cat > conftest.$ac_ext <<EOF
  10226. #line 12904 "configure"
  10227. #include "confdefs.h"
  10228. #include <$ac_hdr>
  10229. EOF
  10230. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10231. { (eval echo configure:12909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10232. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10233. if test -z "$ac_err"; then
  10234. rm -rf conftest*
  10235. eval "ac_cv_header_$ac_safe=yes"
  10236. else
  10237. echo "$ac_err" >&5
  10238. echo "configure: failed program was:" >&5
  10239. cat conftest.$ac_ext >&5
  10240. rm -rf conftest*
  10241. eval "ac_cv_header_$ac_safe=no"
  10242. fi
  10243. rm -f conftest*
  10244. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10245. echo "$ac_t""yes" 1>&6
  10246. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10247. cat >> confdefs.h <<EOF
  10248. #define $ac_tr_hdr 1
  10249. EOF
  10250. else
  10251. echo "$ac_t""no" 1>&6
  10252. { echo "configure: error: *** Unable to locate FreeType includes." 1>&2; exit 1; }
  10253. fi
  10254. done
  10255. CPPFLAGS=$ac_save_cppflags
  10256. # With FreeType library directory
  10257. echo $ac_n "checking for location of FreeType library""... $ac_c" 1>&6
  10258. echo "configure:12943: checking for location of FreeType library" >&5
  10259. case "$with_freetype_libs" in
  10260. y | ye | yes | n | no)
  10261. { echo "configure: error: *** You must supply a directory to --with-freetype-libs." 1>&2; exit 1; }
  10262. ;;
  10263. esac
  10264. echo "$ac_t""$with_freetype_libs" 1>&6
  10265. if test -n "$with_freetype_libs"; then
  10266. for dir in $with_freetype_libs; do
  10267. if test -d "$dir"; then
  10268. FTLIB="$FTLIB -L$dir"
  10269. else
  10270. { echo "configure: error: *** FreeType library directory $dir does not exist." 1>&2; exit 1; }
  10271. fi
  10272. done
  10273. fi
  10274. ac_save_ldflags="$LDFLAGS"
  10275. LDFLAGS="$FTLIB $LDFLAGS"
  10276. echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
  10277. echo "configure:12968: checking for FT_Init_FreeType in -lfreetype" >&5
  10278. ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
  10279. ac_save_LIBS="$LIBS"
  10280. LIBS="-lfreetype $LIBS"
  10281. cat > conftest.$ac_ext <<EOF
  10282. #line 12974 "configure"
  10283. #include "confdefs.h"
  10284. /* Override any gcc2 internal prototype to avoid an error. */
  10285. /* We use char because int might match the return type of a gcc2
  10286. builtin and then its argument prototype would still apply. */
  10287. char FT_Init_FreeType();
  10288. int main() {
  10289. FT_Init_FreeType()
  10290. ; return 0; }
  10291. EOF
  10292. if { (eval echo configure:12985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10293. rm -rf conftest*
  10294. eval "ac_cv_lib_$ac_lib_var=yes"
  10295. else
  10296. echo "configure: failed program was:" >&5
  10297. cat conftest.$ac_ext >&5
  10298. rm -rf conftest*
  10299. eval "ac_cv_lib_$ac_lib_var=no"
  10300. fi
  10301. rm -f conftest*
  10302. LIBS="$ac_save_LIBS"
  10303. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10304. echo "$ac_t""yes" 1>&6
  10305. FTLIB="$FTLIB -lfreetype "
  10306. else
  10307. echo "$ac_t""no" 1>&6
  10308. LDFLAGS=${ac_save_ldflags}
  10309. { echo "configure: error: *** Unable to locate FreeType library." 1>&2; exit 1; }
  10310. fi
  10311. LDFLAGS=${ac_save_ldflags}
  10312. fi # $USE_FREETYPE
  10313. # Done checking FreeType
  10314. # Enable NLS option
  10315. echo $ac_n "checking whether to use NLS""... $ac_c" 1>&6
  10316. echo "configure:13026: checking whether to use NLS" >&5
  10317. echo "$ac_t"""$with_nls"" 1>&6
  10318. case "$with_nls" in
  10319. "no") USE_NLS= ;;
  10320. "yes") USE_NLS="1" ;;
  10321. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10322. esac
  10323. INTLLIB=
  10324. HAVE_NLS=
  10325. if test -n "${USE_NLS}" ; then
  10326. cat >> confdefs.h <<\EOF
  10327. #define USE_NLS 1
  10328. EOF
  10329. echo $ac_n "checking for gettext""... $ac_c" 1>&6
  10330. echo "configure:13046: checking for gettext" >&5
  10331. cat > conftest.$ac_ext <<EOF
  10332. #line 13049 "configure"
  10333. #include "confdefs.h"
  10334. /* System header to define __stub macros and hopefully few prototypes,
  10335. which can conflict with char gettext(); below. */
  10336. #include <assert.h>
  10337. /* Override any gcc2 internal prototype to avoid an error. */
  10338. /* We use char because int might match the return type of a gcc2
  10339. builtin and then its argument prototype would still apply. */
  10340. char gettext();
  10341. int main() {
  10342. /* The GNU C library defines this for functions which it implements
  10343. to always fail with ENOSYS. Some functions are actually named
  10344. something starting with __ and the normal name is an alias. */
  10345. #if defined (__stub_gettext) || defined (__stub___gettext)
  10346. choke me
  10347. #else
  10348. gettext();
  10349. #endif
  10350. ; return 0; }
  10351. EOF
  10352. if { (eval echo configure:13072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10353. rm -rf conftest*
  10354. eval "ac_cv_func_gettext=yes"
  10355. else
  10356. echo "configure: failed program was:" >&5
  10357. cat conftest.$ac_ext >&5
  10358. rm -rf conftest*
  10359. eval "ac_cv_func_gettext=no"
  10360. fi
  10361. rm -f conftest*
  10362. if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
  10363. echo "$ac_t""yes" 1>&6
  10364. INTLLIB=
  10365. else
  10366. echo "$ac_t""no" 1>&6
  10367. echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
  10368. echo "configure:13090: checking for gettext in -lintl" >&5
  10369. ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
  10370. ac_save_LIBS="$LIBS"
  10371. LIBS="-lintl $LIBS"
  10372. cat > conftest.$ac_ext <<EOF
  10373. #line 13096 "configure"
  10374. #include "confdefs.h"
  10375. /* Override any gcc2 internal prototype to avoid an error. */
  10376. /* We use char because int might match the return type of a gcc2
  10377. builtin and then its argument prototype would still apply. */
  10378. char gettext();
  10379. int main() {
  10380. gettext()
  10381. ; return 0; }
  10382. EOF
  10383. if { (eval echo configure:13107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10384. rm -rf conftest*
  10385. eval "ac_cv_lib_$ac_lib_var=yes"
  10386. else
  10387. echo "configure: failed program was:" >&5
  10388. cat conftest.$ac_ext >&5
  10389. rm -rf conftest*
  10390. eval "ac_cv_lib_$ac_lib_var=no"
  10391. fi
  10392. rm -f conftest*
  10393. LIBS="$ac_save_LIBS"
  10394. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10395. echo "$ac_t""yes" 1>&6
  10396. INTLLIB=-lintl
  10397. else
  10398. echo "$ac_t""no" 1>&6
  10399. { echo "configure: error: *** Unable to locate gettext() function." 1>&2; exit 1; }
  10400. fi
  10401. fi
  10402. HAVE_NLS=1
  10403. fi
  10404. # Enable C++ option
  10405. echo $ac_n "checking whether to use C++""... $ac_c" 1>&6
  10406. echo "configure:13142: checking whether to use C++" >&5
  10407. echo "$ac_t"""$with_cxx"" 1>&6
  10408. case "$with_cxx" in
  10409. "no") USE_CXX= ;;
  10410. "yes") USE_CXX="1" ;;
  10411. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10412. esac
  10413. if test -n "$USE_CXX"; then
  10414. for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
  10415. do
  10416. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10417. set dummy $ac_prog; ac_word=$2
  10418. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  10419. echo "configure:13158: checking for $ac_word" >&5
  10420. if test -n "$CXX"; then
  10421. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10422. else
  10423. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  10424. ac_dummy="$PATH"
  10425. for ac_dir in $ac_dummy; do
  10426. test -z "$ac_dir" && ac_dir=.
  10427. if test -f $ac_dir/$ac_word; then
  10428. ac_cv_prog_CXX="$ac_prog"
  10429. break
  10430. fi
  10431. done
  10432. IFS="$ac_save_ifs"
  10433. fi
  10434. CXX="$ac_cv_prog_CXX"
  10435. if test -n "$CXX"; then
  10436. echo "$ac_t""$CXX" 1>&6
  10437. else
  10438. echo "$ac_t""no" 1>&6
  10439. fi
  10440. test -n "$CXX" && break
  10441. done
  10442. test -n "$CXX" || CXX="gcc"
  10443. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  10444. echo "configure:13187: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  10445. ac_ext=C
  10446. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  10447. ac_cpp='$CXXCPP $CPPFLAGS'
  10448. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  10449. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  10450. cross_compiling=$ac_cv_prog_cxx_cross
  10451. cat > conftest.$ac_ext << EOF
  10452. #line 13198 "configure"
  10453. #include "confdefs.h"
  10454. int main(){return(0);}
  10455. EOF
  10456. if { (eval echo configure:13203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10457. ac_cv_prog_cxx_works=yes
  10458. # If we can't run a trivial program, we are probably using a cross compiler.
  10459. if (./conftest; exit) 2>/dev/null; then
  10460. ac_cv_prog_cxx_cross=no
  10461. else
  10462. ac_cv_prog_cxx_cross=yes
  10463. fi
  10464. else
  10465. echo "configure: failed program was:" >&5
  10466. cat conftest.$ac_ext >&5
  10467. ac_cv_prog_cxx_works=no
  10468. fi
  10469. rm -fr conftest*
  10470. ac_ext=c
  10471. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  10472. ac_cpp='$CPP $CPPFLAGS'
  10473. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  10474. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  10475. cross_compiling=$ac_cv_prog_cc_cross
  10476. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  10477. if test $ac_cv_prog_cxx_works = no; then
  10478. { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  10479. fi
  10480. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  10481. echo "configure:13229: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  10482. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  10483. cross_compiling=$ac_cv_prog_cxx_cross
  10484. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  10485. echo "configure:13234: checking whether we are using GNU C++" >&5
  10486. cat > conftest.C <<EOF
  10487. #ifdef __GNUC__
  10488. yes;
  10489. #endif
  10490. EOF
  10491. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:13241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  10492. ac_cv_prog_gxx=yes
  10493. else
  10494. ac_cv_prog_gxx=no
  10495. fi
  10496. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  10497. if test $ac_cv_prog_gxx = yes; then
  10498. GXX=yes
  10499. else
  10500. GXX=
  10501. fi
  10502. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  10503. ac_save_CXXFLAGS="$CXXFLAGS"
  10504. CXXFLAGS=
  10505. echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  10506. echo "configure:13259: checking whether ${CXX-g++} accepts -g" >&5
  10507. echo 'void f(){}' > conftest.cc
  10508. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  10509. ac_cv_prog_cxx_g=yes
  10510. else
  10511. ac_cv_prog_cxx_g=no
  10512. fi
  10513. rm -f conftest*
  10514. echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  10515. if test "$ac_test_CXXFLAGS" = set; then
  10516. CXXFLAGS="$ac_save_CXXFLAGS"
  10517. elif test $ac_cv_prog_cxx_g = yes; then
  10518. if test "$GXX" = yes; then
  10519. CXXFLAGS="-g -O2"
  10520. else
  10521. CXXFLAGS="-g"
  10522. fi
  10523. else
  10524. if test "$GXX" = yes; then
  10525. CXXFLAGS="-O2"
  10526. else
  10527. CXXFLAGS=
  10528. fi
  10529. fi
  10530. else
  10531. CXX=
  10532. CXXFLAGS=
  10533. fi
  10534. # Done checking C++
  10535. # Enable openDWG option
  10536. echo $ac_n "checking whether to use openDWG""... $ac_c" 1>&6
  10537. echo "configure:13300: checking whether to use openDWG" >&5
  10538. echo "$ac_t"""$with_opendwg"" 1>&6
  10539. case "$with_opendwg" in
  10540. "no") USE_OPENDWG= ;;
  10541. "yes") USE_OPENDWG="1" ;;
  10542. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10543. esac
  10544. OPENDWGINCPATH=
  10545. OPENDWGLIBPATH=
  10546. OPENDWGLIB=
  10547. if test -n "${USE_OPENDWG}"; then
  10548. # With OPENDWG includes directory
  10549. echo $ac_n "checking for location of openDGW includes""... $ac_c" 1>&6
  10550. echo "configure:13320: checking for location of openDGW includes" >&5
  10551. case "$with_opendwg_includes" in
  10552. y | ye | yes | n | no)
  10553. { echo "configure: error: *** You must supply a directory to --with-opendwg-includes." 1>&2; exit 1; }
  10554. ;;
  10555. esac
  10556. echo "$ac_t""$with_opendwg_includes" 1>&6
  10557. if test -n "$with_opendwg_includes" ; then
  10558. for dir in $with_opendwg_includes; do
  10559. if test -d "$dir"; then
  10560. OPENDWGINCPATH="$OPENDWGINCPATH -I$dir"
  10561. else
  10562. { echo "configure: error: *** openDGW includes directory $dir does not exist." 1>&2; exit 1; }
  10563. fi
  10564. done
  10565. fi
  10566. ac_save_cppflags="$CPPFLAGS"
  10567. CPPFLAGS="$OPENDWGINCPATH $CPPFLAGS"
  10568. for ac_hdr in ad2.h
  10569. do
  10570. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10571. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10572. echo "configure:13346: checking for $ac_hdr" >&5
  10573. cat > conftest.$ac_ext <<EOF
  10574. #line 13349 "configure"
  10575. #include "confdefs.h"
  10576. #include <$ac_hdr>
  10577. EOF
  10578. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10579. { (eval echo configure:13354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10580. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10581. if test -z "$ac_err"; then
  10582. rm -rf conftest*
  10583. eval "ac_cv_header_$ac_safe=yes"
  10584. else
  10585. echo "$ac_err" >&5
  10586. echo "configure: failed program was:" >&5
  10587. cat conftest.$ac_ext >&5
  10588. rm -rf conftest*
  10589. eval "ac_cv_header_$ac_safe=no"
  10590. fi
  10591. rm -f conftest*
  10592. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10593. echo "$ac_t""yes" 1>&6
  10594. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10595. cat >> confdefs.h <<EOF
  10596. #define $ac_tr_hdr 1
  10597. EOF
  10598. else
  10599. echo "$ac_t""no" 1>&6
  10600. { echo "configure: error: *** Unable to locate openDWG includes." 1>&2; exit 1; }
  10601. fi
  10602. done
  10603. CPPFLAGS=$ac_save_cppflags
  10604. # With OPENDWG library directory
  10605. echo $ac_n "checking for location of openDWG library""... $ac_c" 1>&6
  10606. echo "configure:13388: checking for location of openDWG library" >&5
  10607. case "$with_opendwg_libs" in
  10608. y | ye | yes | n | no)
  10609. { echo "configure: error: *** You must supply a directory to --with-opendwg-libs." 1>&2; exit 1; }
  10610. ;;
  10611. esac
  10612. echo "$ac_t""$with_opendwg_libs" 1>&6
  10613. if test -n "$with_opendwg_libs"; then
  10614. for dir in $with_opendwg_libs; do
  10615. if test -d "$dir"; then
  10616. OPENDWGLIBPATH="$OPENDWGLIBPATH -L$dir"
  10617. else
  10618. { echo "configure: error: *** openDWG library directory $dir does not exist." 1>&2; exit 1; }
  10619. fi
  10620. done
  10621. fi
  10622. #search for ad2.a, ad3.a ... in openDWG toolkit directory:
  10623. #FIX ME how to program this test??
  10624. #LOC_CHECK_LIBS(ad?.a,adSeekLayer,openDWG,$OPENDWGLIBPATH,OPENDWGLIB,,)
  10625. #
  10626. #for now hack (but working):
  10627. TRUEOPENDWGLIBPATH=`echo "$OPENDWGLIBPATH" | cut -b3-`
  10628. adlib=`ls -1 "$TRUEOPENDWGLIBPATH"/ad?.a | tail -1`
  10629. OPENDWGLIB="$adlib"
  10630. fi # $USE_OPENDWG
  10631. # Done checking OPENDWG
  10632. # Enable pthread option
  10633. echo $ac_n "checking whether to use POSIX threads""... $ac_c" 1>&6
  10634. echo "configure:13429: checking whether to use POSIX threads" >&5
  10635. echo "$ac_t"""$with_pthread"" 1>&6
  10636. case "$with_pthread" in
  10637. "no") USE_PTHREAD= ;;
  10638. "yes") USE_PTHREAD="1" ;;
  10639. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10640. esac
  10641. PTHREADINCPATH=
  10642. PTHREADLIBPATH=
  10643. PTHREADLIB=
  10644. if test -n "$USE_PTHREAD"; then
  10645. # With pthread includes directory
  10646. echo $ac_n "checking for location of POSIX threads includes""... $ac_c" 1>&6
  10647. echo "configure:13449: checking for location of POSIX threads includes" >&5
  10648. case "$with_pthread_includes" in
  10649. y | ye | yes | n | no)
  10650. { echo "configure: error: *** You must supply a directory to --with-pthread-includes." 1>&2; exit 1; }
  10651. ;;
  10652. esac
  10653. echo "$ac_t""$with_pthread_includes" 1>&6
  10654. if test -n "$with_pthread_includes" ; then
  10655. for dir in $with_pthread_includes; do
  10656. if test -d "$dir"; then
  10657. PTHREADINCPATH="$PTHREADINCPATH -I$dir"
  10658. else
  10659. { echo "configure: error: *** POSIX threads includes directory $dir does not exist." 1>&2; exit 1; }
  10660. fi
  10661. done
  10662. fi
  10663. ac_save_cppflags="$CPPFLAGS"
  10664. CPPFLAGS="$PTHREADINCPATH $CPPFLAGS"
  10665. for ac_hdr in pthread.h
  10666. do
  10667. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10668. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10669. echo "configure:13475: checking for $ac_hdr" >&5
  10670. cat > conftest.$ac_ext <<EOF
  10671. #line 13478 "configure"
  10672. #include "confdefs.h"
  10673. #include <$ac_hdr>
  10674. EOF
  10675. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10676. { (eval echo configure:13483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10677. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10678. if test -z "$ac_err"; then
  10679. rm -rf conftest*
  10680. eval "ac_cv_header_$ac_safe=yes"
  10681. else
  10682. echo "$ac_err" >&5
  10683. echo "configure: failed program was:" >&5
  10684. cat conftest.$ac_ext >&5
  10685. rm -rf conftest*
  10686. eval "ac_cv_header_$ac_safe=no"
  10687. fi
  10688. rm -f conftest*
  10689. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10690. echo "$ac_t""yes" 1>&6
  10691. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10692. cat >> confdefs.h <<EOF
  10693. #define $ac_tr_hdr 1
  10694. EOF
  10695. else
  10696. echo "$ac_t""no" 1>&6
  10697. { echo "configure: error: *** Unable to locate POSIX threads includes." 1>&2; exit 1; }
  10698. fi
  10699. done
  10700. CPPFLAGS=$ac_save_cppflags
  10701. # With pthread library directory
  10702. echo $ac_n "checking for location of POSIX threads library""... $ac_c" 1>&6
  10703. echo "configure:13517: checking for location of POSIX threads library" >&5
  10704. case "$with_pthread_libs" in
  10705. y | ye | yes | n | no)
  10706. { echo "configure: error: *** You must supply a directory to --with-pthread-libs." 1>&2; exit 1; }
  10707. ;;
  10708. esac
  10709. echo "$ac_t""$with_pthread_libs" 1>&6
  10710. if test -n "$with_pthread_libs"; then
  10711. for dir in $with_pthread_libs; do
  10712. if test -d "$dir"; then
  10713. PTHREADLIBPATH="$PTHREADLIBPATH -L$dir"
  10714. else
  10715. { echo "configure: error: *** POSIX threads library directory $dir does not exist." 1>&2; exit 1; }
  10716. fi
  10717. done
  10718. fi
  10719. ac_save_libs="$LIBS"
  10720. ac_save_ldflags="$LDFLAGS"
  10721. LIBS=" $LIBS"
  10722. LDFLAGS=" $LDFLAGS"
  10723. echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
  10724. echo "configure:13542: checking for pthread_create" >&5
  10725. cat > conftest.$ac_ext <<EOF
  10726. #line 13545 "configure"
  10727. #include "confdefs.h"
  10728. /* System header to define __stub macros and hopefully few prototypes,
  10729. which can conflict with char pthread_create(); below. */
  10730. #include <assert.h>
  10731. /* Override any gcc2 internal prototype to avoid an error. */
  10732. /* We use char because int might match the return type of a gcc2
  10733. builtin and then its argument prototype would still apply. */
  10734. char pthread_create();
  10735. int main() {
  10736. /* The GNU C library defines this for functions which it implements
  10737. to always fail with ENOSYS. Some functions are actually named
  10738. something starting with __ and the normal name is an alias. */
  10739. #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
  10740. choke me
  10741. #else
  10742. pthread_create();
  10743. #endif
  10744. ; return 0; }
  10745. EOF
  10746. if { (eval echo configure:13568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10747. rm -rf conftest*
  10748. eval "ac_cv_func_pthread_create=yes"
  10749. else
  10750. echo "configure: failed program was:" >&5
  10751. cat conftest.$ac_ext >&5
  10752. rm -rf conftest*
  10753. eval "ac_cv_func_pthread_create=no"
  10754. fi
  10755. rm -f conftest*
  10756. if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
  10757. echo "$ac_t""yes" 1>&6
  10758. PTHREADLIB="$PTHREADLIB "
  10759. else
  10760. echo "$ac_t""no" 1>&6
  10761. ac_save_ldflags="$LDFLAGS"
  10762. LDFLAGS="$PTHREADLIBPATH $LDFLAGS"
  10763. echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
  10764. echo "configure:13595: checking for pthread_create in -lpthread" >&5
  10765. ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
  10766. ac_save_LIBS="$LIBS"
  10767. LIBS="-lpthread $LIBS"
  10768. cat > conftest.$ac_ext <<EOF
  10769. #line 13601 "configure"
  10770. #include "confdefs.h"
  10771. /* Override any gcc2 internal prototype to avoid an error. */
  10772. /* We use char because int might match the return type of a gcc2
  10773. builtin and then its argument prototype would still apply. */
  10774. char pthread_create();
  10775. int main() {
  10776. pthread_create()
  10777. ; return 0; }
  10778. EOF
  10779. if { (eval echo configure:13612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10780. rm -rf conftest*
  10781. eval "ac_cv_lib_$ac_lib_var=yes"
  10782. else
  10783. echo "configure: failed program was:" >&5
  10784. cat conftest.$ac_ext >&5
  10785. rm -rf conftest*
  10786. eval "ac_cv_lib_$ac_lib_var=no"
  10787. fi
  10788. rm -f conftest*
  10789. LIBS="$ac_save_LIBS"
  10790. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10791. echo "$ac_t""yes" 1>&6
  10792. PTHREADLIB="$PTHREADLIB -lpthread "
  10793. else
  10794. echo "$ac_t""no" 1>&6
  10795. LDFLAGS=${ac_save_ldflags}
  10796. { echo "configure: error: *** Unable to locate POSIX threads library." 1>&2; exit 1; }
  10797. fi
  10798. LDFLAGS=${ac_save_ldflags}
  10799. fi
  10800. LIBS=${ac_save_libs}
  10801. LDFLAGS=${ac_save_ldflags}
  10802. fi # $USE_PTHREAD
  10803. # Done checking pthread
  10804. # Enable LFS (from cdr-tools)
  10805. # Check whether --enable-largefile or --disable-largefile was given.
  10806. if test "${enable_largefile+set}" = set; then
  10807. enableval="$enable_largefile"
  10808. :
  10809. fi
  10810. if test "$enable_largefile" = yes; then
  10811. echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
  10812. echo "configure:13668: checking for special C compiler options needed for large files" >&5
  10813. ac_cv_sys_largefile_CC=no
  10814. largefile_cc_opt=""
  10815. if test "$GCC" != yes; then
  10816. # IRIX 6.2 and later do not support large files by default,
  10817. # so use the C compiler's -n32 option if that helps.
  10818. cat > conftest.$ac_ext <<EOF
  10819. #line 13676 "configure"
  10820. #include "confdefs.h"
  10821. #include <sys/types.h>
  10822. /* Check that off_t can represent 2**63 - 1 correctly.
  10823. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10824. since some C++ compilers masquerading as C compilers
  10825. incorrectly reject 9223372036854775807. */
  10826. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10827. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10828. && LARGE_OFF_T % 2147483647 == 1)
  10829. ? 1 : -1];
  10830. int main() {
  10831. ; return 0; }
  10832. EOF
  10833. if { (eval echo configure:13692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10834. :
  10835. else
  10836. echo "configure: failed program was:" >&5
  10837. cat conftest.$ac_ext >&5
  10838. rm -rf conftest*
  10839. ac_save_CC="${CC-cc}"
  10840. CC="$CC -n32"
  10841. cat > conftest.$ac_ext <<EOF
  10842. #line 13701 "configure"
  10843. #include "confdefs.h"
  10844. #include <sys/types.h>
  10845. /* Check that off_t can represent 2**63 - 1 correctly.
  10846. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10847. since some C++ compilers masquerading as C compilers
  10848. incorrectly reject 9223372036854775807. */
  10849. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10850. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10851. && LARGE_OFF_T % 2147483647 == 1)
  10852. ? 1 : -1];
  10853. int main() {
  10854. ; return 0; }
  10855. EOF
  10856. if { (eval echo configure:13717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10857. rm -rf conftest*
  10858. ac_cv_sys_largefile_CC=' -n32'
  10859. else
  10860. echo "configure: failed program was:" >&5
  10861. cat conftest.$ac_ext >&5
  10862. fi
  10863. rm -f conftest*
  10864. CC="$ac_save_CC"
  10865. fi
  10866. rm -f conftest*
  10867. fi
  10868. echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6
  10869. if test "$ac_cv_sys_largefile_CC" != no; then
  10870. CC="$CC$ac_cv_sys_largefile_CC"
  10871. largefile_cc_opt="$ac_cv_sys_largefile_CC"
  10872. fi
  10873. echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
  10874. echo "configure:13737: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  10875. ac_cv_sys_file_offset_bits=no
  10876. cat > conftest.$ac_ext <<EOF
  10877. #line 13741 "configure"
  10878. #include "confdefs.h"
  10879. #include <sys/types.h>
  10880. /* Check that off_t can represent 2**63 - 1 correctly.
  10881. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10882. since some C++ compilers masquerading as C compilers
  10883. incorrectly reject 9223372036854775807. */
  10884. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10885. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10886. && LARGE_OFF_T % 2147483647 == 1)
  10887. ? 1 : -1];
  10888. int main() {
  10889. ; return 0; }
  10890. EOF
  10891. if { (eval echo configure:13757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10892. :
  10893. else
  10894. echo "configure: failed program was:" >&5
  10895. cat conftest.$ac_ext >&5
  10896. rm -rf conftest*
  10897. cat > conftest.$ac_ext <<EOF
  10898. #line 13764 "configure"
  10899. #include "confdefs.h"
  10900. #define _FILE_OFFSET_BITS 64
  10901. #include <sys/types.h>
  10902. /* Check that off_t can represent 2**63 - 1 correctly.
  10903. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10904. since some C++ compilers masquerading as C compilers
  10905. incorrectly reject 9223372036854775807. */
  10906. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10907. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10908. && LARGE_OFF_T % 2147483647 == 1)
  10909. ? 1 : -1];
  10910. int main() {
  10911. ; return 0; }
  10912. EOF
  10913. if { (eval echo configure:13782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10914. rm -rf conftest*
  10915. ac_cv_sys_file_offset_bits=64
  10916. else
  10917. echo "configure: failed program was:" >&5
  10918. cat conftest.$ac_ext >&5
  10919. fi
  10920. rm -f conftest*
  10921. fi
  10922. rm -f conftest*
  10923. echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
  10924. if test "$ac_cv_sys_file_offset_bits" != no; then
  10925. cat >> confdefs.h <<EOF
  10926. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  10927. EOF
  10928. fi
  10929. echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
  10930. echo "configure:13801: checking for _LARGE_FILES value needed for large files" >&5
  10931. ac_cv_sys_large_files=no
  10932. cat > conftest.$ac_ext <<EOF
  10933. #line 13805 "configure"
  10934. #include "confdefs.h"
  10935. #include <sys/types.h>
  10936. /* Check that off_t can represent 2**63 - 1 correctly.
  10937. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10938. since some C++ compilers masquerading as C compilers
  10939. incorrectly reject 9223372036854775807. */
  10940. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10941. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10942. && LARGE_OFF_T % 2147483647 == 1)
  10943. ? 1 : -1];
  10944. int main() {
  10945. ; return 0; }
  10946. EOF
  10947. if { (eval echo configure:13821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10948. :
  10949. else
  10950. echo "configure: failed program was:" >&5
  10951. cat conftest.$ac_ext >&5
  10952. rm -rf conftest*
  10953. cat > conftest.$ac_ext <<EOF
  10954. #line 13828 "configure"
  10955. #include "confdefs.h"
  10956. #define _LARGE_FILES 1
  10957. #include <sys/types.h>
  10958. /* Check that off_t can represent 2**63 - 1 correctly.
  10959. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10960. since some C++ compilers masquerading as C compilers
  10961. incorrectly reject 9223372036854775807. */
  10962. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10963. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10964. && LARGE_OFF_T % 2147483647 == 1)
  10965. ? 1 : -1];
  10966. int main() {
  10967. ; return 0; }
  10968. EOF
  10969. if { (eval echo configure:13846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10970. rm -rf conftest*
  10971. ac_cv_sys_large_files=1
  10972. else
  10973. echo "configure: failed program was:" >&5
  10974. cat conftest.$ac_ext >&5
  10975. fi
  10976. rm -f conftest*
  10977. fi
  10978. rm -f conftest*
  10979. echo "$ac_t""$ac_cv_sys_large_files" 1>&6
  10980. if test "$ac_cv_sys_large_files" != no; then
  10981. cat >> confdefs.h <<EOF
  10982. #define _LARGE_FILES $ac_cv_sys_large_files
  10983. EOF
  10984. fi
  10985. echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
  10986. echo "configure:13865: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  10987. ac_cv_sys_largefile_source=no
  10988. cat > conftest.$ac_ext <<EOF
  10989. #line 13869 "configure"
  10990. #include "confdefs.h"
  10991. #include <stdio.h>
  10992. int main() {
  10993. return !fseeko;
  10994. ; return 0; }
  10995. EOF
  10996. if { (eval echo configure:13876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10997. :
  10998. else
  10999. echo "configure: failed program was:" >&5
  11000. cat conftest.$ac_ext >&5
  11001. rm -rf conftest*
  11002. cat > conftest.$ac_ext <<EOF
  11003. #line 13883 "configure"
  11004. #include "confdefs.h"
  11005. #define _LARGEFILE_SOURCE 1
  11006. #include <stdio.h>
  11007. int main() {
  11008. return !fseeko;
  11009. ; return 0; }
  11010. EOF
  11011. if { (eval echo configure:13892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11012. rm -rf conftest*
  11013. ac_cv_sys_largefile_source=1
  11014. else
  11015. echo "configure: failed program was:" >&5
  11016. cat conftest.$ac_ext >&5
  11017. fi
  11018. rm -f conftest*
  11019. fi
  11020. rm -f conftest*
  11021. echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
  11022. if test "$ac_cv_sys_largefile_source" != no; then
  11023. cat >> confdefs.h <<EOF
  11024. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  11025. EOF
  11026. fi
  11027. fi
  11028. echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
  11029. echo "configure:13913: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  11030. ac_cv_sys_largefile_source=no
  11031. cat > conftest.$ac_ext <<EOF
  11032. #line 13917 "configure"
  11033. #include "confdefs.h"
  11034. #include <stdio.h>
  11035. int main() {
  11036. return !fseeko;
  11037. ; return 0; }
  11038. EOF
  11039. if { (eval echo configure:13924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11040. :
  11041. else
  11042. echo "configure: failed program was:" >&5
  11043. cat conftest.$ac_ext >&5
  11044. rm -rf conftest*
  11045. cat > conftest.$ac_ext <<EOF
  11046. #line 13931 "configure"
  11047. #include "confdefs.h"
  11048. #define _LARGEFILE_SOURCE 1
  11049. #include <stdio.h>
  11050. int main() {
  11051. return !fseeko;
  11052. ; return 0; }
  11053. EOF
  11054. if { (eval echo configure:13940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11055. rm -rf conftest*
  11056. ac_cv_sys_largefile_source=1
  11057. else
  11058. echo "configure: failed program was:" >&5
  11059. cat conftest.$ac_ext >&5
  11060. fi
  11061. rm -f conftest*
  11062. fi
  11063. rm -f conftest*
  11064. echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
  11065. if test "$ac_cv_sys_largefile_source" != no; then
  11066. cat >> confdefs.h <<EOF
  11067. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  11068. EOF
  11069. fi
  11070. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  11071. # in glibc 2.1.3, but that breaks too many other things.
  11072. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  11073. echo $ac_n "checking for fseeko""... $ac_c" 1>&6
  11074. echo "configure:13963: checking for fseeko" >&5
  11075. ac_cv_func_fseeko=no
  11076. cat > conftest.$ac_ext <<EOF
  11077. #line 13967 "configure"
  11078. #include "confdefs.h"
  11079. #include <stdio.h>
  11080. int main() {
  11081. return fseeko && fseeko (stdin, 0, 0);
  11082. ; return 0; }
  11083. EOF
  11084. if { (eval echo configure:13974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  11085. rm -rf conftest*
  11086. ac_cv_func_fseeko=yes
  11087. else
  11088. echo "configure: failed program was:" >&5
  11089. cat conftest.$ac_ext >&5
  11090. fi
  11091. rm -f conftest*
  11092. echo "$ac_t""$ac_cv_func_fseeko" 1>&6
  11093. if test $ac_cv_func_fseeko != no; then
  11094. cat >> confdefs.h <<\EOF
  11095. #define HAVE_FSEEKO 1
  11096. EOF
  11097. fi
  11098. echo $ac_n "checking if system supports Large Files at all""... $ac_c" 1>&6
  11099. echo "configure:13991: checking if system supports Large Files at all" >&5
  11100. cat > conftest.$ac_ext <<EOF
  11101. #line 13994 "configure"
  11102. #include "confdefs.h"
  11103. #include <stdio.h>
  11104. #include <sys/types.h>
  11105. int main() {
  11106. /*
  11107. * Check that off_t can represent 2**63 - 1 correctly.
  11108. * We can't simply "#define LARGE_OFF_T 9223372036854775807",
  11109. * since some C++ compilers masquerading as C compilers
  11110. * incorrectly reject 9223372036854775807.
  11111. *
  11112. * For MinGW, off64_t should be used and __MSVCRT_VERSION__ >= 0x0601
  11113. * (msvcrt.dll version 6.10 or higher) is needed for _fstat64 and _stat64.
  11114. */
  11115. #ifdef __MINGW32__
  11116. # define LARGE_OFF_T (((off64_t) 1 << 62) - 1 + ((off64_t) 1 << 62))
  11117. #else
  11118. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11119. #endif
  11120. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11121. && LARGE_OFF_T % 2147483647 == 1)
  11122. ? 1 : -1];
  11123. #ifdef __MINGW32__
  11124. return !fseeko64;
  11125. return !ftello64;
  11126. #else
  11127. return !fseeko;
  11128. return !ftello;
  11129. #endif
  11130. ; return 0; }
  11131. EOF
  11132. if { (eval echo configure:14026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11133. rm -rf conftest*
  11134. ac_cv_largefiles=yes
  11135. else
  11136. echo "configure: failed program was:" >&5
  11137. cat conftest.$ac_ext >&5
  11138. rm -rf conftest*
  11139. ac_cv_largefiles=no
  11140. fi
  11141. rm -f conftest*
  11142. echo "$ac_t""$ac_cv_largefiles" 1>&6
  11143. if test $ac_cv_largefiles = yes; then
  11144. cat >> confdefs.h <<\EOF
  11145. #define HAVE_LARGEFILES 1
  11146. EOF
  11147. fi
  11148. USE_LARGEFILES=
  11149. if test $ac_cv_largefiles = yes; then
  11150. USE_LARGEFILES=1
  11151. fi
  11152. # Done large file support
  11153. # Python check
  11154. echo $ac_n "checking whether to use Python""... $ac_c" 1>&6
  11155. echo "configure:14055: checking whether to use Python" >&5
  11156. PYTHONINC=
  11157. PYTHONCFLAGS=
  11158. PYTHONLDFLAGS=
  11159. SWIG=
  11160. USE_PYTHON=
  11161. MACOSX_ARCHS_PYTHON=
  11162. if test "$with_python" = "no" ; then
  11163. echo "$ac_t""no" 1>&6
  11164. else
  11165. echo "$ac_t""yes" 1>&6
  11166. USE_PYTHON="1"
  11167. if test "$with_python" != "yes" ; then
  11168. PY_CONFIG="$with_python"
  11169. fi
  11170. # Extract the first word of "python-config", so it can be a program name with args.
  11171. set dummy python-config; ac_word=$2
  11172. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  11173. echo "configure:14076: checking for $ac_word" >&5
  11174. case "$PY_CONFIG" in
  11175. /*)
  11176. ac_cv_path_PY_CONFIG="$PY_CONFIG" # Let the user override the test with a path.
  11177. ;;
  11178. ?:/*)
  11179. ac_cv_path_PY_CONFIG="$PY_CONFIG" # Let the user override the test with a dos path.
  11180. ;;
  11181. *)
  11182. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  11183. ac_dummy="$PATH"
  11184. for ac_dir in $ac_dummy; do
  11185. test -z "$ac_dir" && ac_dir=.
  11186. if test -f $ac_dir/$ac_word; then
  11187. ac_cv_path_PY_CONFIG="$ac_dir/$ac_word"
  11188. break
  11189. fi
  11190. done
  11191. IFS="$ac_save_ifs"
  11192. test -z "$ac_cv_path_PY_CONFIG" && ac_cv_path_PY_CONFIG="no"
  11193. ;;
  11194. esac
  11195. PY_CONFIG="$ac_cv_path_PY_CONFIG"
  11196. if test -n "$PY_CONFIG"; then
  11197. echo "$ac_t""$PY_CONFIG" 1>&6
  11198. else
  11199. echo "$ac_t""no" 1>&6
  11200. fi
  11201. if test "$PY_CONFIG" != "no" ; then
  11202. # With Python includes directory
  11203. PYTHONINC=`"$PY_CONFIG" --includes`
  11204. ac_save_cppflags="$CPPFLAGS"
  11205. CPPFLAGS="$PYTHONINC $CPPFLAGS"
  11206. for ac_hdr in Python.h
  11207. do
  11208. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  11209. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  11210. echo "configure:14118: checking for $ac_hdr" >&5
  11211. cat > conftest.$ac_ext <<EOF
  11212. #line 14121 "configure"
  11213. #include "confdefs.h"
  11214. #include <$ac_hdr>
  11215. EOF
  11216. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  11217. { (eval echo configure:14126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  11218. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  11219. if test -z "$ac_err"; then
  11220. rm -rf conftest*
  11221. eval "ac_cv_header_$ac_safe=yes"
  11222. else
  11223. echo "$ac_err" >&5
  11224. echo "configure: failed program was:" >&5
  11225. cat conftest.$ac_ext >&5
  11226. rm -rf conftest*
  11227. eval "ac_cv_header_$ac_safe=no"
  11228. fi
  11229. rm -f conftest*
  11230. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  11231. echo "$ac_t""yes" 1>&6
  11232. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  11233. cat >> confdefs.h <<EOF
  11234. #define $ac_tr_hdr 1
  11235. EOF
  11236. else
  11237. echo "$ac_t""no" 1>&6
  11238. { echo "configure: error: *** Unable to locate Python includes." 1>&2; exit 1; }
  11239. fi
  11240. done
  11241. CPPFLAGS=$ac_save_cppflags
  11242. PYTHONCFLAGS=`"$PY_CONFIG" --cflags`
  11243. # With Python library directory
  11244. PYTHONLDFLAGS=`"$PY_CONFIG" --ldflags`
  11245. # shouldn't have arch flags in C/LD flags on OSX
  11246. for a in i386 ppc x86_64 ppc64
  11247. do
  11248. PYTHONCFLAGS=`echo "$PYTHONCFLAGS" | sed "s/-arch *$a//g"`
  11249. PYTHONLDFLAGS=`echo "$PYTHONLDFLAGS" | sed "s/-arch *$a//g"`
  11250. done
  11251. fi
  11252. # look for the swig program
  11253. # Extract the first word of "swig", so it can be a program name with args.
  11254. set dummy swig; ac_word=$2
  11255. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  11256. echo "configure:14174: checking for $ac_word" >&5
  11257. case "$SWIG" in
  11258. /*)
  11259. ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
  11260. ;;
  11261. ?:/*)
  11262. ac_cv_path_SWIG="$SWIG" # Let the user override the test with a dos path.
  11263. ;;
  11264. *)
  11265. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  11266. ac_dummy="$PATH"
  11267. for ac_dir in $ac_dummy; do
  11268. test -z "$ac_dir" && ac_dir=.
  11269. if test -f $ac_dir/$ac_word; then
  11270. ac_cv_path_SWIG="$ac_dir/$ac_word"
  11271. break
  11272. fi
  11273. done
  11274. IFS="$ac_save_ifs"
  11275. test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="no"
  11276. ;;
  11277. esac
  11278. SWIG="$ac_cv_path_SWIG"
  11279. if test -n "$SWIG"; then
  11280. echo "$ac_t""$SWIG" 1>&6
  11281. else
  11282. echo "$ac_t""no" 1>&6
  11283. fi
  11284. # if test "$SWIG" = "no" ; then
  11285. # AC_MSG_ERROR([*** couldn't find swig])
  11286. # fi
  11287. # check for available OSX archs in Python, assume framework
  11288. if test -n "$MACOSX_ARCHS" ; then
  11289. pylib=`"$PY_CONFIG" --prefix`/Python
  11290. pylibinfo=`file -L "$pylib"`
  11291. for a in i386 ppc x86_64 ppc64
  11292. do
  11293. # add only if in MACOSX_ARCHS
  11294. if test -n "`echo \"$pylibinfo\" | grep \"library $a\"`" ; then
  11295. if test -n "`echo "$MACOSX_ARCHS" | grep $a`" ; then
  11296. MACOSX_ARCHS_PYTHON="$MACOSX_ARCHS_PYTHON -arch $a"
  11297. fi
  11298. fi
  11299. done
  11300. fi
  11301. fi # Done checking Python
  11302. # Enable wxWidgets support (for wxGUI)
  11303. echo $ac_n "checking whether to use wxWidgets""... $ac_c" 1>&6
  11304. echo "configure:14236: checking whether to use wxWidgets" >&5
  11305. WXVERSION=
  11306. WXWIDGETSCXXFLAGS=
  11307. WXWIDGETSCPPFLAGS=
  11308. WXWIDGETSLIB=
  11309. USE_WXWIDGETS=
  11310. MACOSX_ARCHS_WXPYTHON=
  11311. if test "$with_wxwidgets" = "no" ; then
  11312. echo "$ac_t""no" 1>&6
  11313. else
  11314. echo "$ac_t""yes" 1>&6
  11315. USE_WXWIDGETS="1"
  11316. if test "$with_wxwidgets" != "yes" ; then
  11317. WX_CONFIG="$with_wxwidgets"
  11318. fi
  11319. # Extract the first word of "wx-config", so it can be a program name with args.
  11320. set dummy wx-config; ac_word=$2
  11321. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  11322. echo "configure:14257: checking for $ac_word" >&5
  11323. case "$WX_CONFIG" in
  11324. /*)
  11325. ac_cv_path_WX_CONFIG="$WX_CONFIG" # Let the user override the test with a path.
  11326. ;;
  11327. ?:/*)
  11328. ac_cv_path_WX_CONFIG="$WX_CONFIG" # 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_WX_CONFIG="$ac_dir/$ac_word"
  11337. break
  11338. fi
  11339. done
  11340. IFS="$ac_save_ifs"
  11341. test -z "$ac_cv_path_WX_CONFIG" && ac_cv_path_WX_CONFIG="no"
  11342. ;;
  11343. esac
  11344. WX_CONFIG="$ac_cv_path_WX_CONFIG"
  11345. if test -n "$WX_CONFIG"; then
  11346. echo "$ac_t""$WX_CONFIG" 1>&6
  11347. else
  11348. echo "$ac_t""no" 1>&6
  11349. fi
  11350. if test "$WX_CONFIG" = "no" ; then
  11351. { echo "configure: error: *** couldn't find wx-config
  11352. wxWidgets must be installed on your system.
  11353. Please check that wx-config is in path, the directory
  11354. where wxWidgets libraries are installed (returned by
  11355. 'wx-config --libs' or 'wx-config --static --libs' command)
  11356. is in LD_LIBRARY_PATH or equivalent variable and
  11357. wxWidgets version is 2.8.1 or above." 1>&2; exit 1; }
  11358. fi
  11359. # Check wxWidgets version
  11360. REQWX="2.8.1"
  11361. echo $ac_n "checking wxWidgets version""... $ac_c" 1>&6
  11362. echo "configure:14305: checking wxWidgets version" >&5
  11363. if WXVERSION=`"$WX_CONFIG" --version`; then
  11364. echo "$ac_t""$WXVERSION" 1>&6
  11365. else
  11366. echo "$ac_t""not found" 1>&6
  11367. { echo "configure: error: wxWidgets is required." 1>&2; exit 1; }
  11368. fi
  11369. if test `expr "$WXVERSION" \< "$REQWX"` = 1 ; then
  11370. { echo "configure: error: *** wxWidgets "$REQWX" or later is required." 1>&2; exit 1; }
  11371. fi
  11372. # With wxWidgets includes directory
  11373. WXWIDGETSCXXFLAGS=`"$WX_CONFIG" --cxxflags`
  11374. WXWIDGETSCPPFLAGS=`"$WX_CONFIG" --cppflags`
  11375. ac_save_cppflags="$CPPFLAGS"
  11376. CPPFLAGS="$WXWIDGETSCPPFLAGS $CPPFLAGS"
  11377. for ac_hdr in wx/wxprec.h
  11378. do
  11379. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  11380. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  11381. echo "configure:14328: checking for $ac_hdr" >&5
  11382. cat > conftest.$ac_ext <<EOF
  11383. #line 14331 "configure"
  11384. #include "confdefs.h"
  11385. #include <$ac_hdr>
  11386. EOF
  11387. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  11388. { (eval echo configure:14336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  11389. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  11390. if test -z "$ac_err"; then
  11391. rm -rf conftest*
  11392. eval "ac_cv_header_$ac_safe=yes"
  11393. else
  11394. echo "$ac_err" >&5
  11395. echo "configure: failed program was:" >&5
  11396. cat conftest.$ac_ext >&5
  11397. rm -rf conftest*
  11398. eval "ac_cv_header_$ac_safe=no"
  11399. fi
  11400. rm -f conftest*
  11401. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  11402. echo "$ac_t""yes" 1>&6
  11403. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  11404. cat >> confdefs.h <<EOF
  11405. #define $ac_tr_hdr 1
  11406. EOF
  11407. else
  11408. echo "$ac_t""no" 1>&6
  11409. { echo "configure: error: *** Unable to locate wxWidgets includes." 1>&2; exit 1; }
  11410. fi
  11411. done
  11412. CPPFLAGS=$ac_save_cppflags
  11413. # With wxWidgets library directory
  11414. WXWIDGETSLIB=`"$WX_CONFIG" --libs`
  11415. # shouldn't have arch flags in C/LD flags on OSX
  11416. for a in i386 ppc x86_64 ppc64
  11417. do
  11418. WXWIDGETSCXXFLAGS=`echo "$WXWIDGETSCXXFLAGS" | sed "s/-arch *$a//g"`
  11419. WXWIDGETSCPPFLAGS=`echo "$WXWIDGETSCPPFLAGS" | sed "s/-arch *$a//g"`
  11420. WXWIDGETSLIB=`echo "$WXWIDGETSLIB" | sed "s/-arch *$a//g"`
  11421. done
  11422. # check for available OSX archs in wxPython
  11423. if test -n "$MACOSX_ARCHS" ; then
  11424. wxver=`"$WX_CONFIG" --version`
  11425. wxlib=`"$WX_CONFIG" --prefix`/lib/lib`"$WX_CONFIG" --basename`-`echo "$wxver" | cut -d . -f1,2`.dylib
  11426. wxlibinfo=`file "$wxlib"`
  11427. for a in i386 ppc x86_64 ppc64
  11428. do
  11429. # add only if in MACOSX_ARCHS
  11430. if test -n "`echo \"$wxlibinfo\" | grep \"library $a\"`" ; then
  11431. if test -n "`echo \"$MACOSX_ARCHS\" | grep $a`" ; then
  11432. MACOSX_ARCHS_WXPYTHON="$MACOSX_ARCHS_WXPYTHON -arch $a"
  11433. fi
  11434. fi
  11435. done
  11436. fi
  11437. fi # $USE_WXWIDGETS
  11438. # Done checking wxWidgets
  11439. USE_TERMIO=
  11440. STRIPFLAG=
  11441. GRASS_HOME="${DSTDIR}"
  11442. trap '' 1 2 15
  11443. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  11444. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11445. # Let make expand exec_prefix.
  11446. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11447. # Any assignment to VPATH causes Sun make to only execute
  11448. # the first set of double-colon rules, so remove it if not needed.
  11449. # If there is a colon in the path, we need to keep it.
  11450. if test "x$srcdir" = x.; then
  11451. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  11452. fi
  11453. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  11454. DEFS=-DHAVE_CONFIG_H
  11455. # Without the "./", some shells look in PATH for config.status.
  11456. : ${CONFIG_STATUS=./config.status}
  11457. echo creating $CONFIG_STATUS
  11458. rm -f $CONFIG_STATUS
  11459. cat > $CONFIG_STATUS <<EOF
  11460. #! /bin/sh
  11461. # Generated automatically by configure.
  11462. # Run this file to recreate the current configuration.
  11463. # This directory was configured as follows,
  11464. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11465. #
  11466. # $0 $ac_configure_args
  11467. #
  11468. # Compiler output produced by configure, useful for debugging
  11469. # configure, is in ./config.log if it exists.
  11470. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  11471. for ac_option
  11472. do
  11473. case "\$ac_option" in
  11474. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11475. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  11476. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  11477. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  11478. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  11479. exit 0 ;;
  11480. -help | --help | --hel | --he | --h)
  11481. echo "\$ac_cs_usage"; exit 0 ;;
  11482. *) echo "\$ac_cs_usage"; exit 1 ;;
  11483. esac
  11484. done
  11485. ac_given_srcdir=$srcdir
  11486. ac_given_INSTALL="$INSTALL"
  11487. trap 'rm -fr `echo "include/Make/Platform.make include/Make/Doxyfile_arch_html include/Make/Doxyfile_arch_latex include/version.h swig/perl/Makefile.PL swig/perl2/make.pl grass.pc include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  11488. EOF
  11489. cat >> $CONFIG_STATUS <<EOF
  11490. # Protect against being on the right side of a sed subst in config.status.
  11491. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  11492. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  11493. $ac_vpsub
  11494. $extrasub
  11495. s%@SHELL@%$SHELL%g
  11496. s%@CFLAGS@%$CFLAGS%g
  11497. s%@CPPFLAGS@%$CPPFLAGS%g
  11498. s%@CXXFLAGS@%$CXXFLAGS%g
  11499. s%@FFLAGS@%$FFLAGS%g
  11500. s%@DEFS@%$DEFS%g
  11501. s%@LDFLAGS@%$LDFLAGS%g
  11502. s%@LIBS@%$LIBS%g
  11503. s%@exec_prefix@%$exec_prefix%g
  11504. s%@prefix@%$prefix%g
  11505. s%@program_transform_name@%$program_transform_name%g
  11506. s%@bindir@%$bindir%g
  11507. s%@sbindir@%$sbindir%g
  11508. s%@libexecdir@%$libexecdir%g
  11509. s%@datadir@%$datadir%g
  11510. s%@sysconfdir@%$sysconfdir%g
  11511. s%@sharedstatedir@%$sharedstatedir%g
  11512. s%@localstatedir@%$localstatedir%g
  11513. s%@libdir@%$libdir%g
  11514. s%@includedir@%$includedir%g
  11515. s%@oldincludedir@%$oldincludedir%g
  11516. s%@infodir@%$infodir%g
  11517. s%@mandir@%$mandir%g
  11518. s%@host@%$host%g
  11519. s%@host_alias@%$host_alias%g
  11520. s%@host_cpu@%$host_cpu%g
  11521. s%@host_vendor@%$host_vendor%g
  11522. s%@host_os@%$host_os%g
  11523. s%@CC@%$CC%g
  11524. s%@EXEEXT@%$EXEEXT%g
  11525. s%@MINGW32@%$MINGW32%g
  11526. s%@BINDIR@%$BINDIR%g
  11527. s%@pwd@%$pwd%g
  11528. s%@SRCDIR@%$SRCDIR%g
  11529. s%@DSTDIR@%$DSTDIR%g
  11530. s%@ARCH@%$ARCH%g
  11531. s%@GISBASE@%$GISBASE%g
  11532. s%@GRASS_BIN@%$GRASS_BIN%g
  11533. s%@SVN_VERSION@%$SVN_VERSION%g
  11534. s%@GRASS_VERSION_FILE@%$GRASS_VERSION_FILE%g
  11535. s%@GRASS_VERSION_MAJOR@%$GRASS_VERSION_MAJOR%g
  11536. s%@GRASS_VERSION_MINOR@%$GRASS_VERSION_MINOR%g
  11537. s%@GRASS_VERSION_RELEASE@%$GRASS_VERSION_RELEASE%g
  11538. s%@GRASS_VERSION_NUMBER@%$GRASS_VERSION_NUMBER%g
  11539. s%@GRASS_VERSION_DATE@%$GRASS_VERSION_DATE%g
  11540. s%@GRASS_VERSION_SVN@%$GRASS_VERSION_SVN%g
  11541. s%@NAME_VER@%$NAME_VER%g
  11542. s%@LIB_VER@%$LIB_VER%g
  11543. s%@MACOSX_APP@%$MACOSX_APP%g
  11544. s%@MACOSX_ARCHS@%$MACOSX_ARCHS%g
  11545. s%@MACOSX_SDK@%$MACOSX_SDK%g
  11546. s%@INSTDIR@%$INSTDIR%g
  11547. s%@GRASS_LIB_PREFIX@%$GRASS_LIB_PREFIX%g
  11548. s%@GRASS_LIB_SUFFIX@%$GRASS_LIB_SUFFIX%g
  11549. s%@GRASS_LIBRARY_TYPE@%$GRASS_LIBRARY_TYPE%g
  11550. s%@PLAT_OBJS@%$PLAT_OBJS%g
  11551. s%@CC_SEARCH_FLAGS@%$CC_SEARCH_FLAGS%g
  11552. s%@LD_SEARCH_FLAGS@%$LD_SEARCH_FLAGS%g
  11553. s%@LD_LIBRARY_PATH_VAR@%$LD_LIBRARY_PATH_VAR%g
  11554. s%@SHLIB_LD@%$SHLIB_LD%g
  11555. s%@SHLIB_LD_FLAGS@%$SHLIB_LD_FLAGS%g
  11556. s%@SHLIB_LD_LIBS@%$SHLIB_LD_LIBS%g
  11557. s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
  11558. s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
  11559. s%@STLIB_LD@%$STLIB_LD%g
  11560. s%@STLIB_SUFFIX@%$STLIB_SUFFIX%g
  11561. s%@INCLUDE_DIRS@%$INCLUDE_DIRS%g
  11562. s%@LIBRARY_DIRS@%$LIBRARY_DIRS%g
  11563. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  11564. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  11565. s%@INSTALL_DATA@%$INSTALL_DATA%g
  11566. s%@LEX@%$LEX%g
  11567. s%@LEXLIB@%$LEXLIB%g
  11568. s%@LEXPATH@%$LEXPATH%g
  11569. s%@YACC@%$YACC%g
  11570. s%@YACCPATH@%$YACCPATH%g
  11571. s%@RANLIB@%$RANLIB%g
  11572. s%@AR@%$AR%g
  11573. s%@ENV@%$ENV%g
  11574. s%@PERL@%$PERL%g
  11575. s%@CPP@%$CPP%g
  11576. s%@CROSS_COMPILING@%$CROSS_COMPILING%g
  11577. s%@X_CFLAGS@%$X_CFLAGS%g
  11578. s%@X_LIBS@%$X_LIBS%g
  11579. s%@X_PRE_LIBS@%$X_PRE_LIBS%g
  11580. s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  11581. s%@XLIB@%$XLIB%g
  11582. s%@XTLIB@%$XTLIB%g
  11583. s%@USE_X11@%$USE_X11%g
  11584. s%@DBMIEXTRALIB@%$DBMIEXTRALIB%g
  11585. s%@XDRLIB@%$XDRLIB%g
  11586. s%@HAVE_ASPRINTF@%$HAVE_ASPRINTF%g
  11587. s%@MATHLIB@%$MATHLIB%g
  11588. s%@DLLIB@%$DLLIB%g
  11589. s%@ICONVLIB@%$ICONVLIB%g
  11590. s%@SOCKLIB@%$SOCKLIB%g
  11591. s%@HAVE_SOCKET@%$HAVE_SOCKET%g
  11592. s%@ZLIBINCPATH@%$ZLIBINCPATH%g
  11593. s%@ZLIBLIBPATH@%$ZLIBLIBPATH%g
  11594. s%@ZLIB@%$ZLIB%g
  11595. s%@PROJINC@%$PROJINC%g
  11596. s%@PROJLIB@%$PROJLIB%g
  11597. s%@PROJSHARE@%$PROJSHARE%g
  11598. s%@NAD2BIN@%$NAD2BIN%g
  11599. s%@REGEXINCPATH@%$REGEXINCPATH%g
  11600. s%@REGEXLIBPATH@%$REGEXLIBPATH%g
  11601. s%@REGEXLIB@%$REGEXLIB%g
  11602. s%@USE_REGEX@%$USE_REGEX%g
  11603. s%@READLINEINCPATH@%$READLINEINCPATH%g
  11604. s%@READLINELIBPATH@%$READLINELIBPATH%g
  11605. s%@READLINELIB@%$READLINELIB%g
  11606. s%@HISTORYLIB@%$HISTORYLIB%g
  11607. s%@JPEGINCPATH@%$JPEGINCPATH%g
  11608. s%@JPEGLIBPATH@%$JPEGLIBPATH%g
  11609. s%@JPEGLIB@%$JPEGLIB%g
  11610. s%@GDAL_CONFIG@%$GDAL_CONFIG%g
  11611. s%@GDAL_LIBS@%$GDAL_LIBS%g
  11612. s%@GDAL_CFLAGS@%$GDAL_CFLAGS%g
  11613. s%@USE_GDAL@%$USE_GDAL%g
  11614. s%@USE_OGR@%$USE_OGR%g
  11615. s%@GEOS_CONFIG@%$GEOS_CONFIG%g
  11616. s%@GEOS_LIBS@%$GEOS_LIBS%g
  11617. s%@GEOS_CFLAGS@%$GEOS_CFLAGS%g
  11618. s%@USE_GEOS@%$USE_GEOS%g
  11619. s%@TIFF_INCLUDE_DIRS@%$TIFF_INCLUDE_DIRS%g
  11620. s%@TIFF_LIBRARY_DIRS@%$TIFF_LIBRARY_DIRS%g
  11621. s%@TIFFLIB@%$TIFFLIB%g
  11622. s%@PNGINC@%$PNGINC%g
  11623. s%@PNGLIB@%$PNGLIB%g
  11624. s%@USE_PNG@%$USE_PNG%g
  11625. s%@USE_POSTGRES@%$USE_POSTGRES%g
  11626. s%@PQINCPATH@%$PQINCPATH%g
  11627. s%@PQLIBPATH@%$PQLIBPATH%g
  11628. s%@PQLIB@%$PQLIB%g
  11629. s%@MYSQLD_CONFIG@%$MYSQLD_CONFIG%g
  11630. s%@USE_MYSQL@%$USE_MYSQL%g
  11631. s%@MYSQLINCPATH@%$MYSQLINCPATH%g
  11632. s%@MYSQLLIBPATH@%$MYSQLLIBPATH%g
  11633. s%@MYSQLLIB@%$MYSQLLIB%g
  11634. s%@MYSQLDLIB@%$MYSQLDLIB%g
  11635. s%@USE_SQLITE@%$USE_SQLITE%g
  11636. s%@SQLITEINCPATH@%$SQLITEINCPATH%g
  11637. s%@SQLITELIBPATH@%$SQLITELIBPATH%g
  11638. s%@SQLITELIB@%$SQLITELIB%g
  11639. s%@USE_FFMPEG@%$USE_FFMPEG%g
  11640. s%@FFMPEGINCPATH@%$FFMPEGINCPATH%g
  11641. s%@FFMPEGLIBPATH@%$FFMPEGLIBPATH%g
  11642. s%@FFMPEGLIB@%$FFMPEGLIB%g
  11643. s%@USE_OPENGL@%$USE_OPENGL%g
  11644. s%@OPENGL_X11@%$OPENGL_X11%g
  11645. s%@OPENGL_AQUA@%$OPENGL_AQUA%g
  11646. s%@OPENGL_WINDOWS@%$OPENGL_WINDOWS%g
  11647. s%@OPENGLINC@%$OPENGLINC%g
  11648. s%@OPENGLLIB@%$OPENGLLIB%g
  11649. s%@OPENGLULIB@%$OPENGLULIB%g
  11650. s%@USE_TCLTK@%$USE_TCLTK%g
  11651. s%@TCLINCDIR@%$TCLINCDIR%g
  11652. s%@TKINCDIR@%$TKINCDIR%g
  11653. s%@TCLTKLIBPATH@%$TCLTKLIBPATH%g
  11654. s%@TCLTKLIBS@%$TCLTKLIBS%g
  11655. s%@MACOSX_ARCHS_TCLTK@%$MACOSX_ARCHS_TCLTK%g
  11656. s%@ODBCINC@%$ODBCINC%g
  11657. s%@ODBCLIB@%$ODBCLIB%g
  11658. s%@FFTWINC@%$FFTWINC%g
  11659. s%@FFTWLIB@%$FFTWLIB%g
  11660. s%@BLASLIB@%$BLASLIB%g
  11661. s%@BLASINC@%$BLASINC%g
  11662. s%@LAPACKLIB@%$LAPACKLIB%g
  11663. s%@LAPACKINC@%$LAPACKINC%g
  11664. s%@CAIRO_HAS_XRENDER@%$CAIRO_HAS_XRENDER%g
  11665. s%@CAIRO_HAS_XRENDER_SURFACE@%$CAIRO_HAS_XRENDER_SURFACE%g
  11666. s%@CAIROINC@%$CAIROINC%g
  11667. s%@CAIROLIB@%$CAIROLIB%g
  11668. s%@USE_CAIRO@%$USE_CAIRO%g
  11669. s%@FTINC@%$FTINC%g
  11670. s%@FTLIB@%$FTLIB%g
  11671. s%@INTLLIB@%$INTLLIB%g
  11672. s%@HAVE_NLS@%$HAVE_NLS%g
  11673. s%@CXX@%$CXX%g
  11674. s%@OPENDWGINCPATH@%$OPENDWGINCPATH%g
  11675. s%@OPENDWGLIBPATH@%$OPENDWGLIBPATH%g
  11676. s%@OPENDWGLIB@%$OPENDWGLIB%g
  11677. s%@USE_OPENDWG@%$USE_OPENDWG%g
  11678. s%@PTHREADINCPATH@%$PTHREADINCPATH%g
  11679. s%@PTHREADLIBPATH@%$PTHREADLIBPATH%g
  11680. s%@PTHREADLIB@%$PTHREADLIB%g
  11681. s%@USE_PTHREAD@%$USE_PTHREAD%g
  11682. s%@USE_LARGEFILES@%$USE_LARGEFILES%g
  11683. s%@PY_CONFIG@%$PY_CONFIG%g
  11684. s%@SWIG@%$SWIG%g
  11685. s%@PYTHONINC@%$PYTHONINC%g
  11686. s%@PYTHONCFLAGS@%$PYTHONCFLAGS%g
  11687. s%@PYTHONLDFLAGS@%$PYTHONLDFLAGS%g
  11688. s%@USE_PYTHON@%$USE_PYTHON%g
  11689. s%@MACOSX_ARCHS_PYTHON@%$MACOSX_ARCHS_PYTHON%g
  11690. s%@WX_CONFIG@%$WX_CONFIG%g
  11691. s%@WXVERSION@%$WXVERSION%g
  11692. s%@WXWIDGETSCXXFLAGS@%$WXWIDGETSCXXFLAGS%g
  11693. s%@WXWIDGETSCPPFLAGS@%$WXWIDGETSCPPFLAGS%g
  11694. s%@WXWIDGETSLIB@%$WXWIDGETSLIB%g
  11695. s%@USE_WXWIDGETS@%$USE_WXWIDGETS%g
  11696. s%@MACOSX_ARCHS_WXPYTHON@%$MACOSX_ARCHS_WXPYTHON%g
  11697. s%@USE_TERMIO@%$USE_TERMIO%g
  11698. s%@STRIPFLAG@%$STRIPFLAG%g
  11699. s%@GRASS_HOME@%$GRASS_HOME%g
  11700. CEOF
  11701. EOF
  11702. cat >> $CONFIG_STATUS <<\EOF
  11703. # Split the substitutions into bite-sized pieces for seds with
  11704. # small command number limits, like on Digital OSF/1 and HP-UX.
  11705. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  11706. ac_file=1 # Number of current file.
  11707. ac_beg=1 # First line for current file.
  11708. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  11709. ac_more_lines=:
  11710. ac_sed_cmds=""
  11711. while $ac_more_lines; do
  11712. if test $ac_beg -gt 1; then
  11713. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  11714. else
  11715. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  11716. fi
  11717. if test ! -s conftest.s$ac_file; then
  11718. ac_more_lines=false
  11719. rm -f conftest.s$ac_file
  11720. else
  11721. if test -z "$ac_sed_cmds"; then
  11722. ac_sed_cmds="sed -f conftest.s$ac_file"
  11723. else
  11724. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  11725. fi
  11726. ac_file=`expr $ac_file + 1`
  11727. ac_beg=$ac_end
  11728. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  11729. fi
  11730. done
  11731. if test -z "$ac_sed_cmds"; then
  11732. ac_sed_cmds=cat
  11733. fi
  11734. EOF
  11735. cat >> $CONFIG_STATUS <<EOF
  11736. CONFIG_FILES=\${CONFIG_FILES-"include/Make/Platform.make include/Make/Doxyfile_arch_html include/Make/Doxyfile_arch_latex include/version.h swig/perl/Makefile.PL swig/perl2/make.pl grass.pc"}
  11737. EOF
  11738. cat >> $CONFIG_STATUS <<\EOF
  11739. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  11740. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11741. case "$ac_file" in
  11742. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  11743. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11744. *) ac_file_in="${ac_file}.in" ;;
  11745. esac
  11746. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  11747. # Remove last slash and all that follows it. Not all systems have dirname.
  11748. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  11749. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  11750. # The file is in a subdirectory.
  11751. test ! -d "$ac_dir" && mkdir "$ac_dir"
  11752. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  11753. # A "../" for each directory in $ac_dir_suffix.
  11754. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  11755. else
  11756. ac_dir_suffix= ac_dots=
  11757. fi
  11758. case "$ac_given_srcdir" in
  11759. .) srcdir=.
  11760. if test -z "$ac_dots"; then top_srcdir=.
  11761. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  11762. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  11763. *) # Relative path.
  11764. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  11765. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  11766. esac
  11767. case "$ac_given_INSTALL" in
  11768. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  11769. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  11770. esac
  11771. echo creating "$ac_file"
  11772. rm -f "$ac_file"
  11773. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  11774. case "$ac_file" in
  11775. *Makefile*) ac_comsub="1i\\
  11776. # $configure_input" ;;
  11777. *) ac_comsub= ;;
  11778. esac
  11779. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  11780. sed -e "$ac_comsub
  11781. s%@configure_input@%$configure_input%g
  11782. s%@srcdir@%$srcdir%g
  11783. s%@top_srcdir@%$top_srcdir%g
  11784. s%@INSTALL@%$INSTALL%g
  11785. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  11786. fi; done
  11787. rm -f conftest.s*
  11788. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11789. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11790. #
  11791. # ac_d sets the value in "#define NAME VALUE" lines.
  11792. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11793. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  11794. ac_dC='\3'
  11795. ac_dD='%g'
  11796. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  11797. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11798. ac_uB='\([ ]\)%\1#\2define\3'
  11799. ac_uC=' '
  11800. ac_uD='\4%g'
  11801. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11802. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11803. ac_eB='$%\1#\2define\3'
  11804. ac_eC=' '
  11805. ac_eD='%g'
  11806. if test "${CONFIG_HEADERS+set}" != set; then
  11807. EOF
  11808. cat >> $CONFIG_STATUS <<EOF
  11809. CONFIG_HEADERS="include/config.h"
  11810. EOF
  11811. cat >> $CONFIG_STATUS <<\EOF
  11812. fi
  11813. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  11814. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11815. case "$ac_file" in
  11816. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  11817. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11818. *) ac_file_in="${ac_file}.in" ;;
  11819. esac
  11820. echo creating $ac_file
  11821. rm -f conftest.frag conftest.in conftest.out
  11822. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  11823. cat $ac_file_inputs > conftest.in
  11824. EOF
  11825. # Transform confdefs.h into a sed script conftest.vals that substitutes
  11826. # the proper values into config.h.in to produce config.h. And first:
  11827. # Protect against being on the right side of a sed subst in config.status.
  11828. # Protect against being in an unquoted here document in config.status.
  11829. rm -f conftest.vals
  11830. cat > conftest.hdr <<\EOF
  11831. s/[\\&%]/\\&/g
  11832. s%[\\$`]%\\&%g
  11833. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  11834. s%ac_d%ac_u%gp
  11835. s%ac_u%ac_e%gp
  11836. EOF
  11837. sed -n -f conftest.hdr confdefs.h > conftest.vals
  11838. rm -f conftest.hdr
  11839. # This sed command replaces #undef with comments. This is necessary, for
  11840. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11841. # on some systems where configure will not decide to define it.
  11842. cat >> conftest.vals <<\EOF
  11843. s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  11844. EOF
  11845. # Break up conftest.vals because some shells have a limit on
  11846. # the size of here documents, and old seds have small limits too.
  11847. rm -f conftest.tail
  11848. while :
  11849. do
  11850. ac_lines=`grep -c . conftest.vals`
  11851. # grep -c gives empty output for an empty file on some AIX systems.
  11852. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  11853. # Write a limited-size here document to conftest.frag.
  11854. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  11855. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  11856. echo 'CEOF
  11857. sed -f conftest.frag conftest.in > conftest.out
  11858. rm -f conftest.in
  11859. mv conftest.out conftest.in
  11860. ' >> $CONFIG_STATUS
  11861. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  11862. rm -f conftest.vals
  11863. mv conftest.tail conftest.vals
  11864. done
  11865. rm -f conftest.vals
  11866. cat >> $CONFIG_STATUS <<\EOF
  11867. rm -f conftest.frag conftest.h
  11868. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  11869. cat conftest.in >> conftest.h
  11870. rm -f conftest.in
  11871. if cmp -s $ac_file conftest.h 2>/dev/null; then
  11872. echo "$ac_file is unchanged"
  11873. rm -f conftest.h
  11874. else
  11875. # Remove last slash and all that follows it. Not all systems have dirname.
  11876. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  11877. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  11878. # The file is in a subdirectory.
  11879. test ! -d "$ac_dir" && mkdir "$ac_dir"
  11880. fi
  11881. rm -f $ac_file
  11882. mv conftest.h $ac_file
  11883. fi
  11884. fi; done
  11885. EOF
  11886. cat >> $CONFIG_STATUS <<EOF
  11887. EOF
  11888. cat >> $CONFIG_STATUS <<\EOF
  11889. exit 0
  11890. EOF
  11891. chmod +x $CONFIG_STATUS
  11892. rm -fr confdefs* $ac_clean_files
  11893. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  11894. echo "Copying config.status to config.status.${ARCH}"
  11895. cp -f config.status config.status.${ARCH}
  11896. # Display configuration status
  11897. USE_TOGL=
  11898. if test -n "${USE_TCLTK}" -a -n "${USE_OPENGL}" ; then
  11899. USE_TOGL="1"
  11900. fi
  11901. echo ""
  11902. echo "GRASS is now configured for: ${host}"
  11903. echo ""
  11904. echo " Source directory: ${SRCDIR}"
  11905. echo " Build directory: ${DSTDIR}"
  11906. echo " Installation directory: ${INSTDIR}"
  11907. echo " Startup script in directory: ${bindir}"
  11908. echo " C compiler: ${CC} ${CFLAGS}"
  11909. echo " C++ compiler: ${CXX} ${CXXFLAGS}"
  11910. #LOC_MSG([ FORTRAN compiler: ${F77} ${FFLAGS}])
  11911. echo " Building shared libraries: ${shared_ok}"
  11912. echo " 64bit support: ${do64bit}"
  11913. echo " OpenGL platform: ${OPENGL_TYPE}"
  11914. echo ""
  11915. echo " MacOSX application: `if test -n "${MACOSX_APP}" ; then echo yes ; else echo no ; fi`"
  11916. echo " MacOSX architectures: ${MACOSX_ARCHS}"
  11917. echo " MacOSX SDK: ${MACOSX_SDK}"
  11918. echo ""
  11919. echo " NVIZ: `if test -n "${USE_TOGL}" ; then echo yes ; else echo no ; fi`"
  11920. echo ""
  11921. echo " BLAS support: `if test -n "${USE_BLAS}" ; then echo yes ; else echo no ; fi`"
  11922. echo " C++ support: `if test -n "${USE_CXX}" ; then echo yes ; else echo no ; fi`"
  11923. echo " Cairo support: `if test -n "${USE_CAIRO}" ; then echo yes ; else echo no ; fi`"
  11924. echo " DWG support: `if test -n "${USE_OPENDWG}" ; then echo yes ; else echo no ; fi`"
  11925. echo " FFMPEG support: `if test -n "${USE_FFMPEG}" ; then echo yes ; else echo no ; fi`"
  11926. echo " FFTW support: `if test -n "${USE_FFTW}" ; then echo yes ; else echo no ; fi`"
  11927. echo " FreeType support: `if test -n "${USE_FREETYPE}" ; then echo yes ; else echo no ; fi`"
  11928. echo " GDAL support: `if test -n "${USE_GDAL}" ; then echo yes ; else echo no ; fi`"
  11929. echo " GEOS support: `if test -n "${USE_GEOS}" ; then echo yes ; else echo no ; fi`"
  11930. echo " JPEG support: `if test -n "${USE_JPEG}" ; then echo yes ; else echo no ; fi`"
  11931. echo " LAPACK support: `if test -n "${USE_LAPACK}" ; then echo yes ; else echo no ; fi`"
  11932. echo " Large File support (LFS): `if test -n "${USE_LARGEFILES}" ; then echo yes ; else echo no ; fi`"
  11933. echo " MySQL support: `if test -n "${USE_MYSQL}" ; then echo yes ; else echo no ; fi`"
  11934. echo " NLS support: `if test -n "${USE_NLS}" ; then echo yes ; else echo no ; fi`"
  11935. echo " ODBC support: `if test -n "${USE_ODBC}" ; then echo yes ; else echo no ; fi`"
  11936. echo " OGR support: `if test -n "${USE_OGR}" ; then echo yes ; else echo no ; fi`"
  11937. echo " OpenGL support: `if test -n "${USE_OPENGL}" ; then echo yes ; else echo no ; fi`"
  11938. echo " PNG support: `if test -n "${USE_PNG}" ; then echo yes ; else echo no ; fi`"
  11939. echo " PostgreSQL support: `if test -n "${USE_POSTGRES}" ; then echo yes ; else echo no ; fi`"
  11940. echo " Python support: `if test -n "${USE_PYTHON}" ; then echo yes ; else echo no ; fi`"
  11941. echo " Readline support: `if test -n "${USE_READLINE}" ; then echo yes ; else echo no ; fi`"
  11942. echo " SQLite support: `if test -n "${USE_SQLITE}" ; then echo yes ; else echo no ; fi`"
  11943. echo " Tcl/Tk support: `if test -n "${USE_TCLTK}" ; then echo yes ; else echo no ; fi`"
  11944. echo " wxWidgets support: `if test -n "${USE_WXWIDGETS}" ; then echo yes ; else echo no ; fi`"
  11945. echo " TIFF support: `if test -n "${USE_TIFF}" ; then echo yes ; else echo no ; fi`"
  11946. echo " X11 support: `if test -n "${USE_X11}" ; then echo yes ; else echo no ; fi`"
  11947. echo " Regex support: `if test -n "${USE_REGEX}" ; then echo yes ; else echo no ; fi`"
  11948. echo " POSIX thread support: `if test -n "${USE_PTHREAD}" ; then echo yes ; else echo no ; fi`"
  11949. echo ""