configure 384 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 2.13
  4. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  5. #
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. # Defaults:
  9. ac_help=
  10. ac_default_prefix=/usr/local
  11. # Any additions from configure.in:
  12. ac_default_prefix=/usr/local
  13. ac_help="$ac_help
  14. --enable-macosx-app create a MacOSX application"
  15. ac_help="$ac_help
  16. --enable-shared build and link with shared libraries [--enable-shared]"
  17. ac_help="$ac_help
  18. --enable-w11 use W11 library for Windows X11 emulation"
  19. ac_help="$ac_help
  20. --with-cxx support C++ functionality (default: yes)"
  21. ac_help="$ac_help
  22. --with-macosx-archs[=arch list]
  23. compile multiple architectures on MacOSX, ie.
  24. universal. Valid architectures are i386, ppc,
  25. x86_64 and ppc64. (default: no [native])"
  26. ac_help="$ac_help
  27. --with-macosx-sdk[=path/sdk]
  28. compile with a system SDK on MacOSX. (default: no)"
  29. ac_help="$ac_help
  30. --with-tiff support TIFF functionality (default: yes)"
  31. ac_help="$ac_help
  32. --with-png support PNG functionality (default: yes)"
  33. ac_help="$ac_help
  34. --with-tcltk support Tcl/Tk functionality (default: yes)"
  35. ac_help="$ac_help
  36. --with-postgres support PostgreSQL functionality (default: no)"
  37. ac_help="$ac_help
  38. --with-mysql support MySQL functionality (default: no)"
  39. ac_help="$ac_help
  40. --with-sqlite support SQLite functionality (default: no)"
  41. ac_help="$ac_help
  42. --with-ffmpeg support FFMPEG functionality (default: no)"
  43. ac_help="$ac_help
  44. --with-opengl support OpenGL functionality (default: yes)"
  45. ac_help="$ac_help
  46. --with-odbc support ODBC functionality (default: no)"
  47. ac_help="$ac_help
  48. --with-fftw support FFTW functionality (default: yes)"
  49. ac_help="$ac_help
  50. --with-blas support BLAS functionality (default: no)"
  51. ac_help="$ac_help
  52. --with-lapack support LAPACK functionality (default: no)"
  53. ac_help="$ac_help
  54. --with-cairo support Cairo functionality (default: yes)"
  55. ac_help="$ac_help
  56. --with-freetype support FreeType functionality (default: yes)"
  57. ac_help="$ac_help
  58. --with-nls support NLS functionality (default: no)"
  59. ac_help="$ac_help
  60. --with-readline support Readline functionality (default: no)"
  61. ac_help="$ac_help
  62. --with-opendwg support openDWG functionality (default: no)"
  63. ac_help="$ac_help
  64. --with-regex support regex functionality (default: yes)"
  65. ac_help="$ac_help
  66. --with-pthread support POSIX threads functionality (default: no)"
  67. ac_help="$ac_help
  68. --with-openmp support OpenMP functionality (default: no)"
  69. ac_help="$ac_help
  70. --with-gdal[=path/gdal-config]
  71. enable GDAL/OGR support (gdal-config with path,
  72. e.g. '--with-gdal=/usr/local/bin/gdal-config')"
  73. ac_help="$ac_help
  74. --with-liblas[=path/liblas-config]
  75. enable libLAS support (liblas-config with path,
  76. e.g. '--with-liblas=/usr/local/bin/liblas-config',
  77. default: no)"
  78. ac_help="$ac_help
  79. --with-wxwidgets[=path/wx-config]
  80. enable wxWidgets support (wx-config with path,
  81. e.g. '--with-wxwidgets=/usr/local/bin/wx-config',
  82. default: no)"
  83. ac_help="$ac_help
  84. --with-netcdf[=path/nc-config]
  85. enable NetCDF support (nc-config with path,
  86. e.g. '--with-nc=/usr/local/bin/nc-config',
  87. default: no)"
  88. ac_help="$ac_help
  89. --with-geos[=path/geos-config]
  90. enable GEOS support (geos-config with path,
  91. e.g. '--with-geos=/usr/local/bin/geos-config',
  92. default: no)"
  93. ac_help="$ac_help
  94. --with-includes=DIRS site include files are in DIRS"
  95. ac_help="$ac_help
  96. --with-libs=DIRS site library files are in DIRS"
  97. ac_help="$ac_help
  98. --with-zlib-includes=DIRS
  99. zlib include files are in DIRS"
  100. ac_help="$ac_help
  101. --with-zlib-libs=DIRS zlib library files are in DIRS"
  102. ac_help="$ac_help
  103. --with-readline-includes=DIRS
  104. Readline include files are in DIRS"
  105. ac_help="$ac_help
  106. --with-readline-libs=DIRS
  107. Readline library files are in DIRS"
  108. ac_help="$ac_help
  109. --with-tiff-includes=DIRS
  110. TIFF include files are in DIRS"
  111. ac_help="$ac_help
  112. --with-tiff-libs=DIRS TIFF library files are in DIRS"
  113. ac_help="$ac_help
  114. --with-png-includes=DIRS
  115. PNG include files are in DIRS"
  116. ac_help="$ac_help
  117. --with-png-libs=DIRS PNG library files are in DIRS"
  118. ac_help="$ac_help
  119. --with-tcltk-includes=DIRS
  120. Tcl/Tk include files are in DIRS"
  121. ac_help="$ac_help
  122. --with-tcltk-libs=DIRS Tcl/Tk library files are in DIRS"
  123. ac_help="$ac_help
  124. --with-postgres-includes=DIRS
  125. PostgreSQL include files are in DIRS"
  126. ac_help="$ac_help
  127. --with-postgres-libs=DIRS
  128. PostgreSQL library files are in DIRS"
  129. ac_help="$ac_help
  130. --with-mysql-includes=DIRS
  131. MySQL include files are in DIRS"
  132. ac_help="$ac_help
  133. --with-mysql-libs=DIRS MySQL library files are in DIRS"
  134. ac_help="$ac_help
  135. --with-sqlite-includes=DIRS
  136. SQLite include files are in DIRS"
  137. ac_help="$ac_help
  138. --with-sqlite-libs=DIRS SQLite library files are in DIRS"
  139. ac_help="$ac_help
  140. --with-ffmpeg-includes=DIRS
  141. FFMPEG include files are in DIRS"
  142. ac_help="$ac_help
  143. --with-ffmpeg-libs=DIRS FFMPEG library files are in DIRS"
  144. ac_help="$ac_help
  145. --with-opengl-includes=DIRS
  146. OpenGL include files are in DIRS"
  147. ac_help="$ac_help
  148. --with-opengl-libs=DIRS OpenGL library files are in DIRS"
  149. ac_help="$ac_help
  150. --with-opengl-framework=DIR
  151. OpenGL framework is in DIR"
  152. ac_help="$ac_help
  153. --with-odbc-includes=DIRS
  154. ODBC include files are in DIRS"
  155. ac_help="$ac_help
  156. --with-odbc-libs=DIRS ODBC library files are in DIRS"
  157. ac_help="$ac_help
  158. --with-fftw-includes=DIRS
  159. FFTW include files are in DIRS"
  160. ac_help="$ac_help
  161. --with-fftw-libs=DIRS FFTW library files are in DIRS"
  162. ac_help="$ac_help
  163. --with-blas-includes=DIRS
  164. BLAS include files are in DIRS"
  165. ac_help="$ac_help
  166. --with-blas-libs=DIRS BLAS library files are in DIRS"
  167. ac_help="$ac_help
  168. --with-lapack-includes=DIRS
  169. LAPACK include files are in DIRS"
  170. ac_help="$ac_help
  171. --with-lapack-libs=DIRS LAPACK library files are in DIRS"
  172. ac_help="$ac_help
  173. --with-cairo-includes=DIRS
  174. cairo include files are in DIRS"
  175. ac_help="$ac_help
  176. --with-cairo-libs=DIRS cairo library files are in DIRS"
  177. ac_help="$ac_help
  178. --with-cairo-ldflags=FLAGS
  179. cairo needs FLAGS when linking"
  180. ac_help="$ac_help
  181. --with-freetype-includes=DIRS
  182. FreeType include files are in DIRS"
  183. ac_help="$ac_help
  184. --with-freetype-libs=DIRS
  185. FreeType library files are in DIRS"
  186. ac_help="$ac_help
  187. --with-proj-includes=DIRS
  188. External PROJ.4 include files are in DIRS"
  189. ac_help="$ac_help
  190. --with-proj-libs=DIRS External PROJ.4 library files are in DIRS"
  191. ac_help="$ac_help
  192. --with-proj-share=DIR External PROJ.4 data files are in DIR"
  193. ac_help="$ac_help
  194. --with-opendwg-includes=DIRS
  195. openDWG include files are in DIRS"
  196. ac_help="$ac_help
  197. --with-opendwg-libs=DIRS
  198. openDWG library files are in DIRS"
  199. ac_help="$ac_help
  200. --with-regex-includes=DIRS
  201. regex include files are in DIRS"
  202. ac_help="$ac_help
  203. --with-regex-libs=DIRS regex library files are in DIRS"
  204. ac_help="$ac_help
  205. --with-pthread-includes=DIRS
  206. POSIX threads include files are in DIRS"
  207. ac_help="$ac_help
  208. --with-pthread-libs=DIRS
  209. POSIX threads library files are in DIRS"
  210. ac_help="$ac_help
  211. --with-openmp-includes=DIRS
  212. OpenMP include files are in DIRS"
  213. ac_help="$ac_help
  214. --with-openmp-libs=DIRS OpenMP library files are in DIRS"
  215. ac_help="$ac_help
  216. --with-x use the X Window System"
  217. ac_help="$ac_help
  218. --enable-largefile enable support for large files (LFS)"
  219. # Initialize some variables set by options.
  220. # The variables have the same names as the options, with
  221. # dashes changed to underlines.
  222. build=NONE
  223. cache_file=./config.cache
  224. exec_prefix=NONE
  225. host=NONE
  226. no_create=
  227. nonopt=NONE
  228. no_recursion=
  229. prefix=NONE
  230. program_prefix=NONE
  231. program_suffix=NONE
  232. program_transform_name=s,x,x,
  233. silent=
  234. site=
  235. srcdir=
  236. target=NONE
  237. verbose=
  238. x_includes=NONE
  239. x_libraries=NONE
  240. bindir='${exec_prefix}/bin'
  241. sbindir='${exec_prefix}/sbin'
  242. libexecdir='${exec_prefix}/libexec'
  243. datadir='${prefix}/share'
  244. sysconfdir='${prefix}/etc'
  245. sharedstatedir='${prefix}/com'
  246. localstatedir='${prefix}/var'
  247. libdir='${exec_prefix}/lib'
  248. includedir='${prefix}/include'
  249. oldincludedir='/usr/include'
  250. infodir='${prefix}/info'
  251. mandir='${prefix}/man'
  252. # Initialize some other variables.
  253. subdirs=
  254. MFLAGS= MAKEFLAGS=
  255. SHELL=${CONFIG_SHELL-/bin/sh}
  256. # Maximum number of lines to put in a shell here document.
  257. ac_max_here_lines=12
  258. ac_prev=
  259. for ac_option
  260. do
  261. # If the previous option needs an argument, assign it.
  262. if test -n "$ac_prev"; then
  263. eval "$ac_prev=\$ac_option"
  264. ac_prev=
  265. continue
  266. fi
  267. case "$ac_option" in
  268. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  269. *) ac_optarg= ;;
  270. esac
  271. # Accept the important Cygnus configure options, so we can diagnose typos.
  272. case "$ac_option" in
  273. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  274. ac_prev=bindir ;;
  275. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  276. bindir="$ac_optarg" ;;
  277. -build | --build | --buil | --bui | --bu)
  278. ac_prev=build ;;
  279. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  280. build="$ac_optarg" ;;
  281. -cache-file | --cache-file | --cache-fil | --cache-fi \
  282. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  283. ac_prev=cache_file ;;
  284. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  285. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  286. cache_file="$ac_optarg" ;;
  287. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  288. ac_prev=datadir ;;
  289. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  290. | --da=*)
  291. datadir="$ac_optarg" ;;
  292. -disable-* | --disable-*)
  293. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  294. # Reject names that are not valid shell variable names.
  295. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  296. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  297. fi
  298. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  299. eval "enable_${ac_feature}=no" ;;
  300. -enable-* | --enable-*)
  301. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  302. # Reject names that are not valid shell variable names.
  303. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  304. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  305. fi
  306. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  307. case "$ac_option" in
  308. *=*) ;;
  309. *) ac_optarg=yes ;;
  310. esac
  311. eval "enable_${ac_feature}='$ac_optarg'" ;;
  312. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  313. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  314. | --exec | --exe | --ex)
  315. ac_prev=exec_prefix ;;
  316. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  317. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  318. | --exec=* | --exe=* | --ex=*)
  319. exec_prefix="$ac_optarg" ;;
  320. -gas | --gas | --ga | --g)
  321. # Obsolete; use --with-gas.
  322. with_gas=yes ;;
  323. -help | --help | --hel | --he)
  324. # Omit some internal or obsolete options to make the list less imposing.
  325. # This message is too long to be a string in the A/UX 3.1 sh.
  326. cat << EOF
  327. Usage: configure [options] [host]
  328. Options: [defaults in brackets after descriptions]
  329. Configuration:
  330. --cache-file=FILE cache test results in FILE
  331. --help print this message
  332. --no-create do not create output files
  333. --quiet, --silent do not print \`checking...' messages
  334. --version print the version of autoconf that created configure
  335. Directory and file names:
  336. --prefix=PREFIX install architecture-independent files in PREFIX
  337. [$ac_default_prefix]
  338. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  339. [same as prefix]
  340. --bindir=DIR user executables in DIR [EPREFIX/bin]
  341. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  342. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  343. --datadir=DIR read-only architecture-independent data in DIR
  344. [PREFIX/share]
  345. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  346. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  347. [PREFIX/com]
  348. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  349. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  350. --includedir=DIR C header files in DIR [PREFIX/include]
  351. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  352. --infodir=DIR info documentation in DIR [PREFIX/info]
  353. --mandir=DIR man documentation in DIR [PREFIX/man]
  354. --srcdir=DIR find the sources in DIR [configure dir or ..]
  355. --program-prefix=PREFIX prepend PREFIX to installed program names
  356. --program-suffix=SUFFIX append SUFFIX to installed program names
  357. --program-transform-name=PROGRAM
  358. run sed PROGRAM on installed program names
  359. EOF
  360. cat << EOF
  361. Host type:
  362. --build=BUILD configure for building on BUILD [BUILD=HOST]
  363. --host=HOST configure for HOST [guessed]
  364. --target=TARGET configure for TARGET [TARGET=HOST]
  365. Features and packages:
  366. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  367. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  368. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  369. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  370. --x-includes=DIR X include files are in DIR
  371. --x-libraries=DIR X library files are in DIR
  372. EOF
  373. if test -n "$ac_help"; then
  374. echo "--enable and --with options recognized:$ac_help"
  375. fi
  376. exit 0 ;;
  377. -host | --host | --hos | --ho)
  378. ac_prev=host ;;
  379. -host=* | --host=* | --hos=* | --ho=*)
  380. host="$ac_optarg" ;;
  381. -includedir | --includedir | --includedi | --included | --include \
  382. | --includ | --inclu | --incl | --inc)
  383. ac_prev=includedir ;;
  384. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  385. | --includ=* | --inclu=* | --incl=* | --inc=*)
  386. includedir="$ac_optarg" ;;
  387. -infodir | --infodir | --infodi | --infod | --info | --inf)
  388. ac_prev=infodir ;;
  389. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  390. infodir="$ac_optarg" ;;
  391. -libdir | --libdir | --libdi | --libd)
  392. ac_prev=libdir ;;
  393. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  394. libdir="$ac_optarg" ;;
  395. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  396. | --libexe | --libex | --libe)
  397. ac_prev=libexecdir ;;
  398. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  399. | --libexe=* | --libex=* | --libe=*)
  400. libexecdir="$ac_optarg" ;;
  401. -localstatedir | --localstatedir | --localstatedi | --localstated \
  402. | --localstate | --localstat | --localsta | --localst \
  403. | --locals | --local | --loca | --loc | --lo)
  404. ac_prev=localstatedir ;;
  405. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  406. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  407. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  408. localstatedir="$ac_optarg" ;;
  409. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  410. ac_prev=mandir ;;
  411. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  412. mandir="$ac_optarg" ;;
  413. -nfp | --nfp | --nf)
  414. # Obsolete; use --without-fp.
  415. with_fp=no ;;
  416. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  417. | --no-cr | --no-c)
  418. no_create=yes ;;
  419. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  420. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  421. no_recursion=yes ;;
  422. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  423. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  424. | --oldin | --oldi | --old | --ol | --o)
  425. ac_prev=oldincludedir ;;
  426. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  427. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  428. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  429. oldincludedir="$ac_optarg" ;;
  430. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  431. ac_prev=prefix ;;
  432. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  433. prefix="$ac_optarg" ;;
  434. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  435. | --program-pre | --program-pr | --program-p)
  436. ac_prev=program_prefix ;;
  437. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  438. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  439. program_prefix="$ac_optarg" ;;
  440. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  441. | --program-suf | --program-su | --program-s)
  442. ac_prev=program_suffix ;;
  443. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  444. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  445. program_suffix="$ac_optarg" ;;
  446. -program-transform-name | --program-transform-name \
  447. | --program-transform-nam | --program-transform-na \
  448. | --program-transform-n | --program-transform- \
  449. | --program-transform | --program-transfor \
  450. | --program-transfo | --program-transf \
  451. | --program-trans | --program-tran \
  452. | --progr-tra | --program-tr | --program-t)
  453. ac_prev=program_transform_name ;;
  454. -program-transform-name=* | --program-transform-name=* \
  455. | --program-transform-nam=* | --program-transform-na=* \
  456. | --program-transform-n=* | --program-transform-=* \
  457. | --program-transform=* | --program-transfor=* \
  458. | --program-transfo=* | --program-transf=* \
  459. | --program-trans=* | --program-tran=* \
  460. | --progr-tra=* | --program-tr=* | --program-t=*)
  461. program_transform_name="$ac_optarg" ;;
  462. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  463. | -silent | --silent | --silen | --sile | --sil)
  464. silent=yes ;;
  465. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  466. ac_prev=sbindir ;;
  467. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  468. | --sbi=* | --sb=*)
  469. sbindir="$ac_optarg" ;;
  470. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  471. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  472. | --sharedst | --shareds | --shared | --share | --shar \
  473. | --sha | --sh)
  474. ac_prev=sharedstatedir ;;
  475. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  476. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  477. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  478. | --sha=* | --sh=*)
  479. sharedstatedir="$ac_optarg" ;;
  480. -site | --site | --sit)
  481. ac_prev=site ;;
  482. -site=* | --site=* | --sit=*)
  483. site="$ac_optarg" ;;
  484. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  485. ac_prev=srcdir ;;
  486. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  487. srcdir="$ac_optarg" ;;
  488. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  489. | --syscon | --sysco | --sysc | --sys | --sy)
  490. ac_prev=sysconfdir ;;
  491. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  492. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  493. sysconfdir="$ac_optarg" ;;
  494. -target | --target | --targe | --targ | --tar | --ta | --t)
  495. ac_prev=target ;;
  496. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  497. target="$ac_optarg" ;;
  498. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  499. verbose=yes ;;
  500. -version | --version | --versio | --versi | --vers)
  501. echo "configure generated by autoconf version 2.13"
  502. exit 0 ;;
  503. -with-* | --with-*)
  504. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  505. # Reject names that are not valid shell variable names.
  506. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  507. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  508. fi
  509. ac_package=`echo $ac_package| sed 's/-/_/g'`
  510. case "$ac_option" in
  511. *=*) ;;
  512. *) ac_optarg=yes ;;
  513. esac
  514. eval "with_${ac_package}='$ac_optarg'" ;;
  515. -without-* | --without-*)
  516. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  517. # Reject names that are not valid shell variable names.
  518. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  519. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  520. fi
  521. ac_package=`echo $ac_package| sed 's/-/_/g'`
  522. eval "with_${ac_package}=no" ;;
  523. --x)
  524. # Obsolete; use --with-x.
  525. with_x=yes ;;
  526. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  527. | --x-incl | --x-inc | --x-in | --x-i)
  528. ac_prev=x_includes ;;
  529. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  530. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  531. x_includes="$ac_optarg" ;;
  532. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  533. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  534. ac_prev=x_libraries ;;
  535. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  536. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  537. x_libraries="$ac_optarg" ;;
  538. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  539. ;;
  540. *)
  541. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  542. echo "configure: warning: $ac_option: invalid host type" 1>&2
  543. fi
  544. if test "x$nonopt" != xNONE; then
  545. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  546. fi
  547. nonopt="$ac_option"
  548. ;;
  549. esac
  550. done
  551. if test -n "$ac_prev"; then
  552. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  553. fi
  554. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  555. # File descriptor usage:
  556. # 0 standard input
  557. # 1 file creation
  558. # 2 errors and warnings
  559. # 3 some systems may open it to /dev/tty
  560. # 4 used on the Kubota Titan
  561. # 6 checking for... messages and results
  562. # 5 compiler messages saved in config.log
  563. if test "$silent" = yes; then
  564. exec 6>/dev/null
  565. else
  566. exec 6>&1
  567. fi
  568. exec 5>./config.log
  569. echo "\
  570. This file contains any messages produced by compilers while
  571. running configure, to aid debugging if configure makes a mistake.
  572. " 1>&5
  573. # Strip out --no-create and --no-recursion so they do not pile up.
  574. # Also quote any args containing shell metacharacters.
  575. ac_configure_args=
  576. for ac_arg
  577. do
  578. case "$ac_arg" in
  579. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  580. | --no-cr | --no-c) ;;
  581. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  582. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  583. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  584. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  585. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  586. esac
  587. done
  588. # NLS nuisances.
  589. # Only set these to C if already set. These must not be set unconditionally
  590. # because not all systems understand e.g. LANG=C (notably SCO).
  591. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  592. # Non-C LC_CTYPE values break the ctype check.
  593. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  594. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  595. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  596. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  597. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  598. rm -rf conftest* confdefs.h
  599. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  600. echo > confdefs.h
  601. # A filename unique to this package, relative to the directory that
  602. # configure is in, which we can look for to find out if srcdir is correct.
  603. ac_unique_file=configure.in
  604. # Find the source files, if location was not specified.
  605. if test -z "$srcdir"; then
  606. ac_srcdir_defaulted=yes
  607. # Try the directory containing this script, then its parent.
  608. ac_prog=$0
  609. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  610. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  611. srcdir=$ac_confdir
  612. if test ! -r $srcdir/$ac_unique_file; then
  613. srcdir=..
  614. fi
  615. else
  616. ac_srcdir_defaulted=no
  617. fi
  618. if test ! -r $srcdir/$ac_unique_file; then
  619. if test "$ac_srcdir_defaulted" = yes; then
  620. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  621. else
  622. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  623. fi
  624. fi
  625. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  626. # Prefer explicitly selected file to automatically selected ones.
  627. if test -z "$CONFIG_SITE"; then
  628. if test "x$prefix" != xNONE; then
  629. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  630. else
  631. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  632. fi
  633. fi
  634. for ac_site_file in $CONFIG_SITE; do
  635. if test -r "$ac_site_file"; then
  636. echo "loading site script $ac_site_file"
  637. . "$ac_site_file"
  638. fi
  639. done
  640. ac_ext=c
  641. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  642. ac_cpp='$CPP $CPPFLAGS'
  643. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  644. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  645. cross_compiling=$ac_cv_prog_cc_cross
  646. ac_exeext=
  647. ac_objext=o
  648. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  649. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  650. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  651. ac_n= ac_c='
  652. ' ac_t=' '
  653. else
  654. ac_n=-n ac_c= ac_t=
  655. fi
  656. else
  657. ac_n= ac_c='\c' ac_t=
  658. fi
  659. ac_aux_dir=
  660. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  661. if 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. elif test -f $ac_dir/install.sh; then
  666. ac_aux_dir=$ac_dir
  667. ac_install_sh="$ac_aux_dir/install.sh -c"
  668. break
  669. fi
  670. done
  671. if test -z "$ac_aux_dir"; then
  672. { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  673. fi
  674. ac_config_guess=$ac_aux_dir/config.guess
  675. ac_config_sub=$ac_aux_dir/config.sub
  676. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  677. # Make sure we can run config.sub.
  678. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  679. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  680. fi
  681. echo $ac_n "checking host system type""... $ac_c" 1>&6
  682. echo "configure:754: checking host system type" >&5
  683. host_alias=$host
  684. case "$host_alias" in
  685. NONE)
  686. case $nonopt in
  687. NONE)
  688. if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  689. else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  690. fi ;;
  691. *) host_alias=$nonopt ;;
  692. esac ;;
  693. esac
  694. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  695. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  696. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  697. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  698. echo "$ac_t""$host" 1>&6
  699. # Extract the first word of "gcc", so it can be a program name with args.
  700. set dummy gcc; ac_word=$2
  701. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  702. echo "configure:777: checking for $ac_word" >&5
  703. if test -n "$CC"; then
  704. ac_cv_prog_CC="$CC" # Let the user override the test.
  705. else
  706. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  707. ac_dummy="$PATH"
  708. for ac_dir in $ac_dummy; do
  709. test -z "$ac_dir" && ac_dir=.
  710. if test -f $ac_dir/$ac_word; then
  711. ac_cv_prog_CC="gcc"
  712. break
  713. fi
  714. done
  715. IFS="$ac_save_ifs"
  716. fi
  717. CC="$ac_cv_prog_CC"
  718. if test -n "$CC"; then
  719. echo "$ac_t""$CC" 1>&6
  720. else
  721. echo "$ac_t""no" 1>&6
  722. fi
  723. if test -z "$CC"; then
  724. # Extract the first word of "cc", so it can be a program name with args.
  725. set dummy cc; ac_word=$2
  726. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  727. echo "configure:804: checking for $ac_word" >&5
  728. if test -n "$CC"; then
  729. ac_cv_prog_CC="$CC" # Let the user override the test.
  730. else
  731. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  732. ac_prog_rejected=no
  733. ac_dummy="$PATH"
  734. for ac_dir in $ac_dummy; do
  735. test -z "$ac_dir" && ac_dir=.
  736. if test -f $ac_dir/$ac_word; then
  737. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  738. ac_prog_rejected=yes
  739. continue
  740. fi
  741. ac_cv_prog_CC="cc"
  742. break
  743. fi
  744. done
  745. IFS="$ac_save_ifs"
  746. if test $ac_prog_rejected = yes; then
  747. # We found a bogon in the path, so make sure we never use it.
  748. set dummy $ac_cv_prog_CC
  749. shift
  750. if test $# -gt 0; then
  751. # We chose a different compiler from the bogus one.
  752. # However, it has the same basename, so the bogon will be chosen
  753. # first if we set CC to just the basename; use the full file name.
  754. shift
  755. set dummy "$ac_dir/$ac_word" "$@"
  756. shift
  757. ac_cv_prog_CC="$@"
  758. fi
  759. fi
  760. fi
  761. CC="$ac_cv_prog_CC"
  762. if test -n "$CC"; then
  763. echo "$ac_t""$CC" 1>&6
  764. else
  765. echo "$ac_t""no" 1>&6
  766. fi
  767. if test -z "$CC"; then
  768. case "`uname -s`" in
  769. *win32* | *WIN32*)
  770. # Extract the first word of "cl", so it can be a program name with args.
  771. set dummy cl; ac_word=$2
  772. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  773. echo "configure:852: checking for $ac_word" >&5
  774. if test -n "$CC"; then
  775. ac_cv_prog_CC="$CC" # Let the user override the test.
  776. else
  777. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  778. ac_dummy="$PATH"
  779. for ac_dir in $ac_dummy; do
  780. test -z "$ac_dir" && ac_dir=.
  781. if test -f $ac_dir/$ac_word; then
  782. ac_cv_prog_CC="cl"
  783. break
  784. fi
  785. done
  786. IFS="$ac_save_ifs"
  787. fi
  788. CC="$ac_cv_prog_CC"
  789. if test -n "$CC"; then
  790. echo "$ac_t""$CC" 1>&6
  791. else
  792. echo "$ac_t""no" 1>&6
  793. fi
  794. ;;
  795. esac
  796. fi
  797. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  798. fi
  799. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  800. echo "configure:881: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  801. ac_ext=c
  802. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  803. ac_cpp='$CPP $CPPFLAGS'
  804. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  805. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  806. cross_compiling=$ac_cv_prog_cc_cross
  807. cat > conftest.$ac_ext << EOF
  808. #line 892 "configure"
  809. #include "confdefs.h"
  810. main(){return(0);}
  811. EOF
  812. if { (eval echo configure:897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  813. ac_cv_prog_cc_works=yes
  814. # If we can't run a trivial program, we are probably using a cross compiler.
  815. if (./conftest; exit) 2>/dev/null; then
  816. ac_cv_prog_cc_cross=no
  817. else
  818. ac_cv_prog_cc_cross=yes
  819. fi
  820. else
  821. echo "configure: failed program was:" >&5
  822. cat conftest.$ac_ext >&5
  823. ac_cv_prog_cc_works=no
  824. fi
  825. rm -fr conftest*
  826. ac_ext=c
  827. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  828. ac_cpp='$CPP $CPPFLAGS'
  829. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  830. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  831. cross_compiling=$ac_cv_prog_cc_cross
  832. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  833. if test $ac_cv_prog_cc_works = no; then
  834. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  835. fi
  836. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  837. echo "configure:923: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  838. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  839. cross_compiling=$ac_cv_prog_cc_cross
  840. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  841. echo "configure:928: checking whether we are using GNU C" >&5
  842. cat > conftest.c <<EOF
  843. #ifdef __GNUC__
  844. yes;
  845. #endif
  846. EOF
  847. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  848. ac_cv_prog_gcc=yes
  849. else
  850. ac_cv_prog_gcc=no
  851. fi
  852. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  853. if test $ac_cv_prog_gcc = yes; then
  854. GCC=yes
  855. else
  856. GCC=
  857. fi
  858. ac_test_CFLAGS="${CFLAGS+set}"
  859. ac_save_CFLAGS="$CFLAGS"
  860. CFLAGS=
  861. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  862. echo "configure:953: checking whether ${CC-cc} accepts -g" >&5
  863. echo 'void f(){}' > conftest.c
  864. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  865. ac_cv_prog_cc_g=yes
  866. else
  867. ac_cv_prog_cc_g=no
  868. fi
  869. rm -f conftest*
  870. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  871. if test "$ac_test_CFLAGS" = set; then
  872. CFLAGS="$ac_save_CFLAGS"
  873. elif test $ac_cv_prog_cc_g = yes; then
  874. if test "$GCC" = yes; then
  875. CFLAGS="-g -O2"
  876. else
  877. CFLAGS="-g"
  878. fi
  879. else
  880. if test "$GCC" = yes; then
  881. CFLAGS="-O2"
  882. else
  883. CFLAGS=
  884. fi
  885. fi
  886. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  887. echo "configure:982: checking for Cygwin environment" >&5
  888. cat > conftest.$ac_ext <<EOF
  889. #line 985 "configure"
  890. #include "confdefs.h"
  891. int main() {
  892. #ifndef __CYGWIN__
  893. #define __CYGWIN__ __CYGWIN32__
  894. #endif
  895. return __CYGWIN__;
  896. ; return 0; }
  897. EOF
  898. if { (eval echo configure:996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  899. rm -rf conftest*
  900. ac_cv_cygwin=yes
  901. else
  902. echo "configure: failed program was:" >&5
  903. cat conftest.$ac_ext >&5
  904. rm -rf conftest*
  905. ac_cv_cygwin=no
  906. fi
  907. rm -f conftest*
  908. rm -f conftest*
  909. echo "$ac_t""$ac_cv_cygwin" 1>&6
  910. CYGWIN=
  911. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  912. echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
  913. echo "configure:1012: checking for mingw32 environment" >&5
  914. cat > conftest.$ac_ext <<EOF
  915. #line 1015 "configure"
  916. #include "confdefs.h"
  917. int main() {
  918. return __MINGW32__;
  919. ; return 0; }
  920. EOF
  921. if { (eval echo configure:1022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  922. rm -rf conftest*
  923. ac_cv_mingw32=yes
  924. else
  925. echo "configure: failed program was:" >&5
  926. cat conftest.$ac_ext >&5
  927. rm -rf conftest*
  928. ac_cv_mingw32=no
  929. fi
  930. rm -f conftest*
  931. rm -f conftest*
  932. echo "$ac_t""$ac_cv_mingw32" 1>&6
  933. MINGW32=
  934. test "$ac_cv_mingw32" = yes && MINGW32=yes
  935. echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
  936. echo "configure:1040: checking for executable suffix" >&5
  937. if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
  938. ac_cv_exeext=.exe
  939. else
  940. ac_cv_exeext=no
  941. fi
  942. EXEEXT=""
  943. test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
  944. echo "$ac_t""${ac_cv_exeext}" 1>&6
  945. ac_exeext=$EXEEXT
  946. # Check for full floating-point support, including Infinity and NaN
  947. IEEEFLAG=
  948. echo $ac_n "checking for full floating-point support""... $ac_c" 1>&6
  949. echo "configure:1059: checking for full floating-point support" >&5
  950. if test "$cross_compiling" = yes; then
  951. echo "$ac_t""unknown (cross-compiling)" 1>&6
  952. echo $ac_n "checking whether "cc -mieee" works""... $ac_c" 1>&6
  953. echo "configure:1064: checking whether "cc -mieee" works" >&5
  954. ac_save_cflags=${CFLAGS}
  955. CFLAGS="$CFLAGS -mieee"
  956. cat > conftest.$ac_ext <<EOF
  957. #line 1068 "configure"
  958. #include "confdefs.h"
  959. int main() {
  960. ; return 0; }
  961. EOF
  962. if { (eval echo configure:1075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  963. rm -rf conftest*
  964. echo "$ac_t""yes" 1>&6
  965. IEEEFLAG="-mieee"
  966. else
  967. echo "configure: failed program was:" >&5
  968. cat conftest.$ac_ext >&5
  969. rm -rf conftest*
  970. echo "$ac_t""no" 1>&6
  971. fi
  972. rm -f conftest*
  973. CFLAGS=${ac_save_cflags}
  974. else
  975. cat > conftest.$ac_ext <<EOF
  976. #line 1091 "configure"
  977. #include "confdefs.h"
  978. #include <float.h>
  979. int main(void) {
  980. double one = 1.0;
  981. double zero = 0.0;
  982. if (one/zero > DBL_MAX) /* infinity */
  983. if (zero/zero != zero/zero) /* NaN */
  984. return 0;
  985. return 1;
  986. }
  987. EOF
  988. if { (eval echo configure:1105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  989. then
  990. echo "$ac_t""yes" 1>&6
  991. else
  992. echo "configure: failed program was:" >&5
  993. cat conftest.$ac_ext >&5
  994. rm -fr conftest*
  995. echo "$ac_t""no" 1>&6
  996. ac_save_cflags=${CFLAGS}
  997. CFLAGS=-mieee
  998. echo $ac_n "checking for full floating-point support with -mieee""... $ac_c" 1>&6
  999. echo "configure:1118: checking for full floating-point support with -mieee" >&5
  1000. if test "$cross_compiling" = yes; then
  1001. echo "$ac_t""unknown (cross-compiling)" 1>&6
  1002. { echo "configure: error: *** INTERNAL CONFIGURE ERROR" 1>&2; exit 1; }
  1003. else
  1004. cat > conftest.$ac_ext <<EOF
  1005. #line 1125 "configure"
  1006. #include "confdefs.h"
  1007. #include <float.h>
  1008. int main(void) {
  1009. double one = 1.0;
  1010. double zero = 0.0;
  1011. if (one/zero > DBL_MAX) /* infinity */
  1012. if (zero/zero != zero/zero) /* NaN */
  1013. return 0;
  1014. return 1;
  1015. }
  1016. EOF
  1017. if { (eval echo configure:1139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1018. then
  1019. echo "$ac_t""yes" 1>&6
  1020. IEEEFLAG="-mieee"
  1021. else
  1022. echo "configure: failed program was:" >&5
  1023. cat conftest.$ac_ext >&5
  1024. rm -fr conftest*
  1025. echo "$ac_t""no" 1>&6
  1026. echo "configure: warning: *** Incomplete floating-point support." 1>&2
  1027. fi
  1028. rm -fr conftest*
  1029. fi
  1030. CFLAGS=${ac_save_cflags}
  1031. fi
  1032. rm -fr conftest*
  1033. fi
  1034. CFLAGS="$CFLAGS $IEEEFLAG"
  1035. # Set BINDIR
  1036. if test -n "${bindir}"; then
  1037. BINDIR="${bindir}"
  1038. else
  1039. BINDIR=/usr/local/bin
  1040. fi
  1041. # Set SRCDIR and DSTDIR
  1042. # Extract the first word of "pwd", so it can be a program name with args.
  1043. set dummy pwd; ac_word=$2
  1044. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1045. echo "configure:1176: checking for $ac_word" >&5
  1046. case "$pwd" in
  1047. /*)
  1048. ac_cv_path_pwd="$pwd" # Let the user override the test with a path.
  1049. ;;
  1050. ?:/*)
  1051. ac_cv_path_pwd="$pwd" # Let the user override the test with a dos path.
  1052. ;;
  1053. *)
  1054. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1055. ac_dummy="$PATH"
  1056. for ac_dir in $ac_dummy; do
  1057. test -z "$ac_dir" && ac_dir=.
  1058. if test -f $ac_dir/$ac_word; then
  1059. ac_cv_path_pwd="$ac_dir/$ac_word"
  1060. break
  1061. fi
  1062. done
  1063. IFS="$ac_save_ifs"
  1064. test -z "$ac_cv_path_pwd" && ac_cv_path_pwd="pwd"
  1065. ;;
  1066. esac
  1067. pwd="$ac_cv_path_pwd"
  1068. if test -n "$pwd"; then
  1069. echo "$ac_t""$pwd" 1>&6
  1070. else
  1071. echo "$ac_t""no" 1>&6
  1072. fi
  1073. if test "$MINGW32" = yes ; then
  1074. winpwd="$pwd -W"
  1075. else
  1076. winpwd="$pwd"
  1077. fi
  1078. echo $ac_n "checking for source directory""... $ac_c" 1>&6
  1079. echo "configure:1214: checking for source directory" >&5
  1080. if test -z "$srcdir" ; then
  1081. SRCDIR=`$pwd`
  1082. else
  1083. SRCDIR=`(cd "$srcdir" ; $pwd)`
  1084. fi
  1085. echo "$ac_t"""$SRCDIR"" 1>&6
  1086. echo $ac_n "checking for build directory""... $ac_c" 1>&6
  1087. echo "configure:1225: checking for build directory" >&5
  1088. DSTDIR=`$pwd`
  1089. WINDSTDIR=`$winpwd`
  1090. echo "$ac_t"""$DSTDIR"" 1>&6
  1091. # Set ARCH
  1092. ARCH=
  1093. if test -z "${host}"; then
  1094. ARCH="unknown"
  1095. else
  1096. ARCH="${host}"
  1097. fi
  1098. # Use absolute path for aux directory so that install-sh works
  1099. ac_aux_dir=
  1100. for ac_dir in "$SRCDIR" $srcdir/"$SRCDIR"; do
  1101. if 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. elif test -f $ac_dir/install.sh; then
  1106. ac_aux_dir=$ac_dir
  1107. ac_install_sh="$ac_aux_dir/install.sh -c"
  1108. break
  1109. fi
  1110. done
  1111. if test -z "$ac_aux_dir"; then
  1112. { echo "configure: error: can not find install-sh or install.sh in "$SRCDIR" $srcdir/"$SRCDIR"" 1>&2; exit 1; }
  1113. fi
  1114. ac_config_guess=$ac_aux_dir/config.guess
  1115. ac_config_sub=$ac_aux_dir/config.sub
  1116. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  1117. # Set GISBASE and GRASS_BIN
  1118. GISBASE="${WINDSTDIR}/dist.${ARCH}"
  1119. GRASS_BIN="${DSTDIR}/bin.${ARCH}"
  1120. # Set GRASS_VERSION_*
  1121. GRASS_VERSION_FILE=include/VERSION
  1122. GRASS_VERSION_MAJOR=`sed -n 1p "${GRASS_VERSION_FILE}"`
  1123. GRASS_VERSION_MINOR=`sed -n 2p "${GRASS_VERSION_FILE}"`
  1124. GRASS_VERSION_RELEASE=`sed -n 3p "${GRASS_VERSION_FILE}"`
  1125. GRASS_VERSION_DATE=`sed -n 4p "${GRASS_VERSION_FILE}"`
  1126. GRASS_VERSION_NUMBER=`echo ${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.${GRASS_VERSION_RELEASE}`
  1127. NAME_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/\..*//'`
  1128. LIB_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/^\([0-9.]*\).*$/\1/'`
  1129. GRASS_VERSION_SVN=
  1130. # Extract the first word of "svnversion", so it can be a program name with args.
  1131. set dummy svnversion; ac_word=$2
  1132. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1133. echo "configure:1293: checking for $ac_word" >&5
  1134. case "$SVN_VERSION" in
  1135. /*)
  1136. ac_cv_path_SVN_VERSION="$SVN_VERSION" # Let the user override the test with a path.
  1137. ;;
  1138. ?:/*)
  1139. ac_cv_path_SVN_VERSION="$SVN_VERSION" # Let the user override the test with a dos path.
  1140. ;;
  1141. *)
  1142. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1143. ac_dummy="$PATH"
  1144. for ac_dir in $ac_dummy; do
  1145. test -z "$ac_dir" && ac_dir=.
  1146. if test -f $ac_dir/$ac_word; then
  1147. ac_cv_path_SVN_VERSION="$ac_dir/$ac_word"
  1148. break
  1149. fi
  1150. done
  1151. IFS="$ac_save_ifs"
  1152. test -z "$ac_cv_path_SVN_VERSION" && ac_cv_path_SVN_VERSION="no"
  1153. ;;
  1154. esac
  1155. SVN_VERSION="$ac_cv_path_SVN_VERSION"
  1156. if test -n "$SVN_VERSION"; then
  1157. echo "$ac_t""$SVN_VERSION" 1>&6
  1158. else
  1159. echo "$ac_t""no" 1>&6
  1160. fi
  1161. if test "$SVN_VERSION" != "no" ; then
  1162. GRASS_VERSION_SVN=`$SVN_VERSION -c | cut -f2 -d:`
  1163. if test "$GRASS_VERSION_SVN" = "exported" ; then
  1164. GRASS_VERSION_SVN=
  1165. fi
  1166. fi
  1167. # Check for MacOSX App
  1168. # Check whether --enable-macosx-app or --disable-macosx-app was given.
  1169. if test "${enable_macosx_app+set}" = set; then
  1170. enableval="$enable_macosx_app"
  1171. :
  1172. else
  1173. enable_macosx_app=no
  1174. fi
  1175. echo $ac_n "checking for MacOSX App""... $ac_c" 1>&6
  1176. echo "configure:1352: checking for MacOSX App" >&5
  1177. case "$enable_macosx_app" in
  1178. yes) MACOSX_APP=1 ;;
  1179. no) MACOSX_APP= ;;
  1180. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  1181. esac
  1182. echo "$ac_t"""$enable_macosx_app"" 1>&6
  1183. # Check for MacOSX archs
  1184. echo $ac_n "checking for MacOSX architectures""... $ac_c" 1>&6
  1185. echo "configure:1364: checking for MacOSX architectures" >&5
  1186. MACOSX_ARCHS=
  1187. if test -z "$with_macosx_archs" ; then
  1188. echo "$ac_t""no" 1>&6
  1189. else
  1190. for a in $with_macosx_archs
  1191. do
  1192. # check if valid arch?
  1193. case "$a" in
  1194. i386|ppc|x86_64|ppc64)
  1195. MACOSX_ARCHS="$MACOSX_ARCHS -arch $a"
  1196. ;;
  1197. esac
  1198. done
  1199. echo "$ac_t""$MACOSX_ARCHS" 1>&6
  1200. LDFLAGS="$LDFLAGS $MACOSX_ARCHS"
  1201. CFLAGS="$CFLAGS $MACOSX_ARCHS"
  1202. CXXFLAGS="$CXXFLAGS $MACOSX_ARCHS"
  1203. fi
  1204. # Done checking MacOSX archs
  1205. # Check for MacOSX SDK
  1206. echo $ac_n "checking for MacOSX SDK""... $ac_c" 1>&6
  1207. echo "configure:1393: checking for MacOSX SDK" >&5
  1208. MACOSX_SDK=
  1209. if test -z "$with_macosx_sdk" ; then
  1210. echo "$ac_t""no" 1>&6
  1211. else
  1212. ac_safe=`echo "$with_macosx_sdk/SDKSettings.plist" | sed 'y%./+-%__p_%'`
  1213. echo $ac_n "checking for $with_macosx_sdk/SDKSettings.plist""... $ac_c" 1>&6
  1214. echo "configure:1403: checking for $with_macosx_sdk/SDKSettings.plist" >&5
  1215. if test "$cross_compiling" = yes; then
  1216. { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
  1217. else
  1218. if test -r $with_macosx_sdk/SDKSettings.plist; then
  1219. eval "ac_cv_file_$ac_safe=yes"
  1220. else
  1221. eval "ac_cv_file_$ac_safe=no"
  1222. fi
  1223. fi
  1224. if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
  1225. echo "$ac_t""yes" 1>&6
  1226. MACOSX_SDK="-isysroot $with_macosx_sdk"
  1227. else
  1228. echo "$ac_t""no" 1>&6
  1229. { echo "configure: error: *** specified SDK does not exist or is not a SDK" 1>&2; exit 1; }
  1230. fi
  1231. LDFLAGS="$LDFLAGS $MACOSX_SDK"
  1232. CFLAGS="$CFLAGS $MACOSX_SDK"
  1233. CXXFLAGS="$CXXFLAGS $MACOSX_SDK"
  1234. fi
  1235. # Done checking MacOSX SDK
  1236. # Set INST_DIR
  1237. if test -n "$MACOSX_APP" ; then
  1238. INSTDIR='${prefix}'"/GRASS-${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.app/Contents/MacOS"
  1239. else
  1240. INSTDIR='${prefix}'"/grass-${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.${GRASS_VERSION_RELEASE}"
  1241. fi
  1242. # Get flags for building shared libraries
  1243. echo $ac_n "checking how to build libraries""... $ac_c" 1>&6
  1244. echo "configure:1447: checking how to build libraries" >&5
  1245. # Check whether --enable-shared or --disable-shared was given.
  1246. if test "${enable_shared+set}" = set; then
  1247. enableval="$enable_shared"
  1248. shared_ok=$enableval
  1249. else
  1250. shared_ok=yes
  1251. fi
  1252. if test "${enable_shared+set}" = set; then
  1253. enableval="$enable_shared"
  1254. shared_ok=$enableval
  1255. else
  1256. shared_ok=yes
  1257. fi
  1258. if test "$shared_ok" = "yes" ; then
  1259. echo "$ac_t""shared" 1>&6
  1260. SHARED_BUILD=1
  1261. GRASS_LIBRARY_TYPE='shlib'
  1262. else
  1263. echo "$ac_t""static" 1>&6
  1264. SHARED_BUILD=0
  1265. cat >> confdefs.h <<\EOF
  1266. #define STATIC_BUILD 1
  1267. EOF
  1268. GRASS_LIBRARY_TYPE='stlib'
  1269. fi
  1270. ac_save_ldflags="$LDFLAGS"
  1271. SHLIB_CFLAGS=""
  1272. SHLIB_LD_FLAGS=""
  1273. SHLIB_LD_LIBS=""
  1274. SHLIB_SUFFIX=""
  1275. SHLIB_LD=""
  1276. STLIB_LD='${AR} cr'
  1277. STLIB_SUFFIX='.a'
  1278. LDFLAGS=""
  1279. CC_SEARCH_FLAGS=""
  1280. LD_SEARCH_FLAGS=""
  1281. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1282. PLAT_OBJS=""
  1283. case $host in
  1284. *-linux-*)
  1285. SHLIB_CFLAGS="-fPIC"
  1286. SHLIB_LD_FLAGS=""
  1287. SHLIB_LD_LIBS='${LIBS}'
  1288. SHLIB_SUFFIX=".so"
  1289. SHLIB_LD="${CC} -shared"
  1290. LDFLAGS="-Wl,--export-dynamic"
  1291. CC_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
  1292. LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
  1293. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1294. ;;
  1295. *-pc-cygwin)
  1296. SHLIB_LD_LIBS='${LIBS}'
  1297. SHLIB_SUFFIX=".dll"
  1298. SHLIB_LD="${CC} -shared"
  1299. LDFLAGS="-Wl,--export-dynamic"
  1300. LD_LIBRARY_PATH_VAR="PATH"
  1301. ;;
  1302. *-pc-mingw32)
  1303. SHLIB_LD_LIBS='${LIBS}'
  1304. SHLIB_SUFFIX=".dll"
  1305. SHLIB_LD="${CC} -shared"
  1306. LDFLAGS="-Wl,--export-dynamic,--enable-runtime-pseudo-reloc"
  1307. LD_LIBRARY_PATH_VAR="PATH"
  1308. ;;
  1309. *-apple-darwin*)
  1310. SHLIB_CFLAGS="-fno-common"
  1311. SHLIB_LD_LIBS='${LIBS}'
  1312. SHLIB_SUFFIX=".dylib"
  1313. 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}"
  1314. LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
  1315. ;;
  1316. *-sun-solaris*)
  1317. # Note: If _REENTRANT isn't defined, then Solaris
  1318. # won't define thread-safe library routines.
  1319. cat >> confdefs.h <<\EOF
  1320. #define _REENTRANT 1
  1321. EOF
  1322. cat >> confdefs.h <<\EOF
  1323. #define _POSIX_PTHREAD_SEMANTICS 1
  1324. EOF
  1325. # Note: need the LIBS below, otherwise Tk won't find Tcl's
  1326. # symbols when dynamically loaded into tclsh.
  1327. if test "$GCC" = "yes" ; then
  1328. SHLIB_CFLAGS="-fPIC"
  1329. SHLIB_LD="$CC -shared"
  1330. CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
  1331. else
  1332. SHLIB_CFLAGS="-KPIC"
  1333. SHLIB_LD="/usr/ccs/bin/ld -G -z text"
  1334. CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
  1335. fi
  1336. SHLIB_SUFFIX=".so"
  1337. SHLIB_LD_LIBS='${LIBS}'
  1338. LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
  1339. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1340. ;;
  1341. *)
  1342. { echo "configure: error: ***Unknown platform: $host***" 1>&2; exit 1; }
  1343. ;;
  1344. esac
  1345. LDFLAGS="${ac_save_ldflags} $LDFLAGS"
  1346. # Enable options
  1347. # Check whether --enable-w11 or --disable-w11 was given.
  1348. if test "${enable_w11+set}" = set; then
  1349. enableval="$enable_w11"
  1350. :
  1351. else
  1352. enable_w11=no
  1353. fi
  1354. # With options
  1355. # Check whether --with-cxx or --without-cxx was given.
  1356. if test "${with_cxx+set}" = set; then
  1357. withval="$with_cxx"
  1358. :
  1359. else
  1360. with_cxx=yes
  1361. fi
  1362. #LOC_ARG_WITH(g77, GNU Fortran 77, no)
  1363. # Check whether --with-macosx-archs or --without-macosx-archs was given.
  1364. if test "${with_macosx_archs+set}" = set; then
  1365. withval="$with_macosx_archs"
  1366. :
  1367. else
  1368. with_macosx_archs="no"
  1369. fi
  1370. # Check whether --with-macosx-sdk or --without-macosx-sdk was given.
  1371. if test "${with_macosx_sdk+set}" = set; then
  1372. withval="$with_macosx_sdk"
  1373. :
  1374. else
  1375. with_macosx_sdk="no"
  1376. fi
  1377. # Check whether --with-tiff or --without-tiff was given.
  1378. if test "${with_tiff+set}" = set; then
  1379. withval="$with_tiff"
  1380. :
  1381. else
  1382. with_tiff=yes
  1383. fi
  1384. # Check whether --with-png or --without-png was given.
  1385. if test "${with_png+set}" = set; then
  1386. withval="$with_png"
  1387. :
  1388. else
  1389. with_png=yes
  1390. fi
  1391. # Check whether --with-tcltk or --without-tcltk was given.
  1392. if test "${with_tcltk+set}" = set; then
  1393. withval="$with_tcltk"
  1394. :
  1395. else
  1396. with_tcltk=yes
  1397. fi
  1398. # Check whether --with-postgres or --without-postgres was given.
  1399. if test "${with_postgres+set}" = set; then
  1400. withval="$with_postgres"
  1401. :
  1402. else
  1403. with_postgres=no
  1404. fi
  1405. # Check whether --with-mysql or --without-mysql was given.
  1406. if test "${with_mysql+set}" = set; then
  1407. withval="$with_mysql"
  1408. :
  1409. else
  1410. with_mysql=no
  1411. fi
  1412. # Check whether --with-sqlite or --without-sqlite was given.
  1413. if test "${with_sqlite+set}" = set; then
  1414. withval="$with_sqlite"
  1415. :
  1416. else
  1417. with_sqlite=no
  1418. fi
  1419. # Check whether --with-ffmpeg or --without-ffmpeg was given.
  1420. if test "${with_ffmpeg+set}" = set; then
  1421. withval="$with_ffmpeg"
  1422. :
  1423. else
  1424. with_ffmpeg=no
  1425. fi
  1426. # Check whether --with-opengl or --without-opengl was given.
  1427. if test "${with_opengl+set}" = set; then
  1428. withval="$with_opengl"
  1429. :
  1430. else
  1431. with_opengl=yes
  1432. fi
  1433. # Check whether --with-odbc or --without-odbc was given.
  1434. if test "${with_odbc+set}" = set; then
  1435. withval="$with_odbc"
  1436. :
  1437. else
  1438. with_odbc=no
  1439. fi
  1440. # Check whether --with-fftw or --without-fftw was given.
  1441. if test "${with_fftw+set}" = set; then
  1442. withval="$with_fftw"
  1443. :
  1444. else
  1445. with_fftw=yes
  1446. fi
  1447. # Check whether --with-blas or --without-blas was given.
  1448. if test "${with_blas+set}" = set; then
  1449. withval="$with_blas"
  1450. :
  1451. else
  1452. with_blas=no
  1453. fi
  1454. # Check whether --with-lapack or --without-lapack was given.
  1455. if test "${with_lapack+set}" = set; then
  1456. withval="$with_lapack"
  1457. :
  1458. else
  1459. with_lapack=no
  1460. fi
  1461. # Check whether --with-cairo or --without-cairo was given.
  1462. if test "${with_cairo+set}" = set; then
  1463. withval="$with_cairo"
  1464. :
  1465. else
  1466. with_cairo=yes
  1467. fi
  1468. # Check whether --with-freetype or --without-freetype was given.
  1469. if test "${with_freetype+set}" = set; then
  1470. withval="$with_freetype"
  1471. :
  1472. else
  1473. with_freetype=yes
  1474. fi
  1475. # Check whether --with-nls or --without-nls was given.
  1476. if test "${with_nls+set}" = set; then
  1477. withval="$with_nls"
  1478. :
  1479. else
  1480. with_nls=no
  1481. fi
  1482. # Check whether --with-readline or --without-readline was given.
  1483. if test "${with_readline+set}" = set; then
  1484. withval="$with_readline"
  1485. :
  1486. else
  1487. with_readline=no
  1488. fi
  1489. # Check whether --with-opendwg or --without-opendwg was given.
  1490. if test "${with_opendwg+set}" = set; then
  1491. withval="$with_opendwg"
  1492. :
  1493. else
  1494. with_opendwg=no
  1495. fi
  1496. # Check whether --with-regex or --without-regex was given.
  1497. if test "${with_regex+set}" = set; then
  1498. withval="$with_regex"
  1499. :
  1500. else
  1501. with_regex=yes
  1502. fi
  1503. # Check whether --with-pthread or --without-pthread was given.
  1504. if test "${with_pthread+set}" = set; then
  1505. withval="$with_pthread"
  1506. :
  1507. else
  1508. with_pthread=no
  1509. fi
  1510. # Check whether --with-openmp or --without-openmp was given.
  1511. if test "${with_openmp+set}" = set; then
  1512. withval="$with_openmp"
  1513. :
  1514. else
  1515. with_openmp=no
  1516. fi
  1517. # Check whether --with-gdal or --without-gdal was given.
  1518. if test "${with_gdal+set}" = set; then
  1519. withval="$with_gdal"
  1520. :
  1521. fi
  1522. # Check whether --with-liblas or --without-liblas was given.
  1523. if test "${with_liblas+set}" = set; then
  1524. withval="$with_liblas"
  1525. :
  1526. else
  1527. with_liblas="no"
  1528. fi
  1529. # Check whether --with-wxwidgets or --without-wxwidgets was given.
  1530. if test "${with_wxwidgets+set}" = set; then
  1531. withval="$with_wxwidgets"
  1532. :
  1533. else
  1534. with_wxwidgets="no"
  1535. fi
  1536. # Check whether --with-netcdf or --without-netcdf was given.
  1537. if test "${with_netcdf+set}" = set; then
  1538. withval="$with_netcdf"
  1539. :
  1540. else
  1541. with_netcdf="no"
  1542. fi
  1543. # With includes and libs options
  1544. # Check whether --with-geos or --without-geos was given.
  1545. if test "${with_geos+set}" = set; then
  1546. withval="$with_geos"
  1547. :
  1548. else
  1549. with_geos="no"
  1550. fi
  1551. # Check whether --with-includes or --without-includes was given.
  1552. if test "${with_includes+set}" = set; then
  1553. withval="$with_includes"
  1554. :
  1555. fi
  1556. # Check whether --with-libs or --without-libs was given.
  1557. if test "${with_libs+set}" = set; then
  1558. withval="$with_libs"
  1559. :
  1560. fi
  1561. # Check whether --with-zlib-includes or --without-zlib-includes was given.
  1562. if test "${with_zlib_includes+set}" = set; then
  1563. withval="$with_zlib_includes"
  1564. :
  1565. fi
  1566. # Check whether --with-zlib-libs or --without-zlib-libs was given.
  1567. if test "${with_zlib_libs+set}" = set; then
  1568. withval="$with_zlib_libs"
  1569. :
  1570. fi
  1571. # Check whether --with-readline-includes or --without-readline-includes was given.
  1572. if test "${with_readline_includes+set}" = set; then
  1573. withval="$with_readline_includes"
  1574. :
  1575. fi
  1576. # Check whether --with-readline-libs or --without-readline-libs was given.
  1577. if test "${with_readline_libs+set}" = set; then
  1578. withval="$with_readline_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. # Check whether --with-openmp-includes or --without-openmp-includes was given.
  1777. if test "${with_openmp_includes+set}" = set; then
  1778. withval="$with_openmp_includes"
  1779. :
  1780. fi
  1781. # Check whether --with-openmp-libs or --without-openmp-libs was given.
  1782. if test "${with_openmp_libs+set}" = set; then
  1783. withval="$with_openmp_libs"
  1784. :
  1785. fi
  1786. # Put this early on so CPPFLAGS and LDFLAGS have any additional dirs
  1787. # With includes option
  1788. # Handle Fortran compiler choice
  1789. #LOC_CHECK_USE(g77, GNU Fortran 77, USE_G77)
  1790. # Done checking fortran
  1791. echo $ac_n "checking for additional include dirs""... $ac_c" 1>&6
  1792. echo "configure:2268: checking for additional include dirs" >&5
  1793. case "$with_includes" in
  1794. y | ye | yes | n | no)
  1795. { echo "configure: error: *** You must supply a directory to list --with-includes." 1>&2; exit 1; }
  1796. ;;
  1797. esac
  1798. echo "$ac_t""$with_includes" 1>&6
  1799. if test -n "$with_includes"; then
  1800. for dir in $with_includes; do
  1801. if test -d "$dir"; then
  1802. INCLUDE_DIRS="$INCLUDE_DIRS -I$dir"
  1803. else
  1804. { echo "configure: error: *** Include directory $dir does not exist." 1>&2; exit 1; }
  1805. fi
  1806. done
  1807. CPPFLAGS="$CPPFLAGS $INCLUDE_DIRS"
  1808. fi
  1809. # With libs option
  1810. echo $ac_n "checking for additional library dirs""... $ac_c" 1>&6
  1811. echo "configure:2291: checking for additional library dirs" >&5
  1812. case "$with_libs" in
  1813. y | ye | yes | n | no)
  1814. { echo "configure: error: *** You must supply a directory list to --with-libs." 1>&2; exit 1; }
  1815. ;;
  1816. esac
  1817. echo "$ac_t""$with_libs" 1>&6
  1818. if test -n "$with_libs"; then
  1819. for dir in $with_libs; do
  1820. if test -d "$dir"; then
  1821. LIBRARY_DIRS="$LIBRARY_DIRS -L$dir"
  1822. else
  1823. { echo "configure: error: *** Library directory $dir does not exist." 1>&2; exit 1; }
  1824. fi
  1825. done
  1826. LDFLAGS="$LDFLAGS $LIBRARY_DIRS"
  1827. fi
  1828. # Programs and standard headers, libraries, functions
  1829. # Find a good install program. We prefer a C program (faster),
  1830. # so one script is as good as another. But avoid the broken or
  1831. # incompatible versions:
  1832. # SysV /etc/install, /usr/sbin/install
  1833. # SunOS /usr/etc/install
  1834. # IRIX /sbin/install
  1835. # AIX /bin/install
  1836. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1837. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1838. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1839. # ./install, which can be erroneously created by make from ./install.sh.
  1840. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1841. echo "configure:2325: checking for a BSD compatible install" >&5
  1842. if test -z "$INSTALL"; then
  1843. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  1844. for ac_dir in $PATH; do
  1845. # Account for people who put trailing slashes in PATH elements.
  1846. case "$ac_dir/" in
  1847. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1848. *)
  1849. # OSF1 and SCO ODT 3.0 have their own names for install.
  1850. # Don't use installbsd from OSF since it installs stuff as root
  1851. # by default.
  1852. for ac_prog in ginstall scoinst install; do
  1853. if test -f $ac_dir/$ac_prog; then
  1854. if test $ac_prog = install &&
  1855. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1856. # AIX install. It has an incompatible calling convention.
  1857. :
  1858. else
  1859. ac_cv_path_install="$ac_dir/$ac_prog -c"
  1860. break 2
  1861. fi
  1862. fi
  1863. done
  1864. ;;
  1865. esac
  1866. done
  1867. IFS="$ac_save_IFS"
  1868. if test "${ac_cv_path_install+set}" = set; then
  1869. INSTALL="$ac_cv_path_install"
  1870. else
  1871. # As a last resort, use the slow shell script. We don't cache a
  1872. # path for INSTALL within a source directory, because that will
  1873. # break other packages using the cache if that directory is
  1874. # removed, or if the path is relative.
  1875. INSTALL="$ac_install_sh"
  1876. fi
  1877. fi
  1878. echo "$ac_t""$INSTALL" 1>&6
  1879. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1880. # It thinks the first close brace ends the variable substitution.
  1881. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1882. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  1883. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1884. # Extract the first word of "flex", so it can be a program name with args.
  1885. set dummy flex; ac_word=$2
  1886. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1887. echo "configure:2378: checking for $ac_word" >&5
  1888. if test -n "$LEX"; then
  1889. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  1890. else
  1891. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1892. ac_dummy="$PATH"
  1893. for ac_dir in $ac_dummy; do
  1894. test -z "$ac_dir" && ac_dir=.
  1895. if test -f $ac_dir/$ac_word; then
  1896. ac_cv_prog_LEX="flex"
  1897. break
  1898. fi
  1899. done
  1900. IFS="$ac_save_ifs"
  1901. test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
  1902. fi
  1903. LEX="$ac_cv_prog_LEX"
  1904. if test -n "$LEX"; then
  1905. echo "$ac_t""$LEX" 1>&6
  1906. else
  1907. echo "$ac_t""no" 1>&6
  1908. fi
  1909. if test -z "$LEXLIB"
  1910. then
  1911. case "$LEX" in
  1912. flex*) ac_lib=fl ;;
  1913. *) ac_lib=l ;;
  1914. esac
  1915. echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
  1916. echo "configure:2409: checking for yywrap in -l$ac_lib" >&5
  1917. ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
  1918. ac_save_LIBS="$LIBS"
  1919. LIBS="-l$ac_lib $LIBS"
  1920. cat > conftest.$ac_ext <<EOF
  1921. #line 2415 "configure"
  1922. #include "confdefs.h"
  1923. /* Override any gcc2 internal prototype to avoid an error. */
  1924. /* We use char because int might match the return type of a gcc2
  1925. builtin and then its argument prototype would still apply. */
  1926. char yywrap();
  1927. int main() {
  1928. yywrap()
  1929. ; return 0; }
  1930. EOF
  1931. if { (eval echo configure:2426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1932. rm -rf conftest*
  1933. eval "ac_cv_lib_$ac_lib_var=yes"
  1934. else
  1935. echo "configure: failed program was:" >&5
  1936. cat conftest.$ac_ext >&5
  1937. rm -rf conftest*
  1938. eval "ac_cv_lib_$ac_lib_var=no"
  1939. fi
  1940. rm -f conftest*
  1941. LIBS="$ac_save_LIBS"
  1942. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1943. echo "$ac_t""yes" 1>&6
  1944. LEXLIB="-l$ac_lib"
  1945. else
  1946. echo "$ac_t""no" 1>&6
  1947. fi
  1948. fi
  1949. if test "$LEX" = "lex"; then
  1950. # Extract the first word of "lex", so it can be a program name with args.
  1951. set dummy lex; ac_word=$2
  1952. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1953. echo "configure:2451: checking for $ac_word" >&5
  1954. case "$LEXPATH" in
  1955. /*)
  1956. ac_cv_path_LEXPATH="$LEXPATH" # Let the user override the test with a path.
  1957. ;;
  1958. ?:/*)
  1959. ac_cv_path_LEXPATH="$LEXPATH" # Let the user override the test with a dos path.
  1960. ;;
  1961. *)
  1962. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1963. ac_dummy="$PATH"
  1964. for ac_dir in $ac_dummy; do
  1965. test -z "$ac_dir" && ac_dir=.
  1966. if test -f $ac_dir/$ac_word; then
  1967. ac_cv_path_LEXPATH="$ac_dir/$ac_word"
  1968. break
  1969. fi
  1970. done
  1971. IFS="$ac_save_ifs"
  1972. test -z "$ac_cv_path_LEXPATH" && ac_cv_path_LEXPATH="no"
  1973. ;;
  1974. esac
  1975. LEXPATH="$ac_cv_path_LEXPATH"
  1976. if test -n "$LEXPATH"; then
  1977. echo "$ac_t""$LEXPATH" 1>&6
  1978. else
  1979. echo "$ac_t""no" 1>&6
  1980. fi
  1981. if test "$LEXPATH" = "no"; then
  1982. { echo "configure: error: *** Unable to locate lex." 1>&2; exit 1; }
  1983. fi
  1984. fi
  1985. for ac_prog in 'bison -y' byacc
  1986. do
  1987. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1988. set dummy $ac_prog; ac_word=$2
  1989. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1990. echo "configure:2491: checking for $ac_word" >&5
  1991. if test -n "$YACC"; then
  1992. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  1993. else
  1994. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1995. ac_dummy="$PATH"
  1996. for ac_dir in $ac_dummy; do
  1997. test -z "$ac_dir" && ac_dir=.
  1998. if test -f $ac_dir/$ac_word; then
  1999. ac_cv_prog_YACC="$ac_prog"
  2000. break
  2001. fi
  2002. done
  2003. IFS="$ac_save_ifs"
  2004. fi
  2005. YACC="$ac_cv_prog_YACC"
  2006. if test -n "$YACC"; then
  2007. echo "$ac_t""$YACC" 1>&6
  2008. else
  2009. echo "$ac_t""no" 1>&6
  2010. fi
  2011. test -n "$YACC" && break
  2012. done
  2013. test -n "$YACC" || YACC="yacc"
  2014. if test "$YACC" = "yacc"; then
  2015. # Extract the first word of "yacc", so it can be a program name with args.
  2016. set dummy yacc; ac_word=$2
  2017. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2018. echo "configure:2522: checking for $ac_word" >&5
  2019. case "$YACCPATH" in
  2020. /*)
  2021. ac_cv_path_YACCPATH="$YACCPATH" # Let the user override the test with a path.
  2022. ;;
  2023. ?:/*)
  2024. ac_cv_path_YACCPATH="$YACCPATH" # Let the user override the test with a dos path.
  2025. ;;
  2026. *)
  2027. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2028. ac_dummy="$PATH"
  2029. for ac_dir in $ac_dummy; do
  2030. test -z "$ac_dir" && ac_dir=.
  2031. if test -f $ac_dir/$ac_word; then
  2032. ac_cv_path_YACCPATH="$ac_dir/$ac_word"
  2033. break
  2034. fi
  2035. done
  2036. IFS="$ac_save_ifs"
  2037. test -z "$ac_cv_path_YACCPATH" && ac_cv_path_YACCPATH="no"
  2038. ;;
  2039. esac
  2040. YACCPATH="$ac_cv_path_YACCPATH"
  2041. if test -n "$YACCPATH"; then
  2042. echo "$ac_t""$YACCPATH" 1>&6
  2043. else
  2044. echo "$ac_t""no" 1>&6
  2045. fi
  2046. if test "$YACCPATH" = "no"; then
  2047. { echo "configure: error: *** Unable to locate yacc." 1>&2; exit 1; }
  2048. fi
  2049. fi
  2050. # Extract the first word of "ranlib", so it can be a program name with args.
  2051. set dummy ranlib; ac_word=$2
  2052. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2053. echo "configure:2560: checking for $ac_word" >&5
  2054. if test -n "$RANLIB"; then
  2055. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2056. else
  2057. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2058. ac_dummy="$PATH"
  2059. for ac_dir in $ac_dummy; do
  2060. test -z "$ac_dir" && ac_dir=.
  2061. if test -f $ac_dir/$ac_word; then
  2062. ac_cv_prog_RANLIB="ranlib"
  2063. break
  2064. fi
  2065. done
  2066. IFS="$ac_save_ifs"
  2067. test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  2068. fi
  2069. RANLIB="$ac_cv_prog_RANLIB"
  2070. if test -n "$RANLIB"; then
  2071. echo "$ac_t""$RANLIB" 1>&6
  2072. else
  2073. echo "$ac_t""no" 1>&6
  2074. fi
  2075. for ac_prog in ar
  2076. do
  2077. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2078. set dummy $ac_prog; ac_word=$2
  2079. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2080. echo "configure:2589: checking for $ac_word" >&5
  2081. if test -n "$AR"; then
  2082. ac_cv_prog_AR="$AR" # Let the user override the test.
  2083. else
  2084. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2085. ac_dummy="$PATH"
  2086. for ac_dir in $ac_dummy; do
  2087. test -z "$ac_dir" && ac_dir=.
  2088. if test -f $ac_dir/$ac_word; then
  2089. ac_cv_prog_AR="$ac_prog"
  2090. break
  2091. fi
  2092. done
  2093. IFS="$ac_save_ifs"
  2094. fi
  2095. AR="$ac_cv_prog_AR"
  2096. if test -n "$AR"; then
  2097. echo "$ac_t""$AR" 1>&6
  2098. else
  2099. echo "$ac_t""no" 1>&6
  2100. fi
  2101. test -n "$AR" && break
  2102. done
  2103. for ac_prog in env
  2104. do
  2105. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2106. set dummy $ac_prog; ac_word=$2
  2107. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2108. echo "configure:2620: checking for $ac_word" >&5
  2109. if test -n "$ENV"; then
  2110. ac_cv_prog_ENV="$ENV" # Let the user override the test.
  2111. else
  2112. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2113. ac_dummy="$PATH"
  2114. for ac_dir in $ac_dummy; do
  2115. test -z "$ac_dir" && ac_dir=.
  2116. if test -f $ac_dir/$ac_word; then
  2117. ac_cv_prog_ENV="$ac_prog"
  2118. break
  2119. fi
  2120. done
  2121. IFS="$ac_save_ifs"
  2122. fi
  2123. ENV="$ac_cv_prog_ENV"
  2124. if test -n "$ENV"; then
  2125. echo "$ac_t""$ENV" 1>&6
  2126. else
  2127. echo "$ac_t""no" 1>&6
  2128. fi
  2129. test -n "$ENV" && break
  2130. done
  2131. # Extract the first word of "perl", so it can be a program name with args.
  2132. set dummy perl; ac_word=$2
  2133. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2134. echo "configure:2649: checking for $ac_word" >&5
  2135. case "$PERL" in
  2136. /*)
  2137. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  2138. ;;
  2139. ?:/*)
  2140. ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
  2141. ;;
  2142. *)
  2143. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2144. ac_dummy="$PATH"
  2145. for ac_dir in $ac_dummy; do
  2146. test -z "$ac_dir" && ac_dir=.
  2147. if test -f $ac_dir/$ac_word; then
  2148. ac_cv_path_PERL="$ac_dir/$ac_word"
  2149. break
  2150. fi
  2151. done
  2152. IFS="$ac_save_ifs"
  2153. test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
  2154. ;;
  2155. esac
  2156. PERL="$ac_cv_path_PERL"
  2157. if test -n "$PERL"; then
  2158. echo "$ac_t""$PERL" 1>&6
  2159. else
  2160. echo "$ac_t""no" 1>&6
  2161. fi
  2162. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  2163. echo "configure:2680: checking how to run the C preprocessor" >&5
  2164. # On Suns, sometimes $CPP names a directory.
  2165. if test -n "$CPP" && test -d "$CPP"; then
  2166. CPP=
  2167. fi
  2168. if test -z "$CPP"; then
  2169. # This must be in double quotes, not single quotes, because CPP may get
  2170. # substituted into the Makefile and "${CC-cc}" will confuse make.
  2171. CPP="${CC-cc} -E"
  2172. # On the NeXT, cc -E runs the code through the compiler's parser,
  2173. # not just through cpp.
  2174. cat > conftest.$ac_ext <<EOF
  2175. #line 2693 "configure"
  2176. #include "confdefs.h"
  2177. #include <assert.h>
  2178. Syntax Error
  2179. EOF
  2180. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2181. { (eval echo configure:2699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2182. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2183. if test -z "$ac_err"; then
  2184. :
  2185. else
  2186. echo "$ac_err" >&5
  2187. echo "configure: failed program was:" >&5
  2188. cat conftest.$ac_ext >&5
  2189. rm -rf conftest*
  2190. CPP="${CC-cc} -E -traditional-cpp"
  2191. cat > conftest.$ac_ext <<EOF
  2192. #line 2710 "configure"
  2193. #include "confdefs.h"
  2194. #include <assert.h>
  2195. Syntax Error
  2196. EOF
  2197. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2198. { (eval echo configure:2716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2199. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2200. if test -z "$ac_err"; then
  2201. :
  2202. else
  2203. echo "$ac_err" >&5
  2204. echo "configure: failed program was:" >&5
  2205. cat conftest.$ac_ext >&5
  2206. rm -rf conftest*
  2207. CPP="${CC-cc} -nologo -E"
  2208. cat > conftest.$ac_ext <<EOF
  2209. #line 2727 "configure"
  2210. #include "confdefs.h"
  2211. #include <assert.h>
  2212. Syntax Error
  2213. EOF
  2214. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2215. { (eval echo configure:2733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2216. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2217. if test -z "$ac_err"; then
  2218. :
  2219. else
  2220. echo "$ac_err" >&5
  2221. echo "configure: failed program was:" >&5
  2222. cat conftest.$ac_ext >&5
  2223. rm -rf conftest*
  2224. CPP=/lib/cpp
  2225. fi
  2226. rm -f conftest*
  2227. fi
  2228. rm -f conftest*
  2229. fi
  2230. rm -f conftest*
  2231. ac_cv_prog_CPP="$CPP"
  2232. CPP="$ac_cv_prog_CPP"
  2233. else
  2234. ac_cv_prog_CPP="$CPP"
  2235. fi
  2236. echo "$ac_t""$CPP" 1>&6
  2237. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  2238. echo "configure:2757: checking for ANSI C header files" >&5
  2239. cat > conftest.$ac_ext <<EOF
  2240. #line 2760 "configure"
  2241. #include "confdefs.h"
  2242. #include <stdlib.h>
  2243. #include <stdarg.h>
  2244. #include <string.h>
  2245. #include <float.h>
  2246. EOF
  2247. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2248. { (eval echo configure:2768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2249. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2250. if test -z "$ac_err"; then
  2251. rm -rf conftest*
  2252. ac_cv_header_stdc=yes
  2253. else
  2254. echo "$ac_err" >&5
  2255. echo "configure: failed program was:" >&5
  2256. cat conftest.$ac_ext >&5
  2257. rm -rf conftest*
  2258. ac_cv_header_stdc=no
  2259. fi
  2260. rm -f conftest*
  2261. if test $ac_cv_header_stdc = yes; then
  2262. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2263. cat > conftest.$ac_ext <<EOF
  2264. #line 2785 "configure"
  2265. #include "confdefs.h"
  2266. #include <string.h>
  2267. EOF
  2268. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2269. egrep "memchr" >/dev/null 2>&1; then
  2270. :
  2271. else
  2272. rm -rf conftest*
  2273. ac_cv_header_stdc=no
  2274. fi
  2275. rm -f conftest*
  2276. fi
  2277. if test $ac_cv_header_stdc = yes; then
  2278. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2279. cat > conftest.$ac_ext <<EOF
  2280. #line 2803 "configure"
  2281. #include "confdefs.h"
  2282. #include <stdlib.h>
  2283. EOF
  2284. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2285. egrep "free" >/dev/null 2>&1; then
  2286. :
  2287. else
  2288. rm -rf conftest*
  2289. ac_cv_header_stdc=no
  2290. fi
  2291. rm -f conftest*
  2292. fi
  2293. if test $ac_cv_header_stdc = yes; then
  2294. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2295. if test "$cross_compiling" = yes; then
  2296. :
  2297. else
  2298. cat > conftest.$ac_ext <<EOF
  2299. #line 2824 "configure"
  2300. #include "confdefs.h"
  2301. #include <ctype.h>
  2302. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2303. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2304. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2305. int main () { int i; for (i = 0; i < 256; i++)
  2306. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  2307. exit (0); }
  2308. EOF
  2309. if { (eval echo configure:2835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2310. then
  2311. :
  2312. else
  2313. echo "configure: failed program was:" >&5
  2314. cat conftest.$ac_ext >&5
  2315. rm -fr conftest*
  2316. ac_cv_header_stdc=no
  2317. fi
  2318. rm -fr conftest*
  2319. fi
  2320. fi
  2321. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  2322. if test $ac_cv_header_stdc = yes; then
  2323. cat >> confdefs.h <<\EOF
  2324. #define STDC_HEADERS 1
  2325. EOF
  2326. fi
  2327. #AC_CHECK_HEADERS(curses.h limits.h termio.h termios.h unistd.h values.h)
  2328. for ac_hdr in limits.h termio.h termios.h unistd.h values.h f2c.h g2c.h
  2329. do
  2330. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2331. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2332. echo "configure:2862: checking for $ac_hdr" >&5
  2333. cat > conftest.$ac_ext <<EOF
  2334. #line 2865 "configure"
  2335. #include "confdefs.h"
  2336. #include <$ac_hdr>
  2337. EOF
  2338. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2339. { (eval echo configure:2870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2340. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2341. if test -z "$ac_err"; then
  2342. rm -rf conftest*
  2343. eval "ac_cv_header_$ac_safe=yes"
  2344. else
  2345. echo "$ac_err" >&5
  2346. echo "configure: failed program was:" >&5
  2347. cat conftest.$ac_ext >&5
  2348. rm -rf conftest*
  2349. eval "ac_cv_header_$ac_safe=no"
  2350. fi
  2351. rm -f conftest*
  2352. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2353. echo "$ac_t""yes" 1>&6
  2354. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2355. cat >> confdefs.h <<EOF
  2356. #define $ac_tr_hdr 1
  2357. EOF
  2358. else
  2359. echo "$ac_t""no" 1>&6
  2360. fi
  2361. done
  2362. for ac_hdr in sys/ioctl.h sys/mtio.h sys/resource.h sys/time.h
  2363. do
  2364. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2365. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2366. echo "configure:2899: checking for $ac_hdr" >&5
  2367. cat > conftest.$ac_ext <<EOF
  2368. #line 2902 "configure"
  2369. #include "confdefs.h"
  2370. #include <$ac_hdr>
  2371. EOF
  2372. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2373. { (eval echo configure:2907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2374. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2375. if test -z "$ac_err"; then
  2376. rm -rf conftest*
  2377. eval "ac_cv_header_$ac_safe=yes"
  2378. else
  2379. echo "$ac_err" >&5
  2380. echo "configure: failed program was:" >&5
  2381. cat conftest.$ac_ext >&5
  2382. rm -rf conftest*
  2383. eval "ac_cv_header_$ac_safe=no"
  2384. fi
  2385. rm -f conftest*
  2386. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2387. echo "$ac_t""yes" 1>&6
  2388. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2389. cat >> confdefs.h <<EOF
  2390. #define $ac_tr_hdr 1
  2391. EOF
  2392. else
  2393. echo "$ac_t""no" 1>&6
  2394. fi
  2395. done
  2396. for ac_hdr in sys/timeb.h sys/types.h sys/utsname.h
  2397. do
  2398. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2399. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2400. echo "configure:2936: checking for $ac_hdr" >&5
  2401. cat > conftest.$ac_ext <<EOF
  2402. #line 2939 "configure"
  2403. #include "confdefs.h"
  2404. #include <$ac_hdr>
  2405. EOF
  2406. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2407. { (eval echo configure:2944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2408. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2409. if test -z "$ac_err"; then
  2410. rm -rf conftest*
  2411. eval "ac_cv_header_$ac_safe=yes"
  2412. else
  2413. echo "$ac_err" >&5
  2414. echo "configure: failed program was:" >&5
  2415. cat conftest.$ac_ext >&5
  2416. rm -rf conftest*
  2417. eval "ac_cv_header_$ac_safe=no"
  2418. fi
  2419. rm -f conftest*
  2420. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2421. echo "$ac_t""yes" 1>&6
  2422. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2423. cat >> confdefs.h <<EOF
  2424. #define $ac_tr_hdr 1
  2425. EOF
  2426. else
  2427. echo "$ac_t""no" 1>&6
  2428. fi
  2429. done
  2430. for ac_hdr in libintl.h iconv.h
  2431. do
  2432. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2433. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2434. echo "configure:2973: checking for $ac_hdr" >&5
  2435. cat > conftest.$ac_ext <<EOF
  2436. #line 2976 "configure"
  2437. #include "confdefs.h"
  2438. #include <$ac_hdr>
  2439. EOF
  2440. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2441. { (eval echo configure:2981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2442. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2443. if test -z "$ac_err"; then
  2444. rm -rf conftest*
  2445. eval "ac_cv_header_$ac_safe=yes"
  2446. else
  2447. echo "$ac_err" >&5
  2448. echo "configure: failed program was:" >&5
  2449. cat conftest.$ac_ext >&5
  2450. rm -rf conftest*
  2451. eval "ac_cv_header_$ac_safe=no"
  2452. fi
  2453. rm -f conftest*
  2454. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2455. echo "$ac_t""yes" 1>&6
  2456. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2457. cat >> confdefs.h <<EOF
  2458. #define $ac_tr_hdr 1
  2459. EOF
  2460. else
  2461. echo "$ac_t""no" 1>&6
  2462. fi
  2463. done
  2464. for ac_hdr in langinfo.h
  2465. do
  2466. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2467. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2468. echo "configure:3010: checking for $ac_hdr" >&5
  2469. cat > conftest.$ac_ext <<EOF
  2470. #line 3013 "configure"
  2471. #include "confdefs.h"
  2472. #include <$ac_hdr>
  2473. EOF
  2474. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2475. { (eval echo configure:3018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2476. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2477. if test -z "$ac_err"; then
  2478. rm -rf conftest*
  2479. eval "ac_cv_header_$ac_safe=yes"
  2480. else
  2481. echo "$ac_err" >&5
  2482. echo "configure: failed program was:" >&5
  2483. cat conftest.$ac_ext >&5
  2484. rm -rf conftest*
  2485. eval "ac_cv_header_$ac_safe=no"
  2486. fi
  2487. rm -f conftest*
  2488. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2489. echo "$ac_t""yes" 1>&6
  2490. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2491. cat >> confdefs.h <<EOF
  2492. #define $ac_tr_hdr 1
  2493. EOF
  2494. else
  2495. echo "$ac_t""no" 1>&6
  2496. fi
  2497. done
  2498. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  2499. echo "configure:3044: checking whether time.h and sys/time.h may both be included" >&5
  2500. cat > conftest.$ac_ext <<EOF
  2501. #line 3047 "configure"
  2502. #include "confdefs.h"
  2503. #include <sys/types.h>
  2504. #include <sys/time.h>
  2505. #include <time.h>
  2506. int main() {
  2507. struct tm *tp;
  2508. ; return 0; }
  2509. EOF
  2510. if { (eval echo configure:3056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2511. rm -rf conftest*
  2512. ac_cv_header_time=yes
  2513. else
  2514. echo "configure: failed program was:" >&5
  2515. cat conftest.$ac_ext >&5
  2516. rm -rf conftest*
  2517. ac_cv_header_time=no
  2518. fi
  2519. rm -f conftest*
  2520. echo "$ac_t""$ac_cv_header_time" 1>&6
  2521. if test $ac_cv_header_time = yes; then
  2522. cat >> confdefs.h <<\EOF
  2523. #define TIME_WITH_SYS_TIME 1
  2524. EOF
  2525. fi
  2526. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  2527. echo "configure:3076: checking for off_t" >&5
  2528. cat > conftest.$ac_ext <<EOF
  2529. #line 3079 "configure"
  2530. #include "confdefs.h"
  2531. #include <sys/types.h>
  2532. #if STDC_HEADERS
  2533. #include <stdlib.h>
  2534. #include <stddef.h>
  2535. #endif
  2536. EOF
  2537. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2538. egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2539. rm -rf conftest*
  2540. ac_cv_type_off_t=yes
  2541. else
  2542. rm -rf conftest*
  2543. ac_cv_type_off_t=no
  2544. fi
  2545. rm -f conftest*
  2546. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  2547. if test $ac_cv_type_off_t = no; then
  2548. cat >> confdefs.h <<\EOF
  2549. #define off_t long
  2550. EOF
  2551. fi
  2552. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  2553. echo "configure:3106: checking for uid_t in sys/types.h" >&5
  2554. cat > conftest.$ac_ext <<EOF
  2555. #line 3109 "configure"
  2556. #include "confdefs.h"
  2557. #include <sys/types.h>
  2558. EOF
  2559. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2560. egrep "uid_t" >/dev/null 2>&1; then
  2561. rm -rf conftest*
  2562. ac_cv_type_uid_t=yes
  2563. else
  2564. rm -rf conftest*
  2565. ac_cv_type_uid_t=no
  2566. fi
  2567. rm -f conftest*
  2568. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  2569. if test $ac_cv_type_uid_t = no; then
  2570. cat >> confdefs.h <<\EOF
  2571. #define uid_t int
  2572. EOF
  2573. cat >> confdefs.h <<\EOF
  2574. #define gid_t int
  2575. EOF
  2576. fi
  2577. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  2578. echo "configure:3137: checking return type of signal handlers" >&5
  2579. cat > conftest.$ac_ext <<EOF
  2580. #line 3140 "configure"
  2581. #include "confdefs.h"
  2582. #include <sys/types.h>
  2583. #include <signal.h>
  2584. #ifdef signal
  2585. #undef signal
  2586. #endif
  2587. #ifdef __cplusplus
  2588. extern "C" void (*signal (int, void (*)(int)))(int);
  2589. #else
  2590. void (*signal ()) ();
  2591. #endif
  2592. int main() {
  2593. int i;
  2594. ; return 0; }
  2595. EOF
  2596. if { (eval echo configure:3157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2597. rm -rf conftest*
  2598. ac_cv_type_signal=void
  2599. else
  2600. echo "configure: failed program was:" >&5
  2601. cat conftest.$ac_ext >&5
  2602. rm -rf conftest*
  2603. ac_cv_type_signal=int
  2604. fi
  2605. rm -f conftest*
  2606. echo "$ac_t""$ac_cv_type_signal" 1>&6
  2607. cat >> confdefs.h <<EOF
  2608. #define RETSIGTYPE $ac_cv_type_signal
  2609. EOF
  2610. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  2611. echo "configure:3175: checking for Cygwin environment" >&5
  2612. cat > conftest.$ac_ext <<EOF
  2613. #line 3178 "configure"
  2614. #include "confdefs.h"
  2615. int main() {
  2616. #ifndef __CYGWIN__
  2617. #define __CYGWIN__ __CYGWIN32__
  2618. #endif
  2619. return __CYGWIN__;
  2620. ; return 0; }
  2621. EOF
  2622. if { (eval echo configure:3189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2623. rm -rf conftest*
  2624. ac_cv_cygwin=yes
  2625. else
  2626. echo "configure: failed program was:" >&5
  2627. cat conftest.$ac_ext >&5
  2628. rm -rf conftest*
  2629. ac_cv_cygwin=no
  2630. fi
  2631. rm -f conftest*
  2632. rm -f conftest*
  2633. echo "$ac_t""$ac_cv_cygwin" 1>&6
  2634. CYGWIN=
  2635. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  2636. for ac_func in ftime gethostname gettimeofday lseek nice time uname
  2637. do
  2638. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2639. echo "configure:3207: checking for $ac_func" >&5
  2640. cat > conftest.$ac_ext <<EOF
  2641. #line 3210 "configure"
  2642. #include "confdefs.h"
  2643. /* System header to define __stub macros and hopefully few prototypes,
  2644. which can conflict with char $ac_func(); below. */
  2645. #include <assert.h>
  2646. /* Override any gcc2 internal prototype to avoid an error. */
  2647. /* We use char because int might match the return type of a gcc2
  2648. builtin and then its argument prototype would still apply. */
  2649. char $ac_func();
  2650. int main() {
  2651. /* The GNU C library defines this for functions which it implements
  2652. to always fail with ENOSYS. Some functions are actually named
  2653. something starting with __ and the normal name is an alias. */
  2654. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2655. choke me
  2656. #else
  2657. $ac_func();
  2658. #endif
  2659. ; return 0; }
  2660. EOF
  2661. if { (eval echo configure:3233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2662. rm -rf conftest*
  2663. eval "ac_cv_func_$ac_func=yes"
  2664. else
  2665. echo "configure: failed program was:" >&5
  2666. cat conftest.$ac_ext >&5
  2667. rm -rf conftest*
  2668. eval "ac_cv_func_$ac_func=no"
  2669. fi
  2670. rm -f conftest*
  2671. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2672. echo "$ac_t""yes" 1>&6
  2673. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2674. cat >> confdefs.h <<EOF
  2675. #define $ac_tr_func 1
  2676. EOF
  2677. else
  2678. echo "$ac_t""no" 1>&6
  2679. fi
  2680. done
  2681. for ac_func in seteuid setpriority setreuid setruid
  2682. do
  2683. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2684. echo "configure:3259: checking for $ac_func" >&5
  2685. cat > conftest.$ac_ext <<EOF
  2686. #line 3262 "configure"
  2687. #include "confdefs.h"
  2688. /* System header to define __stub macros and hopefully few prototypes,
  2689. which can conflict with char $ac_func(); below. */
  2690. #include <assert.h>
  2691. /* Override any gcc2 internal prototype to avoid an error. */
  2692. /* We use char because int might match the return type of a gcc2
  2693. builtin and then its argument prototype would still apply. */
  2694. char $ac_func();
  2695. int main() {
  2696. /* The GNU C library defines this for functions which it implements
  2697. to always fail with ENOSYS. Some functions are actually named
  2698. something starting with __ and the normal name is an alias. */
  2699. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2700. choke me
  2701. #else
  2702. $ac_func();
  2703. #endif
  2704. ; return 0; }
  2705. EOF
  2706. if { (eval echo configure:3285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2707. rm -rf conftest*
  2708. eval "ac_cv_func_$ac_func=yes"
  2709. else
  2710. echo "configure: failed program was:" >&5
  2711. cat conftest.$ac_ext >&5
  2712. rm -rf conftest*
  2713. eval "ac_cv_func_$ac_func=no"
  2714. fi
  2715. rm -f conftest*
  2716. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2717. echo "$ac_t""yes" 1>&6
  2718. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2719. cat >> confdefs.h <<EOF
  2720. #define $ac_tr_func 1
  2721. EOF
  2722. else
  2723. echo "$ac_t""no" 1>&6
  2724. fi
  2725. done
  2726. for ac_func in drand48
  2727. do
  2728. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2729. echo "configure:3311: checking for $ac_func" >&5
  2730. cat > conftest.$ac_ext <<EOF
  2731. #line 3314 "configure"
  2732. #include "confdefs.h"
  2733. /* System header to define __stub macros and hopefully few prototypes,
  2734. which can conflict with char $ac_func(); below. */
  2735. #include <assert.h>
  2736. /* Override any gcc2 internal prototype to avoid an error. */
  2737. /* We use char because int might match the return type of a gcc2
  2738. builtin and then its argument prototype would still apply. */
  2739. char $ac_func();
  2740. int main() {
  2741. /* The GNU C library defines this for functions which it implements
  2742. to always fail with ENOSYS. Some functions are actually named
  2743. something starting with __ and the normal name is an alias. */
  2744. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2745. choke me
  2746. #else
  2747. $ac_func();
  2748. #endif
  2749. ; return 0; }
  2750. EOF
  2751. if { (eval echo configure:3337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2752. rm -rf conftest*
  2753. eval "ac_cv_func_$ac_func=yes"
  2754. else
  2755. echo "configure: failed program was:" >&5
  2756. cat conftest.$ac_ext >&5
  2757. rm -rf conftest*
  2758. eval "ac_cv_func_$ac_func=no"
  2759. fi
  2760. rm -f conftest*
  2761. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2762. echo "$ac_t""yes" 1>&6
  2763. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2764. cat >> confdefs.h <<EOF
  2765. #define $ac_tr_func 1
  2766. EOF
  2767. else
  2768. echo "$ac_t""no" 1>&6
  2769. fi
  2770. done
  2771. for ac_func in putenv setenv
  2772. do
  2773. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2774. echo "configure:3363: checking for $ac_func" >&5
  2775. cat > conftest.$ac_ext <<EOF
  2776. #line 3366 "configure"
  2777. #include "confdefs.h"
  2778. /* System header to define __stub macros and hopefully few prototypes,
  2779. which can conflict with char $ac_func(); below. */
  2780. #include <assert.h>
  2781. /* Override any gcc2 internal prototype to avoid an error. */
  2782. /* We use char because int might match the return type of a gcc2
  2783. builtin and then its argument prototype would still apply. */
  2784. char $ac_func();
  2785. int main() {
  2786. /* The GNU C library defines this for functions which it implements
  2787. to always fail with ENOSYS. Some functions are actually named
  2788. something starting with __ and the normal name is an alias. */
  2789. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2790. choke me
  2791. #else
  2792. $ac_func();
  2793. #endif
  2794. ; return 0; }
  2795. EOF
  2796. if { (eval echo configure:3389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2797. rm -rf conftest*
  2798. eval "ac_cv_func_$ac_func=yes"
  2799. else
  2800. echo "configure: failed program was:" >&5
  2801. cat conftest.$ac_ext >&5
  2802. rm -rf conftest*
  2803. eval "ac_cv_func_$ac_func=no"
  2804. fi
  2805. rm -f conftest*
  2806. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2807. echo "$ac_t""yes" 1>&6
  2808. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2809. cat >> confdefs.h <<EOF
  2810. #define $ac_tr_func 1
  2811. EOF
  2812. else
  2813. echo "$ac_t""no" 1>&6
  2814. fi
  2815. done
  2816. for ac_func in nanosleep
  2817. do
  2818. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2819. echo "configure:3415: checking for $ac_func" >&5
  2820. cat > conftest.$ac_ext <<EOF
  2821. #line 3418 "configure"
  2822. #include "confdefs.h"
  2823. /* System header to define __stub macros and hopefully few prototypes,
  2824. which can conflict with char $ac_func(); below. */
  2825. #include <assert.h>
  2826. /* Override any gcc2 internal prototype to avoid an error. */
  2827. /* We use char because int might match the return type of a gcc2
  2828. builtin and then its argument prototype would still apply. */
  2829. char $ac_func();
  2830. int main() {
  2831. /* The GNU C library defines this for functions which it implements
  2832. to always fail with ENOSYS. Some functions are actually named
  2833. something starting with __ and the normal name is an alias. */
  2834. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2835. choke me
  2836. #else
  2837. $ac_func();
  2838. #endif
  2839. ; return 0; }
  2840. EOF
  2841. if { (eval echo configure:3441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2842. rm -rf conftest*
  2843. eval "ac_cv_func_$ac_func=yes"
  2844. else
  2845. echo "configure: failed program was:" >&5
  2846. cat conftest.$ac_ext >&5
  2847. rm -rf conftest*
  2848. eval "ac_cv_func_$ac_func=no"
  2849. fi
  2850. rm -f conftest*
  2851. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2852. echo "$ac_t""yes" 1>&6
  2853. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2854. cat >> confdefs.h <<EOF
  2855. #define $ac_tr_func 1
  2856. EOF
  2857. else
  2858. echo "$ac_t""no" 1>&6
  2859. fi
  2860. done
  2861. if test "$cross_compiling" != "yes" ; then
  2862. echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
  2863. echo "configure:3466: checking whether setpgrp takes no argument" >&5
  2864. if test "$cross_compiling" = yes; then
  2865. { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
  2866. else
  2867. cat > conftest.$ac_ext <<EOF
  2868. #line 3472 "configure"
  2869. #include "confdefs.h"
  2870. #ifdef HAVE_UNISTD_H
  2871. #include <unistd.h>
  2872. #endif
  2873. /*
  2874. * If this system has a BSD-style setpgrp, which takes arguments, exit
  2875. * successfully.
  2876. */
  2877. main()
  2878. {
  2879. if (setpgrp(1,1) == -1)
  2880. exit(0);
  2881. else
  2882. exit(1);
  2883. }
  2884. EOF
  2885. if { (eval echo configure:3492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2886. then
  2887. ac_cv_func_setpgrp_void=no
  2888. else
  2889. echo "configure: failed program was:" >&5
  2890. cat conftest.$ac_ext >&5
  2891. rm -fr conftest*
  2892. ac_cv_func_setpgrp_void=yes
  2893. fi
  2894. rm -fr conftest*
  2895. fi
  2896. echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
  2897. if test $ac_cv_func_setpgrp_void = yes; then
  2898. cat >> confdefs.h <<\EOF
  2899. #define SETPGRP_VOID 1
  2900. EOF
  2901. fi
  2902. else
  2903. CROSS_COMPILING=1
  2904. fi
  2905. echo $ac_n "checking for long long int""... $ac_c" 1>&6
  2906. echo "configure:3520: checking for long long int" >&5
  2907. cat > conftest.$ac_ext <<EOF
  2908. #line 3522 "configure"
  2909. #include "confdefs.h"
  2910. int main() {
  2911. long long int x;
  2912. ; return 0; }
  2913. EOF
  2914. if { (eval echo configure:3529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2915. rm -rf conftest*
  2916. echo "$ac_t""yes" 1>&6
  2917. cat >> confdefs.h <<\EOF
  2918. #define HAVE_LONG_LONG_INT 1
  2919. EOF
  2920. else
  2921. echo "configure: failed program was:" >&5
  2922. cat conftest.$ac_ext >&5
  2923. rm -rf conftest*
  2924. echo "$ac_t""no" 1>&6
  2925. fi
  2926. rm -f conftest*
  2927. echo $ac_n "checking for W11""... $ac_c" 1>&6
  2928. echo "configure:3549: checking for W11" >&5
  2929. case "$enable_w11" in
  2930. yes|no) echo "$ac_t"""$enable_w11"" 1>&6 ;;
  2931. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  2932. esac
  2933. USE_X11=
  2934. USE_W11=
  2935. XLIB=
  2936. XTLIB=
  2937. if test "$enable_w11" = "yes" ; then
  2938. X_CFLAGS=-I${SRCDIR}/display/drivers/windows/libW11
  2939. X_LIBS='-L$(LIBDIR)'
  2940. USE_W11="1"
  2941. USE_X11="1"
  2942. XLIB=-lX11
  2943. CFLAGS="$CFLAGS -D__W98__"
  2944. else
  2945. # If we find X, set shell vars x_includes and x_libraries to the
  2946. # paths, otherwise set no_x=yes.
  2947. # Uses ac_ vars as temps to allow command line to override cache and checks.
  2948. # --without-x overrides everything else, but does not touch the cache.
  2949. echo $ac_n "checking for X""... $ac_c" 1>&6
  2950. echo "configure:3577: checking for X" >&5
  2951. # Check whether --with-x or --without-x was given.
  2952. if test "${with_x+set}" = set; then
  2953. withval="$with_x"
  2954. :
  2955. fi
  2956. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  2957. if test "x$with_x" = xno; then
  2958. # The user explicitly disabled X.
  2959. have_x=disabled
  2960. else
  2961. if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  2962. # Both variables are already set.
  2963. have_x=yes
  2964. else
  2965. # One or both of the vars are not set, and there is no cached value.
  2966. ac_x_includes=NO ac_x_libraries=NO
  2967. rm -fr conftestdir
  2968. if mkdir conftestdir; then
  2969. cd conftestdir
  2970. # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  2971. cat > Imakefile <<'EOF'
  2972. acfindx:
  2973. @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  2974. EOF
  2975. if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  2976. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2977. eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  2978. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  2979. for ac_extension in a so sl; do
  2980. if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  2981. test -f $ac_im_libdir/libX11.$ac_extension; then
  2982. ac_im_usrlibdir=$ac_im_libdir; break
  2983. fi
  2984. done
  2985. # Screen out bogus values from the imake configuration. They are
  2986. # bogus both because they are the default anyway, and because
  2987. # using them would break gcc on systems where it needs fixed includes.
  2988. case "$ac_im_incroot" in
  2989. /usr/include) ;;
  2990. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
  2991. esac
  2992. case "$ac_im_usrlibdir" in
  2993. /usr/lib | /lib) ;;
  2994. *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
  2995. esac
  2996. fi
  2997. cd ..
  2998. rm -fr conftestdir
  2999. fi
  3000. if test "$ac_x_includes" = NO; then
  3001. # Guess where to find include files, by looking for this one X11 .h file.
  3002. test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  3003. # First, try using that file with no special directory specified.
  3004. cat > conftest.$ac_ext <<EOF
  3005. #line 3637 "configure"
  3006. #include "confdefs.h"
  3007. #include <$x_direct_test_include>
  3008. EOF
  3009. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3010. { (eval echo configure:3642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3011. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3012. if test -z "$ac_err"; then
  3013. rm -rf conftest*
  3014. # We can compile using X headers with no special include directory.
  3015. ac_x_includes=
  3016. else
  3017. echo "$ac_err" >&5
  3018. echo "configure: failed program was:" >&5
  3019. cat conftest.$ac_ext >&5
  3020. rm -rf conftest*
  3021. # Look for the header file in a standard set of common directories.
  3022. # Check X11 before X11Rn because it is often a symlink to the current release.
  3023. for ac_dir in \
  3024. /usr/X11/include \
  3025. /usr/X11R6/include \
  3026. /usr/X11R5/include \
  3027. /usr/X11R4/include \
  3028. \
  3029. /usr/include/X11 \
  3030. /usr/include/X11R6 \
  3031. /usr/include/X11R5 \
  3032. /usr/include/X11R4 \
  3033. \
  3034. /usr/local/X11/include \
  3035. /usr/local/X11R6/include \
  3036. /usr/local/X11R5/include \
  3037. /usr/local/X11R4/include \
  3038. \
  3039. /usr/local/include/X11 \
  3040. /usr/local/include/X11R6 \
  3041. /usr/local/include/X11R5 \
  3042. /usr/local/include/X11R4 \
  3043. \
  3044. /usr/X386/include \
  3045. /usr/x386/include \
  3046. /usr/XFree86/include/X11 \
  3047. \
  3048. /usr/include \
  3049. /usr/local/include \
  3050. /usr/unsupported/include \
  3051. /usr/athena/include \
  3052. /usr/local/x11r5/include \
  3053. /usr/lpp/Xamples/include \
  3054. \
  3055. /usr/openwin/include \
  3056. /usr/openwin/share/include \
  3057. ; \
  3058. do
  3059. if test -r "$ac_dir/$x_direct_test_include"; then
  3060. ac_x_includes=$ac_dir
  3061. break
  3062. fi
  3063. done
  3064. fi
  3065. rm -f conftest*
  3066. fi # $ac_x_includes = NO
  3067. if test "$ac_x_libraries" = NO; then
  3068. # Check for the libraries.
  3069. test -z "$x_direct_test_library" && x_direct_test_library=Xt
  3070. test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  3071. # See if we find them without any special options.
  3072. # Don't add to $LIBS permanently.
  3073. ac_save_LIBS="$LIBS"
  3074. LIBS="-l$x_direct_test_library $LIBS"
  3075. cat > conftest.$ac_ext <<EOF
  3076. #line 3711 "configure"
  3077. #include "confdefs.h"
  3078. int main() {
  3079. ${x_direct_test_function}()
  3080. ; return 0; }
  3081. EOF
  3082. if { (eval echo configure:3718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3083. rm -rf conftest*
  3084. LIBS="$ac_save_LIBS"
  3085. # We can link X programs with no special library path.
  3086. ac_x_libraries=
  3087. else
  3088. echo "configure: failed program was:" >&5
  3089. cat conftest.$ac_ext >&5
  3090. rm -rf conftest*
  3091. LIBS="$ac_save_LIBS"
  3092. # First see if replacing the include by lib works.
  3093. # Check X11 before X11Rn because it is often a symlink to the current release.
  3094. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  3095. /usr/X11/lib \
  3096. /usr/X11R6/lib \
  3097. /usr/X11R5/lib \
  3098. /usr/X11R4/lib \
  3099. \
  3100. /usr/lib/X11 \
  3101. /usr/lib/X11R6 \
  3102. /usr/lib/X11R5 \
  3103. /usr/lib/X11R4 \
  3104. \
  3105. /usr/local/X11/lib \
  3106. /usr/local/X11R6/lib \
  3107. /usr/local/X11R5/lib \
  3108. /usr/local/X11R4/lib \
  3109. \
  3110. /usr/local/lib/X11 \
  3111. /usr/local/lib/X11R6 \
  3112. /usr/local/lib/X11R5 \
  3113. /usr/local/lib/X11R4 \
  3114. \
  3115. /usr/X386/lib \
  3116. /usr/x386/lib \
  3117. /usr/XFree86/lib/X11 \
  3118. \
  3119. /usr/lib \
  3120. /usr/local/lib \
  3121. /usr/unsupported/lib \
  3122. /usr/athena/lib \
  3123. /usr/local/x11r5/lib \
  3124. /usr/lpp/Xamples/lib \
  3125. /lib/usr/lib/X11 \
  3126. \
  3127. /usr/openwin/lib \
  3128. /usr/openwin/share/lib \
  3129. ; \
  3130. do
  3131. for ac_extension in a so sl; do
  3132. if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  3133. ac_x_libraries=$ac_dir
  3134. break 2
  3135. fi
  3136. done
  3137. done
  3138. fi
  3139. rm -f conftest*
  3140. fi # $ac_x_libraries = NO
  3141. if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
  3142. # Didn't find X anywhere. Cache the known absence of X.
  3143. ac_cv_have_x="have_x=no"
  3144. else
  3145. # Record where we found X for the cache.
  3146. ac_cv_have_x="have_x=yes \
  3147. ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  3148. fi
  3149. fi
  3150. eval "$ac_cv_have_x"
  3151. fi # $with_x != no
  3152. if test "$have_x" != yes; then
  3153. echo "$ac_t""$have_x" 1>&6
  3154. no_x=yes
  3155. else
  3156. # If each of the values was on the command line, it overrides each guess.
  3157. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  3158. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  3159. # Update the cache value to reflect the command line values.
  3160. ac_cv_have_x="have_x=yes \
  3161. ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  3162. echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
  3163. fi
  3164. if test "$no_x" = yes; then
  3165. # Not all programs may use this symbol, but it does not hurt to define it.
  3166. cat >> confdefs.h <<\EOF
  3167. #define X_DISPLAY_MISSING 1
  3168. EOF
  3169. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  3170. else
  3171. if test -n "$x_includes"; then
  3172. X_CFLAGS="$X_CFLAGS -I$x_includes"
  3173. fi
  3174. # It would also be nice to do this for all -L options, not just this one.
  3175. if test -n "$x_libraries"; then
  3176. X_LIBS="$X_LIBS -L$x_libraries"
  3177. # For Solaris; some versions of Sun CC require a space after -R and
  3178. # others require no space. Words are not sufficient . . . .
  3179. case "`(uname -sr) 2>/dev/null`" in
  3180. "SunOS 5"*)
  3181. echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
  3182. echo "configure:3823: checking whether -R must be followed by a space" >&5
  3183. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
  3184. cat > conftest.$ac_ext <<EOF
  3185. #line 3826 "configure"
  3186. #include "confdefs.h"
  3187. int main() {
  3188. ; return 0; }
  3189. EOF
  3190. if { (eval echo configure:3833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3191. rm -rf conftest*
  3192. ac_R_nospace=yes
  3193. else
  3194. echo "configure: failed program was:" >&5
  3195. cat conftest.$ac_ext >&5
  3196. rm -rf conftest*
  3197. ac_R_nospace=no
  3198. fi
  3199. rm -f conftest*
  3200. if test $ac_R_nospace = yes; then
  3201. echo "$ac_t""no" 1>&6
  3202. X_LIBS="$X_LIBS -R$x_libraries"
  3203. else
  3204. LIBS="$ac_xsave_LIBS -R $x_libraries"
  3205. cat > conftest.$ac_ext <<EOF
  3206. #line 3849 "configure"
  3207. #include "confdefs.h"
  3208. int main() {
  3209. ; return 0; }
  3210. EOF
  3211. if { (eval echo configure:3856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3212. rm -rf conftest*
  3213. ac_R_space=yes
  3214. else
  3215. echo "configure: failed program was:" >&5
  3216. cat conftest.$ac_ext >&5
  3217. rm -rf conftest*
  3218. ac_R_space=no
  3219. fi
  3220. rm -f conftest*
  3221. if test $ac_R_space = yes; then
  3222. echo "$ac_t""yes" 1>&6
  3223. X_LIBS="$X_LIBS -R $x_libraries"
  3224. else
  3225. echo "$ac_t""neither works" 1>&6
  3226. fi
  3227. fi
  3228. LIBS="$ac_xsave_LIBS"
  3229. esac
  3230. fi
  3231. # Check for system-dependent libraries X programs must link with.
  3232. # Do this before checking for the system-independent R6 libraries
  3233. # (-lICE), since we may need -lsocket or whatever for X linking.
  3234. if test "$ISC" = yes; then
  3235. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  3236. else
  3237. # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  3238. # libraries were built with DECnet support. And karl@cs.umb.edu says
  3239. # the Alpha needs dnet_stub (dnet does not exist).
  3240. echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
  3241. echo "configure:3888: checking for dnet_ntoa in -ldnet" >&5
  3242. ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  3243. ac_save_LIBS="$LIBS"
  3244. LIBS="-ldnet $LIBS"
  3245. cat > conftest.$ac_ext <<EOF
  3246. #line 3894 "configure"
  3247. #include "confdefs.h"
  3248. /* Override any gcc2 internal prototype to avoid an error. */
  3249. /* We use char because int might match the return type of a gcc2
  3250. builtin and then its argument prototype would still apply. */
  3251. char dnet_ntoa();
  3252. int main() {
  3253. dnet_ntoa()
  3254. ; return 0; }
  3255. EOF
  3256. if { (eval echo configure:3905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3257. rm -rf conftest*
  3258. eval "ac_cv_lib_$ac_lib_var=yes"
  3259. else
  3260. echo "configure: failed program was:" >&5
  3261. cat conftest.$ac_ext >&5
  3262. rm -rf conftest*
  3263. eval "ac_cv_lib_$ac_lib_var=no"
  3264. fi
  3265. rm -f conftest*
  3266. LIBS="$ac_save_LIBS"
  3267. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3268. echo "$ac_t""yes" 1>&6
  3269. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  3270. else
  3271. echo "$ac_t""no" 1>&6
  3272. fi
  3273. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  3274. echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
  3275. echo "configure:3926: checking for dnet_ntoa in -ldnet_stub" >&5
  3276. ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  3277. ac_save_LIBS="$LIBS"
  3278. LIBS="-ldnet_stub $LIBS"
  3279. cat > conftest.$ac_ext <<EOF
  3280. #line 3932 "configure"
  3281. #include "confdefs.h"
  3282. /* Override any gcc2 internal prototype to avoid an error. */
  3283. /* We use char because int might match the return type of a gcc2
  3284. builtin and then its argument prototype would still apply. */
  3285. char dnet_ntoa();
  3286. int main() {
  3287. dnet_ntoa()
  3288. ; return 0; }
  3289. EOF
  3290. if { (eval echo configure:3943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3291. rm -rf conftest*
  3292. eval "ac_cv_lib_$ac_lib_var=yes"
  3293. else
  3294. echo "configure: failed program was:" >&5
  3295. cat conftest.$ac_ext >&5
  3296. rm -rf conftest*
  3297. eval "ac_cv_lib_$ac_lib_var=no"
  3298. fi
  3299. rm -f conftest*
  3300. LIBS="$ac_save_LIBS"
  3301. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3302. echo "$ac_t""yes" 1>&6
  3303. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  3304. else
  3305. echo "$ac_t""no" 1>&6
  3306. fi
  3307. fi
  3308. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  3309. # to get the SysV transport functions.
  3310. # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
  3311. # needs -lnsl.
  3312. # The nsl library prevents programs from opening the X display
  3313. # on Irix 5.2, according to dickey@clark.net.
  3314. echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
  3315. echo "configure:3971: checking for gethostbyname" >&5
  3316. cat > conftest.$ac_ext <<EOF
  3317. #line 3974 "configure"
  3318. #include "confdefs.h"
  3319. /* System header to define __stub macros and hopefully few prototypes,
  3320. which can conflict with char gethostbyname(); below. */
  3321. #include <assert.h>
  3322. /* Override any gcc2 internal prototype to avoid an error. */
  3323. /* We use char because int might match the return type of a gcc2
  3324. builtin and then its argument prototype would still apply. */
  3325. char gethostbyname();
  3326. int main() {
  3327. /* The GNU C library defines this for functions which it implements
  3328. to always fail with ENOSYS. Some functions are actually named
  3329. something starting with __ and the normal name is an alias. */
  3330. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  3331. choke me
  3332. #else
  3333. gethostbyname();
  3334. #endif
  3335. ; return 0; }
  3336. EOF
  3337. if { (eval echo configure:3997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3338. rm -rf conftest*
  3339. eval "ac_cv_func_gethostbyname=yes"
  3340. else
  3341. echo "configure: failed program was:" >&5
  3342. cat conftest.$ac_ext >&5
  3343. rm -rf conftest*
  3344. eval "ac_cv_func_gethostbyname=no"
  3345. fi
  3346. rm -f conftest*
  3347. if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  3348. echo "$ac_t""yes" 1>&6
  3349. :
  3350. else
  3351. echo "$ac_t""no" 1>&6
  3352. fi
  3353. if test $ac_cv_func_gethostbyname = no; then
  3354. echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  3355. echo "configure:4017: checking for gethostbyname in -lnsl" >&5
  3356. ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  3357. ac_save_LIBS="$LIBS"
  3358. LIBS="-lnsl $LIBS"
  3359. cat > conftest.$ac_ext <<EOF
  3360. #line 4023 "configure"
  3361. #include "confdefs.h"
  3362. /* Override any gcc2 internal prototype to avoid an error. */
  3363. /* We use char because int might match the return type of a gcc2
  3364. builtin and then its argument prototype would still apply. */
  3365. char gethostbyname();
  3366. int main() {
  3367. gethostbyname()
  3368. ; return 0; }
  3369. EOF
  3370. if { (eval echo configure:4034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3371. rm -rf conftest*
  3372. eval "ac_cv_lib_$ac_lib_var=yes"
  3373. else
  3374. echo "configure: failed program was:" >&5
  3375. cat conftest.$ac_ext >&5
  3376. rm -rf conftest*
  3377. eval "ac_cv_lib_$ac_lib_var=no"
  3378. fi
  3379. rm -f conftest*
  3380. LIBS="$ac_save_LIBS"
  3381. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3382. echo "$ac_t""yes" 1>&6
  3383. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  3384. else
  3385. echo "$ac_t""no" 1>&6
  3386. fi
  3387. fi
  3388. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  3389. # socket/setsockopt and other routines are undefined under SCO ODT
  3390. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  3391. # on later versions), says simon@lia.di.epfl.ch: it contains
  3392. # gethostby* variants that don't use the nameserver (or something).
  3393. # -lsocket must be given before -lnsl if both are needed.
  3394. # We assume that if connect needs -lnsl, so does gethostbyname.
  3395. echo $ac_n "checking for connect""... $ac_c" 1>&6
  3396. echo "configure:4063: checking for connect" >&5
  3397. cat > conftest.$ac_ext <<EOF
  3398. #line 4066 "configure"
  3399. #include "confdefs.h"
  3400. /* System header to define __stub macros and hopefully few prototypes,
  3401. which can conflict with char connect(); below. */
  3402. #include <assert.h>
  3403. /* Override any gcc2 internal prototype to avoid an error. */
  3404. /* We use char because int might match the return type of a gcc2
  3405. builtin and then its argument prototype would still apply. */
  3406. char connect();
  3407. int main() {
  3408. /* The GNU C library defines this for functions which it implements
  3409. to always fail with ENOSYS. Some functions are actually named
  3410. something starting with __ and the normal name is an alias. */
  3411. #if defined (__stub_connect) || defined (__stub___connect)
  3412. choke me
  3413. #else
  3414. connect();
  3415. #endif
  3416. ; return 0; }
  3417. EOF
  3418. if { (eval echo configure:4089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3419. rm -rf conftest*
  3420. eval "ac_cv_func_connect=yes"
  3421. else
  3422. echo "configure: failed program was:" >&5
  3423. cat conftest.$ac_ext >&5
  3424. rm -rf conftest*
  3425. eval "ac_cv_func_connect=no"
  3426. fi
  3427. rm -f conftest*
  3428. if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  3429. echo "$ac_t""yes" 1>&6
  3430. :
  3431. else
  3432. echo "$ac_t""no" 1>&6
  3433. fi
  3434. if test $ac_cv_func_connect = no; then
  3435. echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
  3436. echo "configure:4109: checking for connect in -lsocket" >&5
  3437. ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
  3438. ac_save_LIBS="$LIBS"
  3439. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  3440. cat > conftest.$ac_ext <<EOF
  3441. #line 4115 "configure"
  3442. #include "confdefs.h"
  3443. /* Override any gcc2 internal prototype to avoid an error. */
  3444. /* We use char because int might match the return type of a gcc2
  3445. builtin and then its argument prototype would still apply. */
  3446. char connect();
  3447. int main() {
  3448. connect()
  3449. ; return 0; }
  3450. EOF
  3451. if { (eval echo configure:4126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3452. rm -rf conftest*
  3453. eval "ac_cv_lib_$ac_lib_var=yes"
  3454. else
  3455. echo "configure: failed program was:" >&5
  3456. cat conftest.$ac_ext >&5
  3457. rm -rf conftest*
  3458. eval "ac_cv_lib_$ac_lib_var=no"
  3459. fi
  3460. rm -f conftest*
  3461. LIBS="$ac_save_LIBS"
  3462. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3463. echo "$ac_t""yes" 1>&6
  3464. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  3465. else
  3466. echo "$ac_t""no" 1>&6
  3467. fi
  3468. fi
  3469. # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
  3470. echo $ac_n "checking for remove""... $ac_c" 1>&6
  3471. echo "configure:4149: checking for remove" >&5
  3472. cat > conftest.$ac_ext <<EOF
  3473. #line 4152 "configure"
  3474. #include "confdefs.h"
  3475. /* System header to define __stub macros and hopefully few prototypes,
  3476. which can conflict with char remove(); below. */
  3477. #include <assert.h>
  3478. /* Override any gcc2 internal prototype to avoid an error. */
  3479. /* We use char because int might match the return type of a gcc2
  3480. builtin and then its argument prototype would still apply. */
  3481. char remove();
  3482. int main() {
  3483. /* The GNU C library defines this for functions which it implements
  3484. to always fail with ENOSYS. Some functions are actually named
  3485. something starting with __ and the normal name is an alias. */
  3486. #if defined (__stub_remove) || defined (__stub___remove)
  3487. choke me
  3488. #else
  3489. remove();
  3490. #endif
  3491. ; return 0; }
  3492. EOF
  3493. if { (eval echo configure:4175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3494. rm -rf conftest*
  3495. eval "ac_cv_func_remove=yes"
  3496. else
  3497. echo "configure: failed program was:" >&5
  3498. cat conftest.$ac_ext >&5
  3499. rm -rf conftest*
  3500. eval "ac_cv_func_remove=no"
  3501. fi
  3502. rm -f conftest*
  3503. if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
  3504. echo "$ac_t""yes" 1>&6
  3505. :
  3506. else
  3507. echo "$ac_t""no" 1>&6
  3508. fi
  3509. if test $ac_cv_func_remove = no; then
  3510. echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
  3511. echo "configure:4195: checking for remove in -lposix" >&5
  3512. ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
  3513. ac_save_LIBS="$LIBS"
  3514. LIBS="-lposix $LIBS"
  3515. cat > conftest.$ac_ext <<EOF
  3516. #line 4201 "configure"
  3517. #include "confdefs.h"
  3518. /* Override any gcc2 internal prototype to avoid an error. */
  3519. /* We use char because int might match the return type of a gcc2
  3520. builtin and then its argument prototype would still apply. */
  3521. char remove();
  3522. int main() {
  3523. remove()
  3524. ; return 0; }
  3525. EOF
  3526. if { (eval echo configure:4212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3527. rm -rf conftest*
  3528. eval "ac_cv_lib_$ac_lib_var=yes"
  3529. else
  3530. echo "configure: failed program was:" >&5
  3531. cat conftest.$ac_ext >&5
  3532. rm -rf conftest*
  3533. eval "ac_cv_lib_$ac_lib_var=no"
  3534. fi
  3535. rm -f conftest*
  3536. LIBS="$ac_save_LIBS"
  3537. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3538. echo "$ac_t""yes" 1>&6
  3539. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  3540. else
  3541. echo "$ac_t""no" 1>&6
  3542. fi
  3543. fi
  3544. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  3545. echo $ac_n "checking for shmat""... $ac_c" 1>&6
  3546. echo "configure:4235: checking for shmat" >&5
  3547. cat > conftest.$ac_ext <<EOF
  3548. #line 4238 "configure"
  3549. #include "confdefs.h"
  3550. /* System header to define __stub macros and hopefully few prototypes,
  3551. which can conflict with char shmat(); below. */
  3552. #include <assert.h>
  3553. /* Override any gcc2 internal prototype to avoid an error. */
  3554. /* We use char because int might match the return type of a gcc2
  3555. builtin and then its argument prototype would still apply. */
  3556. char shmat();
  3557. int main() {
  3558. /* The GNU C library defines this for functions which it implements
  3559. to always fail with ENOSYS. Some functions are actually named
  3560. something starting with __ and the normal name is an alias. */
  3561. #if defined (__stub_shmat) || defined (__stub___shmat)
  3562. choke me
  3563. #else
  3564. shmat();
  3565. #endif
  3566. ; return 0; }
  3567. EOF
  3568. if { (eval echo configure:4261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3569. rm -rf conftest*
  3570. eval "ac_cv_func_shmat=yes"
  3571. else
  3572. echo "configure: failed program was:" >&5
  3573. cat conftest.$ac_ext >&5
  3574. rm -rf conftest*
  3575. eval "ac_cv_func_shmat=no"
  3576. fi
  3577. rm -f conftest*
  3578. if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
  3579. echo "$ac_t""yes" 1>&6
  3580. :
  3581. else
  3582. echo "$ac_t""no" 1>&6
  3583. fi
  3584. if test $ac_cv_func_shmat = no; then
  3585. echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
  3586. echo "configure:4281: checking for shmat in -lipc" >&5
  3587. ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
  3588. ac_save_LIBS="$LIBS"
  3589. LIBS="-lipc $LIBS"
  3590. cat > conftest.$ac_ext <<EOF
  3591. #line 4287 "configure"
  3592. #include "confdefs.h"
  3593. /* Override any gcc2 internal prototype to avoid an error. */
  3594. /* We use char because int might match the return type of a gcc2
  3595. builtin and then its argument prototype would still apply. */
  3596. char shmat();
  3597. int main() {
  3598. shmat()
  3599. ; return 0; }
  3600. EOF
  3601. if { (eval echo configure:4298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3602. rm -rf conftest*
  3603. eval "ac_cv_lib_$ac_lib_var=yes"
  3604. else
  3605. echo "configure: failed program was:" >&5
  3606. cat conftest.$ac_ext >&5
  3607. rm -rf conftest*
  3608. eval "ac_cv_lib_$ac_lib_var=no"
  3609. fi
  3610. rm -f conftest*
  3611. LIBS="$ac_save_LIBS"
  3612. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3613. echo "$ac_t""yes" 1>&6
  3614. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  3615. else
  3616. echo "$ac_t""no" 1>&6
  3617. fi
  3618. fi
  3619. fi
  3620. # Check for libraries that X11R6 Xt/Xaw programs need.
  3621. ac_save_LDFLAGS="$LDFLAGS"
  3622. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  3623. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  3624. # check for ICE first), but we must link in the order -lSM -lICE or
  3625. # we get undefined symbols. So assume we have SM if we have ICE.
  3626. # These have to be linked with before -lX11, unlike the other
  3627. # libraries we check for below, so use a different variable.
  3628. # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  3629. echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
  3630. echo "configure:4330: checking for IceConnectionNumber in -lICE" >&5
  3631. ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
  3632. ac_save_LIBS="$LIBS"
  3633. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  3634. cat > conftest.$ac_ext <<EOF
  3635. #line 4336 "configure"
  3636. #include "confdefs.h"
  3637. /* Override any gcc2 internal prototype to avoid an error. */
  3638. /* We use char because int might match the return type of a gcc2
  3639. builtin and then its argument prototype would still apply. */
  3640. char IceConnectionNumber();
  3641. int main() {
  3642. IceConnectionNumber()
  3643. ; return 0; }
  3644. EOF
  3645. if { (eval echo configure:4347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3646. rm -rf conftest*
  3647. eval "ac_cv_lib_$ac_lib_var=yes"
  3648. else
  3649. echo "configure: failed program was:" >&5
  3650. cat conftest.$ac_ext >&5
  3651. rm -rf conftest*
  3652. eval "ac_cv_lib_$ac_lib_var=no"
  3653. fi
  3654. rm -f conftest*
  3655. LIBS="$ac_save_LIBS"
  3656. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3657. echo "$ac_t""yes" 1>&6
  3658. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  3659. else
  3660. echo "$ac_t""no" 1>&6
  3661. fi
  3662. LDFLAGS="$ac_save_LDFLAGS"
  3663. fi
  3664. if test "$no_x" != "yes"; then
  3665. USE_X11="1"
  3666. XLIB=-lX11
  3667. XTLIB=-lXt
  3668. fi
  3669. fi
  3670. # Note that some systems (FreeBSD for example) need an extra library for
  3671. # cuserid
  3672. ac_save_libs="$LIBS"
  3673. LIBS=""
  3674. echo $ac_n "checking for library containing cuserid""... $ac_c" 1>&6
  3675. echo "configure:4387: checking for library containing cuserid" >&5
  3676. ac_func_search_save_LIBS="$LIBS"
  3677. ac_cv_search_cuserid="no"
  3678. cat > conftest.$ac_ext <<EOF
  3679. #line 4392 "configure"
  3680. #include "confdefs.h"
  3681. /* Override any gcc2 internal prototype to avoid an error. */
  3682. /* We use char because int might match the return type of a gcc2
  3683. builtin and then its argument prototype would still apply. */
  3684. char cuserid();
  3685. int main() {
  3686. cuserid()
  3687. ; return 0; }
  3688. EOF
  3689. if { (eval echo configure:4403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3690. rm -rf conftest*
  3691. ac_cv_search_cuserid="none required"
  3692. else
  3693. echo "configure: failed program was:" >&5
  3694. cat conftest.$ac_ext >&5
  3695. fi
  3696. rm -f conftest*
  3697. test "$ac_cv_search_cuserid" = "no" && for i in compat; do
  3698. LIBS="-l$i $ac_func_search_save_LIBS"
  3699. cat > conftest.$ac_ext <<EOF
  3700. #line 4414 "configure"
  3701. #include "confdefs.h"
  3702. /* Override any gcc2 internal prototype to avoid an error. */
  3703. /* We use char because int might match the return type of a gcc2
  3704. builtin and then its argument prototype would still apply. */
  3705. char cuserid();
  3706. int main() {
  3707. cuserid()
  3708. ; return 0; }
  3709. EOF
  3710. if { (eval echo configure:4425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3711. rm -rf conftest*
  3712. ac_cv_search_cuserid="-l$i"
  3713. break
  3714. else
  3715. echo "configure: failed program was:" >&5
  3716. cat conftest.$ac_ext >&5
  3717. fi
  3718. rm -f conftest*
  3719. done
  3720. LIBS="$ac_func_search_save_LIBS"
  3721. echo "$ac_t""$ac_cv_search_cuserid" 1>&6
  3722. if test "$ac_cv_search_cuserid" != "no"; then
  3723. test "$ac_cv_search_cuserid" = "none required" || LIBS="$ac_cv_search_cuserid $LIBS"
  3724. else :
  3725. fi
  3726. DBMIEXTRALIB="$LIBS"
  3727. LIBS="$ac_save_libs"
  3728. for ac_func in asprintf
  3729. do
  3730. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3731. echo "configure:4451: checking for $ac_func" >&5
  3732. cat > conftest.$ac_ext <<EOF
  3733. #line 4454 "configure"
  3734. #include "confdefs.h"
  3735. /* System header to define __stub macros and hopefully few prototypes,
  3736. which can conflict with char $ac_func(); below. */
  3737. #include <assert.h>
  3738. /* Override any gcc2 internal prototype to avoid an error. */
  3739. /* We use char because int might match the return type of a gcc2
  3740. builtin and then its argument prototype would still apply. */
  3741. char $ac_func();
  3742. int main() {
  3743. /* The GNU C library defines this for functions which it implements
  3744. to always fail with ENOSYS. Some functions are actually named
  3745. something starting with __ and the normal name is an alias. */
  3746. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3747. choke me
  3748. #else
  3749. $ac_func();
  3750. #endif
  3751. ; return 0; }
  3752. EOF
  3753. if { (eval echo configure:4477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3754. rm -rf conftest*
  3755. eval "ac_cv_func_$ac_func=yes"
  3756. else
  3757. echo "configure: failed program was:" >&5
  3758. cat conftest.$ac_ext >&5
  3759. rm -rf conftest*
  3760. eval "ac_cv_func_$ac_func=no"
  3761. fi
  3762. rm -f conftest*
  3763. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3764. echo "$ac_t""yes" 1>&6
  3765. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3766. cat >> confdefs.h <<EOF
  3767. #define $ac_tr_func 1
  3768. EOF
  3769. else
  3770. echo "$ac_t""no" 1>&6
  3771. fi
  3772. done
  3773. # Test if mathlib needs -lm flag or is included with libc
  3774. echo $ac_n "checking for atan""... $ac_c" 1>&6
  3775. echo "configure:4504: checking for atan" >&5
  3776. cat > conftest.$ac_ext <<EOF
  3777. #line 4507 "configure"
  3778. #include "confdefs.h"
  3779. /* System header to define __stub macros and hopefully few prototypes,
  3780. which can conflict with char atan(); below. */
  3781. #include <assert.h>
  3782. /* Override any gcc2 internal prototype to avoid an error. */
  3783. /* We use char because int might match the return type of a gcc2
  3784. builtin and then its argument prototype would still apply. */
  3785. char atan();
  3786. int main() {
  3787. /* The GNU C library defines this for functions which it implements
  3788. to always fail with ENOSYS. Some functions are actually named
  3789. something starting with __ and the normal name is an alias. */
  3790. #if defined (__stub_atan) || defined (__stub___atan)
  3791. choke me
  3792. #else
  3793. atan();
  3794. #endif
  3795. ; return 0; }
  3796. EOF
  3797. if { (eval echo configure:4530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3798. rm -rf conftest*
  3799. eval "ac_cv_func_atan=yes"
  3800. else
  3801. echo "configure: failed program was:" >&5
  3802. cat conftest.$ac_ext >&5
  3803. rm -rf conftest*
  3804. eval "ac_cv_func_atan=no"
  3805. fi
  3806. rm -f conftest*
  3807. if eval "test \"`echo '$ac_cv_func_'atan`\" = yes"; then
  3808. echo "$ac_t""yes" 1>&6
  3809. MATHLIB=
  3810. else
  3811. echo "$ac_t""no" 1>&6
  3812. echo $ac_n "checking for atan in -lm""... $ac_c" 1>&6
  3813. echo "configure:4548: checking for atan in -lm" >&5
  3814. ac_lib_var=`echo m'_'atan | sed 'y%./+-%__p_%'`
  3815. ac_save_LIBS="$LIBS"
  3816. LIBS="-lm $LIBS"
  3817. cat > conftest.$ac_ext <<EOF
  3818. #line 4554 "configure"
  3819. #include "confdefs.h"
  3820. /* Override any gcc2 internal prototype to avoid an error. */
  3821. /* We use char because int might match the return type of a gcc2
  3822. builtin and then its argument prototype would still apply. */
  3823. char atan();
  3824. int main() {
  3825. atan()
  3826. ; return 0; }
  3827. EOF
  3828. if { (eval echo configure:4565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3829. rm -rf conftest*
  3830. eval "ac_cv_lib_$ac_lib_var=yes"
  3831. else
  3832. echo "configure: failed program was:" >&5
  3833. cat conftest.$ac_ext >&5
  3834. rm -rf conftest*
  3835. eval "ac_cv_lib_$ac_lib_var=no"
  3836. fi
  3837. rm -f conftest*
  3838. LIBS="$ac_save_LIBS"
  3839. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3840. echo "$ac_t""yes" 1>&6
  3841. MATHLIB=-lm
  3842. else
  3843. echo "$ac_t""no" 1>&6
  3844. { echo "configure: error: *** Failed check for math library." 1>&2; exit 1; }
  3845. fi
  3846. fi
  3847. echo $ac_n "checking for dlsym""... $ac_c" 1>&6
  3848. echo "configure:4592: checking for dlsym" >&5
  3849. cat > conftest.$ac_ext <<EOF
  3850. #line 4595 "configure"
  3851. #include "confdefs.h"
  3852. /* System header to define __stub macros and hopefully few prototypes,
  3853. which can conflict with char dlsym(); below. */
  3854. #include <assert.h>
  3855. /* Override any gcc2 internal prototype to avoid an error. */
  3856. /* We use char because int might match the return type of a gcc2
  3857. builtin and then its argument prototype would still apply. */
  3858. char dlsym();
  3859. int main() {
  3860. /* The GNU C library defines this for functions which it implements
  3861. to always fail with ENOSYS. Some functions are actually named
  3862. something starting with __ and the normal name is an alias. */
  3863. #if defined (__stub_dlsym) || defined (__stub___dlsym)
  3864. choke me
  3865. #else
  3866. dlsym();
  3867. #endif
  3868. ; return 0; }
  3869. EOF
  3870. if { (eval echo configure:4618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3871. rm -rf conftest*
  3872. eval "ac_cv_func_dlsym=yes"
  3873. else
  3874. echo "configure: failed program was:" >&5
  3875. cat conftest.$ac_ext >&5
  3876. rm -rf conftest*
  3877. eval "ac_cv_func_dlsym=no"
  3878. fi
  3879. rm -f conftest*
  3880. if eval "test \"`echo '$ac_cv_func_'dlsym`\" = yes"; then
  3881. echo "$ac_t""yes" 1>&6
  3882. DLLIB=
  3883. else
  3884. echo "$ac_t""no" 1>&6
  3885. echo $ac_n "checking for dlsym in -ldl""... $ac_c" 1>&6
  3886. echo "configure:4636: checking for dlsym in -ldl" >&5
  3887. ac_lib_var=`echo dl'_'dlsym | sed 'y%./+-%__p_%'`
  3888. ac_save_LIBS="$LIBS"
  3889. LIBS="-ldl $LIBS"
  3890. cat > conftest.$ac_ext <<EOF
  3891. #line 4642 "configure"
  3892. #include "confdefs.h"
  3893. /* Override any gcc2 internal prototype to avoid an error. */
  3894. /* We use char because int might match the return type of a gcc2
  3895. builtin and then its argument prototype would still apply. */
  3896. char dlsym();
  3897. int main() {
  3898. dlsym()
  3899. ; return 0; }
  3900. EOF
  3901. if { (eval echo configure:4653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3902. rm -rf conftest*
  3903. eval "ac_cv_lib_$ac_lib_var=yes"
  3904. else
  3905. echo "configure: failed program was:" >&5
  3906. cat conftest.$ac_ext >&5
  3907. rm -rf conftest*
  3908. eval "ac_cv_lib_$ac_lib_var=no"
  3909. fi
  3910. rm -f conftest*
  3911. LIBS="$ac_save_LIBS"
  3912. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3913. echo "$ac_t""yes" 1>&6
  3914. DLLIB=-ldl
  3915. else
  3916. echo "$ac_t""no" 1>&6
  3917. DLLIB=
  3918. fi
  3919. fi
  3920. echo $ac_n "checking for iconv""... $ac_c" 1>&6
  3921. echo "configure:4680: checking for iconv" >&5
  3922. cat > conftest.$ac_ext <<EOF
  3923. #line 4683 "configure"
  3924. #include "confdefs.h"
  3925. /* System header to define __stub macros and hopefully few prototypes,
  3926. which can conflict with char iconv(); below. */
  3927. #include <assert.h>
  3928. /* Override any gcc2 internal prototype to avoid an error. */
  3929. /* We use char because int might match the return type of a gcc2
  3930. builtin and then its argument prototype would still apply. */
  3931. char iconv();
  3932. int main() {
  3933. /* The GNU C library defines this for functions which it implements
  3934. to always fail with ENOSYS. Some functions are actually named
  3935. something starting with __ and the normal name is an alias. */
  3936. #if defined (__stub_iconv) || defined (__stub___iconv)
  3937. choke me
  3938. #else
  3939. iconv();
  3940. #endif
  3941. ; return 0; }
  3942. EOF
  3943. if { (eval echo configure:4706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3944. rm -rf conftest*
  3945. eval "ac_cv_func_iconv=yes"
  3946. else
  3947. echo "configure: failed program was:" >&5
  3948. cat conftest.$ac_ext >&5
  3949. rm -rf conftest*
  3950. eval "ac_cv_func_iconv=no"
  3951. fi
  3952. rm -f conftest*
  3953. if eval "test \"`echo '$ac_cv_func_'iconv`\" = yes"; then
  3954. echo "$ac_t""yes" 1>&6
  3955. ICONVLIB=
  3956. else
  3957. echo "$ac_t""no" 1>&6
  3958. echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
  3959. echo "configure:4724: checking for iconv in -liconv" >&5
  3960. ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
  3961. ac_save_LIBS="$LIBS"
  3962. LIBS="-liconv $LIBS"
  3963. cat > conftest.$ac_ext <<EOF
  3964. #line 4730 "configure"
  3965. #include "confdefs.h"
  3966. /* Override any gcc2 internal prototype to avoid an error. */
  3967. /* We use char because int might match the return type of a gcc2
  3968. builtin and then its argument prototype would still apply. */
  3969. char iconv();
  3970. int main() {
  3971. iconv()
  3972. ; return 0; }
  3973. EOF
  3974. if { (eval echo configure:4741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3975. rm -rf conftest*
  3976. eval "ac_cv_lib_$ac_lib_var=yes"
  3977. else
  3978. echo "configure: failed program was:" >&5
  3979. cat conftest.$ac_ext >&5
  3980. rm -rf conftest*
  3981. eval "ac_cv_lib_$ac_lib_var=no"
  3982. fi
  3983. rm -f conftest*
  3984. LIBS="$ac_save_LIBS"
  3985. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3986. echo "$ac_t""yes" 1>&6
  3987. ICONVLIB=-liconv
  3988. else
  3989. echo "$ac_t""no" 1>&6
  3990. echo $ac_n "checking for iconv in -lgiconv""... $ac_c" 1>&6
  3991. echo "configure:4760: checking for iconv in -lgiconv" >&5
  3992. ac_lib_var=`echo giconv'_'iconv | sed 'y%./+-%__p_%'`
  3993. ac_save_LIBS="$LIBS"
  3994. LIBS="-lgiconv $LIBS"
  3995. cat > conftest.$ac_ext <<EOF
  3996. #line 4766 "configure"
  3997. #include "confdefs.h"
  3998. /* Override any gcc2 internal prototype to avoid an error. */
  3999. /* We use char because int might match the return type of a gcc2
  4000. builtin and then its argument prototype would still apply. */
  4001. char iconv();
  4002. int main() {
  4003. iconv()
  4004. ; return 0; }
  4005. EOF
  4006. if { (eval echo configure:4777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4007. rm -rf conftest*
  4008. eval "ac_cv_lib_$ac_lib_var=yes"
  4009. else
  4010. echo "configure: failed program was:" >&5
  4011. cat conftest.$ac_ext >&5
  4012. rm -rf conftest*
  4013. eval "ac_cv_lib_$ac_lib_var=no"
  4014. fi
  4015. rm -f conftest*
  4016. LIBS="$ac_save_LIBS"
  4017. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4018. echo "$ac_t""yes" 1>&6
  4019. ICONVLIB=-lgiconv
  4020. else
  4021. echo "$ac_t""no" 1>&6
  4022. echo $ac_n "checking for libiconv""... $ac_c" 1>&6
  4023. echo "configure:4796: checking for libiconv" >&5
  4024. cat > conftest.$ac_ext <<EOF
  4025. #line 4799 "configure"
  4026. #include "confdefs.h"
  4027. /* System header to define __stub macros and hopefully few prototypes,
  4028. which can conflict with char libiconv(); below. */
  4029. #include <assert.h>
  4030. /* Override any gcc2 internal prototype to avoid an error. */
  4031. /* We use char because int might match the return type of a gcc2
  4032. builtin and then its argument prototype would still apply. */
  4033. char libiconv();
  4034. int main() {
  4035. /* The GNU C library defines this for functions which it implements
  4036. to always fail with ENOSYS. Some functions are actually named
  4037. something starting with __ and the normal name is an alias. */
  4038. #if defined (__stub_libiconv) || defined (__stub___libiconv)
  4039. choke me
  4040. #else
  4041. libiconv();
  4042. #endif
  4043. ; return 0; }
  4044. EOF
  4045. if { (eval echo configure:4822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4046. rm -rf conftest*
  4047. eval "ac_cv_func_libiconv=yes"
  4048. else
  4049. echo "configure: failed program was:" >&5
  4050. cat conftest.$ac_ext >&5
  4051. rm -rf conftest*
  4052. eval "ac_cv_func_libiconv=no"
  4053. fi
  4054. rm -f conftest*
  4055. if eval "test \"`echo '$ac_cv_func_'libiconv`\" = yes"; then
  4056. echo "$ac_t""yes" 1>&6
  4057. ICONVLIB=
  4058. else
  4059. echo "$ac_t""no" 1>&6
  4060. echo $ac_n "checking for libiconv in -liconv""... $ac_c" 1>&6
  4061. echo "configure:4840: checking for libiconv in -liconv" >&5
  4062. ac_lib_var=`echo iconv'_'libiconv | sed 'y%./+-%__p_%'`
  4063. ac_save_LIBS="$LIBS"
  4064. LIBS="-liconv $LIBS"
  4065. cat > conftest.$ac_ext <<EOF
  4066. #line 4846 "configure"
  4067. #include "confdefs.h"
  4068. /* Override any gcc2 internal prototype to avoid an error. */
  4069. /* We use char because int might match the return type of a gcc2
  4070. builtin and then its argument prototype would still apply. */
  4071. char libiconv();
  4072. int main() {
  4073. libiconv()
  4074. ; return 0; }
  4075. EOF
  4076. if { (eval echo configure:4857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4077. rm -rf conftest*
  4078. eval "ac_cv_lib_$ac_lib_var=yes"
  4079. else
  4080. echo "configure: failed program was:" >&5
  4081. cat conftest.$ac_ext >&5
  4082. rm -rf conftest*
  4083. eval "ac_cv_lib_$ac_lib_var=no"
  4084. fi
  4085. rm -f conftest*
  4086. LIBS="$ac_save_LIBS"
  4087. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4088. echo "$ac_t""yes" 1>&6
  4089. ICONVLIB=-liconv
  4090. else
  4091. echo "$ac_t""no" 1>&6
  4092. echo $ac_n "checking for libiconv in -lgiconv""... $ac_c" 1>&6
  4093. echo "configure:4876: checking for libiconv in -lgiconv" >&5
  4094. ac_lib_var=`echo giconv'_'libiconv | sed 'y%./+-%__p_%'`
  4095. ac_save_LIBS="$LIBS"
  4096. LIBS="-lgiconv $LIBS"
  4097. cat > conftest.$ac_ext <<EOF
  4098. #line 4882 "configure"
  4099. #include "confdefs.h"
  4100. /* Override any gcc2 internal prototype to avoid an error. */
  4101. /* We use char because int might match the return type of a gcc2
  4102. builtin and then its argument prototype would still apply. */
  4103. char libiconv();
  4104. int main() {
  4105. libiconv()
  4106. ; return 0; }
  4107. EOF
  4108. if { (eval echo configure:4893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4109. rm -rf conftest*
  4110. eval "ac_cv_lib_$ac_lib_var=yes"
  4111. else
  4112. echo "configure: failed program was:" >&5
  4113. cat conftest.$ac_ext >&5
  4114. rm -rf conftest*
  4115. eval "ac_cv_lib_$ac_lib_var=no"
  4116. fi
  4117. rm -f conftest*
  4118. LIBS="$ac_save_LIBS"
  4119. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4120. echo "$ac_t""yes" 1>&6
  4121. ICONVLIB=-lgiconv
  4122. else
  4123. echo "$ac_t""no" 1>&6
  4124. echo "configure: warning: *** Unable to locate iconv() function." 1>&2
  4125. ICONVLIB=
  4126. fi
  4127. fi
  4128. fi
  4129. fi
  4130. fi
  4131. fi
  4132. have_socket=1
  4133. echo $ac_n "checking for socket""... $ac_c" 1>&6
  4134. echo "configure:4930: checking for socket" >&5
  4135. cat > conftest.$ac_ext <<EOF
  4136. #line 4933 "configure"
  4137. #include "confdefs.h"
  4138. /* System header to define __stub macros and hopefully few prototypes,
  4139. which can conflict with char socket(); below. */
  4140. #include <assert.h>
  4141. /* Override any gcc2 internal prototype to avoid an error. */
  4142. /* We use char because int might match the return type of a gcc2
  4143. builtin and then its argument prototype would still apply. */
  4144. char socket();
  4145. int main() {
  4146. /* The GNU C library defines this for functions which it implements
  4147. to always fail with ENOSYS. Some functions are actually named
  4148. something starting with __ and the normal name is an alias. */
  4149. #if defined (__stub_socket) || defined (__stub___socket)
  4150. choke me
  4151. #else
  4152. socket();
  4153. #endif
  4154. ; return 0; }
  4155. EOF
  4156. if { (eval echo configure:4956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4157. rm -rf conftest*
  4158. eval "ac_cv_func_socket=yes"
  4159. else
  4160. echo "configure: failed program was:" >&5
  4161. cat conftest.$ac_ext >&5
  4162. rm -rf conftest*
  4163. eval "ac_cv_func_socket=no"
  4164. fi
  4165. rm -f conftest*
  4166. if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
  4167. echo "$ac_t""yes" 1>&6
  4168. SOCKLIB=
  4169. else
  4170. echo "$ac_t""no" 1>&6
  4171. echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
  4172. echo "configure:4974: checking for socket in -lsocket" >&5
  4173. ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
  4174. ac_save_LIBS="$LIBS"
  4175. LIBS="-lsocket $LIBS"
  4176. cat > conftest.$ac_ext <<EOF
  4177. #line 4980 "configure"
  4178. #include "confdefs.h"
  4179. /* Override any gcc2 internal prototype to avoid an error. */
  4180. /* We use char because int might match the return type of a gcc2
  4181. builtin and then its argument prototype would still apply. */
  4182. char socket();
  4183. int main() {
  4184. socket()
  4185. ; return 0; }
  4186. EOF
  4187. if { (eval echo configure:4991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4188. rm -rf conftest*
  4189. eval "ac_cv_lib_$ac_lib_var=yes"
  4190. else
  4191. echo "configure: failed program was:" >&5
  4192. cat conftest.$ac_ext >&5
  4193. rm -rf conftest*
  4194. eval "ac_cv_lib_$ac_lib_var=no"
  4195. fi
  4196. rm -f conftest*
  4197. LIBS="$ac_save_LIBS"
  4198. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4199. echo "$ac_t""yes" 1>&6
  4200. SOCKLIB=-lsocket
  4201. else
  4202. echo "$ac_t""no" 1>&6
  4203. have_socket=0
  4204. echo "configure: warning: *** Unable to locate socket() function." 1>&2
  4205. fi
  4206. fi
  4207. if test "$have_socket" = 1 ; then
  4208. HAVE_SOCKET=1
  4209. cat >> confdefs.h <<\EOF
  4210. #define HAVE_SOCKET 1
  4211. EOF
  4212. else
  4213. HAVE_SOCKET=
  4214. fi
  4215. # Mandatory zlib dependency
  4216. ZLIBLIBPATH=
  4217. ZLIBINCPATH=
  4218. ZLIB=
  4219. # With zlib includes directory
  4220. echo $ac_n "checking for location of zlib includes""... $ac_c" 1>&6
  4221. echo "configure:5039: checking for location of zlib includes" >&5
  4222. case "$with_zlib_includes" in
  4223. y | ye | yes | n | no)
  4224. { echo "configure: error: *** You must supply a directory to --with-zlib-includes." 1>&2; exit 1; }
  4225. ;;
  4226. esac
  4227. echo "$ac_t""$with_zlib_includes" 1>&6
  4228. if test -n "$with_zlib_includes" ; then
  4229. for dir in $with_zlib_includes; do
  4230. if test -d "$dir"; then
  4231. ZLIBINCPATH="$ZLIBINCPATH -I$dir"
  4232. else
  4233. { echo "configure: error: *** zlib includes directory $dir does not exist." 1>&2; exit 1; }
  4234. fi
  4235. done
  4236. fi
  4237. ac_save_cppflags="$CPPFLAGS"
  4238. CPPFLAGS="$ZLIBINCPATH $CPPFLAGS"
  4239. for ac_hdr in zlib.h
  4240. do
  4241. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4242. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4243. echo "configure:5065: checking for $ac_hdr" >&5
  4244. cat > conftest.$ac_ext <<EOF
  4245. #line 5068 "configure"
  4246. #include "confdefs.h"
  4247. #include <$ac_hdr>
  4248. EOF
  4249. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4250. { (eval echo configure:5073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4251. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4252. if test -z "$ac_err"; then
  4253. rm -rf conftest*
  4254. eval "ac_cv_header_$ac_safe=yes"
  4255. else
  4256. echo "$ac_err" >&5
  4257. echo "configure: failed program was:" >&5
  4258. cat conftest.$ac_ext >&5
  4259. rm -rf conftest*
  4260. eval "ac_cv_header_$ac_safe=no"
  4261. fi
  4262. rm -f conftest*
  4263. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4264. echo "$ac_t""yes" 1>&6
  4265. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4266. cat >> confdefs.h <<EOF
  4267. #define $ac_tr_hdr 1
  4268. EOF
  4269. else
  4270. echo "$ac_t""no" 1>&6
  4271. { echo "configure: error: *** Unable to locate zlib includes." 1>&2; exit 1; }
  4272. fi
  4273. done
  4274. CPPFLAGS=$ac_save_cppflags
  4275. # With zlib library directory
  4276. echo $ac_n "checking for location of zlib library""... $ac_c" 1>&6
  4277. echo "configure:5107: checking for location of zlib library" >&5
  4278. case "$with_zlib_libs" in
  4279. y | ye | yes | n | no)
  4280. { echo "configure: error: *** You must supply a directory to --with-zlib-libs." 1>&2; exit 1; }
  4281. ;;
  4282. esac
  4283. echo "$ac_t""$with_zlib_libs" 1>&6
  4284. if test -n "$with_zlib_libs"; then
  4285. for dir in $with_zlib_libs; do
  4286. if test -d "$dir"; then
  4287. ZLIBLIBPATH="$ZLIBLIBPATH -L$dir"
  4288. else
  4289. { echo "configure: error: *** zlib library directory $dir does not exist." 1>&2; exit 1; }
  4290. fi
  4291. done
  4292. fi
  4293. ac_save_ldflags="$LDFLAGS"
  4294. LDFLAGS="$ZLIBLIBPATH $LDFLAGS"
  4295. echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
  4296. echo "configure:5132: checking for deflate in -lz" >&5
  4297. ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
  4298. ac_save_LIBS="$LIBS"
  4299. LIBS="-lz $LIBS"
  4300. cat > conftest.$ac_ext <<EOF
  4301. #line 5138 "configure"
  4302. #include "confdefs.h"
  4303. /* Override any gcc2 internal prototype to avoid an error. */
  4304. /* We use char because int might match the return type of a gcc2
  4305. builtin and then its argument prototype would still apply. */
  4306. char deflate();
  4307. int main() {
  4308. deflate()
  4309. ; return 0; }
  4310. EOF
  4311. if { (eval echo configure:5149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4312. rm -rf conftest*
  4313. eval "ac_cv_lib_$ac_lib_var=yes"
  4314. else
  4315. echo "configure: failed program was:" >&5
  4316. cat conftest.$ac_ext >&5
  4317. rm -rf conftest*
  4318. eval "ac_cv_lib_$ac_lib_var=no"
  4319. fi
  4320. rm -f conftest*
  4321. LIBS="$ac_save_LIBS"
  4322. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4323. echo "$ac_t""yes" 1>&6
  4324. ZLIB="$ZLIB -lz "
  4325. else
  4326. echo "$ac_t""no" 1>&6
  4327. LDFLAGS=${ac_save_ldflags}
  4328. { echo "configure: error: *** Unable to locate zlib library." 1>&2; exit 1; }
  4329. fi
  4330. LDFLAGS=${ac_save_ldflags}
  4331. #
  4332. # Done checking zlib
  4333. # Mandatory PROJ dependency
  4334. PROJINC=
  4335. PROJLIB=
  4336. PROJSHARE=
  4337. # With PROJ includes directory
  4338. echo $ac_n "checking for location of External PROJ.4 includes""... $ac_c" 1>&6
  4339. echo "configure:5197: checking for location of External PROJ.4 includes" >&5
  4340. case "$with_proj_includes" in
  4341. y | ye | yes | n | no)
  4342. { echo "configure: error: *** You must supply a directory to --with-proj-includes." 1>&2; exit 1; }
  4343. ;;
  4344. esac
  4345. echo "$ac_t""$with_proj_includes" 1>&6
  4346. if test -n "$with_proj_includes" ; then
  4347. for dir in $with_proj_includes; do
  4348. if test -d "$dir"; then
  4349. PROJINC="$PROJINC -I$dir"
  4350. else
  4351. { echo "configure: error: *** External PROJ.4 includes directory $dir does not exist." 1>&2; exit 1; }
  4352. fi
  4353. done
  4354. fi
  4355. ac_save_cppflags="$CPPFLAGS"
  4356. CPPFLAGS="$PROJINC $CPPFLAGS"
  4357. for ac_hdr in proj_api.h
  4358. do
  4359. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4360. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4361. echo "configure:5223: checking for $ac_hdr" >&5
  4362. cat > conftest.$ac_ext <<EOF
  4363. #line 5226 "configure"
  4364. #include "confdefs.h"
  4365. #include <$ac_hdr>
  4366. EOF
  4367. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4368. { (eval echo configure:5231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4369. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4370. if test -z "$ac_err"; then
  4371. rm -rf conftest*
  4372. eval "ac_cv_header_$ac_safe=yes"
  4373. else
  4374. echo "$ac_err" >&5
  4375. echo "configure: failed program was:" >&5
  4376. cat conftest.$ac_ext >&5
  4377. rm -rf conftest*
  4378. eval "ac_cv_header_$ac_safe=no"
  4379. fi
  4380. rm -f conftest*
  4381. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4382. echo "$ac_t""yes" 1>&6
  4383. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4384. cat >> confdefs.h <<EOF
  4385. #define $ac_tr_hdr 1
  4386. EOF
  4387. else
  4388. echo "$ac_t""no" 1>&6
  4389. { echo "configure: error: *** Unable to locate External PROJ.4 includes." 1>&2; exit 1; }
  4390. fi
  4391. done
  4392. CPPFLAGS=$ac_save_cppflags
  4393. # PROJ version check
  4394. if test "$cross_compiling" = yes; then
  4395. echo "configure: warning: *** Cannot check PROJ.4 version (cross-compiling)." 1>&2
  4396. else
  4397. echo $ac_n "checking External PROJ.4 version""... $ac_c" 1>&6
  4398. echo "configure:5268: checking External PROJ.4 version" >&5
  4399. ac_save_cppflags="$CPPFLAGS"
  4400. CPPFLAGS="$PROJINC $CPPFLAGS"
  4401. if test "$cross_compiling" = yes; then
  4402. proj_ver=0
  4403. echo "$ac_t""unknown (cross-compiling)" 1>&6
  4404. else
  4405. cat > conftest.$ac_ext <<EOF
  4406. #line 5276 "configure"
  4407. #include "confdefs.h"
  4408. #include <stdio.h>
  4409. #include <proj_api.h>
  4410. int main(void) {
  4411. FILE *fp = fopen("conftestdata","w");
  4412. fprintf(fp, "%d", PJ_VERSION);
  4413. return 0;
  4414. }
  4415. EOF
  4416. if { (eval echo configure:5288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4417. then
  4418. proj_ver=`cat conftestdata`
  4419. echo "$ac_t""$proj_ver" 1>&6
  4420. else
  4421. echo "configure: failed program was:" >&5
  4422. cat conftest.$ac_ext >&5
  4423. rm -fr conftest*
  4424. { echo "configure: error: *** Could not determine External PROJ.4 version." 1>&2; exit 1; }
  4425. fi
  4426. rm -fr conftest*
  4427. fi
  4428. CPPFLAGS=$ac_save_cppflags
  4429. if test `expr "$proj_ver" \< 446` = 1 ; then
  4430. { echo "configure: error: *** PROJ.4.4.6 or later is required." 1>&2; exit 1; }
  4431. fi
  4432. fi
  4433. # With PROJ library directory
  4434. echo $ac_n "checking for location of External PROJ.4 library""... $ac_c" 1>&6
  4435. echo "configure:5313: checking for location of External PROJ.4 library" >&5
  4436. case "$with_proj_libs" in
  4437. y | ye | yes | n | no)
  4438. { echo "configure: error: *** You must supply a directory to --with-proj-libs." 1>&2; exit 1; }
  4439. ;;
  4440. esac
  4441. echo "$ac_t""$with_proj_libs" 1>&6
  4442. if test -n "$with_proj_libs"; then
  4443. for dir in $with_proj_libs; do
  4444. if test -d "$dir"; then
  4445. PROJLIB="$PROJLIB -L$dir"
  4446. else
  4447. { echo "configure: error: *** External PROJ.4 library directory $dir does not exist." 1>&2; exit 1; }
  4448. fi
  4449. done
  4450. fi
  4451. ac_save_ldflags="$LDFLAGS"
  4452. LDFLAGS="$PROJLIB $LDFLAGS"
  4453. echo $ac_n "checking for pj_get_def in -lproj""... $ac_c" 1>&6
  4454. echo "configure:5338: checking for pj_get_def in -lproj" >&5
  4455. ac_lib_var=`echo proj'_'pj_get_def | sed 'y%./+-%__p_%'`
  4456. ac_save_LIBS="$LIBS"
  4457. LIBS="-lproj $LIBS"
  4458. cat > conftest.$ac_ext <<EOF
  4459. #line 5344 "configure"
  4460. #include "confdefs.h"
  4461. /* Override any gcc2 internal prototype to avoid an error. */
  4462. /* We use char because int might match the return type of a gcc2
  4463. builtin and then its argument prototype would still apply. */
  4464. char pj_get_def();
  4465. int main() {
  4466. pj_get_def()
  4467. ; return 0; }
  4468. EOF
  4469. if { (eval echo configure:5355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4470. rm -rf conftest*
  4471. eval "ac_cv_lib_$ac_lib_var=yes"
  4472. else
  4473. echo "configure: failed program was:" >&5
  4474. cat conftest.$ac_ext >&5
  4475. rm -rf conftest*
  4476. eval "ac_cv_lib_$ac_lib_var=no"
  4477. fi
  4478. rm -f conftest*
  4479. LIBS="$ac_save_LIBS"
  4480. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4481. echo "$ac_t""yes" 1>&6
  4482. PROJLIB="$PROJLIB -lproj "
  4483. else
  4484. echo "$ac_t""no" 1>&6
  4485. LDFLAGS=${ac_save_ldflags}
  4486. { echo "configure: error: *** Unable to locate External PROJ.4 library." 1>&2; exit 1; }
  4487. fi
  4488. LDFLAGS=${ac_save_ldflags}
  4489. # With PROJ share directory
  4490. echo $ac_n "checking for location of External PROJ.4 data files""... $ac_c" 1>&6
  4491. echo "configure:5389: checking for location of External PROJ.4 data files" >&5
  4492. case "$with_proj_share" in
  4493. y | ye | yes | n | no)
  4494. { echo "configure: error: *** You must supply a directory to --with-proj-share." 1>&2; exit 1; }
  4495. ;;
  4496. esac
  4497. echo "$ac_t""$with_proj_share" 1>&6
  4498. if test -n "$with_proj_share" ; then
  4499. if test -d "$with_proj_share"; then
  4500. PROJSHARE="$with_proj_share"
  4501. else
  4502. { echo "configure: error: *** External PROJ.4 data directory $dir does not exist." 1>&2; exit 1; }
  4503. fi
  4504. fi
  4505. if test -z "$PROJSHARE" ; then
  4506. echo "configure: warning: *** External PROJ.4 directory not specified; default will be used" 1>&2
  4507. PROJSHARE=/usr/local/share/proj
  4508. fi
  4509. # LOC_CHECK_SHARE does not work when cross compiling
  4510. if test "$cross_compiling" = "yes" ; then
  4511. echo $ac_n "checking for epsg""... $ac_c" 1>&6
  4512. echo "configure:5413: checking for epsg" >&5
  4513. echo "$ac_t""unknown (cross-compiling)" 1>&6
  4514. else
  4515. ac_safe=`echo "$PROJSHARE/epsg" | sed 'y%./+-%__p_%'`
  4516. echo $ac_n "checking for $PROJSHARE/epsg""... $ac_c" 1>&6
  4517. echo "configure:5420: checking for $PROJSHARE/epsg" >&5
  4518. if test "$cross_compiling" = yes; then
  4519. { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
  4520. else
  4521. if test -r $PROJSHARE/epsg; then
  4522. eval "ac_cv_file_$ac_safe=yes"
  4523. else
  4524. eval "ac_cv_file_$ac_safe=no"
  4525. fi
  4526. fi
  4527. if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
  4528. echo "$ac_t""yes" 1>&6
  4529. :
  4530. else
  4531. echo "$ac_t""no" 1>&6
  4532. echo "configure: warning: *** Unable to locate PROJ data files." 1>&2
  4533. fi
  4534. fi
  4535. # nad2bin needs to be in path for installing datum gridshift files
  4536. # Extract the first word of "nad2bin", so it can be a program name with args.
  4537. set dummy nad2bin; ac_word=$2
  4538. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  4539. echo "configure:5452: checking for $ac_word" >&5
  4540. case "$NAD2BIN" in
  4541. /*)
  4542. ac_cv_path_NAD2BIN="$NAD2BIN" # Let the user override the test with a path.
  4543. ;;
  4544. ?:/*)
  4545. ac_cv_path_NAD2BIN="$NAD2BIN" # Let the user override the test with a dos path.
  4546. ;;
  4547. *)
  4548. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  4549. ac_dummy="$PATH"
  4550. for ac_dir in $ac_dummy; do
  4551. test -z "$ac_dir" && ac_dir=.
  4552. if test -f $ac_dir/$ac_word; then
  4553. ac_cv_path_NAD2BIN="$ac_dir/$ac_word"
  4554. break
  4555. fi
  4556. done
  4557. IFS="$ac_save_ifs"
  4558. test -z "$ac_cv_path_NAD2BIN" && ac_cv_path_NAD2BIN="no"
  4559. ;;
  4560. esac
  4561. NAD2BIN="$ac_cv_path_NAD2BIN"
  4562. if test -n "$NAD2BIN"; then
  4563. echo "$ac_t""$NAD2BIN" 1>&6
  4564. else
  4565. echo "$ac_t""no" 1>&6
  4566. fi
  4567. if test "$NAD2BIN" = "no"; then
  4568. { echo "configure: error: *** Unable to locate nad2bin (needs to be in PATH)." 1>&2; exit 1; }
  4569. fi
  4570. # Done checking PROJ
  4571. # Enable regex option
  4572. echo $ac_n "checking whether to use regex""... $ac_c" 1>&6
  4573. echo "configure:5492: checking whether to use regex" >&5
  4574. echo "$ac_t"""$with_regex"" 1>&6
  4575. case "$with_regex" in
  4576. "no") USE_REGEX= ;;
  4577. "yes") USE_REGEX="1" ;;
  4578. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  4579. esac
  4580. REGEXINCPATH=
  4581. REGEXLIBPATH=
  4582. REGEXLIB=
  4583. if test -n "$USE_REGEX"; then
  4584. # With regex includes directory
  4585. echo $ac_n "checking for location of regex includes""... $ac_c" 1>&6
  4586. echo "configure:5512: checking for location of regex includes" >&5
  4587. case "$with_regex_includes" in
  4588. y | ye | yes | n | no)
  4589. { echo "configure: error: *** You must supply a directory to --with-regex-includes." 1>&2; exit 1; }
  4590. ;;
  4591. esac
  4592. echo "$ac_t""$with_regex_includes" 1>&6
  4593. if test -n "$with_regex_includes" ; then
  4594. for dir in $with_regex_includes; do
  4595. if test -d "$dir"; then
  4596. REGEXINCPATH="$REGEXINCPATH -I$dir"
  4597. else
  4598. { echo "configure: error: *** regex includes directory $dir does not exist." 1>&2; exit 1; }
  4599. fi
  4600. done
  4601. fi
  4602. ac_save_cppflags="$CPPFLAGS"
  4603. CPPFLAGS="$REGEXINCPATH $CPPFLAGS"
  4604. for ac_hdr in regex.h
  4605. do
  4606. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4607. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4608. echo "configure:5538: checking for $ac_hdr" >&5
  4609. cat > conftest.$ac_ext <<EOF
  4610. #line 5541 "configure"
  4611. #include "confdefs.h"
  4612. #include <$ac_hdr>
  4613. EOF
  4614. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4615. { (eval echo configure:5546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4616. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4617. if test -z "$ac_err"; then
  4618. rm -rf conftest*
  4619. eval "ac_cv_header_$ac_safe=yes"
  4620. else
  4621. echo "$ac_err" >&5
  4622. echo "configure: failed program was:" >&5
  4623. cat conftest.$ac_ext >&5
  4624. rm -rf conftest*
  4625. eval "ac_cv_header_$ac_safe=no"
  4626. fi
  4627. rm -f conftest*
  4628. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4629. echo "$ac_t""yes" 1>&6
  4630. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4631. cat >> confdefs.h <<EOF
  4632. #define $ac_tr_hdr 1
  4633. EOF
  4634. else
  4635. echo "$ac_t""no" 1>&6
  4636. { echo "configure: error: *** Unable to locate regex includes." 1>&2; exit 1; }
  4637. fi
  4638. done
  4639. CPPFLAGS=$ac_save_cppflags
  4640. # With regex library directory
  4641. echo $ac_n "checking for location of regex library""... $ac_c" 1>&6
  4642. echo "configure:5580: checking for location of regex library" >&5
  4643. case "$with_regex_libs" in
  4644. y | ye | yes | n | no)
  4645. { echo "configure: error: *** You must supply a directory to --with-regex-libs." 1>&2; exit 1; }
  4646. ;;
  4647. esac
  4648. echo "$ac_t""$with_regex_libs" 1>&6
  4649. if test -n "$with_regex_libs"; then
  4650. for dir in $with_regex_libs; do
  4651. if test -d "$dir"; then
  4652. REGEXLIBPATH="$REGEXLIBPATH -L$dir"
  4653. else
  4654. { echo "configure: error: *** regex library directory $dir does not exist." 1>&2; exit 1; }
  4655. fi
  4656. done
  4657. fi
  4658. ac_save_libs="$LIBS"
  4659. ac_save_ldflags="$LDFLAGS"
  4660. LIBS=" $LIBS"
  4661. LDFLAGS=" $LDFLAGS"
  4662. echo $ac_n "checking for regcomp""... $ac_c" 1>&6
  4663. echo "configure:5605: checking for regcomp" >&5
  4664. cat > conftest.$ac_ext <<EOF
  4665. #line 5608 "configure"
  4666. #include "confdefs.h"
  4667. /* System header to define __stub macros and hopefully few prototypes,
  4668. which can conflict with char regcomp(); below. */
  4669. #include <assert.h>
  4670. /* Override any gcc2 internal prototype to avoid an error. */
  4671. /* We use char because int might match the return type of a gcc2
  4672. builtin and then its argument prototype would still apply. */
  4673. char regcomp();
  4674. int main() {
  4675. /* The GNU C library defines this for functions which it implements
  4676. to always fail with ENOSYS. Some functions are actually named
  4677. something starting with __ and the normal name is an alias. */
  4678. #if defined (__stub_regcomp) || defined (__stub___regcomp)
  4679. choke me
  4680. #else
  4681. regcomp();
  4682. #endif
  4683. ; return 0; }
  4684. EOF
  4685. if { (eval echo configure:5631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4686. rm -rf conftest*
  4687. eval "ac_cv_func_regcomp=yes"
  4688. else
  4689. echo "configure: failed program was:" >&5
  4690. cat conftest.$ac_ext >&5
  4691. rm -rf conftest*
  4692. eval "ac_cv_func_regcomp=no"
  4693. fi
  4694. rm -f conftest*
  4695. if eval "test \"`echo '$ac_cv_func_'regcomp`\" = yes"; then
  4696. echo "$ac_t""yes" 1>&6
  4697. REGEXLIB="$REGEXLIB "
  4698. else
  4699. echo "$ac_t""no" 1>&6
  4700. ac_save_ldflags="$LDFLAGS"
  4701. LDFLAGS="$REGEXLIBPATH $LDFLAGS"
  4702. echo $ac_n "checking for regcomp in -lregex""... $ac_c" 1>&6
  4703. echo "configure:5658: checking for regcomp in -lregex" >&5
  4704. ac_lib_var=`echo regex'_'regcomp | sed 'y%./+-%__p_%'`
  4705. ac_save_LIBS="$LIBS"
  4706. LIBS="-lregex $LIBS"
  4707. cat > conftest.$ac_ext <<EOF
  4708. #line 5664 "configure"
  4709. #include "confdefs.h"
  4710. /* Override any gcc2 internal prototype to avoid an error. */
  4711. /* We use char because int might match the return type of a gcc2
  4712. builtin and then its argument prototype would still apply. */
  4713. char regcomp();
  4714. int main() {
  4715. regcomp()
  4716. ; return 0; }
  4717. EOF
  4718. if { (eval echo configure:5675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4719. rm -rf conftest*
  4720. eval "ac_cv_lib_$ac_lib_var=yes"
  4721. else
  4722. echo "configure: failed program was:" >&5
  4723. cat conftest.$ac_ext >&5
  4724. rm -rf conftest*
  4725. eval "ac_cv_lib_$ac_lib_var=no"
  4726. fi
  4727. rm -f conftest*
  4728. LIBS="$ac_save_LIBS"
  4729. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4730. echo "$ac_t""yes" 1>&6
  4731. REGEXLIB="$REGEXLIB -lregex "
  4732. else
  4733. echo "$ac_t""no" 1>&6
  4734. LDFLAGS=${ac_save_ldflags}
  4735. { echo "configure: error: *** Unable to locate regex library." 1>&2; exit 1; }
  4736. fi
  4737. LDFLAGS=${ac_save_ldflags}
  4738. fi
  4739. LIBS=${ac_save_libs}
  4740. LDFLAGS=${ac_save_ldflags}
  4741. fi # $USE_REGEX
  4742. # Done checking regex
  4743. # Enable Readline option
  4744. echo $ac_n "checking whether to use Readline""... $ac_c" 1>&6
  4745. echo "configure:5725: checking whether to use Readline" >&5
  4746. echo "$ac_t"""$with_readline"" 1>&6
  4747. case "$with_readline" in
  4748. "no") USE_READLINE= ;;
  4749. "yes") USE_READLINE="1" ;;
  4750. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  4751. esac
  4752. READLINEINCPATH=
  4753. READLINELIBPATH=
  4754. READLINELIB=
  4755. HISTORYLIB=
  4756. if test -n "$USE_READLINE"; then
  4757. # With Readline includes directory
  4758. echo $ac_n "checking for location of Readline includes""... $ac_c" 1>&6
  4759. echo "configure:5746: checking for location of Readline includes" >&5
  4760. case "$with_readline_includes" in
  4761. y | ye | yes | n | no)
  4762. { echo "configure: error: *** You must supply a directory to --with-readline-includes." 1>&2; exit 1; }
  4763. ;;
  4764. esac
  4765. echo "$ac_t""$with_readline_includes" 1>&6
  4766. if test -n "$with_readline_includes" ; then
  4767. for dir in $with_readline_includes; do
  4768. if test -d "$dir"; then
  4769. READLINEINCPATH="$READLINEINCPATH -I$dir"
  4770. else
  4771. { echo "configure: error: *** Readline includes directory $dir does not exist." 1>&2; exit 1; }
  4772. fi
  4773. done
  4774. fi
  4775. ac_save_cppflags="$CPPFLAGS"
  4776. CPPFLAGS="$READLINEINCPATH $CPPFLAGS"
  4777. for ac_hdr in readline/readline.h
  4778. do
  4779. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4780. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4781. echo "configure:5772: checking for $ac_hdr" >&5
  4782. cat > conftest.$ac_ext <<EOF
  4783. #line 5775 "configure"
  4784. #include "confdefs.h"
  4785. #include <$ac_hdr>
  4786. EOF
  4787. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4788. { (eval echo configure:5780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4789. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4790. if test -z "$ac_err"; then
  4791. rm -rf conftest*
  4792. eval "ac_cv_header_$ac_safe=yes"
  4793. else
  4794. echo "$ac_err" >&5
  4795. echo "configure: failed program was:" >&5
  4796. cat conftest.$ac_ext >&5
  4797. rm -rf conftest*
  4798. eval "ac_cv_header_$ac_safe=no"
  4799. fi
  4800. rm -f conftest*
  4801. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4802. echo "$ac_t""yes" 1>&6
  4803. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4804. cat >> confdefs.h <<EOF
  4805. #define $ac_tr_hdr 1
  4806. EOF
  4807. else
  4808. echo "$ac_t""no" 1>&6
  4809. { echo "configure: error: *** Unable to locate Readline includes." 1>&2; exit 1; }
  4810. fi
  4811. done
  4812. CPPFLAGS=$ac_save_cppflags
  4813. ac_save_cppflags="$CPPFLAGS"
  4814. CPPFLAGS="$READLINEINCPATH $CPPFLAGS"
  4815. for ac_hdr in readline/history.h
  4816. do
  4817. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4818. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4819. echo "configure:5816: checking for $ac_hdr" >&5
  4820. cat > conftest.$ac_ext <<EOF
  4821. #line 5819 "configure"
  4822. #include "confdefs.h"
  4823. #include <$ac_hdr>
  4824. EOF
  4825. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4826. { (eval echo configure:5824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4827. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4828. if test -z "$ac_err"; then
  4829. rm -rf conftest*
  4830. eval "ac_cv_header_$ac_safe=yes"
  4831. else
  4832. echo "$ac_err" >&5
  4833. echo "configure: failed program was:" >&5
  4834. cat conftest.$ac_ext >&5
  4835. rm -rf conftest*
  4836. eval "ac_cv_header_$ac_safe=no"
  4837. fi
  4838. rm -f conftest*
  4839. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4840. echo "$ac_t""yes" 1>&6
  4841. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4842. cat >> confdefs.h <<EOF
  4843. #define $ac_tr_hdr 1
  4844. EOF
  4845. else
  4846. echo "$ac_t""no" 1>&6
  4847. { echo "configure: error: *** Unable to locate Readline includes." 1>&2; exit 1; }
  4848. fi
  4849. done
  4850. CPPFLAGS=$ac_save_cppflags
  4851. # With Readline library directory
  4852. echo $ac_n "checking for location of Readline library""... $ac_c" 1>&6
  4853. echo "configure:5858: checking for location of Readline library" >&5
  4854. case "$with_readline_libs" in
  4855. y | ye | yes | n | no)
  4856. { echo "configure: error: *** You must supply a directory to --with-readline-libs." 1>&2; exit 1; }
  4857. ;;
  4858. esac
  4859. echo "$ac_t""$with_readline_libs" 1>&6
  4860. if test -n "$with_readline_libs"; then
  4861. for dir in $with_readline_libs; do
  4862. if test -d "$dir"; then
  4863. READLINELIBPATH="$READLINELIBPATH -L$dir"
  4864. else
  4865. { echo "configure: error: *** Readline library directory $dir does not exist." 1>&2; exit 1; }
  4866. fi
  4867. done
  4868. fi
  4869. ac_save_ldflags="$LDFLAGS"
  4870. LDFLAGS="$READLINELIBPATH $LDFLAGS"
  4871. echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
  4872. echo "configure:5883: checking for readline in -lreadline" >&5
  4873. ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
  4874. ac_save_LIBS="$LIBS"
  4875. LIBS="-lreadline $LIBS"
  4876. cat > conftest.$ac_ext <<EOF
  4877. #line 5889 "configure"
  4878. #include "confdefs.h"
  4879. /* Override any gcc2 internal prototype to avoid an error. */
  4880. /* We use char because int might match the return type of a gcc2
  4881. builtin and then its argument prototype would still apply. */
  4882. char readline();
  4883. int main() {
  4884. readline()
  4885. ; return 0; }
  4886. EOF
  4887. if { (eval echo configure:5900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4888. rm -rf conftest*
  4889. eval "ac_cv_lib_$ac_lib_var=yes"
  4890. else
  4891. echo "configure: failed program was:" >&5
  4892. cat conftest.$ac_ext >&5
  4893. rm -rf conftest*
  4894. eval "ac_cv_lib_$ac_lib_var=no"
  4895. fi
  4896. rm -f conftest*
  4897. LIBS="$ac_save_LIBS"
  4898. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4899. echo "$ac_t""yes" 1>&6
  4900. READLINELIB="$READLINELIB -lreadline "
  4901. else
  4902. echo "$ac_t""no" 1>&6
  4903. LDFLAGS=${ac_save_ldflags}
  4904. { echo "configure: error: *** Unable to locate Readline library." 1>&2; exit 1; }
  4905. fi
  4906. LDFLAGS=${ac_save_ldflags}
  4907. ac_save_ldflags="$LDFLAGS"
  4908. LDFLAGS="$READLINELIBPATH $LDFLAGS"
  4909. echo $ac_n "checking for add_history in -lhistory""... $ac_c" 1>&6
  4910. echo "configure:5935: checking for add_history in -lhistory" >&5
  4911. ac_lib_var=`echo history'_'add_history | sed 'y%./+-%__p_%'`
  4912. ac_save_LIBS="$LIBS"
  4913. LIBS="-lhistory $LIBS"
  4914. cat > conftest.$ac_ext <<EOF
  4915. #line 5941 "configure"
  4916. #include "confdefs.h"
  4917. /* Override any gcc2 internal prototype to avoid an error. */
  4918. /* We use char because int might match the return type of a gcc2
  4919. builtin and then its argument prototype would still apply. */
  4920. char add_history();
  4921. int main() {
  4922. add_history()
  4923. ; return 0; }
  4924. EOF
  4925. if { (eval echo configure:5952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4926. rm -rf conftest*
  4927. eval "ac_cv_lib_$ac_lib_var=yes"
  4928. else
  4929. echo "configure: failed program was:" >&5
  4930. cat conftest.$ac_ext >&5
  4931. rm -rf conftest*
  4932. eval "ac_cv_lib_$ac_lib_var=no"
  4933. fi
  4934. rm -f conftest*
  4935. LIBS="$ac_save_LIBS"
  4936. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4937. echo "$ac_t""yes" 1>&6
  4938. HISTORYLIB="$HISTORYLIB -lhistory "
  4939. else
  4940. echo "$ac_t""no" 1>&6
  4941. LDFLAGS=${ac_save_ldflags}
  4942. { echo "configure: error: *** Unable to locate History library." 1>&2; exit 1; }
  4943. fi
  4944. LDFLAGS=${ac_save_ldflags}
  4945. fi # $USE_READLINE
  4946. # Done checking Readline
  4947. # GDAL option
  4948. echo $ac_n "checking whether to use GDAL""... $ac_c" 1>&6
  4949. echo "configure:5994: checking whether to use GDAL" >&5
  4950. GDAL_LIBS=
  4951. GDAL_CFLAGS=
  4952. USE_GDAL=
  4953. USE_OGR=
  4954. if test "`basename xx/$with_gdal`" = "gdal-config" ; then
  4955. GDAL_CONFIG="$with_gdal"
  4956. fi
  4957. if test "$with_gdal" = "no" ; then
  4958. echo "$ac_t""no" 1>&6
  4959. else
  4960. echo "$ac_t""yes" 1>&6
  4961. # Extract the first word of "gdal-config", so it can be a program name with args.
  4962. set dummy gdal-config; ac_word=$2
  4963. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  4964. echo "configure:6012: checking for $ac_word" >&5
  4965. case "$GDAL_CONFIG" in
  4966. /*)
  4967. ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a path.
  4968. ;;
  4969. ?:/*)
  4970. ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a dos path.
  4971. ;;
  4972. *)
  4973. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  4974. ac_dummy="$PATH"
  4975. for ac_dir in $ac_dummy; do
  4976. test -z "$ac_dir" && ac_dir=.
  4977. if test -f $ac_dir/$ac_word; then
  4978. ac_cv_path_GDAL_CONFIG="$ac_dir/$ac_word"
  4979. break
  4980. fi
  4981. done
  4982. IFS="$ac_save_ifs"
  4983. test -z "$ac_cv_path_GDAL_CONFIG" && ac_cv_path_GDAL_CONFIG="no"
  4984. ;;
  4985. esac
  4986. GDAL_CONFIG="$ac_cv_path_GDAL_CONFIG"
  4987. if test -n "$GDAL_CONFIG"; then
  4988. echo "$ac_t""$GDAL_CONFIG" 1>&6
  4989. else
  4990. echo "$ac_t""no" 1>&6
  4991. fi
  4992. if test "$GDAL_CONFIG" = "no" ; then
  4993. { echo "configure: error: *** couldn't find gdal-config" 1>&2; exit 1; }
  4994. fi
  4995. if test "$GDAL_CONFIG" != "" ; then
  4996. GDAL_LIBS=`"$GDAL_CONFIG" --libs`
  4997. GDAL_DEP_LIBS=`"$GDAL_CONFIG" --dep-libs`
  4998. GDAL_CFLAGS=`"$GDAL_CONFIG" --cflags`
  4999. USE_GDAL=1
  5000. if test `"$GDAL_CONFIG" --ogr-enabled` = "yes" ; then
  5001. cat >> confdefs.h <<\EOF
  5002. #define HAVE_OGR 1
  5003. EOF
  5004. USE_OGR=1
  5005. fi
  5006. fi
  5007. GDAL=
  5008. ac_save_libs="$LIBS"
  5009. ac_save_cflags="$CFLAGS"
  5010. LIBS="$LIBS $GDAL_LIBS"
  5011. CFLAGS="$CFLAGS $GDAL_CFLAGS"
  5012. cat > conftest.$ac_ext <<EOF
  5013. #line 6067 "configure"
  5014. #include "confdefs.h"
  5015. #include <gdal.h>
  5016. int main() {
  5017. GDALOpen("foo", GA_ReadOnly);
  5018. ; return 0; }
  5019. EOF
  5020. if { (eval echo configure:6074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5021. :
  5022. else
  5023. echo "configure: failed program was:" >&5
  5024. cat conftest.$ac_ext >&5
  5025. rm -rf conftest*
  5026. LIBS="$LIBS $GDAL_DEP_LIBS"
  5027. cat > conftest.$ac_ext <<EOF
  5028. #line 6083 "configure"
  5029. #include "confdefs.h"
  5030. #include <gdal.h>
  5031. int main() {
  5032. GDALOpen("foo", GA_ReadOnly);
  5033. ; return 0; }
  5034. EOF
  5035. if { (eval echo configure:6090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5036. rm -rf conftest*
  5037. GDAL_LIBS="$GDAL_LIBS $GDAL_DEP_LIBS"
  5038. else
  5039. echo "configure: failed program was:" >&5
  5040. cat conftest.$ac_ext >&5
  5041. rm -rf conftest*
  5042. { echo "configure: error: *** Unable to locate GDAL library." 1>&2; exit 1; }
  5043. fi
  5044. rm -f conftest*
  5045. fi
  5046. rm -f conftest*
  5047. LIBS=${ac_save_libs}
  5048. CFLAGS=${ac_save_cflags}
  5049. cat >> confdefs.h <<\EOF
  5050. #define HAVE_GDAL 1
  5051. EOF
  5052. fi
  5053. # libLAS option
  5054. echo $ac_n "checking whether to use libLAS""... $ac_c" 1>&6
  5055. echo "configure:6122: checking whether to use libLAS" >&5
  5056. LIBLAS_LIBS=
  5057. LIBLAS_CFLAGS=
  5058. USE_LIBLAS=
  5059. if test "`basename xx/$with_liblas`" = "liblas-config" ; then
  5060. LIBLAS_CONFIG="$with_liblas"
  5061. fi
  5062. if test "$with_liblas" = "no" ; then
  5063. echo "$ac_t""no" 1>&6
  5064. else
  5065. echo "$ac_t""yes" 1>&6
  5066. # Extract the first word of "liblas-config", so it can be a program name with args.
  5067. set dummy liblas-config; ac_word=$2
  5068. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5069. echo "configure:6139: checking for $ac_word" >&5
  5070. case "$LIBLAS_CONFIG" in
  5071. /*)
  5072. ac_cv_path_LIBLAS_CONFIG="$LIBLAS_CONFIG" # Let the user override the test with a path.
  5073. ;;
  5074. ?:/*)
  5075. ac_cv_path_LIBLAS_CONFIG="$LIBLAS_CONFIG" # Let the user override the test with a dos path.
  5076. ;;
  5077. *)
  5078. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5079. ac_dummy="$PATH"
  5080. for ac_dir in $ac_dummy; do
  5081. test -z "$ac_dir" && ac_dir=.
  5082. if test -f $ac_dir/$ac_word; then
  5083. ac_cv_path_LIBLAS_CONFIG="$ac_dir/$ac_word"
  5084. break
  5085. fi
  5086. done
  5087. IFS="$ac_save_ifs"
  5088. test -z "$ac_cv_path_LIBLAS_CONFIG" && ac_cv_path_LIBLAS_CONFIG="no"
  5089. ;;
  5090. esac
  5091. LIBLAS_CONFIG="$ac_cv_path_LIBLAS_CONFIG"
  5092. if test -n "$LIBLAS_CONFIG"; then
  5093. echo "$ac_t""$LIBLAS_CONFIG" 1>&6
  5094. else
  5095. echo "$ac_t""no" 1>&6
  5096. fi
  5097. if test "$LIBLAS_CONFIG" = "no" ; then
  5098. { echo "configure: error: *** couldn't find liblas-config" 1>&2; exit 1; }
  5099. fi
  5100. if test "$LIBLAS_CONFIG" != "" ; then
  5101. LIBLAS_LIBS=`"$LIBLAS_CONFIG" --libs`
  5102. LIBLAS_CFLAGS=`"$LIBLAS_CONFIG" --cflags`
  5103. LIBLAS_INC=`"$LIBLAS_CONFIG" --includes`
  5104. USE_LIBLAS=1
  5105. fi
  5106. LIBLAS=
  5107. ac_save_libs="$LIBS"
  5108. ac_save_cflags="$CFLAGS"
  5109. LIBS="$LIBS $LIBLAS_LIBS"
  5110. CFLAGS="$CFLAGS $LIBLAS_CFLAGS"
  5111. cat > conftest.$ac_ext <<EOF
  5112. #line 6187 "configure"
  5113. #include "confdefs.h"
  5114. #include <liblas/capi/liblas.h>
  5115. int main() {
  5116. LASReader_Create("foo");
  5117. ; return 0; }
  5118. EOF
  5119. if { (eval echo configure:6194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5120. :
  5121. else
  5122. echo "configure: failed program was:" >&5
  5123. cat conftest.$ac_ext >&5
  5124. rm -rf conftest*
  5125. cat > conftest.$ac_ext <<EOF
  5126. #line 6202 "configure"
  5127. #include "confdefs.h"
  5128. #include <liblas/capi/liblas.h>
  5129. int main() {
  5130. LASReader_Create("foo");
  5131. ; return 0; }
  5132. EOF
  5133. if { (eval echo configure:6209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5134. rm -rf conftest*
  5135. LAS_LIBS="$LAS_LIBS"
  5136. else
  5137. echo "configure: failed program was:" >&5
  5138. cat conftest.$ac_ext >&5
  5139. rm -rf conftest*
  5140. { echo "configure: error: *** Unable to locate libLAS library." 1>&2; exit 1; }
  5141. fi
  5142. rm -f conftest*
  5143. fi
  5144. rm -f conftest*
  5145. LIBS=${ac_save_libs}
  5146. CFLAGS=${ac_save_cflags}
  5147. cat >> confdefs.h <<\EOF
  5148. #define HAVE_LIBLAS 1
  5149. EOF
  5150. fi
  5151. # NetCDF option
  5152. echo $ac_n "checking whether to use NetCDF""... $ac_c" 1>&6
  5153. echo "configure:6241: checking whether to use NetCDF" >&5
  5154. NETCDF_LIBS=
  5155. NETCDF_CFLAGS=
  5156. USE_NETCDF=
  5157. if test "`basename xx/$with_netcdf`" = "nc-config" ; then
  5158. NETCDF_CONFIG="$with_netcdf"
  5159. fi
  5160. if test "$with_netcdf" = "no" ; then
  5161. echo "$ac_t""no" 1>&6
  5162. else
  5163. echo "$ac_t""yes" 1>&6
  5164. # Extract the first word of "nc-config", so it can be a program name with args.
  5165. set dummy nc-config; ac_word=$2
  5166. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5167. echo "configure:6258: checking for $ac_word" >&5
  5168. case "$NETCDF_CONFIG" in
  5169. /*)
  5170. ac_cv_path_NETCDF_CONFIG="$NETCDF_CONFIG" # Let the user override the test with a path.
  5171. ;;
  5172. ?:/*)
  5173. ac_cv_path_NETCDF_CONFIG="$NETCDF_CONFIG" # Let the user override the test with a dos path.
  5174. ;;
  5175. *)
  5176. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5177. ac_dummy="$PATH"
  5178. for ac_dir in $ac_dummy; do
  5179. test -z "$ac_dir" && ac_dir=.
  5180. if test -f $ac_dir/$ac_word; then
  5181. ac_cv_path_NETCDF_CONFIG="$ac_dir/$ac_word"
  5182. break
  5183. fi
  5184. done
  5185. IFS="$ac_save_ifs"
  5186. test -z "$ac_cv_path_NETCDF_CONFIG" && ac_cv_path_NETCDF_CONFIG="no"
  5187. ;;
  5188. esac
  5189. NETCDF_CONFIG="$ac_cv_path_NETCDF_CONFIG"
  5190. if test -n "$NETCDF_CONFIG"; then
  5191. echo "$ac_t""$NETCDF_CONFIG" 1>&6
  5192. else
  5193. echo "$ac_t""no" 1>&6
  5194. fi
  5195. if test "$NETCDF_CONFIG" = "no" ; then
  5196. { echo "configure: error: *** couldn't find nc-config" 1>&2; exit 1; }
  5197. fi
  5198. if test "$NETCDF_CONFIG" != "" ; then
  5199. NETCDF_LIBS=`"$NETCDF_CONFIG" --libs`
  5200. NETCDF_CFLAGS=`"$NETCDF_CONFIG" --cflags`
  5201. USE_NETCDF=1
  5202. fi
  5203. NETCDF=
  5204. ac_save_libs="$LIBS"
  5205. ac_save_cflags="$CFLAGS"
  5206. LIBS="$LIBS $NETCDF_LIBS"
  5207. CFLAGS="$CFLAGS $NETCDF_CFLAGS"
  5208. cat > conftest.$ac_ext <<EOF
  5209. #line 6305 "configure"
  5210. #include "confdefs.h"
  5211. #include <netcdf.h>
  5212. int main() {
  5213. nc_create("foo", NC_CLOBBER, NULL);
  5214. ; return 0; }
  5215. EOF
  5216. if { (eval echo configure:6312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5217. :
  5218. else
  5219. echo "configure: failed program was:" >&5
  5220. cat conftest.$ac_ext >&5
  5221. rm -rf conftest*
  5222. cat > conftest.$ac_ext <<EOF
  5223. #line 6320 "configure"
  5224. #include "confdefs.h"
  5225. #include <netcdf.h>
  5226. int main() {
  5227. nc_create("foo", NC_CLOBBER, NULL);
  5228. ; return 0; }
  5229. EOF
  5230. if { (eval echo configure:6327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5231. rm -rf conftest*
  5232. NETCDF_LIBS="$NETCDF_LIBS"
  5233. else
  5234. echo "configure: failed program was:" >&5
  5235. cat conftest.$ac_ext >&5
  5236. rm -rf conftest*
  5237. { echo "configure: error: *** Unable to locate NetCDF library." 1>&2; exit 1; }
  5238. fi
  5239. rm -f conftest*
  5240. fi
  5241. rm -f conftest*
  5242. LIBS=${ac_save_libs}
  5243. CFLAGS=${ac_save_cflags}
  5244. cat >> confdefs.h <<\EOF
  5245. #define HAVE_NETCDF 1
  5246. EOF
  5247. fi
  5248. # GEOS option
  5249. echo $ac_n "checking whether to use GEOS""... $ac_c" 1>&6
  5250. echo "configure:6358: checking whether to use GEOS" >&5
  5251. GEOS_LIBS=
  5252. GEOS_CFLAGS=
  5253. USE_GEOS=
  5254. # FIXME: "quote" $with_geos ?
  5255. if test "`basename xx/$with_geos`" = "geos-config" ; then
  5256. GEOS_CONFIG="$with_geos"
  5257. fi
  5258. if test "$with_geos" = "no" ; then
  5259. echo "$ac_t""no" 1>&6
  5260. else
  5261. echo "$ac_t""yes" 1>&6
  5262. # Extract the first word of "geos-config", so it can be a program name with args.
  5263. set dummy geos-config; ac_word=$2
  5264. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5265. echo "configure:6376: checking for $ac_word" >&5
  5266. case "$GEOS_CONFIG" in
  5267. /*)
  5268. ac_cv_path_GEOS_CONFIG="$GEOS_CONFIG" # Let the user override the test with a path.
  5269. ;;
  5270. ?:/*)
  5271. ac_cv_path_GEOS_CONFIG="$GEOS_CONFIG" # Let the user override the test with a dos path.
  5272. ;;
  5273. *)
  5274. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5275. ac_dummy="$PATH"
  5276. for ac_dir in $ac_dummy; do
  5277. test -z "$ac_dir" && ac_dir=.
  5278. if test -f $ac_dir/$ac_word; then
  5279. ac_cv_path_GEOS_CONFIG="$ac_dir/$ac_word"
  5280. break
  5281. fi
  5282. done
  5283. IFS="$ac_save_ifs"
  5284. test -z "$ac_cv_path_GEOS_CONFIG" && ac_cv_path_GEOS_CONFIG="no"
  5285. ;;
  5286. esac
  5287. GEOS_CONFIG="$ac_cv_path_GEOS_CONFIG"
  5288. if test -n "$GEOS_CONFIG"; then
  5289. echo "$ac_t""$GEOS_CONFIG" 1>&6
  5290. else
  5291. echo "$ac_t""no" 1>&6
  5292. fi
  5293. if test "$GEOS_CONFIG" = "no" ; then
  5294. { echo "configure: error: *** couldn't find geos-config" 1>&2; exit 1; }
  5295. fi
  5296. if test "$GEOS_CONFIG" != "" ; then
  5297. GEOS_LIBS=`"$GEOS_CONFIG" --libs`
  5298. GEOS_CFLAGS=`"$GEOS_CONFIG" --cflags`
  5299. USE_GEOS=1
  5300. fi
  5301. ac_save_cppflags="$CPPFLAGS"
  5302. CPPFLAGS="$GEOS_CFLAGS $CPPFLAGS"
  5303. for ac_hdr in geos_c.h
  5304. do
  5305. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5306. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5307. echo "configure:6424: checking for $ac_hdr" >&5
  5308. cat > conftest.$ac_ext <<EOF
  5309. #line 6427 "configure"
  5310. #include "confdefs.h"
  5311. #include <$ac_hdr>
  5312. EOF
  5313. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5314. { (eval echo configure:6432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5315. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5316. if test -z "$ac_err"; then
  5317. rm -rf conftest*
  5318. eval "ac_cv_header_$ac_safe=yes"
  5319. else
  5320. echo "$ac_err" >&5
  5321. echo "configure: failed program was:" >&5
  5322. cat conftest.$ac_ext >&5
  5323. rm -rf conftest*
  5324. eval "ac_cv_header_$ac_safe=no"
  5325. fi
  5326. rm -f conftest*
  5327. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5328. echo "$ac_t""yes" 1>&6
  5329. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5330. cat >> confdefs.h <<EOF
  5331. #define $ac_tr_hdr 1
  5332. EOF
  5333. else
  5334. echo "$ac_t""no" 1>&6
  5335. { echo "configure: error: *** Unable to locate GEOS includes." 1>&2; exit 1; }
  5336. fi
  5337. done
  5338. CPPFLAGS=$ac_save_cppflags
  5339. if test "$MINGW32" = yes ; then
  5340. ac_save_ldflags="$LDFLAGS"
  5341. LDFLAGS="$GEOS_LIBS $LDFLAGS"
  5342. echo $ac_n "checking for initGEOS in -lgeos_c_i""... $ac_c" 1>&6
  5343. echo "configure:6468: checking for initGEOS in -lgeos_c_i" >&5
  5344. ac_lib_var=`echo geos_c_i'_'initGEOS | sed 'y%./+-%__p_%'`
  5345. ac_save_LIBS="$LIBS"
  5346. LIBS="-lgeos_c_i $LIBS"
  5347. cat > conftest.$ac_ext <<EOF
  5348. #line 6474 "configure"
  5349. #include "confdefs.h"
  5350. /* Override any gcc2 internal prototype to avoid an error. */
  5351. /* We use char because int might match the return type of a gcc2
  5352. builtin and then its argument prototype would still apply. */
  5353. char initGEOS();
  5354. int main() {
  5355. initGEOS()
  5356. ; return 0; }
  5357. EOF
  5358. if { (eval echo configure:6485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5359. rm -rf conftest*
  5360. eval "ac_cv_lib_$ac_lib_var=yes"
  5361. else
  5362. echo "configure: failed program was:" >&5
  5363. cat conftest.$ac_ext >&5
  5364. rm -rf conftest*
  5365. eval "ac_cv_lib_$ac_lib_var=no"
  5366. fi
  5367. rm -f conftest*
  5368. LIBS="$ac_save_LIBS"
  5369. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5370. echo "$ac_t""yes" 1>&6
  5371. GEOS_LIBS="$GEOS_LIBS -lgeos_c_i "
  5372. else
  5373. echo "$ac_t""no" 1>&6
  5374. LDFLAGS=${ac_save_ldflags}
  5375. { echo "configure: error: *** Unable to locate GEOS library." 1>&2; exit 1; }
  5376. fi
  5377. LDFLAGS=${ac_save_ldflags}
  5378. else
  5379. ac_save_ldflags="$LDFLAGS"
  5380. LDFLAGS="$GEOS_LIBS $LDFLAGS"
  5381. echo $ac_n "checking for initGEOS in -lgeos_c""... $ac_c" 1>&6
  5382. echo "configure:6521: checking for initGEOS in -lgeos_c" >&5
  5383. ac_lib_var=`echo geos_c'_'initGEOS | sed 'y%./+-%__p_%'`
  5384. ac_save_LIBS="$LIBS"
  5385. LIBS="-lgeos_c $LIBS"
  5386. cat > conftest.$ac_ext <<EOF
  5387. #line 6527 "configure"
  5388. #include "confdefs.h"
  5389. /* Override any gcc2 internal prototype to avoid an error. */
  5390. /* We use char because int might match the return type of a gcc2
  5391. builtin and then its argument prototype would still apply. */
  5392. char initGEOS();
  5393. int main() {
  5394. initGEOS()
  5395. ; return 0; }
  5396. EOF
  5397. if { (eval echo configure:6538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5398. rm -rf conftest*
  5399. eval "ac_cv_lib_$ac_lib_var=yes"
  5400. else
  5401. echo "configure: failed program was:" >&5
  5402. cat conftest.$ac_ext >&5
  5403. rm -rf conftest*
  5404. eval "ac_cv_lib_$ac_lib_var=no"
  5405. fi
  5406. rm -f conftest*
  5407. LIBS="$ac_save_LIBS"
  5408. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5409. echo "$ac_t""yes" 1>&6
  5410. GEOS_LIBS="$GEOS_LIBS -lgeos_c "
  5411. else
  5412. echo "$ac_t""no" 1>&6
  5413. LDFLAGS=${ac_save_ldflags}
  5414. { echo "configure: error: *** Unable to locate GEOS library." 1>&2; exit 1; }
  5415. fi
  5416. LDFLAGS=${ac_save_ldflags}
  5417. fi
  5418. cat >> confdefs.h <<\EOF
  5419. #define HAVE_GEOS 1
  5420. EOF
  5421. fi
  5422. # Enable TIFF option
  5423. echo $ac_n "checking whether to use TIFF""... $ac_c" 1>&6
  5424. echo "configure:6582: checking whether to use TIFF" >&5
  5425. echo "$ac_t"""$with_tiff"" 1>&6
  5426. case "$with_tiff" in
  5427. "no") USE_TIFF= ;;
  5428. "yes") USE_TIFF="1" ;;
  5429. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  5430. esac
  5431. TIFF_INCLUDE_DIRS=
  5432. TIFF_LIBRARY_DIRS=
  5433. TIFFLIB=
  5434. if test -n "$USE_TIFF"; then
  5435. # With TIFF includes directory
  5436. echo $ac_n "checking for location of TIFF includes""... $ac_c" 1>&6
  5437. echo "configure:6602: checking for location of TIFF includes" >&5
  5438. case "$with_tiff_includes" in
  5439. y | ye | yes | n | no)
  5440. { echo "configure: error: *** You must supply a directory to --with-tiff-includes." 1>&2; exit 1; }
  5441. ;;
  5442. esac
  5443. echo "$ac_t""$with_tiff_includes" 1>&6
  5444. if test -n "$with_tiff_includes" ; then
  5445. for dir in $with_tiff_includes; do
  5446. if test -d "$dir"; then
  5447. TIFF_INCLUDE_DIRS="$TIFF_INCLUDE_DIRS -I$dir"
  5448. else
  5449. { echo "configure: error: *** TIFF includes directory $dir does not exist." 1>&2; exit 1; }
  5450. fi
  5451. done
  5452. fi
  5453. ac_save_cppflags="$CPPFLAGS"
  5454. CPPFLAGS="$TIFF_INCLUDE_DIRS $CPPFLAGS"
  5455. for ac_hdr in tiffio.h
  5456. do
  5457. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5458. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5459. echo "configure:6628: checking for $ac_hdr" >&5
  5460. cat > conftest.$ac_ext <<EOF
  5461. #line 6631 "configure"
  5462. #include "confdefs.h"
  5463. #include <$ac_hdr>
  5464. EOF
  5465. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5466. { (eval echo configure:6636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5467. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5468. if test -z "$ac_err"; then
  5469. rm -rf conftest*
  5470. eval "ac_cv_header_$ac_safe=yes"
  5471. else
  5472. echo "$ac_err" >&5
  5473. echo "configure: failed program was:" >&5
  5474. cat conftest.$ac_ext >&5
  5475. rm -rf conftest*
  5476. eval "ac_cv_header_$ac_safe=no"
  5477. fi
  5478. rm -f conftest*
  5479. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5480. echo "$ac_t""yes" 1>&6
  5481. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5482. cat >> confdefs.h <<EOF
  5483. #define $ac_tr_hdr 1
  5484. EOF
  5485. else
  5486. echo "$ac_t""no" 1>&6
  5487. { echo "configure: error: *** Unable to locate TIFF includes." 1>&2; exit 1; }
  5488. fi
  5489. done
  5490. CPPFLAGS=$ac_save_cppflags
  5491. # With TIFF library directory
  5492. echo $ac_n "checking for location of TIFF library""... $ac_c" 1>&6
  5493. echo "configure:6670: checking for location of TIFF library" >&5
  5494. case "$with_tiff_libs" in
  5495. y | ye | yes | n | no)
  5496. { echo "configure: error: *** You must supply a directory to --with-tiff-libs." 1>&2; exit 1; }
  5497. ;;
  5498. esac
  5499. echo "$ac_t""$with_tiff_libs" 1>&6
  5500. if test -n "$with_tiff_libs"; then
  5501. for dir in $with_tiff_libs; do
  5502. if test -d "$dir"; then
  5503. TIFF_LIBRARY_DIRS="$TIFF_LIBRARY_DIRS -L$dir"
  5504. else
  5505. { echo "configure: error: *** TIFF library directory $dir does not exist." 1>&2; exit 1; }
  5506. fi
  5507. done
  5508. fi
  5509. ac_save_ldflags="$LDFLAGS"
  5510. LDFLAGS="$TIFF_LIBRARY_DIRS $LDFLAGS"
  5511. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5512. echo "configure:6701: checking for TIFFOpen in -ltiff" >&5
  5513. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5514. ac_save_LIBS="$LIBS"
  5515. LIBS="-ltiff $LIBS"
  5516. cat > conftest.$ac_ext <<EOF
  5517. #line 6707 "configure"
  5518. #include "confdefs.h"
  5519. /* Override any gcc2 internal prototype to avoid an error. */
  5520. /* We use char because int might match the return type of a gcc2
  5521. builtin and then its argument prototype would still apply. */
  5522. char TIFFOpen();
  5523. int main() {
  5524. TIFFOpen()
  5525. ; return 0; }
  5526. EOF
  5527. if { (eval echo configure:6718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5528. rm -rf conftest*
  5529. eval "ac_cv_lib_$ac_lib_var=yes"
  5530. else
  5531. echo "configure: failed program was:" >&5
  5532. cat conftest.$ac_ext >&5
  5533. rm -rf conftest*
  5534. eval "ac_cv_lib_$ac_lib_var=no"
  5535. fi
  5536. rm -f conftest*
  5537. LIBS="$ac_save_LIBS"
  5538. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5539. echo "$ac_t""yes" 1>&6
  5540. TIFFLIB="$TIFFLIB -ltiff "
  5541. else
  5542. echo "$ac_t""no" 1>&6
  5543. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5544. echo "configure:6737: checking for TIFFOpen in -ltiff" >&5
  5545. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5546. ac_save_LIBS="$LIBS"
  5547. LIBS="-ltiff $MATHLIB $LIBS"
  5548. cat > conftest.$ac_ext <<EOF
  5549. #line 6743 "configure"
  5550. #include "confdefs.h"
  5551. /* Override any gcc2 internal prototype to avoid an error. */
  5552. /* We use char because int might match the return type of a gcc2
  5553. builtin and then its argument prototype would still apply. */
  5554. char TIFFOpen();
  5555. int main() {
  5556. TIFFOpen()
  5557. ; return 0; }
  5558. EOF
  5559. if { (eval echo configure:6754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5560. rm -rf conftest*
  5561. eval "ac_cv_lib_$ac_lib_var=yes"
  5562. else
  5563. echo "configure: failed program was:" >&5
  5564. cat conftest.$ac_ext >&5
  5565. rm -rf conftest*
  5566. eval "ac_cv_lib_$ac_lib_var=no"
  5567. fi
  5568. rm -f conftest*
  5569. LIBS="$ac_save_LIBS"
  5570. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5571. echo "$ac_t""yes" 1>&6
  5572. TIFFLIB="$TIFFLIB -ltiff $MATHLIB"
  5573. else
  5574. echo "$ac_t""no" 1>&6
  5575. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5576. echo "configure:6773: checking for TIFFOpen in -ltiff" >&5
  5577. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5578. ac_save_LIBS="$LIBS"
  5579. LIBS="-ltiff $ZLIB $LIBS"
  5580. cat > conftest.$ac_ext <<EOF
  5581. #line 6779 "configure"
  5582. #include "confdefs.h"
  5583. /* Override any gcc2 internal prototype to avoid an error. */
  5584. /* We use char because int might match the return type of a gcc2
  5585. builtin and then its argument prototype would still apply. */
  5586. char TIFFOpen();
  5587. int main() {
  5588. TIFFOpen()
  5589. ; return 0; }
  5590. EOF
  5591. if { (eval echo configure:6790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5592. rm -rf conftest*
  5593. eval "ac_cv_lib_$ac_lib_var=yes"
  5594. else
  5595. echo "configure: failed program was:" >&5
  5596. cat conftest.$ac_ext >&5
  5597. rm -rf conftest*
  5598. eval "ac_cv_lib_$ac_lib_var=no"
  5599. fi
  5600. rm -f conftest*
  5601. LIBS="$ac_save_LIBS"
  5602. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5603. echo "$ac_t""yes" 1>&6
  5604. TIFFLIB="$TIFFLIB -ltiff $ZLIB"
  5605. else
  5606. echo "$ac_t""no" 1>&6
  5607. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5608. echo "configure:6809: checking for TIFFOpen in -ltiff" >&5
  5609. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5610. ac_save_LIBS="$LIBS"
  5611. LIBS="-ltiff $ZLIB $MATHLIB $LIBS"
  5612. cat > conftest.$ac_ext <<EOF
  5613. #line 6815 "configure"
  5614. #include "confdefs.h"
  5615. /* Override any gcc2 internal prototype to avoid an error. */
  5616. /* We use char because int might match the return type of a gcc2
  5617. builtin and then its argument prototype would still apply. */
  5618. char TIFFOpen();
  5619. int main() {
  5620. TIFFOpen()
  5621. ; return 0; }
  5622. EOF
  5623. if { (eval echo configure:6826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5624. rm -rf conftest*
  5625. eval "ac_cv_lib_$ac_lib_var=yes"
  5626. else
  5627. echo "configure: failed program was:" >&5
  5628. cat conftest.$ac_ext >&5
  5629. rm -rf conftest*
  5630. eval "ac_cv_lib_$ac_lib_var=no"
  5631. fi
  5632. rm -f conftest*
  5633. LIBS="$ac_save_LIBS"
  5634. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5635. echo "$ac_t""yes" 1>&6
  5636. TIFFLIB="$TIFFLIB -ltiff $ZLIB $MATHLIB"
  5637. else
  5638. echo "$ac_t""no" 1>&6
  5639. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5640. echo "configure:6845: checking for TIFFOpen in -ltiff" >&5
  5641. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5642. ac_save_LIBS="$LIBS"
  5643. LIBS="-ltiff -ljpeg $LIBS"
  5644. cat > conftest.$ac_ext <<EOF
  5645. #line 6851 "configure"
  5646. #include "confdefs.h"
  5647. /* Override any gcc2 internal prototype to avoid an error. */
  5648. /* We use char because int might match the return type of a gcc2
  5649. builtin and then its argument prototype would still apply. */
  5650. char TIFFOpen();
  5651. int main() {
  5652. TIFFOpen()
  5653. ; return 0; }
  5654. EOF
  5655. if { (eval echo configure:6862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5656. rm -rf conftest*
  5657. eval "ac_cv_lib_$ac_lib_var=yes"
  5658. else
  5659. echo "configure: failed program was:" >&5
  5660. cat conftest.$ac_ext >&5
  5661. rm -rf conftest*
  5662. eval "ac_cv_lib_$ac_lib_var=no"
  5663. fi
  5664. rm -f conftest*
  5665. LIBS="$ac_save_LIBS"
  5666. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5667. echo "$ac_t""yes" 1>&6
  5668. TIFFLIB="$TIFFLIB -ltiff -ljpeg"
  5669. else
  5670. echo "$ac_t""no" 1>&6
  5671. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5672. echo "configure:6881: checking for TIFFOpen in -ltiff" >&5
  5673. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5674. ac_save_LIBS="$LIBS"
  5675. LIBS="-ltiff -ljpeg $MATHLIB $LIBS"
  5676. cat > conftest.$ac_ext <<EOF
  5677. #line 6887 "configure"
  5678. #include "confdefs.h"
  5679. /* Override any gcc2 internal prototype to avoid an error. */
  5680. /* We use char because int might match the return type of a gcc2
  5681. builtin and then its argument prototype would still apply. */
  5682. char TIFFOpen();
  5683. int main() {
  5684. TIFFOpen()
  5685. ; return 0; }
  5686. EOF
  5687. if { (eval echo configure:6898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5688. rm -rf conftest*
  5689. eval "ac_cv_lib_$ac_lib_var=yes"
  5690. else
  5691. echo "configure: failed program was:" >&5
  5692. cat conftest.$ac_ext >&5
  5693. rm -rf conftest*
  5694. eval "ac_cv_lib_$ac_lib_var=no"
  5695. fi
  5696. rm -f conftest*
  5697. LIBS="$ac_save_LIBS"
  5698. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5699. echo "$ac_t""yes" 1>&6
  5700. TIFFLIB="$TIFFLIB -ltiff -ljpeg $MATHLIB"
  5701. else
  5702. echo "$ac_t""no" 1>&6
  5703. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5704. echo "configure:6917: checking for TIFFOpen in -ltiff" >&5
  5705. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5706. ac_save_LIBS="$LIBS"
  5707. LIBS="-ltiff -ljpeg $ZLIB $LIBS"
  5708. cat > conftest.$ac_ext <<EOF
  5709. #line 6923 "configure"
  5710. #include "confdefs.h"
  5711. /* Override any gcc2 internal prototype to avoid an error. */
  5712. /* We use char because int might match the return type of a gcc2
  5713. builtin and then its argument prototype would still apply. */
  5714. char TIFFOpen();
  5715. int main() {
  5716. TIFFOpen()
  5717. ; return 0; }
  5718. EOF
  5719. if { (eval echo configure:6934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5720. rm -rf conftest*
  5721. eval "ac_cv_lib_$ac_lib_var=yes"
  5722. else
  5723. echo "configure: failed program was:" >&5
  5724. cat conftest.$ac_ext >&5
  5725. rm -rf conftest*
  5726. eval "ac_cv_lib_$ac_lib_var=no"
  5727. fi
  5728. rm -f conftest*
  5729. LIBS="$ac_save_LIBS"
  5730. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5731. echo "$ac_t""yes" 1>&6
  5732. TIFFLIB="$TIFFLIB -ltiff -ljpeg $ZLIB"
  5733. else
  5734. echo "$ac_t""no" 1>&6
  5735. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5736. echo "configure:6953: checking for TIFFOpen in -ltiff" >&5
  5737. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5738. ac_save_LIBS="$LIBS"
  5739. LIBS="-ltiff -ljpeg $ZLIB $MATHLIB $LIBS"
  5740. cat > conftest.$ac_ext <<EOF
  5741. #line 6959 "configure"
  5742. #include "confdefs.h"
  5743. /* Override any gcc2 internal prototype to avoid an error. */
  5744. /* We use char because int might match the return type of a gcc2
  5745. builtin and then its argument prototype would still apply. */
  5746. char TIFFOpen();
  5747. int main() {
  5748. TIFFOpen()
  5749. ; return 0; }
  5750. EOF
  5751. if { (eval echo configure:6970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5752. rm -rf conftest*
  5753. eval "ac_cv_lib_$ac_lib_var=yes"
  5754. else
  5755. echo "configure: failed program was:" >&5
  5756. cat conftest.$ac_ext >&5
  5757. rm -rf conftest*
  5758. eval "ac_cv_lib_$ac_lib_var=no"
  5759. fi
  5760. rm -f conftest*
  5761. LIBS="$ac_save_LIBS"
  5762. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5763. echo "$ac_t""yes" 1>&6
  5764. TIFFLIB="$TIFFLIB -ltiff -ljpeg $ZLIB $MATHLIB"
  5765. else
  5766. echo "$ac_t""no" 1>&6
  5767. LDFLAGS=${ac_save_ldflags}
  5768. { echo "configure: error: *** Unable to locate TIFF library." 1>&2; exit 1; }
  5769. fi
  5770. fi
  5771. fi
  5772. fi
  5773. fi
  5774. fi
  5775. fi
  5776. fi
  5777. LDFLAGS=${ac_save_ldflags}
  5778. fi # $USE_TIFF
  5779. # Done checking TIFF
  5780. # Enable PNG option
  5781. echo $ac_n "checking whether to use PNG""... $ac_c" 1>&6
  5782. echo "configure:7068: checking whether to use PNG" >&5
  5783. echo "$ac_t"""$with_png"" 1>&6
  5784. case "$with_png" in
  5785. "no") USE_PNG= ;;
  5786. "yes") USE_PNG="1" ;;
  5787. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  5788. esac
  5789. PNGINC=
  5790. PNGLIB=
  5791. if test -n "$USE_PNG"; then
  5792. # With PNG includes directory
  5793. echo $ac_n "checking for location of PNG includes""... $ac_c" 1>&6
  5794. echo "configure:7087: checking for location of PNG includes" >&5
  5795. case "$with_png_includes" in
  5796. y | ye | yes | n | no)
  5797. { echo "configure: error: *** You must supply a directory to --with-png-includes." 1>&2; exit 1; }
  5798. ;;
  5799. esac
  5800. echo "$ac_t""$with_png_includes" 1>&6
  5801. if test -n "$with_png_includes" ; then
  5802. for dir in $with_png_includes; do
  5803. if test -d "$dir"; then
  5804. PNGINC="$PNGINC -I$dir"
  5805. else
  5806. { echo "configure: error: *** PNG includes directory $dir does not exist." 1>&2; exit 1; }
  5807. fi
  5808. done
  5809. fi
  5810. ac_save_cppflags="$CPPFLAGS"
  5811. CPPFLAGS="$PNGINC $CPPFLAGS"
  5812. for ac_hdr in png.h
  5813. do
  5814. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5815. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5816. echo "configure:7113: checking for $ac_hdr" >&5
  5817. cat > conftest.$ac_ext <<EOF
  5818. #line 7116 "configure"
  5819. #include "confdefs.h"
  5820. #include <$ac_hdr>
  5821. EOF
  5822. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5823. { (eval echo configure:7121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5824. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5825. if test -z "$ac_err"; then
  5826. rm -rf conftest*
  5827. eval "ac_cv_header_$ac_safe=yes"
  5828. else
  5829. echo "$ac_err" >&5
  5830. echo "configure: failed program was:" >&5
  5831. cat conftest.$ac_ext >&5
  5832. rm -rf conftest*
  5833. eval "ac_cv_header_$ac_safe=no"
  5834. fi
  5835. rm -f conftest*
  5836. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5837. echo "$ac_t""yes" 1>&6
  5838. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5839. cat >> confdefs.h <<EOF
  5840. #define $ac_tr_hdr 1
  5841. EOF
  5842. else
  5843. echo "$ac_t""no" 1>&6
  5844. { echo "configure: error: *** Unable to locate PNG includes." 1>&2; exit 1; }
  5845. fi
  5846. done
  5847. CPPFLAGS=$ac_save_cppflags
  5848. # With PNG library directory
  5849. echo $ac_n "checking for location of PNG library""... $ac_c" 1>&6
  5850. echo "configure:7155: checking for location of PNG library" >&5
  5851. case "$with_png_libs" in
  5852. y | ye | yes | n | no)
  5853. { echo "configure: error: *** You must supply a directory to --with-png-libs." 1>&2; exit 1; }
  5854. ;;
  5855. esac
  5856. echo "$ac_t""$with_png_libs" 1>&6
  5857. if test -n "$with_png_libs"; then
  5858. for dir in $with_png_libs; do
  5859. if test -d "$dir"; then
  5860. PNGLIB="$PNGLIB -L$dir"
  5861. else
  5862. { echo "configure: error: *** PNG library directory $dir does not exist." 1>&2; exit 1; }
  5863. fi
  5864. done
  5865. fi
  5866. ac_save_ldflags="$LDFLAGS"
  5867. LDFLAGS="$PNGLIB $LDFLAGS"
  5868. echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
  5869. echo "configure:7180: checking for png_read_image in -lpng" >&5
  5870. ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
  5871. ac_save_LIBS="$LIBS"
  5872. LIBS="-lpng $ZLIB $MATHLIB $LIBS"
  5873. cat > conftest.$ac_ext <<EOF
  5874. #line 7186 "configure"
  5875. #include "confdefs.h"
  5876. /* Override any gcc2 internal prototype to avoid an error. */
  5877. /* We use char because int might match the return type of a gcc2
  5878. builtin and then its argument prototype would still apply. */
  5879. char png_read_image();
  5880. int main() {
  5881. png_read_image()
  5882. ; return 0; }
  5883. EOF
  5884. if { (eval echo configure:7197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5885. rm -rf conftest*
  5886. eval "ac_cv_lib_$ac_lib_var=yes"
  5887. else
  5888. echo "configure: failed program was:" >&5
  5889. cat conftest.$ac_ext >&5
  5890. rm -rf conftest*
  5891. eval "ac_cv_lib_$ac_lib_var=no"
  5892. fi
  5893. rm -f conftest*
  5894. LIBS="$ac_save_LIBS"
  5895. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5896. echo "$ac_t""yes" 1>&6
  5897. PNGLIB="$PNGLIB -lpng $ZLIB $MATHLIB"
  5898. else
  5899. echo "$ac_t""no" 1>&6
  5900. LDFLAGS=${ac_save_ldflags}
  5901. { echo "configure: error: *** Unable to locate PNG library." 1>&2; exit 1; }
  5902. fi
  5903. LDFLAGS=${ac_save_ldflags}
  5904. fi # $USE_PNG
  5905. # Done checking PNG
  5906. # Enable PostgreSQL option
  5907. echo $ac_n "checking whether to use PostgreSQL""... $ac_c" 1>&6
  5908. echo "configure:7239: checking whether to use PostgreSQL" >&5
  5909. echo "$ac_t"""$with_postgres"" 1>&6
  5910. case "$with_postgres" in
  5911. "no") USE_POSTGRES= ;;
  5912. "yes") USE_POSTGRES="1" ;;
  5913. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  5914. esac
  5915. if test -n "$USE_POSTGRES"; then
  5916. cat >> confdefs.h <<\EOF
  5917. #define HAVE_POSTGRES 1
  5918. EOF
  5919. fi # $USE_POSTGRES
  5920. PQINCPATH=
  5921. PQLIBPATH=
  5922. PQLIB=
  5923. if test -n "$USE_POSTGRES"; then
  5924. # With PostgreSQL includes directory
  5925. echo $ac_n "checking for location of PostgreSQL includes""... $ac_c" 1>&6
  5926. echo "configure:7266: checking for location of PostgreSQL includes" >&5
  5927. case "$with_postgres_includes" in
  5928. y | ye | yes | n | no)
  5929. { echo "configure: error: *** You must supply a directory to --with-postgres-includes." 1>&2; exit 1; }
  5930. ;;
  5931. esac
  5932. echo "$ac_t""$with_postgres_includes" 1>&6
  5933. if test -n "$with_postgres_includes" ; then
  5934. for dir in $with_postgres_includes; do
  5935. if test -d "$dir"; then
  5936. PQINCPATH="$PQINCPATH -I$dir"
  5937. else
  5938. { echo "configure: error: *** PostgreSQL includes directory $dir does not exist." 1>&2; exit 1; }
  5939. fi
  5940. done
  5941. fi
  5942. ac_save_cppflags="$CPPFLAGS"
  5943. CPPFLAGS="$PQINCPATH $CPPFLAGS"
  5944. for ac_hdr in libpq-fe.h
  5945. do
  5946. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5947. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5948. echo "configure:7292: checking for $ac_hdr" >&5
  5949. cat > conftest.$ac_ext <<EOF
  5950. #line 7295 "configure"
  5951. #include "confdefs.h"
  5952. #include <$ac_hdr>
  5953. EOF
  5954. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5955. { (eval echo configure:7300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5956. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5957. if test -z "$ac_err"; then
  5958. rm -rf conftest*
  5959. eval "ac_cv_header_$ac_safe=yes"
  5960. else
  5961. echo "$ac_err" >&5
  5962. echo "configure: failed program was:" >&5
  5963. cat conftest.$ac_ext >&5
  5964. rm -rf conftest*
  5965. eval "ac_cv_header_$ac_safe=no"
  5966. fi
  5967. rm -f conftest*
  5968. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5969. echo "$ac_t""yes" 1>&6
  5970. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5971. cat >> confdefs.h <<EOF
  5972. #define $ac_tr_hdr 1
  5973. EOF
  5974. else
  5975. echo "$ac_t""no" 1>&6
  5976. { echo "configure: error: *** Unable to locate PostgreSQL includes." 1>&2; exit 1; }
  5977. fi
  5978. done
  5979. CPPFLAGS=$ac_save_cppflags
  5980. fi # $USE_POSTGRES
  5981. if test -n "$USE_POSTGRES"; then
  5982. # With PostgreSQL library directory
  5983. echo $ac_n "checking for location of PostgreSQL library""... $ac_c" 1>&6
  5984. echo "configure:7338: checking for location of PostgreSQL library" >&5
  5985. case "$with_postgres_libs" in
  5986. y | ye | yes | n | no)
  5987. { echo "configure: error: *** You must supply a directory to --with-postgres-libs." 1>&2; exit 1; }
  5988. ;;
  5989. esac
  5990. echo "$ac_t""$with_postgres_libs" 1>&6
  5991. if test -n "$with_postgres_libs"; then
  5992. for dir in $with_postgres_libs; do
  5993. if test -d "$dir"; then
  5994. PQLIBPATH="$PQLIBPATH -L$dir"
  5995. else
  5996. { echo "configure: error: *** PostgreSQL library directory $dir does not exist." 1>&2; exit 1; }
  5997. fi
  5998. done
  5999. fi
  6000. ac_save_ldflags="$LDFLAGS"
  6001. LDFLAGS="$PQLIBPATH $LDFLAGS"
  6002. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6003. echo "configure:7367: checking for PQsetdbLogin in -lpq" >&5
  6004. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6005. ac_save_LIBS="$LIBS"
  6006. LIBS="-lpq $LIBS"
  6007. cat > conftest.$ac_ext <<EOF
  6008. #line 7373 "configure"
  6009. #include "confdefs.h"
  6010. /* Override any gcc2 internal prototype to avoid an error. */
  6011. /* We use char because int might match the return type of a gcc2
  6012. builtin and then its argument prototype would still apply. */
  6013. char PQsetdbLogin();
  6014. int main() {
  6015. PQsetdbLogin()
  6016. ; return 0; }
  6017. EOF
  6018. if { (eval echo configure:7384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6019. rm -rf conftest*
  6020. eval "ac_cv_lib_$ac_lib_var=yes"
  6021. else
  6022. echo "configure: failed program was:" >&5
  6023. cat conftest.$ac_ext >&5
  6024. rm -rf conftest*
  6025. eval "ac_cv_lib_$ac_lib_var=no"
  6026. fi
  6027. rm -f conftest*
  6028. LIBS="$ac_save_LIBS"
  6029. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6030. echo "$ac_t""yes" 1>&6
  6031. PQLIB="$PQLIB -lpq "
  6032. else
  6033. echo "$ac_t""no" 1>&6
  6034. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6035. echo "configure:7403: checking for PQsetdbLogin in -lpq" >&5
  6036. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6037. ac_save_LIBS="$LIBS"
  6038. LIBS="-lpq -lssl -lcrypto $LIBS"
  6039. cat > conftest.$ac_ext <<EOF
  6040. #line 7409 "configure"
  6041. #include "confdefs.h"
  6042. /* Override any gcc2 internal prototype to avoid an error. */
  6043. /* We use char because int might match the return type of a gcc2
  6044. builtin and then its argument prototype would still apply. */
  6045. char PQsetdbLogin();
  6046. int main() {
  6047. PQsetdbLogin()
  6048. ; return 0; }
  6049. EOF
  6050. if { (eval echo configure:7420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6051. rm -rf conftest*
  6052. eval "ac_cv_lib_$ac_lib_var=yes"
  6053. else
  6054. echo "configure: failed program was:" >&5
  6055. cat conftest.$ac_ext >&5
  6056. rm -rf conftest*
  6057. eval "ac_cv_lib_$ac_lib_var=no"
  6058. fi
  6059. rm -f conftest*
  6060. LIBS="$ac_save_LIBS"
  6061. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6062. echo "$ac_t""yes" 1>&6
  6063. PQLIB="$PQLIB -lpq -lssl -lcrypto"
  6064. else
  6065. echo "$ac_t""no" 1>&6
  6066. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6067. echo "configure:7439: checking for PQsetdbLogin in -lpq" >&5
  6068. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6069. ac_save_LIBS="$LIBS"
  6070. LIBS="-lpq -lcrypt $LIBS"
  6071. cat > conftest.$ac_ext <<EOF
  6072. #line 7445 "configure"
  6073. #include "confdefs.h"
  6074. /* Override any gcc2 internal prototype to avoid an error. */
  6075. /* We use char because int might match the return type of a gcc2
  6076. builtin and then its argument prototype would still apply. */
  6077. char PQsetdbLogin();
  6078. int main() {
  6079. PQsetdbLogin()
  6080. ; return 0; }
  6081. EOF
  6082. if { (eval echo configure:7456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6083. rm -rf conftest*
  6084. eval "ac_cv_lib_$ac_lib_var=yes"
  6085. else
  6086. echo "configure: failed program was:" >&5
  6087. cat conftest.$ac_ext >&5
  6088. rm -rf conftest*
  6089. eval "ac_cv_lib_$ac_lib_var=no"
  6090. fi
  6091. rm -f conftest*
  6092. LIBS="$ac_save_LIBS"
  6093. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6094. echo "$ac_t""yes" 1>&6
  6095. PQLIB="$PQLIB -lpq -lcrypt"
  6096. else
  6097. echo "$ac_t""no" 1>&6
  6098. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6099. echo "configure:7475: checking for PQsetdbLogin in -lpq" >&5
  6100. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6101. ac_save_LIBS="$LIBS"
  6102. LIBS="-lpq -lcrypt -lssl -lcrypto $LIBS"
  6103. cat > conftest.$ac_ext <<EOF
  6104. #line 7481 "configure"
  6105. #include "confdefs.h"
  6106. /* Override any gcc2 internal prototype to avoid an error. */
  6107. /* We use char because int might match the return type of a gcc2
  6108. builtin and then its argument prototype would still apply. */
  6109. char PQsetdbLogin();
  6110. int main() {
  6111. PQsetdbLogin()
  6112. ; return 0; }
  6113. EOF
  6114. if { (eval echo configure:7492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6115. rm -rf conftest*
  6116. eval "ac_cv_lib_$ac_lib_var=yes"
  6117. else
  6118. echo "configure: failed program was:" >&5
  6119. cat conftest.$ac_ext >&5
  6120. rm -rf conftest*
  6121. eval "ac_cv_lib_$ac_lib_var=no"
  6122. fi
  6123. rm -f conftest*
  6124. LIBS="$ac_save_LIBS"
  6125. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6126. echo "$ac_t""yes" 1>&6
  6127. PQLIB="$PQLIB -lpq -lcrypt -lssl -lcrypto"
  6128. else
  6129. echo "$ac_t""no" 1>&6
  6130. LDFLAGS=${ac_save_ldflags}
  6131. { echo "configure: error: *** Unable to locate PostgreSQL library." 1>&2; exit 1; }
  6132. fi
  6133. fi
  6134. fi
  6135. fi
  6136. LDFLAGS=${ac_save_ldflags}
  6137. ac_save_ldflags="$LDFLAGS"
  6138. LDFLAGS="$LDFLAGS $PQLIBPATH"
  6139. echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
  6140. echo "configure:7549: checking for PQcmdTuples in -lpq" >&5
  6141. ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
  6142. ac_save_LIBS="$LIBS"
  6143. LIBS="-lpq $LIBS"
  6144. cat > conftest.$ac_ext <<EOF
  6145. #line 7555 "configure"
  6146. #include "confdefs.h"
  6147. /* Override any gcc2 internal prototype to avoid an error. */
  6148. /* We use char because int might match the return type of a gcc2
  6149. builtin and then its argument prototype would still apply. */
  6150. char PQcmdTuples();
  6151. int main() {
  6152. PQcmdTuples()
  6153. ; return 0; }
  6154. EOF
  6155. if { (eval echo configure:7566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6156. rm -rf conftest*
  6157. eval "ac_cv_lib_$ac_lib_var=yes"
  6158. else
  6159. echo "configure: failed program was:" >&5
  6160. cat conftest.$ac_ext >&5
  6161. rm -rf conftest*
  6162. eval "ac_cv_lib_$ac_lib_var=no"
  6163. fi
  6164. rm -f conftest*
  6165. LIBS="$ac_save_LIBS"
  6166. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6167. echo "$ac_t""yes" 1>&6
  6168. cat >> confdefs.h <<\EOF
  6169. #define HAVE_PQCMDTUPLES 1
  6170. EOF
  6171. else
  6172. echo "$ac_t""no" 1>&6
  6173. echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
  6174. echo "configure:7588: checking for PQcmdTuples in -lpq" >&5
  6175. ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
  6176. ac_save_LIBS="$LIBS"
  6177. LIBS="-lpq -lcrypt $LIBS"
  6178. cat > conftest.$ac_ext <<EOF
  6179. #line 7594 "configure"
  6180. #include "confdefs.h"
  6181. /* Override any gcc2 internal prototype to avoid an error. */
  6182. /* We use char because int might match the return type of a gcc2
  6183. builtin and then its argument prototype would still apply. */
  6184. char PQcmdTuples();
  6185. int main() {
  6186. PQcmdTuples()
  6187. ; return 0; }
  6188. EOF
  6189. if { (eval echo configure:7605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6190. rm -rf conftest*
  6191. eval "ac_cv_lib_$ac_lib_var=yes"
  6192. else
  6193. echo "configure: failed program was:" >&5
  6194. cat conftest.$ac_ext >&5
  6195. rm -rf conftest*
  6196. eval "ac_cv_lib_$ac_lib_var=no"
  6197. fi
  6198. rm -f conftest*
  6199. LIBS="$ac_save_LIBS"
  6200. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6201. echo "$ac_t""yes" 1>&6
  6202. cat >> confdefs.h <<\EOF
  6203. #define HAVE_PQCMDTUPLES 1
  6204. EOF
  6205. else
  6206. echo "$ac_t""no" 1>&6
  6207. fi
  6208. fi
  6209. LDFLAGS="${ac_save_ldflags}"
  6210. fi # $USE_POSTGRES
  6211. # Done checking PostgreSQL
  6212. # Enable MySQL option
  6213. echo $ac_n "checking whether to use MySQL""... $ac_c" 1>&6
  6214. echo "configure:7648: checking whether to use MySQL" >&5
  6215. echo "$ac_t"""$with_mysql"" 1>&6
  6216. case "$with_mysql" in
  6217. "no") USE_MYSQL= ;;
  6218. "yes") USE_MYSQL="1" ;;
  6219. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6220. esac
  6221. MYSQLINCPATH=
  6222. MYSQLLIBPATH=
  6223. MYSQLLIB=
  6224. if test -n "$USE_MYSQL"; then
  6225. # With MySQL includes directory
  6226. echo $ac_n "checking for location of MySQL includes""... $ac_c" 1>&6
  6227. echo "configure:7668: checking for location of MySQL includes" >&5
  6228. case "$with_mysql_includes" in
  6229. y | ye | yes | n | no)
  6230. { echo "configure: error: *** You must supply a directory to --with-mysql-includes." 1>&2; exit 1; }
  6231. ;;
  6232. esac
  6233. echo "$ac_t""$with_mysql_includes" 1>&6
  6234. if test -n "$with_mysql_includes" ; then
  6235. for dir in $with_mysql_includes; do
  6236. if test -d "$dir"; then
  6237. MYSQLINCPATH="$MYSQLINCPATH -I$dir"
  6238. else
  6239. { echo "configure: error: *** MySQL includes directory $dir does not exist." 1>&2; exit 1; }
  6240. fi
  6241. done
  6242. fi
  6243. ac_save_cppflags="$CPPFLAGS"
  6244. CPPFLAGS="$MYSQLINCPATH $CPPFLAGS"
  6245. for ac_hdr in mysql.h
  6246. do
  6247. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6248. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6249. echo "configure:7694: checking for $ac_hdr" >&5
  6250. cat > conftest.$ac_ext <<EOF
  6251. #line 7697 "configure"
  6252. #include "confdefs.h"
  6253. #include <$ac_hdr>
  6254. EOF
  6255. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6256. { (eval echo configure:7702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6257. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6258. if test -z "$ac_err"; then
  6259. rm -rf conftest*
  6260. eval "ac_cv_header_$ac_safe=yes"
  6261. else
  6262. echo "$ac_err" >&5
  6263. echo "configure: failed program was:" >&5
  6264. cat conftest.$ac_ext >&5
  6265. rm -rf conftest*
  6266. eval "ac_cv_header_$ac_safe=no"
  6267. fi
  6268. rm -f conftest*
  6269. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6270. echo "$ac_t""yes" 1>&6
  6271. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6272. cat >> confdefs.h <<EOF
  6273. #define $ac_tr_hdr 1
  6274. EOF
  6275. else
  6276. echo "$ac_t""no" 1>&6
  6277. { echo "configure: error: *** Unable to locate MySQL includes." 1>&2; exit 1; }
  6278. fi
  6279. done
  6280. CPPFLAGS=$ac_save_cppflags
  6281. fi # $USE_MYSQL
  6282. if test -n "$USE_MYSQL"; then
  6283. # With MySQL library directory
  6284. echo $ac_n "checking for location of MySQL library""... $ac_c" 1>&6
  6285. echo "configure:7739: checking for location of MySQL library" >&5
  6286. case "$with_mysql_libs" in
  6287. y | ye | yes | n | no)
  6288. { echo "configure: error: *** You must supply a directory to --with-mysql-libs." 1>&2; exit 1; }
  6289. ;;
  6290. esac
  6291. echo "$ac_t""$with_mysql_libs" 1>&6
  6292. if test -n "$with_mysql_libs"; then
  6293. for dir in $with_mysql_libs; do
  6294. if test -d "$dir"; then
  6295. MYSQLLIBPATH="$MYSQLLIBPATH -L$dir"
  6296. else
  6297. { echo "configure: error: *** MySQL library directory $dir does not exist." 1>&2; exit 1; }
  6298. fi
  6299. done
  6300. fi
  6301. ac_save_ldflags="$LDFLAGS"
  6302. LDFLAGS="$MYSQLLIBPATH $LDFLAGS"
  6303. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6304. echo "configure:7770: checking for mysql_query in -lmysqlclient" >&5
  6305. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6306. ac_save_LIBS="$LIBS"
  6307. LIBS="-lmysqlclient $LIBS"
  6308. cat > conftest.$ac_ext <<EOF
  6309. #line 7776 "configure"
  6310. #include "confdefs.h"
  6311. /* Override any gcc2 internal prototype to avoid an error. */
  6312. /* We use char because int might match the return type of a gcc2
  6313. builtin and then its argument prototype would still apply. */
  6314. char mysql_query();
  6315. int main() {
  6316. mysql_query()
  6317. ; return 0; }
  6318. EOF
  6319. if { (eval echo configure:7787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6320. rm -rf conftest*
  6321. eval "ac_cv_lib_$ac_lib_var=yes"
  6322. else
  6323. echo "configure: failed program was:" >&5
  6324. cat conftest.$ac_ext >&5
  6325. rm -rf conftest*
  6326. eval "ac_cv_lib_$ac_lib_var=no"
  6327. fi
  6328. rm -f conftest*
  6329. LIBS="$ac_save_LIBS"
  6330. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6331. echo "$ac_t""yes" 1>&6
  6332. MYSQLLIB="$MYSQLLIB -lmysqlclient "
  6333. else
  6334. echo "$ac_t""no" 1>&6
  6335. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6336. echo "configure:7806: checking for mysql_query in -lmysqlclient" >&5
  6337. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6338. ac_save_LIBS="$LIBS"
  6339. LIBS="-lmysqlclient $MATHLIB $LIBS"
  6340. cat > conftest.$ac_ext <<EOF
  6341. #line 7812 "configure"
  6342. #include "confdefs.h"
  6343. /* Override any gcc2 internal prototype to avoid an error. */
  6344. /* We use char because int might match the return type of a gcc2
  6345. builtin and then its argument prototype would still apply. */
  6346. char mysql_query();
  6347. int main() {
  6348. mysql_query()
  6349. ; return 0; }
  6350. EOF
  6351. if { (eval echo configure:7823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6352. rm -rf conftest*
  6353. eval "ac_cv_lib_$ac_lib_var=yes"
  6354. else
  6355. echo "configure: failed program was:" >&5
  6356. cat conftest.$ac_ext >&5
  6357. rm -rf conftest*
  6358. eval "ac_cv_lib_$ac_lib_var=no"
  6359. fi
  6360. rm -f conftest*
  6361. LIBS="$ac_save_LIBS"
  6362. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6363. echo "$ac_t""yes" 1>&6
  6364. MYSQLLIB="$MYSQLLIB -lmysqlclient $MATHLIB"
  6365. else
  6366. echo "$ac_t""no" 1>&6
  6367. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6368. echo "configure:7842: checking for mysql_query in -lmysqlclient" >&5
  6369. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6370. ac_save_LIBS="$LIBS"
  6371. LIBS="-lmysqlclient $SOCKLIB $LIBS"
  6372. cat > conftest.$ac_ext <<EOF
  6373. #line 7848 "configure"
  6374. #include "confdefs.h"
  6375. /* Override any gcc2 internal prototype to avoid an error. */
  6376. /* We use char because int might match the return type of a gcc2
  6377. builtin and then its argument prototype would still apply. */
  6378. char mysql_query();
  6379. int main() {
  6380. mysql_query()
  6381. ; return 0; }
  6382. EOF
  6383. if { (eval echo configure:7859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6384. rm -rf conftest*
  6385. eval "ac_cv_lib_$ac_lib_var=yes"
  6386. else
  6387. echo "configure: failed program was:" >&5
  6388. cat conftest.$ac_ext >&5
  6389. rm -rf conftest*
  6390. eval "ac_cv_lib_$ac_lib_var=no"
  6391. fi
  6392. rm -f conftest*
  6393. LIBS="$ac_save_LIBS"
  6394. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6395. echo "$ac_t""yes" 1>&6
  6396. MYSQLLIB="$MYSQLLIB -lmysqlclient $SOCKLIB"
  6397. else
  6398. echo "$ac_t""no" 1>&6
  6399. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6400. echo "configure:7878: checking for mysql_query in -lmysqlclient" >&5
  6401. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6402. ac_save_LIBS="$LIBS"
  6403. LIBS="-lmysqlclient $SOCKLIB $MATHLIB $LIBS"
  6404. cat > conftest.$ac_ext <<EOF
  6405. #line 7884 "configure"
  6406. #include "confdefs.h"
  6407. /* Override any gcc2 internal prototype to avoid an error. */
  6408. /* We use char because int might match the return type of a gcc2
  6409. builtin and then its argument prototype would still apply. */
  6410. char mysql_query();
  6411. int main() {
  6412. mysql_query()
  6413. ; return 0; }
  6414. EOF
  6415. if { (eval echo configure:7895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6416. rm -rf conftest*
  6417. eval "ac_cv_lib_$ac_lib_var=yes"
  6418. else
  6419. echo "configure: failed program was:" >&5
  6420. cat conftest.$ac_ext >&5
  6421. rm -rf conftest*
  6422. eval "ac_cv_lib_$ac_lib_var=no"
  6423. fi
  6424. rm -f conftest*
  6425. LIBS="$ac_save_LIBS"
  6426. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6427. echo "$ac_t""yes" 1>&6
  6428. MYSQLLIB="$MYSQLLIB -lmysqlclient $SOCKLIB $MATHLIB"
  6429. else
  6430. echo "$ac_t""no" 1>&6
  6431. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6432. echo "configure:7914: checking for mysql_query in -lmysqlclient" >&5
  6433. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6434. ac_save_LIBS="$LIBS"
  6435. LIBS="-lmysqlclient $ZLIB $LIBS"
  6436. cat > conftest.$ac_ext <<EOF
  6437. #line 7920 "configure"
  6438. #include "confdefs.h"
  6439. /* Override any gcc2 internal prototype to avoid an error. */
  6440. /* We use char because int might match the return type of a gcc2
  6441. builtin and then its argument prototype would still apply. */
  6442. char mysql_query();
  6443. int main() {
  6444. mysql_query()
  6445. ; return 0; }
  6446. EOF
  6447. if { (eval echo configure:7931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6448. rm -rf conftest*
  6449. eval "ac_cv_lib_$ac_lib_var=yes"
  6450. else
  6451. echo "configure: failed program was:" >&5
  6452. cat conftest.$ac_ext >&5
  6453. rm -rf conftest*
  6454. eval "ac_cv_lib_$ac_lib_var=no"
  6455. fi
  6456. rm -f conftest*
  6457. LIBS="$ac_save_LIBS"
  6458. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6459. echo "$ac_t""yes" 1>&6
  6460. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB"
  6461. else
  6462. echo "$ac_t""no" 1>&6
  6463. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6464. echo "configure:7950: checking for mysql_query in -lmysqlclient" >&5
  6465. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6466. ac_save_LIBS="$LIBS"
  6467. LIBS="-lmysqlclient $ZLIB $MATHLIB $LIBS"
  6468. cat > conftest.$ac_ext <<EOF
  6469. #line 7956 "configure"
  6470. #include "confdefs.h"
  6471. /* Override any gcc2 internal prototype to avoid an error. */
  6472. /* We use char because int might match the return type of a gcc2
  6473. builtin and then its argument prototype would still apply. */
  6474. char mysql_query();
  6475. int main() {
  6476. mysql_query()
  6477. ; return 0; }
  6478. EOF
  6479. if { (eval echo configure:7967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6480. rm -rf conftest*
  6481. eval "ac_cv_lib_$ac_lib_var=yes"
  6482. else
  6483. echo "configure: failed program was:" >&5
  6484. cat conftest.$ac_ext >&5
  6485. rm -rf conftest*
  6486. eval "ac_cv_lib_$ac_lib_var=no"
  6487. fi
  6488. rm -f conftest*
  6489. LIBS="$ac_save_LIBS"
  6490. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6491. echo "$ac_t""yes" 1>&6
  6492. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $MATHLIB"
  6493. else
  6494. echo "$ac_t""no" 1>&6
  6495. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6496. echo "configure:7986: checking for mysql_query in -lmysqlclient" >&5
  6497. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6498. ac_save_LIBS="$LIBS"
  6499. LIBS="-lmysqlclient $ZLIB $SOCKLIB $LIBS"
  6500. cat > conftest.$ac_ext <<EOF
  6501. #line 7992 "configure"
  6502. #include "confdefs.h"
  6503. /* Override any gcc2 internal prototype to avoid an error. */
  6504. /* We use char because int might match the return type of a gcc2
  6505. builtin and then its argument prototype would still apply. */
  6506. char mysql_query();
  6507. int main() {
  6508. mysql_query()
  6509. ; return 0; }
  6510. EOF
  6511. if { (eval echo configure:8003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6512. rm -rf conftest*
  6513. eval "ac_cv_lib_$ac_lib_var=yes"
  6514. else
  6515. echo "configure: failed program was:" >&5
  6516. cat conftest.$ac_ext >&5
  6517. rm -rf conftest*
  6518. eval "ac_cv_lib_$ac_lib_var=no"
  6519. fi
  6520. rm -f conftest*
  6521. LIBS="$ac_save_LIBS"
  6522. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6523. echo "$ac_t""yes" 1>&6
  6524. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $SOCKLIB"
  6525. else
  6526. echo "$ac_t""no" 1>&6
  6527. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6528. echo "configure:8022: checking for mysql_query in -lmysqlclient" >&5
  6529. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6530. ac_save_LIBS="$LIBS"
  6531. LIBS="-lmysqlclient $ZLIB $SOCKLIB $MATHLIB $LIBS"
  6532. cat > conftest.$ac_ext <<EOF
  6533. #line 8028 "configure"
  6534. #include "confdefs.h"
  6535. /* Override any gcc2 internal prototype to avoid an error. */
  6536. /* We use char because int might match the return type of a gcc2
  6537. builtin and then its argument prototype would still apply. */
  6538. char mysql_query();
  6539. int main() {
  6540. mysql_query()
  6541. ; return 0; }
  6542. EOF
  6543. if { (eval echo configure:8039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6544. rm -rf conftest*
  6545. eval "ac_cv_lib_$ac_lib_var=yes"
  6546. else
  6547. echo "configure: failed program was:" >&5
  6548. cat conftest.$ac_ext >&5
  6549. rm -rf conftest*
  6550. eval "ac_cv_lib_$ac_lib_var=no"
  6551. fi
  6552. rm -f conftest*
  6553. LIBS="$ac_save_LIBS"
  6554. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6555. echo "$ac_t""yes" 1>&6
  6556. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $SOCKLIB $MATHLIB"
  6557. else
  6558. echo "$ac_t""no" 1>&6
  6559. LDFLAGS=${ac_save_ldflags}
  6560. { echo "configure: error: *** Unable to locate MySQL library." 1>&2; exit 1; }
  6561. fi
  6562. fi
  6563. fi
  6564. fi
  6565. fi
  6566. fi
  6567. fi
  6568. fi
  6569. LDFLAGS=${ac_save_ldflags}
  6570. # Check for libmysqld (for embeded version of the driver)
  6571. # Extract the first word of "mysql_config", so it can be a program name with args.
  6572. set dummy mysql_config; ac_word=$2
  6573. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  6574. echo "configure:8129: checking for $ac_word" >&5
  6575. case "$MYSQLD_CONFIG" in
  6576. /*)
  6577. ac_cv_path_MYSQLD_CONFIG="$MYSQLD_CONFIG" # Let the user override the test with a path.
  6578. ;;
  6579. ?:/*)
  6580. ac_cv_path_MYSQLD_CONFIG="$MYSQLD_CONFIG" # Let the user override the test with a dos path.
  6581. ;;
  6582. *)
  6583. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  6584. ac_dummy="$PATH"
  6585. for ac_dir in $ac_dummy; do
  6586. test -z "$ac_dir" && ac_dir=.
  6587. if test -f $ac_dir/$ac_word; then
  6588. ac_cv_path_MYSQLD_CONFIG="$ac_dir/$ac_word"
  6589. break
  6590. fi
  6591. done
  6592. IFS="$ac_save_ifs"
  6593. test -z "$ac_cv_path_MYSQLD_CONFIG" && ac_cv_path_MYSQLD_CONFIG="no"
  6594. ;;
  6595. esac
  6596. MYSQLD_CONFIG="$ac_cv_path_MYSQLD_CONFIG"
  6597. if test -n "$MYSQLD_CONFIG"; then
  6598. echo "$ac_t""$MYSQLD_CONFIG" 1>&6
  6599. else
  6600. echo "$ac_t""no" 1>&6
  6601. fi
  6602. if test "$MYSQLD_CONFIG" = "no" ; then
  6603. { echo "configure: error: *** couldn't find mysql_config" 1>&2; exit 1; }
  6604. fi
  6605. if test "$MYSQLD_CONFIG" != "" ; then
  6606. ac_ext=C
  6607. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6608. ac_cpp='$CXXCPP $CPPFLAGS'
  6609. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6610. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6611. cross_compiling=$ac_cv_prog_cxx_cross
  6612. ac_save_libs="$LIBS"
  6613. MYSQLDLIB=`"$MYSQLD_CONFIG" --libmysqld-libs`
  6614. LIBS="$MYSQLDLIB $LIBS"
  6615. echo $ac_n "checking for mysql_server_init""... $ac_c" 1>&6
  6616. echo "configure:8178: checking for mysql_server_init" >&5
  6617. cat > conftest.$ac_ext <<EOF
  6618. #line 8181 "configure"
  6619. #include "confdefs.h"
  6620. /* System header to define __stub macros and hopefully few prototypes,
  6621. which can conflict with char mysql_server_init(); below. */
  6622. #include <assert.h>
  6623. /* Override any gcc2 internal prototype to avoid an error. */
  6624. #ifdef __cplusplus
  6625. extern "C"
  6626. #endif
  6627. /* We use char because int might match the return type of a gcc2
  6628. builtin and then its argument prototype would still apply. */
  6629. char mysql_server_init();
  6630. int main() {
  6631. /* The GNU C library defines this for functions which it implements
  6632. to always fail with ENOSYS. Some functions are actually named
  6633. something starting with __ and the normal name is an alias. */
  6634. #if defined (__stub_mysql_server_init) || defined (__stub___mysql_server_init)
  6635. choke me
  6636. #else
  6637. mysql_server_init();
  6638. #endif
  6639. ; return 0; }
  6640. EOF
  6641. if { (eval echo configure:8207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6642. rm -rf conftest*
  6643. eval "ac_cv_func_mysql_server_init=yes"
  6644. else
  6645. echo "configure: failed program was:" >&5
  6646. cat conftest.$ac_ext >&5
  6647. rm -rf conftest*
  6648. eval "ac_cv_func_mysql_server_init=no"
  6649. fi
  6650. rm -f conftest*
  6651. if eval "test \"`echo '$ac_cv_func_'mysql_server_init`\" = yes"; then
  6652. echo "$ac_t""yes" 1>&6
  6653. :
  6654. else
  6655. echo "$ac_t""no" 1>&6
  6656. MYSQLDLIB="";
  6657. echo "configure: warning: libmysqld not found" 1>&2
  6658. fi
  6659. LIBS=$ac_save_libs
  6660. ac_ext=c
  6661. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6662. ac_cpp='$CPP $CPPFLAGS'
  6663. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6664. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6665. cross_compiling=$ac_cv_prog_cc_cross
  6666. ac_ext=c
  6667. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6668. ac_cpp='$CPP $CPPFLAGS'
  6669. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6670. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6671. cross_compiling=$ac_cv_prog_cc_cross
  6672. fi
  6673. fi # $USE_MYSQL
  6674. # Done checking MySQL
  6675. # Enable SQLite option
  6676. echo $ac_n "checking whether to use SQLite""... $ac_c" 1>&6
  6677. echo "configure:8259: checking whether to use SQLite" >&5
  6678. echo "$ac_t"""$with_sqlite"" 1>&6
  6679. case "$with_sqlite" in
  6680. "no") USE_SQLITE= ;;
  6681. "yes") USE_SQLITE="1" ;;
  6682. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6683. esac
  6684. SQLITEINCPATH=
  6685. SQLITELIBPATH=
  6686. SQLITELIB=
  6687. if test -n "$USE_SQLITE"; then
  6688. # With SQLite includes directory
  6689. echo $ac_n "checking for location of SQLite includes""... $ac_c" 1>&6
  6690. echo "configure:8279: checking for location of SQLite includes" >&5
  6691. case "$with_sqlite_includes" in
  6692. y | ye | yes | n | no)
  6693. { echo "configure: error: *** You must supply a directory to --with-sqlite-includes." 1>&2; exit 1; }
  6694. ;;
  6695. esac
  6696. echo "$ac_t""$with_sqlite_includes" 1>&6
  6697. if test -n "$with_sqlite_includes" ; then
  6698. for dir in $with_sqlite_includes; do
  6699. if test -d "$dir"; then
  6700. SQLITEINCPATH="$SQLITEINCPATH -I$dir"
  6701. else
  6702. { echo "configure: error: *** SQLite includes directory $dir does not exist." 1>&2; exit 1; }
  6703. fi
  6704. done
  6705. fi
  6706. ac_save_cppflags="$CPPFLAGS"
  6707. CPPFLAGS="$SQLITEINCPATH $CPPFLAGS"
  6708. for ac_hdr in sqlite3.h
  6709. do
  6710. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6711. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6712. echo "configure:8305: checking for $ac_hdr" >&5
  6713. cat > conftest.$ac_ext <<EOF
  6714. #line 8308 "configure"
  6715. #include "confdefs.h"
  6716. #include <$ac_hdr>
  6717. EOF
  6718. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6719. { (eval echo configure:8313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6720. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6721. if test -z "$ac_err"; then
  6722. rm -rf conftest*
  6723. eval "ac_cv_header_$ac_safe=yes"
  6724. else
  6725. echo "$ac_err" >&5
  6726. echo "configure: failed program was:" >&5
  6727. cat conftest.$ac_ext >&5
  6728. rm -rf conftest*
  6729. eval "ac_cv_header_$ac_safe=no"
  6730. fi
  6731. rm -f conftest*
  6732. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6733. echo "$ac_t""yes" 1>&6
  6734. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6735. cat >> confdefs.h <<EOF
  6736. #define $ac_tr_hdr 1
  6737. EOF
  6738. else
  6739. echo "$ac_t""no" 1>&6
  6740. { echo "configure: error: *** Unable to locate SQLite includes." 1>&2; exit 1; }
  6741. fi
  6742. done
  6743. CPPFLAGS=$ac_save_cppflags
  6744. cat >> confdefs.h <<\EOF
  6745. #define HAVE_SQLITE 1
  6746. EOF
  6747. fi # $USE_SQLITE
  6748. if test -n "$USE_SQLITE"; then
  6749. # With SQLite library directory
  6750. echo $ac_n "checking for location of SQLite library""... $ac_c" 1>&6
  6751. echo "configure:8356: checking for location of SQLite library" >&5
  6752. case "$with_sqlite_libs" in
  6753. y | ye | yes | n | no)
  6754. { echo "configure: error: *** You must supply a directory to --with-sqlite-libs." 1>&2; exit 1; }
  6755. ;;
  6756. esac
  6757. echo "$ac_t""$with_sqlite_libs" 1>&6
  6758. if test -n "$with_sqlite_libs"; then
  6759. for dir in $with_sqlite_libs; do
  6760. if test -d "$dir"; then
  6761. SQLITELIBPATH="$SQLITELIBPATH -L$dir"
  6762. else
  6763. { echo "configure: error: *** SQLite library directory $dir does not exist." 1>&2; exit 1; }
  6764. fi
  6765. done
  6766. fi
  6767. ac_save_ldflags="$LDFLAGS"
  6768. LDFLAGS="$SQLITELIBPATH $LDFLAGS"
  6769. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  6770. echo "configure:8385: checking for sqlite3_open in -lsqlite3" >&5
  6771. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  6772. ac_save_LIBS="$LIBS"
  6773. LIBS="-lsqlite3 $LIBS"
  6774. cat > conftest.$ac_ext <<EOF
  6775. #line 8391 "configure"
  6776. #include "confdefs.h"
  6777. /* Override any gcc2 internal prototype to avoid an error. */
  6778. /* We use char because int might match the return type of a gcc2
  6779. builtin and then its argument prototype would still apply. */
  6780. char sqlite3_open();
  6781. int main() {
  6782. sqlite3_open()
  6783. ; return 0; }
  6784. EOF
  6785. if { (eval echo configure:8402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6786. rm -rf conftest*
  6787. eval "ac_cv_lib_$ac_lib_var=yes"
  6788. else
  6789. echo "configure: failed program was:" >&5
  6790. cat conftest.$ac_ext >&5
  6791. rm -rf conftest*
  6792. eval "ac_cv_lib_$ac_lib_var=no"
  6793. fi
  6794. rm -f conftest*
  6795. LIBS="$ac_save_LIBS"
  6796. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6797. echo "$ac_t""yes" 1>&6
  6798. SQLITELIB="$SQLITELIB -lsqlite3 "
  6799. else
  6800. echo "$ac_t""no" 1>&6
  6801. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  6802. echo "configure:8421: checking for sqlite3_open in -lsqlite3" >&5
  6803. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  6804. ac_save_LIBS="$LIBS"
  6805. LIBS="-lsqlite3 $DLLIB $LIBS"
  6806. cat > conftest.$ac_ext <<EOF
  6807. #line 8427 "configure"
  6808. #include "confdefs.h"
  6809. /* Override any gcc2 internal prototype to avoid an error. */
  6810. /* We use char because int might match the return type of a gcc2
  6811. builtin and then its argument prototype would still apply. */
  6812. char sqlite3_open();
  6813. int main() {
  6814. sqlite3_open()
  6815. ; return 0; }
  6816. EOF
  6817. if { (eval echo configure:8438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6818. rm -rf conftest*
  6819. eval "ac_cv_lib_$ac_lib_var=yes"
  6820. else
  6821. echo "configure: failed program was:" >&5
  6822. cat conftest.$ac_ext >&5
  6823. rm -rf conftest*
  6824. eval "ac_cv_lib_$ac_lib_var=no"
  6825. fi
  6826. rm -f conftest*
  6827. LIBS="$ac_save_LIBS"
  6828. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6829. echo "$ac_t""yes" 1>&6
  6830. SQLITELIB="$SQLITELIB -lsqlite3 $DLLIB"
  6831. else
  6832. echo "$ac_t""no" 1>&6
  6833. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  6834. echo "configure:8457: checking for sqlite3_open in -lsqlite3" >&5
  6835. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  6836. ac_save_LIBS="$LIBS"
  6837. LIBS="-lsqlite3 $MATHLIB $LIBS"
  6838. cat > conftest.$ac_ext <<EOF
  6839. #line 8463 "configure"
  6840. #include "confdefs.h"
  6841. /* Override any gcc2 internal prototype to avoid an error. */
  6842. /* We use char because int might match the return type of a gcc2
  6843. builtin and then its argument prototype would still apply. */
  6844. char sqlite3_open();
  6845. int main() {
  6846. sqlite3_open()
  6847. ; return 0; }
  6848. EOF
  6849. if { (eval echo configure:8474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6850. rm -rf conftest*
  6851. eval "ac_cv_lib_$ac_lib_var=yes"
  6852. else
  6853. echo "configure: failed program was:" >&5
  6854. cat conftest.$ac_ext >&5
  6855. rm -rf conftest*
  6856. eval "ac_cv_lib_$ac_lib_var=no"
  6857. fi
  6858. rm -f conftest*
  6859. LIBS="$ac_save_LIBS"
  6860. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6861. echo "$ac_t""yes" 1>&6
  6862. SQLITELIB="$SQLITELIB -lsqlite3 $MATHLIB"
  6863. else
  6864. echo "$ac_t""no" 1>&6
  6865. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  6866. echo "configure:8493: checking for sqlite3_open in -lsqlite3" >&5
  6867. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  6868. ac_save_LIBS="$LIBS"
  6869. LIBS="-lsqlite3 $MATHLIB $DLLIB $LIBS"
  6870. cat > conftest.$ac_ext <<EOF
  6871. #line 8499 "configure"
  6872. #include "confdefs.h"
  6873. /* Override any gcc2 internal prototype to avoid an error. */
  6874. /* We use char because int might match the return type of a gcc2
  6875. builtin and then its argument prototype would still apply. */
  6876. char sqlite3_open();
  6877. int main() {
  6878. sqlite3_open()
  6879. ; return 0; }
  6880. EOF
  6881. if { (eval echo configure:8510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6882. rm -rf conftest*
  6883. eval "ac_cv_lib_$ac_lib_var=yes"
  6884. else
  6885. echo "configure: failed program was:" >&5
  6886. cat conftest.$ac_ext >&5
  6887. rm -rf conftest*
  6888. eval "ac_cv_lib_$ac_lib_var=no"
  6889. fi
  6890. rm -f conftest*
  6891. LIBS="$ac_save_LIBS"
  6892. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6893. echo "$ac_t""yes" 1>&6
  6894. SQLITELIB="$SQLITELIB -lsqlite3 $MATHLIB $DLLIB"
  6895. else
  6896. echo "$ac_t""no" 1>&6
  6897. LDFLAGS=${ac_save_ldflags}
  6898. { echo "configure: error: *** Unable to locate SQLite library." 1>&2; exit 1; }
  6899. fi
  6900. fi
  6901. fi
  6902. fi
  6903. LDFLAGS=${ac_save_ldflags}
  6904. fi # $USE_SQLITE
  6905. # Done checking SQLite
  6906. # Enable FFMPEG option
  6907. echo $ac_n "checking whether to use FFMPEG""... $ac_c" 1>&6
  6908. echo "configure:8579: checking whether to use FFMPEG" >&5
  6909. echo "$ac_t"""$with_ffmpeg"" 1>&6
  6910. case "$with_ffmpeg" in
  6911. "no") USE_FFMPEG= ;;
  6912. "yes") USE_FFMPEG="1" ;;
  6913. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6914. esac
  6915. FFMPEGINCPATH=
  6916. FFMPEGLIBPATH=
  6917. FFMPEGLIB=
  6918. if test -n "$USE_FFMPEG"; then
  6919. # With FFMPEG includes directory
  6920. echo $ac_n "checking for location of FFMPEG includes""... $ac_c" 1>&6
  6921. echo "configure:8599: checking for location of FFMPEG includes" >&5
  6922. case "$with_ffmpeg_includes" in
  6923. y | ye | yes | n | no)
  6924. { echo "configure: error: *** You must supply a directory to --with-ffmpeg-includes." 1>&2; exit 1; }
  6925. ;;
  6926. esac
  6927. echo "$ac_t""$with_ffmpeg_includes" 1>&6
  6928. if test -n "$with_ffmpeg_includes" ; then
  6929. for dir in $with_ffmpeg_includes; do
  6930. if test -d "$dir"; then
  6931. FFMPEGINCPATH="$FFMPEGINCPATH -I$dir"
  6932. else
  6933. { echo "configure: error: *** FFMPEG includes directory $dir does not exist." 1>&2; exit 1; }
  6934. fi
  6935. done
  6936. fi
  6937. ac_save_cppflags="$CPPFLAGS"
  6938. CPPFLAGS="$FFMPEGINCPATH $CPPFLAGS"
  6939. for ac_hdr in avcodec.h
  6940. do
  6941. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6942. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6943. echo "configure:8625: checking for $ac_hdr" >&5
  6944. cat > conftest.$ac_ext <<EOF
  6945. #line 8628 "configure"
  6946. #include "confdefs.h"
  6947. #include <$ac_hdr>
  6948. EOF
  6949. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6950. { (eval echo configure:8633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6951. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6952. if test -z "$ac_err"; then
  6953. rm -rf conftest*
  6954. eval "ac_cv_header_$ac_safe=yes"
  6955. else
  6956. echo "$ac_err" >&5
  6957. echo "configure: failed program was:" >&5
  6958. cat conftest.$ac_ext >&5
  6959. rm -rf conftest*
  6960. eval "ac_cv_header_$ac_safe=no"
  6961. fi
  6962. rm -f conftest*
  6963. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6964. echo "$ac_t""yes" 1>&6
  6965. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6966. cat >> confdefs.h <<EOF
  6967. #define $ac_tr_hdr 1
  6968. EOF
  6969. else
  6970. echo "$ac_t""no" 1>&6
  6971. { echo "configure: error: *** Unable to locate FFMPEG includes." 1>&2; exit 1; }
  6972. fi
  6973. done
  6974. CPPFLAGS=$ac_save_cppflags
  6975. ac_save_cppflags="$CPPFLAGS"
  6976. CPPFLAGS="$FFMPEGINCPATH $CPPFLAGS"
  6977. for ac_hdr in avformat.h
  6978. do
  6979. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6980. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6981. echo "configure:8669: checking for $ac_hdr" >&5
  6982. cat > conftest.$ac_ext <<EOF
  6983. #line 8672 "configure"
  6984. #include "confdefs.h"
  6985. #include <$ac_hdr>
  6986. EOF
  6987. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6988. { (eval echo configure:8677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6989. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6990. if test -z "$ac_err"; then
  6991. rm -rf conftest*
  6992. eval "ac_cv_header_$ac_safe=yes"
  6993. else
  6994. echo "$ac_err" >&5
  6995. echo "configure: failed program was:" >&5
  6996. cat conftest.$ac_ext >&5
  6997. rm -rf conftest*
  6998. eval "ac_cv_header_$ac_safe=no"
  6999. fi
  7000. rm -f conftest*
  7001. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7002. echo "$ac_t""yes" 1>&6
  7003. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7004. cat >> confdefs.h <<EOF
  7005. #define $ac_tr_hdr 1
  7006. EOF
  7007. else
  7008. echo "$ac_t""no" 1>&6
  7009. { echo "configure: error: *** Unable to locate FFMPEG includes." 1>&2; exit 1; }
  7010. fi
  7011. done
  7012. CPPFLAGS=$ac_save_cppflags
  7013. ac_save_cppflags="$CPPFLAGS"
  7014. CPPFLAGS="$FFMPEGINCPATH $CPPFLAGS"
  7015. for ac_hdr in swscale.h
  7016. do
  7017. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7018. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7019. echo "configure:8713: checking for $ac_hdr" >&5
  7020. cat > conftest.$ac_ext <<EOF
  7021. #line 8716 "configure"
  7022. #include "confdefs.h"
  7023. #include <$ac_hdr>
  7024. EOF
  7025. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7026. { (eval echo configure:8721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7027. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7028. if test -z "$ac_err"; then
  7029. rm -rf conftest*
  7030. eval "ac_cv_header_$ac_safe=yes"
  7031. else
  7032. echo "$ac_err" >&5
  7033. echo "configure: failed program was:" >&5
  7034. cat conftest.$ac_ext >&5
  7035. rm -rf conftest*
  7036. eval "ac_cv_header_$ac_safe=no"
  7037. fi
  7038. rm -f conftest*
  7039. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7040. echo "$ac_t""yes" 1>&6
  7041. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7042. cat >> confdefs.h <<EOF
  7043. #define $ac_tr_hdr 1
  7044. EOF
  7045. else
  7046. echo "$ac_t""no" 1>&6
  7047. { echo "configure: error: *** Unable to locate FFMPEG includes." 1>&2; exit 1; }
  7048. fi
  7049. done
  7050. CPPFLAGS=$ac_save_cppflags
  7051. cat >> confdefs.h <<\EOF
  7052. #define HAVE_FFMPEG 1
  7053. EOF
  7054. fi # $USE_FFMPEG
  7055. if test -n "$USE_FFMPEG"; then
  7056. # With FFMPEG library directory
  7057. echo $ac_n "checking for location of FFMPEG library""... $ac_c" 1>&6
  7058. echo "configure:8764: checking for location of FFMPEG library" >&5
  7059. case "$with_ffmpeg_libs" in
  7060. y | ye | yes | n | no)
  7061. { echo "configure: error: *** You must supply a directory to --with-ffmpeg-libs." 1>&2; exit 1; }
  7062. ;;
  7063. esac
  7064. echo "$ac_t""$with_ffmpeg_libs" 1>&6
  7065. if test -n "$with_ffmpeg_libs"; then
  7066. for dir in $with_ffmpeg_libs; do
  7067. if test -d "$dir"; then
  7068. FFMPEGLIBPATH="$FFMPEGLIBPATH -L$dir"
  7069. else
  7070. { echo "configure: error: *** FFMPEG library directory $dir does not exist." 1>&2; exit 1; }
  7071. fi
  7072. done
  7073. fi
  7074. ac_save_ldflags="$LDFLAGS"
  7075. LDFLAGS="$FFMPEGLIBPATH $LDFLAGS"
  7076. echo $ac_n "checking for av_free in -lavutil""... $ac_c" 1>&6
  7077. echo "configure:8791: checking for av_free in -lavutil" >&5
  7078. ac_lib_var=`echo avutil'_'av_free | sed 'y%./+-%__p_%'`
  7079. ac_save_LIBS="$LIBS"
  7080. LIBS="-lavutil $LIBS"
  7081. cat > conftest.$ac_ext <<EOF
  7082. #line 8797 "configure"
  7083. #include "confdefs.h"
  7084. /* Override any gcc2 internal prototype to avoid an error. */
  7085. /* We use char because int might match the return type of a gcc2
  7086. builtin and then its argument prototype would still apply. */
  7087. char av_free();
  7088. int main() {
  7089. av_free()
  7090. ; return 0; }
  7091. EOF
  7092. if { (eval echo configure:8808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7093. rm -rf conftest*
  7094. eval "ac_cv_lib_$ac_lib_var=yes"
  7095. else
  7096. echo "configure: failed program was:" >&5
  7097. cat conftest.$ac_ext >&5
  7098. rm -rf conftest*
  7099. eval "ac_cv_lib_$ac_lib_var=no"
  7100. fi
  7101. rm -f conftest*
  7102. LIBS="$ac_save_LIBS"
  7103. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7104. echo "$ac_t""yes" 1>&6
  7105. FFMPEGLIB="$FFMPEGLIB -lavutil "
  7106. else
  7107. echo "$ac_t""no" 1>&6
  7108. echo $ac_n "checking for av_free in -lavutil""... $ac_c" 1>&6
  7109. echo "configure:8827: checking for av_free in -lavutil" >&5
  7110. ac_lib_var=`echo avutil'_'av_free | sed 'y%./+-%__p_%'`
  7111. ac_save_LIBS="$LIBS"
  7112. LIBS="-lavutil $MATHLIB $LIBS"
  7113. cat > conftest.$ac_ext <<EOF
  7114. #line 8833 "configure"
  7115. #include "confdefs.h"
  7116. /* Override any gcc2 internal prototype to avoid an error. */
  7117. /* We use char because int might match the return type of a gcc2
  7118. builtin and then its argument prototype would still apply. */
  7119. char av_free();
  7120. int main() {
  7121. av_free()
  7122. ; return 0; }
  7123. EOF
  7124. if { (eval echo configure:8844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7125. rm -rf conftest*
  7126. eval "ac_cv_lib_$ac_lib_var=yes"
  7127. else
  7128. echo "configure: failed program was:" >&5
  7129. cat conftest.$ac_ext >&5
  7130. rm -rf conftest*
  7131. eval "ac_cv_lib_$ac_lib_var=no"
  7132. fi
  7133. rm -f conftest*
  7134. LIBS="$ac_save_LIBS"
  7135. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7136. echo "$ac_t""yes" 1>&6
  7137. FFMPEGLIB="$FFMPEGLIB -lavutil $MATHLIB"
  7138. else
  7139. echo "$ac_t""no" 1>&6
  7140. LDFLAGS=${ac_save_ldflags}
  7141. { echo "configure: error: *** Unable to locate FFMPEG library." 1>&2; exit 1; }
  7142. fi
  7143. fi
  7144. LDFLAGS=${ac_save_ldflags}
  7145. ac_save_ldflags="$LDFLAGS"
  7146. LDFLAGS="$FFMPEGLIBPATH $LDFLAGS"
  7147. echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
  7148. echo "configure:8889: checking for avcodec_init in -lavcodec" >&5
  7149. ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
  7150. ac_save_LIBS="$LIBS"
  7151. LIBS="-lavcodec $FFMPEGLIB $LIBS"
  7152. cat > conftest.$ac_ext <<EOF
  7153. #line 8895 "configure"
  7154. #include "confdefs.h"
  7155. /* Override any gcc2 internal prototype to avoid an error. */
  7156. /* We use char because int might match the return type of a gcc2
  7157. builtin and then its argument prototype would still apply. */
  7158. char avcodec_init();
  7159. int main() {
  7160. avcodec_init()
  7161. ; return 0; }
  7162. EOF
  7163. if { (eval echo configure:8906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7164. rm -rf conftest*
  7165. eval "ac_cv_lib_$ac_lib_var=yes"
  7166. else
  7167. echo "configure: failed program was:" >&5
  7168. cat conftest.$ac_ext >&5
  7169. rm -rf conftest*
  7170. eval "ac_cv_lib_$ac_lib_var=no"
  7171. fi
  7172. rm -f conftest*
  7173. LIBS="$ac_save_LIBS"
  7174. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7175. echo "$ac_t""yes" 1>&6
  7176. FFMPEGLIB="$FFMPEGLIB -lavcodec "
  7177. else
  7178. echo "$ac_t""no" 1>&6
  7179. echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
  7180. echo "configure:8925: checking for avcodec_init in -lavcodec" >&5
  7181. ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
  7182. ac_save_LIBS="$LIBS"
  7183. LIBS="-lavcodec $FFMPEGLIB $MATHLIB $LIBS"
  7184. cat > conftest.$ac_ext <<EOF
  7185. #line 8931 "configure"
  7186. #include "confdefs.h"
  7187. /* Override any gcc2 internal prototype to avoid an error. */
  7188. /* We use char because int might match the return type of a gcc2
  7189. builtin and then its argument prototype would still apply. */
  7190. char avcodec_init();
  7191. int main() {
  7192. avcodec_init()
  7193. ; return 0; }
  7194. EOF
  7195. if { (eval echo configure:8942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7196. rm -rf conftest*
  7197. eval "ac_cv_lib_$ac_lib_var=yes"
  7198. else
  7199. echo "configure: failed program was:" >&5
  7200. cat conftest.$ac_ext >&5
  7201. rm -rf conftest*
  7202. eval "ac_cv_lib_$ac_lib_var=no"
  7203. fi
  7204. rm -f conftest*
  7205. LIBS="$ac_save_LIBS"
  7206. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7207. echo "$ac_t""yes" 1>&6
  7208. FFMPEGLIB="$FFMPEGLIB -lavcodec $MATHLIB"
  7209. else
  7210. echo "$ac_t""no" 1>&6
  7211. LDFLAGS=${ac_save_ldflags}
  7212. { echo "configure: error: *** Unable to locate FFMPEG library." 1>&2; exit 1; }
  7213. fi
  7214. fi
  7215. LDFLAGS=${ac_save_ldflags}
  7216. ac_save_ldflags="$LDFLAGS"
  7217. LDFLAGS="$FFMPEGLIBPATH $LDFLAGS"
  7218. echo $ac_n "checking for av_set_parameters in -lavformat""... $ac_c" 1>&6
  7219. echo "configure:8987: checking for av_set_parameters in -lavformat" >&5
  7220. ac_lib_var=`echo avformat'_'av_set_parameters | sed 'y%./+-%__p_%'`
  7221. ac_save_LIBS="$LIBS"
  7222. LIBS="-lavformat $FFMPEGLIB $LIBS"
  7223. cat > conftest.$ac_ext <<EOF
  7224. #line 8993 "configure"
  7225. #include "confdefs.h"
  7226. /* Override any gcc2 internal prototype to avoid an error. */
  7227. /* We use char because int might match the return type of a gcc2
  7228. builtin and then its argument prototype would still apply. */
  7229. char av_set_parameters();
  7230. int main() {
  7231. av_set_parameters()
  7232. ; return 0; }
  7233. EOF
  7234. if { (eval echo configure:9004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7235. rm -rf conftest*
  7236. eval "ac_cv_lib_$ac_lib_var=yes"
  7237. else
  7238. echo "configure: failed program was:" >&5
  7239. cat conftest.$ac_ext >&5
  7240. rm -rf conftest*
  7241. eval "ac_cv_lib_$ac_lib_var=no"
  7242. fi
  7243. rm -f conftest*
  7244. LIBS="$ac_save_LIBS"
  7245. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7246. echo "$ac_t""yes" 1>&6
  7247. FFMPEGLIB="$FFMPEGLIB -lavformat "
  7248. else
  7249. echo "$ac_t""no" 1>&6
  7250. echo $ac_n "checking for av_set_parameters in -lavformat""... $ac_c" 1>&6
  7251. echo "configure:9023: checking for av_set_parameters in -lavformat" >&5
  7252. ac_lib_var=`echo avformat'_'av_set_parameters | sed 'y%./+-%__p_%'`
  7253. ac_save_LIBS="$LIBS"
  7254. LIBS="-lavformat $FFMPEGLIB $MATHLIB $LIBS"
  7255. cat > conftest.$ac_ext <<EOF
  7256. #line 9029 "configure"
  7257. #include "confdefs.h"
  7258. /* Override any gcc2 internal prototype to avoid an error. */
  7259. /* We use char because int might match the return type of a gcc2
  7260. builtin and then its argument prototype would still apply. */
  7261. char av_set_parameters();
  7262. int main() {
  7263. av_set_parameters()
  7264. ; return 0; }
  7265. EOF
  7266. if { (eval echo configure:9040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7267. rm -rf conftest*
  7268. eval "ac_cv_lib_$ac_lib_var=yes"
  7269. else
  7270. echo "configure: failed program was:" >&5
  7271. cat conftest.$ac_ext >&5
  7272. rm -rf conftest*
  7273. eval "ac_cv_lib_$ac_lib_var=no"
  7274. fi
  7275. rm -f conftest*
  7276. LIBS="$ac_save_LIBS"
  7277. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7278. echo "$ac_t""yes" 1>&6
  7279. FFMPEGLIB="$FFMPEGLIB -lavformat $MATHLIB"
  7280. else
  7281. echo "$ac_t""no" 1>&6
  7282. LDFLAGS=${ac_save_ldflags}
  7283. { echo "configure: error: *** Unable to locate FFMPEG library." 1>&2; exit 1; }
  7284. fi
  7285. fi
  7286. LDFLAGS=${ac_save_ldflags}
  7287. fi # $USE_FFMPEG
  7288. # Done checking FFMPEG
  7289. # Enable OpenGL option
  7290. OPENGLINC=
  7291. OPENGLLIB=
  7292. OPENGLULIB=
  7293. USE_OPENGL=
  7294. OPENGL_X11=
  7295. OPENGL_AQUA=
  7296. OPENGL_WINDOWS=
  7297. echo $ac_n "checking whether to use OpenGL""... $ac_c" 1>&6
  7298. echo "configure:9099: checking whether to use OpenGL" >&5
  7299. echo "$ac_t"""$with_opengl"" 1>&6
  7300. case "$with_opengl" in
  7301. n|no)
  7302. OPENGL_TYPE=none
  7303. ;;
  7304. y|yes|x|x11|glx)
  7305. OPENGL_TYPE=X11
  7306. USE_OPENGL=1
  7307. OPENGL_X11=1
  7308. ;;
  7309. aqua|mac|osx|macosx|agl)
  7310. OPENGL_TYPE=Aqua
  7311. USE_OPENGL=1
  7312. OPENGL_AQUA=1
  7313. ;;
  7314. win|windows|mswin|wgl)
  7315. OPENGL_TYPE=Windows
  7316. USE_OPENGL=1
  7317. OPENGL_WINDOWS=1
  7318. ;;
  7319. *)
  7320. { echo "configure: error: *** Valid arguments for --with-opengl= are yes,no,x11,aqua,windows." 1>&2; exit 1; }
  7321. ;;
  7322. esac
  7323. if test -n "$USE_OPENGL" ; then
  7324. if test "$OPENGL_X11" = 1 ; then
  7325. # With OpenGL includes directory
  7326. echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
  7327. echo "configure:9133: checking for location of OpenGL includes" >&5
  7328. case "$with_opengl_includes" in
  7329. y | ye | yes | n | no)
  7330. { echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
  7331. ;;
  7332. esac
  7333. echo "$ac_t""$with_opengl_includes" 1>&6
  7334. if test -n "$with_opengl_includes" ; then
  7335. for dir in $with_opengl_includes; do
  7336. if test -d "$dir"; then
  7337. OPENGLINC="$OPENGLINC -I$dir"
  7338. else
  7339. { echo "configure: error: *** OpenGL includes directory $dir does not exist." 1>&2; exit 1; }
  7340. fi
  7341. done
  7342. fi
  7343. ac_save_cppflags="$CPPFLAGS"
  7344. CPPFLAGS="$OPENGLINC $X_CFLAGS $CPPFLAGS"
  7345. for ac_hdr in GL/gl.h GL/glu.h
  7346. do
  7347. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7348. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7349. echo "configure:9159: checking for $ac_hdr" >&5
  7350. cat > conftest.$ac_ext <<EOF
  7351. #line 9162 "configure"
  7352. #include "confdefs.h"
  7353. #include <$ac_hdr>
  7354. EOF
  7355. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7356. { (eval echo configure:9167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7357. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7358. if test -z "$ac_err"; then
  7359. rm -rf conftest*
  7360. eval "ac_cv_header_$ac_safe=yes"
  7361. else
  7362. echo "$ac_err" >&5
  7363. echo "configure: failed program was:" >&5
  7364. cat conftest.$ac_ext >&5
  7365. rm -rf conftest*
  7366. eval "ac_cv_header_$ac_safe=no"
  7367. fi
  7368. rm -f conftest*
  7369. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7370. echo "$ac_t""yes" 1>&6
  7371. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7372. cat >> confdefs.h <<EOF
  7373. #define $ac_tr_hdr 1
  7374. EOF
  7375. else
  7376. echo "$ac_t""no" 1>&6
  7377. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  7378. fi
  7379. done
  7380. CPPFLAGS=$ac_save_cppflags
  7381. # With OpenGL library directory
  7382. echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
  7383. echo "configure:9201: checking for location of OpenGL library" >&5
  7384. case "$with_opengl_libs" in
  7385. y | ye | yes | n | no)
  7386. { echo "configure: error: *** You must supply a directory to --with-opengl-libs." 1>&2; exit 1; }
  7387. ;;
  7388. esac
  7389. echo "$ac_t""$with_opengl_libs" 1>&6
  7390. if test -n "$with_opengl_libs"; then
  7391. for dir in $with_opengl_libs; do
  7392. if test -d "$dir"; then
  7393. OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
  7394. else
  7395. { echo "configure: error: *** OpenGL library directory $dir does not exist." 1>&2; exit 1; }
  7396. fi
  7397. done
  7398. fi
  7399. ac_save_ldflags="$LDFLAGS"
  7400. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7401. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7402. echo "configure:9230: checking for glBegin in -lGL" >&5
  7403. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7404. ac_save_LIBS="$LIBS"
  7405. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
  7406. cat > conftest.$ac_ext <<EOF
  7407. #line 9236 "configure"
  7408. #include "confdefs.h"
  7409. /* Override any gcc2 internal prototype to avoid an error. */
  7410. /* We use char because int might match the return type of a gcc2
  7411. builtin and then its argument prototype would still apply. */
  7412. char glBegin();
  7413. int main() {
  7414. glBegin()
  7415. ; return 0; }
  7416. EOF
  7417. if { (eval echo configure:9247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7418. rm -rf conftest*
  7419. eval "ac_cv_lib_$ac_lib_var=yes"
  7420. else
  7421. echo "configure: failed program was:" >&5
  7422. cat conftest.$ac_ext >&5
  7423. rm -rf conftest*
  7424. eval "ac_cv_lib_$ac_lib_var=no"
  7425. fi
  7426. rm -f conftest*
  7427. LIBS="$ac_save_LIBS"
  7428. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7429. echo "$ac_t""yes" 1>&6
  7430. OPENGLLIB="$OPENGLLIB -lGL "
  7431. else
  7432. echo "$ac_t""no" 1>&6
  7433. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7434. echo "configure:9266: checking for glBegin in -lGL" >&5
  7435. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7436. ac_save_LIBS="$LIBS"
  7437. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lXext $LIBS"
  7438. cat > conftest.$ac_ext <<EOF
  7439. #line 9272 "configure"
  7440. #include "confdefs.h"
  7441. /* Override any gcc2 internal prototype to avoid an error. */
  7442. /* We use char because int might match the return type of a gcc2
  7443. builtin and then its argument prototype would still apply. */
  7444. char glBegin();
  7445. int main() {
  7446. glBegin()
  7447. ; return 0; }
  7448. EOF
  7449. if { (eval echo configure:9283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7450. rm -rf conftest*
  7451. eval "ac_cv_lib_$ac_lib_var=yes"
  7452. else
  7453. echo "configure: failed program was:" >&5
  7454. cat conftest.$ac_ext >&5
  7455. rm -rf conftest*
  7456. eval "ac_cv_lib_$ac_lib_var=no"
  7457. fi
  7458. rm -f conftest*
  7459. LIBS="$ac_save_LIBS"
  7460. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7461. echo "$ac_t""yes" 1>&6
  7462. OPENGLLIB="$OPENGLLIB -lGL -lXext"
  7463. else
  7464. echo "$ac_t""no" 1>&6
  7465. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7466. echo "configure:9302: checking for glBegin in -lGL" >&5
  7467. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7468. ac_save_LIBS="$LIBS"
  7469. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread $LIBS"
  7470. cat > conftest.$ac_ext <<EOF
  7471. #line 9308 "configure"
  7472. #include "confdefs.h"
  7473. /* Override any gcc2 internal prototype to avoid an error. */
  7474. /* We use char because int might match the return type of a gcc2
  7475. builtin and then its argument prototype would still apply. */
  7476. char glBegin();
  7477. int main() {
  7478. glBegin()
  7479. ; return 0; }
  7480. EOF
  7481. if { (eval echo configure:9319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7482. rm -rf conftest*
  7483. eval "ac_cv_lib_$ac_lib_var=yes"
  7484. else
  7485. echo "configure: failed program was:" >&5
  7486. cat conftest.$ac_ext >&5
  7487. rm -rf conftest*
  7488. eval "ac_cv_lib_$ac_lib_var=no"
  7489. fi
  7490. rm -f conftest*
  7491. LIBS="$ac_save_LIBS"
  7492. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7493. echo "$ac_t""yes" 1>&6
  7494. OPENGLLIB="$OPENGLLIB -lGL -lpthread"
  7495. else
  7496. echo "$ac_t""no" 1>&6
  7497. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7498. echo "configure:9338: checking for glBegin in -lGL" >&5
  7499. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7500. ac_save_LIBS="$LIBS"
  7501. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread -lXext $LIBS"
  7502. cat > conftest.$ac_ext <<EOF
  7503. #line 9344 "configure"
  7504. #include "confdefs.h"
  7505. /* Override any gcc2 internal prototype to avoid an error. */
  7506. /* We use char because int might match the return type of a gcc2
  7507. builtin and then its argument prototype would still apply. */
  7508. char glBegin();
  7509. int main() {
  7510. glBegin()
  7511. ; return 0; }
  7512. EOF
  7513. if { (eval echo configure:9355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7514. rm -rf conftest*
  7515. eval "ac_cv_lib_$ac_lib_var=yes"
  7516. else
  7517. echo "configure: failed program was:" >&5
  7518. cat conftest.$ac_ext >&5
  7519. rm -rf conftest*
  7520. eval "ac_cv_lib_$ac_lib_var=no"
  7521. fi
  7522. rm -f conftest*
  7523. LIBS="$ac_save_LIBS"
  7524. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7525. echo "$ac_t""yes" 1>&6
  7526. OPENGLLIB="$OPENGLLIB -lGL -lpthread -lXext"
  7527. else
  7528. echo "$ac_t""no" 1>&6
  7529. LDFLAGS=${ac_save_ldflags}
  7530. { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
  7531. fi
  7532. fi
  7533. fi
  7534. fi
  7535. LDFLAGS=${ac_save_ldflags}
  7536. ac_save_ldflags="$LDFLAGS"
  7537. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7538. echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
  7539. echo "configure:9417: checking for gluBeginCurve in -lGLU" >&5
  7540. ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
  7541. ac_save_LIBS="$LIBS"
  7542. LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
  7543. cat > conftest.$ac_ext <<EOF
  7544. #line 9423 "configure"
  7545. #include "confdefs.h"
  7546. /* Override any gcc2 internal prototype to avoid an error. */
  7547. /* We use char because int might match the return type of a gcc2
  7548. builtin and then its argument prototype would still apply. */
  7549. char gluBeginCurve();
  7550. int main() {
  7551. gluBeginCurve()
  7552. ; return 0; }
  7553. EOF
  7554. if { (eval echo configure:9434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7555. rm -rf conftest*
  7556. eval "ac_cv_lib_$ac_lib_var=yes"
  7557. else
  7558. echo "configure: failed program was:" >&5
  7559. cat conftest.$ac_ext >&5
  7560. rm -rf conftest*
  7561. eval "ac_cv_lib_$ac_lib_var=no"
  7562. fi
  7563. rm -f conftest*
  7564. LIBS="$ac_save_LIBS"
  7565. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7566. echo "$ac_t""yes" 1>&6
  7567. OPENGLULIB="$OPENGLULIB -lGLU "
  7568. else
  7569. echo "$ac_t""no" 1>&6
  7570. echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
  7571. echo "configure:9453: checking for gluBeginCurve in -lGLU" >&5
  7572. ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
  7573. ac_save_LIBS="$LIBS"
  7574. LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lstdc++ $LIBS"
  7575. cat > conftest.$ac_ext <<EOF
  7576. #line 9459 "configure"
  7577. #include "confdefs.h"
  7578. /* Override any gcc2 internal prototype to avoid an error. */
  7579. /* We use char because int might match the return type of a gcc2
  7580. builtin and then its argument prototype would still apply. */
  7581. char gluBeginCurve();
  7582. int main() {
  7583. gluBeginCurve()
  7584. ; return 0; }
  7585. EOF
  7586. if { (eval echo configure:9470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7587. rm -rf conftest*
  7588. eval "ac_cv_lib_$ac_lib_var=yes"
  7589. else
  7590. echo "configure: failed program was:" >&5
  7591. cat conftest.$ac_ext >&5
  7592. rm -rf conftest*
  7593. eval "ac_cv_lib_$ac_lib_var=no"
  7594. fi
  7595. rm -f conftest*
  7596. LIBS="$ac_save_LIBS"
  7597. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7598. echo "$ac_t""yes" 1>&6
  7599. OPENGLULIB="$OPENGLULIB -lGLU -lstdc++"
  7600. else
  7601. echo "$ac_t""no" 1>&6
  7602. LDFLAGS=${ac_save_ldflags}
  7603. { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
  7604. fi
  7605. fi
  7606. LDFLAGS=${ac_save_ldflags}
  7607. OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
  7608. OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
  7609. ac_save_libs="$LIBS"
  7610. ac_save_ldflags="$LDFLAGS"
  7611. LIBS=" $OPENGLLIB $LIBS"
  7612. LDFLAGS=" $LDFLAGS"
  7613. echo $ac_n "checking for glXCreatePbuffer""... $ac_c" 1>&6
  7614. echo "configure:9517: checking for glXCreatePbuffer" >&5
  7615. cat > conftest.$ac_ext <<EOF
  7616. #line 9520 "configure"
  7617. #include "confdefs.h"
  7618. /* System header to define __stub macros and hopefully few prototypes,
  7619. which can conflict with char glXCreatePbuffer(); below. */
  7620. #include <assert.h>
  7621. /* Override any gcc2 internal prototype to avoid an error. */
  7622. /* We use char because int might match the return type of a gcc2
  7623. builtin and then its argument prototype would still apply. */
  7624. char glXCreatePbuffer();
  7625. int main() {
  7626. /* The GNU C library defines this for functions which it implements
  7627. to always fail with ENOSYS. Some functions are actually named
  7628. something starting with __ and the normal name is an alias. */
  7629. #if defined (__stub_glXCreatePbuffer) || defined (__stub___glXCreatePbuffer)
  7630. choke me
  7631. #else
  7632. glXCreatePbuffer();
  7633. #endif
  7634. ; return 0; }
  7635. EOF
  7636. if { (eval echo configure:9543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7637. rm -rf conftest*
  7638. eval "ac_cv_func_glXCreatePbuffer=yes"
  7639. else
  7640. echo "configure: failed program was:" >&5
  7641. cat conftest.$ac_ext >&5
  7642. rm -rf conftest*
  7643. eval "ac_cv_func_glXCreatePbuffer=no"
  7644. fi
  7645. rm -f conftest*
  7646. if eval "test \"`echo '$ac_cv_func_'glXCreatePbuffer`\" = yes"; then
  7647. echo "$ac_t""yes" 1>&6
  7648. cat >> confdefs.h <<\EOF
  7649. #define HAVE_PBUFFERS 1
  7650. EOF
  7651. else
  7652. echo "$ac_t""no" 1>&6
  7653. { echo "configure: error: *** Unable to locate glXCreatePbuffer." 1>&2; exit 1; }
  7654. fi
  7655. LIBS=${ac_save_libs}
  7656. LDFLAGS=${ac_save_ldflags}
  7657. ac_save_libs="$LIBS"
  7658. ac_save_ldflags="$LDFLAGS"
  7659. LIBS=" $OPENGLLIB $LIBS"
  7660. LDFLAGS=" $LDFLAGS"
  7661. echo $ac_n "checking for glXCreateGLXPixmap""... $ac_c" 1>&6
  7662. echo "configure:9580: checking for glXCreateGLXPixmap" >&5
  7663. cat > conftest.$ac_ext <<EOF
  7664. #line 9583 "configure"
  7665. #include "confdefs.h"
  7666. /* System header to define __stub macros and hopefully few prototypes,
  7667. which can conflict with char glXCreateGLXPixmap(); below. */
  7668. #include <assert.h>
  7669. /* Override any gcc2 internal prototype to avoid an error. */
  7670. /* We use char because int might match the return type of a gcc2
  7671. builtin and then its argument prototype would still apply. */
  7672. char glXCreateGLXPixmap();
  7673. int main() {
  7674. /* The GNU C library defines this for functions which it implements
  7675. to always fail with ENOSYS. Some functions are actually named
  7676. something starting with __ and the normal name is an alias. */
  7677. #if defined (__stub_glXCreateGLXPixmap) || defined (__stub___glXCreateGLXPixmap)
  7678. choke me
  7679. #else
  7680. glXCreateGLXPixmap();
  7681. #endif
  7682. ; return 0; }
  7683. EOF
  7684. if { (eval echo configure:9606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7685. rm -rf conftest*
  7686. eval "ac_cv_func_glXCreateGLXPixmap=yes"
  7687. else
  7688. echo "configure: failed program was:" >&5
  7689. cat conftest.$ac_ext >&5
  7690. rm -rf conftest*
  7691. eval "ac_cv_func_glXCreateGLXPixmap=no"
  7692. fi
  7693. rm -f conftest*
  7694. if eval "test \"`echo '$ac_cv_func_'glXCreateGLXPixmap`\" = yes"; then
  7695. echo "$ac_t""yes" 1>&6
  7696. cat >> confdefs.h <<\EOF
  7697. #define HAVE_PIXMAPS 1
  7698. EOF
  7699. else
  7700. echo "$ac_t""no" 1>&6
  7701. { echo "configure: error: *** Unable to locate glXCreateGLXPixmap." 1>&2; exit 1; }
  7702. fi
  7703. LIBS=${ac_save_libs}
  7704. LDFLAGS=${ac_save_ldflags}
  7705. cat >> confdefs.h <<\EOF
  7706. #define OPENGL_X11 1
  7707. EOF
  7708. fi # $OPENGL_X11
  7709. if test "$OPENGL_AQUA" = 1 ; then
  7710. echo $ac_n "checking for location of OpenGL framework""... $ac_c" 1>&6
  7711. echo "configure:9649: checking for location of OpenGL framework" >&5
  7712. case "$with_opengl_framework" in
  7713. y | ye | yes | n | no)
  7714. { echo "configure: error: *** You must supply a directory to --with-opengl-framework." 1>&2; exit 1; }
  7715. ;;
  7716. esac
  7717. echo "$ac_t""$with_opengl_framework" 1>&6
  7718. if test -n "$with_opengl_framework"; then
  7719. if test -d $with_opengl_framework; then
  7720. OPENGLPATH="$OPENGLPATH -F$with_opengl_framework"
  7721. else
  7722. { echo "configure: error: *** OpenGL framework directory $dir does not exist." 1>&2; exit 1; }
  7723. fi
  7724. fi
  7725. ac_save_cppflags="$CPPFLAGS"
  7726. CPPFLAGS="$OPENGLPATH $CPPFLAGS"
  7727. for ac_hdr in OpenGL/gl.h OpenGL/glu.h
  7728. do
  7729. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7730. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7731. echo "configure:9673: checking for $ac_hdr" >&5
  7732. cat > conftest.$ac_ext <<EOF
  7733. #line 9676 "configure"
  7734. #include "confdefs.h"
  7735. #include <$ac_hdr>
  7736. EOF
  7737. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7738. { (eval echo configure:9681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7739. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7740. if test -z "$ac_err"; then
  7741. rm -rf conftest*
  7742. eval "ac_cv_header_$ac_safe=yes"
  7743. else
  7744. echo "$ac_err" >&5
  7745. echo "configure: failed program was:" >&5
  7746. cat conftest.$ac_ext >&5
  7747. rm -rf conftest*
  7748. eval "ac_cv_header_$ac_safe=no"
  7749. fi
  7750. rm -f conftest*
  7751. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7752. echo "$ac_t""yes" 1>&6
  7753. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7754. cat >> confdefs.h <<EOF
  7755. #define $ac_tr_hdr 1
  7756. EOF
  7757. else
  7758. echo "$ac_t""no" 1>&6
  7759. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  7760. fi
  7761. done
  7762. CPPFLAGS=$ac_save_cppflags
  7763. ac_save_libs="$LIBS"
  7764. ac_save_ldflags="$LDFLAGS"
  7765. LIBS="-framework OpenGL -framework AGL -framework ApplicationServices $LIBS"
  7766. LDFLAGS="$OPENGLPATH $LDFLAGS"
  7767. echo $ac_n "checking for glBegin""... $ac_c" 1>&6
  7768. echo "configure:9717: checking for glBegin" >&5
  7769. cat > conftest.$ac_ext <<EOF
  7770. #line 9720 "configure"
  7771. #include "confdefs.h"
  7772. /* System header to define __stub macros and hopefully few prototypes,
  7773. which can conflict with char glBegin(); below. */
  7774. #include <assert.h>
  7775. /* Override any gcc2 internal prototype to avoid an error. */
  7776. /* We use char because int might match the return type of a gcc2
  7777. builtin and then its argument prototype would still apply. */
  7778. char glBegin();
  7779. int main() {
  7780. /* The GNU C library defines this for functions which it implements
  7781. to always fail with ENOSYS. Some functions are actually named
  7782. something starting with __ and the normal name is an alias. */
  7783. #if defined (__stub_glBegin) || defined (__stub___glBegin)
  7784. choke me
  7785. #else
  7786. glBegin();
  7787. #endif
  7788. ; return 0; }
  7789. EOF
  7790. if { (eval echo configure:9743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7791. rm -rf conftest*
  7792. eval "ac_cv_func_glBegin=yes"
  7793. else
  7794. echo "configure: failed program was:" >&5
  7795. cat conftest.$ac_ext >&5
  7796. rm -rf conftest*
  7797. eval "ac_cv_func_glBegin=no"
  7798. fi
  7799. rm -f conftest*
  7800. if eval "test \"`echo '$ac_cv_func_'glBegin`\" = yes"; then
  7801. echo "$ac_t""yes" 1>&6
  7802. OPENGLLIB="$OPENGLLIB -framework OpenGL -framework AGL -framework ApplicationServices"
  7803. else
  7804. echo "$ac_t""no" 1>&6
  7805. { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
  7806. fi
  7807. LIBS=${ac_save_libs}
  7808. LDFLAGS=${ac_save_ldflags}
  7809. ac_save_libs="$LIBS"
  7810. ac_save_ldflags="$LDFLAGS"
  7811. LIBS=" $OPENGLLIB $LIBS"
  7812. LDFLAGS="$OPENGLPATH $LDFLAGS"
  7813. echo $ac_n "checking for gluBeginCurve""... $ac_c" 1>&6
  7814. echo "configure:9780: checking for gluBeginCurve" >&5
  7815. cat > conftest.$ac_ext <<EOF
  7816. #line 9783 "configure"
  7817. #include "confdefs.h"
  7818. /* System header to define __stub macros and hopefully few prototypes,
  7819. which can conflict with char gluBeginCurve(); below. */
  7820. #include <assert.h>
  7821. /* Override any gcc2 internal prototype to avoid an error. */
  7822. /* We use char because int might match the return type of a gcc2
  7823. builtin and then its argument prototype would still apply. */
  7824. char gluBeginCurve();
  7825. int main() {
  7826. /* The GNU C library defines this for functions which it implements
  7827. to always fail with ENOSYS. Some functions are actually named
  7828. something starting with __ and the normal name is an alias. */
  7829. #if defined (__stub_gluBeginCurve) || defined (__stub___gluBeginCurve)
  7830. choke me
  7831. #else
  7832. gluBeginCurve();
  7833. #endif
  7834. ; return 0; }
  7835. EOF
  7836. if { (eval echo configure:9806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7837. rm -rf conftest*
  7838. eval "ac_cv_func_gluBeginCurve=yes"
  7839. else
  7840. echo "configure: failed program was:" >&5
  7841. cat conftest.$ac_ext >&5
  7842. rm -rf conftest*
  7843. eval "ac_cv_func_gluBeginCurve=no"
  7844. fi
  7845. rm -f conftest*
  7846. if eval "test \"`echo '$ac_cv_func_'gluBeginCurve`\" = yes"; then
  7847. echo "$ac_t""yes" 1>&6
  7848. OPENGLLIB="$OPENGLLIB "
  7849. else
  7850. echo "$ac_t""no" 1>&6
  7851. { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
  7852. fi
  7853. LIBS=${ac_save_libs}
  7854. LDFLAGS=${ac_save_ldflags}
  7855. OPENGLINC="$OPENGLPATH"
  7856. OPENGLLIBPATH="$OPENGLPATH"
  7857. cat >> confdefs.h <<\EOF
  7858. #define OPENGL_AQUA 1
  7859. EOF
  7860. fi # $OPENGL_AQUA
  7861. if test "$OPENGL_WINDOWS" = 1 ; then
  7862. # With OpenGL includes directory
  7863. echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
  7864. echo "configure:9854: checking for location of OpenGL includes" >&5
  7865. case "$with_opengl_includes" in
  7866. y | ye | yes | n | no)
  7867. { echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
  7868. ;;
  7869. esac
  7870. echo "$ac_t""$with_opengl_includes" 1>&6
  7871. if test -n "$with_opengl_includes" ; then
  7872. for dir in $with_opengl_includes; do
  7873. if test -d "$dir"; then
  7874. OPENGLINC="$OPENGLINC -I$dir"
  7875. else
  7876. { echo "configure: error: *** OpenGL includes directory $dir does not exist." 1>&2; exit 1; }
  7877. fi
  7878. done
  7879. fi
  7880. ac_save_cppflags="$CPPFLAGS"
  7881. CPPFLAGS="$OPENGLINC $CPPFLAGS"
  7882. for ac_hdr in GL/gl.h GL/glu.h
  7883. do
  7884. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7885. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7886. echo "configure:9880: checking for $ac_hdr" >&5
  7887. cat > conftest.$ac_ext <<EOF
  7888. #line 9883 "configure"
  7889. #include "confdefs.h"
  7890. #include <$ac_hdr>
  7891. EOF
  7892. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7893. { (eval echo configure:9888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7894. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7895. if test -z "$ac_err"; then
  7896. rm -rf conftest*
  7897. eval "ac_cv_header_$ac_safe=yes"
  7898. else
  7899. echo "$ac_err" >&5
  7900. echo "configure: failed program was:" >&5
  7901. cat conftest.$ac_ext >&5
  7902. rm -rf conftest*
  7903. eval "ac_cv_header_$ac_safe=no"
  7904. fi
  7905. rm -f conftest*
  7906. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7907. echo "$ac_t""yes" 1>&6
  7908. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7909. cat >> confdefs.h <<EOF
  7910. #define $ac_tr_hdr 1
  7911. EOF
  7912. else
  7913. echo "$ac_t""no" 1>&6
  7914. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  7915. fi
  7916. done
  7917. CPPFLAGS=$ac_save_cppflags
  7918. # With OpenGL library directory
  7919. echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
  7920. echo "configure:9922: checking for location of OpenGL library" >&5
  7921. case "$with_opengl_libs" in
  7922. y | ye | yes | n | no)
  7923. { echo "configure: error: *** You must supply a directory to --with-opengl-libs." 1>&2; exit 1; }
  7924. ;;
  7925. esac
  7926. echo "$ac_t""$with_opengl_libs" 1>&6
  7927. if test -n "$with_opengl_libs"; then
  7928. for dir in $with_opengl_libs; do
  7929. if test -d "$dir"; then
  7930. OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
  7931. else
  7932. { echo "configure: error: *** OpenGL library directory $dir does not exist." 1>&2; exit 1; }
  7933. fi
  7934. done
  7935. fi
  7936. ac_save_cflags="$CFLAGS"
  7937. CFLAGS="$CFLAGS $OPENGLINC"
  7938. ac_save_ldflags="$LDFLAGS"
  7939. ac_save_libs="$LIBS"
  7940. echo $ac_n "checking for OpenGL library""... $ac_c" 1>&6
  7941. echo "configure:9947: checking for OpenGL library" >&5
  7942. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7943. LIBS="-lopengl32 "
  7944. cat > conftest.$ac_ext <<EOF
  7945. #line 9951 "configure"
  7946. #include "confdefs.h"
  7947. #include <GL/gl.h>
  7948. int main() {
  7949. glEnd();
  7950. ; return 0; }
  7951. EOF
  7952. if { (eval echo configure:9958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7953. rm -rf conftest*
  7954. echo "$ac_t""found" 1>&6
  7955. OPENGLLIB="$OPENGLLIB -lopengl32 "
  7956. else
  7957. echo "configure: failed program was:" >&5
  7958. cat conftest.$ac_ext >&5
  7959. rm -rf conftest*
  7960. { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
  7961. fi
  7962. rm -f conftest*
  7963. LIBS=${ac_save_libs}
  7964. LDFLAGS=${ac_save_ldflags}
  7965. ac_save_ldflags="$LDFLAGS"
  7966. ac_save_libs="$LIBS"
  7967. echo $ac_n "checking for GLU library""... $ac_c" 1>&6
  7968. echo "configure:9982: checking for GLU library" >&5
  7969. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7970. LIBS="-lglu32 $OPENGLLIB "
  7971. cat > conftest.$ac_ext <<EOF
  7972. #line 9986 "configure"
  7973. #include "confdefs.h"
  7974. #include <GL/glu.h>
  7975. int main() {
  7976. gluNewQuadric();
  7977. ; return 0; }
  7978. EOF
  7979. if { (eval echo configure:9993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7980. rm -rf conftest*
  7981. echo "$ac_t""found" 1>&6
  7982. OPENGLULIB="$OPENGLULIB -lglu32 "
  7983. else
  7984. echo "configure: failed program was:" >&5
  7985. cat conftest.$ac_ext >&5
  7986. rm -rf conftest*
  7987. { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
  7988. fi
  7989. rm -f conftest*
  7990. LIBS=${ac_save_libs}
  7991. LDFLAGS=${ac_save_ldflags}
  7992. CFLAGS="${ac_save_cflags}"
  7993. OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
  7994. OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
  7995. cat >> confdefs.h <<\EOF
  7996. #define OPENGL_WINDOWS 1
  7997. EOF
  7998. fi # $OPENGL_WINDOWS
  7999. fi # $USE_OPENGL
  8000. # Done checking OpenGL
  8001. # Enable TCLTK option
  8002. echo $ac_n "checking whether to use Tcl/Tk""... $ac_c" 1>&6
  8003. echo "configure:10042: checking whether to use Tcl/Tk" >&5
  8004. echo "$ac_t"""$with_tcltk"" 1>&6
  8005. case "$with_tcltk" in
  8006. "no") USE_TCLTK= ;;
  8007. "yes") USE_TCLTK="1" ;;
  8008. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8009. esac
  8010. TCLINCDIR=
  8011. TCLTKLIBPATH=
  8012. TCLTKLIBS=
  8013. if test -n "$USE_TCLTK"; then
  8014. # With Tcl/Tk includes directory
  8015. echo $ac_n "checking for location of Tcl/Tk includes""... $ac_c" 1>&6
  8016. echo "configure:10062: checking for location of Tcl/Tk includes" >&5
  8017. case "$with_tcltk_includes" in
  8018. y | ye | yes | n | no)
  8019. { echo "configure: error: *** You must supply a directory to --with-tcltk-includes." 1>&2; exit 1; }
  8020. ;;
  8021. esac
  8022. echo "$ac_t""$with_tcltk_includes" 1>&6
  8023. if test -n "$with_tcltk_includes" ; then
  8024. for dir in $with_tcltk_includes; do
  8025. if test -d "$dir"; then
  8026. TCLINCDIR="$TCLINCDIR -I$dir"
  8027. else
  8028. { echo "configure: error: *** Tcl/Tk includes directory $dir does not exist." 1>&2; exit 1; }
  8029. fi
  8030. done
  8031. fi
  8032. ac_save_cppflags="$CPPFLAGS"
  8033. CPPFLAGS="$TCLINCDIR $CPPFLAGS"
  8034. for ac_hdr in tcl.h
  8035. do
  8036. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8037. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8038. echo "configure:10088: checking for $ac_hdr" >&5
  8039. cat > conftest.$ac_ext <<EOF
  8040. #line 10091 "configure"
  8041. #include "confdefs.h"
  8042. #include <$ac_hdr>
  8043. EOF
  8044. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8045. { (eval echo configure:10096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8046. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8047. if test -z "$ac_err"; then
  8048. rm -rf conftest*
  8049. eval "ac_cv_header_$ac_safe=yes"
  8050. else
  8051. echo "$ac_err" >&5
  8052. echo "configure: failed program was:" >&5
  8053. cat conftest.$ac_ext >&5
  8054. rm -rf conftest*
  8055. eval "ac_cv_header_$ac_safe=no"
  8056. fi
  8057. rm -f conftest*
  8058. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8059. echo "$ac_t""yes" 1>&6
  8060. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8061. cat >> confdefs.h <<EOF
  8062. #define $ac_tr_hdr 1
  8063. EOF
  8064. else
  8065. echo "$ac_t""no" 1>&6
  8066. { echo "configure: error: *** Unable to locate Tcl includes." 1>&2; exit 1; }
  8067. fi
  8068. done
  8069. CPPFLAGS=$ac_save_cppflags
  8070. ac_save_cppflags="$CPPFLAGS"
  8071. CPPFLAGS="$TCLINCDIR $X_CFLAGS $CPPFLAGS"
  8072. for ac_hdr in tk.h
  8073. do
  8074. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8075. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8076. echo "configure:10133: checking for $ac_hdr" >&5
  8077. cat > conftest.$ac_ext <<EOF
  8078. #line 10136 "configure"
  8079. #include "confdefs.h"
  8080. #include <$ac_hdr>
  8081. EOF
  8082. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8083. { (eval echo configure:10141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8084. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8085. if test -z "$ac_err"; then
  8086. rm -rf conftest*
  8087. eval "ac_cv_header_$ac_safe=yes"
  8088. else
  8089. echo "$ac_err" >&5
  8090. echo "configure: failed program was:" >&5
  8091. cat conftest.$ac_ext >&5
  8092. rm -rf conftest*
  8093. eval "ac_cv_header_$ac_safe=no"
  8094. fi
  8095. rm -f conftest*
  8096. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8097. echo "$ac_t""yes" 1>&6
  8098. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8099. cat >> confdefs.h <<EOF
  8100. #define $ac_tr_hdr 1
  8101. EOF
  8102. else
  8103. echo "$ac_t""no" 1>&6
  8104. { echo "configure: error: *** Unable to locate Tk includes." 1>&2; exit 1; }
  8105. fi
  8106. done
  8107. CPPFLAGS=$ac_save_cppflags
  8108. # Tcl/Tk version checks
  8109. echo $ac_n "checking Tcl version""... $ac_c" 1>&6
  8110. echo "configure:10175: checking Tcl version" >&5
  8111. ac_save_cppflags="$CPPFLAGS"
  8112. CPPFLAGS="$TCLINCDIR $CPPFLAGS"
  8113. if test "$cross_compiling" = yes; then
  8114. tcl_ver=UNKNOWN
  8115. echo "$ac_t""unknown (cross-compiling)" 1>&6
  8116. else
  8117. cat > conftest.$ac_ext <<EOF
  8118. #line 10183 "configure"
  8119. #include "confdefs.h"
  8120. #include <stdio.h>
  8121. #include <tcl.h>
  8122. int main(void) {
  8123. FILE *fp = fopen("conftestdata","w");
  8124. fputs(TCL_VERSION, fp);
  8125. return 0;
  8126. }
  8127. EOF
  8128. if { (eval echo configure:10195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  8129. then
  8130. tcl_ver=`cat conftestdata`
  8131. echo "$ac_t""$tcl_ver" 1>&6
  8132. else
  8133. echo "configure: failed program was:" >&5
  8134. cat conftest.$ac_ext >&5
  8135. rm -fr conftest*
  8136. { echo "configure: error: *** Could not determine Tcl version." 1>&2; exit 1; }
  8137. fi
  8138. rm -fr conftest*
  8139. fi
  8140. CPPFLAGS=$ac_save_cppflags
  8141. echo $ac_n "checking Tk version""... $ac_c" 1>&6
  8142. echo "configure:10213: checking Tk version" >&5
  8143. ac_save_cppflags="$CPPFLAGS"
  8144. CPPFLAGS="$TCLINCDIR $X_CFLAGS $CPPFLAGS"
  8145. if test "$cross_compiling" = yes; then
  8146. tk_ver=UNKNOWN
  8147. echo "$ac_t""unknown (cross-compiling)" 1>&6
  8148. else
  8149. cat > conftest.$ac_ext <<EOF
  8150. #line 10221 "configure"
  8151. #include "confdefs.h"
  8152. #include <stdio.h>
  8153. #include <tk.h>
  8154. int main(void) {
  8155. FILE *fp = fopen("conftestdata","w");
  8156. fputs(TK_VERSION, fp);
  8157. return 0;
  8158. }
  8159. EOF
  8160. if { (eval echo configure:10233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  8161. then
  8162. tk_ver=`cat conftestdata`
  8163. echo "$ac_t""$tk_ver" 1>&6
  8164. else
  8165. echo "configure: failed program was:" >&5
  8166. cat conftest.$ac_ext >&5
  8167. rm -fr conftest*
  8168. { echo "configure: error: *** Could not determine Tk version." 1>&2; exit 1; }
  8169. fi
  8170. rm -fr conftest*
  8171. fi
  8172. CPPFLAGS=$ac_save_cppflags
  8173. if test "$tcl_ver" = "$tk_ver" ; then
  8174. tcltk_ver="$tcl_ver"
  8175. else
  8176. { echo "configure: error: *** Tcl/Tk version mismatch." 1>&2; exit 1; }
  8177. fi
  8178. # FreeBSD and CygWin don't have a "dot" between major/minor version number
  8179. tcltk_ver2=`echo "$tcltk_ver" | sed 's/\.//g'`
  8180. # With Tcl/Tk library directory
  8181. echo $ac_n "checking for location of Tcl/Tk library""... $ac_c" 1>&6
  8182. echo "configure:10262: checking for location of Tcl/Tk library" >&5
  8183. case "$with_tcltk_libs" in
  8184. y | ye | yes | n | no)
  8185. { echo "configure: error: *** You must supply a directory to --with-tcltk-libs." 1>&2; exit 1; }
  8186. ;;
  8187. esac
  8188. echo "$ac_t""$with_tcltk_libs" 1>&6
  8189. if test -n "$with_tcltk_libs"; then
  8190. for dir in $with_tcltk_libs; do
  8191. if test -d "$dir"; then
  8192. TCLTKLIBPATH="$TCLTKLIBPATH -L$dir"
  8193. else
  8194. { echo "configure: error: *** Tcl/Tk library directory $dir does not exist." 1>&2; exit 1; }
  8195. fi
  8196. done
  8197. fi
  8198. TCLLIB=
  8199. TKLIB=
  8200. MACOSX_ARCHS_TCLTK=
  8201. # Can't test tcl/tk libs on 64bit OSX Aqua for now
  8202. # assume that if OpenGL Aqua, then user specifies TclTk Aqua
  8203. if test "$OPENGL_AQUA" = 1 ; then
  8204. save_CFLAGS="$CFLAGS"
  8205. CFLAGS="`echo \"$CFLAGS\" | sed -E 's/-arch +x86_64//g' | sed -E 's/-arch +ppc64//g'`"
  8206. save_LDFLAGS="$LDFLAGS"
  8207. LDFLAGS="`echo \"$LDFLAGS\" | sed -E 's/-arch +x86_64//g' | sed -E 's/-arch +ppc64//g'`"
  8208. fi
  8209. ac_save_ldflags="$LDFLAGS"
  8210. LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
  8211. echo $ac_n "checking for Tcl_Init in -ltcl""... $ac_c" 1>&6
  8212. echo "configure:10302: checking for Tcl_Init in -ltcl" >&5
  8213. ac_lib_var=`echo tcl'_'Tcl_Init | sed 'y%./+-%__p_%'`
  8214. ac_save_LIBS="$LIBS"
  8215. LIBS="-ltcl $MATHLIB $LIBS"
  8216. cat > conftest.$ac_ext <<EOF
  8217. #line 10308 "configure"
  8218. #include "confdefs.h"
  8219. /* Override any gcc2 internal prototype to avoid an error. */
  8220. /* We use char because int might match the return type of a gcc2
  8221. builtin and then its argument prototype would still apply. */
  8222. char Tcl_Init();
  8223. int main() {
  8224. Tcl_Init()
  8225. ; return 0; }
  8226. EOF
  8227. if { (eval echo configure:10319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8228. rm -rf conftest*
  8229. eval "ac_cv_lib_$ac_lib_var=yes"
  8230. else
  8231. echo "configure: failed program was:" >&5
  8232. cat conftest.$ac_ext >&5
  8233. rm -rf conftest*
  8234. eval "ac_cv_lib_$ac_lib_var=no"
  8235. fi
  8236. rm -f conftest*
  8237. LIBS="$ac_save_LIBS"
  8238. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8239. echo "$ac_t""yes" 1>&6
  8240. TCLLIB="$TCLLIB -ltcl $MATHLIB"
  8241. else
  8242. echo "$ac_t""no" 1>&6
  8243. echo $ac_n "checking for Tcl_Init in -ltcl""... $ac_c" 1>&6
  8244. echo "configure:10338: checking for Tcl_Init in -ltcl" >&5
  8245. ac_lib_var=`echo tcl'_'Tcl_Init | sed 'y%./+-%__p_%'`
  8246. ac_save_LIBS="$LIBS"
  8247. LIBS="-ltcl $MATHLIB $DLLIB $LIBS"
  8248. cat > conftest.$ac_ext <<EOF
  8249. #line 10344 "configure"
  8250. #include "confdefs.h"
  8251. /* Override any gcc2 internal prototype to avoid an error. */
  8252. /* We use char because int might match the return type of a gcc2
  8253. builtin and then its argument prototype would still apply. */
  8254. char Tcl_Init();
  8255. int main() {
  8256. Tcl_Init()
  8257. ; return 0; }
  8258. EOF
  8259. if { (eval echo configure:10355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8260. rm -rf conftest*
  8261. eval "ac_cv_lib_$ac_lib_var=yes"
  8262. else
  8263. echo "configure: failed program was:" >&5
  8264. cat conftest.$ac_ext >&5
  8265. rm -rf conftest*
  8266. eval "ac_cv_lib_$ac_lib_var=no"
  8267. fi
  8268. rm -f conftest*
  8269. LIBS="$ac_save_LIBS"
  8270. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8271. echo "$ac_t""yes" 1>&6
  8272. TCLLIB="$TCLLIB -ltcl $MATHLIB $DLLIB"
  8273. else
  8274. echo "$ac_t""no" 1>&6
  8275. LDFLAGS=${ac_save_ldflags}
  8276. ac_save_ldflags="$LDFLAGS"
  8277. LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
  8278. echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver""... $ac_c" 1>&6
  8279. echo "configure:10382: checking for Tcl_Init in -ltcl$tcltk_ver" >&5
  8280. ac_lib_var=`echo tcl$tcltk_ver'_'Tcl_Init | sed 'y%./+-%__p_%'`
  8281. ac_save_LIBS="$LIBS"
  8282. LIBS="-ltcl$tcltk_ver $MATHLIB $LIBS"
  8283. cat > conftest.$ac_ext <<EOF
  8284. #line 10388 "configure"
  8285. #include "confdefs.h"
  8286. /* Override any gcc2 internal prototype to avoid an error. */
  8287. /* We use char because int might match the return type of a gcc2
  8288. builtin and then its argument prototype would still apply. */
  8289. char Tcl_Init();
  8290. int main() {
  8291. Tcl_Init()
  8292. ; return 0; }
  8293. EOF
  8294. if { (eval echo configure:10399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8295. rm -rf conftest*
  8296. eval "ac_cv_lib_$ac_lib_var=yes"
  8297. else
  8298. echo "configure: failed program was:" >&5
  8299. cat conftest.$ac_ext >&5
  8300. rm -rf conftest*
  8301. eval "ac_cv_lib_$ac_lib_var=no"
  8302. fi
  8303. rm -f conftest*
  8304. LIBS="$ac_save_LIBS"
  8305. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8306. echo "$ac_t""yes" 1>&6
  8307. TCLLIB="$TCLLIB -ltcl$tcltk_ver $MATHLIB"
  8308. else
  8309. echo "$ac_t""no" 1>&6
  8310. echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver""... $ac_c" 1>&6
  8311. echo "configure:10418: checking for Tcl_Init in -ltcl$tcltk_ver" >&5
  8312. ac_lib_var=`echo tcl$tcltk_ver'_'Tcl_Init | sed 'y%./+-%__p_%'`
  8313. ac_save_LIBS="$LIBS"
  8314. LIBS="-ltcl$tcltk_ver $MATHLIB $DLLIB $LIBS"
  8315. cat > conftest.$ac_ext <<EOF
  8316. #line 10424 "configure"
  8317. #include "confdefs.h"
  8318. /* Override any gcc2 internal prototype to avoid an error. */
  8319. /* We use char because int might match the return type of a gcc2
  8320. builtin and then its argument prototype would still apply. */
  8321. char Tcl_Init();
  8322. int main() {
  8323. Tcl_Init()
  8324. ; return 0; }
  8325. EOF
  8326. if { (eval echo configure:10435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8327. rm -rf conftest*
  8328. eval "ac_cv_lib_$ac_lib_var=yes"
  8329. else
  8330. echo "configure: failed program was:" >&5
  8331. cat conftest.$ac_ext >&5
  8332. rm -rf conftest*
  8333. eval "ac_cv_lib_$ac_lib_var=no"
  8334. fi
  8335. rm -f conftest*
  8336. LIBS="$ac_save_LIBS"
  8337. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8338. echo "$ac_t""yes" 1>&6
  8339. TCLLIB="$TCLLIB -ltcl$tcltk_ver $MATHLIB $DLLIB"
  8340. else
  8341. echo "$ac_t""no" 1>&6
  8342. LDFLAGS=${ac_save_ldflags}
  8343. ac_save_ldflags="$LDFLAGS"
  8344. LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
  8345. echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver2""... $ac_c" 1>&6
  8346. echo "configure:10462: checking for Tcl_Init in -ltcl$tcltk_ver2" >&5
  8347. ac_lib_var=`echo tcl$tcltk_ver2'_'Tcl_Init | sed 'y%./+-%__p_%'`
  8348. ac_save_LIBS="$LIBS"
  8349. LIBS="-ltcl$tcltk_ver2 $MATHLIB $LIBS"
  8350. cat > conftest.$ac_ext <<EOF
  8351. #line 10468 "configure"
  8352. #include "confdefs.h"
  8353. /* Override any gcc2 internal prototype to avoid an error. */
  8354. /* We use char because int might match the return type of a gcc2
  8355. builtin and then its argument prototype would still apply. */
  8356. char Tcl_Init();
  8357. int main() {
  8358. Tcl_Init()
  8359. ; return 0; }
  8360. EOF
  8361. if { (eval echo configure:10479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8362. rm -rf conftest*
  8363. eval "ac_cv_lib_$ac_lib_var=yes"
  8364. else
  8365. echo "configure: failed program was:" >&5
  8366. cat conftest.$ac_ext >&5
  8367. rm -rf conftest*
  8368. eval "ac_cv_lib_$ac_lib_var=no"
  8369. fi
  8370. rm -f conftest*
  8371. LIBS="$ac_save_LIBS"
  8372. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8373. echo "$ac_t""yes" 1>&6
  8374. TCLLIB="$TCLLIB -ltcl$tcltk_ver2 $MATHLIB"
  8375. else
  8376. echo "$ac_t""no" 1>&6
  8377. echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver2""... $ac_c" 1>&6
  8378. echo "configure:10498: checking for Tcl_Init in -ltcl$tcltk_ver2" >&5
  8379. ac_lib_var=`echo tcl$tcltk_ver2'_'Tcl_Init | sed 'y%./+-%__p_%'`
  8380. ac_save_LIBS="$LIBS"
  8381. LIBS="-ltcl$tcltk_ver2 $MATHLIB $DLLIB $LIBS"
  8382. cat > conftest.$ac_ext <<EOF
  8383. #line 10504 "configure"
  8384. #include "confdefs.h"
  8385. /* Override any gcc2 internal prototype to avoid an error. */
  8386. /* We use char because int might match the return type of a gcc2
  8387. builtin and then its argument prototype would still apply. */
  8388. char Tcl_Init();
  8389. int main() {
  8390. Tcl_Init()
  8391. ; return 0; }
  8392. EOF
  8393. if { (eval echo configure:10515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8394. rm -rf conftest*
  8395. eval "ac_cv_lib_$ac_lib_var=yes"
  8396. else
  8397. echo "configure: failed program was:" >&5
  8398. cat conftest.$ac_ext >&5
  8399. rm -rf conftest*
  8400. eval "ac_cv_lib_$ac_lib_var=no"
  8401. fi
  8402. rm -f conftest*
  8403. LIBS="$ac_save_LIBS"
  8404. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8405. echo "$ac_t""yes" 1>&6
  8406. TCLLIB="$TCLLIB -ltcl$tcltk_ver2 $MATHLIB $DLLIB"
  8407. else
  8408. echo "$ac_t""no" 1>&6
  8409. LDFLAGS=${ac_save_ldflags}
  8410. { echo "configure: error: *** Unable to locate Tcl library." 1>&2; exit 1; }
  8411. fi
  8412. fi
  8413. LDFLAGS=${ac_save_ldflags}
  8414. fi
  8415. fi
  8416. LDFLAGS=${ac_save_ldflags}
  8417. fi
  8418. fi
  8419. LDFLAGS=${ac_save_ldflags}
  8420. ac_save_ldflags="$LDFLAGS"
  8421. LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
  8422. echo $ac_n "checking for Tk_MainWindow in -ltk""... $ac_c" 1>&6
  8423. echo "configure:10593: checking for Tk_MainWindow in -ltk" >&5
  8424. ac_lib_var=`echo tk'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
  8425. ac_save_LIBS="$LIBS"
  8426. LIBS="-ltk $TCLLIB $MATHLIB $LIBS"
  8427. cat > conftest.$ac_ext <<EOF
  8428. #line 10599 "configure"
  8429. #include "confdefs.h"
  8430. /* Override any gcc2 internal prototype to avoid an error. */
  8431. /* We use char because int might match the return type of a gcc2
  8432. builtin and then its argument prototype would still apply. */
  8433. char Tk_MainWindow();
  8434. int main() {
  8435. Tk_MainWindow()
  8436. ; return 0; }
  8437. EOF
  8438. if { (eval echo configure:10610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8439. rm -rf conftest*
  8440. eval "ac_cv_lib_$ac_lib_var=yes"
  8441. else
  8442. echo "configure: failed program was:" >&5
  8443. cat conftest.$ac_ext >&5
  8444. rm -rf conftest*
  8445. eval "ac_cv_lib_$ac_lib_var=no"
  8446. fi
  8447. rm -f conftest*
  8448. LIBS="$ac_save_LIBS"
  8449. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8450. echo "$ac_t""yes" 1>&6
  8451. TKLIB="$TKLIB -ltk $MATHLIB"
  8452. else
  8453. echo "$ac_t""no" 1>&6
  8454. echo $ac_n "checking for Tk_MainWindow in -ltk""... $ac_c" 1>&6
  8455. echo "configure:10629: checking for Tk_MainWindow in -ltk" >&5
  8456. ac_lib_var=`echo tk'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
  8457. ac_save_LIBS="$LIBS"
  8458. LIBS="-ltk $TCLLIB $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
  8459. cat > conftest.$ac_ext <<EOF
  8460. #line 10635 "configure"
  8461. #include "confdefs.h"
  8462. /* Override any gcc2 internal prototype to avoid an error. */
  8463. /* We use char because int might match the return type of a gcc2
  8464. builtin and then its argument prototype would still apply. */
  8465. char Tk_MainWindow();
  8466. int main() {
  8467. Tk_MainWindow()
  8468. ; return 0; }
  8469. EOF
  8470. if { (eval echo configure:10646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8471. rm -rf conftest*
  8472. eval "ac_cv_lib_$ac_lib_var=yes"
  8473. else
  8474. echo "configure: failed program was:" >&5
  8475. cat conftest.$ac_ext >&5
  8476. rm -rf conftest*
  8477. eval "ac_cv_lib_$ac_lib_var=no"
  8478. fi
  8479. rm -f conftest*
  8480. LIBS="$ac_save_LIBS"
  8481. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8482. echo "$ac_t""yes" 1>&6
  8483. TKLIB="$TKLIB -ltk $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
  8484. else
  8485. echo "$ac_t""no" 1>&6
  8486. LDFLAGS=${ac_save_ldflags}
  8487. ac_save_ldflags="$LDFLAGS"
  8488. LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
  8489. echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver""... $ac_c" 1>&6
  8490. echo "configure:10673: checking for Tk_MainWindow in -ltk$tcltk_ver" >&5
  8491. ac_lib_var=`echo tk$tcltk_ver'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
  8492. ac_save_LIBS="$LIBS"
  8493. LIBS="-ltk$tcltk_ver $TCLLIB $MATHLIB $LIBS"
  8494. cat > conftest.$ac_ext <<EOF
  8495. #line 10679 "configure"
  8496. #include "confdefs.h"
  8497. /* Override any gcc2 internal prototype to avoid an error. */
  8498. /* We use char because int might match the return type of a gcc2
  8499. builtin and then its argument prototype would still apply. */
  8500. char Tk_MainWindow();
  8501. int main() {
  8502. Tk_MainWindow()
  8503. ; return 0; }
  8504. EOF
  8505. if { (eval echo configure:10690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8506. rm -rf conftest*
  8507. eval "ac_cv_lib_$ac_lib_var=yes"
  8508. else
  8509. echo "configure: failed program was:" >&5
  8510. cat conftest.$ac_ext >&5
  8511. rm -rf conftest*
  8512. eval "ac_cv_lib_$ac_lib_var=no"
  8513. fi
  8514. rm -f conftest*
  8515. LIBS="$ac_save_LIBS"
  8516. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8517. echo "$ac_t""yes" 1>&6
  8518. TKLIB="$TKLIB -ltk$tcltk_ver $MATHLIB"
  8519. else
  8520. echo "$ac_t""no" 1>&6
  8521. echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver""... $ac_c" 1>&6
  8522. echo "configure:10709: checking for Tk_MainWindow in -ltk$tcltk_ver" >&5
  8523. ac_lib_var=`echo tk$tcltk_ver'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
  8524. ac_save_LIBS="$LIBS"
  8525. LIBS="-ltk$tcltk_ver $TCLLIB $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
  8526. cat > conftest.$ac_ext <<EOF
  8527. #line 10715 "configure"
  8528. #include "confdefs.h"
  8529. /* Override any gcc2 internal prototype to avoid an error. */
  8530. /* We use char because int might match the return type of a gcc2
  8531. builtin and then its argument prototype would still apply. */
  8532. char Tk_MainWindow();
  8533. int main() {
  8534. Tk_MainWindow()
  8535. ; return 0; }
  8536. EOF
  8537. if { (eval echo configure:10726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8538. rm -rf conftest*
  8539. eval "ac_cv_lib_$ac_lib_var=yes"
  8540. else
  8541. echo "configure: failed program was:" >&5
  8542. cat conftest.$ac_ext >&5
  8543. rm -rf conftest*
  8544. eval "ac_cv_lib_$ac_lib_var=no"
  8545. fi
  8546. rm -f conftest*
  8547. LIBS="$ac_save_LIBS"
  8548. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8549. echo "$ac_t""yes" 1>&6
  8550. TKLIB="$TKLIB -ltk$tcltk_ver $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
  8551. else
  8552. echo "$ac_t""no" 1>&6
  8553. LDFLAGS=${ac_save_ldflags}
  8554. ac_save_ldflags="$LDFLAGS"
  8555. LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
  8556. echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver2""... $ac_c" 1>&6
  8557. echo "configure:10753: checking for Tk_MainWindow in -ltk$tcltk_ver2" >&5
  8558. ac_lib_var=`echo tk$tcltk_ver2'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
  8559. ac_save_LIBS="$LIBS"
  8560. LIBS="-ltk$tcltk_ver2 $TCLLIB $MATHLIB $LIBS"
  8561. cat > conftest.$ac_ext <<EOF
  8562. #line 10759 "configure"
  8563. #include "confdefs.h"
  8564. /* Override any gcc2 internal prototype to avoid an error. */
  8565. /* We use char because int might match the return type of a gcc2
  8566. builtin and then its argument prototype would still apply. */
  8567. char Tk_MainWindow();
  8568. int main() {
  8569. Tk_MainWindow()
  8570. ; return 0; }
  8571. EOF
  8572. if { (eval echo configure:10770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8573. rm -rf conftest*
  8574. eval "ac_cv_lib_$ac_lib_var=yes"
  8575. else
  8576. echo "configure: failed program was:" >&5
  8577. cat conftest.$ac_ext >&5
  8578. rm -rf conftest*
  8579. eval "ac_cv_lib_$ac_lib_var=no"
  8580. fi
  8581. rm -f conftest*
  8582. LIBS="$ac_save_LIBS"
  8583. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8584. echo "$ac_t""yes" 1>&6
  8585. TKLIB="$TKLIB -ltk$tcltk_ver2 $MATHLIB"
  8586. else
  8587. echo "$ac_t""no" 1>&6
  8588. echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver2""... $ac_c" 1>&6
  8589. echo "configure:10789: checking for Tk_MainWindow in -ltk$tcltk_ver2" >&5
  8590. ac_lib_var=`echo tk$tcltk_ver2'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
  8591. ac_save_LIBS="$LIBS"
  8592. LIBS="-ltk$tcltk_ver2 $TCLLIB $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
  8593. cat > conftest.$ac_ext <<EOF
  8594. #line 10795 "configure"
  8595. #include "confdefs.h"
  8596. /* Override any gcc2 internal prototype to avoid an error. */
  8597. /* We use char because int might match the return type of a gcc2
  8598. builtin and then its argument prototype would still apply. */
  8599. char Tk_MainWindow();
  8600. int main() {
  8601. Tk_MainWindow()
  8602. ; return 0; }
  8603. EOF
  8604. if { (eval echo configure:10806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8605. rm -rf conftest*
  8606. eval "ac_cv_lib_$ac_lib_var=yes"
  8607. else
  8608. echo "configure: failed program was:" >&5
  8609. cat conftest.$ac_ext >&5
  8610. rm -rf conftest*
  8611. eval "ac_cv_lib_$ac_lib_var=no"
  8612. fi
  8613. rm -f conftest*
  8614. LIBS="$ac_save_LIBS"
  8615. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8616. echo "$ac_t""yes" 1>&6
  8617. TKLIB="$TKLIB -ltk$tcltk_ver2 $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
  8618. else
  8619. echo "$ac_t""no" 1>&6
  8620. LDFLAGS=${ac_save_ldflags}
  8621. { echo "configure: error: *** Unable to locate Tk library." 1>&2; exit 1; }
  8622. fi
  8623. fi
  8624. LDFLAGS=${ac_save_ldflags}
  8625. fi
  8626. fi
  8627. LDFLAGS=${ac_save_ldflags}
  8628. fi
  8629. fi
  8630. LDFLAGS=${ac_save_ldflags}
  8631. # restore CFLAGS/LDLFAGS from Aqua 64bit strip
  8632. # only Tcl/Tk-based makefiles will strip 64bit out during compile
  8633. if test "$OPENGL_AQUA" = 1 ; then
  8634. CFLAGS="$save_CFLAGS"
  8635. LDFLAGS="$save_LDFLAGS"
  8636. fi
  8637. TCLTKLIBS="$TKLIB $TCLLIB"
  8638. # check for available OSX archs in TclTk
  8639. if test -n "$MACOSX_ARCHS" ; then
  8640. save_LDFLAGS="$LDFLAGS"
  8641. LDFLAGS=
  8642. save_CFLAGS="$CFLAGS"
  8643. CFLAGS=
  8644. tlib=`echo "$TCLLIB" | sed -e 's/-l//' -e 's/^ *//' -e 's/ *$//'`
  8645. for a in i386 ppc x86_64 ppc64
  8646. do
  8647. # add only if in MACOSX_ARCHS
  8648. echo $ac_n "checking for Tcl_Init in -l$tlib""... $ac_c" 1>&6
  8649. echo "configure:10896: checking for Tcl_Init in -l$tlib" >&5
  8650. ac_lib_var=`echo $tlib'_'Tcl_Init | sed 'y%./+-%__p_%'`
  8651. ac_save_LIBS="$LIBS"
  8652. LIBS="-l$tlib -arch $a $MACOSX_SDK $TCLTKLIBPATH $LIBS"
  8653. cat > conftest.$ac_ext <<EOF
  8654. #line 10902 "configure"
  8655. #include "confdefs.h"
  8656. /* Override any gcc2 internal prototype to avoid an error. */
  8657. /* We use char because int might match the return type of a gcc2
  8658. builtin and then its argument prototype would still apply. */
  8659. char Tcl_Init();
  8660. int main() {
  8661. Tcl_Init()
  8662. ; return 0; }
  8663. EOF
  8664. if { (eval echo configure:10913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8665. rm -rf conftest*
  8666. eval "ac_cv_lib_$ac_lib_var=yes"
  8667. else
  8668. echo "configure: failed program was:" >&5
  8669. cat conftest.$ac_ext >&5
  8670. rm -rf conftest*
  8671. eval "ac_cv_lib_$ac_lib_var=no"
  8672. fi
  8673. rm -f conftest*
  8674. LIBS="$ac_save_LIBS"
  8675. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8676. echo "$ac_t""yes" 1>&6
  8677. if test -n "`echo "$MACOSX_ARCHS" | grep $a`" ; then
  8678. MACOSX_ARCHS_TCLTK="$MACOSX_ARCHS_TCLTK -arch $a"
  8679. fi
  8680. else
  8681. echo "$ac_t""no" 1>&6
  8682. fi
  8683. done
  8684. LDFLAGS="$save_LDFLAGS"
  8685. CFLAGS="$save_CFLAGS"
  8686. fi
  8687. cat >> confdefs.h <<\EOF
  8688. #define HAVE_TCLTK 1
  8689. EOF
  8690. fi # $USE_TCLTK
  8691. TKINCDIR=$TCLINCDIR
  8692. # Done checking Tcl/Tk
  8693. # Enable ODBC option
  8694. echo $ac_n "checking whether to use ODBC""... $ac_c" 1>&6
  8695. echo "configure:10963: checking whether to use ODBC" >&5
  8696. echo "$ac_t"""$with_odbc"" 1>&6
  8697. case "$with_odbc" in
  8698. "no") USE_ODBC= ;;
  8699. "yes") USE_ODBC="1" ;;
  8700. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8701. esac
  8702. ODBCINC=
  8703. ODBCLIB=
  8704. if test -n "$USE_ODBC"; then
  8705. # With ODBC includes directory
  8706. echo $ac_n "checking for location of ODBC includes""... $ac_c" 1>&6
  8707. echo "configure:10982: checking for location of ODBC includes" >&5
  8708. case "$with_odbc_includes" in
  8709. y | ye | yes | n | no)
  8710. { echo "configure: error: *** You must supply a directory to --with-odbc-includes." 1>&2; exit 1; }
  8711. ;;
  8712. esac
  8713. echo "$ac_t""$with_odbc_includes" 1>&6
  8714. if test -n "$with_odbc_includes" ; then
  8715. for dir in $with_odbc_includes; do
  8716. if test -d "$dir"; then
  8717. ODBCINC="$ODBCINC -I$dir"
  8718. else
  8719. { echo "configure: error: *** ODBC includes directory $dir does not exist." 1>&2; exit 1; }
  8720. fi
  8721. done
  8722. fi
  8723. ac_save_cppflags="$CPPFLAGS"
  8724. CPPFLAGS="$ODBCINC $CPPFLAGS"
  8725. for ac_hdr in sql.h
  8726. do
  8727. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8728. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8729. echo "configure:11008: checking for $ac_hdr" >&5
  8730. cat > conftest.$ac_ext <<EOF
  8731. #line 11011 "configure"
  8732. #include "confdefs.h"
  8733. #include <$ac_hdr>
  8734. EOF
  8735. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8736. { (eval echo configure:11016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8737. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8738. if test -z "$ac_err"; then
  8739. rm -rf conftest*
  8740. eval "ac_cv_header_$ac_safe=yes"
  8741. else
  8742. echo "$ac_err" >&5
  8743. echo "configure: failed program was:" >&5
  8744. cat conftest.$ac_ext >&5
  8745. rm -rf conftest*
  8746. eval "ac_cv_header_$ac_safe=no"
  8747. fi
  8748. rm -f conftest*
  8749. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8750. echo "$ac_t""yes" 1>&6
  8751. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8752. cat >> confdefs.h <<EOF
  8753. #define $ac_tr_hdr 1
  8754. EOF
  8755. else
  8756. echo "$ac_t""no" 1>&6
  8757. { echo "configure: error: *** Unable to locate ODBC includes." 1>&2; exit 1; }
  8758. fi
  8759. done
  8760. CPPFLAGS=$ac_save_cppflags
  8761. # With ODBC library directory
  8762. echo $ac_n "checking for location of ODBC library""... $ac_c" 1>&6
  8763. echo "configure:11050: checking for location of ODBC library" >&5
  8764. case "$with_odbc_libs" in
  8765. y | ye | yes | n | no)
  8766. { echo "configure: error: *** You must supply a directory to --with-odbc-libs." 1>&2; exit 1; }
  8767. ;;
  8768. esac
  8769. echo "$ac_t""$with_odbc_libs" 1>&6
  8770. if test -n "$with_odbc_libs"; then
  8771. for dir in $with_odbc_libs; do
  8772. if test -d "$dir"; then
  8773. ODBCLIB="$ODBCLIB -L$dir"
  8774. else
  8775. { echo "configure: error: *** ODBC library directory $dir does not exist." 1>&2; exit 1; }
  8776. fi
  8777. done
  8778. fi
  8779. ac_save_ldflags="$LDFLAGS"
  8780. LDFLAGS="$ODBCLIB $LDFLAGS"
  8781. echo $ac_n "checking for SQLConnect in -lodbc""... $ac_c" 1>&6
  8782. echo "configure:11075: checking for SQLConnect in -lodbc" >&5
  8783. ac_lib_var=`echo odbc'_'SQLConnect | sed 'y%./+-%__p_%'`
  8784. ac_save_LIBS="$LIBS"
  8785. LIBS="-lodbc $ICONVLIB $LIBS"
  8786. cat > conftest.$ac_ext <<EOF
  8787. #line 11081 "configure"
  8788. #include "confdefs.h"
  8789. /* Override any gcc2 internal prototype to avoid an error. */
  8790. /* We use char because int might match the return type of a gcc2
  8791. builtin and then its argument prototype would still apply. */
  8792. char SQLConnect();
  8793. int main() {
  8794. SQLConnect()
  8795. ; return 0; }
  8796. EOF
  8797. if { (eval echo configure:11092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8798. rm -rf conftest*
  8799. eval "ac_cv_lib_$ac_lib_var=yes"
  8800. else
  8801. echo "configure: failed program was:" >&5
  8802. cat conftest.$ac_ext >&5
  8803. rm -rf conftest*
  8804. eval "ac_cv_lib_$ac_lib_var=no"
  8805. fi
  8806. rm -f conftest*
  8807. LIBS="$ac_save_LIBS"
  8808. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8809. echo "$ac_t""yes" 1>&6
  8810. ODBCLIB="$ODBCLIB -lodbc "
  8811. else
  8812. echo "$ac_t""no" 1>&6
  8813. LDFLAGS=${ac_save_ldflags}
  8814. ac_save_ldflags="$LDFLAGS"
  8815. LDFLAGS="$ODBCLIB $LDFLAGS"
  8816. echo $ac_n "checking for SQLConnect in -liodbc""... $ac_c" 1>&6
  8817. echo "configure:11117: checking for SQLConnect in -liodbc" >&5
  8818. ac_lib_var=`echo iodbc'_'SQLConnect | sed 'y%./+-%__p_%'`
  8819. ac_save_LIBS="$LIBS"
  8820. LIBS="-liodbc $LIBS"
  8821. cat > conftest.$ac_ext <<EOF
  8822. #line 11123 "configure"
  8823. #include "confdefs.h"
  8824. /* Override any gcc2 internal prototype to avoid an error. */
  8825. /* We use char because int might match the return type of a gcc2
  8826. builtin and then its argument prototype would still apply. */
  8827. char SQLConnect();
  8828. int main() {
  8829. SQLConnect()
  8830. ; return 0; }
  8831. EOF
  8832. if { (eval echo configure:11134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8833. rm -rf conftest*
  8834. eval "ac_cv_lib_$ac_lib_var=yes"
  8835. else
  8836. echo "configure: failed program was:" >&5
  8837. cat conftest.$ac_ext >&5
  8838. rm -rf conftest*
  8839. eval "ac_cv_lib_$ac_lib_var=no"
  8840. fi
  8841. rm -f conftest*
  8842. LIBS="$ac_save_LIBS"
  8843. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8844. echo "$ac_t""yes" 1>&6
  8845. ODBCLIB="$ODBCLIB -liodbc "
  8846. else
  8847. echo "$ac_t""no" 1>&6
  8848. LDFLAGS=${ac_save_ldflags}
  8849. ac_save_cflags="$CFLAGS"
  8850. CFLAGS="$CFLAGS $ODBCINC"
  8851. ac_save_ldflags="$LDFLAGS"
  8852. ac_save_libs="$LIBS"
  8853. echo $ac_n "checking for ODBC library""... $ac_c" 1>&6
  8854. echo "configure:11159: checking for ODBC library" >&5
  8855. LDFLAGS="$ODBCLIB $LDFLAGS"
  8856. LIBS="-lodbc32 "
  8857. cat > conftest.$ac_ext <<EOF
  8858. #line 11163 "configure"
  8859. #include "confdefs.h"
  8860. #include <windows.h>
  8861. #include <sql.h>
  8862. int main() {
  8863. SQLAllocEnv((SQLHENV *)0);
  8864. ; return 0; }
  8865. EOF
  8866. if { (eval echo configure:11171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8867. rm -rf conftest*
  8868. echo "$ac_t""found" 1>&6
  8869. ODBCLIB="$ODBCLIB -lodbc32 "
  8870. else
  8871. echo "configure: failed program was:" >&5
  8872. cat conftest.$ac_ext >&5
  8873. rm -rf conftest*
  8874. { echo "configure: error: *** Unable to locate ODBC library." 1>&2; exit 1; }
  8875. fi
  8876. rm -f conftest*
  8877. LIBS=${ac_save_libs}
  8878. LDFLAGS=${ac_save_ldflags}
  8879. CFLAGS="${ac_save_cflags}"
  8880. fi
  8881. LDFLAGS=${ac_save_ldflags}
  8882. fi
  8883. LDFLAGS=${ac_save_ldflags}
  8884. fi # $USE_ODBC
  8885. # Done checking ODBC
  8886. # Enable FFTW option
  8887. echo $ac_n "checking whether to use FFTW""... $ac_c" 1>&6
  8888. echo "configure:11220: checking whether to use FFTW" >&5
  8889. echo "$ac_t"""$with_fftw"" 1>&6
  8890. case "$with_fftw" in
  8891. "no") USE_FFTW= ;;
  8892. "yes") USE_FFTW="1" ;;
  8893. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8894. esac
  8895. FFTWINC=
  8896. FFTWLIB=
  8897. if test -n "$USE_FFTW"; then
  8898. # With FFTW includes directory
  8899. echo $ac_n "checking for location of FFTW includes""... $ac_c" 1>&6
  8900. echo "configure:11239: checking for location of FFTW includes" >&5
  8901. case "$with_fftw_includes" in
  8902. y | ye | yes | n | no)
  8903. { echo "configure: error: *** You must supply a directory to --with-fftw-includes." 1>&2; exit 1; }
  8904. ;;
  8905. esac
  8906. echo "$ac_t""$with_fftw_includes" 1>&6
  8907. if test -n "$with_fftw_includes" ; then
  8908. for dir in $with_fftw_includes; do
  8909. if test -d "$dir"; then
  8910. FFTWINC="$FFTWINC -I$dir"
  8911. else
  8912. { echo "configure: error: *** FFTW includes directory $dir does not exist." 1>&2; exit 1; }
  8913. fi
  8914. done
  8915. fi
  8916. ac_save_cppflags="$CPPFLAGS"
  8917. CPPFLAGS="$FFTWINC $CPPFLAGS"
  8918. for ac_hdr in fftw3.h
  8919. do
  8920. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8921. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8922. echo "configure:11265: checking for $ac_hdr" >&5
  8923. cat > conftest.$ac_ext <<EOF
  8924. #line 11268 "configure"
  8925. #include "confdefs.h"
  8926. #include <$ac_hdr>
  8927. EOF
  8928. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8929. { (eval echo configure:11273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8930. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8931. if test -z "$ac_err"; then
  8932. rm -rf conftest*
  8933. eval "ac_cv_header_$ac_safe=yes"
  8934. else
  8935. echo "$ac_err" >&5
  8936. echo "configure: failed program was:" >&5
  8937. cat conftest.$ac_ext >&5
  8938. rm -rf conftest*
  8939. eval "ac_cv_header_$ac_safe=no"
  8940. fi
  8941. rm -f conftest*
  8942. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8943. echo "$ac_t""yes" 1>&6
  8944. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8945. cat >> confdefs.h <<EOF
  8946. #define $ac_tr_hdr 1
  8947. EOF
  8948. else
  8949. echo "$ac_t""no" 1>&6
  8950. ac_save_cppflags="$CPPFLAGS"
  8951. CPPFLAGS=" $CPPFLAGS"
  8952. for ac_hdr in fftw.h
  8953. do
  8954. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8955. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8956. echo "configure:11301: checking for $ac_hdr" >&5
  8957. cat > conftest.$ac_ext <<EOF
  8958. #line 11304 "configure"
  8959. #include "confdefs.h"
  8960. #include <$ac_hdr>
  8961. EOF
  8962. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8963. { (eval echo configure:11309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8964. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8965. if test -z "$ac_err"; then
  8966. rm -rf conftest*
  8967. eval "ac_cv_header_$ac_safe=yes"
  8968. else
  8969. echo "$ac_err" >&5
  8970. echo "configure: failed program was:" >&5
  8971. cat conftest.$ac_ext >&5
  8972. rm -rf conftest*
  8973. eval "ac_cv_header_$ac_safe=no"
  8974. fi
  8975. rm -f conftest*
  8976. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8977. echo "$ac_t""yes" 1>&6
  8978. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8979. cat >> confdefs.h <<EOF
  8980. #define $ac_tr_hdr 1
  8981. EOF
  8982. else
  8983. echo "$ac_t""no" 1>&6
  8984. ac_save_cppflags="$CPPFLAGS"
  8985. CPPFLAGS=" $CPPFLAGS"
  8986. for ac_hdr in dfftw.h
  8987. do
  8988. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8989. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8990. echo "configure:11337: checking for $ac_hdr" >&5
  8991. cat > conftest.$ac_ext <<EOF
  8992. #line 11340 "configure"
  8993. #include "confdefs.h"
  8994. #include <$ac_hdr>
  8995. EOF
  8996. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8997. { (eval echo configure:11345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8998. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8999. if test -z "$ac_err"; then
  9000. rm -rf conftest*
  9001. eval "ac_cv_header_$ac_safe=yes"
  9002. else
  9003. echo "$ac_err" >&5
  9004. echo "configure: failed program was:" >&5
  9005. cat conftest.$ac_ext >&5
  9006. rm -rf conftest*
  9007. eval "ac_cv_header_$ac_safe=no"
  9008. fi
  9009. rm -f conftest*
  9010. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9011. echo "$ac_t""yes" 1>&6
  9012. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9013. cat >> confdefs.h <<EOF
  9014. #define $ac_tr_hdr 1
  9015. EOF
  9016. else
  9017. echo "$ac_t""no" 1>&6
  9018. { echo "configure: error: *** Unable to locate FFTW includes." 1>&2; exit 1; }
  9019. fi
  9020. done
  9021. CPPFLAGS=$ac_save_cppflags
  9022. fi
  9023. done
  9024. CPPFLAGS=$ac_save_cppflags
  9025. fi
  9026. done
  9027. CPPFLAGS=$ac_save_cppflags
  9028. # With FFTW library directory
  9029. echo $ac_n "checking for location of FFTW library""... $ac_c" 1>&6
  9030. echo "configure:11391: checking for location of FFTW library" >&5
  9031. case "$with_fftw_libs" in
  9032. y | ye | yes | n | no)
  9033. { echo "configure: error: *** You must supply a directory to --with-fftw-libs." 1>&2; exit 1; }
  9034. ;;
  9035. esac
  9036. echo "$ac_t""$with_fftw_libs" 1>&6
  9037. if test -n "$with_fftw_libs"; then
  9038. for dir in $with_fftw_libs; do
  9039. if test -d "$dir"; then
  9040. FFTWLIB="$FFTWLIB -L$dir"
  9041. else
  9042. { echo "configure: error: *** FFTW library directory $dir does not exist." 1>&2; exit 1; }
  9043. fi
  9044. done
  9045. fi
  9046. ac_save_ldflags="$LDFLAGS"
  9047. LDFLAGS="$FFTWLIB $LDFLAGS"
  9048. echo $ac_n "checking for fftw_execute in -lfftw3""... $ac_c" 1>&6
  9049. echo "configure:11416: checking for fftw_execute in -lfftw3" >&5
  9050. ac_lib_var=`echo fftw3'_'fftw_execute | sed 'y%./+-%__p_%'`
  9051. ac_save_LIBS="$LIBS"
  9052. LIBS="-lfftw3 $MATHLIB $LIBS"
  9053. cat > conftest.$ac_ext <<EOF
  9054. #line 11422 "configure"
  9055. #include "confdefs.h"
  9056. /* Override any gcc2 internal prototype to avoid an error. */
  9057. /* We use char because int might match the return type of a gcc2
  9058. builtin and then its argument prototype would still apply. */
  9059. char fftw_execute();
  9060. int main() {
  9061. fftw_execute()
  9062. ; return 0; }
  9063. EOF
  9064. if { (eval echo configure:11433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9065. rm -rf conftest*
  9066. eval "ac_cv_lib_$ac_lib_var=yes"
  9067. else
  9068. echo "configure: failed program was:" >&5
  9069. cat conftest.$ac_ext >&5
  9070. rm -rf conftest*
  9071. eval "ac_cv_lib_$ac_lib_var=no"
  9072. fi
  9073. rm -f conftest*
  9074. LIBS="$ac_save_LIBS"
  9075. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9076. echo "$ac_t""yes" 1>&6
  9077. FFTWLIB="$FFTWLIB -lfftw3 $MATHLIB"
  9078. else
  9079. echo "$ac_t""no" 1>&6
  9080. LDFLAGS=${ac_save_ldflags}
  9081. ac_save_ldflags="$LDFLAGS"
  9082. LDFLAGS="$FFTWLIB $LDFLAGS"
  9083. echo $ac_n "checking for fftwnd_one in -lfftw""... $ac_c" 1>&6
  9084. echo "configure:11458: checking for fftwnd_one in -lfftw" >&5
  9085. ac_lib_var=`echo fftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
  9086. ac_save_LIBS="$LIBS"
  9087. LIBS="-lfftw $MATHLIB $LIBS"
  9088. cat > conftest.$ac_ext <<EOF
  9089. #line 11464 "configure"
  9090. #include "confdefs.h"
  9091. /* Override any gcc2 internal prototype to avoid an error. */
  9092. /* We use char because int might match the return type of a gcc2
  9093. builtin and then its argument prototype would still apply. */
  9094. char fftwnd_one();
  9095. int main() {
  9096. fftwnd_one()
  9097. ; return 0; }
  9098. EOF
  9099. if { (eval echo configure:11475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9100. rm -rf conftest*
  9101. eval "ac_cv_lib_$ac_lib_var=yes"
  9102. else
  9103. echo "configure: failed program was:" >&5
  9104. cat conftest.$ac_ext >&5
  9105. rm -rf conftest*
  9106. eval "ac_cv_lib_$ac_lib_var=no"
  9107. fi
  9108. rm -f conftest*
  9109. LIBS="$ac_save_LIBS"
  9110. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9111. echo "$ac_t""yes" 1>&6
  9112. FFTWLIB="$FFTWLIB -lfftw $MATHLIB"
  9113. else
  9114. echo "$ac_t""no" 1>&6
  9115. LDFLAGS=${ac_save_ldflags}
  9116. ac_save_ldflags="$LDFLAGS"
  9117. LDFLAGS="$FFTWLIB $LDFLAGS"
  9118. echo $ac_n "checking for fftwnd_one in -ldfftw""... $ac_c" 1>&6
  9119. echo "configure:11500: checking for fftwnd_one in -ldfftw" >&5
  9120. ac_lib_var=`echo dfftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
  9121. ac_save_LIBS="$LIBS"
  9122. LIBS="-ldfftw $MATHLIB $LIBS"
  9123. cat > conftest.$ac_ext <<EOF
  9124. #line 11506 "configure"
  9125. #include "confdefs.h"
  9126. /* Override any gcc2 internal prototype to avoid an error. */
  9127. /* We use char because int might match the return type of a gcc2
  9128. builtin and then its argument prototype would still apply. */
  9129. char fftwnd_one();
  9130. int main() {
  9131. fftwnd_one()
  9132. ; return 0; }
  9133. EOF
  9134. if { (eval echo configure:11517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9135. rm -rf conftest*
  9136. eval "ac_cv_lib_$ac_lib_var=yes"
  9137. else
  9138. echo "configure: failed program was:" >&5
  9139. cat conftest.$ac_ext >&5
  9140. rm -rf conftest*
  9141. eval "ac_cv_lib_$ac_lib_var=no"
  9142. fi
  9143. rm -f conftest*
  9144. LIBS="$ac_save_LIBS"
  9145. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9146. echo "$ac_t""yes" 1>&6
  9147. FFTWLIB="$FFTWLIB -ldfftw $MATHLIB"
  9148. else
  9149. echo "$ac_t""no" 1>&6
  9150. LDFLAGS=${ac_save_ldflags}
  9151. { echo "configure: error: *** Unable to locate FFTW library." 1>&2; exit 1; }
  9152. fi
  9153. LDFLAGS=${ac_save_ldflags}
  9154. fi
  9155. LDFLAGS=${ac_save_ldflags}
  9156. fi
  9157. LDFLAGS=${ac_save_ldflags}
  9158. fi # $USE_FFTW
  9159. # Done checking FFTW
  9160. # Enable BLAS option
  9161. echo $ac_n "checking whether to use BLAS""... $ac_c" 1>&6
  9162. echo "configure:11574: checking whether to use BLAS" >&5
  9163. echo "$ac_t"""$with_blas"" 1>&6
  9164. case "$with_blas" in
  9165. "no") USE_BLAS= ;;
  9166. "yes") USE_BLAS="1" ;;
  9167. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9168. esac
  9169. BLASLIB=
  9170. BLASINC=
  9171. if test -n "$USE_BLAS"; then
  9172. # With BLAS includes directory
  9173. # BLAS doesn't have includes (FORTRAN library)
  9174. # With BLAS library directory
  9175. echo $ac_n "checking for location of BLAS includes""... $ac_c" 1>&6
  9176. echo "configure:11595: checking for location of BLAS includes" >&5
  9177. case "$with_blas_includes" in
  9178. y | ye | yes | n | no)
  9179. { echo "configure: error: *** You must supply a directory to --with-blas-includes." 1>&2; exit 1; }
  9180. ;;
  9181. esac
  9182. echo "$ac_t""$with_blas_includes" 1>&6
  9183. if test -n "$with_blas_includes" ; then
  9184. for dir in $with_blas_includes; do
  9185. if test -d "$dir"; then
  9186. BLASINC="$BLASINC -I$dir"
  9187. else
  9188. { echo "configure: error: *** BLAS includes directory $dir does not exist." 1>&2; exit 1; }
  9189. fi
  9190. done
  9191. fi
  9192. echo $ac_n "checking for location of BLAS library""... $ac_c" 1>&6
  9193. echo "configure:11615: checking for location of BLAS library" >&5
  9194. case "$with_blas_libs" in
  9195. y | ye | yes | n | no)
  9196. { echo "configure: error: *** You must supply a directory to --with-blas-libs." 1>&2; exit 1; }
  9197. ;;
  9198. esac
  9199. echo "$ac_t""$with_blas_libs" 1>&6
  9200. if test -n "$with_blas_libs"; then
  9201. for dir in $with_blas_libs; do
  9202. if test -d "$dir"; then
  9203. BLASLIB="$BLASLIB -L$dir"
  9204. else
  9205. { echo "configure: error: *** BLAS library directory $dir does not exist." 1>&2; exit 1; }
  9206. fi
  9207. done
  9208. fi
  9209. # See if cblas.h exists (CBLAS,ATLAS,others)
  9210. save_CPPFLAGS="$CPPFLAGS"
  9211. CPPFLAGS="$BLASINC $CPPFLAGS"
  9212. for ac_hdr in cblas.h
  9213. do
  9214. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9215. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9216. echo "configure:11641: checking for $ac_hdr" >&5
  9217. cat > conftest.$ac_ext <<EOF
  9218. #line 11644 "configure"
  9219. #include "confdefs.h"
  9220. #include <$ac_hdr>
  9221. EOF
  9222. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9223. { (eval echo configure:11649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9224. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9225. if test -z "$ac_err"; then
  9226. rm -rf conftest*
  9227. eval "ac_cv_header_$ac_safe=yes"
  9228. else
  9229. echo "$ac_err" >&5
  9230. echo "configure: failed program was:" >&5
  9231. cat conftest.$ac_ext >&5
  9232. rm -rf conftest*
  9233. eval "ac_cv_header_$ac_safe=no"
  9234. fi
  9235. rm -f conftest*
  9236. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9237. echo "$ac_t""yes" 1>&6
  9238. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9239. cat >> confdefs.h <<EOF
  9240. #define $ac_tr_hdr 1
  9241. EOF
  9242. else
  9243. echo "$ac_t""no" 1>&6
  9244. fi
  9245. done
  9246. CPPFLAGS="$save_CPPFLAGS"
  9247. ac_save_ldflags="$LDFLAGS"
  9248. LDFLAGS="$BLASLIB $LDFLAGS"
  9249. echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
  9250. echo "configure:11684: checking for dnrm2_ in -lblas" >&5
  9251. ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
  9252. ac_save_LIBS="$LIBS"
  9253. LIBS="-lblas $MATHLIB $LIBS"
  9254. cat > conftest.$ac_ext <<EOF
  9255. #line 11690 "configure"
  9256. #include "confdefs.h"
  9257. /* Override any gcc2 internal prototype to avoid an error. */
  9258. /* We use char because int might match the return type of a gcc2
  9259. builtin and then its argument prototype would still apply. */
  9260. char dnrm2_();
  9261. int main() {
  9262. dnrm2_()
  9263. ; return 0; }
  9264. EOF
  9265. if { (eval echo configure:11701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9266. rm -rf conftest*
  9267. eval "ac_cv_lib_$ac_lib_var=yes"
  9268. else
  9269. echo "configure: failed program was:" >&5
  9270. cat conftest.$ac_ext >&5
  9271. rm -rf conftest*
  9272. eval "ac_cv_lib_$ac_lib_var=no"
  9273. fi
  9274. rm -f conftest*
  9275. LIBS="$ac_save_LIBS"
  9276. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9277. echo "$ac_t""yes" 1>&6
  9278. BLASLIB="$BLASLIB -lblas "
  9279. else
  9280. echo "$ac_t""no" 1>&6
  9281. echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
  9282. echo "configure:11720: checking for dnrm2_ in -lblas" >&5
  9283. ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
  9284. ac_save_LIBS="$LIBS"
  9285. LIBS="-lblas $MATHLIB -lg2c $LIBS"
  9286. cat > conftest.$ac_ext <<EOF
  9287. #line 11726 "configure"
  9288. #include "confdefs.h"
  9289. /* Override any gcc2 internal prototype to avoid an error. */
  9290. /* We use char because int might match the return type of a gcc2
  9291. builtin and then its argument prototype would still apply. */
  9292. char dnrm2_();
  9293. int main() {
  9294. dnrm2_()
  9295. ; return 0; }
  9296. EOF
  9297. if { (eval echo configure:11737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9298. rm -rf conftest*
  9299. eval "ac_cv_lib_$ac_lib_var=yes"
  9300. else
  9301. echo "configure: failed program was:" >&5
  9302. cat conftest.$ac_ext >&5
  9303. rm -rf conftest*
  9304. eval "ac_cv_lib_$ac_lib_var=no"
  9305. fi
  9306. rm -f conftest*
  9307. LIBS="$ac_save_LIBS"
  9308. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9309. echo "$ac_t""yes" 1>&6
  9310. BLASLIB="$BLASLIB -lblas -lg2c"
  9311. else
  9312. echo "$ac_t""no" 1>&6
  9313. LDFLAGS=${ac_save_ldflags}
  9314. { echo "configure: error: *** Unable to locate BLAS library." 1>&2; exit 1; }
  9315. fi
  9316. fi
  9317. LDFLAGS=${ac_save_ldflags}
  9318. blas_ok=no
  9319. # Check for ATLAS
  9320. save_LDFLAGS="$LDFLAGS"
  9321. LDFLAGS="$BLASLIB $LDFLAGS"
  9322. echo $ac_n "checking for ATL_xerbla in -latlas""... $ac_c" 1>&6
  9323. echo "configure:11781: checking for ATL_xerbla in -latlas" >&5
  9324. ac_lib_var=`echo atlas'_'ATL_xerbla | sed 'y%./+-%__p_%'`
  9325. ac_save_LIBS="$LIBS"
  9326. LIBS="-latlas $LIBS"
  9327. cat > conftest.$ac_ext <<EOF
  9328. #line 11787 "configure"
  9329. #include "confdefs.h"
  9330. /* Override any gcc2 internal prototype to avoid an error. */
  9331. /* We use char because int might match the return type of a gcc2
  9332. builtin and then its argument prototype would still apply. */
  9333. char ATL_xerbla();
  9334. int main() {
  9335. ATL_xerbla()
  9336. ; return 0; }
  9337. EOF
  9338. if { (eval echo configure:11798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9339. rm -rf conftest*
  9340. eval "ac_cv_lib_$ac_lib_var=yes"
  9341. else
  9342. echo "configure: failed program was:" >&5
  9343. cat conftest.$ac_ext >&5
  9344. rm -rf conftest*
  9345. eval "ac_cv_lib_$ac_lib_var=no"
  9346. fi
  9347. rm -f conftest*
  9348. LIBS="$ac_save_LIBS"
  9349. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9350. echo "$ac_t""yes" 1>&6
  9351. echo $ac_n "checking for sgemm_ in -lf77blas""... $ac_c" 1>&6
  9352. echo "configure:11813: checking for sgemm_ in -lf77blas" >&5
  9353. ac_lib_var=`echo f77blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  9354. ac_save_LIBS="$LIBS"
  9355. LIBS="-lf77blas -latlas $LIBS"
  9356. cat > conftest.$ac_ext <<EOF
  9357. #line 11819 "configure"
  9358. #include "confdefs.h"
  9359. /* Override any gcc2 internal prototype to avoid an error. */
  9360. /* We use char because int might match the return type of a gcc2
  9361. builtin and then its argument prototype would still apply. */
  9362. char sgemm_();
  9363. int main() {
  9364. sgemm_()
  9365. ; return 0; }
  9366. EOF
  9367. if { (eval echo configure:11830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9368. rm -rf conftest*
  9369. eval "ac_cv_lib_$ac_lib_var=yes"
  9370. else
  9371. echo "configure: failed program was:" >&5
  9372. cat conftest.$ac_ext >&5
  9373. rm -rf conftest*
  9374. eval "ac_cv_lib_$ac_lib_var=no"
  9375. fi
  9376. rm -f conftest*
  9377. LIBS="$ac_save_LIBS"
  9378. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9379. echo "$ac_t""yes" 1>&6
  9380. echo $ac_n "checking for cblas_dgemm in -lcblas""... $ac_c" 1>&6
  9381. echo "configure:11845: checking for cblas_dgemm in -lcblas" >&5
  9382. ac_lib_var=`echo cblas'_'cblas_dgemm | sed 'y%./+-%__p_%'`
  9383. ac_save_LIBS="$LIBS"
  9384. LIBS="-lcblas -lf77blas -latlas $LIBS"
  9385. cat > conftest.$ac_ext <<EOF
  9386. #line 11851 "configure"
  9387. #include "confdefs.h"
  9388. /* Override any gcc2 internal prototype to avoid an error. */
  9389. /* We use char because int might match the return type of a gcc2
  9390. builtin and then its argument prototype would still apply. */
  9391. char cblas_dgemm();
  9392. int main() {
  9393. cblas_dgemm()
  9394. ; return 0; }
  9395. EOF
  9396. if { (eval echo configure:11862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9397. rm -rf conftest*
  9398. eval "ac_cv_lib_$ac_lib_var=yes"
  9399. else
  9400. echo "configure: failed program was:" >&5
  9401. cat conftest.$ac_ext >&5
  9402. rm -rf conftest*
  9403. eval "ac_cv_lib_$ac_lib_var=no"
  9404. fi
  9405. rm -f conftest*
  9406. LIBS="$ac_save_LIBS"
  9407. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9408. echo "$ac_t""yes" 1>&6
  9409. blas_ok=yes; BLASLIB="-lcblas -lf77blas -latlas"
  9410. else
  9411. echo "$ac_t""no" 1>&6
  9412. fi
  9413. else
  9414. echo "$ac_t""no" 1>&6
  9415. fi
  9416. else
  9417. echo "$ac_t""no" 1>&6
  9418. fi
  9419. LDFLAGS="$save_LDFLAGS"
  9420. # Do we have ATLAS?
  9421. if test $blas_ok = yes; then
  9422. cat >> confdefs.h <<\EOF
  9423. #define HAVE_LIBATLAS 1
  9424. EOF
  9425. fi
  9426. # BLAS in Apple vecLib framework? (Mac OS-X)
  9427. # not dependent on APP build
  9428. #if test -n "$MACOSX_APP"; then
  9429. if test $blas_ok = no; then
  9430. vlib_flags="-framework vecLib"
  9431. save_LIBS="$LIBS"
  9432. LIBS="$vlib_flags $LIBS"
  9433. echo $ac_n "checking for sgemm in $vlib_flags""... $ac_c" 1>&6
  9434. echo "configure:11908: checking for sgemm in $vlib_flags" >&5
  9435. cat > conftest.$ac_ext <<EOF
  9436. #line 11910 "configure"
  9437. #include "confdefs.h"
  9438. int main() {
  9439. sgemm
  9440. ; return 0; }
  9441. EOF
  9442. if { (eval echo configure:11917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9443. rm -rf conftest*
  9444. blas_ok=yes; BLASLIB="$vlib_flags"
  9445. else
  9446. echo "configure: failed program was:" >&5
  9447. cat conftest.$ac_ext >&5
  9448. rm -rf conftest*
  9449. BLASLIB=""
  9450. fi
  9451. rm -f conftest*
  9452. echo "$ac_t""$blas_ok" 1>&6
  9453. LIBS="$save_LIBS"
  9454. fi
  9455. #fi # $MACOSX_APP
  9456. # BLAS in PhiPACK libraries? (requires generic BLAS, too)
  9457. if test $blas_ok = no; then
  9458. echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
  9459. echo "configure:11935: checking for sgemm_ in -lblas" >&5
  9460. ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  9461. ac_save_LIBS="$LIBS"
  9462. LIBS="-lblas $LIBS"
  9463. cat > conftest.$ac_ext <<EOF
  9464. #line 11941 "configure"
  9465. #include "confdefs.h"
  9466. /* Override any gcc2 internal prototype to avoid an error. */
  9467. /* We use char because int might match the return type of a gcc2
  9468. builtin and then its argument prototype would still apply. */
  9469. char sgemm_();
  9470. int main() {
  9471. sgemm_()
  9472. ; return 0; }
  9473. EOF
  9474. if { (eval echo configure:11952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9475. rm -rf conftest*
  9476. eval "ac_cv_lib_$ac_lib_var=yes"
  9477. else
  9478. echo "configure: failed program was:" >&5
  9479. cat conftest.$ac_ext >&5
  9480. rm -rf conftest*
  9481. eval "ac_cv_lib_$ac_lib_var=no"
  9482. fi
  9483. rm -f conftest*
  9484. LIBS="$ac_save_LIBS"
  9485. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9486. echo "$ac_t""yes" 1>&6
  9487. echo $ac_n "checking for dgemm_ in -ldgemm""... $ac_c" 1>&6
  9488. echo "configure:11967: checking for dgemm_ in -ldgemm" >&5
  9489. ac_lib_var=`echo dgemm'_'dgemm_ | sed 'y%./+-%__p_%'`
  9490. ac_save_LIBS="$LIBS"
  9491. LIBS="-ldgemm -lblas $LIBS"
  9492. cat > conftest.$ac_ext <<EOF
  9493. #line 11973 "configure"
  9494. #include "confdefs.h"
  9495. /* Override any gcc2 internal prototype to avoid an error. */
  9496. /* We use char because int might match the return type of a gcc2
  9497. builtin and then its argument prototype would still apply. */
  9498. char dgemm_();
  9499. int main() {
  9500. dgemm_()
  9501. ; return 0; }
  9502. EOF
  9503. if { (eval echo configure:11984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9504. rm -rf conftest*
  9505. eval "ac_cv_lib_$ac_lib_var=yes"
  9506. else
  9507. echo "configure: failed program was:" >&5
  9508. cat conftest.$ac_ext >&5
  9509. rm -rf conftest*
  9510. eval "ac_cv_lib_$ac_lib_var=no"
  9511. fi
  9512. rm -f conftest*
  9513. LIBS="$ac_save_LIBS"
  9514. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9515. echo "$ac_t""yes" 1>&6
  9516. echo $ac_n "checking for sgemm_ in -lsgemm""... $ac_c" 1>&6
  9517. echo "configure:11999: checking for sgemm_ in -lsgemm" >&5
  9518. ac_lib_var=`echo sgemm'_'sgemm_ | sed 'y%./+-%__p_%'`
  9519. ac_save_LIBS="$LIBS"
  9520. LIBS="-lsgemm -lblas $LIBS"
  9521. cat > conftest.$ac_ext <<EOF
  9522. #line 12005 "configure"
  9523. #include "confdefs.h"
  9524. /* Override any gcc2 internal prototype to avoid an error. */
  9525. /* We use char because int might match the return type of a gcc2
  9526. builtin and then its argument prototype would still apply. */
  9527. char sgemm_();
  9528. int main() {
  9529. sgemm_()
  9530. ; return 0; }
  9531. EOF
  9532. if { (eval echo configure:12016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9533. rm -rf conftest*
  9534. eval "ac_cv_lib_$ac_lib_var=yes"
  9535. else
  9536. echo "configure: failed program was:" >&5
  9537. cat conftest.$ac_ext >&5
  9538. rm -rf conftest*
  9539. eval "ac_cv_lib_$ac_lib_var=no"
  9540. fi
  9541. rm -f conftest*
  9542. LIBS="$ac_save_LIBS"
  9543. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9544. echo "$ac_t""yes" 1>&6
  9545. blas_ok=yes; BLASLIB="-lsgemm -ldgemm -lblas"
  9546. else
  9547. echo "$ac_t""no" 1>&6
  9548. fi
  9549. else
  9550. echo "$ac_t""no" 1>&6
  9551. fi
  9552. else
  9553. echo "$ac_t""no" 1>&6
  9554. fi
  9555. fi
  9556. # BLAS in Sun Performance library?
  9557. if test $blas_ok = no; then
  9558. if test "x$GCC" != xyes; then # only works with Sun CC
  9559. echo $ac_n "checking for acosp in -lsunmath""... $ac_c" 1>&6
  9560. echo "configure:12050: checking for acosp in -lsunmath" >&5
  9561. ac_lib_var=`echo sunmath'_'acosp | sed 'y%./+-%__p_%'`
  9562. ac_save_LIBS="$LIBS"
  9563. LIBS="-lsunmath $LIBS"
  9564. cat > conftest.$ac_ext <<EOF
  9565. #line 12056 "configure"
  9566. #include "confdefs.h"
  9567. /* Override any gcc2 internal prototype to avoid an error. */
  9568. /* We use char because int might match the return type of a gcc2
  9569. builtin and then its argument prototype would still apply. */
  9570. char acosp();
  9571. int main() {
  9572. acosp()
  9573. ; return 0; }
  9574. EOF
  9575. if { (eval echo configure:12067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9576. rm -rf conftest*
  9577. eval "ac_cv_lib_$ac_lib_var=yes"
  9578. else
  9579. echo "configure: failed program was:" >&5
  9580. cat conftest.$ac_ext >&5
  9581. rm -rf conftest*
  9582. eval "ac_cv_lib_$ac_lib_var=no"
  9583. fi
  9584. rm -f conftest*
  9585. LIBS="$ac_save_LIBS"
  9586. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9587. echo "$ac_t""yes" 1>&6
  9588. echo $ac_n "checking for sgemm_ in -lsunperf""... $ac_c" 1>&6
  9589. echo "configure:12082: checking for sgemm_ in -lsunperf" >&5
  9590. ac_lib_var=`echo sunperf'_'sgemm_ | sed 'y%./+-%__p_%'`
  9591. ac_save_LIBS="$LIBS"
  9592. LIBS="-lsunperf -lsunmath $LIBS"
  9593. cat > conftest.$ac_ext <<EOF
  9594. #line 12088 "configure"
  9595. #include "confdefs.h"
  9596. /* Override any gcc2 internal prototype to avoid an error. */
  9597. /* We use char because int might match the return type of a gcc2
  9598. builtin and then its argument prototype would still apply. */
  9599. char sgemm_();
  9600. int main() {
  9601. sgemm_()
  9602. ; return 0; }
  9603. EOF
  9604. if { (eval echo configure:12099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9605. rm -rf conftest*
  9606. eval "ac_cv_lib_$ac_lib_var=yes"
  9607. else
  9608. echo "configure: failed program was:" >&5
  9609. cat conftest.$ac_ext >&5
  9610. rm -rf conftest*
  9611. eval "ac_cv_lib_$ac_lib_var=no"
  9612. fi
  9613. rm -f conftest*
  9614. LIBS="$ac_save_LIBS"
  9615. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9616. echo "$ac_t""yes" 1>&6
  9617. blas_ok=yes; BLASLIB="-xlic_lib=sunperf -lsunmath"
  9618. else
  9619. echo "$ac_t""no" 1>&6
  9620. fi
  9621. else
  9622. echo "$ac_t""no" 1>&6
  9623. fi
  9624. fi
  9625. fi
  9626. # Generic BLAS library
  9627. if test $blas_ok = no; then
  9628. echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
  9629. echo "configure:12129: checking for sgemm_ in -lblas" >&5
  9630. ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  9631. ac_save_LIBS="$LIBS"
  9632. LIBS="-lblas $LIBS"
  9633. cat > conftest.$ac_ext <<EOF
  9634. #line 12135 "configure"
  9635. #include "confdefs.h"
  9636. /* Override any gcc2 internal prototype to avoid an error. */
  9637. /* We use char because int might match the return type of a gcc2
  9638. builtin and then its argument prototype would still apply. */
  9639. char sgemm_();
  9640. int main() {
  9641. sgemm_()
  9642. ; return 0; }
  9643. EOF
  9644. if { (eval echo configure:12146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9645. rm -rf conftest*
  9646. eval "ac_cv_lib_$ac_lib_var=yes"
  9647. else
  9648. echo "configure: failed program was:" >&5
  9649. cat conftest.$ac_ext >&5
  9650. rm -rf conftest*
  9651. eval "ac_cv_lib_$ac_lib_var=no"
  9652. fi
  9653. rm -f conftest*
  9654. LIBS="$ac_save_LIBS"
  9655. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9656. echo "$ac_t""yes" 1>&6
  9657. blas_ok=yes; BLASLIB="-lblas"
  9658. else
  9659. echo "$ac_t""no" 1>&6
  9660. fi
  9661. fi
  9662. if test $blas_ok = yes; then
  9663. cat >> confdefs.h <<\EOF
  9664. #define HAVE_LIBBLAS 1
  9665. EOF
  9666. fi
  9667. fi # $USE_BLAS
  9668. # Done checking BLAS
  9669. # Enable LAPACK option
  9670. echo $ac_n "checking whether to use LAPACK""... $ac_c" 1>&6
  9671. echo "configure:12185: checking whether to use LAPACK" >&5
  9672. echo "$ac_t"""$with_lapack"" 1>&6
  9673. case "$with_lapack" in
  9674. "no") USE_LAPACK= ;;
  9675. "yes") USE_LAPACK="1" ;;
  9676. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9677. esac
  9678. LAPACKLIB=
  9679. LAPACKINC=
  9680. # LAPACK is useless without BLAS
  9681. if test -n "$USE_BLAS"; then
  9682. if test -n "$USE_LAPACK"; then
  9683. # With LAPACK includes directory
  9684. # LAPACK doesn't have includes (FORTRAN library)
  9685. # With LAPACK library directory
  9686. lapack_ok=no
  9687. echo $ac_n "checking for location of LAPACK includes""... $ac_c" 1>&6
  9688. echo "configure:12210: checking for location of LAPACK includes" >&5
  9689. case "$with_lapack_includes" in
  9690. y | ye | yes | n | no)
  9691. { echo "configure: error: *** You must supply a directory to --with-lapack-includes." 1>&2; exit 1; }
  9692. ;;
  9693. esac
  9694. echo "$ac_t""$with_lapack_includes" 1>&6
  9695. if test -n "$with_lapack_includes" ; then
  9696. for dir in $with_lapack_includes; do
  9697. if test -d "$dir"; then
  9698. LAPACKINC="$LAPACKINC -I$dir"
  9699. else
  9700. { echo "configure: error: *** LAPACK includes directory $dir does not exist." 1>&2; exit 1; }
  9701. fi
  9702. done
  9703. fi
  9704. echo $ac_n "checking for location of LAPACK library""... $ac_c" 1>&6
  9705. echo "configure:12230: checking for location of LAPACK library" >&5
  9706. case "$with_lapack_libs" in
  9707. y | ye | yes | n | no)
  9708. { echo "configure: error: *** You must supply a directory to --with-lapack-libs." 1>&2; exit 1; }
  9709. ;;
  9710. esac
  9711. echo "$ac_t""$with_lapack_libs" 1>&6
  9712. if test -n "$with_lapack_libs"; then
  9713. for dir in $with_lapack_libs; do
  9714. if test -d "$dir"; then
  9715. LAPACKLIB="$LAPACKLIB -L$dir"
  9716. else
  9717. { echo "configure: error: *** LAPACK library directory $dir does not exist." 1>&2; exit 1; }
  9718. fi
  9719. done
  9720. fi
  9721. # See if clapack.h exists (ATLAS)
  9722. save_CPPFLAGS="$CPPFLAGS"
  9723. CPPFLAGS="$LAPACKINC $CPPFLAGS"
  9724. for ac_hdr in clapack.h
  9725. do
  9726. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9727. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9728. echo "configure:12256: checking for $ac_hdr" >&5
  9729. cat > conftest.$ac_ext <<EOF
  9730. #line 12259 "configure"
  9731. #include "confdefs.h"
  9732. #include <$ac_hdr>
  9733. EOF
  9734. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9735. { (eval echo configure:12264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9736. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9737. if test -z "$ac_err"; then
  9738. rm -rf conftest*
  9739. eval "ac_cv_header_$ac_safe=yes"
  9740. else
  9741. echo "$ac_err" >&5
  9742. echo "configure: failed program was:" >&5
  9743. cat conftest.$ac_ext >&5
  9744. rm -rf conftest*
  9745. eval "ac_cv_header_$ac_safe=no"
  9746. fi
  9747. rm -f conftest*
  9748. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9749. echo "$ac_t""yes" 1>&6
  9750. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9751. cat >> confdefs.h <<EOF
  9752. #define $ac_tr_hdr 1
  9753. EOF
  9754. else
  9755. echo "$ac_t""no" 1>&6
  9756. fi
  9757. done
  9758. CPPFLAGS="$save_CPPFLAGS"
  9759. # LAPACK linked to by default?
  9760. if test lapack_ok=no; then
  9761. save_LIBS="$LIBS"; LIBS="$LIBS $BLASLIB $MATHLIB $FLIBS"
  9762. save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
  9763. echo $ac_n "checking for dsegv_""... $ac_c" 1>&6
  9764. echo "configure:12296: checking for dsegv_" >&5
  9765. cat > conftest.$ac_ext <<EOF
  9766. #line 12299 "configure"
  9767. #include "confdefs.h"
  9768. /* System header to define __stub macros and hopefully few prototypes,
  9769. which can conflict with char dsegv_(); below. */
  9770. #include <assert.h>
  9771. /* Override any gcc2 internal prototype to avoid an error. */
  9772. /* We use char because int might match the return type of a gcc2
  9773. builtin and then its argument prototype would still apply. */
  9774. char dsegv_();
  9775. int main() {
  9776. /* The GNU C library defines this for functions which it implements
  9777. to always fail with ENOSYS. Some functions are actually named
  9778. something starting with __ and the normal name is an alias. */
  9779. #if defined (__stub_dsegv_) || defined (__stub___dsegv_)
  9780. choke me
  9781. #else
  9782. dsegv_();
  9783. #endif
  9784. ; return 0; }
  9785. EOF
  9786. if { (eval echo configure:12322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9787. rm -rf conftest*
  9788. eval "ac_cv_func_dsegv_=yes"
  9789. else
  9790. echo "configure: failed program was:" >&5
  9791. cat conftest.$ac_ext >&5
  9792. rm -rf conftest*
  9793. eval "ac_cv_func_dsegv_=no"
  9794. fi
  9795. rm -f conftest*
  9796. if eval "test \"`echo '$ac_cv_func_'dsegv_`\" = yes"; then
  9797. echo "$ac_t""yes" 1>&6
  9798. lapack_ok=yes
  9799. else
  9800. echo "$ac_t""no" 1>&6
  9801. fi
  9802. LIBS="$save_LIBS"
  9803. LDFLAGS="$save_LDFLAGS"
  9804. fi
  9805. # Generic LAPACK library?
  9806. if test $lapack_ok = no; then
  9807. save_libs="$LIBS"; LIBS="$BLASLIB $MATHLIB $LIBS"
  9808. save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
  9809. echo $ac_n "checking for desgv_ in -llapack""... $ac_c" 1>&6
  9810. echo "configure:12349: checking for desgv_ in -llapack" >&5
  9811. ac_lib_var=`echo lapack'_'desgv_ | sed 'y%./+-%__p_%'`
  9812. ac_save_LIBS="$LIBS"
  9813. LIBS="-llapack $FLIBS $LIBS"
  9814. cat > conftest.$ac_ext <<EOF
  9815. #line 12355 "configure"
  9816. #include "confdefs.h"
  9817. /* Override any gcc2 internal prototype to avoid an error. */
  9818. /* We use char because int might match the return type of a gcc2
  9819. builtin and then its argument prototype would still apply. */
  9820. char desgv_();
  9821. int main() {
  9822. desgv_()
  9823. ; return 0; }
  9824. EOF
  9825. if { (eval echo configure:12366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9826. rm -rf conftest*
  9827. eval "ac_cv_lib_$ac_lib_var=yes"
  9828. else
  9829. echo "configure: failed program was:" >&5
  9830. cat conftest.$ac_ext >&5
  9831. rm -rf conftest*
  9832. eval "ac_cv_lib_$ac_lib_var=no"
  9833. fi
  9834. rm -f conftest*
  9835. LIBS="$ac_save_LIBS"
  9836. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9837. echo "$ac_t""yes" 1>&6
  9838. lapack_ok=yes; LAPACKLIB="-llapack"
  9839. else
  9840. echo "$ac_t""no" 1>&6
  9841. fi
  9842. LIBS="$save_LIBS"
  9843. LDFLAGS="$save_LDFLAGS"
  9844. fi
  9845. if test $lapack_ok = no; then
  9846. ac_save_ldflags="$LDFLAGS"
  9847. LDFLAGS="$LAPACKLIB $LDFLAGS"
  9848. echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
  9849. echo "configure:12398: checking for dgesv_ in -llapack" >&5
  9850. ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
  9851. ac_save_LIBS="$LIBS"
  9852. LIBS="-llapack $BLASLIB $MATHLIB $LIBS"
  9853. cat > conftest.$ac_ext <<EOF
  9854. #line 12404 "configure"
  9855. #include "confdefs.h"
  9856. /* Override any gcc2 internal prototype to avoid an error. */
  9857. /* We use char because int might match the return type of a gcc2
  9858. builtin and then its argument prototype would still apply. */
  9859. char dgesv_();
  9860. int main() {
  9861. dgesv_()
  9862. ; return 0; }
  9863. EOF
  9864. if { (eval echo configure:12415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9865. rm -rf conftest*
  9866. eval "ac_cv_lib_$ac_lib_var=yes"
  9867. else
  9868. echo "configure: failed program was:" >&5
  9869. cat conftest.$ac_ext >&5
  9870. rm -rf conftest*
  9871. eval "ac_cv_lib_$ac_lib_var=no"
  9872. fi
  9873. rm -f conftest*
  9874. LIBS="$ac_save_LIBS"
  9875. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9876. echo "$ac_t""yes" 1>&6
  9877. LAPACKLIB="$LAPACKLIB -llapack "
  9878. else
  9879. echo "$ac_t""no" 1>&6
  9880. echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
  9881. echo "configure:12434: checking for dgesv_ in -llapack" >&5
  9882. ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
  9883. ac_save_LIBS="$LIBS"
  9884. LIBS="-llapack $BLASLIB $MATHLIB -lg2c $LIBS"
  9885. cat > conftest.$ac_ext <<EOF
  9886. #line 12440 "configure"
  9887. #include "confdefs.h"
  9888. /* Override any gcc2 internal prototype to avoid an error. */
  9889. /* We use char because int might match the return type of a gcc2
  9890. builtin and then its argument prototype would still apply. */
  9891. char dgesv_();
  9892. int main() {
  9893. dgesv_()
  9894. ; return 0; }
  9895. EOF
  9896. if { (eval echo configure:12451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9897. rm -rf conftest*
  9898. eval "ac_cv_lib_$ac_lib_var=yes"
  9899. else
  9900. echo "configure: failed program was:" >&5
  9901. cat conftest.$ac_ext >&5
  9902. rm -rf conftest*
  9903. eval "ac_cv_lib_$ac_lib_var=no"
  9904. fi
  9905. rm -f conftest*
  9906. LIBS="$ac_save_LIBS"
  9907. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9908. echo "$ac_t""yes" 1>&6
  9909. LAPACKLIB="$LAPACKLIB -llapack -lg2c"
  9910. else
  9911. echo "$ac_t""no" 1>&6
  9912. LDFLAGS=${ac_save_ldflags}
  9913. { echo "configure: error: *** Unable to locate LAPACK library." 1>&2; exit 1; }
  9914. fi
  9915. fi
  9916. LDFLAGS=${ac_save_ldflags}
  9917. fi
  9918. cat >> confdefs.h <<\EOF
  9919. #define HAVE_LIBLAPACK 1
  9920. EOF
  9921. fi # $USE_LAPACK
  9922. fi # $USE_BLAS
  9923. # Done checking LAPACK
  9924. # Enable Cairo display driver option
  9925. echo $ac_n "checking whether to use Cairo""... $ac_c" 1>&6
  9926. echo "configure:12507: checking whether to use Cairo" >&5
  9927. echo "$ac_t"""$with_cairo"" 1>&6
  9928. case "$with_cairo" in
  9929. "no") USE_CAIRO= ;;
  9930. "yes") USE_CAIRO="1" ;;
  9931. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9932. esac
  9933. CAIROINC=
  9934. CAIROLIB=
  9935. if test -n "$USE_CAIRO"; then
  9936. cairo="cairo"
  9937. pkgs="cairo-ft cairo-fc cairo-pdf cairo-ps cairo-svg"
  9938. if test -n "$USE_X11"; then
  9939. pkgs="$pkgs cairo-xlib cairo-xlib-xrender"
  9940. fi
  9941. for pkg in $pkgs ; do
  9942. if pkg-config --exists $pkg ; then
  9943. cairo="$cairo $pkg"
  9944. fi
  9945. done
  9946. # With Cairo includes directory
  9947. #FIXME: somehow quote dirs with spaces in $cairo ?
  9948. CAIROINC=`pkg-config --cflags $cairo`
  9949. echo $ac_n "checking for location of cairo includes""... $ac_c" 1>&6
  9950. echo "configure:12539: checking for location of cairo includes" >&5
  9951. case "$with_cairo_includes" in
  9952. y | ye | yes | n | no)
  9953. { echo "configure: error: *** You must supply a directory to --with-cairo-includes." 1>&2; exit 1; }
  9954. ;;
  9955. esac
  9956. echo "$ac_t""$with_cairo_includes" 1>&6
  9957. if test -n "$with_cairo_includes" ; then
  9958. for dir in $with_cairo_includes; do
  9959. if test -d "$dir"; then
  9960. CAIROINC="$CAIROINC -I$dir"
  9961. else
  9962. { echo "configure: error: *** cairo includes directory $dir does not exist." 1>&2; exit 1; }
  9963. fi
  9964. done
  9965. fi
  9966. ac_save_cppflags="$CPPFLAGS"
  9967. CPPFLAGS="$CAIROINC $CPPFLAGS"
  9968. for ac_hdr in cairo.h
  9969. do
  9970. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9971. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9972. echo "configure:12565: checking for $ac_hdr" >&5
  9973. cat > conftest.$ac_ext <<EOF
  9974. #line 12568 "configure"
  9975. #include "confdefs.h"
  9976. #include <$ac_hdr>
  9977. EOF
  9978. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9979. { (eval echo configure:12573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9980. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9981. if test -z "$ac_err"; then
  9982. rm -rf conftest*
  9983. eval "ac_cv_header_$ac_safe=yes"
  9984. else
  9985. echo "$ac_err" >&5
  9986. echo "configure: failed program was:" >&5
  9987. cat conftest.$ac_ext >&5
  9988. rm -rf conftest*
  9989. eval "ac_cv_header_$ac_safe=no"
  9990. fi
  9991. rm -f conftest*
  9992. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9993. echo "$ac_t""yes" 1>&6
  9994. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9995. cat >> confdefs.h <<EOF
  9996. #define $ac_tr_hdr 1
  9997. EOF
  9998. else
  9999. echo "$ac_t""no" 1>&6
  10000. { echo "configure: error: *** Unable to locate Cairo includes." 1>&2; exit 1; }
  10001. fi
  10002. done
  10003. CPPFLAGS=$ac_save_cppflags
  10004. # With Cairo library directory
  10005. CAIROLIB=`pkg-config --libs $cairo`
  10006. echo $ac_n "checking for location of cairo library""... $ac_c" 1>&6
  10007. echo "configure:12609: checking for location of cairo library" >&5
  10008. case "$with_cairo_libs" in
  10009. y | ye | yes | n | no)
  10010. { echo "configure: error: *** You must supply a directory to --with-cairo-libs." 1>&2; exit 1; }
  10011. ;;
  10012. esac
  10013. echo "$ac_t""$with_cairo_libs" 1>&6
  10014. if test -n "$with_cairo_libs"; then
  10015. for dir in $with_cairo_libs; do
  10016. if test -d "$dir"; then
  10017. CAIROLIB="$CAIROLIB -L$dir"
  10018. else
  10019. { echo "configure: error: *** cairo library directory $dir does not exist." 1>&2; exit 1; }
  10020. fi
  10021. done
  10022. fi
  10023. echo $ac_n "checking for cairo linking flags""... $ac_c" 1>&6
  10024. echo "configure:12629: checking for cairo linking flags" >&5
  10025. case "$with_cairo_ldflags" in
  10026. y | ye | yes | n | no)
  10027. { echo "configure: error: *** You must supply a directory to --with-cairo-ldflags." 1>&2; exit 1; }
  10028. ;;
  10029. esac
  10030. echo "$ac_t""$with_cairo_ldflags" 1>&6
  10031. CAIROLIB="$CAIROLIB $with_cairo_ldflags"
  10032. ac_save_libs="$LIBS"
  10033. ac_save_ldflags="$LDFLAGS"
  10034. LIBS=" $CAIROLIB $LIBS"
  10035. LDFLAGS=" $LDFLAGS"
  10036. echo $ac_n "checking for cairo_create""... $ac_c" 1>&6
  10037. echo "configure:12645: checking for cairo_create" >&5
  10038. cat > conftest.$ac_ext <<EOF
  10039. #line 12648 "configure"
  10040. #include "confdefs.h"
  10041. /* System header to define __stub macros and hopefully few prototypes,
  10042. which can conflict with char cairo_create(); below. */
  10043. #include <assert.h>
  10044. /* Override any gcc2 internal prototype to avoid an error. */
  10045. /* We use char because int might match the return type of a gcc2
  10046. builtin and then its argument prototype would still apply. */
  10047. char cairo_create();
  10048. int main() {
  10049. /* The GNU C library defines this for functions which it implements
  10050. to always fail with ENOSYS. Some functions are actually named
  10051. something starting with __ and the normal name is an alias. */
  10052. #if defined (__stub_cairo_create) || defined (__stub___cairo_create)
  10053. choke me
  10054. #else
  10055. cairo_create();
  10056. #endif
  10057. ; return 0; }
  10058. EOF
  10059. if { (eval echo configure:12671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10060. rm -rf conftest*
  10061. eval "ac_cv_func_cairo_create=yes"
  10062. else
  10063. echo "configure: failed program was:" >&5
  10064. cat conftest.$ac_ext >&5
  10065. rm -rf conftest*
  10066. eval "ac_cv_func_cairo_create=no"
  10067. fi
  10068. rm -f conftest*
  10069. if eval "test \"`echo '$ac_cv_func_'cairo_create`\" = yes"; then
  10070. echo "$ac_t""yes" 1>&6
  10071. :
  10072. else
  10073. echo "$ac_t""no" 1>&6
  10074. { echo "configure: error: *** Unable to locate cairo_create." 1>&2; exit 1; }
  10075. fi
  10076. LIBS=${ac_save_libs}
  10077. LDFLAGS=${ac_save_ldflags}
  10078. ac_save_libs="$LIBS"
  10079. ac_save_ldflags="$LDFLAGS"
  10080. LIBS=" $CAIROLIB $LIBS"
  10081. LDFLAGS=" $LDFLAGS"
  10082. echo $ac_n "checking for cairo_xlib_surface_create_with_xrender_format""... $ac_c" 1>&6
  10083. echo "configure:12705: checking for cairo_xlib_surface_create_with_xrender_format" >&5
  10084. cat > conftest.$ac_ext <<EOF
  10085. #line 12708 "configure"
  10086. #include "confdefs.h"
  10087. /* System header to define __stub macros and hopefully few prototypes,
  10088. which can conflict with char cairo_xlib_surface_create_with_xrender_format(); below. */
  10089. #include <assert.h>
  10090. /* Override any gcc2 internal prototype to avoid an error. */
  10091. /* We use char because int might match the return type of a gcc2
  10092. builtin and then its argument prototype would still apply. */
  10093. char cairo_xlib_surface_create_with_xrender_format();
  10094. int main() {
  10095. /* The GNU C library defines this for functions which it implements
  10096. to always fail with ENOSYS. Some functions are actually named
  10097. something starting with __ and the normal name is an alias. */
  10098. #if defined (__stub_cairo_xlib_surface_create_with_xrender_format) || defined (__stub___cairo_xlib_surface_create_with_xrender_format)
  10099. choke me
  10100. #else
  10101. cairo_xlib_surface_create_with_xrender_format();
  10102. #endif
  10103. ; return 0; }
  10104. EOF
  10105. if { (eval echo configure:12731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10106. rm -rf conftest*
  10107. eval "ac_cv_func_cairo_xlib_surface_create_with_xrender_format=yes"
  10108. else
  10109. echo "configure: failed program was:" >&5
  10110. cat conftest.$ac_ext >&5
  10111. rm -rf conftest*
  10112. eval "ac_cv_func_cairo_xlib_surface_create_with_xrender_format=no"
  10113. fi
  10114. rm -f conftest*
  10115. if eval "test \"`echo '$ac_cv_func_'cairo_xlib_surface_create_with_xrender_format`\" = yes"; then
  10116. echo "$ac_t""yes" 1>&6
  10117. CAIRO_HAS_XRENDER=1
  10118. else
  10119. echo "$ac_t""no" 1>&6
  10120. CAIRO_HAS_XRENDER=
  10121. fi
  10122. LIBS=${ac_save_libs}
  10123. LDFLAGS=${ac_save_ldflags}
  10124. ac_save_libs="$LIBS"
  10125. ac_save_ldflags="$LDFLAGS"
  10126. LIBS=" $CAIROLIB $LIBS"
  10127. LDFLAGS=" $LDFLAGS"
  10128. echo $ac_n "checking for cairo_xlib_surface_get_xrender_format""... $ac_c" 1>&6
  10129. echo "configure:12764: checking for cairo_xlib_surface_get_xrender_format" >&5
  10130. cat > conftest.$ac_ext <<EOF
  10131. #line 12767 "configure"
  10132. #include "confdefs.h"
  10133. /* System header to define __stub macros and hopefully few prototypes,
  10134. which can conflict with char cairo_xlib_surface_get_xrender_format(); below. */
  10135. #include <assert.h>
  10136. /* Override any gcc2 internal prototype to avoid an error. */
  10137. /* We use char because int might match the return type of a gcc2
  10138. builtin and then its argument prototype would still apply. */
  10139. char cairo_xlib_surface_get_xrender_format();
  10140. int main() {
  10141. /* The GNU C library defines this for functions which it implements
  10142. to always fail with ENOSYS. Some functions are actually named
  10143. something starting with __ and the normal name is an alias. */
  10144. #if defined (__stub_cairo_xlib_surface_get_xrender_format) || defined (__stub___cairo_xlib_surface_get_xrender_format)
  10145. choke me
  10146. #else
  10147. cairo_xlib_surface_get_xrender_format();
  10148. #endif
  10149. ; return 0; }
  10150. EOF
  10151. if { (eval echo configure:12790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10152. rm -rf conftest*
  10153. eval "ac_cv_func_cairo_xlib_surface_get_xrender_format=yes"
  10154. else
  10155. echo "configure: failed program was:" >&5
  10156. cat conftest.$ac_ext >&5
  10157. rm -rf conftest*
  10158. eval "ac_cv_func_cairo_xlib_surface_get_xrender_format=no"
  10159. fi
  10160. rm -f conftest*
  10161. if eval "test \"`echo '$ac_cv_func_'cairo_xlib_surface_get_xrender_format`\" = yes"; then
  10162. echo "$ac_t""yes" 1>&6
  10163. CAIRO_HAS_XRENDER_SURFACE=1
  10164. else
  10165. echo "$ac_t""no" 1>&6
  10166. CAIRO_HAS_XRENDER_SURFACE=
  10167. fi
  10168. LIBS=${ac_save_libs}
  10169. LDFLAGS=${ac_save_ldflags}
  10170. CAIROLIB="$CAIROLIB $CAIROLDFLAGS"
  10171. fi # $USE_CAIRO
  10172. # Done checking Cairo
  10173. # Enable FreeType option
  10174. echo $ac_n "checking whether to use FreeType""... $ac_c" 1>&6
  10175. echo "configure:12832: checking whether to use FreeType" >&5
  10176. echo "$ac_t"""$with_freetype"" 1>&6
  10177. case "$with_freetype" in
  10178. "no") USE_FREETYPE= ;;
  10179. "yes") USE_FREETYPE="1" ;;
  10180. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10181. esac
  10182. FTINC=
  10183. FTLIB=
  10184. if test -n "$USE_FREETYPE"; then
  10185. # With FreeType includes directory
  10186. echo $ac_n "checking for location of FreeType includes""... $ac_c" 1>&6
  10187. echo "configure:12851: checking for location of FreeType includes" >&5
  10188. case "$with_freetype_includes" in
  10189. y | ye | yes | n | no)
  10190. { echo "configure: error: *** You must supply a directory to --with-freetype-includes." 1>&2; exit 1; }
  10191. ;;
  10192. esac
  10193. echo "$ac_t""$with_freetype_includes" 1>&6
  10194. if test -n "$with_freetype_includes" ; then
  10195. for dir in $with_freetype_includes; do
  10196. if test -d "$dir"; then
  10197. FTINC="$FTINC -I$dir"
  10198. else
  10199. { echo "configure: error: *** FreeType includes directory $dir does not exist." 1>&2; exit 1; }
  10200. fi
  10201. done
  10202. fi
  10203. ac_save_cppflags="$CPPFLAGS"
  10204. CPPFLAGS="$FTINC $CPPFLAGS"
  10205. for ac_hdr in ft2build.h
  10206. do
  10207. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10208. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10209. echo "configure:12877: checking for $ac_hdr" >&5
  10210. cat > conftest.$ac_ext <<EOF
  10211. #line 12880 "configure"
  10212. #include "confdefs.h"
  10213. #include <$ac_hdr>
  10214. EOF
  10215. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10216. { (eval echo configure:12885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10217. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10218. if test -z "$ac_err"; then
  10219. rm -rf conftest*
  10220. eval "ac_cv_header_$ac_safe=yes"
  10221. else
  10222. echo "$ac_err" >&5
  10223. echo "configure: failed program was:" >&5
  10224. cat conftest.$ac_ext >&5
  10225. rm -rf conftest*
  10226. eval "ac_cv_header_$ac_safe=no"
  10227. fi
  10228. rm -f conftest*
  10229. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10230. echo "$ac_t""yes" 1>&6
  10231. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10232. cat >> confdefs.h <<EOF
  10233. #define $ac_tr_hdr 1
  10234. EOF
  10235. else
  10236. echo "$ac_t""no" 1>&6
  10237. { echo "configure: error: *** Unable to locate FreeType includes." 1>&2; exit 1; }
  10238. fi
  10239. done
  10240. CPPFLAGS=$ac_save_cppflags
  10241. # With FreeType library directory
  10242. echo $ac_n "checking for location of FreeType library""... $ac_c" 1>&6
  10243. echo "configure:12919: checking for location of FreeType library" >&5
  10244. case "$with_freetype_libs" in
  10245. y | ye | yes | n | no)
  10246. { echo "configure: error: *** You must supply a directory to --with-freetype-libs." 1>&2; exit 1; }
  10247. ;;
  10248. esac
  10249. echo "$ac_t""$with_freetype_libs" 1>&6
  10250. if test -n "$with_freetype_libs"; then
  10251. for dir in $with_freetype_libs; do
  10252. if test -d "$dir"; then
  10253. FTLIB="$FTLIB -L$dir"
  10254. else
  10255. { echo "configure: error: *** FreeType library directory $dir does not exist." 1>&2; exit 1; }
  10256. fi
  10257. done
  10258. fi
  10259. ac_save_ldflags="$LDFLAGS"
  10260. LDFLAGS="$FTLIB $LDFLAGS"
  10261. echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
  10262. echo "configure:12944: checking for FT_Init_FreeType in -lfreetype" >&5
  10263. ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
  10264. ac_save_LIBS="$LIBS"
  10265. LIBS="-lfreetype $LIBS"
  10266. cat > conftest.$ac_ext <<EOF
  10267. #line 12950 "configure"
  10268. #include "confdefs.h"
  10269. /* Override any gcc2 internal prototype to avoid an error. */
  10270. /* We use char because int might match the return type of a gcc2
  10271. builtin and then its argument prototype would still apply. */
  10272. char FT_Init_FreeType();
  10273. int main() {
  10274. FT_Init_FreeType()
  10275. ; return 0; }
  10276. EOF
  10277. if { (eval echo configure:12961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10278. rm -rf conftest*
  10279. eval "ac_cv_lib_$ac_lib_var=yes"
  10280. else
  10281. echo "configure: failed program was:" >&5
  10282. cat conftest.$ac_ext >&5
  10283. rm -rf conftest*
  10284. eval "ac_cv_lib_$ac_lib_var=no"
  10285. fi
  10286. rm -f conftest*
  10287. LIBS="$ac_save_LIBS"
  10288. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10289. echo "$ac_t""yes" 1>&6
  10290. FTLIB="$FTLIB -lfreetype "
  10291. else
  10292. echo "$ac_t""no" 1>&6
  10293. LDFLAGS=${ac_save_ldflags}
  10294. { echo "configure: error: *** Unable to locate FreeType library." 1>&2; exit 1; }
  10295. fi
  10296. LDFLAGS=${ac_save_ldflags}
  10297. fi # $USE_FREETYPE
  10298. # Done checking FreeType
  10299. # Enable NLS option
  10300. echo $ac_n "checking whether to use NLS""... $ac_c" 1>&6
  10301. echo "configure:13002: checking whether to use NLS" >&5
  10302. echo "$ac_t"""$with_nls"" 1>&6
  10303. case "$with_nls" in
  10304. "no") USE_NLS= ;;
  10305. "yes") USE_NLS="1" ;;
  10306. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10307. esac
  10308. INTLLIB=
  10309. HAVE_NLS=
  10310. if test -n "${USE_NLS}" ; then
  10311. cat >> confdefs.h <<\EOF
  10312. #define USE_NLS 1
  10313. EOF
  10314. echo $ac_n "checking for gettext""... $ac_c" 1>&6
  10315. echo "configure:13022: checking for gettext" >&5
  10316. cat > conftest.$ac_ext <<EOF
  10317. #line 13025 "configure"
  10318. #include "confdefs.h"
  10319. /* System header to define __stub macros and hopefully few prototypes,
  10320. which can conflict with char gettext(); below. */
  10321. #include <assert.h>
  10322. /* Override any gcc2 internal prototype to avoid an error. */
  10323. /* We use char because int might match the return type of a gcc2
  10324. builtin and then its argument prototype would still apply. */
  10325. char gettext();
  10326. int main() {
  10327. /* The GNU C library defines this for functions which it implements
  10328. to always fail with ENOSYS. Some functions are actually named
  10329. something starting with __ and the normal name is an alias. */
  10330. #if defined (__stub_gettext) || defined (__stub___gettext)
  10331. choke me
  10332. #else
  10333. gettext();
  10334. #endif
  10335. ; return 0; }
  10336. EOF
  10337. if { (eval echo configure:13048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10338. rm -rf conftest*
  10339. eval "ac_cv_func_gettext=yes"
  10340. else
  10341. echo "configure: failed program was:" >&5
  10342. cat conftest.$ac_ext >&5
  10343. rm -rf conftest*
  10344. eval "ac_cv_func_gettext=no"
  10345. fi
  10346. rm -f conftest*
  10347. if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
  10348. echo "$ac_t""yes" 1>&6
  10349. INTLLIB=
  10350. else
  10351. echo "$ac_t""no" 1>&6
  10352. echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
  10353. echo "configure:13066: checking for gettext in -lintl" >&5
  10354. ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
  10355. ac_save_LIBS="$LIBS"
  10356. LIBS="-lintl $LIBS"
  10357. cat > conftest.$ac_ext <<EOF
  10358. #line 13072 "configure"
  10359. #include "confdefs.h"
  10360. /* Override any gcc2 internal prototype to avoid an error. */
  10361. /* We use char because int might match the return type of a gcc2
  10362. builtin and then its argument prototype would still apply. */
  10363. char gettext();
  10364. int main() {
  10365. gettext()
  10366. ; return 0; }
  10367. EOF
  10368. if { (eval echo configure:13083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10369. rm -rf conftest*
  10370. eval "ac_cv_lib_$ac_lib_var=yes"
  10371. else
  10372. echo "configure: failed program was:" >&5
  10373. cat conftest.$ac_ext >&5
  10374. rm -rf conftest*
  10375. eval "ac_cv_lib_$ac_lib_var=no"
  10376. fi
  10377. rm -f conftest*
  10378. LIBS="$ac_save_LIBS"
  10379. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10380. echo "$ac_t""yes" 1>&6
  10381. INTLLIB=-lintl
  10382. else
  10383. echo "$ac_t""no" 1>&6
  10384. { echo "configure: error: *** Unable to locate gettext() function." 1>&2; exit 1; }
  10385. fi
  10386. fi
  10387. HAVE_NLS=1
  10388. fi
  10389. # Enable C++ option
  10390. echo $ac_n "checking whether to use C++""... $ac_c" 1>&6
  10391. echo "configure:13118: checking whether to use C++" >&5
  10392. echo "$ac_t"""$with_cxx"" 1>&6
  10393. case "$with_cxx" in
  10394. "no") USE_CXX= ;;
  10395. "yes") USE_CXX="1" ;;
  10396. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10397. esac
  10398. if test -n "$USE_CXX"; then
  10399. for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
  10400. do
  10401. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10402. set dummy $ac_prog; ac_word=$2
  10403. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  10404. echo "configure:13134: checking for $ac_word" >&5
  10405. if test -n "$CXX"; then
  10406. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10407. else
  10408. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  10409. ac_dummy="$PATH"
  10410. for ac_dir in $ac_dummy; do
  10411. test -z "$ac_dir" && ac_dir=.
  10412. if test -f $ac_dir/$ac_word; then
  10413. ac_cv_prog_CXX="$ac_prog"
  10414. break
  10415. fi
  10416. done
  10417. IFS="$ac_save_ifs"
  10418. fi
  10419. CXX="$ac_cv_prog_CXX"
  10420. if test -n "$CXX"; then
  10421. echo "$ac_t""$CXX" 1>&6
  10422. else
  10423. echo "$ac_t""no" 1>&6
  10424. fi
  10425. test -n "$CXX" && break
  10426. done
  10427. test -n "$CXX" || CXX="gcc"
  10428. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  10429. echo "configure:13163: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  10430. ac_ext=C
  10431. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  10432. ac_cpp='$CXXCPP $CPPFLAGS'
  10433. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  10434. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  10435. cross_compiling=$ac_cv_prog_cxx_cross
  10436. cat > conftest.$ac_ext << EOF
  10437. #line 13174 "configure"
  10438. #include "confdefs.h"
  10439. int main(){return(0);}
  10440. EOF
  10441. if { (eval echo configure:13179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10442. ac_cv_prog_cxx_works=yes
  10443. # If we can't run a trivial program, we are probably using a cross compiler.
  10444. if (./conftest; exit) 2>/dev/null; then
  10445. ac_cv_prog_cxx_cross=no
  10446. else
  10447. ac_cv_prog_cxx_cross=yes
  10448. fi
  10449. else
  10450. echo "configure: failed program was:" >&5
  10451. cat conftest.$ac_ext >&5
  10452. ac_cv_prog_cxx_works=no
  10453. fi
  10454. rm -fr conftest*
  10455. ac_ext=c
  10456. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  10457. ac_cpp='$CPP $CPPFLAGS'
  10458. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  10459. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  10460. cross_compiling=$ac_cv_prog_cc_cross
  10461. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  10462. if test $ac_cv_prog_cxx_works = no; then
  10463. { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  10464. fi
  10465. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  10466. echo "configure:13205: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  10467. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  10468. cross_compiling=$ac_cv_prog_cxx_cross
  10469. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  10470. echo "configure:13210: checking whether we are using GNU C++" >&5
  10471. cat > conftest.C <<EOF
  10472. #ifdef __GNUC__
  10473. yes;
  10474. #endif
  10475. EOF
  10476. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:13217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  10477. ac_cv_prog_gxx=yes
  10478. else
  10479. ac_cv_prog_gxx=no
  10480. fi
  10481. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  10482. if test $ac_cv_prog_gxx = yes; then
  10483. GXX=yes
  10484. else
  10485. GXX=
  10486. fi
  10487. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  10488. ac_save_CXXFLAGS="$CXXFLAGS"
  10489. CXXFLAGS=
  10490. echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  10491. echo "configure:13235: checking whether ${CXX-g++} accepts -g" >&5
  10492. echo 'void f(){}' > conftest.cc
  10493. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  10494. ac_cv_prog_cxx_g=yes
  10495. else
  10496. ac_cv_prog_cxx_g=no
  10497. fi
  10498. rm -f conftest*
  10499. echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  10500. if test "$ac_test_CXXFLAGS" = set; then
  10501. CXXFLAGS="$ac_save_CXXFLAGS"
  10502. elif test $ac_cv_prog_cxx_g = yes; then
  10503. if test "$GXX" = yes; then
  10504. CXXFLAGS="-g -O2"
  10505. else
  10506. CXXFLAGS="-g"
  10507. fi
  10508. else
  10509. if test "$GXX" = yes; then
  10510. CXXFLAGS="-O2"
  10511. else
  10512. CXXFLAGS=
  10513. fi
  10514. fi
  10515. else
  10516. CXX=
  10517. CXXFLAGS=
  10518. fi
  10519. # Done checking C++
  10520. # Enable openDWG option
  10521. echo $ac_n "checking whether to use openDWG""... $ac_c" 1>&6
  10522. echo "configure:13276: checking whether to use openDWG" >&5
  10523. echo "$ac_t"""$with_opendwg"" 1>&6
  10524. case "$with_opendwg" in
  10525. "no") USE_OPENDWG= ;;
  10526. "yes") USE_OPENDWG="1" ;;
  10527. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10528. esac
  10529. OPENDWGINCPATH=
  10530. OPENDWGLIBPATH=
  10531. OPENDWGLIB=
  10532. if test -n "${USE_OPENDWG}"; then
  10533. # With OPENDWG includes directory
  10534. echo $ac_n "checking for location of openDGW includes""... $ac_c" 1>&6
  10535. echo "configure:13296: checking for location of openDGW includes" >&5
  10536. case "$with_opendwg_includes" in
  10537. y | ye | yes | n | no)
  10538. { echo "configure: error: *** You must supply a directory to --with-opendwg-includes." 1>&2; exit 1; }
  10539. ;;
  10540. esac
  10541. echo "$ac_t""$with_opendwg_includes" 1>&6
  10542. if test -n "$with_opendwg_includes" ; then
  10543. for dir in $with_opendwg_includes; do
  10544. if test -d "$dir"; then
  10545. OPENDWGINCPATH="$OPENDWGINCPATH -I$dir"
  10546. else
  10547. { echo "configure: error: *** openDGW includes directory $dir does not exist." 1>&2; exit 1; }
  10548. fi
  10549. done
  10550. fi
  10551. ac_save_cppflags="$CPPFLAGS"
  10552. CPPFLAGS="$OPENDWGINCPATH $CPPFLAGS"
  10553. for ac_hdr in ad2.h
  10554. do
  10555. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10556. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10557. echo "configure:13322: checking for $ac_hdr" >&5
  10558. cat > conftest.$ac_ext <<EOF
  10559. #line 13325 "configure"
  10560. #include "confdefs.h"
  10561. #include <$ac_hdr>
  10562. EOF
  10563. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10564. { (eval echo configure:13330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10565. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10566. if test -z "$ac_err"; then
  10567. rm -rf conftest*
  10568. eval "ac_cv_header_$ac_safe=yes"
  10569. else
  10570. echo "$ac_err" >&5
  10571. echo "configure: failed program was:" >&5
  10572. cat conftest.$ac_ext >&5
  10573. rm -rf conftest*
  10574. eval "ac_cv_header_$ac_safe=no"
  10575. fi
  10576. rm -f conftest*
  10577. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10578. echo "$ac_t""yes" 1>&6
  10579. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10580. cat >> confdefs.h <<EOF
  10581. #define $ac_tr_hdr 1
  10582. EOF
  10583. else
  10584. echo "$ac_t""no" 1>&6
  10585. { echo "configure: error: *** Unable to locate openDWG includes." 1>&2; exit 1; }
  10586. fi
  10587. done
  10588. CPPFLAGS=$ac_save_cppflags
  10589. # With OPENDWG library directory
  10590. echo $ac_n "checking for location of openDWG library""... $ac_c" 1>&6
  10591. echo "configure:13364: checking for location of openDWG library" >&5
  10592. case "$with_opendwg_libs" in
  10593. y | ye | yes | n | no)
  10594. { echo "configure: error: *** You must supply a directory to --with-opendwg-libs." 1>&2; exit 1; }
  10595. ;;
  10596. esac
  10597. echo "$ac_t""$with_opendwg_libs" 1>&6
  10598. if test -n "$with_opendwg_libs"; then
  10599. for dir in $with_opendwg_libs; do
  10600. if test -d "$dir"; then
  10601. OPENDWGLIBPATH="$OPENDWGLIBPATH -L$dir"
  10602. else
  10603. { echo "configure: error: *** openDWG library directory $dir does not exist." 1>&2; exit 1; }
  10604. fi
  10605. done
  10606. fi
  10607. #search for ad2.a, ad3.a ... in openDWG toolkit directory:
  10608. #FIX ME how to program this test??
  10609. #LOC_CHECK_LIBS(ad?.a,adSeekLayer,openDWG,$OPENDWGLIBPATH,OPENDWGLIB,,)
  10610. #
  10611. #for now hack (but working):
  10612. TRUEOPENDWGLIBPATH=`echo "$OPENDWGLIBPATH" | cut -b3-`
  10613. adlib=`ls -1 "$TRUEOPENDWGLIBPATH"/ad?.a | tail -1`
  10614. OPENDWGLIB="$adlib"
  10615. fi # $USE_OPENDWG
  10616. # Done checking OPENDWG
  10617. # Enable pthread option
  10618. echo $ac_n "checking whether to use POSIX threads""... $ac_c" 1>&6
  10619. echo "configure:13405: checking whether to use POSIX threads" >&5
  10620. echo "$ac_t"""$with_pthread"" 1>&6
  10621. case "$with_pthread" in
  10622. "no") USE_PTHREAD= ;;
  10623. "yes") USE_PTHREAD="1" ;;
  10624. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10625. esac
  10626. PTHREADINCPATH=
  10627. PTHREADLIBPATH=
  10628. PTHREADLIB=
  10629. if test -n "$USE_PTHREAD"; then
  10630. # With pthread includes directory
  10631. echo $ac_n "checking for location of POSIX threads includes""... $ac_c" 1>&6
  10632. echo "configure:13425: checking for location of POSIX threads includes" >&5
  10633. case "$with_pthread_includes" in
  10634. y | ye | yes | n | no)
  10635. { echo "configure: error: *** You must supply a directory to --with-pthread-includes." 1>&2; exit 1; }
  10636. ;;
  10637. esac
  10638. echo "$ac_t""$with_pthread_includes" 1>&6
  10639. if test -n "$with_pthread_includes" ; then
  10640. for dir in $with_pthread_includes; do
  10641. if test -d "$dir"; then
  10642. PTHREADINCPATH="$PTHREADINCPATH -I$dir"
  10643. else
  10644. { echo "configure: error: *** POSIX threads includes directory $dir does not exist." 1>&2; exit 1; }
  10645. fi
  10646. done
  10647. fi
  10648. ac_save_cppflags="$CPPFLAGS"
  10649. CPPFLAGS="$PTHREADINCPATH $CPPFLAGS"
  10650. for ac_hdr in pthread.h
  10651. do
  10652. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10653. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10654. echo "configure:13451: checking for $ac_hdr" >&5
  10655. cat > conftest.$ac_ext <<EOF
  10656. #line 13454 "configure"
  10657. #include "confdefs.h"
  10658. #include <$ac_hdr>
  10659. EOF
  10660. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10661. { (eval echo configure:13459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10662. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10663. if test -z "$ac_err"; then
  10664. rm -rf conftest*
  10665. eval "ac_cv_header_$ac_safe=yes"
  10666. else
  10667. echo "$ac_err" >&5
  10668. echo "configure: failed program was:" >&5
  10669. cat conftest.$ac_ext >&5
  10670. rm -rf conftest*
  10671. eval "ac_cv_header_$ac_safe=no"
  10672. fi
  10673. rm -f conftest*
  10674. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10675. echo "$ac_t""yes" 1>&6
  10676. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10677. cat >> confdefs.h <<EOF
  10678. #define $ac_tr_hdr 1
  10679. EOF
  10680. else
  10681. echo "$ac_t""no" 1>&6
  10682. { echo "configure: error: *** Unable to locate POSIX threads includes." 1>&2; exit 1; }
  10683. fi
  10684. done
  10685. CPPFLAGS=$ac_save_cppflags
  10686. # With pthread library directory
  10687. echo $ac_n "checking for location of POSIX threads library""... $ac_c" 1>&6
  10688. echo "configure:13493: checking for location of POSIX threads library" >&5
  10689. case "$with_pthread_libs" in
  10690. y | ye | yes | n | no)
  10691. { echo "configure: error: *** You must supply a directory to --with-pthread-libs." 1>&2; exit 1; }
  10692. ;;
  10693. esac
  10694. echo "$ac_t""$with_pthread_libs" 1>&6
  10695. if test -n "$with_pthread_libs"; then
  10696. for dir in $with_pthread_libs; do
  10697. if test -d "$dir"; then
  10698. PTHREADLIBPATH="$PTHREADLIBPATH -L$dir"
  10699. else
  10700. { echo "configure: error: *** POSIX threads library directory $dir does not exist." 1>&2; exit 1; }
  10701. fi
  10702. done
  10703. fi
  10704. ac_save_libs="$LIBS"
  10705. ac_save_ldflags="$LDFLAGS"
  10706. LIBS=" $LIBS"
  10707. LDFLAGS=" $LDFLAGS"
  10708. echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
  10709. echo "configure:13518: checking for pthread_create" >&5
  10710. cat > conftest.$ac_ext <<EOF
  10711. #line 13521 "configure"
  10712. #include "confdefs.h"
  10713. /* System header to define __stub macros and hopefully few prototypes,
  10714. which can conflict with char pthread_create(); below. */
  10715. #include <assert.h>
  10716. /* Override any gcc2 internal prototype to avoid an error. */
  10717. /* We use char because int might match the return type of a gcc2
  10718. builtin and then its argument prototype would still apply. */
  10719. char pthread_create();
  10720. int main() {
  10721. /* The GNU C library defines this for functions which it implements
  10722. to always fail with ENOSYS. Some functions are actually named
  10723. something starting with __ and the normal name is an alias. */
  10724. #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
  10725. choke me
  10726. #else
  10727. pthread_create();
  10728. #endif
  10729. ; return 0; }
  10730. EOF
  10731. if { (eval echo configure:13544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10732. rm -rf conftest*
  10733. eval "ac_cv_func_pthread_create=yes"
  10734. else
  10735. echo "configure: failed program was:" >&5
  10736. cat conftest.$ac_ext >&5
  10737. rm -rf conftest*
  10738. eval "ac_cv_func_pthread_create=no"
  10739. fi
  10740. rm -f conftest*
  10741. if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
  10742. echo "$ac_t""yes" 1>&6
  10743. PTHREADLIB="$PTHREADLIB "
  10744. else
  10745. echo "$ac_t""no" 1>&6
  10746. ac_save_ldflags="$LDFLAGS"
  10747. LDFLAGS="$PTHREADLIBPATH $LDFLAGS"
  10748. echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
  10749. echo "configure:13571: checking for pthread_create in -lpthread" >&5
  10750. ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
  10751. ac_save_LIBS="$LIBS"
  10752. LIBS="-lpthread $LIBS"
  10753. cat > conftest.$ac_ext <<EOF
  10754. #line 13577 "configure"
  10755. #include "confdefs.h"
  10756. /* Override any gcc2 internal prototype to avoid an error. */
  10757. /* We use char because int might match the return type of a gcc2
  10758. builtin and then its argument prototype would still apply. */
  10759. char pthread_create();
  10760. int main() {
  10761. pthread_create()
  10762. ; return 0; }
  10763. EOF
  10764. if { (eval echo configure:13588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10765. rm -rf conftest*
  10766. eval "ac_cv_lib_$ac_lib_var=yes"
  10767. else
  10768. echo "configure: failed program was:" >&5
  10769. cat conftest.$ac_ext >&5
  10770. rm -rf conftest*
  10771. eval "ac_cv_lib_$ac_lib_var=no"
  10772. fi
  10773. rm -f conftest*
  10774. LIBS="$ac_save_LIBS"
  10775. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10776. echo "$ac_t""yes" 1>&6
  10777. PTHREADLIB="$PTHREADLIB -lpthread "
  10778. else
  10779. echo "$ac_t""no" 1>&6
  10780. LDFLAGS=${ac_save_ldflags}
  10781. { echo "configure: error: *** Unable to locate POSIX threads library." 1>&2; exit 1; }
  10782. fi
  10783. LDFLAGS=${ac_save_ldflags}
  10784. fi
  10785. LIBS=${ac_save_libs}
  10786. LDFLAGS=${ac_save_ldflags}
  10787. fi # $USE_PTHREAD
  10788. # Done checking pthread
  10789. # Enable OpenMP option
  10790. echo $ac_n "checking whether to use OpenMP""... $ac_c" 1>&6
  10791. echo "configure:13638: checking whether to use OpenMP" >&5
  10792. echo "$ac_t"""$with_openmp"" 1>&6
  10793. case "$with_openmp" in
  10794. "no") USE_OPENMP= ;;
  10795. "yes") USE_OPENMP="1" ;;
  10796. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10797. esac
  10798. OMPINCPATH=
  10799. OMPLIBPATH=
  10800. OMPLIB=
  10801. OMPCFLAGS=
  10802. if test -n "$USE_OPENMP"; then
  10803. # With OpenMP includes directory
  10804. echo $ac_n "checking for location of OpenMP includes""... $ac_c" 1>&6
  10805. echo "configure:13659: checking for location of OpenMP includes" >&5
  10806. case "$with_openmp_includes" in
  10807. y | ye | yes | n | no)
  10808. { echo "configure: error: *** You must supply a directory to --with-openmp-includes." 1>&2; exit 1; }
  10809. ;;
  10810. esac
  10811. echo "$ac_t""$with_openmp_includes" 1>&6
  10812. if test -n "$with_openmp_includes" ; then
  10813. for dir in $with_openmp_includes; do
  10814. if test -d "$dir"; then
  10815. OMPINCPATH="$OMPINCPATH -I$dir"
  10816. else
  10817. { echo "configure: error: *** OpenMP includes directory $dir does not exist." 1>&2; exit 1; }
  10818. fi
  10819. done
  10820. fi
  10821. ac_save_cppflags="$CPPFLAGS"
  10822. CPPFLAGS="$OMPINCPATH $CPPFLAGS"
  10823. for ac_hdr in omp.h
  10824. do
  10825. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10826. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10827. echo "configure:13685: checking for $ac_hdr" >&5
  10828. cat > conftest.$ac_ext <<EOF
  10829. #line 13688 "configure"
  10830. #include "confdefs.h"
  10831. #include <$ac_hdr>
  10832. EOF
  10833. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10834. { (eval echo configure:13693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10835. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10836. if test -z "$ac_err"; then
  10837. rm -rf conftest*
  10838. eval "ac_cv_header_$ac_safe=yes"
  10839. else
  10840. echo "$ac_err" >&5
  10841. echo "configure: failed program was:" >&5
  10842. cat conftest.$ac_ext >&5
  10843. rm -rf conftest*
  10844. eval "ac_cv_header_$ac_safe=no"
  10845. fi
  10846. rm -f conftest*
  10847. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10848. echo "$ac_t""yes" 1>&6
  10849. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10850. cat >> confdefs.h <<EOF
  10851. #define $ac_tr_hdr 1
  10852. EOF
  10853. else
  10854. echo "$ac_t""no" 1>&6
  10855. { echo "configure: error: *** Unable to locate OpenMP includes." 1>&2; exit 1; }
  10856. fi
  10857. done
  10858. CPPFLAGS=$ac_save_cppflags
  10859. # With OpenMP library directory
  10860. # GCC et al.: -lgomp
  10861. # Solaris cc: -lmtsk
  10862. # AIX xlc: -lxlsmp
  10863. # SGI IRIX 6.5 MIPSpro C/C++: -lmp
  10864. echo $ac_n "checking for location of OpenMP library""... $ac_c" 1>&6
  10865. echo "configure:13731: checking for location of OpenMP library" >&5
  10866. case "$with_gomp_libs" in
  10867. y | ye | yes | n | no)
  10868. { echo "configure: error: *** You must supply a directory to --with-gomp-libs." 1>&2; exit 1; }
  10869. ;;
  10870. esac
  10871. echo "$ac_t""$with_gomp_libs" 1>&6
  10872. if test -n "$with_gomp_libs"; then
  10873. for dir in $with_gomp_libs; do
  10874. if test -d "$dir"; then
  10875. OMPLIBPATH="$OMPLIBPATH -L$dir"
  10876. else
  10877. { echo "configure: error: *** OpenMP library directory $dir does not exist." 1>&2; exit 1; }
  10878. fi
  10879. done
  10880. fi
  10881. ac_save_libs="$LIBS"
  10882. ac_save_ldflags="$LDFLAGS"
  10883. LIBS=" $LIBS"
  10884. LDFLAGS=" $LDFLAGS"
  10885. echo $ac_n "checking for GOMP_parallel_start""... $ac_c" 1>&6
  10886. echo "configure:13756: checking for GOMP_parallel_start" >&5
  10887. cat > conftest.$ac_ext <<EOF
  10888. #line 13759 "configure"
  10889. #include "confdefs.h"
  10890. /* System header to define __stub macros and hopefully few prototypes,
  10891. which can conflict with char GOMP_parallel_start(); below. */
  10892. #include <assert.h>
  10893. /* Override any gcc2 internal prototype to avoid an error. */
  10894. /* We use char because int might match the return type of a gcc2
  10895. builtin and then its argument prototype would still apply. */
  10896. char GOMP_parallel_start();
  10897. int main() {
  10898. /* The GNU C library defines this for functions which it implements
  10899. to always fail with ENOSYS. Some functions are actually named
  10900. something starting with __ and the normal name is an alias. */
  10901. #if defined (__stub_GOMP_parallel_start) || defined (__stub___GOMP_parallel_start)
  10902. choke me
  10903. #else
  10904. GOMP_parallel_start();
  10905. #endif
  10906. ; return 0; }
  10907. EOF
  10908. if { (eval echo configure:13782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10909. rm -rf conftest*
  10910. eval "ac_cv_func_GOMP_parallel_start=yes"
  10911. else
  10912. echo "configure: failed program was:" >&5
  10913. cat conftest.$ac_ext >&5
  10914. rm -rf conftest*
  10915. eval "ac_cv_func_GOMP_parallel_start=no"
  10916. fi
  10917. rm -f conftest*
  10918. if eval "test \"`echo '$ac_cv_func_'GOMP_parallel_start`\" = yes"; then
  10919. echo "$ac_t""yes" 1>&6
  10920. OMPLIB="$OMPLIB "
  10921. else
  10922. echo "$ac_t""no" 1>&6
  10923. ac_save_ldflags="$LDFLAGS"
  10924. LDFLAGS="$OMPLIBPATH $LDFLAGS"
  10925. echo $ac_n "checking for GOMP_parallel_start in -lgomp""... $ac_c" 1>&6
  10926. echo "configure:13809: checking for GOMP_parallel_start in -lgomp" >&5
  10927. ac_lib_var=`echo gomp'_'GOMP_parallel_start | sed 'y%./+-%__p_%'`
  10928. ac_save_LIBS="$LIBS"
  10929. LIBS="-lgomp $LIBS"
  10930. cat > conftest.$ac_ext <<EOF
  10931. #line 13815 "configure"
  10932. #include "confdefs.h"
  10933. /* Override any gcc2 internal prototype to avoid an error. */
  10934. /* We use char because int might match the return type of a gcc2
  10935. builtin and then its argument prototype would still apply. */
  10936. char GOMP_parallel_start();
  10937. int main() {
  10938. GOMP_parallel_start()
  10939. ; return 0; }
  10940. EOF
  10941. if { (eval echo configure:13826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10942. rm -rf conftest*
  10943. eval "ac_cv_lib_$ac_lib_var=yes"
  10944. else
  10945. echo "configure: failed program was:" >&5
  10946. cat conftest.$ac_ext >&5
  10947. rm -rf conftest*
  10948. eval "ac_cv_lib_$ac_lib_var=no"
  10949. fi
  10950. rm -f conftest*
  10951. LIBS="$ac_save_LIBS"
  10952. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10953. echo "$ac_t""yes" 1>&6
  10954. OMPLIB="$OMPLIB -lgomp "
  10955. else
  10956. echo "$ac_t""no" 1>&6
  10957. LDFLAGS=${ac_save_ldflags}
  10958. { echo "configure: error: *** Unable to locate OpenMP library." 1>&2; exit 1; }
  10959. fi
  10960. LDFLAGS=${ac_save_ldflags}
  10961. fi
  10962. LIBS=${ac_save_libs}
  10963. LDFLAGS=${ac_save_ldflags}
  10964. # compiler dependent
  10965. #if test ${CC} = "gcc" ; then
  10966. if test x$GCC = xyes ; then
  10967. # GNU C compiler (>= 4.2.1)
  10968. OMPCFLAGS=-fopenmp
  10969. elif test ${CC} = "icc" ; then
  10970. # Intel compiler
  10971. OMPCFLAGS=-openmp
  10972. elif test ${CC} = "opencc" ; then
  10973. # AMD's x86 Open64 compiler
  10974. OMPCFLAGS=-mp
  10975. elif test ${CC} = "pgcc" ; then
  10976. # Portland Group's compiler
  10977. OMPCFLAGS=-mp
  10978. # ... anybody else?
  10979. fi
  10980. # try to build a test program with "$CC $OMPCLFAGS" to confirm it works
  10981. #...how?
  10982. #echo "int main() {return 0;}" > test.c
  10983. #$CC $OMPCLFAGS test.c -o test
  10984. fi # $USE_OPENMP
  10985. # Done checking OpenMP
  10986. # Enable LFS (from cdr-tools)
  10987. # Check whether --enable-largefile or --disable-largefile was given.
  10988. if test "${enable_largefile+set}" = set; then
  10989. enableval="$enable_largefile"
  10990. :
  10991. fi
  10992. if test "$enable_largefile" = yes; then
  10993. echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
  10994. echo "configure:13905: checking for special C compiler options needed for large files" >&5
  10995. ac_cv_sys_largefile_CC=no
  10996. largefile_cc_opt=""
  10997. if test "$GCC" != yes; then
  10998. # IRIX 6.2 and later do not support large files by default,
  10999. # so use the C compiler's -n32 option if that helps.
  11000. cat > conftest.$ac_ext <<EOF
  11001. #line 13913 "configure"
  11002. #include "confdefs.h"
  11003. #include <sys/types.h>
  11004. /* Check that off_t can represent 2**63 - 1 correctly.
  11005. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  11006. since some C++ compilers masquerading as C compilers
  11007. incorrectly reject 9223372036854775807. */
  11008. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11009. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11010. && LARGE_OFF_T % 2147483647 == 1)
  11011. ? 1 : -1];
  11012. int main() {
  11013. ; return 0; }
  11014. EOF
  11015. if { (eval echo configure:13929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11016. :
  11017. else
  11018. echo "configure: failed program was:" >&5
  11019. cat conftest.$ac_ext >&5
  11020. rm -rf conftest*
  11021. ac_save_CC="${CC-cc}"
  11022. CC="$CC -n32"
  11023. cat > conftest.$ac_ext <<EOF
  11024. #line 13938 "configure"
  11025. #include "confdefs.h"
  11026. #include <sys/types.h>
  11027. /* Check that off_t can represent 2**63 - 1 correctly.
  11028. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  11029. since some C++ compilers masquerading as C compilers
  11030. incorrectly reject 9223372036854775807. */
  11031. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11032. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11033. && LARGE_OFF_T % 2147483647 == 1)
  11034. ? 1 : -1];
  11035. int main() {
  11036. ; return 0; }
  11037. EOF
  11038. if { (eval echo configure:13954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11039. rm -rf conftest*
  11040. ac_cv_sys_largefile_CC=' -n32'
  11041. else
  11042. echo "configure: failed program was:" >&5
  11043. cat conftest.$ac_ext >&5
  11044. fi
  11045. rm -f conftest*
  11046. CC="$ac_save_CC"
  11047. fi
  11048. rm -f conftest*
  11049. fi
  11050. echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6
  11051. if test "$ac_cv_sys_largefile_CC" != no; then
  11052. CC="$CC$ac_cv_sys_largefile_CC"
  11053. largefile_cc_opt="$ac_cv_sys_largefile_CC"
  11054. fi
  11055. echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
  11056. echo "configure:13974: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  11057. ac_cv_sys_file_offset_bits=no
  11058. cat > conftest.$ac_ext <<EOF
  11059. #line 13978 "configure"
  11060. #include "confdefs.h"
  11061. #include <sys/types.h>
  11062. /* Check that off_t can represent 2**63 - 1 correctly.
  11063. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  11064. since some C++ compilers masquerading as C compilers
  11065. incorrectly reject 9223372036854775807. */
  11066. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11067. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11068. && LARGE_OFF_T % 2147483647 == 1)
  11069. ? 1 : -1];
  11070. int main() {
  11071. ; return 0; }
  11072. EOF
  11073. if { (eval echo configure:13994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11074. :
  11075. else
  11076. echo "configure: failed program was:" >&5
  11077. cat conftest.$ac_ext >&5
  11078. rm -rf conftest*
  11079. cat > conftest.$ac_ext <<EOF
  11080. #line 14001 "configure"
  11081. #include "confdefs.h"
  11082. #define _FILE_OFFSET_BITS 64
  11083. #include <sys/types.h>
  11084. /* Check that off_t can represent 2**63 - 1 correctly.
  11085. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  11086. since some C++ compilers masquerading as C compilers
  11087. incorrectly reject 9223372036854775807. */
  11088. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11089. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11090. && LARGE_OFF_T % 2147483647 == 1)
  11091. ? 1 : -1];
  11092. int main() {
  11093. ; return 0; }
  11094. EOF
  11095. if { (eval echo configure:14019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11096. rm -rf conftest*
  11097. ac_cv_sys_file_offset_bits=64
  11098. else
  11099. echo "configure: failed program was:" >&5
  11100. cat conftest.$ac_ext >&5
  11101. fi
  11102. rm -f conftest*
  11103. fi
  11104. rm -f conftest*
  11105. echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
  11106. if test "$ac_cv_sys_file_offset_bits" != no; then
  11107. cat >> confdefs.h <<EOF
  11108. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  11109. EOF
  11110. fi
  11111. echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
  11112. echo "configure:14038: checking for _LARGE_FILES value needed for large files" >&5
  11113. ac_cv_sys_large_files=no
  11114. cat > conftest.$ac_ext <<EOF
  11115. #line 14042 "configure"
  11116. #include "confdefs.h"
  11117. #include <sys/types.h>
  11118. /* Check that off_t can represent 2**63 - 1 correctly.
  11119. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  11120. since some C++ compilers masquerading as C compilers
  11121. incorrectly reject 9223372036854775807. */
  11122. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11123. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11124. && LARGE_OFF_T % 2147483647 == 1)
  11125. ? 1 : -1];
  11126. int main() {
  11127. ; return 0; }
  11128. EOF
  11129. if { (eval echo configure:14058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11130. :
  11131. else
  11132. echo "configure: failed program was:" >&5
  11133. cat conftest.$ac_ext >&5
  11134. rm -rf conftest*
  11135. cat > conftest.$ac_ext <<EOF
  11136. #line 14065 "configure"
  11137. #include "confdefs.h"
  11138. #define _LARGE_FILES 1
  11139. #include <sys/types.h>
  11140. /* Check that off_t can represent 2**63 - 1 correctly.
  11141. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  11142. since some C++ compilers masquerading as C compilers
  11143. incorrectly reject 9223372036854775807. */
  11144. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11145. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11146. && LARGE_OFF_T % 2147483647 == 1)
  11147. ? 1 : -1];
  11148. int main() {
  11149. ; return 0; }
  11150. EOF
  11151. if { (eval echo configure:14083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11152. rm -rf conftest*
  11153. ac_cv_sys_large_files=1
  11154. else
  11155. echo "configure: failed program was:" >&5
  11156. cat conftest.$ac_ext >&5
  11157. fi
  11158. rm -f conftest*
  11159. fi
  11160. rm -f conftest*
  11161. echo "$ac_t""$ac_cv_sys_large_files" 1>&6
  11162. if test "$ac_cv_sys_large_files" != no; then
  11163. cat >> confdefs.h <<EOF
  11164. #define _LARGE_FILES $ac_cv_sys_large_files
  11165. EOF
  11166. fi
  11167. echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
  11168. echo "configure:14102: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  11169. ac_cv_sys_largefile_source=no
  11170. cat > conftest.$ac_ext <<EOF
  11171. #line 14106 "configure"
  11172. #include "confdefs.h"
  11173. #include <stdio.h>
  11174. int main() {
  11175. return !fseeko;
  11176. ; return 0; }
  11177. EOF
  11178. if { (eval echo configure:14113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11179. :
  11180. else
  11181. echo "configure: failed program was:" >&5
  11182. cat conftest.$ac_ext >&5
  11183. rm -rf conftest*
  11184. cat > conftest.$ac_ext <<EOF
  11185. #line 14120 "configure"
  11186. #include "confdefs.h"
  11187. #define _LARGEFILE_SOURCE 1
  11188. #include <stdio.h>
  11189. int main() {
  11190. return !fseeko;
  11191. ; return 0; }
  11192. EOF
  11193. if { (eval echo configure:14129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11194. rm -rf conftest*
  11195. ac_cv_sys_largefile_source=1
  11196. else
  11197. echo "configure: failed program was:" >&5
  11198. cat conftest.$ac_ext >&5
  11199. fi
  11200. rm -f conftest*
  11201. fi
  11202. rm -f conftest*
  11203. echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
  11204. if test "$ac_cv_sys_largefile_source" != no; then
  11205. cat >> confdefs.h <<EOF
  11206. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  11207. EOF
  11208. fi
  11209. fi
  11210. echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
  11211. echo "configure:14150: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  11212. ac_cv_sys_largefile_source=no
  11213. cat > conftest.$ac_ext <<EOF
  11214. #line 14154 "configure"
  11215. #include "confdefs.h"
  11216. #include <stdio.h>
  11217. int main() {
  11218. return !fseeko;
  11219. ; return 0; }
  11220. EOF
  11221. if { (eval echo configure:14161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11222. :
  11223. else
  11224. echo "configure: failed program was:" >&5
  11225. cat conftest.$ac_ext >&5
  11226. rm -rf conftest*
  11227. cat > conftest.$ac_ext <<EOF
  11228. #line 14168 "configure"
  11229. #include "confdefs.h"
  11230. #define _LARGEFILE_SOURCE 1
  11231. #include <stdio.h>
  11232. int main() {
  11233. return !fseeko;
  11234. ; return 0; }
  11235. EOF
  11236. if { (eval echo configure:14177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11237. rm -rf conftest*
  11238. ac_cv_sys_largefile_source=1
  11239. else
  11240. echo "configure: failed program was:" >&5
  11241. cat conftest.$ac_ext >&5
  11242. fi
  11243. rm -f conftest*
  11244. fi
  11245. rm -f conftest*
  11246. echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
  11247. if test "$ac_cv_sys_largefile_source" != no; then
  11248. cat >> confdefs.h <<EOF
  11249. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  11250. EOF
  11251. fi
  11252. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  11253. # in glibc 2.1.3, but that breaks too many other things.
  11254. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  11255. echo $ac_n "checking for fseeko""... $ac_c" 1>&6
  11256. echo "configure:14200: checking for fseeko" >&5
  11257. ac_cv_func_fseeko=no
  11258. cat > conftest.$ac_ext <<EOF
  11259. #line 14204 "configure"
  11260. #include "confdefs.h"
  11261. #include <stdio.h>
  11262. int main() {
  11263. return fseeko && fseeko (stdin, 0, 0);
  11264. ; return 0; }
  11265. EOF
  11266. if { (eval echo configure:14211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  11267. rm -rf conftest*
  11268. ac_cv_func_fseeko=yes
  11269. else
  11270. echo "configure: failed program was:" >&5
  11271. cat conftest.$ac_ext >&5
  11272. fi
  11273. rm -f conftest*
  11274. echo "$ac_t""$ac_cv_func_fseeko" 1>&6
  11275. if test $ac_cv_func_fseeko != no; then
  11276. cat >> confdefs.h <<\EOF
  11277. #define HAVE_FSEEKO 1
  11278. EOF
  11279. fi
  11280. echo $ac_n "checking if system supports Large Files at all""... $ac_c" 1>&6
  11281. echo "configure:14228: checking if system supports Large Files at all" >&5
  11282. cat > conftest.$ac_ext <<EOF
  11283. #line 14231 "configure"
  11284. #include "confdefs.h"
  11285. #include <stdio.h>
  11286. #include <sys/types.h>
  11287. int main() {
  11288. /*
  11289. * Check that off_t can represent 2**63 - 1 correctly.
  11290. * We can't simply "#define LARGE_OFF_T 9223372036854775807",
  11291. * since some C++ compilers masquerading as C compilers
  11292. * incorrectly reject 9223372036854775807.
  11293. *
  11294. * For MinGW, off64_t should be used and __MSVCRT_VERSION__ >= 0x0601
  11295. * (msvcrt.dll version 6.10 or higher) is needed for _fstat64 and _stat64.
  11296. */
  11297. #ifdef __MINGW32__
  11298. # define LARGE_OFF_T (((off64_t) 1 << 62) - 1 + ((off64_t) 1 << 62))
  11299. #else
  11300. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11301. #endif
  11302. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11303. && LARGE_OFF_T % 2147483647 == 1)
  11304. ? 1 : -1];
  11305. #ifdef __MINGW32__
  11306. return !fseeko64;
  11307. return !ftello64;
  11308. #else
  11309. return !fseeko;
  11310. return !ftello;
  11311. #endif
  11312. ; return 0; }
  11313. EOF
  11314. if { (eval echo configure:14263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11315. rm -rf conftest*
  11316. ac_cv_largefiles=yes
  11317. else
  11318. echo "configure: failed program was:" >&5
  11319. cat conftest.$ac_ext >&5
  11320. rm -rf conftest*
  11321. ac_cv_largefiles=no
  11322. fi
  11323. rm -f conftest*
  11324. echo "$ac_t""$ac_cv_largefiles" 1>&6
  11325. if test $ac_cv_largefiles = yes; then
  11326. cat >> confdefs.h <<\EOF
  11327. #define HAVE_LARGEFILES 1
  11328. EOF
  11329. fi
  11330. USE_LARGEFILES=
  11331. if test $ac_cv_largefiles = yes; then
  11332. USE_LARGEFILES=1
  11333. fi
  11334. # Done large file support
  11335. # Enable wxWidgets support (for wxGUI)
  11336. echo $ac_n "checking whether to use wxWidgets""... $ac_c" 1>&6
  11337. echo "configure:14292: checking whether to use wxWidgets" >&5
  11338. WXVERSION=
  11339. WXWIDGETSCXXFLAGS=
  11340. WXWIDGETSCPPFLAGS=
  11341. WXWIDGETSLIB=
  11342. USE_WXWIDGETS=
  11343. MACOSX_ARCHS_WXPYTHON=
  11344. if test "$with_wxwidgets" = "no" ; then
  11345. echo "$ac_t""no" 1>&6
  11346. else
  11347. echo "$ac_t""yes" 1>&6
  11348. USE_WXWIDGETS="1"
  11349. if test "$with_wxwidgets" != "yes" ; then
  11350. WX_CONFIG="$with_wxwidgets"
  11351. fi
  11352. # Extract the first word of "wx-config", so it can be a program name with args.
  11353. set dummy wx-config; ac_word=$2
  11354. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  11355. echo "configure:14313: checking for $ac_word" >&5
  11356. case "$WX_CONFIG" in
  11357. /*)
  11358. ac_cv_path_WX_CONFIG="$WX_CONFIG" # Let the user override the test with a path.
  11359. ;;
  11360. ?:/*)
  11361. ac_cv_path_WX_CONFIG="$WX_CONFIG" # Let the user override the test with a dos path.
  11362. ;;
  11363. *)
  11364. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  11365. ac_dummy="$PATH"
  11366. for ac_dir in $ac_dummy; do
  11367. test -z "$ac_dir" && ac_dir=.
  11368. if test -f $ac_dir/$ac_word; then
  11369. ac_cv_path_WX_CONFIG="$ac_dir/$ac_word"
  11370. break
  11371. fi
  11372. done
  11373. IFS="$ac_save_ifs"
  11374. test -z "$ac_cv_path_WX_CONFIG" && ac_cv_path_WX_CONFIG="no"
  11375. ;;
  11376. esac
  11377. WX_CONFIG="$ac_cv_path_WX_CONFIG"
  11378. if test -n "$WX_CONFIG"; then
  11379. echo "$ac_t""$WX_CONFIG" 1>&6
  11380. else
  11381. echo "$ac_t""no" 1>&6
  11382. fi
  11383. if test "$WX_CONFIG" = "no" ; then
  11384. { echo "configure: error: *** couldn't find wx-config
  11385. wxWidgets must be installed on your system.
  11386. Please check that wx-config is in path, the directory
  11387. where wxWidgets libraries are installed (returned by
  11388. 'wx-config --libs' or 'wx-config --static --libs' command)
  11389. is in LD_LIBRARY_PATH or equivalent variable and
  11390. wxWidgets version is 2.8.1 or above." 1>&2; exit 1; }
  11391. fi
  11392. # Check wxWidgets version
  11393. REQWX="2.8.1"
  11394. echo $ac_n "checking wxWidgets version""... $ac_c" 1>&6
  11395. echo "configure:14361: checking wxWidgets version" >&5
  11396. if WXVERSION=`"$WX_CONFIG" --version`; then
  11397. echo "$ac_t""$WXVERSION" 1>&6
  11398. else
  11399. echo "$ac_t""not found" 1>&6
  11400. { echo "configure: error: wxWidgets is required." 1>&2; exit 1; }
  11401. fi
  11402. if test `expr "$WXVERSION" \< "$REQWX"` = 1 ; then
  11403. { echo "configure: error: *** wxWidgets "$REQWX" or later is required." 1>&2; exit 1; }
  11404. fi
  11405. # With wxWidgets includes directory
  11406. WXWIDGETSCXXFLAGS=`"$WX_CONFIG" --cxxflags`
  11407. WXWIDGETSCPPFLAGS=`"$WX_CONFIG" --cppflags`
  11408. ac_save_cppflags="$CPPFLAGS"
  11409. CPPFLAGS="$WXWIDGETSCPPFLAGS $CPPFLAGS"
  11410. for ac_hdr in wx/wxprec.h
  11411. do
  11412. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  11413. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  11414. echo "configure:14384: checking for $ac_hdr" >&5
  11415. cat > conftest.$ac_ext <<EOF
  11416. #line 14387 "configure"
  11417. #include "confdefs.h"
  11418. #include <$ac_hdr>
  11419. EOF
  11420. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  11421. { (eval echo configure:14392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  11422. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  11423. if test -z "$ac_err"; then
  11424. rm -rf conftest*
  11425. eval "ac_cv_header_$ac_safe=yes"
  11426. else
  11427. echo "$ac_err" >&5
  11428. echo "configure: failed program was:" >&5
  11429. cat conftest.$ac_ext >&5
  11430. rm -rf conftest*
  11431. eval "ac_cv_header_$ac_safe=no"
  11432. fi
  11433. rm -f conftest*
  11434. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  11435. echo "$ac_t""yes" 1>&6
  11436. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  11437. cat >> confdefs.h <<EOF
  11438. #define $ac_tr_hdr 1
  11439. EOF
  11440. else
  11441. echo "$ac_t""no" 1>&6
  11442. { echo "configure: error: *** Unable to locate wxWidgets includes." 1>&2; exit 1; }
  11443. fi
  11444. done
  11445. CPPFLAGS=$ac_save_cppflags
  11446. # With wxWidgets library directory
  11447. WXWIDGETSLIB=`"$WX_CONFIG" --libs`
  11448. # shouldn't have arch flags in C/LD flags on OSX
  11449. for a in i386 ppc x86_64 ppc64
  11450. do
  11451. WXWIDGETSCXXFLAGS=`echo "$WXWIDGETSCXXFLAGS" | sed "s/-arch *$a//g"`
  11452. WXWIDGETSCPPFLAGS=`echo "$WXWIDGETSCPPFLAGS" | sed "s/-arch *$a//g"`
  11453. WXWIDGETSLIB=`echo "$WXWIDGETSLIB" | sed "s/-arch *$a//g"`
  11454. done
  11455. # check for available OSX archs in wxPython
  11456. if test -n "$MACOSX_ARCHS" ; then
  11457. wxver=`"$WX_CONFIG" --version`
  11458. wxlib=`"$WX_CONFIG" --prefix`/lib/lib`"$WX_CONFIG" --basename`-`echo "$wxver" | cut -d . -f1,2`.dylib
  11459. wxlibinfo=`file "$wxlib"`
  11460. for a in i386 ppc x86_64 ppc64
  11461. do
  11462. # add only if in MACOSX_ARCHS
  11463. if test -n "`echo \"$wxlibinfo\" | grep \"library $a\"`" ; then
  11464. if test -n "`echo \"$MACOSX_ARCHS\" | grep $a`" ; then
  11465. MACOSX_ARCHS_WXPYTHON="$MACOSX_ARCHS_WXPYTHON -arch $a"
  11466. fi
  11467. fi
  11468. done
  11469. fi
  11470. fi # $USE_WXWIDGETS
  11471. # Done checking wxWidgets
  11472. USE_TERMIO=
  11473. STRIPFLAG=
  11474. GRASS_HOME="${DSTDIR}"
  11475. trap '' 1 2 15
  11476. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  11477. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11478. # Let make expand exec_prefix.
  11479. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11480. # Any assignment to VPATH causes Sun make to only execute
  11481. # the first set of double-colon rules, so remove it if not needed.
  11482. # If there is a colon in the path, we need to keep it.
  11483. if test "x$srcdir" = x.; then
  11484. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  11485. fi
  11486. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  11487. DEFS=-DHAVE_CONFIG_H
  11488. # Without the "./", some shells look in PATH for config.status.
  11489. : ${CONFIG_STATUS=./config.status}
  11490. echo creating $CONFIG_STATUS
  11491. rm -f $CONFIG_STATUS
  11492. cat > $CONFIG_STATUS <<EOF
  11493. #! /bin/sh
  11494. # Generated automatically by configure.
  11495. # Run this file to recreate the current configuration.
  11496. # This directory was configured as follows,
  11497. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11498. #
  11499. # $0 $ac_configure_args
  11500. #
  11501. # Compiler output produced by configure, useful for debugging
  11502. # configure, is in ./config.log if it exists.
  11503. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  11504. for ac_option
  11505. do
  11506. case "\$ac_option" in
  11507. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11508. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  11509. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  11510. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  11511. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  11512. exit 0 ;;
  11513. -help | --help | --hel | --he | --h)
  11514. echo "\$ac_cs_usage"; exit 0 ;;
  11515. *) echo "\$ac_cs_usage"; exit 1 ;;
  11516. esac
  11517. done
  11518. ac_given_srcdir=$srcdir
  11519. ac_given_INSTALL="$INSTALL"
  11520. trap 'rm -fr `echo "include/Make/Platform.make include/Make/Doxyfile_arch_html include/Make/Doxyfile_arch_latex include/version.h grass.pc include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  11521. EOF
  11522. cat >> $CONFIG_STATUS <<EOF
  11523. # Protect against being on the right side of a sed subst in config.status.
  11524. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  11525. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  11526. $ac_vpsub
  11527. $extrasub
  11528. s%@SHELL@%$SHELL%g
  11529. s%@CFLAGS@%$CFLAGS%g
  11530. s%@CPPFLAGS@%$CPPFLAGS%g
  11531. s%@CXXFLAGS@%$CXXFLAGS%g
  11532. s%@FFLAGS@%$FFLAGS%g
  11533. s%@DEFS@%$DEFS%g
  11534. s%@LDFLAGS@%$LDFLAGS%g
  11535. s%@LIBS@%$LIBS%g
  11536. s%@exec_prefix@%$exec_prefix%g
  11537. s%@prefix@%$prefix%g
  11538. s%@program_transform_name@%$program_transform_name%g
  11539. s%@bindir@%$bindir%g
  11540. s%@sbindir@%$sbindir%g
  11541. s%@libexecdir@%$libexecdir%g
  11542. s%@datadir@%$datadir%g
  11543. s%@sysconfdir@%$sysconfdir%g
  11544. s%@sharedstatedir@%$sharedstatedir%g
  11545. s%@localstatedir@%$localstatedir%g
  11546. s%@libdir@%$libdir%g
  11547. s%@includedir@%$includedir%g
  11548. s%@oldincludedir@%$oldincludedir%g
  11549. s%@infodir@%$infodir%g
  11550. s%@mandir@%$mandir%g
  11551. s%@host@%$host%g
  11552. s%@host_alias@%$host_alias%g
  11553. s%@host_cpu@%$host_cpu%g
  11554. s%@host_vendor@%$host_vendor%g
  11555. s%@host_os@%$host_os%g
  11556. s%@CC@%$CC%g
  11557. s%@EXEEXT@%$EXEEXT%g
  11558. s%@MINGW32@%$MINGW32%g
  11559. s%@BINDIR@%$BINDIR%g
  11560. s%@pwd@%$pwd%g
  11561. s%@SRCDIR@%$SRCDIR%g
  11562. s%@DSTDIR@%$DSTDIR%g
  11563. s%@ARCH@%$ARCH%g
  11564. s%@GISBASE@%$GISBASE%g
  11565. s%@GRASS_BIN@%$GRASS_BIN%g
  11566. s%@SVN_VERSION@%$SVN_VERSION%g
  11567. s%@GRASS_VERSION_FILE@%$GRASS_VERSION_FILE%g
  11568. s%@GRASS_VERSION_MAJOR@%$GRASS_VERSION_MAJOR%g
  11569. s%@GRASS_VERSION_MINOR@%$GRASS_VERSION_MINOR%g
  11570. s%@GRASS_VERSION_RELEASE@%$GRASS_VERSION_RELEASE%g
  11571. s%@GRASS_VERSION_NUMBER@%$GRASS_VERSION_NUMBER%g
  11572. s%@GRASS_VERSION_DATE@%$GRASS_VERSION_DATE%g
  11573. s%@GRASS_VERSION_SVN@%$GRASS_VERSION_SVN%g
  11574. s%@NAME_VER@%$NAME_VER%g
  11575. s%@LIB_VER@%$LIB_VER%g
  11576. s%@MACOSX_APP@%$MACOSX_APP%g
  11577. s%@MACOSX_ARCHS@%$MACOSX_ARCHS%g
  11578. s%@MACOSX_SDK@%$MACOSX_SDK%g
  11579. s%@INSTDIR@%$INSTDIR%g
  11580. s%@GRASS_LIBRARY_TYPE@%$GRASS_LIBRARY_TYPE%g
  11581. s%@PLAT_OBJS@%$PLAT_OBJS%g
  11582. s%@CC_SEARCH_FLAGS@%$CC_SEARCH_FLAGS%g
  11583. s%@LD_SEARCH_FLAGS@%$LD_SEARCH_FLAGS%g
  11584. s%@LD_LIBRARY_PATH_VAR@%$LD_LIBRARY_PATH_VAR%g
  11585. s%@SHLIB_LD@%$SHLIB_LD%g
  11586. s%@SHLIB_LD_FLAGS@%$SHLIB_LD_FLAGS%g
  11587. s%@SHLIB_LD_LIBS@%$SHLIB_LD_LIBS%g
  11588. s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
  11589. s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
  11590. s%@STLIB_LD@%$STLIB_LD%g
  11591. s%@STLIB_SUFFIX@%$STLIB_SUFFIX%g
  11592. s%@INCLUDE_DIRS@%$INCLUDE_DIRS%g
  11593. s%@LIBRARY_DIRS@%$LIBRARY_DIRS%g
  11594. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  11595. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  11596. s%@INSTALL_DATA@%$INSTALL_DATA%g
  11597. s%@LEX@%$LEX%g
  11598. s%@LEXLIB@%$LEXLIB%g
  11599. s%@LEXPATH@%$LEXPATH%g
  11600. s%@YACC@%$YACC%g
  11601. s%@YACCPATH@%$YACCPATH%g
  11602. s%@RANLIB@%$RANLIB%g
  11603. s%@AR@%$AR%g
  11604. s%@ENV@%$ENV%g
  11605. s%@PERL@%$PERL%g
  11606. s%@CPP@%$CPP%g
  11607. s%@CROSS_COMPILING@%$CROSS_COMPILING%g
  11608. s%@X_CFLAGS@%$X_CFLAGS%g
  11609. s%@X_LIBS@%$X_LIBS%g
  11610. s%@X_PRE_LIBS@%$X_PRE_LIBS%g
  11611. s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  11612. s%@XLIB@%$XLIB%g
  11613. s%@XTLIB@%$XTLIB%g
  11614. s%@USE_X11@%$USE_X11%g
  11615. s%@DBMIEXTRALIB@%$DBMIEXTRALIB%g
  11616. s%@HAVE_ASPRINTF@%$HAVE_ASPRINTF%g
  11617. s%@MATHLIB@%$MATHLIB%g
  11618. s%@DLLIB@%$DLLIB%g
  11619. s%@ICONVLIB@%$ICONVLIB%g
  11620. s%@SOCKLIB@%$SOCKLIB%g
  11621. s%@HAVE_SOCKET@%$HAVE_SOCKET%g
  11622. s%@ZLIBINCPATH@%$ZLIBINCPATH%g
  11623. s%@ZLIBLIBPATH@%$ZLIBLIBPATH%g
  11624. s%@ZLIB@%$ZLIB%g
  11625. s%@PROJINC@%$PROJINC%g
  11626. s%@PROJLIB@%$PROJLIB%g
  11627. s%@PROJSHARE@%$PROJSHARE%g
  11628. s%@NAD2BIN@%$NAD2BIN%g
  11629. s%@REGEXINCPATH@%$REGEXINCPATH%g
  11630. s%@REGEXLIBPATH@%$REGEXLIBPATH%g
  11631. s%@REGEXLIB@%$REGEXLIB%g
  11632. s%@USE_REGEX@%$USE_REGEX%g
  11633. s%@READLINEINCPATH@%$READLINEINCPATH%g
  11634. s%@READLINELIBPATH@%$READLINELIBPATH%g
  11635. s%@READLINELIB@%$READLINELIB%g
  11636. s%@HISTORYLIB@%$HISTORYLIB%g
  11637. s%@GDAL_CONFIG@%$GDAL_CONFIG%g
  11638. s%@GDAL_LIBS@%$GDAL_LIBS%g
  11639. s%@GDAL_CFLAGS@%$GDAL_CFLAGS%g
  11640. s%@USE_GDAL@%$USE_GDAL%g
  11641. s%@USE_OGR@%$USE_OGR%g
  11642. s%@LIBLAS_CONFIG@%$LIBLAS_CONFIG%g
  11643. s%@LIBLAS_LIBS@%$LIBLAS_LIBS%g
  11644. s%@LIBLAS_CFLAGS@%$LIBLAS_CFLAGS%g
  11645. s%@LIBLAS_INC@%$LIBLAS_INC%g
  11646. s%@USE_LIBLAS@%$USE_LIBLAS%g
  11647. s%@NETCDF_CONFIG@%$NETCDF_CONFIG%g
  11648. s%@NETCDF_LIBS@%$NETCDF_LIBS%g
  11649. s%@NETCDF_CFLAGS@%$NETCDF_CFLAGS%g
  11650. s%@USE_NETCDF@%$USE_NETCDF%g
  11651. s%@GEOS_CONFIG@%$GEOS_CONFIG%g
  11652. s%@GEOS_LIBS@%$GEOS_LIBS%g
  11653. s%@GEOS_CFLAGS@%$GEOS_CFLAGS%g
  11654. s%@USE_GEOS@%$USE_GEOS%g
  11655. s%@TIFF_INCLUDE_DIRS@%$TIFF_INCLUDE_DIRS%g
  11656. s%@TIFF_LIBRARY_DIRS@%$TIFF_LIBRARY_DIRS%g
  11657. s%@TIFFLIB@%$TIFFLIB%g
  11658. s%@PNGINC@%$PNGINC%g
  11659. s%@PNGLIB@%$PNGLIB%g
  11660. s%@USE_PNG@%$USE_PNG%g
  11661. s%@USE_POSTGRES@%$USE_POSTGRES%g
  11662. s%@PQINCPATH@%$PQINCPATH%g
  11663. s%@PQLIBPATH@%$PQLIBPATH%g
  11664. s%@PQLIB@%$PQLIB%g
  11665. s%@MYSQLD_CONFIG@%$MYSQLD_CONFIG%g
  11666. s%@USE_MYSQL@%$USE_MYSQL%g
  11667. s%@MYSQLINCPATH@%$MYSQLINCPATH%g
  11668. s%@MYSQLLIBPATH@%$MYSQLLIBPATH%g
  11669. s%@MYSQLLIB@%$MYSQLLIB%g
  11670. s%@MYSQLDLIB@%$MYSQLDLIB%g
  11671. s%@USE_SQLITE@%$USE_SQLITE%g
  11672. s%@SQLITEINCPATH@%$SQLITEINCPATH%g
  11673. s%@SQLITELIBPATH@%$SQLITELIBPATH%g
  11674. s%@SQLITELIB@%$SQLITELIB%g
  11675. s%@USE_FFMPEG@%$USE_FFMPEG%g
  11676. s%@FFMPEGINCPATH@%$FFMPEGINCPATH%g
  11677. s%@FFMPEGLIBPATH@%$FFMPEGLIBPATH%g
  11678. s%@FFMPEGLIB@%$FFMPEGLIB%g
  11679. s%@USE_OPENGL@%$USE_OPENGL%g
  11680. s%@OPENGL_X11@%$OPENGL_X11%g
  11681. s%@OPENGL_AQUA@%$OPENGL_AQUA%g
  11682. s%@OPENGL_WINDOWS@%$OPENGL_WINDOWS%g
  11683. s%@OPENGLINC@%$OPENGLINC%g
  11684. s%@OPENGLLIB@%$OPENGLLIB%g
  11685. s%@OPENGLULIB@%$OPENGLULIB%g
  11686. s%@USE_TCLTK@%$USE_TCLTK%g
  11687. s%@TCLINCDIR@%$TCLINCDIR%g
  11688. s%@TKINCDIR@%$TKINCDIR%g
  11689. s%@TCLTKLIBPATH@%$TCLTKLIBPATH%g
  11690. s%@TCLTKLIBS@%$TCLTKLIBS%g
  11691. s%@MACOSX_ARCHS_TCLTK@%$MACOSX_ARCHS_TCLTK%g
  11692. s%@ODBCINC@%$ODBCINC%g
  11693. s%@ODBCLIB@%$ODBCLIB%g
  11694. s%@FFTWINC@%$FFTWINC%g
  11695. s%@FFTWLIB@%$FFTWLIB%g
  11696. s%@BLASLIB@%$BLASLIB%g
  11697. s%@BLASINC@%$BLASINC%g
  11698. s%@LAPACKLIB@%$LAPACKLIB%g
  11699. s%@LAPACKINC@%$LAPACKINC%g
  11700. s%@CAIRO_HAS_XRENDER@%$CAIRO_HAS_XRENDER%g
  11701. s%@CAIRO_HAS_XRENDER_SURFACE@%$CAIRO_HAS_XRENDER_SURFACE%g
  11702. s%@CAIROINC@%$CAIROINC%g
  11703. s%@CAIROLIB@%$CAIROLIB%g
  11704. s%@USE_CAIRO@%$USE_CAIRO%g
  11705. s%@FTINC@%$FTINC%g
  11706. s%@FTLIB@%$FTLIB%g
  11707. s%@INTLLIB@%$INTLLIB%g
  11708. s%@HAVE_NLS@%$HAVE_NLS%g
  11709. s%@CXX@%$CXX%g
  11710. s%@OPENDWGINCPATH@%$OPENDWGINCPATH%g
  11711. s%@OPENDWGLIBPATH@%$OPENDWGLIBPATH%g
  11712. s%@OPENDWGLIB@%$OPENDWGLIB%g
  11713. s%@USE_OPENDWG@%$USE_OPENDWG%g
  11714. s%@PTHREADINCPATH@%$PTHREADINCPATH%g
  11715. s%@PTHREADLIBPATH@%$PTHREADLIBPATH%g
  11716. s%@PTHREADLIB@%$PTHREADLIB%g
  11717. s%@USE_PTHREAD@%$USE_PTHREAD%g
  11718. s%@OMPINCPATH@%$OMPINCPATH%g
  11719. s%@OMPLIBPATH@%$OMPLIBPATH%g
  11720. s%@OMPLIB@%$OMPLIB%g
  11721. s%@OMPCFLAGS@%$OMPCFLAGS%g
  11722. s%@USE_OPENMP@%$USE_OPENMP%g
  11723. s%@USE_LARGEFILES@%$USE_LARGEFILES%g
  11724. s%@WX_CONFIG@%$WX_CONFIG%g
  11725. s%@WXVERSION@%$WXVERSION%g
  11726. s%@WXWIDGETSCXXFLAGS@%$WXWIDGETSCXXFLAGS%g
  11727. s%@WXWIDGETSCPPFLAGS@%$WXWIDGETSCPPFLAGS%g
  11728. s%@WXWIDGETSLIB@%$WXWIDGETSLIB%g
  11729. s%@USE_WXWIDGETS@%$USE_WXWIDGETS%g
  11730. s%@MACOSX_ARCHS_WXPYTHON@%$MACOSX_ARCHS_WXPYTHON%g
  11731. s%@USE_TERMIO@%$USE_TERMIO%g
  11732. s%@STRIPFLAG@%$STRIPFLAG%g
  11733. s%@GRASS_HOME@%$GRASS_HOME%g
  11734. CEOF
  11735. EOF
  11736. cat >> $CONFIG_STATUS <<\EOF
  11737. # Split the substitutions into bite-sized pieces for seds with
  11738. # small command number limits, like on Digital OSF/1 and HP-UX.
  11739. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  11740. ac_file=1 # Number of current file.
  11741. ac_beg=1 # First line for current file.
  11742. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  11743. ac_more_lines=:
  11744. ac_sed_cmds=""
  11745. while $ac_more_lines; do
  11746. if test $ac_beg -gt 1; then
  11747. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  11748. else
  11749. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  11750. fi
  11751. if test ! -s conftest.s$ac_file; then
  11752. ac_more_lines=false
  11753. rm -f conftest.s$ac_file
  11754. else
  11755. if test -z "$ac_sed_cmds"; then
  11756. ac_sed_cmds="sed -f conftest.s$ac_file"
  11757. else
  11758. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  11759. fi
  11760. ac_file=`expr $ac_file + 1`
  11761. ac_beg=$ac_end
  11762. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  11763. fi
  11764. done
  11765. if test -z "$ac_sed_cmds"; then
  11766. ac_sed_cmds=cat
  11767. fi
  11768. EOF
  11769. cat >> $CONFIG_STATUS <<EOF
  11770. CONFIG_FILES=\${CONFIG_FILES-"include/Make/Platform.make include/Make/Doxyfile_arch_html include/Make/Doxyfile_arch_latex include/version.h grass.pc"}
  11771. EOF
  11772. cat >> $CONFIG_STATUS <<\EOF
  11773. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  11774. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11775. case "$ac_file" in
  11776. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  11777. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11778. *) ac_file_in="${ac_file}.in" ;;
  11779. esac
  11780. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  11781. # Remove last slash and all that follows it. Not all systems have dirname.
  11782. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  11783. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  11784. # The file is in a subdirectory.
  11785. test ! -d "$ac_dir" && mkdir "$ac_dir"
  11786. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  11787. # A "../" for each directory in $ac_dir_suffix.
  11788. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  11789. else
  11790. ac_dir_suffix= ac_dots=
  11791. fi
  11792. case "$ac_given_srcdir" in
  11793. .) srcdir=.
  11794. if test -z "$ac_dots"; then top_srcdir=.
  11795. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  11796. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  11797. *) # Relative path.
  11798. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  11799. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  11800. esac
  11801. case "$ac_given_INSTALL" in
  11802. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  11803. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  11804. esac
  11805. echo creating "$ac_file"
  11806. rm -f "$ac_file"
  11807. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  11808. case "$ac_file" in
  11809. *Makefile*) ac_comsub="1i\\
  11810. # $configure_input" ;;
  11811. *) ac_comsub= ;;
  11812. esac
  11813. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  11814. sed -e "$ac_comsub
  11815. s%@configure_input@%$configure_input%g
  11816. s%@srcdir@%$srcdir%g
  11817. s%@top_srcdir@%$top_srcdir%g
  11818. s%@INSTALL@%$INSTALL%g
  11819. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  11820. fi; done
  11821. rm -f conftest.s*
  11822. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11823. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11824. #
  11825. # ac_d sets the value in "#define NAME VALUE" lines.
  11826. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11827. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  11828. ac_dC='\3'
  11829. ac_dD='%g'
  11830. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  11831. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11832. ac_uB='\([ ]\)%\1#\2define\3'
  11833. ac_uC=' '
  11834. ac_uD='\4%g'
  11835. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11836. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11837. ac_eB='$%\1#\2define\3'
  11838. ac_eC=' '
  11839. ac_eD='%g'
  11840. if test "${CONFIG_HEADERS+set}" != set; then
  11841. EOF
  11842. cat >> $CONFIG_STATUS <<EOF
  11843. CONFIG_HEADERS="include/config.h"
  11844. EOF
  11845. cat >> $CONFIG_STATUS <<\EOF
  11846. fi
  11847. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  11848. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11849. case "$ac_file" in
  11850. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  11851. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11852. *) ac_file_in="${ac_file}.in" ;;
  11853. esac
  11854. echo creating $ac_file
  11855. rm -f conftest.frag conftest.in conftest.out
  11856. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  11857. cat $ac_file_inputs > conftest.in
  11858. EOF
  11859. # Transform confdefs.h into a sed script conftest.vals that substitutes
  11860. # the proper values into config.h.in to produce config.h. And first:
  11861. # Protect against being on the right side of a sed subst in config.status.
  11862. # Protect against being in an unquoted here document in config.status.
  11863. rm -f conftest.vals
  11864. cat > conftest.hdr <<\EOF
  11865. s/[\\&%]/\\&/g
  11866. s%[\\$`]%\\&%g
  11867. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  11868. s%ac_d%ac_u%gp
  11869. s%ac_u%ac_e%gp
  11870. EOF
  11871. sed -n -f conftest.hdr confdefs.h > conftest.vals
  11872. rm -f conftest.hdr
  11873. # This sed command replaces #undef with comments. This is necessary, for
  11874. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11875. # on some systems where configure will not decide to define it.
  11876. cat >> conftest.vals <<\EOF
  11877. s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  11878. EOF
  11879. # Break up conftest.vals because some shells have a limit on
  11880. # the size of here documents, and old seds have small limits too.
  11881. rm -f conftest.tail
  11882. while :
  11883. do
  11884. ac_lines=`grep -c . conftest.vals`
  11885. # grep -c gives empty output for an empty file on some AIX systems.
  11886. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  11887. # Write a limited-size here document to conftest.frag.
  11888. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  11889. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  11890. echo 'CEOF
  11891. sed -f conftest.frag conftest.in > conftest.out
  11892. rm -f conftest.in
  11893. mv conftest.out conftest.in
  11894. ' >> $CONFIG_STATUS
  11895. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  11896. rm -f conftest.vals
  11897. mv conftest.tail conftest.vals
  11898. done
  11899. rm -f conftest.vals
  11900. cat >> $CONFIG_STATUS <<\EOF
  11901. rm -f conftest.frag conftest.h
  11902. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  11903. cat conftest.in >> conftest.h
  11904. rm -f conftest.in
  11905. if cmp -s $ac_file conftest.h 2>/dev/null; then
  11906. echo "$ac_file is unchanged"
  11907. rm -f conftest.h
  11908. else
  11909. # Remove last slash and all that follows it. Not all systems have dirname.
  11910. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  11911. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  11912. # The file is in a subdirectory.
  11913. test ! -d "$ac_dir" && mkdir "$ac_dir"
  11914. fi
  11915. rm -f $ac_file
  11916. mv conftest.h $ac_file
  11917. fi
  11918. fi; done
  11919. EOF
  11920. cat >> $CONFIG_STATUS <<EOF
  11921. EOF
  11922. cat >> $CONFIG_STATUS <<\EOF
  11923. exit 0
  11924. EOF
  11925. chmod +x $CONFIG_STATUS
  11926. rm -fr confdefs* $ac_clean_files
  11927. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  11928. echo "Copying config.status to config.status.${ARCH}"
  11929. cp -f config.status config.status.${ARCH}
  11930. # Display configuration status
  11931. USE_TOGL=
  11932. if test -n "${USE_TCLTK}" -a -n "${USE_OPENGL}" ; then
  11933. USE_TOGL="1"
  11934. fi
  11935. echo ""
  11936. echo "GRASS is now configured for: ${host}"
  11937. echo ""
  11938. echo " Source directory: ${SRCDIR}"
  11939. echo " Build directory: ${DSTDIR}"
  11940. echo " Installation directory: ${INSTDIR}"
  11941. echo " Startup script in directory: ${bindir}"
  11942. echo " C compiler: ${CC} ${CFLAGS}"
  11943. echo " C++ compiler: ${CXX} ${CXXFLAGS}"
  11944. #LOC_MSG([ FORTRAN compiler: ${F77} ${FFLAGS}])
  11945. echo " Building shared libraries: ${shared_ok}"
  11946. echo " OpenGL platform: ${OPENGL_TYPE}"
  11947. echo ""
  11948. echo " MacOSX application: `if test -n "${MACOSX_APP}" ; then echo yes ; else echo no ; fi`"
  11949. echo " MacOSX architectures: ${MACOSX_ARCHS}"
  11950. echo " MacOSX SDK: ${MACOSX_SDK}"
  11951. echo ""
  11952. echo " Tcl/Tk NVIZ: `if test -n "${USE_TOGL}" ; then echo yes ; else echo no ; fi`"
  11953. echo ""
  11954. echo " BLAS support: `if test -n "${USE_BLAS}" ; then echo yes ; else echo no ; fi`"
  11955. echo " C++ support: `if test -n "${USE_CXX}" ; then echo yes ; else echo no ; fi`"
  11956. echo " Cairo support: `if test -n "${USE_CAIRO}" ; then echo yes ; else echo no ; fi`"
  11957. echo " DWG support: `if test -n "${USE_OPENDWG}" ; then echo yes ; else echo no ; fi`"
  11958. echo " FFMPEG support: `if test -n "${USE_FFMPEG}" ; then echo yes ; else echo no ; fi`"
  11959. echo " FFTW support: `if test -n "${USE_FFTW}" ; then echo yes ; else echo no ; fi`"
  11960. echo " FreeType support: `if test -n "${USE_FREETYPE}" ; then echo yes ; else echo no ; fi`"
  11961. echo " GDAL support: `if test -n "${USE_GDAL}" ; then echo yes ; else echo no ; fi`"
  11962. echo " NETCDF support: `if test -n "${USE_NETCDF}" ; then echo yes ; else echo no ; fi`"
  11963. echo " GEOS support: `if test -n "${USE_GEOS}" ; then echo yes ; else echo no ; fi`"
  11964. echo " LAPACK support: `if test -n "${USE_LAPACK}" ; then echo yes ; else echo no ; fi`"
  11965. echo " Large File support (LFS): `if test -n "${USE_LARGEFILES}" ; then echo yes ; else echo no ; fi`"
  11966. echo " libLAS support: `if test -n "${USE_LIBLAS}" ; then echo yes ; else echo no ; fi`"
  11967. echo " MySQL support: `if test -n "${USE_MYSQL}" ; then echo yes ; else echo no ; fi`"
  11968. echo " NLS support: `if test -n "${USE_NLS}" ; then echo yes ; else echo no ; fi`"
  11969. echo " ODBC support: `if test -n "${USE_ODBC}" ; then echo yes ; else echo no ; fi`"
  11970. echo " OGR support: `if test -n "${USE_OGR}" ; then echo yes ; else echo no ; fi`"
  11971. echo " OpenGL support: `if test -n "${USE_OPENGL}" ; then echo yes ; else echo no ; fi`"
  11972. echo " OpenMP support: `if test -n "${USE_OPENMP}" ; then echo yes ; else echo no ; fi`"
  11973. echo " PNG support: `if test -n "${USE_PNG}" ; then echo yes ; else echo no ; fi`"
  11974. echo " POSIX thread support: `if test -n "${USE_PTHREAD}" ; then echo yes ; else echo no ; fi`"
  11975. echo " PostgreSQL support: `if test -n "${USE_POSTGRES}" ; then echo yes ; else echo no ; fi`"
  11976. echo " Readline support: `if test -n "${USE_READLINE}" ; then echo yes ; else echo no ; fi`"
  11977. echo " Regex support: `if test -n "${USE_REGEX}" ; then echo yes ; else echo no ; fi`"
  11978. echo " SQLite support: `if test -n "${USE_SQLITE}" ; then echo yes ; else echo no ; fi`"
  11979. echo " TIFF support: `if test -n "${USE_TIFF}" ; then echo yes ; else echo no ; fi`"
  11980. echo " Tcl/Tk support: `if test -n "${USE_TCLTK}" ; then echo yes ; else echo no ; fi`"
  11981. echo " wxWidgets support: `if test -n "${USE_WXWIDGETS}" ; then echo yes ; else echo no ; fi`"
  11982. echo " X11 support: `if test -n "${USE_X11}" ; then echo yes ; else echo no ; fi`"
  11983. echo ""