configure 375 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660
  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-postgres support PostgreSQL functionality (default: no)"
  35. ac_help="$ac_help
  36. --with-mysql support MySQL functionality (default: no)"
  37. ac_help="$ac_help
  38. --with-sqlite support SQLite functionality (default: yes)"
  39. ac_help="$ac_help
  40. --with-opengl support OpenGL functionality (default: yes)"
  41. ac_help="$ac_help
  42. --with-odbc support ODBC functionality (default: no)"
  43. ac_help="$ac_help
  44. --with-fftw support FFTW functionality (default: yes)"
  45. ac_help="$ac_help
  46. --with-blas support BLAS functionality (default: no)"
  47. ac_help="$ac_help
  48. --with-lapack support LAPACK functionality (default: no)"
  49. ac_help="$ac_help
  50. --with-cairo support Cairo functionality (default: yes)"
  51. ac_help="$ac_help
  52. --with-freetype support FreeType functionality (default: yes)"
  53. ac_help="$ac_help
  54. --with-nls support NLS functionality (default: no)"
  55. ac_help="$ac_help
  56. --with-readline support Readline functionality (default: no)"
  57. ac_help="$ac_help
  58. --with-opendwg support openDWG functionality (default: no)"
  59. ac_help="$ac_help
  60. --with-regex support regex functionality (default: yes)"
  61. ac_help="$ac_help
  62. --with-pthread support POSIX threads functionality (default: no)"
  63. ac_help="$ac_help
  64. --with-openmp support OpenMP functionality (default: no)"
  65. ac_help="$ac_help
  66. --with-opencl support OpenCL functionality (default: no)"
  67. ac_help="$ac_help
  68. --with-bzlib support BZIP2 functionality (default: no)"
  69. ac_help="$ac_help
  70. --with-zstd support Zstandard functionality (default: yes)"
  71. ac_help="$ac_help
  72. --with-gdal[=path/gdal-config]
  73. enable GDAL/OGR support (gdal-config with path,
  74. e.g. '--with-gdal=/usr/local/bin/gdal-config')"
  75. ac_help="$ac_help
  76. --with-liblas[=path/liblas-config]
  77. enable libLAS support (liblas-config with path,
  78. e.g. '--with-liblas=/usr/local/bin/liblas-config',
  79. default: no)"
  80. ac_help="$ac_help
  81. --with-pdal[=path/pdal-config]
  82. enable PDAL support (pdal-config with path,
  83. e.g. '--with-pdal=/usr/local/bin/pdal-config',
  84. default: no)"
  85. ac_help="$ac_help
  86. --with-wxwidgets[=path/wx-config]
  87. enable wxWidgets support (wx-config with path,
  88. e.g. '--with-wxwidgets=/usr/local/bin/wx-config',
  89. default: no)"
  90. ac_help="$ac_help
  91. --with-netcdf[=path/nc-config]
  92. enable NetCDF support (nc-config with path,
  93. e.g. '--with-nc=/usr/local/bin/nc-config',
  94. default: no)"
  95. ac_help="$ac_help
  96. --with-geos[=path/geos-config]
  97. enable GEOS support (geos-config with path,
  98. e.g. '--with-geos=/usr/local/bin/geos-config',
  99. default: no)"
  100. ac_help="$ac_help
  101. --with-includes=DIRS site include files are in DIRS"
  102. ac_help="$ac_help
  103. --with-libs=DIRS site library files are in DIRS"
  104. ac_help="$ac_help
  105. --with-zlib-includes=DIRS
  106. zlib include files are in DIRS"
  107. ac_help="$ac_help
  108. --with-zlib-libs=DIRS zlib library files are in DIRS"
  109. ac_help="$ac_help
  110. --with-bzlib-includes=DIRS
  111. BZIP2 include files are in DIRS"
  112. ac_help="$ac_help
  113. --with-bzlib-libs=DIRS BZIP2 library files are in DIRS"
  114. ac_help="$ac_help
  115. --with-zstd-includes=DIRS
  116. ZSTD include files are in DIRS"
  117. ac_help="$ac_help
  118. --with-zstd-libs=DIRS ZSTD library files are in DIRS"
  119. ac_help="$ac_help
  120. --with-readline-includes=DIRS
  121. Readline include files are in DIRS"
  122. ac_help="$ac_help
  123. --with-readline-libs=DIRS
  124. Readline library files are in DIRS"
  125. ac_help="$ac_help
  126. --with-tiff-includes=DIRS
  127. TIFF include files are in DIRS"
  128. ac_help="$ac_help
  129. --with-tiff-libs=DIRS TIFF library files are in DIRS"
  130. ac_help="$ac_help
  131. --with-png-includes=DIRS
  132. PNG include files are in DIRS"
  133. ac_help="$ac_help
  134. --with-png-libs=DIRS PNG library files are in DIRS"
  135. ac_help="$ac_help
  136. --with-postgres-includes=DIRS
  137. PostgreSQL include files are in DIRS"
  138. ac_help="$ac_help
  139. --with-postgres-libs=DIRS
  140. PostgreSQL library files are in DIRS"
  141. ac_help="$ac_help
  142. --with-mysql-includes=DIRS
  143. MySQL include files are in DIRS"
  144. ac_help="$ac_help
  145. --with-mysql-libs=DIRS MySQL library files are in DIRS"
  146. ac_help="$ac_help
  147. --with-sqlite-includes=DIRS
  148. SQLite include files are in DIRS"
  149. ac_help="$ac_help
  150. --with-sqlite-libs=DIRS SQLite library files are in DIRS"
  151. ac_help="$ac_help
  152. --with-opengl-includes=DIRS
  153. OpenGL include files are in DIRS"
  154. ac_help="$ac_help
  155. --with-opengl-libs=DIRS OpenGL library files are in DIRS"
  156. ac_help="$ac_help
  157. --with-opengl-framework=DIR
  158. OpenGL framework is in DIR"
  159. ac_help="$ac_help
  160. --with-odbc-includes=DIRS
  161. ODBC include files are in DIRS"
  162. ac_help="$ac_help
  163. --with-odbc-libs=DIRS ODBC library files are in DIRS"
  164. ac_help="$ac_help
  165. --with-fftw-includes=DIRS
  166. FFTW include files are in DIRS"
  167. ac_help="$ac_help
  168. --with-fftw-libs=DIRS FFTW library files are in DIRS"
  169. ac_help="$ac_help
  170. --with-blas-includes=DIRS
  171. BLAS include files are in DIRS"
  172. ac_help="$ac_help
  173. --with-blas-libs=DIRS BLAS library files are in DIRS"
  174. ac_help="$ac_help
  175. --with-lapack-includes=DIRS
  176. LAPACK include files are in DIRS"
  177. ac_help="$ac_help
  178. --with-lapack-libs=DIRS LAPACK library files are in DIRS"
  179. ac_help="$ac_help
  180. --with-cairo-includes=DIRS
  181. cairo include files are in DIRS"
  182. ac_help="$ac_help
  183. --with-cairo-libs=DIRS cairo library files are in DIRS"
  184. ac_help="$ac_help
  185. --with-cairo-ldflags=FLAGS
  186. cairo needs FLAGS when linking"
  187. ac_help="$ac_help
  188. --with-freetype-includes=DIRS
  189. FreeType include files are in DIRS"
  190. ac_help="$ac_help
  191. --with-freetype-libs=DIRS
  192. FreeType library files are in DIRS"
  193. ac_help="$ac_help
  194. --with-proj-includes=DIRS
  195. External PROJ.4 include files are in DIRS"
  196. ac_help="$ac_help
  197. --with-proj-libs=DIRS External PROJ.4 library files are in DIRS"
  198. ac_help="$ac_help
  199. --with-proj-share=DIR External PROJ.4 data files are in DIR"
  200. ac_help="$ac_help
  201. --with-opendwg-includes=DIRS
  202. openDWG include files are in DIRS"
  203. ac_help="$ac_help
  204. --with-opendwg-libs=DIRS
  205. openDWG library files are in DIRS"
  206. ac_help="$ac_help
  207. --with-regex-includes=DIRS
  208. regex include files are in DIRS"
  209. ac_help="$ac_help
  210. --with-regex-libs=DIRS regex library files are in DIRS"
  211. ac_help="$ac_help
  212. --with-pthread-includes=DIRS
  213. POSIX threads include files are in DIRS"
  214. ac_help="$ac_help
  215. --with-pthread-libs=DIRS
  216. POSIX threads library files are in DIRS"
  217. ac_help="$ac_help
  218. --with-openmp-includes=DIRS
  219. OpenMP include files are in DIRS"
  220. ac_help="$ac_help
  221. --with-openmp-libs=DIRS OpenMP library files are in DIRS"
  222. ac_help="$ac_help
  223. --with-opencl-includes=DIRS
  224. OpenCL include files are in DIRS"
  225. ac_help="$ac_help
  226. --with-opencl-libs=DIRS OpenCL library files are in DIRS"
  227. ac_help="$ac_help
  228. --with-x use the X Window System"
  229. ac_help="$ac_help
  230. --disable-largefile omit support for large files (LFS)"
  231. # Initialize some variables set by options.
  232. # The variables have the same names as the options, with
  233. # dashes changed to underlines.
  234. build=NONE
  235. cache_file=./config.cache
  236. exec_prefix=NONE
  237. host=NONE
  238. no_create=
  239. nonopt=NONE
  240. no_recursion=
  241. prefix=NONE
  242. program_prefix=NONE
  243. program_suffix=NONE
  244. program_transform_name=s,x,x,
  245. silent=
  246. site=
  247. srcdir=
  248. target=NONE
  249. verbose=
  250. x_includes=NONE
  251. x_libraries=NONE
  252. bindir='${exec_prefix}/bin'
  253. sbindir='${exec_prefix}/sbin'
  254. libexecdir='${exec_prefix}/libexec'
  255. datadir='${prefix}/share'
  256. sysconfdir='${prefix}/etc'
  257. sharedstatedir='${prefix}/com'
  258. localstatedir='${prefix}/var'
  259. libdir='${exec_prefix}/lib'
  260. includedir='${prefix}/include'
  261. oldincludedir='/usr/include'
  262. infodir='${prefix}/info'
  263. mandir='${prefix}/man'
  264. # Initialize some other variables.
  265. subdirs=
  266. MFLAGS= MAKEFLAGS=
  267. SHELL=${CONFIG_SHELL-/bin/sh}
  268. # Maximum number of lines to put in a shell here document.
  269. ac_max_here_lines=12
  270. ac_prev=
  271. for ac_option
  272. do
  273. # If the previous option needs an argument, assign it.
  274. if test -n "$ac_prev"; then
  275. eval "$ac_prev=\$ac_option"
  276. ac_prev=
  277. continue
  278. fi
  279. case "$ac_option" in
  280. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  281. *) ac_optarg= ;;
  282. esac
  283. # Accept the important Cygnus configure options, so we can diagnose typos.
  284. case "$ac_option" in
  285. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  286. ac_prev=bindir ;;
  287. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  288. bindir="$ac_optarg" ;;
  289. -build | --build | --buil | --bui | --bu)
  290. ac_prev=build ;;
  291. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  292. build="$ac_optarg" ;;
  293. -cache-file | --cache-file | --cache-fil | --cache-fi \
  294. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  295. ac_prev=cache_file ;;
  296. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  297. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  298. cache_file="$ac_optarg" ;;
  299. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  300. ac_prev=datadir ;;
  301. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  302. | --da=*)
  303. datadir="$ac_optarg" ;;
  304. -disable-* | --disable-*)
  305. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  306. # Reject names that are not valid shell variable names.
  307. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  308. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  309. fi
  310. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  311. eval "enable_${ac_feature}=no" ;;
  312. -enable-* | --enable-*)
  313. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  314. # Reject names that are not valid shell variable names.
  315. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  316. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  317. fi
  318. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  319. case "$ac_option" in
  320. *=*) ;;
  321. *) ac_optarg=yes ;;
  322. esac
  323. eval "enable_${ac_feature}='$ac_optarg'" ;;
  324. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  325. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  326. | --exec | --exe | --ex)
  327. ac_prev=exec_prefix ;;
  328. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  329. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  330. | --exec=* | --exe=* | --ex=*)
  331. exec_prefix="$ac_optarg" ;;
  332. -gas | --gas | --ga | --g)
  333. # Obsolete; use --with-gas.
  334. with_gas=yes ;;
  335. -help | --help | --hel | --he)
  336. # Omit some internal or obsolete options to make the list less imposing.
  337. # This message is too long to be a string in the A/UX 3.1 sh.
  338. cat << EOF
  339. Usage: configure [options] [host]
  340. Options: [defaults in brackets after descriptions]
  341. Configuration:
  342. --cache-file=FILE cache test results in FILE
  343. --help print this message
  344. --no-create do not create output files
  345. --quiet, --silent do not print \`checking...' messages
  346. --version print the version of autoconf that created configure
  347. Directory and file names:
  348. --prefix=PREFIX install architecture-independent files in PREFIX
  349. [$ac_default_prefix]
  350. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  351. [same as prefix]
  352. --bindir=DIR user executables in DIR [EPREFIX/bin]
  353. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  354. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  355. --datadir=DIR read-only architecture-independent data in DIR
  356. [PREFIX/share]
  357. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  358. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  359. [PREFIX/com]
  360. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  361. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  362. --includedir=DIR C header files in DIR [PREFIX/include]
  363. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  364. --infodir=DIR info documentation in DIR [PREFIX/info]
  365. --mandir=DIR man documentation in DIR [PREFIX/man]
  366. --srcdir=DIR find the sources in DIR [configure dir or ..]
  367. --program-prefix=PREFIX prepend PREFIX to installed program names
  368. --program-suffix=SUFFIX append SUFFIX to installed program names
  369. --program-transform-name=PROGRAM
  370. run sed PROGRAM on installed program names
  371. EOF
  372. cat << EOF
  373. Host type:
  374. --build=BUILD configure for building on BUILD [BUILD=HOST]
  375. --host=HOST configure for HOST [guessed]
  376. --target=TARGET configure for TARGET [TARGET=HOST]
  377. Features and packages:
  378. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  379. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  380. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  381. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  382. --x-includes=DIR X include files are in DIR
  383. --x-libraries=DIR X library files are in DIR
  384. EOF
  385. if test -n "$ac_help"; then
  386. echo "--enable and --with options recognized:$ac_help"
  387. fi
  388. exit 0 ;;
  389. -host | --host | --hos | --ho)
  390. ac_prev=host ;;
  391. -host=* | --host=* | --hos=* | --ho=*)
  392. host="$ac_optarg" ;;
  393. -includedir | --includedir | --includedi | --included | --include \
  394. | --includ | --inclu | --incl | --inc)
  395. ac_prev=includedir ;;
  396. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  397. | --includ=* | --inclu=* | --incl=* | --inc=*)
  398. includedir="$ac_optarg" ;;
  399. -infodir | --infodir | --infodi | --infod | --info | --inf)
  400. ac_prev=infodir ;;
  401. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  402. infodir="$ac_optarg" ;;
  403. -libdir | --libdir | --libdi | --libd)
  404. ac_prev=libdir ;;
  405. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  406. libdir="$ac_optarg" ;;
  407. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  408. | --libexe | --libex | --libe)
  409. ac_prev=libexecdir ;;
  410. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  411. | --libexe=* | --libex=* | --libe=*)
  412. libexecdir="$ac_optarg" ;;
  413. -localstatedir | --localstatedir | --localstatedi | --localstated \
  414. | --localstate | --localstat | --localsta | --localst \
  415. | --locals | --local | --loca | --loc | --lo)
  416. ac_prev=localstatedir ;;
  417. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  418. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  419. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  420. localstatedir="$ac_optarg" ;;
  421. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  422. ac_prev=mandir ;;
  423. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  424. mandir="$ac_optarg" ;;
  425. -nfp | --nfp | --nf)
  426. # Obsolete; use --without-fp.
  427. with_fp=no ;;
  428. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  429. | --no-cr | --no-c)
  430. no_create=yes ;;
  431. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  432. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  433. no_recursion=yes ;;
  434. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  435. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  436. | --oldin | --oldi | --old | --ol | --o)
  437. ac_prev=oldincludedir ;;
  438. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  439. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  440. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  441. oldincludedir="$ac_optarg" ;;
  442. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  443. ac_prev=prefix ;;
  444. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  445. prefix="$ac_optarg" ;;
  446. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  447. | --program-pre | --program-pr | --program-p)
  448. ac_prev=program_prefix ;;
  449. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  450. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  451. program_prefix="$ac_optarg" ;;
  452. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  453. | --program-suf | --program-su | --program-s)
  454. ac_prev=program_suffix ;;
  455. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  456. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  457. program_suffix="$ac_optarg" ;;
  458. -program-transform-name | --program-transform-name \
  459. | --program-transform-nam | --program-transform-na \
  460. | --program-transform-n | --program-transform- \
  461. | --program-transform | --program-transfor \
  462. | --program-transfo | --program-transf \
  463. | --program-trans | --program-tran \
  464. | --progr-tra | --program-tr | --program-t)
  465. ac_prev=program_transform_name ;;
  466. -program-transform-name=* | --program-transform-name=* \
  467. | --program-transform-nam=* | --program-transform-na=* \
  468. | --program-transform-n=* | --program-transform-=* \
  469. | --program-transform=* | --program-transfor=* \
  470. | --program-transfo=* | --program-transf=* \
  471. | --program-trans=* | --program-tran=* \
  472. | --progr-tra=* | --program-tr=* | --program-t=*)
  473. program_transform_name="$ac_optarg" ;;
  474. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  475. | -silent | --silent | --silen | --sile | --sil)
  476. silent=yes ;;
  477. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  478. ac_prev=sbindir ;;
  479. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  480. | --sbi=* | --sb=*)
  481. sbindir="$ac_optarg" ;;
  482. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  483. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  484. | --sharedst | --shareds | --shared | --share | --shar \
  485. | --sha | --sh)
  486. ac_prev=sharedstatedir ;;
  487. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  488. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  489. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  490. | --sha=* | --sh=*)
  491. sharedstatedir="$ac_optarg" ;;
  492. -site | --site | --sit)
  493. ac_prev=site ;;
  494. -site=* | --site=* | --sit=*)
  495. site="$ac_optarg" ;;
  496. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  497. ac_prev=srcdir ;;
  498. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  499. srcdir="$ac_optarg" ;;
  500. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  501. | --syscon | --sysco | --sysc | --sys | --sy)
  502. ac_prev=sysconfdir ;;
  503. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  504. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  505. sysconfdir="$ac_optarg" ;;
  506. -target | --target | --targe | --targ | --tar | --ta | --t)
  507. ac_prev=target ;;
  508. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  509. target="$ac_optarg" ;;
  510. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  511. verbose=yes ;;
  512. -version | --version | --versio | --versi | --vers)
  513. echo "configure generated by autoconf version 2.13"
  514. exit 0 ;;
  515. -with-* | --with-*)
  516. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  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. case "$ac_option" in
  523. *=*) ;;
  524. *) ac_optarg=yes ;;
  525. esac
  526. eval "with_${ac_package}='$ac_optarg'" ;;
  527. -without-* | --without-*)
  528. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  529. # Reject names that are not valid shell variable names.
  530. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  531. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  532. fi
  533. ac_package=`echo $ac_package| sed 's/-/_/g'`
  534. eval "with_${ac_package}=no" ;;
  535. --x)
  536. # Obsolete; use --with-x.
  537. with_x=yes ;;
  538. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  539. | --x-incl | --x-inc | --x-in | --x-i)
  540. ac_prev=x_includes ;;
  541. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  542. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  543. x_includes="$ac_optarg" ;;
  544. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  545. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  546. ac_prev=x_libraries ;;
  547. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  548. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  549. x_libraries="$ac_optarg" ;;
  550. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  551. ;;
  552. *)
  553. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  554. echo "configure: warning: $ac_option: invalid host type" 1>&2
  555. fi
  556. if test "x$nonopt" != xNONE; then
  557. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  558. fi
  559. nonopt="$ac_option"
  560. ;;
  561. esac
  562. done
  563. if test -n "$ac_prev"; then
  564. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  565. fi
  566. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  567. # File descriptor usage:
  568. # 0 standard input
  569. # 1 file creation
  570. # 2 errors and warnings
  571. # 3 some systems may open it to /dev/tty
  572. # 4 used on the Kubota Titan
  573. # 6 checking for... messages and results
  574. # 5 compiler messages saved in config.log
  575. if test "$silent" = yes; then
  576. exec 6>/dev/null
  577. else
  578. exec 6>&1
  579. fi
  580. exec 5>./config.log
  581. echo "\
  582. This file contains any messages produced by compilers while
  583. running configure, to aid debugging if configure makes a mistake.
  584. " 1>&5
  585. # Strip out --no-create and --no-recursion so they do not pile up.
  586. # Also quote any args containing shell metacharacters.
  587. ac_configure_args=
  588. for ac_arg
  589. do
  590. case "$ac_arg" in
  591. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  592. | --no-cr | --no-c) ;;
  593. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  594. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  595. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  596. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  597. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  598. esac
  599. done
  600. # NLS nuisances.
  601. # Only set these to C if already set. These must not be set unconditionally
  602. # because not all systems understand e.g. LANG=C (notably SCO).
  603. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  604. # Non-C LC_CTYPE values break the ctype check.
  605. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  606. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  607. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  608. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  609. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  610. rm -rf conftest* confdefs.h
  611. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  612. echo > confdefs.h
  613. # A filename unique to this package, relative to the directory that
  614. # configure is in, which we can look for to find out if srcdir is correct.
  615. ac_unique_file=configure.in
  616. # Find the source files, if location was not specified.
  617. if test -z "$srcdir"; then
  618. ac_srcdir_defaulted=yes
  619. # Try the directory containing this script, then its parent.
  620. ac_prog=$0
  621. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  622. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  623. srcdir=$ac_confdir
  624. if test ! -r $srcdir/$ac_unique_file; then
  625. srcdir=..
  626. fi
  627. else
  628. ac_srcdir_defaulted=no
  629. fi
  630. if test ! -r $srcdir/$ac_unique_file; then
  631. if test "$ac_srcdir_defaulted" = yes; then
  632. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  633. else
  634. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  635. fi
  636. fi
  637. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  638. # Prefer explicitly selected file to automatically selected ones.
  639. if test -z "$CONFIG_SITE"; then
  640. if test "x$prefix" != xNONE; then
  641. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  642. else
  643. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  644. fi
  645. fi
  646. for ac_site_file in $CONFIG_SITE; do
  647. if test -r "$ac_site_file"; then
  648. echo "loading site script $ac_site_file"
  649. . "$ac_site_file"
  650. fi
  651. done
  652. ac_ext=c
  653. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  654. ac_cpp='$CPP $CPPFLAGS'
  655. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  656. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  657. cross_compiling=$ac_cv_prog_cc_cross
  658. ac_exeext=
  659. ac_objext=o
  660. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  661. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  662. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  663. ac_n= ac_c='
  664. ' ac_t=' '
  665. else
  666. ac_n=-n ac_c= ac_t=
  667. fi
  668. else
  669. ac_n= ac_c='\c' ac_t=
  670. fi
  671. ac_aux_dir=
  672. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  673. if test -f $ac_dir/install-sh; then
  674. ac_aux_dir=$ac_dir
  675. ac_install_sh="$ac_aux_dir/install-sh -c"
  676. break
  677. elif test -f $ac_dir/install.sh; then
  678. ac_aux_dir=$ac_dir
  679. ac_install_sh="$ac_aux_dir/install.sh -c"
  680. break
  681. fi
  682. done
  683. if test -z "$ac_aux_dir"; then
  684. { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  685. fi
  686. ac_config_guess=$ac_aux_dir/config.guess
  687. ac_config_sub=$ac_aux_dir/config.sub
  688. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  689. # Make sure we can run config.sub.
  690. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  691. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  692. fi
  693. echo $ac_n "checking host system type""... $ac_c" 1>&6
  694. echo "configure:766: checking host system type" >&5
  695. host_alias=$host
  696. case "$host_alias" in
  697. NONE)
  698. case $nonopt in
  699. NONE)
  700. if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  701. else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  702. fi ;;
  703. *) host_alias=$nonopt ;;
  704. esac ;;
  705. esac
  706. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  707. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  708. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  709. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  710. echo "$ac_t""$host" 1>&6
  711. # Extract the first word of "gcc", so it can be a program name with args.
  712. set dummy gcc; ac_word=$2
  713. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  714. echo "configure:789: checking for $ac_word" >&5
  715. if test -n "$CC"; then
  716. ac_cv_prog_CC="$CC" # Let the user override the test.
  717. else
  718. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  719. ac_dummy="$PATH"
  720. for ac_dir in $ac_dummy; do
  721. test -z "$ac_dir" && ac_dir=.
  722. if test -f $ac_dir/$ac_word; then
  723. ac_cv_prog_CC="gcc"
  724. break
  725. fi
  726. done
  727. IFS="$ac_save_ifs"
  728. fi
  729. CC="$ac_cv_prog_CC"
  730. if test -n "$CC"; then
  731. echo "$ac_t""$CC" 1>&6
  732. else
  733. echo "$ac_t""no" 1>&6
  734. fi
  735. if test -z "$CC"; then
  736. # Extract the first word of "cc", so it can be a program name with args.
  737. set dummy cc; ac_word=$2
  738. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  739. echo "configure:816: checking for $ac_word" >&5
  740. if test -n "$CC"; then
  741. ac_cv_prog_CC="$CC" # Let the user override the test.
  742. else
  743. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  744. ac_prog_rejected=no
  745. ac_dummy="$PATH"
  746. for ac_dir in $ac_dummy; do
  747. test -z "$ac_dir" && ac_dir=.
  748. if test -f $ac_dir/$ac_word; then
  749. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  750. ac_prog_rejected=yes
  751. continue
  752. fi
  753. ac_cv_prog_CC="cc"
  754. break
  755. fi
  756. done
  757. IFS="$ac_save_ifs"
  758. if test $ac_prog_rejected = yes; then
  759. # We found a bogon in the path, so make sure we never use it.
  760. set dummy $ac_cv_prog_CC
  761. shift
  762. if test $# -gt 0; then
  763. # We chose a different compiler from the bogus one.
  764. # However, it has the same basename, so the bogon will be chosen
  765. # first if we set CC to just the basename; use the full file name.
  766. shift
  767. set dummy "$ac_dir/$ac_word" "$@"
  768. shift
  769. ac_cv_prog_CC="$@"
  770. fi
  771. fi
  772. fi
  773. CC="$ac_cv_prog_CC"
  774. if test -n "$CC"; then
  775. echo "$ac_t""$CC" 1>&6
  776. else
  777. echo "$ac_t""no" 1>&6
  778. fi
  779. if test -z "$CC"; then
  780. case "`uname -s`" in
  781. *win32* | *WIN32*)
  782. # Extract the first word of "cl", so it can be a program name with args.
  783. set dummy cl; ac_word=$2
  784. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  785. echo "configure:864: checking for $ac_word" >&5
  786. if test -n "$CC"; then
  787. ac_cv_prog_CC="$CC" # Let the user override the test.
  788. else
  789. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  790. ac_dummy="$PATH"
  791. for ac_dir in $ac_dummy; do
  792. test -z "$ac_dir" && ac_dir=.
  793. if test -f $ac_dir/$ac_word; then
  794. ac_cv_prog_CC="cl"
  795. break
  796. fi
  797. done
  798. IFS="$ac_save_ifs"
  799. fi
  800. CC="$ac_cv_prog_CC"
  801. if test -n "$CC"; then
  802. echo "$ac_t""$CC" 1>&6
  803. else
  804. echo "$ac_t""no" 1>&6
  805. fi
  806. ;;
  807. esac
  808. fi
  809. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  810. fi
  811. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  812. echo "configure:893: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  813. ac_ext=c
  814. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  815. ac_cpp='$CPP $CPPFLAGS'
  816. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  817. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  818. cross_compiling=$ac_cv_prog_cc_cross
  819. cat > conftest.$ac_ext << EOF
  820. #line 904 "configure"
  821. #include "confdefs.h"
  822. main(){return(0);}
  823. EOF
  824. if { (eval echo configure:909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  825. ac_cv_prog_cc_works=yes
  826. # If we can't run a trivial program, we are probably using a cross compiler.
  827. if (./conftest; exit) 2>/dev/null; then
  828. ac_cv_prog_cc_cross=no
  829. else
  830. ac_cv_prog_cc_cross=yes
  831. fi
  832. else
  833. echo "configure: failed program was:" >&5
  834. cat conftest.$ac_ext >&5
  835. ac_cv_prog_cc_works=no
  836. fi
  837. rm -fr conftest*
  838. ac_ext=c
  839. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  840. ac_cpp='$CPP $CPPFLAGS'
  841. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  842. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  843. cross_compiling=$ac_cv_prog_cc_cross
  844. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  845. if test $ac_cv_prog_cc_works = no; then
  846. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  847. fi
  848. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  849. echo "configure:935: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  850. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  851. cross_compiling=$ac_cv_prog_cc_cross
  852. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  853. echo "configure:940: checking whether we are using GNU C" >&5
  854. cat > conftest.c <<EOF
  855. #ifdef __GNUC__
  856. yes;
  857. #endif
  858. EOF
  859. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  860. ac_cv_prog_gcc=yes
  861. else
  862. ac_cv_prog_gcc=no
  863. fi
  864. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  865. if test $ac_cv_prog_gcc = yes; then
  866. GCC=yes
  867. else
  868. GCC=
  869. fi
  870. ac_test_CFLAGS="${CFLAGS+set}"
  871. ac_save_CFLAGS="$CFLAGS"
  872. CFLAGS=
  873. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  874. echo "configure:965: checking whether ${CC-cc} accepts -g" >&5
  875. echo 'void f(){}' > conftest.c
  876. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  877. ac_cv_prog_cc_g=yes
  878. else
  879. ac_cv_prog_cc_g=no
  880. fi
  881. rm -f conftest*
  882. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  883. if test "$ac_test_CFLAGS" = set; then
  884. CFLAGS="$ac_save_CFLAGS"
  885. elif test $ac_cv_prog_cc_g = yes; then
  886. if test "$GCC" = yes; then
  887. CFLAGS="-g -O2"
  888. else
  889. CFLAGS="-g"
  890. fi
  891. else
  892. if test "$GCC" = yes; then
  893. CFLAGS="-O2"
  894. else
  895. CFLAGS=
  896. fi
  897. fi
  898. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  899. echo "configure:994: checking for Cygwin environment" >&5
  900. cat > conftest.$ac_ext <<EOF
  901. #line 997 "configure"
  902. #include "confdefs.h"
  903. int main() {
  904. #ifndef __CYGWIN__
  905. #define __CYGWIN__ __CYGWIN32__
  906. #endif
  907. return __CYGWIN__;
  908. ; return 0; }
  909. EOF
  910. if { (eval echo configure:1008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  911. rm -rf conftest*
  912. ac_cv_cygwin=yes
  913. else
  914. echo "configure: failed program was:" >&5
  915. cat conftest.$ac_ext >&5
  916. rm -rf conftest*
  917. ac_cv_cygwin=no
  918. fi
  919. rm -f conftest*
  920. rm -f conftest*
  921. echo "$ac_t""$ac_cv_cygwin" 1>&6
  922. CYGWIN=
  923. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  924. echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
  925. echo "configure:1024: checking for mingw32 environment" >&5
  926. cat > conftest.$ac_ext <<EOF
  927. #line 1027 "configure"
  928. #include "confdefs.h"
  929. int main() {
  930. return __MINGW32__;
  931. ; return 0; }
  932. EOF
  933. if { (eval echo configure:1034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  934. rm -rf conftest*
  935. ac_cv_mingw32=yes
  936. else
  937. echo "configure: failed program was:" >&5
  938. cat conftest.$ac_ext >&5
  939. rm -rf conftest*
  940. ac_cv_mingw32=no
  941. fi
  942. rm -f conftest*
  943. rm -f conftest*
  944. echo "$ac_t""$ac_cv_mingw32" 1>&6
  945. MINGW32=
  946. test "$ac_cv_mingw32" = yes && MINGW32=yes
  947. echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
  948. echo "configure:1052: checking for executable suffix" >&5
  949. if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
  950. ac_cv_exeext=.exe
  951. else
  952. ac_cv_exeext=no
  953. fi
  954. EXEEXT=""
  955. test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
  956. echo "$ac_t""${ac_cv_exeext}" 1>&6
  957. ac_exeext=$EXEEXT
  958. # Check for full floating-point support, including Infinity and NaN
  959. IEEEFLAG=
  960. echo $ac_n "checking for full floating-point support""... $ac_c" 1>&6
  961. echo "configure:1071: checking for full floating-point support" >&5
  962. if test "$cross_compiling" = yes; then
  963. echo "$ac_t""unknown (cross-compiling)" 1>&6
  964. echo $ac_n "checking whether "cc -mieee" works""... $ac_c" 1>&6
  965. echo "configure:1076: checking whether "cc -mieee" works" >&5
  966. ac_save_cflags=${CFLAGS}
  967. CFLAGS="$CFLAGS -mieee"
  968. cat > conftest.$ac_ext <<EOF
  969. #line 1080 "configure"
  970. #include "confdefs.h"
  971. int main() {
  972. ; return 0; }
  973. EOF
  974. if { (eval echo configure:1087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  975. rm -rf conftest*
  976. echo "$ac_t""yes" 1>&6
  977. IEEEFLAG="-mieee"
  978. else
  979. echo "configure: failed program was:" >&5
  980. cat conftest.$ac_ext >&5
  981. rm -rf conftest*
  982. echo "$ac_t""no" 1>&6
  983. fi
  984. rm -f conftest*
  985. CFLAGS=${ac_save_cflags}
  986. else
  987. cat > conftest.$ac_ext <<EOF
  988. #line 1103 "configure"
  989. #include "confdefs.h"
  990. #include <float.h>
  991. int main(void) {
  992. double one = 1.0;
  993. double zero = 0.0;
  994. if (one/zero > DBL_MAX) /* infinity */
  995. if (zero/zero != zero/zero) /* NaN */
  996. return 0;
  997. return 1;
  998. }
  999. EOF
  1000. if { (eval echo configure:1117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1001. then
  1002. echo "$ac_t""yes" 1>&6
  1003. else
  1004. echo "configure: failed program was:" >&5
  1005. cat conftest.$ac_ext >&5
  1006. rm -fr conftest*
  1007. echo "$ac_t""no" 1>&6
  1008. ac_save_cflags=${CFLAGS}
  1009. CFLAGS=-mieee
  1010. echo $ac_n "checking for full floating-point support with -mieee""... $ac_c" 1>&6
  1011. echo "configure:1130: checking for full floating-point support with -mieee" >&5
  1012. if test "$cross_compiling" = yes; then
  1013. echo "$ac_t""unknown (cross-compiling)" 1>&6
  1014. { echo "configure: error: *** INTERNAL CONFIGURE ERROR" 1>&2; exit 1; }
  1015. else
  1016. cat > conftest.$ac_ext <<EOF
  1017. #line 1137 "configure"
  1018. #include "confdefs.h"
  1019. #include <float.h>
  1020. int main(void) {
  1021. double one = 1.0;
  1022. double zero = 0.0;
  1023. if (one/zero > DBL_MAX) /* infinity */
  1024. if (zero/zero != zero/zero) /* NaN */
  1025. return 0;
  1026. return 1;
  1027. }
  1028. EOF
  1029. if { (eval echo configure:1151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1030. then
  1031. echo "$ac_t""yes" 1>&6
  1032. IEEEFLAG="-mieee"
  1033. else
  1034. echo "configure: failed program was:" >&5
  1035. cat conftest.$ac_ext >&5
  1036. rm -fr conftest*
  1037. echo "$ac_t""no" 1>&6
  1038. echo "configure: warning: *** Incomplete floating-point support." 1>&2
  1039. fi
  1040. rm -fr conftest*
  1041. fi
  1042. CFLAGS=${ac_save_cflags}
  1043. fi
  1044. rm -fr conftest*
  1045. fi
  1046. CFLAGS="$CFLAGS $IEEEFLAG"
  1047. # Set BINDIR
  1048. if test -n "${bindir}"; then
  1049. BINDIR="${bindir}"
  1050. else
  1051. BINDIR=/usr/local/bin
  1052. fi
  1053. # Set SRCDIR and DSTDIR
  1054. # Extract the first word of "pwd", so it can be a program name with args.
  1055. set dummy pwd; ac_word=$2
  1056. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1057. echo "configure:1188: checking for $ac_word" >&5
  1058. case "$pwd" in
  1059. /*)
  1060. ac_cv_path_pwd="$pwd" # Let the user override the test with a path.
  1061. ;;
  1062. ?:/*)
  1063. ac_cv_path_pwd="$pwd" # Let the user override the test with a dos path.
  1064. ;;
  1065. *)
  1066. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1067. ac_dummy="$PATH"
  1068. for ac_dir in $ac_dummy; do
  1069. test -z "$ac_dir" && ac_dir=.
  1070. if test -f $ac_dir/$ac_word; then
  1071. ac_cv_path_pwd="$ac_dir/$ac_word"
  1072. break
  1073. fi
  1074. done
  1075. IFS="$ac_save_ifs"
  1076. test -z "$ac_cv_path_pwd" && ac_cv_path_pwd="pwd"
  1077. ;;
  1078. esac
  1079. pwd="$ac_cv_path_pwd"
  1080. if test -n "$pwd"; then
  1081. echo "$ac_t""$pwd" 1>&6
  1082. else
  1083. echo "$ac_t""no" 1>&6
  1084. fi
  1085. if test "$MINGW32" = yes ; then
  1086. winpwd="pwd -W"
  1087. else
  1088. winpwd="$pwd"
  1089. fi
  1090. echo $ac_n "checking for source directory""... $ac_c" 1>&6
  1091. echo "configure:1226: checking for source directory" >&5
  1092. if test -z "$srcdir" ; then
  1093. SRCDIR=`$pwd`
  1094. else
  1095. SRCDIR=`(cd "$srcdir" ; $pwd)`
  1096. fi
  1097. echo "$ac_t"""$SRCDIR"" 1>&6
  1098. echo $ac_n "checking for build directory""... $ac_c" 1>&6
  1099. echo "configure:1237: checking for build directory" >&5
  1100. DSTDIR=`$pwd`
  1101. WINDSTDIR=`$winpwd`
  1102. echo "$ac_t"""$DSTDIR"" 1>&6
  1103. # Set ARCH
  1104. ARCH=
  1105. if test -z "${host}"; then
  1106. ARCH="unknown"
  1107. else
  1108. ARCH="${host}"
  1109. fi
  1110. # Use absolute path for aux directory so that install-sh works
  1111. ac_aux_dir=
  1112. for ac_dir in "$SRCDIR" $srcdir/"$SRCDIR"; do
  1113. if test -f $ac_dir/install-sh; then
  1114. ac_aux_dir=$ac_dir
  1115. ac_install_sh="$ac_aux_dir/install-sh -c"
  1116. break
  1117. elif test -f $ac_dir/install.sh; then
  1118. ac_aux_dir=$ac_dir
  1119. ac_install_sh="$ac_aux_dir/install.sh -c"
  1120. break
  1121. fi
  1122. done
  1123. if test -z "$ac_aux_dir"; then
  1124. { echo "configure: error: can not find install-sh or install.sh in "$SRCDIR" $srcdir/"$SRCDIR"" 1>&2; exit 1; }
  1125. fi
  1126. ac_config_guess=$ac_aux_dir/config.guess
  1127. ac_config_sub=$ac_aux_dir/config.sub
  1128. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  1129. # Set GISBASE and GRASS_BIN
  1130. GISBASE="${WINDSTDIR}/dist.${ARCH}"
  1131. GRASS_BIN="${DSTDIR}/bin.${ARCH}"
  1132. # Set GRASS_VERSION_*
  1133. GRASS_VERSION_FILE=include/VERSION
  1134. GRASS_VERSION_MAJOR=`sed -n 1p "${GRASS_VERSION_FILE}"`
  1135. GRASS_VERSION_MINOR=`sed -n 2p "${GRASS_VERSION_FILE}"`
  1136. GRASS_VERSION_RELEASE=`sed -n 3p "${GRASS_VERSION_FILE}"`
  1137. GRASS_VERSION_DATE=`sed -n 4p "${GRASS_VERSION_FILE}"`
  1138. GRASS_VERSION_NUMBER=`echo ${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.${GRASS_VERSION_RELEASE}`
  1139. NAME_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/\..*//'`
  1140. LIB_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/^\([0-9.]*\).*$/\1/'`
  1141. GRASS_VERSION_GIT="exported"
  1142. # Extract the first word of "git", so it can be a program name with args.
  1143. set dummy git; ac_word=$2
  1144. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1145. echo "configure:1305: checking for $ac_word" >&5
  1146. case "$GIT" in
  1147. /*)
  1148. ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
  1149. ;;
  1150. ?:/*)
  1151. ac_cv_path_GIT="$GIT" # Let the user override the test with a dos path.
  1152. ;;
  1153. *)
  1154. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1155. ac_dummy="$PATH"
  1156. for ac_dir in $ac_dummy; do
  1157. test -z "$ac_dir" && ac_dir=.
  1158. if test -f $ac_dir/$ac_word; then
  1159. ac_cv_path_GIT="$ac_dir/$ac_word"
  1160. break
  1161. fi
  1162. done
  1163. IFS="$ac_save_ifs"
  1164. test -z "$ac_cv_path_GIT" && ac_cv_path_GIT="no"
  1165. ;;
  1166. esac
  1167. GIT="$ac_cv_path_GIT"
  1168. if test -n "$GIT"; then
  1169. echo "$ac_t""$GIT" 1>&6
  1170. else
  1171. echo "$ac_t""no" 1>&6
  1172. fi
  1173. if test "$GIT" != "no" ; then
  1174. GRASS_VERSION_GIT=`$GIT rev-parse --short HEAD 2>/dev/null`
  1175. if test -z "$GRASS_VERSION_GIT"; then
  1176. GRASS_VERSION_GIT="exported"
  1177. fi
  1178. fi
  1179. # Check for MacOSX App
  1180. # Check whether --enable-macosx-app or --disable-macosx-app was given.
  1181. if test "${enable_macosx_app+set}" = set; then
  1182. enableval="$enable_macosx_app"
  1183. :
  1184. else
  1185. enable_macosx_app=no
  1186. fi
  1187. echo $ac_n "checking for MacOSX App""... $ac_c" 1>&6
  1188. echo "configure:1364: checking for MacOSX App" >&5
  1189. case "$enable_macosx_app" in
  1190. yes) MACOSX_APP=1 ;;
  1191. no) MACOSX_APP= ;;
  1192. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  1193. esac
  1194. echo "$ac_t"""$enable_macosx_app"" 1>&6
  1195. # Check for MacOSX archs
  1196. echo $ac_n "checking for MacOSX architectures""... $ac_c" 1>&6
  1197. echo "configure:1376: checking for MacOSX architectures" >&5
  1198. MACOSX_ARCHS=
  1199. if test -z "$with_macosx_archs" ; then
  1200. echo "$ac_t""no" 1>&6
  1201. else
  1202. for a in $with_macosx_archs
  1203. do
  1204. # check if valid arch?
  1205. case "$a" in
  1206. i386|ppc|x86_64|ppc64)
  1207. MACOSX_ARCHS="$MACOSX_ARCHS -arch $a"
  1208. ;;
  1209. esac
  1210. done
  1211. echo "$ac_t""$MACOSX_ARCHS" 1>&6
  1212. LDFLAGS="$LDFLAGS $MACOSX_ARCHS"
  1213. CFLAGS="$CFLAGS $MACOSX_ARCHS"
  1214. CXXFLAGS="$CXXFLAGS $MACOSX_ARCHS"
  1215. fi
  1216. # Done checking MacOSX archs
  1217. # Check for MacOSX SDK
  1218. echo $ac_n "checking for MacOSX SDK""... $ac_c" 1>&6
  1219. echo "configure:1405: checking for MacOSX SDK" >&5
  1220. MACOSX_SDK=
  1221. if test -z "$with_macosx_sdk" ; then
  1222. echo "$ac_t""no" 1>&6
  1223. else
  1224. ac_safe=`echo "$with_macosx_sdk/SDKSettings.plist" | sed 'y%./+-%__p_%'`
  1225. echo $ac_n "checking for $with_macosx_sdk/SDKSettings.plist""... $ac_c" 1>&6
  1226. echo "configure:1415: checking for $with_macosx_sdk/SDKSettings.plist" >&5
  1227. if test "$cross_compiling" = yes; then
  1228. { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
  1229. else
  1230. if test -r $with_macosx_sdk/SDKSettings.plist; then
  1231. eval "ac_cv_file_$ac_safe=yes"
  1232. else
  1233. eval "ac_cv_file_$ac_safe=no"
  1234. fi
  1235. fi
  1236. if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
  1237. echo "$ac_t""yes" 1>&6
  1238. MACOSX_SDK="-isysroot $with_macosx_sdk"
  1239. else
  1240. echo "$ac_t""no" 1>&6
  1241. { echo "configure: error: *** specified SDK does not exist or is not a SDK" 1>&2; exit 1; }
  1242. fi
  1243. LDFLAGS="$LDFLAGS $MACOSX_SDK"
  1244. CFLAGS="$CFLAGS $MACOSX_SDK"
  1245. CXXFLAGS="$CXXFLAGS $MACOSX_SDK"
  1246. fi
  1247. # Done checking MacOSX SDK
  1248. # Set INST_DIR
  1249. if test -n "$MACOSX_APP" ; then
  1250. INSTDIR='${prefix}'"/GRASS-${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.app/Contents/MacOS"
  1251. else
  1252. INSTDIR='${prefix}'"/grass${GRASS_VERSION_MAJOR}${GRASS_VERSION_MINOR}"
  1253. fi
  1254. # Get flags for building shared libraries
  1255. echo $ac_n "checking how to build libraries""... $ac_c" 1>&6
  1256. echo "configure:1459: checking how to build libraries" >&5
  1257. # Check whether --enable-shared or --disable-shared was given.
  1258. if test "${enable_shared+set}" = set; then
  1259. enableval="$enable_shared"
  1260. shared_ok=$enableval
  1261. else
  1262. shared_ok=yes
  1263. fi
  1264. if test "${enable_shared+set}" = set; then
  1265. enableval="$enable_shared"
  1266. shared_ok=$enableval
  1267. else
  1268. shared_ok=yes
  1269. fi
  1270. if test "$shared_ok" = "yes" ; then
  1271. echo "$ac_t""shared" 1>&6
  1272. SHARED_BUILD=1
  1273. GRASS_LIBRARY_TYPE='shlib'
  1274. else
  1275. echo "$ac_t""static" 1>&6
  1276. SHARED_BUILD=0
  1277. cat >> confdefs.h <<\EOF
  1278. #define STATIC_BUILD 1
  1279. EOF
  1280. GRASS_LIBRARY_TYPE='stlib'
  1281. fi
  1282. ac_save_ldflags="$LDFLAGS"
  1283. SHLIB_CFLAGS=""
  1284. SHLIB_LD_FLAGS=""
  1285. SHLIB_SUFFIX=""
  1286. SHLIB_LD=""
  1287. STLIB_LD='${AR} cr'
  1288. STLIB_SUFFIX='.a'
  1289. GRASS_TRIM_DOTS='`echo ${LIB_VER} | tr -d .`'
  1290. GRASS_LIB_VERSIONS_OK=ok
  1291. LDFLAGS=""
  1292. LD_SEARCH_FLAGS=""
  1293. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1294. case $host in
  1295. *-linux-* | *-gnu* | *-kfreebsd*-gnu)
  1296. SHLIB_CFLAGS="-fPIC"
  1297. SHLIB_LD_FLAGS="-Wl,-soname,\$(notdir \$@)"
  1298. SHLIB_SUFFIX=".so"
  1299. SHLIB_LD="${CC} -shared"
  1300. LDFLAGS="-Wl,--export-dynamic"
  1301. LD_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
  1302. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1303. ;;
  1304. *-pc-cygwin)
  1305. SHLIB_SUFFIX=".dll"
  1306. SHLIB_LD="${CC} -shared"
  1307. LDFLAGS="-Wl,--export-dynamic"
  1308. LD_LIBRARY_PATH_VAR="PATH"
  1309. ;;
  1310. *-pc-mingw32 | *-w64-mingw32 | *-pc-msys)
  1311. SHLIB_SUFFIX=".dll"
  1312. SHLIB_LD="${CC} -shared"
  1313. LDFLAGS="-Wl,--export-dynamic,--enable-runtime-pseudo-reloc"
  1314. LD_LIBRARY_PATH_VAR="PATH"
  1315. ;;
  1316. *-apple-darwin*)
  1317. SHLIB_CFLAGS="-fno-common"
  1318. SHLIB_SUFFIX=".dylib"
  1319. 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}"
  1320. LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
  1321. ;;
  1322. *-sun-solaris*)
  1323. # Note: If _REENTRANT isn't defined, then Solaris
  1324. # won't define thread-safe library routines.
  1325. cat >> confdefs.h <<\EOF
  1326. #define _REENTRANT 1
  1327. EOF
  1328. cat >> confdefs.h <<\EOF
  1329. #define _POSIX_PTHREAD_SEMANTICS 1
  1330. EOF
  1331. # Note: need the LIBS below, otherwise Tk won't find Tcl's
  1332. # symbols when dynamically loaded into tclsh.
  1333. if test "$GCC" = "yes" ; then
  1334. SHLIB_CFLAGS="-fPIC"
  1335. SHLIB_LD="$CC -shared"
  1336. LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
  1337. else
  1338. SHLIB_CFLAGS="-KPIC"
  1339. SHLIB_LD="/usr/ccs/bin/ld -G -z text"
  1340. LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
  1341. fi
  1342. SHLIB_SUFFIX=".so"
  1343. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1344. ;;
  1345. *-solaris2*)
  1346. # Note: Solaris is as of 2010 Oracle Solaris, not Sun Solaris
  1347. # Oracle Solaris derives from Solaris 2
  1348. # derives from SunOS 5
  1349. # derives from UNIX System V Release 4
  1350. # Note: If _REENTRANT isn't defined, then Solaris
  1351. # won't define thread-safe library routines.
  1352. cat >> confdefs.h <<\EOF
  1353. #define _REENTRANT 1
  1354. EOF
  1355. cat >> confdefs.h <<\EOF
  1356. #define _POSIX_PTHREAD_SEMANTICS 1
  1357. EOF
  1358. # Note: need the LIBS below, otherwise Tk won't find Tcl's
  1359. # symbols when dynamically loaded into tclsh.
  1360. if test "$GCC" = "yes" ; then
  1361. SHLIB_CFLAGS="-fPIC"
  1362. SHLIB_LD="$CC -shared"
  1363. LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
  1364. else
  1365. SHLIB_CFLAGS="-KPIC"
  1366. SHLIB_LD="/usr/ccs/bin/ld -G -z text"
  1367. LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
  1368. fi
  1369. SHLIB_SUFFIX=".so"
  1370. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1371. ;;
  1372. *-freebsd*)
  1373. # NOTE: only FreeBSD 4+ is supported
  1374. # FreeBSD 3.* and greater have ELF.
  1375. SHLIB_CFLAGS="-fPIC"
  1376. #SHLIB_LD="ld -Bshareable -x"
  1377. SHLIB_LD="${CC} -shared"
  1378. SHLIB_SUFFIX=".so"
  1379. LDFLAGS="-export-dynamic"
  1380. #LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
  1381. LD_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
  1382. # TODO: add optional pthread support with any combination of:
  1383. # CFLAGS="$CFLAGS -pthread"
  1384. # LDFLAGS="$LDFLAGS -lpthread"
  1385. # AC_DEFINE(_REENTRANT)
  1386. # AC_DEFINE(_POSIX_PTHREAD_SEMANTICS)
  1387. ;;
  1388. *-netbsd*)
  1389. # NetBSD has ELF.
  1390. SHLIB_CFLAGS="-fPIC"
  1391. SHLIB_LD="${CC} -shared"
  1392. SHLIB_LD_LIBS="${LIBS}"
  1393. LDFLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -export-dynamic'
  1394. SHLIB_LD_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -export-dynamic'
  1395. LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -L${LIB_RUNTIME_DIR}'
  1396. # some older NetBSD versions do not handle version numbers with dots.
  1397. #STLIB_SUFFIX='${GRASS_TRIM_DOTS}.a'
  1398. #SHLIB_SUFFIX='${GRASS_TRIM_DOTS}.so'
  1399. #GRASS_LIB_VERSIONS_OK=nodots
  1400. # NetBSD 6 does handle version numbers with dots.
  1401. STLIB_SUFFIX=".a"
  1402. SHLIB_SUFFIX=".so"
  1403. # TODO: add optional pthread support with any combination of:
  1404. # CFLAGS="$CFLAGS -pthread"
  1405. # LDFLAGS="$LDFLAGS -lpthread"
  1406. # AC_DEFINE(_REENTRANT)
  1407. # AC_DEFINE(_POSIX_PTHREAD_SEMANTICS)
  1408. ;;
  1409. *aix*)
  1410. # NOTE: do we need to support aix < 6 ?
  1411. LIBS="$LIBS -lc"
  1412. SHLIB_CFLAGS=""
  1413. LDFLAGS=""
  1414. if test "$GCC" = "yes" ; then
  1415. SHLIB_CFLAGS="-fPIC"
  1416. SHLIB_LD="$CC -shared"
  1417. LD_SEARCH_FLAGS='-Wl,-bsvr4,-R,${LIB_RUNTIME_DIR}'
  1418. else
  1419. # assume xlc
  1420. SHLIB_CFLAGS="-qmkshrobj"
  1421. SHLIB_LD="$CC -shared"
  1422. LD_SEARCH_FLAGS='-Wl,-bsvr4,-R,${LIB_RUNTIME_DIR}'
  1423. fi
  1424. SHLIB_SUFFIX=".so"
  1425. LD_LIBRARY_PATH_VAR="LIBPATH"
  1426. GRASS_NEEDS_EXP_FILE=1
  1427. GRASS_EXPORT_FILE_SUFFIX='${LIB_VER}.exp'
  1428. ;;
  1429. *)
  1430. { echo "configure: error: ***Unknown platform: $host***" 1>&2; exit 1; }
  1431. ;;
  1432. esac
  1433. LDFLAGS="${ac_save_ldflags} $LDFLAGS"
  1434. # Enable options
  1435. # Check whether --enable-w11 or --disable-w11 was given.
  1436. if test "${enable_w11+set}" = set; then
  1437. enableval="$enable_w11"
  1438. :
  1439. else
  1440. enable_w11=no
  1441. fi
  1442. # With options
  1443. # Check whether --with-cxx or --without-cxx was given.
  1444. if test "${with_cxx+set}" = set; then
  1445. withval="$with_cxx"
  1446. :
  1447. else
  1448. with_cxx=yes
  1449. fi
  1450. #LOC_ARG_WITH(g77, GNU Fortran 77, no)
  1451. # Check whether --with-macosx-archs or --without-macosx-archs was given.
  1452. if test "${with_macosx_archs+set}" = set; then
  1453. withval="$with_macosx_archs"
  1454. :
  1455. else
  1456. with_macosx_archs="no"
  1457. fi
  1458. # Check whether --with-macosx-sdk or --without-macosx-sdk was given.
  1459. if test "${with_macosx_sdk+set}" = set; then
  1460. withval="$with_macosx_sdk"
  1461. :
  1462. else
  1463. with_macosx_sdk="no"
  1464. fi
  1465. # Check whether --with-tiff or --without-tiff was given.
  1466. if test "${with_tiff+set}" = set; then
  1467. withval="$with_tiff"
  1468. :
  1469. else
  1470. with_tiff=yes
  1471. fi
  1472. # Check whether --with-png or --without-png was given.
  1473. if test "${with_png+set}" = set; then
  1474. withval="$with_png"
  1475. :
  1476. else
  1477. with_png=yes
  1478. fi
  1479. # Check whether --with-postgres or --without-postgres was given.
  1480. if test "${with_postgres+set}" = set; then
  1481. withval="$with_postgres"
  1482. :
  1483. else
  1484. with_postgres=no
  1485. fi
  1486. # Check whether --with-mysql or --without-mysql was given.
  1487. if test "${with_mysql+set}" = set; then
  1488. withval="$with_mysql"
  1489. :
  1490. else
  1491. with_mysql=no
  1492. fi
  1493. # Check whether --with-sqlite or --without-sqlite was given.
  1494. if test "${with_sqlite+set}" = set; then
  1495. withval="$with_sqlite"
  1496. :
  1497. else
  1498. with_sqlite=yes
  1499. fi
  1500. # Check whether --with-opengl or --without-opengl was given.
  1501. if test "${with_opengl+set}" = set; then
  1502. withval="$with_opengl"
  1503. :
  1504. else
  1505. with_opengl=yes
  1506. fi
  1507. # Check whether --with-odbc or --without-odbc was given.
  1508. if test "${with_odbc+set}" = set; then
  1509. withval="$with_odbc"
  1510. :
  1511. else
  1512. with_odbc=no
  1513. fi
  1514. # Check whether --with-fftw or --without-fftw was given.
  1515. if test "${with_fftw+set}" = set; then
  1516. withval="$with_fftw"
  1517. :
  1518. else
  1519. with_fftw=yes
  1520. fi
  1521. # Check whether --with-blas or --without-blas was given.
  1522. if test "${with_blas+set}" = set; then
  1523. withval="$with_blas"
  1524. :
  1525. else
  1526. with_blas=no
  1527. fi
  1528. # Check whether --with-lapack or --without-lapack was given.
  1529. if test "${with_lapack+set}" = set; then
  1530. withval="$with_lapack"
  1531. :
  1532. else
  1533. with_lapack=no
  1534. fi
  1535. # Check whether --with-cairo or --without-cairo was given.
  1536. if test "${with_cairo+set}" = set; then
  1537. withval="$with_cairo"
  1538. :
  1539. else
  1540. with_cairo=yes
  1541. fi
  1542. # Check whether --with-freetype or --without-freetype was given.
  1543. if test "${with_freetype+set}" = set; then
  1544. withval="$with_freetype"
  1545. :
  1546. else
  1547. with_freetype=yes
  1548. fi
  1549. # Check whether --with-nls or --without-nls was given.
  1550. if test "${with_nls+set}" = set; then
  1551. withval="$with_nls"
  1552. :
  1553. else
  1554. with_nls=no
  1555. fi
  1556. # Check whether --with-readline or --without-readline was given.
  1557. if test "${with_readline+set}" = set; then
  1558. withval="$with_readline"
  1559. :
  1560. else
  1561. with_readline=no
  1562. fi
  1563. # Check whether --with-opendwg or --without-opendwg was given.
  1564. if test "${with_opendwg+set}" = set; then
  1565. withval="$with_opendwg"
  1566. :
  1567. else
  1568. with_opendwg=no
  1569. fi
  1570. # Check whether --with-regex or --without-regex was given.
  1571. if test "${with_regex+set}" = set; then
  1572. withval="$with_regex"
  1573. :
  1574. else
  1575. with_regex=yes
  1576. fi
  1577. # Check whether --with-pthread or --without-pthread was given.
  1578. if test "${with_pthread+set}" = set; then
  1579. withval="$with_pthread"
  1580. :
  1581. else
  1582. with_pthread=no
  1583. fi
  1584. # Check whether --with-openmp or --without-openmp was given.
  1585. if test "${with_openmp+set}" = set; then
  1586. withval="$with_openmp"
  1587. :
  1588. else
  1589. with_openmp=no
  1590. fi
  1591. # Check whether --with-opencl or --without-opencl was given.
  1592. if test "${with_opencl+set}" = set; then
  1593. withval="$with_opencl"
  1594. :
  1595. else
  1596. with_opencl=no
  1597. fi
  1598. # Check whether --with-bzlib or --without-bzlib was given.
  1599. if test "${with_bzlib+set}" = set; then
  1600. withval="$with_bzlib"
  1601. :
  1602. else
  1603. with_bzlib=no
  1604. fi
  1605. # Check whether --with-zstd or --without-zstd was given.
  1606. if test "${with_zstd+set}" = set; then
  1607. withval="$with_zstd"
  1608. :
  1609. else
  1610. with_zstd=yes
  1611. fi
  1612. # Check whether --with-gdal or --without-gdal was given.
  1613. if test "${with_gdal+set}" = set; then
  1614. withval="$with_gdal"
  1615. :
  1616. fi
  1617. # Check whether --with-liblas or --without-liblas was given.
  1618. if test "${with_liblas+set}" = set; then
  1619. withval="$with_liblas"
  1620. :
  1621. else
  1622. with_liblas="no"
  1623. fi
  1624. # Check whether --with-pdal or --without-pdal was given.
  1625. if test "${with_pdal+set}" = set; then
  1626. withval="$with_pdal"
  1627. :
  1628. else
  1629. with_pdal="no"
  1630. fi
  1631. # Check whether --with-wxwidgets or --without-wxwidgets was given.
  1632. if test "${with_wxwidgets+set}" = set; then
  1633. withval="$with_wxwidgets"
  1634. :
  1635. else
  1636. with_wxwidgets="no"
  1637. fi
  1638. # Check whether --with-netcdf or --without-netcdf was given.
  1639. if test "${with_netcdf+set}" = set; then
  1640. withval="$with_netcdf"
  1641. :
  1642. else
  1643. with_netcdf="no"
  1644. fi
  1645. # With includes and libs options
  1646. # Check whether --with-geos or --without-geos was given.
  1647. if test "${with_geos+set}" = set; then
  1648. withval="$with_geos"
  1649. :
  1650. else
  1651. with_geos="no"
  1652. fi
  1653. # Check whether --with-includes or --without-includes was given.
  1654. if test "${with_includes+set}" = set; then
  1655. withval="$with_includes"
  1656. :
  1657. fi
  1658. # Check whether --with-libs or --without-libs was given.
  1659. if test "${with_libs+set}" = set; then
  1660. withval="$with_libs"
  1661. :
  1662. fi
  1663. # Check whether --with-zlib-includes or --without-zlib-includes was given.
  1664. if test "${with_zlib_includes+set}" = set; then
  1665. withval="$with_zlib_includes"
  1666. :
  1667. fi
  1668. # Check whether --with-zlib-libs or --without-zlib-libs was given.
  1669. if test "${with_zlib_libs+set}" = set; then
  1670. withval="$with_zlib_libs"
  1671. :
  1672. fi
  1673. # Check whether --with-bzlib-includes or --without-bzlib-includes was given.
  1674. if test "${with_bzlib_includes+set}" = set; then
  1675. withval="$with_bzlib_includes"
  1676. :
  1677. fi
  1678. # Check whether --with-bzlib-libs or --without-bzlib-libs was given.
  1679. if test "${with_bzlib_libs+set}" = set; then
  1680. withval="$with_bzlib_libs"
  1681. :
  1682. fi
  1683. # Check whether --with-zstd-includes or --without-zstd-includes was given.
  1684. if test "${with_zstd_includes+set}" = set; then
  1685. withval="$with_zstd_includes"
  1686. :
  1687. fi
  1688. # Check whether --with-zstd-libs or --without-zstd-libs was given.
  1689. if test "${with_zstd_libs+set}" = set; then
  1690. withval="$with_zstd_libs"
  1691. :
  1692. fi
  1693. # Check whether --with-readline-includes or --without-readline-includes was given.
  1694. if test "${with_readline_includes+set}" = set; then
  1695. withval="$with_readline_includes"
  1696. :
  1697. fi
  1698. # Check whether --with-readline-libs or --without-readline-libs was given.
  1699. if test "${with_readline_libs+set}" = set; then
  1700. withval="$with_readline_libs"
  1701. :
  1702. fi
  1703. # Check whether --with-tiff-includes or --without-tiff-includes was given.
  1704. if test "${with_tiff_includes+set}" = set; then
  1705. withval="$with_tiff_includes"
  1706. :
  1707. fi
  1708. # Check whether --with-tiff-libs or --without-tiff-libs was given.
  1709. if test "${with_tiff_libs+set}" = set; then
  1710. withval="$with_tiff_libs"
  1711. :
  1712. fi
  1713. # Check whether --with-png-includes or --without-png-includes was given.
  1714. if test "${with_png_includes+set}" = set; then
  1715. withval="$with_png_includes"
  1716. :
  1717. fi
  1718. # Check whether --with-png-libs or --without-png-libs was given.
  1719. if test "${with_png_libs+set}" = set; then
  1720. withval="$with_png_libs"
  1721. :
  1722. fi
  1723. # Check whether --with-postgres-includes or --without-postgres-includes was given.
  1724. if test "${with_postgres_includes+set}" = set; then
  1725. withval="$with_postgres_includes"
  1726. :
  1727. fi
  1728. # Check whether --with-postgres-libs or --without-postgres-libs was given.
  1729. if test "${with_postgres_libs+set}" = set; then
  1730. withval="$with_postgres_libs"
  1731. :
  1732. fi
  1733. # Check whether --with-mysql-includes or --without-mysql-includes was given.
  1734. if test "${with_mysql_includes+set}" = set; then
  1735. withval="$with_mysql_includes"
  1736. :
  1737. fi
  1738. # Check whether --with-mysql-libs or --without-mysql-libs was given.
  1739. if test "${with_mysql_libs+set}" = set; then
  1740. withval="$with_mysql_libs"
  1741. :
  1742. fi
  1743. # Check whether --with-sqlite-includes or --without-sqlite-includes was given.
  1744. if test "${with_sqlite_includes+set}" = set; then
  1745. withval="$with_sqlite_includes"
  1746. :
  1747. fi
  1748. # Check whether --with-sqlite-libs or --without-sqlite-libs was given.
  1749. if test "${with_sqlite_libs+set}" = set; then
  1750. withval="$with_sqlite_libs"
  1751. :
  1752. fi
  1753. # Check whether --with-opengl-includes or --without-opengl-includes was given.
  1754. if test "${with_opengl_includes+set}" = set; then
  1755. withval="$with_opengl_includes"
  1756. :
  1757. fi
  1758. # Check whether --with-opengl-libs or --without-opengl-libs was given.
  1759. if test "${with_opengl_libs+set}" = set; then
  1760. withval="$with_opengl_libs"
  1761. :
  1762. fi
  1763. # Check whether --with-opengl-framework or --without-opengl-framework was given.
  1764. if test "${with_opengl_framework+set}" = set; then
  1765. withval="$with_opengl_framework"
  1766. :
  1767. fi
  1768. # Check whether --with-odbc-includes or --without-odbc-includes was given.
  1769. if test "${with_odbc_includes+set}" = set; then
  1770. withval="$with_odbc_includes"
  1771. :
  1772. fi
  1773. # Check whether --with-odbc-libs or --without-odbc-libs was given.
  1774. if test "${with_odbc_libs+set}" = set; then
  1775. withval="$with_odbc_libs"
  1776. :
  1777. fi
  1778. # Check whether --with-fftw-includes or --without-fftw-includes was given.
  1779. if test "${with_fftw_includes+set}" = set; then
  1780. withval="$with_fftw_includes"
  1781. :
  1782. fi
  1783. # Check whether --with-fftw-libs or --without-fftw-libs was given.
  1784. if test "${with_fftw_libs+set}" = set; then
  1785. withval="$with_fftw_libs"
  1786. :
  1787. fi
  1788. # Check whether --with-blas-includes or --without-blas-includes was given.
  1789. if test "${with_blas_includes+set}" = set; then
  1790. withval="$with_blas_includes"
  1791. :
  1792. fi
  1793. # Check whether --with-blas-libs or --without-blas-libs was given.
  1794. if test "${with_blas_libs+set}" = set; then
  1795. withval="$with_blas_libs"
  1796. :
  1797. fi
  1798. # Check whether --with-lapack-includes or --without-lapack-includes was given.
  1799. if test "${with_lapack_includes+set}" = set; then
  1800. withval="$with_lapack_includes"
  1801. :
  1802. fi
  1803. # Check whether --with-lapack-libs or --without-lapack-libs was given.
  1804. if test "${with_lapack_libs+set}" = set; then
  1805. withval="$with_lapack_libs"
  1806. :
  1807. fi
  1808. # Check whether --with-cairo-includes or --without-cairo-includes was given.
  1809. if test "${with_cairo_includes+set}" = set; then
  1810. withval="$with_cairo_includes"
  1811. :
  1812. fi
  1813. # Check whether --with-cairo-libs or --without-cairo-libs was given.
  1814. if test "${with_cairo_libs+set}" = set; then
  1815. withval="$with_cairo_libs"
  1816. :
  1817. fi
  1818. # Check whether --with-cairo-ldflags or --without-cairo-ldflags was given.
  1819. if test "${with_cairo_ldflags+set}" = set; then
  1820. withval="$with_cairo_ldflags"
  1821. :
  1822. fi
  1823. # Check whether --with-freetype-includes or --without-freetype-includes was given.
  1824. if test "${with_freetype_includes+set}" = set; then
  1825. withval="$with_freetype_includes"
  1826. :
  1827. fi
  1828. # Check whether --with-freetype-libs or --without-freetype-libs was given.
  1829. if test "${with_freetype_libs+set}" = set; then
  1830. withval="$with_freetype_libs"
  1831. :
  1832. fi
  1833. # Check whether --with-proj-includes or --without-proj-includes was given.
  1834. if test "${with_proj_includes+set}" = set; then
  1835. withval="$with_proj_includes"
  1836. :
  1837. fi
  1838. # Check whether --with-proj-libs or --without-proj-libs was given.
  1839. if test "${with_proj_libs+set}" = set; then
  1840. withval="$with_proj_libs"
  1841. :
  1842. fi
  1843. # Check whether --with-proj-share or --without-proj-share was given.
  1844. if test "${with_proj_share+set}" = set; then
  1845. withval="$with_proj_share"
  1846. :
  1847. fi
  1848. # Check whether --with-opendwg-includes or --without-opendwg-includes was given.
  1849. if test "${with_opendwg_includes+set}" = set; then
  1850. withval="$with_opendwg_includes"
  1851. :
  1852. fi
  1853. # Check whether --with-opendwg-libs or --without-opendwg-libs was given.
  1854. if test "${with_opendwg_libs+set}" = set; then
  1855. withval="$with_opendwg_libs"
  1856. :
  1857. fi
  1858. # Check whether --with-regex-includes or --without-regex-includes was given.
  1859. if test "${with_regex_includes+set}" = set; then
  1860. withval="$with_regex_includes"
  1861. :
  1862. fi
  1863. # Check whether --with-regex-libs or --without-regex-libs was given.
  1864. if test "${with_regex_libs+set}" = set; then
  1865. withval="$with_regex_libs"
  1866. :
  1867. fi
  1868. # Check whether --with-pthread-includes or --without-pthread-includes was given.
  1869. if test "${with_pthread_includes+set}" = set; then
  1870. withval="$with_pthread_includes"
  1871. :
  1872. fi
  1873. # Check whether --with-pthread-libs or --without-pthread-libs was given.
  1874. if test "${with_pthread_libs+set}" = set; then
  1875. withval="$with_pthread_libs"
  1876. :
  1877. fi
  1878. # Check whether --with-openmp-includes or --without-openmp-includes was given.
  1879. if test "${with_openmp_includes+set}" = set; then
  1880. withval="$with_openmp_includes"
  1881. :
  1882. fi
  1883. # Check whether --with-openmp-libs or --without-openmp-libs was given.
  1884. if test "${with_openmp_libs+set}" = set; then
  1885. withval="$with_openmp_libs"
  1886. :
  1887. fi
  1888. # Check whether --with-opencl-includes or --without-opencl-includes was given.
  1889. if test "${with_opencl_includes+set}" = set; then
  1890. withval="$with_opencl_includes"
  1891. :
  1892. fi
  1893. # Check whether --with-opencl-libs or --without-opencl-libs was given.
  1894. if test "${with_opencl_libs+set}" = set; then
  1895. withval="$with_opencl_libs"
  1896. :
  1897. fi
  1898. #LOC_ARG_WITH_FRAMEWORK(opencl, OpenCL)
  1899. # Put this early on so CPPFLAGS and LDFLAGS have any additional dirs
  1900. # With includes option
  1901. # Handle Fortran compiler choice
  1902. #LOC_CHECK_USE(g77, GNU Fortran 77, USE_G77)
  1903. # Done checking fortran
  1904. echo $ac_n "checking for additional include dirs""... $ac_c" 1>&6
  1905. echo "configure:2392: checking for additional include dirs" >&5
  1906. case "$with_includes" in
  1907. y | ye | yes | n | no)
  1908. { echo "configure: error: *** You must supply a directory to list --with-includes." 1>&2; exit 1; }
  1909. ;;
  1910. esac
  1911. echo "$ac_t""$with_includes" 1>&6
  1912. if test -n "$with_includes"; then
  1913. for dir in $with_includes; do
  1914. if test -d "$dir"; then
  1915. INCLUDE_DIRS="$INCLUDE_DIRS -I$dir"
  1916. else
  1917. { echo "configure: error: *** Include directory $dir does not exist." 1>&2; exit 1; }
  1918. fi
  1919. done
  1920. CPPFLAGS="$CPPFLAGS $INCLUDE_DIRS"
  1921. fi
  1922. # With libs option
  1923. echo $ac_n "checking for additional library dirs""... $ac_c" 1>&6
  1924. echo "configure:2415: checking for additional library dirs" >&5
  1925. case "$with_libs" in
  1926. y | ye | yes | n | no)
  1927. { echo "configure: error: *** You must supply a directory list to --with-libs." 1>&2; exit 1; }
  1928. ;;
  1929. esac
  1930. echo "$ac_t""$with_libs" 1>&6
  1931. if test -n "$with_libs"; then
  1932. for dir in $with_libs; do
  1933. if test -d "$dir"; then
  1934. LIBRARY_DIRS="$LIBRARY_DIRS -L$dir"
  1935. else
  1936. { echo "configure: error: *** Library directory $dir does not exist." 1>&2; exit 1; }
  1937. fi
  1938. done
  1939. LDFLAGS="$LDFLAGS $LIBRARY_DIRS"
  1940. fi
  1941. # Programs and standard headers, libraries, functions
  1942. # Find a good install program. We prefer a C program (faster),
  1943. # so one script is as good as another. But avoid the broken or
  1944. # incompatible versions:
  1945. # SysV /etc/install, /usr/sbin/install
  1946. # SunOS /usr/etc/install
  1947. # IRIX /sbin/install
  1948. # AIX /bin/install
  1949. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1950. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1951. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1952. # ./install, which can be erroneously created by make from ./install.sh.
  1953. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1954. echo "configure:2449: checking for a BSD compatible install" >&5
  1955. if test -z "$INSTALL"; then
  1956. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  1957. for ac_dir in $PATH; do
  1958. # Account for people who put trailing slashes in PATH elements.
  1959. case "$ac_dir/" in
  1960. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1961. *)
  1962. # OSF1 and SCO ODT 3.0 have their own names for install.
  1963. # Don't use installbsd from OSF since it installs stuff as root
  1964. # by default.
  1965. for ac_prog in ginstall scoinst install; do
  1966. if test -f $ac_dir/$ac_prog; then
  1967. if test $ac_prog = install &&
  1968. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1969. # AIX install. It has an incompatible calling convention.
  1970. :
  1971. else
  1972. ac_cv_path_install="$ac_dir/$ac_prog -c"
  1973. break 2
  1974. fi
  1975. fi
  1976. done
  1977. ;;
  1978. esac
  1979. done
  1980. IFS="$ac_save_IFS"
  1981. if test "${ac_cv_path_install+set}" = set; then
  1982. INSTALL="$ac_cv_path_install"
  1983. else
  1984. # As a last resort, use the slow shell script. We don't cache a
  1985. # path for INSTALL within a source directory, because that will
  1986. # break other packages using the cache if that directory is
  1987. # removed, or if the path is relative.
  1988. INSTALL="$ac_install_sh"
  1989. fi
  1990. fi
  1991. echo "$ac_t""$INSTALL" 1>&6
  1992. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1993. # It thinks the first close brace ends the variable substitution.
  1994. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1995. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  1996. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1997. # Extract the first word of "flex", so it can be a program name with args.
  1998. set dummy flex; ac_word=$2
  1999. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2000. echo "configure:2502: checking for $ac_word" >&5
  2001. if test -n "$LEX"; then
  2002. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  2003. else
  2004. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2005. ac_dummy="$PATH"
  2006. for ac_dir in $ac_dummy; do
  2007. test -z "$ac_dir" && ac_dir=.
  2008. if test -f $ac_dir/$ac_word; then
  2009. ac_cv_prog_LEX="flex"
  2010. break
  2011. fi
  2012. done
  2013. IFS="$ac_save_ifs"
  2014. test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
  2015. fi
  2016. LEX="$ac_cv_prog_LEX"
  2017. if test -n "$LEX"; then
  2018. echo "$ac_t""$LEX" 1>&6
  2019. else
  2020. echo "$ac_t""no" 1>&6
  2021. fi
  2022. if test -z "$LEXLIB"
  2023. then
  2024. case "$LEX" in
  2025. flex*) ac_lib=fl ;;
  2026. *) ac_lib=l ;;
  2027. esac
  2028. echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
  2029. echo "configure:2533: checking for yywrap in -l$ac_lib" >&5
  2030. ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
  2031. ac_save_LIBS="$LIBS"
  2032. LIBS="-l$ac_lib $LIBS"
  2033. cat > conftest.$ac_ext <<EOF
  2034. #line 2539 "configure"
  2035. #include "confdefs.h"
  2036. /* Override any gcc2 internal prototype to avoid an error. */
  2037. /* We use char because int might match the return type of a gcc2
  2038. builtin and then its argument prototype would still apply. */
  2039. char yywrap();
  2040. int main() {
  2041. yywrap()
  2042. ; return 0; }
  2043. EOF
  2044. if { (eval echo configure:2550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2045. rm -rf conftest*
  2046. eval "ac_cv_lib_$ac_lib_var=yes"
  2047. else
  2048. echo "configure: failed program was:" >&5
  2049. cat conftest.$ac_ext >&5
  2050. rm -rf conftest*
  2051. eval "ac_cv_lib_$ac_lib_var=no"
  2052. fi
  2053. rm -f conftest*
  2054. LIBS="$ac_save_LIBS"
  2055. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2056. echo "$ac_t""yes" 1>&6
  2057. LEXLIB="-l$ac_lib"
  2058. else
  2059. echo "$ac_t""no" 1>&6
  2060. fi
  2061. fi
  2062. if test "$LEX" = "lex"; then
  2063. # Extract the first word of "lex", so it can be a program name with args.
  2064. set dummy lex; ac_word=$2
  2065. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2066. echo "configure:2575: checking for $ac_word" >&5
  2067. case "$LEXPATH" in
  2068. /*)
  2069. ac_cv_path_LEXPATH="$LEXPATH" # Let the user override the test with a path.
  2070. ;;
  2071. ?:/*)
  2072. ac_cv_path_LEXPATH="$LEXPATH" # Let the user override the test with a dos path.
  2073. ;;
  2074. *)
  2075. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2076. ac_dummy="$PATH"
  2077. for ac_dir in $ac_dummy; do
  2078. test -z "$ac_dir" && ac_dir=.
  2079. if test -f $ac_dir/$ac_word; then
  2080. ac_cv_path_LEXPATH="$ac_dir/$ac_word"
  2081. break
  2082. fi
  2083. done
  2084. IFS="$ac_save_ifs"
  2085. test -z "$ac_cv_path_LEXPATH" && ac_cv_path_LEXPATH="no"
  2086. ;;
  2087. esac
  2088. LEXPATH="$ac_cv_path_LEXPATH"
  2089. if test -n "$LEXPATH"; then
  2090. echo "$ac_t""$LEXPATH" 1>&6
  2091. else
  2092. echo "$ac_t""no" 1>&6
  2093. fi
  2094. if test "$LEXPATH" = "no"; then
  2095. { echo "configure: error: *** Unable to locate lex." 1>&2; exit 1; }
  2096. fi
  2097. fi
  2098. for ac_prog in 'bison -y' byacc
  2099. do
  2100. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2101. set dummy $ac_prog; ac_word=$2
  2102. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2103. echo "configure:2615: checking for $ac_word" >&5
  2104. if test -n "$YACC"; then
  2105. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  2106. else
  2107. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2108. ac_dummy="$PATH"
  2109. for ac_dir in $ac_dummy; do
  2110. test -z "$ac_dir" && ac_dir=.
  2111. if test -f $ac_dir/$ac_word; then
  2112. ac_cv_prog_YACC="$ac_prog"
  2113. break
  2114. fi
  2115. done
  2116. IFS="$ac_save_ifs"
  2117. fi
  2118. YACC="$ac_cv_prog_YACC"
  2119. if test -n "$YACC"; then
  2120. echo "$ac_t""$YACC" 1>&6
  2121. else
  2122. echo "$ac_t""no" 1>&6
  2123. fi
  2124. test -n "$YACC" && break
  2125. done
  2126. test -n "$YACC" || YACC="yacc"
  2127. if test "$YACC" = "yacc"; then
  2128. # Extract the first word of "yacc", so it can be a program name with args.
  2129. set dummy yacc; ac_word=$2
  2130. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2131. echo "configure:2646: checking for $ac_word" >&5
  2132. case "$YACCPATH" in
  2133. /*)
  2134. ac_cv_path_YACCPATH="$YACCPATH" # Let the user override the test with a path.
  2135. ;;
  2136. ?:/*)
  2137. ac_cv_path_YACCPATH="$YACCPATH" # Let the user override the test with a dos path.
  2138. ;;
  2139. *)
  2140. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2141. ac_dummy="$PATH"
  2142. for ac_dir in $ac_dummy; do
  2143. test -z "$ac_dir" && ac_dir=.
  2144. if test -f $ac_dir/$ac_word; then
  2145. ac_cv_path_YACCPATH="$ac_dir/$ac_word"
  2146. break
  2147. fi
  2148. done
  2149. IFS="$ac_save_ifs"
  2150. test -z "$ac_cv_path_YACCPATH" && ac_cv_path_YACCPATH="no"
  2151. ;;
  2152. esac
  2153. YACCPATH="$ac_cv_path_YACCPATH"
  2154. if test -n "$YACCPATH"; then
  2155. echo "$ac_t""$YACCPATH" 1>&6
  2156. else
  2157. echo "$ac_t""no" 1>&6
  2158. fi
  2159. if test "$YACCPATH" = "no"; then
  2160. { echo "configure: error: *** Unable to locate yacc." 1>&2; exit 1; }
  2161. fi
  2162. fi
  2163. # Extract the first word of "ranlib", so it can be a program name with args.
  2164. set dummy ranlib; ac_word=$2
  2165. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2166. echo "configure:2684: checking for $ac_word" >&5
  2167. if test -n "$RANLIB"; then
  2168. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2169. else
  2170. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2171. ac_dummy="$PATH"
  2172. for ac_dir in $ac_dummy; do
  2173. test -z "$ac_dir" && ac_dir=.
  2174. if test -f $ac_dir/$ac_word; then
  2175. ac_cv_prog_RANLIB="ranlib"
  2176. break
  2177. fi
  2178. done
  2179. IFS="$ac_save_ifs"
  2180. test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  2181. fi
  2182. RANLIB="$ac_cv_prog_RANLIB"
  2183. if test -n "$RANLIB"; then
  2184. echo "$ac_t""$RANLIB" 1>&6
  2185. else
  2186. echo "$ac_t""no" 1>&6
  2187. fi
  2188. for ac_prog in ar
  2189. do
  2190. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2191. set dummy $ac_prog; ac_word=$2
  2192. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2193. echo "configure:2713: checking for $ac_word" >&5
  2194. if test -n "$AR"; then
  2195. ac_cv_prog_AR="$AR" # Let the user override the test.
  2196. else
  2197. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2198. ac_dummy="$PATH"
  2199. for ac_dir in $ac_dummy; do
  2200. test -z "$ac_dir" && ac_dir=.
  2201. if test -f $ac_dir/$ac_word; then
  2202. ac_cv_prog_AR="$ac_prog"
  2203. break
  2204. fi
  2205. done
  2206. IFS="$ac_save_ifs"
  2207. fi
  2208. AR="$ac_cv_prog_AR"
  2209. if test -n "$AR"; then
  2210. echo "$ac_t""$AR" 1>&6
  2211. else
  2212. echo "$ac_t""no" 1>&6
  2213. fi
  2214. test -n "$AR" && break
  2215. done
  2216. for ac_prog in env
  2217. do
  2218. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2219. set dummy $ac_prog; ac_word=$2
  2220. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2221. echo "configure:2744: checking for $ac_word" >&5
  2222. if test -n "$ENV"; then
  2223. ac_cv_prog_ENV="$ENV" # Let the user override the test.
  2224. else
  2225. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2226. ac_dummy="$PATH"
  2227. for ac_dir in $ac_dummy; do
  2228. test -z "$ac_dir" && ac_dir=.
  2229. if test -f $ac_dir/$ac_word; then
  2230. ac_cv_prog_ENV="$ac_prog"
  2231. break
  2232. fi
  2233. done
  2234. IFS="$ac_save_ifs"
  2235. fi
  2236. ENV="$ac_cv_prog_ENV"
  2237. if test -n "$ENV"; then
  2238. echo "$ac_t""$ENV" 1>&6
  2239. else
  2240. echo "$ac_t""no" 1>&6
  2241. fi
  2242. test -n "$ENV" && break
  2243. done
  2244. # Extract the first word of "perl", so it can be a program name with args.
  2245. set dummy perl; ac_word=$2
  2246. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2247. echo "configure:2773: checking for $ac_word" >&5
  2248. case "$PERL" in
  2249. /*)
  2250. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  2251. ;;
  2252. ?:/*)
  2253. ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
  2254. ;;
  2255. *)
  2256. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2257. ac_dummy="$PATH"
  2258. for ac_dir in $ac_dummy; do
  2259. test -z "$ac_dir" && ac_dir=.
  2260. if test -f $ac_dir/$ac_word; then
  2261. ac_cv_path_PERL="$ac_dir/$ac_word"
  2262. break
  2263. fi
  2264. done
  2265. IFS="$ac_save_ifs"
  2266. test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
  2267. ;;
  2268. esac
  2269. PERL="$ac_cv_path_PERL"
  2270. if test -n "$PERL"; then
  2271. echo "$ac_t""$PERL" 1>&6
  2272. else
  2273. echo "$ac_t""no" 1>&6
  2274. fi
  2275. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  2276. echo "configure:2804: checking how to run the C preprocessor" >&5
  2277. # On Suns, sometimes $CPP names a directory.
  2278. if test -n "$CPP" && test -d "$CPP"; then
  2279. CPP=
  2280. fi
  2281. if test -z "$CPP"; then
  2282. # This must be in double quotes, not single quotes, because CPP may get
  2283. # substituted into the Makefile and "${CC-cc}" will confuse make.
  2284. CPP="${CC-cc} -E"
  2285. # On the NeXT, cc -E runs the code through the compiler's parser,
  2286. # not just through cpp.
  2287. cat > conftest.$ac_ext <<EOF
  2288. #line 2817 "configure"
  2289. #include "confdefs.h"
  2290. #include <assert.h>
  2291. Syntax Error
  2292. EOF
  2293. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2294. { (eval echo configure:2823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2295. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2296. if test -z "$ac_err"; then
  2297. :
  2298. else
  2299. echo "$ac_err" >&5
  2300. echo "configure: failed program was:" >&5
  2301. cat conftest.$ac_ext >&5
  2302. rm -rf conftest*
  2303. CPP="${CC-cc} -E -traditional-cpp"
  2304. cat > conftest.$ac_ext <<EOF
  2305. #line 2834 "configure"
  2306. #include "confdefs.h"
  2307. #include <assert.h>
  2308. Syntax Error
  2309. EOF
  2310. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2311. { (eval echo configure:2840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2312. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2313. if test -z "$ac_err"; then
  2314. :
  2315. else
  2316. echo "$ac_err" >&5
  2317. echo "configure: failed program was:" >&5
  2318. cat conftest.$ac_ext >&5
  2319. rm -rf conftest*
  2320. CPP="${CC-cc} -nologo -E"
  2321. cat > conftest.$ac_ext <<EOF
  2322. #line 2851 "configure"
  2323. #include "confdefs.h"
  2324. #include <assert.h>
  2325. Syntax Error
  2326. EOF
  2327. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2328. { (eval echo configure:2857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2329. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2330. if test -z "$ac_err"; then
  2331. :
  2332. else
  2333. echo "$ac_err" >&5
  2334. echo "configure: failed program was:" >&5
  2335. cat conftest.$ac_ext >&5
  2336. rm -rf conftest*
  2337. CPP=/lib/cpp
  2338. fi
  2339. rm -f conftest*
  2340. fi
  2341. rm -f conftest*
  2342. fi
  2343. rm -f conftest*
  2344. ac_cv_prog_CPP="$CPP"
  2345. CPP="$ac_cv_prog_CPP"
  2346. else
  2347. ac_cv_prog_CPP="$CPP"
  2348. fi
  2349. echo "$ac_t""$CPP" 1>&6
  2350. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  2351. echo "configure:2881: checking for ANSI C header files" >&5
  2352. cat > conftest.$ac_ext <<EOF
  2353. #line 2884 "configure"
  2354. #include "confdefs.h"
  2355. #include <stdlib.h>
  2356. #include <stdarg.h>
  2357. #include <string.h>
  2358. #include <float.h>
  2359. EOF
  2360. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2361. { (eval echo configure:2892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2362. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2363. if test -z "$ac_err"; then
  2364. rm -rf conftest*
  2365. ac_cv_header_stdc=yes
  2366. else
  2367. echo "$ac_err" >&5
  2368. echo "configure: failed program was:" >&5
  2369. cat conftest.$ac_ext >&5
  2370. rm -rf conftest*
  2371. ac_cv_header_stdc=no
  2372. fi
  2373. rm -f conftest*
  2374. if test $ac_cv_header_stdc = yes; then
  2375. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2376. cat > conftest.$ac_ext <<EOF
  2377. #line 2909 "configure"
  2378. #include "confdefs.h"
  2379. #include <string.h>
  2380. EOF
  2381. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2382. egrep "memchr" >/dev/null 2>&1; then
  2383. :
  2384. else
  2385. rm -rf conftest*
  2386. ac_cv_header_stdc=no
  2387. fi
  2388. rm -f conftest*
  2389. fi
  2390. if test $ac_cv_header_stdc = yes; then
  2391. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2392. cat > conftest.$ac_ext <<EOF
  2393. #line 2927 "configure"
  2394. #include "confdefs.h"
  2395. #include <stdlib.h>
  2396. EOF
  2397. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2398. egrep "free" >/dev/null 2>&1; then
  2399. :
  2400. else
  2401. rm -rf conftest*
  2402. ac_cv_header_stdc=no
  2403. fi
  2404. rm -f conftest*
  2405. fi
  2406. if test $ac_cv_header_stdc = yes; then
  2407. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2408. if test "$cross_compiling" = yes; then
  2409. :
  2410. else
  2411. cat > conftest.$ac_ext <<EOF
  2412. #line 2948 "configure"
  2413. #include "confdefs.h"
  2414. #include <ctype.h>
  2415. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2416. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2417. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2418. int main () { int i; for (i = 0; i < 256; i++)
  2419. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  2420. exit (0); }
  2421. EOF
  2422. if { (eval echo configure:2959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2423. then
  2424. :
  2425. else
  2426. echo "configure: failed program was:" >&5
  2427. cat conftest.$ac_ext >&5
  2428. rm -fr conftest*
  2429. ac_cv_header_stdc=no
  2430. fi
  2431. rm -fr conftest*
  2432. fi
  2433. fi
  2434. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  2435. if test $ac_cv_header_stdc = yes; then
  2436. cat >> confdefs.h <<\EOF
  2437. #define STDC_HEADERS 1
  2438. EOF
  2439. fi
  2440. #AC_CHECK_HEADERS(curses.h limits.h termio.h termios.h unistd.h values.h)
  2441. for ac_hdr in limits.h termio.h termios.h unistd.h values.h f2c.h g2c.h
  2442. do
  2443. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2444. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2445. echo "configure:2986: checking for $ac_hdr" >&5
  2446. cat > conftest.$ac_ext <<EOF
  2447. #line 2989 "configure"
  2448. #include "confdefs.h"
  2449. #include <$ac_hdr>
  2450. EOF
  2451. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2452. { (eval echo configure:2994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2453. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2454. if test -z "$ac_err"; then
  2455. rm -rf conftest*
  2456. eval "ac_cv_header_$ac_safe=yes"
  2457. else
  2458. echo "$ac_err" >&5
  2459. echo "configure: failed program was:" >&5
  2460. cat conftest.$ac_ext >&5
  2461. rm -rf conftest*
  2462. eval "ac_cv_header_$ac_safe=no"
  2463. fi
  2464. rm -f conftest*
  2465. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2466. echo "$ac_t""yes" 1>&6
  2467. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2468. cat >> confdefs.h <<EOF
  2469. #define $ac_tr_hdr 1
  2470. EOF
  2471. else
  2472. echo "$ac_t""no" 1>&6
  2473. fi
  2474. done
  2475. for ac_hdr in sys/ioctl.h sys/mtio.h sys/resource.h sys/time.h
  2476. do
  2477. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2478. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2479. echo "configure:3023: checking for $ac_hdr" >&5
  2480. cat > conftest.$ac_ext <<EOF
  2481. #line 3026 "configure"
  2482. #include "confdefs.h"
  2483. #include <$ac_hdr>
  2484. EOF
  2485. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2486. { (eval echo configure:3031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2487. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2488. if test -z "$ac_err"; then
  2489. rm -rf conftest*
  2490. eval "ac_cv_header_$ac_safe=yes"
  2491. else
  2492. echo "$ac_err" >&5
  2493. echo "configure: failed program was:" >&5
  2494. cat conftest.$ac_ext >&5
  2495. rm -rf conftest*
  2496. eval "ac_cv_header_$ac_safe=no"
  2497. fi
  2498. rm -f conftest*
  2499. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2500. echo "$ac_t""yes" 1>&6
  2501. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2502. cat >> confdefs.h <<EOF
  2503. #define $ac_tr_hdr 1
  2504. EOF
  2505. else
  2506. echo "$ac_t""no" 1>&6
  2507. fi
  2508. done
  2509. for ac_hdr in sys/timeb.h sys/types.h sys/utsname.h
  2510. do
  2511. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2512. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2513. echo "configure:3060: checking for $ac_hdr" >&5
  2514. cat > conftest.$ac_ext <<EOF
  2515. #line 3063 "configure"
  2516. #include "confdefs.h"
  2517. #include <$ac_hdr>
  2518. EOF
  2519. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2520. { (eval echo configure:3068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2521. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2522. if test -z "$ac_err"; then
  2523. rm -rf conftest*
  2524. eval "ac_cv_header_$ac_safe=yes"
  2525. else
  2526. echo "$ac_err" >&5
  2527. echo "configure: failed program was:" >&5
  2528. cat conftest.$ac_ext >&5
  2529. rm -rf conftest*
  2530. eval "ac_cv_header_$ac_safe=no"
  2531. fi
  2532. rm -f conftest*
  2533. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2534. echo "$ac_t""yes" 1>&6
  2535. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2536. cat >> confdefs.h <<EOF
  2537. #define $ac_tr_hdr 1
  2538. EOF
  2539. else
  2540. echo "$ac_t""no" 1>&6
  2541. fi
  2542. done
  2543. for ac_hdr in libintl.h iconv.h
  2544. do
  2545. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2546. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2547. echo "configure:3097: checking for $ac_hdr" >&5
  2548. cat > conftest.$ac_ext <<EOF
  2549. #line 3100 "configure"
  2550. #include "confdefs.h"
  2551. #include <$ac_hdr>
  2552. EOF
  2553. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2554. { (eval echo configure:3105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2555. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2556. if test -z "$ac_err"; then
  2557. rm -rf conftest*
  2558. eval "ac_cv_header_$ac_safe=yes"
  2559. else
  2560. echo "$ac_err" >&5
  2561. echo "configure: failed program was:" >&5
  2562. cat conftest.$ac_ext >&5
  2563. rm -rf conftest*
  2564. eval "ac_cv_header_$ac_safe=no"
  2565. fi
  2566. rm -f conftest*
  2567. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2568. echo "$ac_t""yes" 1>&6
  2569. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2570. cat >> confdefs.h <<EOF
  2571. #define $ac_tr_hdr 1
  2572. EOF
  2573. else
  2574. echo "$ac_t""no" 1>&6
  2575. fi
  2576. done
  2577. for ac_hdr in langinfo.h
  2578. do
  2579. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2580. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2581. echo "configure:3134: checking for $ac_hdr" >&5
  2582. cat > conftest.$ac_ext <<EOF
  2583. #line 3137 "configure"
  2584. #include "confdefs.h"
  2585. #include <$ac_hdr>
  2586. EOF
  2587. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2588. { (eval echo configure:3142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2589. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2590. if test -z "$ac_err"; then
  2591. rm -rf conftest*
  2592. eval "ac_cv_header_$ac_safe=yes"
  2593. else
  2594. echo "$ac_err" >&5
  2595. echo "configure: failed program was:" >&5
  2596. cat conftest.$ac_ext >&5
  2597. rm -rf conftest*
  2598. eval "ac_cv_header_$ac_safe=no"
  2599. fi
  2600. rm -f conftest*
  2601. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2602. echo "$ac_t""yes" 1>&6
  2603. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2604. cat >> confdefs.h <<EOF
  2605. #define $ac_tr_hdr 1
  2606. EOF
  2607. else
  2608. echo "$ac_t""no" 1>&6
  2609. fi
  2610. done
  2611. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  2612. echo "configure:3168: checking whether time.h and sys/time.h may both be included" >&5
  2613. cat > conftest.$ac_ext <<EOF
  2614. #line 3171 "configure"
  2615. #include "confdefs.h"
  2616. #include <sys/types.h>
  2617. #include <sys/time.h>
  2618. #include <time.h>
  2619. int main() {
  2620. struct tm *tp;
  2621. ; return 0; }
  2622. EOF
  2623. if { (eval echo configure:3180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2624. rm -rf conftest*
  2625. ac_cv_header_time=yes
  2626. else
  2627. echo "configure: failed program was:" >&5
  2628. cat conftest.$ac_ext >&5
  2629. rm -rf conftest*
  2630. ac_cv_header_time=no
  2631. fi
  2632. rm -f conftest*
  2633. echo "$ac_t""$ac_cv_header_time" 1>&6
  2634. if test $ac_cv_header_time = yes; then
  2635. cat >> confdefs.h <<\EOF
  2636. #define TIME_WITH_SYS_TIME 1
  2637. EOF
  2638. fi
  2639. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  2640. echo "configure:3200: checking for off_t" >&5
  2641. cat > conftest.$ac_ext <<EOF
  2642. #line 3203 "configure"
  2643. #include "confdefs.h"
  2644. #include <sys/types.h>
  2645. #if STDC_HEADERS
  2646. #include <stdlib.h>
  2647. #include <stddef.h>
  2648. #endif
  2649. EOF
  2650. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2651. egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2652. rm -rf conftest*
  2653. ac_cv_type_off_t=yes
  2654. else
  2655. rm -rf conftest*
  2656. ac_cv_type_off_t=no
  2657. fi
  2658. rm -f conftest*
  2659. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  2660. if test $ac_cv_type_off_t = no; then
  2661. cat >> confdefs.h <<\EOF
  2662. #define off_t long
  2663. EOF
  2664. fi
  2665. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  2666. echo "configure:3230: checking for uid_t in sys/types.h" >&5
  2667. cat > conftest.$ac_ext <<EOF
  2668. #line 3233 "configure"
  2669. #include "confdefs.h"
  2670. #include <sys/types.h>
  2671. EOF
  2672. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2673. egrep "uid_t" >/dev/null 2>&1; then
  2674. rm -rf conftest*
  2675. ac_cv_type_uid_t=yes
  2676. else
  2677. rm -rf conftest*
  2678. ac_cv_type_uid_t=no
  2679. fi
  2680. rm -f conftest*
  2681. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  2682. if test $ac_cv_type_uid_t = no; then
  2683. cat >> confdefs.h <<\EOF
  2684. #define uid_t int
  2685. EOF
  2686. cat >> confdefs.h <<\EOF
  2687. #define gid_t int
  2688. EOF
  2689. fi
  2690. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  2691. echo "configure:3261: checking return type of signal handlers" >&5
  2692. cat > conftest.$ac_ext <<EOF
  2693. #line 3264 "configure"
  2694. #include "confdefs.h"
  2695. #include <sys/types.h>
  2696. #include <signal.h>
  2697. #ifdef signal
  2698. #undef signal
  2699. #endif
  2700. #ifdef __cplusplus
  2701. extern "C" void (*signal (int, void (*)(int)))(int);
  2702. #else
  2703. void (*signal ()) ();
  2704. #endif
  2705. int main() {
  2706. int i;
  2707. ; return 0; }
  2708. EOF
  2709. if { (eval echo configure:3281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2710. rm -rf conftest*
  2711. ac_cv_type_signal=void
  2712. else
  2713. echo "configure: failed program was:" >&5
  2714. cat conftest.$ac_ext >&5
  2715. rm -rf conftest*
  2716. ac_cv_type_signal=int
  2717. fi
  2718. rm -f conftest*
  2719. echo "$ac_t""$ac_cv_type_signal" 1>&6
  2720. cat >> confdefs.h <<EOF
  2721. #define RETSIGTYPE $ac_cv_type_signal
  2722. EOF
  2723. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  2724. echo "configure:3299: checking for Cygwin environment" >&5
  2725. cat > conftest.$ac_ext <<EOF
  2726. #line 3302 "configure"
  2727. #include "confdefs.h"
  2728. int main() {
  2729. #ifndef __CYGWIN__
  2730. #define __CYGWIN__ __CYGWIN32__
  2731. #endif
  2732. return __CYGWIN__;
  2733. ; return 0; }
  2734. EOF
  2735. if { (eval echo configure:3313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2736. rm -rf conftest*
  2737. ac_cv_cygwin=yes
  2738. else
  2739. echo "configure: failed program was:" >&5
  2740. cat conftest.$ac_ext >&5
  2741. rm -rf conftest*
  2742. ac_cv_cygwin=no
  2743. fi
  2744. rm -f conftest*
  2745. rm -f conftest*
  2746. echo "$ac_t""$ac_cv_cygwin" 1>&6
  2747. CYGWIN=
  2748. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  2749. for ac_func in ftime gethostname gettimeofday lseek nice time uname
  2750. do
  2751. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2752. echo "configure:3331: checking for $ac_func" >&5
  2753. cat > conftest.$ac_ext <<EOF
  2754. #line 3334 "configure"
  2755. #include "confdefs.h"
  2756. /* System header to define __stub macros and hopefully few prototypes,
  2757. which can conflict with char $ac_func(); below. */
  2758. #include <assert.h>
  2759. /* Override any gcc2 internal prototype to avoid an error. */
  2760. /* We use char because int might match the return type of a gcc2
  2761. builtin and then its argument prototype would still apply. */
  2762. char $ac_func();
  2763. int main() {
  2764. /* The GNU C library defines this for functions which it implements
  2765. to always fail with ENOSYS. Some functions are actually named
  2766. something starting with __ and the normal name is an alias. */
  2767. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2768. choke me
  2769. #else
  2770. $ac_func();
  2771. #endif
  2772. ; return 0; }
  2773. EOF
  2774. if { (eval echo configure:3357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2775. rm -rf conftest*
  2776. eval "ac_cv_func_$ac_func=yes"
  2777. else
  2778. echo "configure: failed program was:" >&5
  2779. cat conftest.$ac_ext >&5
  2780. rm -rf conftest*
  2781. eval "ac_cv_func_$ac_func=no"
  2782. fi
  2783. rm -f conftest*
  2784. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2785. echo "$ac_t""yes" 1>&6
  2786. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2787. cat >> confdefs.h <<EOF
  2788. #define $ac_tr_func 1
  2789. EOF
  2790. else
  2791. echo "$ac_t""no" 1>&6
  2792. fi
  2793. done
  2794. for ac_func in seteuid setpriority setreuid setruid
  2795. do
  2796. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2797. echo "configure:3383: checking for $ac_func" >&5
  2798. cat > conftest.$ac_ext <<EOF
  2799. #line 3386 "configure"
  2800. #include "confdefs.h"
  2801. /* System header to define __stub macros and hopefully few prototypes,
  2802. which can conflict with char $ac_func(); below. */
  2803. #include <assert.h>
  2804. /* Override any gcc2 internal prototype to avoid an error. */
  2805. /* We use char because int might match the return type of a gcc2
  2806. builtin and then its argument prototype would still apply. */
  2807. char $ac_func();
  2808. int main() {
  2809. /* The GNU C library defines this for functions which it implements
  2810. to always fail with ENOSYS. Some functions are actually named
  2811. something starting with __ and the normal name is an alias. */
  2812. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2813. choke me
  2814. #else
  2815. $ac_func();
  2816. #endif
  2817. ; return 0; }
  2818. EOF
  2819. if { (eval echo configure:3409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2820. rm -rf conftest*
  2821. eval "ac_cv_func_$ac_func=yes"
  2822. else
  2823. echo "configure: failed program was:" >&5
  2824. cat conftest.$ac_ext >&5
  2825. rm -rf conftest*
  2826. eval "ac_cv_func_$ac_func=no"
  2827. fi
  2828. rm -f conftest*
  2829. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2830. echo "$ac_t""yes" 1>&6
  2831. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2832. cat >> confdefs.h <<EOF
  2833. #define $ac_tr_func 1
  2834. EOF
  2835. else
  2836. echo "$ac_t""no" 1>&6
  2837. fi
  2838. done
  2839. for ac_func in drand48
  2840. do
  2841. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2842. echo "configure:3435: checking for $ac_func" >&5
  2843. cat > conftest.$ac_ext <<EOF
  2844. #line 3438 "configure"
  2845. #include "confdefs.h"
  2846. /* System header to define __stub macros and hopefully few prototypes,
  2847. which can conflict with char $ac_func(); below. */
  2848. #include <assert.h>
  2849. /* Override any gcc2 internal prototype to avoid an error. */
  2850. /* We use char because int might match the return type of a gcc2
  2851. builtin and then its argument prototype would still apply. */
  2852. char $ac_func();
  2853. int main() {
  2854. /* The GNU C library defines this for functions which it implements
  2855. to always fail with ENOSYS. Some functions are actually named
  2856. something starting with __ and the normal name is an alias. */
  2857. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2858. choke me
  2859. #else
  2860. $ac_func();
  2861. #endif
  2862. ; return 0; }
  2863. EOF
  2864. if { (eval echo configure:3461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2865. rm -rf conftest*
  2866. eval "ac_cv_func_$ac_func=yes"
  2867. else
  2868. echo "configure: failed program was:" >&5
  2869. cat conftest.$ac_ext >&5
  2870. rm -rf conftest*
  2871. eval "ac_cv_func_$ac_func=no"
  2872. fi
  2873. rm -f conftest*
  2874. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2875. echo "$ac_t""yes" 1>&6
  2876. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2877. cat >> confdefs.h <<EOF
  2878. #define $ac_tr_func 1
  2879. EOF
  2880. else
  2881. echo "$ac_t""no" 1>&6
  2882. fi
  2883. done
  2884. for ac_func in putenv setenv
  2885. do
  2886. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2887. echo "configure:3487: checking for $ac_func" >&5
  2888. cat > conftest.$ac_ext <<EOF
  2889. #line 3490 "configure"
  2890. #include "confdefs.h"
  2891. /* System header to define __stub macros and hopefully few prototypes,
  2892. which can conflict with char $ac_func(); below. */
  2893. #include <assert.h>
  2894. /* Override any gcc2 internal prototype to avoid an error. */
  2895. /* We use char because int might match the return type of a gcc2
  2896. builtin and then its argument prototype would still apply. */
  2897. char $ac_func();
  2898. int main() {
  2899. /* The GNU C library defines this for functions which it implements
  2900. to always fail with ENOSYS. Some functions are actually named
  2901. something starting with __ and the normal name is an alias. */
  2902. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2903. choke me
  2904. #else
  2905. $ac_func();
  2906. #endif
  2907. ; return 0; }
  2908. EOF
  2909. if { (eval echo configure:3513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2910. rm -rf conftest*
  2911. eval "ac_cv_func_$ac_func=yes"
  2912. else
  2913. echo "configure: failed program was:" >&5
  2914. cat conftest.$ac_ext >&5
  2915. rm -rf conftest*
  2916. eval "ac_cv_func_$ac_func=no"
  2917. fi
  2918. rm -f conftest*
  2919. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2920. echo "$ac_t""yes" 1>&6
  2921. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2922. cat >> confdefs.h <<EOF
  2923. #define $ac_tr_func 1
  2924. EOF
  2925. else
  2926. echo "$ac_t""no" 1>&6
  2927. fi
  2928. done
  2929. for ac_func in nanosleep
  2930. do
  2931. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2932. echo "configure:3539: checking for $ac_func" >&5
  2933. cat > conftest.$ac_ext <<EOF
  2934. #line 3542 "configure"
  2935. #include "confdefs.h"
  2936. /* System header to define __stub macros and hopefully few prototypes,
  2937. which can conflict with char $ac_func(); below. */
  2938. #include <assert.h>
  2939. /* Override any gcc2 internal prototype to avoid an error. */
  2940. /* We use char because int might match the return type of a gcc2
  2941. builtin and then its argument prototype would still apply. */
  2942. char $ac_func();
  2943. int main() {
  2944. /* The GNU C library defines this for functions which it implements
  2945. to always fail with ENOSYS. Some functions are actually named
  2946. something starting with __ and the normal name is an alias. */
  2947. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2948. choke me
  2949. #else
  2950. $ac_func();
  2951. #endif
  2952. ; return 0; }
  2953. EOF
  2954. if { (eval echo configure:3565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2955. rm -rf conftest*
  2956. eval "ac_cv_func_$ac_func=yes"
  2957. else
  2958. echo "configure: failed program was:" >&5
  2959. cat conftest.$ac_ext >&5
  2960. rm -rf conftest*
  2961. eval "ac_cv_func_$ac_func=no"
  2962. fi
  2963. rm -f conftest*
  2964. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2965. echo "$ac_t""yes" 1>&6
  2966. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2967. cat >> confdefs.h <<EOF
  2968. #define $ac_tr_func 1
  2969. EOF
  2970. else
  2971. echo "$ac_t""no" 1>&6
  2972. fi
  2973. done
  2974. if test "$cross_compiling" != "yes" ; then
  2975. echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
  2976. echo "configure:3590: checking whether setpgrp takes no argument" >&5
  2977. if test "$cross_compiling" = yes; then
  2978. { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
  2979. else
  2980. cat > conftest.$ac_ext <<EOF
  2981. #line 3596 "configure"
  2982. #include "confdefs.h"
  2983. #ifdef HAVE_UNISTD_H
  2984. #include <unistd.h>
  2985. #endif
  2986. /*
  2987. * If this system has a BSD-style setpgrp, which takes arguments, exit
  2988. * successfully.
  2989. */
  2990. main()
  2991. {
  2992. if (setpgrp(1,1) == -1)
  2993. exit(0);
  2994. else
  2995. exit(1);
  2996. }
  2997. EOF
  2998. if { (eval echo configure:3616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2999. then
  3000. ac_cv_func_setpgrp_void=no
  3001. else
  3002. echo "configure: failed program was:" >&5
  3003. cat conftest.$ac_ext >&5
  3004. rm -fr conftest*
  3005. ac_cv_func_setpgrp_void=yes
  3006. fi
  3007. rm -fr conftest*
  3008. fi
  3009. echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
  3010. if test $ac_cv_func_setpgrp_void = yes; then
  3011. cat >> confdefs.h <<\EOF
  3012. #define SETPGRP_VOID 1
  3013. EOF
  3014. fi
  3015. else
  3016. CROSS_COMPILING=1
  3017. fi
  3018. echo $ac_n "checking for long long int""... $ac_c" 1>&6
  3019. echo "configure:3644: checking for long long int" >&5
  3020. cat > conftest.$ac_ext <<EOF
  3021. #line 3646 "configure"
  3022. #include "confdefs.h"
  3023. int main() {
  3024. long long int x;
  3025. ; return 0; }
  3026. EOF
  3027. if { (eval echo configure:3653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3028. rm -rf conftest*
  3029. echo "$ac_t""yes" 1>&6
  3030. cat >> confdefs.h <<\EOF
  3031. #define HAVE_LONG_LONG_INT 1
  3032. EOF
  3033. else
  3034. echo "configure: failed program was:" >&5
  3035. cat conftest.$ac_ext >&5
  3036. rm -rf conftest*
  3037. echo "$ac_t""no" 1>&6
  3038. fi
  3039. rm -f conftest*
  3040. echo $ac_n "checking for int64_t""... $ac_c" 1>&6
  3041. echo "configure:3673: checking for int64_t" >&5
  3042. cat > conftest.$ac_ext <<EOF
  3043. #line 3675 "configure"
  3044. #include "confdefs.h"
  3045. #include <sys/types.h>
  3046. int main() {
  3047. int64_t x;
  3048. ; return 0; }
  3049. EOF
  3050. if { (eval echo configure:3682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3051. rm -rf conftest*
  3052. echo "$ac_t""yes" 1>&6
  3053. cat >> confdefs.h <<\EOF
  3054. #define HAVE_INT64_T 1
  3055. EOF
  3056. else
  3057. echo "configure: failed program was:" >&5
  3058. cat conftest.$ac_ext >&5
  3059. rm -rf conftest*
  3060. echo "$ac_t""no" 1>&6
  3061. fi
  3062. rm -f conftest*
  3063. echo $ac_n "checking for W11""... $ac_c" 1>&6
  3064. echo "configure:3702: checking for W11" >&5
  3065. case "$enable_w11" in
  3066. yes|no) echo "$ac_t"""$enable_w11"" 1>&6 ;;
  3067. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  3068. esac
  3069. USE_X11=
  3070. USE_W11=
  3071. XLIB=
  3072. XTLIB=
  3073. if test "$enable_w11" = "yes" ; then
  3074. X_CFLAGS=-I${SRCDIR}/display/drivers/windows/libW11
  3075. X_LIBS='-L$(LIBDIR)'
  3076. USE_W11="1"
  3077. USE_X11="1"
  3078. XLIB=-lX11
  3079. CFLAGS="$CFLAGS -D__W98__"
  3080. else
  3081. # If we find X, set shell vars x_includes and x_libraries to the
  3082. # paths, otherwise set no_x=yes.
  3083. # Uses ac_ vars as temps to allow command line to override cache and checks.
  3084. # --without-x overrides everything else, but does not touch the cache.
  3085. echo $ac_n "checking for X""... $ac_c" 1>&6
  3086. echo "configure:3730: checking for X" >&5
  3087. # Check whether --with-x or --without-x was given.
  3088. if test "${with_x+set}" = set; then
  3089. withval="$with_x"
  3090. :
  3091. fi
  3092. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  3093. if test "x$with_x" = xno; then
  3094. # The user explicitly disabled X.
  3095. have_x=disabled
  3096. else
  3097. if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  3098. # Both variables are already set.
  3099. have_x=yes
  3100. else
  3101. # One or both of the vars are not set, and there is no cached value.
  3102. ac_x_includes=NO ac_x_libraries=NO
  3103. rm -fr conftestdir
  3104. if mkdir conftestdir; then
  3105. cd conftestdir
  3106. # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  3107. cat > Imakefile <<'EOF'
  3108. acfindx:
  3109. @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  3110. EOF
  3111. if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  3112. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3113. eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  3114. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  3115. for ac_extension in a so sl; do
  3116. if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  3117. test -f $ac_im_libdir/libX11.$ac_extension; then
  3118. ac_im_usrlibdir=$ac_im_libdir; break
  3119. fi
  3120. done
  3121. # Screen out bogus values from the imake configuration. They are
  3122. # bogus both because they are the default anyway, and because
  3123. # using them would break gcc on systems where it needs fixed includes.
  3124. case "$ac_im_incroot" in
  3125. /usr/include) ;;
  3126. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
  3127. esac
  3128. case "$ac_im_usrlibdir" in
  3129. /usr/lib | /lib) ;;
  3130. *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
  3131. esac
  3132. fi
  3133. cd ..
  3134. rm -fr conftestdir
  3135. fi
  3136. if test "$ac_x_includes" = NO; then
  3137. # Guess where to find include files, by looking for this one X11 .h file.
  3138. test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  3139. # First, try using that file with no special directory specified.
  3140. cat > conftest.$ac_ext <<EOF
  3141. #line 3790 "configure"
  3142. #include "confdefs.h"
  3143. #include <$x_direct_test_include>
  3144. EOF
  3145. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3146. { (eval echo configure:3795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3147. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3148. if test -z "$ac_err"; then
  3149. rm -rf conftest*
  3150. # We can compile using X headers with no special include directory.
  3151. ac_x_includes=
  3152. else
  3153. echo "$ac_err" >&5
  3154. echo "configure: failed program was:" >&5
  3155. cat conftest.$ac_ext >&5
  3156. rm -rf conftest*
  3157. # Look for the header file in a standard set of common directories.
  3158. # Check X11 before X11Rn because it is often a symlink to the current release.
  3159. for ac_dir in \
  3160. /usr/X11/include \
  3161. /usr/X11R6/include \
  3162. /usr/X11R5/include \
  3163. /usr/X11R4/include \
  3164. \
  3165. /usr/include/X11 \
  3166. /usr/include/X11R6 \
  3167. /usr/include/X11R5 \
  3168. /usr/include/X11R4 \
  3169. \
  3170. /usr/local/X11/include \
  3171. /usr/local/X11R6/include \
  3172. /usr/local/X11R5/include \
  3173. /usr/local/X11R4/include \
  3174. \
  3175. /usr/local/include/X11 \
  3176. /usr/local/include/X11R6 \
  3177. /usr/local/include/X11R5 \
  3178. /usr/local/include/X11R4 \
  3179. \
  3180. /usr/X386/include \
  3181. /usr/x386/include \
  3182. /usr/XFree86/include/X11 \
  3183. \
  3184. /usr/include \
  3185. /usr/local/include \
  3186. /usr/unsupported/include \
  3187. /usr/athena/include \
  3188. /usr/local/x11r5/include \
  3189. /usr/lpp/Xamples/include \
  3190. \
  3191. /usr/openwin/include \
  3192. /usr/openwin/share/include \
  3193. ; \
  3194. do
  3195. if test -r "$ac_dir/$x_direct_test_include"; then
  3196. ac_x_includes=$ac_dir
  3197. break
  3198. fi
  3199. done
  3200. fi
  3201. rm -f conftest*
  3202. fi # $ac_x_includes = NO
  3203. if test "$ac_x_libraries" = NO; then
  3204. # Check for the libraries.
  3205. test -z "$x_direct_test_library" && x_direct_test_library=Xt
  3206. test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  3207. # See if we find them without any special options.
  3208. # Don't add to $LIBS permanently.
  3209. ac_save_LIBS="$LIBS"
  3210. LIBS="-l$x_direct_test_library $LIBS"
  3211. cat > conftest.$ac_ext <<EOF
  3212. #line 3864 "configure"
  3213. #include "confdefs.h"
  3214. int main() {
  3215. ${x_direct_test_function}()
  3216. ; return 0; }
  3217. EOF
  3218. if { (eval echo configure:3871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3219. rm -rf conftest*
  3220. LIBS="$ac_save_LIBS"
  3221. # We can link X programs with no special library path.
  3222. ac_x_libraries=
  3223. else
  3224. echo "configure: failed program was:" >&5
  3225. cat conftest.$ac_ext >&5
  3226. rm -rf conftest*
  3227. LIBS="$ac_save_LIBS"
  3228. # First see if replacing the include by lib works.
  3229. # Check X11 before X11Rn because it is often a symlink to the current release.
  3230. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  3231. /usr/X11/lib \
  3232. /usr/X11R6/lib \
  3233. /usr/X11R5/lib \
  3234. /usr/X11R4/lib \
  3235. \
  3236. /usr/lib/X11 \
  3237. /usr/lib/X11R6 \
  3238. /usr/lib/X11R5 \
  3239. /usr/lib/X11R4 \
  3240. \
  3241. /usr/local/X11/lib \
  3242. /usr/local/X11R6/lib \
  3243. /usr/local/X11R5/lib \
  3244. /usr/local/X11R4/lib \
  3245. \
  3246. /usr/local/lib/X11 \
  3247. /usr/local/lib/X11R6 \
  3248. /usr/local/lib/X11R5 \
  3249. /usr/local/lib/X11R4 \
  3250. \
  3251. /usr/X386/lib \
  3252. /usr/x386/lib \
  3253. /usr/XFree86/lib/X11 \
  3254. \
  3255. /usr/lib \
  3256. /usr/local/lib \
  3257. /usr/unsupported/lib \
  3258. /usr/athena/lib \
  3259. /usr/local/x11r5/lib \
  3260. /usr/lpp/Xamples/lib \
  3261. /lib/usr/lib/X11 \
  3262. \
  3263. /usr/openwin/lib \
  3264. /usr/openwin/share/lib \
  3265. ; \
  3266. do
  3267. for ac_extension in a so sl; do
  3268. if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  3269. ac_x_libraries=$ac_dir
  3270. break 2
  3271. fi
  3272. done
  3273. done
  3274. fi
  3275. rm -f conftest*
  3276. fi # $ac_x_libraries = NO
  3277. if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
  3278. # Didn't find X anywhere. Cache the known absence of X.
  3279. ac_cv_have_x="have_x=no"
  3280. else
  3281. # Record where we found X for the cache.
  3282. ac_cv_have_x="have_x=yes \
  3283. ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  3284. fi
  3285. fi
  3286. eval "$ac_cv_have_x"
  3287. fi # $with_x != no
  3288. if test "$have_x" != yes; then
  3289. echo "$ac_t""$have_x" 1>&6
  3290. no_x=yes
  3291. else
  3292. # If each of the values was on the command line, it overrides each guess.
  3293. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  3294. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  3295. # Update the cache value to reflect the command line values.
  3296. ac_cv_have_x="have_x=yes \
  3297. ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  3298. echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
  3299. fi
  3300. if test "$no_x" = yes; then
  3301. # Not all programs may use this symbol, but it does not hurt to define it.
  3302. cat >> confdefs.h <<\EOF
  3303. #define X_DISPLAY_MISSING 1
  3304. EOF
  3305. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  3306. else
  3307. if test -n "$x_includes"; then
  3308. X_CFLAGS="$X_CFLAGS -I$x_includes"
  3309. fi
  3310. # It would also be nice to do this for all -L options, not just this one.
  3311. if test -n "$x_libraries"; then
  3312. X_LIBS="$X_LIBS -L$x_libraries"
  3313. # For Solaris; some versions of Sun CC require a space after -R and
  3314. # others require no space. Words are not sufficient . . . .
  3315. case "`(uname -sr) 2>/dev/null`" in
  3316. "SunOS 5"*)
  3317. echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
  3318. echo "configure:3976: checking whether -R must be followed by a space" >&5
  3319. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
  3320. cat > conftest.$ac_ext <<EOF
  3321. #line 3979 "configure"
  3322. #include "confdefs.h"
  3323. int main() {
  3324. ; return 0; }
  3325. EOF
  3326. if { (eval echo configure:3986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3327. rm -rf conftest*
  3328. ac_R_nospace=yes
  3329. else
  3330. echo "configure: failed program was:" >&5
  3331. cat conftest.$ac_ext >&5
  3332. rm -rf conftest*
  3333. ac_R_nospace=no
  3334. fi
  3335. rm -f conftest*
  3336. if test $ac_R_nospace = yes; then
  3337. echo "$ac_t""no" 1>&6
  3338. X_LIBS="$X_LIBS -R$x_libraries"
  3339. else
  3340. LIBS="$ac_xsave_LIBS -R $x_libraries"
  3341. cat > conftest.$ac_ext <<EOF
  3342. #line 4002 "configure"
  3343. #include "confdefs.h"
  3344. int main() {
  3345. ; return 0; }
  3346. EOF
  3347. if { (eval echo configure:4009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3348. rm -rf conftest*
  3349. ac_R_space=yes
  3350. else
  3351. echo "configure: failed program was:" >&5
  3352. cat conftest.$ac_ext >&5
  3353. rm -rf conftest*
  3354. ac_R_space=no
  3355. fi
  3356. rm -f conftest*
  3357. if test $ac_R_space = yes; then
  3358. echo "$ac_t""yes" 1>&6
  3359. X_LIBS="$X_LIBS -R $x_libraries"
  3360. else
  3361. echo "$ac_t""neither works" 1>&6
  3362. fi
  3363. fi
  3364. LIBS="$ac_xsave_LIBS"
  3365. esac
  3366. fi
  3367. # Check for system-dependent libraries X programs must link with.
  3368. # Do this before checking for the system-independent R6 libraries
  3369. # (-lICE), since we may need -lsocket or whatever for X linking.
  3370. if test "$ISC" = yes; then
  3371. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  3372. else
  3373. # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  3374. # libraries were built with DECnet support. And karl@cs.umb.edu says
  3375. # the Alpha needs dnet_stub (dnet does not exist).
  3376. echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
  3377. echo "configure:4041: checking for dnet_ntoa in -ldnet" >&5
  3378. ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  3379. ac_save_LIBS="$LIBS"
  3380. LIBS="-ldnet $LIBS"
  3381. cat > conftest.$ac_ext <<EOF
  3382. #line 4047 "configure"
  3383. #include "confdefs.h"
  3384. /* Override any gcc2 internal prototype to avoid an error. */
  3385. /* We use char because int might match the return type of a gcc2
  3386. builtin and then its argument prototype would still apply. */
  3387. char dnet_ntoa();
  3388. int main() {
  3389. dnet_ntoa()
  3390. ; return 0; }
  3391. EOF
  3392. if { (eval echo configure:4058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3393. rm -rf conftest*
  3394. eval "ac_cv_lib_$ac_lib_var=yes"
  3395. else
  3396. echo "configure: failed program was:" >&5
  3397. cat conftest.$ac_ext >&5
  3398. rm -rf conftest*
  3399. eval "ac_cv_lib_$ac_lib_var=no"
  3400. fi
  3401. rm -f conftest*
  3402. LIBS="$ac_save_LIBS"
  3403. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3404. echo "$ac_t""yes" 1>&6
  3405. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  3406. else
  3407. echo "$ac_t""no" 1>&6
  3408. fi
  3409. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  3410. echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
  3411. echo "configure:4079: checking for dnet_ntoa in -ldnet_stub" >&5
  3412. ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  3413. ac_save_LIBS="$LIBS"
  3414. LIBS="-ldnet_stub $LIBS"
  3415. cat > conftest.$ac_ext <<EOF
  3416. #line 4085 "configure"
  3417. #include "confdefs.h"
  3418. /* Override any gcc2 internal prototype to avoid an error. */
  3419. /* We use char because int might match the return type of a gcc2
  3420. builtin and then its argument prototype would still apply. */
  3421. char dnet_ntoa();
  3422. int main() {
  3423. dnet_ntoa()
  3424. ; return 0; }
  3425. EOF
  3426. if { (eval echo configure:4096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3427. rm -rf conftest*
  3428. eval "ac_cv_lib_$ac_lib_var=yes"
  3429. else
  3430. echo "configure: failed program was:" >&5
  3431. cat conftest.$ac_ext >&5
  3432. rm -rf conftest*
  3433. eval "ac_cv_lib_$ac_lib_var=no"
  3434. fi
  3435. rm -f conftest*
  3436. LIBS="$ac_save_LIBS"
  3437. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3438. echo "$ac_t""yes" 1>&6
  3439. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  3440. else
  3441. echo "$ac_t""no" 1>&6
  3442. fi
  3443. fi
  3444. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  3445. # to get the SysV transport functions.
  3446. # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
  3447. # needs -lnsl.
  3448. # The nsl library prevents programs from opening the X display
  3449. # on Irix 5.2, according to dickey@clark.net.
  3450. echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
  3451. echo "configure:4124: checking for gethostbyname" >&5
  3452. cat > conftest.$ac_ext <<EOF
  3453. #line 4127 "configure"
  3454. #include "confdefs.h"
  3455. /* System header to define __stub macros and hopefully few prototypes,
  3456. which can conflict with char gethostbyname(); below. */
  3457. #include <assert.h>
  3458. /* Override any gcc2 internal prototype to avoid an error. */
  3459. /* We use char because int might match the return type of a gcc2
  3460. builtin and then its argument prototype would still apply. */
  3461. char gethostbyname();
  3462. int main() {
  3463. /* The GNU C library defines this for functions which it implements
  3464. to always fail with ENOSYS. Some functions are actually named
  3465. something starting with __ and the normal name is an alias. */
  3466. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  3467. choke me
  3468. #else
  3469. gethostbyname();
  3470. #endif
  3471. ; return 0; }
  3472. EOF
  3473. if { (eval echo configure:4150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3474. rm -rf conftest*
  3475. eval "ac_cv_func_gethostbyname=yes"
  3476. else
  3477. echo "configure: failed program was:" >&5
  3478. cat conftest.$ac_ext >&5
  3479. rm -rf conftest*
  3480. eval "ac_cv_func_gethostbyname=no"
  3481. fi
  3482. rm -f conftest*
  3483. if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  3484. echo "$ac_t""yes" 1>&6
  3485. :
  3486. else
  3487. echo "$ac_t""no" 1>&6
  3488. fi
  3489. if test $ac_cv_func_gethostbyname = no; then
  3490. echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  3491. echo "configure:4170: checking for gethostbyname in -lnsl" >&5
  3492. ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  3493. ac_save_LIBS="$LIBS"
  3494. LIBS="-lnsl $LIBS"
  3495. cat > conftest.$ac_ext <<EOF
  3496. #line 4176 "configure"
  3497. #include "confdefs.h"
  3498. /* Override any gcc2 internal prototype to avoid an error. */
  3499. /* We use char because int might match the return type of a gcc2
  3500. builtin and then its argument prototype would still apply. */
  3501. char gethostbyname();
  3502. int main() {
  3503. gethostbyname()
  3504. ; return 0; }
  3505. EOF
  3506. if { (eval echo configure:4187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3507. rm -rf conftest*
  3508. eval "ac_cv_lib_$ac_lib_var=yes"
  3509. else
  3510. echo "configure: failed program was:" >&5
  3511. cat conftest.$ac_ext >&5
  3512. rm -rf conftest*
  3513. eval "ac_cv_lib_$ac_lib_var=no"
  3514. fi
  3515. rm -f conftest*
  3516. LIBS="$ac_save_LIBS"
  3517. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3518. echo "$ac_t""yes" 1>&6
  3519. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  3520. else
  3521. echo "$ac_t""no" 1>&6
  3522. fi
  3523. fi
  3524. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  3525. # socket/setsockopt and other routines are undefined under SCO ODT
  3526. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  3527. # on later versions), says simon@lia.di.epfl.ch: it contains
  3528. # gethostby* variants that don't use the nameserver (or something).
  3529. # -lsocket must be given before -lnsl if both are needed.
  3530. # We assume that if connect needs -lnsl, so does gethostbyname.
  3531. echo $ac_n "checking for connect""... $ac_c" 1>&6
  3532. echo "configure:4216: checking for connect" >&5
  3533. cat > conftest.$ac_ext <<EOF
  3534. #line 4219 "configure"
  3535. #include "confdefs.h"
  3536. /* System header to define __stub macros and hopefully few prototypes,
  3537. which can conflict with char connect(); below. */
  3538. #include <assert.h>
  3539. /* Override any gcc2 internal prototype to avoid an error. */
  3540. /* We use char because int might match the return type of a gcc2
  3541. builtin and then its argument prototype would still apply. */
  3542. char connect();
  3543. int main() {
  3544. /* The GNU C library defines this for functions which it implements
  3545. to always fail with ENOSYS. Some functions are actually named
  3546. something starting with __ and the normal name is an alias. */
  3547. #if defined (__stub_connect) || defined (__stub___connect)
  3548. choke me
  3549. #else
  3550. connect();
  3551. #endif
  3552. ; return 0; }
  3553. EOF
  3554. if { (eval echo configure:4242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3555. rm -rf conftest*
  3556. eval "ac_cv_func_connect=yes"
  3557. else
  3558. echo "configure: failed program was:" >&5
  3559. cat conftest.$ac_ext >&5
  3560. rm -rf conftest*
  3561. eval "ac_cv_func_connect=no"
  3562. fi
  3563. rm -f conftest*
  3564. if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  3565. echo "$ac_t""yes" 1>&6
  3566. :
  3567. else
  3568. echo "$ac_t""no" 1>&6
  3569. fi
  3570. if test $ac_cv_func_connect = no; then
  3571. echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
  3572. echo "configure:4262: checking for connect in -lsocket" >&5
  3573. ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
  3574. ac_save_LIBS="$LIBS"
  3575. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  3576. cat > conftest.$ac_ext <<EOF
  3577. #line 4268 "configure"
  3578. #include "confdefs.h"
  3579. /* Override any gcc2 internal prototype to avoid an error. */
  3580. /* We use char because int might match the return type of a gcc2
  3581. builtin and then its argument prototype would still apply. */
  3582. char connect();
  3583. int main() {
  3584. connect()
  3585. ; return 0; }
  3586. EOF
  3587. if { (eval echo configure:4279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3588. rm -rf conftest*
  3589. eval "ac_cv_lib_$ac_lib_var=yes"
  3590. else
  3591. echo "configure: failed program was:" >&5
  3592. cat conftest.$ac_ext >&5
  3593. rm -rf conftest*
  3594. eval "ac_cv_lib_$ac_lib_var=no"
  3595. fi
  3596. rm -f conftest*
  3597. LIBS="$ac_save_LIBS"
  3598. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3599. echo "$ac_t""yes" 1>&6
  3600. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  3601. else
  3602. echo "$ac_t""no" 1>&6
  3603. fi
  3604. fi
  3605. # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
  3606. echo $ac_n "checking for remove""... $ac_c" 1>&6
  3607. echo "configure:4302: checking for remove" >&5
  3608. cat > conftest.$ac_ext <<EOF
  3609. #line 4305 "configure"
  3610. #include "confdefs.h"
  3611. /* System header to define __stub macros and hopefully few prototypes,
  3612. which can conflict with char remove(); below. */
  3613. #include <assert.h>
  3614. /* Override any gcc2 internal prototype to avoid an error. */
  3615. /* We use char because int might match the return type of a gcc2
  3616. builtin and then its argument prototype would still apply. */
  3617. char remove();
  3618. int main() {
  3619. /* The GNU C library defines this for functions which it implements
  3620. to always fail with ENOSYS. Some functions are actually named
  3621. something starting with __ and the normal name is an alias. */
  3622. #if defined (__stub_remove) || defined (__stub___remove)
  3623. choke me
  3624. #else
  3625. remove();
  3626. #endif
  3627. ; return 0; }
  3628. EOF
  3629. if { (eval echo configure:4328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3630. rm -rf conftest*
  3631. eval "ac_cv_func_remove=yes"
  3632. else
  3633. echo "configure: failed program was:" >&5
  3634. cat conftest.$ac_ext >&5
  3635. rm -rf conftest*
  3636. eval "ac_cv_func_remove=no"
  3637. fi
  3638. rm -f conftest*
  3639. if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
  3640. echo "$ac_t""yes" 1>&6
  3641. :
  3642. else
  3643. echo "$ac_t""no" 1>&6
  3644. fi
  3645. if test $ac_cv_func_remove = no; then
  3646. echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
  3647. echo "configure:4348: checking for remove in -lposix" >&5
  3648. ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
  3649. ac_save_LIBS="$LIBS"
  3650. LIBS="-lposix $LIBS"
  3651. cat > conftest.$ac_ext <<EOF
  3652. #line 4354 "configure"
  3653. #include "confdefs.h"
  3654. /* Override any gcc2 internal prototype to avoid an error. */
  3655. /* We use char because int might match the return type of a gcc2
  3656. builtin and then its argument prototype would still apply. */
  3657. char remove();
  3658. int main() {
  3659. remove()
  3660. ; return 0; }
  3661. EOF
  3662. if { (eval echo configure:4365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3663. rm -rf conftest*
  3664. eval "ac_cv_lib_$ac_lib_var=yes"
  3665. else
  3666. echo "configure: failed program was:" >&5
  3667. cat conftest.$ac_ext >&5
  3668. rm -rf conftest*
  3669. eval "ac_cv_lib_$ac_lib_var=no"
  3670. fi
  3671. rm -f conftest*
  3672. LIBS="$ac_save_LIBS"
  3673. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3674. echo "$ac_t""yes" 1>&6
  3675. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  3676. else
  3677. echo "$ac_t""no" 1>&6
  3678. fi
  3679. fi
  3680. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  3681. echo $ac_n "checking for shmat""... $ac_c" 1>&6
  3682. echo "configure:4388: checking for shmat" >&5
  3683. cat > conftest.$ac_ext <<EOF
  3684. #line 4391 "configure"
  3685. #include "confdefs.h"
  3686. /* System header to define __stub macros and hopefully few prototypes,
  3687. which can conflict with char shmat(); below. */
  3688. #include <assert.h>
  3689. /* Override any gcc2 internal prototype to avoid an error. */
  3690. /* We use char because int might match the return type of a gcc2
  3691. builtin and then its argument prototype would still apply. */
  3692. char shmat();
  3693. int main() {
  3694. /* The GNU C library defines this for functions which it implements
  3695. to always fail with ENOSYS. Some functions are actually named
  3696. something starting with __ and the normal name is an alias. */
  3697. #if defined (__stub_shmat) || defined (__stub___shmat)
  3698. choke me
  3699. #else
  3700. shmat();
  3701. #endif
  3702. ; return 0; }
  3703. EOF
  3704. if { (eval echo configure:4414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3705. rm -rf conftest*
  3706. eval "ac_cv_func_shmat=yes"
  3707. else
  3708. echo "configure: failed program was:" >&5
  3709. cat conftest.$ac_ext >&5
  3710. rm -rf conftest*
  3711. eval "ac_cv_func_shmat=no"
  3712. fi
  3713. rm -f conftest*
  3714. if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
  3715. echo "$ac_t""yes" 1>&6
  3716. :
  3717. else
  3718. echo "$ac_t""no" 1>&6
  3719. fi
  3720. if test $ac_cv_func_shmat = no; then
  3721. echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
  3722. echo "configure:4434: checking for shmat in -lipc" >&5
  3723. ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
  3724. ac_save_LIBS="$LIBS"
  3725. LIBS="-lipc $LIBS"
  3726. cat > conftest.$ac_ext <<EOF
  3727. #line 4440 "configure"
  3728. #include "confdefs.h"
  3729. /* Override any gcc2 internal prototype to avoid an error. */
  3730. /* We use char because int might match the return type of a gcc2
  3731. builtin and then its argument prototype would still apply. */
  3732. char shmat();
  3733. int main() {
  3734. shmat()
  3735. ; return 0; }
  3736. EOF
  3737. if { (eval echo configure:4451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3738. rm -rf conftest*
  3739. eval "ac_cv_lib_$ac_lib_var=yes"
  3740. else
  3741. echo "configure: failed program was:" >&5
  3742. cat conftest.$ac_ext >&5
  3743. rm -rf conftest*
  3744. eval "ac_cv_lib_$ac_lib_var=no"
  3745. fi
  3746. rm -f conftest*
  3747. LIBS="$ac_save_LIBS"
  3748. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3749. echo "$ac_t""yes" 1>&6
  3750. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  3751. else
  3752. echo "$ac_t""no" 1>&6
  3753. fi
  3754. fi
  3755. fi
  3756. # Check for libraries that X11R6 Xt/Xaw programs need.
  3757. ac_save_LDFLAGS="$LDFLAGS"
  3758. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  3759. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  3760. # check for ICE first), but we must link in the order -lSM -lICE or
  3761. # we get undefined symbols. So assume we have SM if we have ICE.
  3762. # These have to be linked with before -lX11, unlike the other
  3763. # libraries we check for below, so use a different variable.
  3764. # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  3765. echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
  3766. echo "configure:4483: checking for IceConnectionNumber in -lICE" >&5
  3767. ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
  3768. ac_save_LIBS="$LIBS"
  3769. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  3770. cat > conftest.$ac_ext <<EOF
  3771. #line 4489 "configure"
  3772. #include "confdefs.h"
  3773. /* Override any gcc2 internal prototype to avoid an error. */
  3774. /* We use char because int might match the return type of a gcc2
  3775. builtin and then its argument prototype would still apply. */
  3776. char IceConnectionNumber();
  3777. int main() {
  3778. IceConnectionNumber()
  3779. ; return 0; }
  3780. EOF
  3781. if { (eval echo configure:4500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3782. rm -rf conftest*
  3783. eval "ac_cv_lib_$ac_lib_var=yes"
  3784. else
  3785. echo "configure: failed program was:" >&5
  3786. cat conftest.$ac_ext >&5
  3787. rm -rf conftest*
  3788. eval "ac_cv_lib_$ac_lib_var=no"
  3789. fi
  3790. rm -f conftest*
  3791. LIBS="$ac_save_LIBS"
  3792. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3793. echo "$ac_t""yes" 1>&6
  3794. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  3795. else
  3796. echo "$ac_t""no" 1>&6
  3797. fi
  3798. LDFLAGS="$ac_save_LDFLAGS"
  3799. fi
  3800. if test "$no_x" != "yes"; then
  3801. USE_X11="1"
  3802. XLIB=-lX11
  3803. XTLIB=-lXt
  3804. fi
  3805. fi
  3806. # Note that some systems (FreeBSD for example) need an extra library for
  3807. # cuserid
  3808. ac_save_libs="$LIBS"
  3809. LIBS=""
  3810. echo $ac_n "checking for library containing cuserid""... $ac_c" 1>&6
  3811. echo "configure:4540: checking for library containing cuserid" >&5
  3812. ac_func_search_save_LIBS="$LIBS"
  3813. ac_cv_search_cuserid="no"
  3814. cat > conftest.$ac_ext <<EOF
  3815. #line 4545 "configure"
  3816. #include "confdefs.h"
  3817. /* Override any gcc2 internal prototype to avoid an error. */
  3818. /* We use char because int might match the return type of a gcc2
  3819. builtin and then its argument prototype would still apply. */
  3820. char cuserid();
  3821. int main() {
  3822. cuserid()
  3823. ; return 0; }
  3824. EOF
  3825. if { (eval echo configure:4556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3826. rm -rf conftest*
  3827. ac_cv_search_cuserid="none required"
  3828. else
  3829. echo "configure: failed program was:" >&5
  3830. cat conftest.$ac_ext >&5
  3831. fi
  3832. rm -f conftest*
  3833. test "$ac_cv_search_cuserid" = "no" && for i in compat; do
  3834. LIBS="-l$i $ac_func_search_save_LIBS"
  3835. cat > conftest.$ac_ext <<EOF
  3836. #line 4567 "configure"
  3837. #include "confdefs.h"
  3838. /* Override any gcc2 internal prototype to avoid an error. */
  3839. /* We use char because int might match the return type of a gcc2
  3840. builtin and then its argument prototype would still apply. */
  3841. char cuserid();
  3842. int main() {
  3843. cuserid()
  3844. ; return 0; }
  3845. EOF
  3846. if { (eval echo configure:4578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3847. rm -rf conftest*
  3848. ac_cv_search_cuserid="-l$i"
  3849. break
  3850. else
  3851. echo "configure: failed program was:" >&5
  3852. cat conftest.$ac_ext >&5
  3853. fi
  3854. rm -f conftest*
  3855. done
  3856. LIBS="$ac_func_search_save_LIBS"
  3857. echo "$ac_t""$ac_cv_search_cuserid" 1>&6
  3858. if test "$ac_cv_search_cuserid" != "no"; then
  3859. test "$ac_cv_search_cuserid" = "none required" || LIBS="$ac_cv_search_cuserid $LIBS"
  3860. else :
  3861. fi
  3862. DBMIEXTRALIB="$LIBS"
  3863. LIBS="$ac_save_libs"
  3864. for ac_func in asprintf
  3865. do
  3866. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3867. echo "configure:4604: checking for $ac_func" >&5
  3868. cat > conftest.$ac_ext <<EOF
  3869. #line 4607 "configure"
  3870. #include "confdefs.h"
  3871. /* System header to define __stub macros and hopefully few prototypes,
  3872. which can conflict with char $ac_func(); below. */
  3873. #include <assert.h>
  3874. /* Override any gcc2 internal prototype to avoid an error. */
  3875. /* We use char because int might match the return type of a gcc2
  3876. builtin and then its argument prototype would still apply. */
  3877. char $ac_func();
  3878. int main() {
  3879. /* The GNU C library defines this for functions which it implements
  3880. to always fail with ENOSYS. Some functions are actually named
  3881. something starting with __ and the normal name is an alias. */
  3882. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3883. choke me
  3884. #else
  3885. $ac_func();
  3886. #endif
  3887. ; return 0; }
  3888. EOF
  3889. if { (eval echo configure:4630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3890. rm -rf conftest*
  3891. eval "ac_cv_func_$ac_func=yes"
  3892. else
  3893. echo "configure: failed program was:" >&5
  3894. cat conftest.$ac_ext >&5
  3895. rm -rf conftest*
  3896. eval "ac_cv_func_$ac_func=no"
  3897. fi
  3898. rm -f conftest*
  3899. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3900. echo "$ac_t""yes" 1>&6
  3901. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3902. cat >> confdefs.h <<EOF
  3903. #define $ac_tr_func 1
  3904. EOF
  3905. else
  3906. echo "$ac_t""no" 1>&6
  3907. fi
  3908. done
  3909. # Test if mathlib needs -lm flag or is included with libc
  3910. echo $ac_n "checking for atan""... $ac_c" 1>&6
  3911. echo "configure:4657: checking for atan" >&5
  3912. cat > conftest.$ac_ext <<EOF
  3913. #line 4660 "configure"
  3914. #include "confdefs.h"
  3915. /* System header to define __stub macros and hopefully few prototypes,
  3916. which can conflict with char atan(); below. */
  3917. #include <assert.h>
  3918. /* Override any gcc2 internal prototype to avoid an error. */
  3919. /* We use char because int might match the return type of a gcc2
  3920. builtin and then its argument prototype would still apply. */
  3921. char atan();
  3922. int main() {
  3923. /* The GNU C library defines this for functions which it implements
  3924. to always fail with ENOSYS. Some functions are actually named
  3925. something starting with __ and the normal name is an alias. */
  3926. #if defined (__stub_atan) || defined (__stub___atan)
  3927. choke me
  3928. #else
  3929. atan();
  3930. #endif
  3931. ; return 0; }
  3932. EOF
  3933. if { (eval echo configure:4683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3934. rm -rf conftest*
  3935. eval "ac_cv_func_atan=yes"
  3936. else
  3937. echo "configure: failed program was:" >&5
  3938. cat conftest.$ac_ext >&5
  3939. rm -rf conftest*
  3940. eval "ac_cv_func_atan=no"
  3941. fi
  3942. rm -f conftest*
  3943. if eval "test \"`echo '$ac_cv_func_'atan`\" = yes"; then
  3944. echo "$ac_t""yes" 1>&6
  3945. MATHLIB=
  3946. else
  3947. echo "$ac_t""no" 1>&6
  3948. echo $ac_n "checking for atan in -lm""... $ac_c" 1>&6
  3949. echo "configure:4701: checking for atan in -lm" >&5
  3950. ac_lib_var=`echo m'_'atan | sed 'y%./+-%__p_%'`
  3951. ac_save_LIBS="$LIBS"
  3952. LIBS="-lm $LIBS"
  3953. cat > conftest.$ac_ext <<EOF
  3954. #line 4707 "configure"
  3955. #include "confdefs.h"
  3956. /* Override any gcc2 internal prototype to avoid an error. */
  3957. /* We use char because int might match the return type of a gcc2
  3958. builtin and then its argument prototype would still apply. */
  3959. char atan();
  3960. int main() {
  3961. atan()
  3962. ; return 0; }
  3963. EOF
  3964. if { (eval echo configure:4718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3965. rm -rf conftest*
  3966. eval "ac_cv_lib_$ac_lib_var=yes"
  3967. else
  3968. echo "configure: failed program was:" >&5
  3969. cat conftest.$ac_ext >&5
  3970. rm -rf conftest*
  3971. eval "ac_cv_lib_$ac_lib_var=no"
  3972. fi
  3973. rm -f conftest*
  3974. LIBS="$ac_save_LIBS"
  3975. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3976. echo "$ac_t""yes" 1>&6
  3977. MATHLIB=-lm
  3978. else
  3979. echo "$ac_t""no" 1>&6
  3980. { echo "configure: error: *** Failed check for math library." 1>&2; exit 1; }
  3981. fi
  3982. fi
  3983. echo $ac_n "checking for dlsym""... $ac_c" 1>&6
  3984. echo "configure:4745: checking for dlsym" >&5
  3985. cat > conftest.$ac_ext <<EOF
  3986. #line 4748 "configure"
  3987. #include "confdefs.h"
  3988. /* System header to define __stub macros and hopefully few prototypes,
  3989. which can conflict with char dlsym(); below. */
  3990. #include <assert.h>
  3991. /* Override any gcc2 internal prototype to avoid an error. */
  3992. /* We use char because int might match the return type of a gcc2
  3993. builtin and then its argument prototype would still apply. */
  3994. char dlsym();
  3995. int main() {
  3996. /* The GNU C library defines this for functions which it implements
  3997. to always fail with ENOSYS. Some functions are actually named
  3998. something starting with __ and the normal name is an alias. */
  3999. #if defined (__stub_dlsym) || defined (__stub___dlsym)
  4000. choke me
  4001. #else
  4002. dlsym();
  4003. #endif
  4004. ; return 0; }
  4005. EOF
  4006. if { (eval echo configure:4771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4007. rm -rf conftest*
  4008. eval "ac_cv_func_dlsym=yes"
  4009. else
  4010. echo "configure: failed program was:" >&5
  4011. cat conftest.$ac_ext >&5
  4012. rm -rf conftest*
  4013. eval "ac_cv_func_dlsym=no"
  4014. fi
  4015. rm -f conftest*
  4016. if eval "test \"`echo '$ac_cv_func_'dlsym`\" = yes"; then
  4017. echo "$ac_t""yes" 1>&6
  4018. DLLIB=
  4019. else
  4020. echo "$ac_t""no" 1>&6
  4021. echo $ac_n "checking for dlsym in -ldl""... $ac_c" 1>&6
  4022. echo "configure:4789: checking for dlsym in -ldl" >&5
  4023. ac_lib_var=`echo dl'_'dlsym | sed 'y%./+-%__p_%'`
  4024. ac_save_LIBS="$LIBS"
  4025. LIBS="-ldl $LIBS"
  4026. cat > conftest.$ac_ext <<EOF
  4027. #line 4795 "configure"
  4028. #include "confdefs.h"
  4029. /* Override any gcc2 internal prototype to avoid an error. */
  4030. /* We use char because int might match the return type of a gcc2
  4031. builtin and then its argument prototype would still apply. */
  4032. char dlsym();
  4033. int main() {
  4034. dlsym()
  4035. ; return 0; }
  4036. EOF
  4037. if { (eval echo configure:4806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4038. rm -rf conftest*
  4039. eval "ac_cv_lib_$ac_lib_var=yes"
  4040. else
  4041. echo "configure: failed program was:" >&5
  4042. cat conftest.$ac_ext >&5
  4043. rm -rf conftest*
  4044. eval "ac_cv_lib_$ac_lib_var=no"
  4045. fi
  4046. rm -f conftest*
  4047. LIBS="$ac_save_LIBS"
  4048. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4049. echo "$ac_t""yes" 1>&6
  4050. DLLIB=-ldl
  4051. else
  4052. echo "$ac_t""no" 1>&6
  4053. DLLIB=
  4054. fi
  4055. fi
  4056. echo $ac_n "checking for iconv""... $ac_c" 1>&6
  4057. echo "configure:4833: checking for iconv" >&5
  4058. cat > conftest.$ac_ext <<EOF
  4059. #line 4836 "configure"
  4060. #include "confdefs.h"
  4061. /* System header to define __stub macros and hopefully few prototypes,
  4062. which can conflict with char iconv(); below. */
  4063. #include <assert.h>
  4064. /* Override any gcc2 internal prototype to avoid an error. */
  4065. /* We use char because int might match the return type of a gcc2
  4066. builtin and then its argument prototype would still apply. */
  4067. char iconv();
  4068. int main() {
  4069. /* The GNU C library defines this for functions which it implements
  4070. to always fail with ENOSYS. Some functions are actually named
  4071. something starting with __ and the normal name is an alias. */
  4072. #if defined (__stub_iconv) || defined (__stub___iconv)
  4073. choke me
  4074. #else
  4075. iconv();
  4076. #endif
  4077. ; return 0; }
  4078. EOF
  4079. if { (eval echo configure:4859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4080. rm -rf conftest*
  4081. eval "ac_cv_func_iconv=yes"
  4082. else
  4083. echo "configure: failed program was:" >&5
  4084. cat conftest.$ac_ext >&5
  4085. rm -rf conftest*
  4086. eval "ac_cv_func_iconv=no"
  4087. fi
  4088. rm -f conftest*
  4089. if eval "test \"`echo '$ac_cv_func_'iconv`\" = yes"; then
  4090. echo "$ac_t""yes" 1>&6
  4091. ICONVLIB=
  4092. else
  4093. echo "$ac_t""no" 1>&6
  4094. echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
  4095. echo "configure:4877: checking for iconv in -liconv" >&5
  4096. ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
  4097. ac_save_LIBS="$LIBS"
  4098. LIBS="-liconv $LIBS"
  4099. cat > conftest.$ac_ext <<EOF
  4100. #line 4883 "configure"
  4101. #include "confdefs.h"
  4102. /* Override any gcc2 internal prototype to avoid an error. */
  4103. /* We use char because int might match the return type of a gcc2
  4104. builtin and then its argument prototype would still apply. */
  4105. char iconv();
  4106. int main() {
  4107. iconv()
  4108. ; return 0; }
  4109. EOF
  4110. if { (eval echo configure:4894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4111. rm -rf conftest*
  4112. eval "ac_cv_lib_$ac_lib_var=yes"
  4113. else
  4114. echo "configure: failed program was:" >&5
  4115. cat conftest.$ac_ext >&5
  4116. rm -rf conftest*
  4117. eval "ac_cv_lib_$ac_lib_var=no"
  4118. fi
  4119. rm -f conftest*
  4120. LIBS="$ac_save_LIBS"
  4121. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4122. echo "$ac_t""yes" 1>&6
  4123. ICONVLIB=-liconv
  4124. else
  4125. echo "$ac_t""no" 1>&6
  4126. echo $ac_n "checking for iconv in -lgiconv""... $ac_c" 1>&6
  4127. echo "configure:4913: checking for iconv in -lgiconv" >&5
  4128. ac_lib_var=`echo giconv'_'iconv | sed 'y%./+-%__p_%'`
  4129. ac_save_LIBS="$LIBS"
  4130. LIBS="-lgiconv $LIBS"
  4131. cat > conftest.$ac_ext <<EOF
  4132. #line 4919 "configure"
  4133. #include "confdefs.h"
  4134. /* Override any gcc2 internal prototype to avoid an error. */
  4135. /* We use char because int might match the return type of a gcc2
  4136. builtin and then its argument prototype would still apply. */
  4137. char iconv();
  4138. int main() {
  4139. iconv()
  4140. ; return 0; }
  4141. EOF
  4142. if { (eval echo configure:4930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4143. rm -rf conftest*
  4144. eval "ac_cv_lib_$ac_lib_var=yes"
  4145. else
  4146. echo "configure: failed program was:" >&5
  4147. cat conftest.$ac_ext >&5
  4148. rm -rf conftest*
  4149. eval "ac_cv_lib_$ac_lib_var=no"
  4150. fi
  4151. rm -f conftest*
  4152. LIBS="$ac_save_LIBS"
  4153. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4154. echo "$ac_t""yes" 1>&6
  4155. ICONVLIB=-lgiconv
  4156. else
  4157. echo "$ac_t""no" 1>&6
  4158. echo $ac_n "checking for libiconv""... $ac_c" 1>&6
  4159. echo "configure:4949: checking for libiconv" >&5
  4160. cat > conftest.$ac_ext <<EOF
  4161. #line 4952 "configure"
  4162. #include "confdefs.h"
  4163. /* System header to define __stub macros and hopefully few prototypes,
  4164. which can conflict with char libiconv(); below. */
  4165. #include <assert.h>
  4166. /* Override any gcc2 internal prototype to avoid an error. */
  4167. /* We use char because int might match the return type of a gcc2
  4168. builtin and then its argument prototype would still apply. */
  4169. char libiconv();
  4170. int main() {
  4171. /* The GNU C library defines this for functions which it implements
  4172. to always fail with ENOSYS. Some functions are actually named
  4173. something starting with __ and the normal name is an alias. */
  4174. #if defined (__stub_libiconv) || defined (__stub___libiconv)
  4175. choke me
  4176. #else
  4177. libiconv();
  4178. #endif
  4179. ; return 0; }
  4180. EOF
  4181. if { (eval echo configure:4975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4182. rm -rf conftest*
  4183. eval "ac_cv_func_libiconv=yes"
  4184. else
  4185. echo "configure: failed program was:" >&5
  4186. cat conftest.$ac_ext >&5
  4187. rm -rf conftest*
  4188. eval "ac_cv_func_libiconv=no"
  4189. fi
  4190. rm -f conftest*
  4191. if eval "test \"`echo '$ac_cv_func_'libiconv`\" = yes"; then
  4192. echo "$ac_t""yes" 1>&6
  4193. ICONVLIB=
  4194. else
  4195. echo "$ac_t""no" 1>&6
  4196. echo $ac_n "checking for libiconv in -liconv""... $ac_c" 1>&6
  4197. echo "configure:4993: checking for libiconv in -liconv" >&5
  4198. ac_lib_var=`echo iconv'_'libiconv | sed 'y%./+-%__p_%'`
  4199. ac_save_LIBS="$LIBS"
  4200. LIBS="-liconv $LIBS"
  4201. cat > conftest.$ac_ext <<EOF
  4202. #line 4999 "configure"
  4203. #include "confdefs.h"
  4204. /* Override any gcc2 internal prototype to avoid an error. */
  4205. /* We use char because int might match the return type of a gcc2
  4206. builtin and then its argument prototype would still apply. */
  4207. char libiconv();
  4208. int main() {
  4209. libiconv()
  4210. ; return 0; }
  4211. EOF
  4212. if { (eval echo configure:5010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4213. rm -rf conftest*
  4214. eval "ac_cv_lib_$ac_lib_var=yes"
  4215. else
  4216. echo "configure: failed program was:" >&5
  4217. cat conftest.$ac_ext >&5
  4218. rm -rf conftest*
  4219. eval "ac_cv_lib_$ac_lib_var=no"
  4220. fi
  4221. rm -f conftest*
  4222. LIBS="$ac_save_LIBS"
  4223. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4224. echo "$ac_t""yes" 1>&6
  4225. ICONVLIB=-liconv
  4226. else
  4227. echo "$ac_t""no" 1>&6
  4228. echo $ac_n "checking for libiconv in -lgiconv""... $ac_c" 1>&6
  4229. echo "configure:5029: checking for libiconv in -lgiconv" >&5
  4230. ac_lib_var=`echo giconv'_'libiconv | sed 'y%./+-%__p_%'`
  4231. ac_save_LIBS="$LIBS"
  4232. LIBS="-lgiconv $LIBS"
  4233. cat > conftest.$ac_ext <<EOF
  4234. #line 5035 "configure"
  4235. #include "confdefs.h"
  4236. /* Override any gcc2 internal prototype to avoid an error. */
  4237. /* We use char because int might match the return type of a gcc2
  4238. builtin and then its argument prototype would still apply. */
  4239. char libiconv();
  4240. int main() {
  4241. libiconv()
  4242. ; return 0; }
  4243. EOF
  4244. if { (eval echo configure:5046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4245. rm -rf conftest*
  4246. eval "ac_cv_lib_$ac_lib_var=yes"
  4247. else
  4248. echo "configure: failed program was:" >&5
  4249. cat conftest.$ac_ext >&5
  4250. rm -rf conftest*
  4251. eval "ac_cv_lib_$ac_lib_var=no"
  4252. fi
  4253. rm -f conftest*
  4254. LIBS="$ac_save_LIBS"
  4255. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4256. echo "$ac_t""yes" 1>&6
  4257. ICONVLIB=-lgiconv
  4258. else
  4259. echo "$ac_t""no" 1>&6
  4260. echo "configure: warning: *** Unable to locate iconv() function." 1>&2
  4261. ICONVLIB=
  4262. fi
  4263. fi
  4264. fi
  4265. fi
  4266. fi
  4267. fi
  4268. have_socket=1
  4269. echo $ac_n "checking for socket""... $ac_c" 1>&6
  4270. echo "configure:5083: checking for socket" >&5
  4271. cat > conftest.$ac_ext <<EOF
  4272. #line 5086 "configure"
  4273. #include "confdefs.h"
  4274. /* System header to define __stub macros and hopefully few prototypes,
  4275. which can conflict with char socket(); below. */
  4276. #include <assert.h>
  4277. /* Override any gcc2 internal prototype to avoid an error. */
  4278. /* We use char because int might match the return type of a gcc2
  4279. builtin and then its argument prototype would still apply. */
  4280. char socket();
  4281. int main() {
  4282. /* The GNU C library defines this for functions which it implements
  4283. to always fail with ENOSYS. Some functions are actually named
  4284. something starting with __ and the normal name is an alias. */
  4285. #if defined (__stub_socket) || defined (__stub___socket)
  4286. choke me
  4287. #else
  4288. socket();
  4289. #endif
  4290. ; return 0; }
  4291. EOF
  4292. if { (eval echo configure:5109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4293. rm -rf conftest*
  4294. eval "ac_cv_func_socket=yes"
  4295. else
  4296. echo "configure: failed program was:" >&5
  4297. cat conftest.$ac_ext >&5
  4298. rm -rf conftest*
  4299. eval "ac_cv_func_socket=no"
  4300. fi
  4301. rm -f conftest*
  4302. if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
  4303. echo "$ac_t""yes" 1>&6
  4304. SOCKLIB=
  4305. else
  4306. echo "$ac_t""no" 1>&6
  4307. echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
  4308. echo "configure:5127: checking for socket in -lsocket" >&5
  4309. ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
  4310. ac_save_LIBS="$LIBS"
  4311. LIBS="-lsocket $LIBS"
  4312. cat > conftest.$ac_ext <<EOF
  4313. #line 5133 "configure"
  4314. #include "confdefs.h"
  4315. /* Override any gcc2 internal prototype to avoid an error. */
  4316. /* We use char because int might match the return type of a gcc2
  4317. builtin and then its argument prototype would still apply. */
  4318. char socket();
  4319. int main() {
  4320. socket()
  4321. ; return 0; }
  4322. EOF
  4323. if { (eval echo configure:5144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4324. rm -rf conftest*
  4325. eval "ac_cv_lib_$ac_lib_var=yes"
  4326. else
  4327. echo "configure: failed program was:" >&5
  4328. cat conftest.$ac_ext >&5
  4329. rm -rf conftest*
  4330. eval "ac_cv_lib_$ac_lib_var=no"
  4331. fi
  4332. rm -f conftest*
  4333. LIBS="$ac_save_LIBS"
  4334. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4335. echo "$ac_t""yes" 1>&6
  4336. SOCKLIB=-lsocket
  4337. else
  4338. echo "$ac_t""no" 1>&6
  4339. have_socket=0
  4340. echo "configure: warning: *** Unable to locate socket() function." 1>&2
  4341. fi
  4342. fi
  4343. if test "$have_socket" = 1 ; then
  4344. HAVE_SOCKET=1
  4345. cat >> confdefs.h <<\EOF
  4346. #define HAVE_SOCKET 1
  4347. EOF
  4348. else
  4349. HAVE_SOCKET=
  4350. fi
  4351. # Mandatory zlib dependency
  4352. ZLIBLIBPATH=
  4353. ZLIBINCPATH=
  4354. ZLIB=
  4355. # With zlib includes directory
  4356. echo $ac_n "checking for location of zlib includes""... $ac_c" 1>&6
  4357. echo "configure:5192: checking for location of zlib includes" >&5
  4358. case "$with_zlib_includes" in
  4359. y | ye | yes | n | no)
  4360. { echo "configure: error: *** You must supply a directory to --with-zlib-includes." 1>&2; exit 1; }
  4361. ;;
  4362. esac
  4363. echo "$ac_t""$with_zlib_includes" 1>&6
  4364. if test -n "$with_zlib_includes" ; then
  4365. for dir in $with_zlib_includes; do
  4366. if test -d "$dir"; then
  4367. ZLIBINCPATH="$ZLIBINCPATH -I$dir"
  4368. else
  4369. { echo "configure: error: *** zlib includes directory $dir does not exist." 1>&2; exit 1; }
  4370. fi
  4371. done
  4372. fi
  4373. ac_save_cppflags="$CPPFLAGS"
  4374. CPPFLAGS="$ZLIBINCPATH $CPPFLAGS"
  4375. for ac_hdr in zlib.h
  4376. do
  4377. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4378. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4379. echo "configure:5218: checking for $ac_hdr" >&5
  4380. cat > conftest.$ac_ext <<EOF
  4381. #line 5221 "configure"
  4382. #include "confdefs.h"
  4383. #include <$ac_hdr>
  4384. EOF
  4385. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4386. { (eval echo configure:5226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4387. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4388. if test -z "$ac_err"; then
  4389. rm -rf conftest*
  4390. eval "ac_cv_header_$ac_safe=yes"
  4391. else
  4392. echo "$ac_err" >&5
  4393. echo "configure: failed program was:" >&5
  4394. cat conftest.$ac_ext >&5
  4395. rm -rf conftest*
  4396. eval "ac_cv_header_$ac_safe=no"
  4397. fi
  4398. rm -f conftest*
  4399. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4400. echo "$ac_t""yes" 1>&6
  4401. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4402. cat >> confdefs.h <<EOF
  4403. #define $ac_tr_hdr 1
  4404. EOF
  4405. else
  4406. echo "$ac_t""no" 1>&6
  4407. { echo "configure: error: *** Unable to locate zlib includes." 1>&2; exit 1; }
  4408. fi
  4409. done
  4410. CPPFLAGS=$ac_save_cppflags
  4411. # With zlib library directory
  4412. echo $ac_n "checking for location of zlib library""... $ac_c" 1>&6
  4413. echo "configure:5260: checking for location of zlib library" >&5
  4414. case "$with_zlib_libs" in
  4415. y | ye | yes | n | no)
  4416. { echo "configure: error: *** You must supply a directory to --with-zlib-libs." 1>&2; exit 1; }
  4417. ;;
  4418. esac
  4419. echo "$ac_t""$with_zlib_libs" 1>&6
  4420. if test -n "$with_zlib_libs"; then
  4421. for dir in $with_zlib_libs; do
  4422. if test -d "$dir"; then
  4423. ZLIBLIBPATH="$ZLIBLIBPATH -L$dir"
  4424. else
  4425. { echo "configure: error: *** zlib library directory $dir does not exist." 1>&2; exit 1; }
  4426. fi
  4427. done
  4428. fi
  4429. ac_save_ldflags="$LDFLAGS"
  4430. LDFLAGS="$ZLIBLIBPATH $LDFLAGS"
  4431. echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
  4432. echo "configure:5285: checking for deflate in -lz" >&5
  4433. ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
  4434. ac_save_LIBS="$LIBS"
  4435. LIBS="-lz $LIBS"
  4436. cat > conftest.$ac_ext <<EOF
  4437. #line 5291 "configure"
  4438. #include "confdefs.h"
  4439. /* Override any gcc2 internal prototype to avoid an error. */
  4440. /* We use char because int might match the return type of a gcc2
  4441. builtin and then its argument prototype would still apply. */
  4442. char deflate();
  4443. int main() {
  4444. deflate()
  4445. ; return 0; }
  4446. EOF
  4447. if { (eval echo configure:5302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4448. rm -rf conftest*
  4449. eval "ac_cv_lib_$ac_lib_var=yes"
  4450. else
  4451. echo "configure: failed program was:" >&5
  4452. cat conftest.$ac_ext >&5
  4453. rm -rf conftest*
  4454. eval "ac_cv_lib_$ac_lib_var=no"
  4455. fi
  4456. rm -f conftest*
  4457. LIBS="$ac_save_LIBS"
  4458. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4459. echo "$ac_t""yes" 1>&6
  4460. ZLIB="$ZLIB -lz "
  4461. else
  4462. echo "$ac_t""no" 1>&6
  4463. LDFLAGS=${ac_save_ldflags}
  4464. { echo "configure: error: *** Unable to locate zlib library." 1>&2; exit 1; }
  4465. fi
  4466. LDFLAGS=${ac_save_ldflags}
  4467. #
  4468. # Done checking zlib
  4469. # bzip2 support
  4470. BZIP2LIBPATH=
  4471. BZIP2INCPATH=
  4472. BZIP2LIB=
  4473. echo $ac_n "checking whether to use bzlib""... $ac_c" 1>&6
  4474. echo "configure:5348: checking whether to use bzlib" >&5
  4475. echo "$ac_t"""$with_bzlib"" 1>&6
  4476. case "$with_bzlib" in
  4477. "no") USE_BZIP2= ;;
  4478. "yes") USE_BZIP2="1" ;;
  4479. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  4480. esac
  4481. if test -n "$USE_BZIP2"; then
  4482. # With bzip2 includes directory
  4483. echo $ac_n "checking for location of bzlib includes""... $ac_c" 1>&6
  4484. echo "configure:5364: checking for location of bzlib includes" >&5
  4485. case "$with_bzlib_includes" in
  4486. y | ye | yes | n | no)
  4487. { echo "configure: error: *** You must supply a directory to --with-bzlib-includes." 1>&2; exit 1; }
  4488. ;;
  4489. esac
  4490. echo "$ac_t""$with_bzlib_includes" 1>&6
  4491. if test -n "$with_bzlib_includes" ; then
  4492. for dir in $with_bzlib_includes; do
  4493. if test -d "$dir"; then
  4494. BZIP2INCPATH="$BZIP2INCPATH -I$dir"
  4495. else
  4496. { echo "configure: error: *** bzlib includes directory $dir does not exist." 1>&2; exit 1; }
  4497. fi
  4498. done
  4499. fi
  4500. ac_save_cppflags="$CPPFLAGS"
  4501. CPPFLAGS="$BZIP2INCPATH $CPPFLAGS"
  4502. for ac_hdr in bzlib.h
  4503. do
  4504. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4505. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4506. echo "configure:5390: checking for $ac_hdr" >&5
  4507. cat > conftest.$ac_ext <<EOF
  4508. #line 5393 "configure"
  4509. #include "confdefs.h"
  4510. #include <$ac_hdr>
  4511. EOF
  4512. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4513. { (eval echo configure:5398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4514. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4515. if test -z "$ac_err"; then
  4516. rm -rf conftest*
  4517. eval "ac_cv_header_$ac_safe=yes"
  4518. else
  4519. echo "$ac_err" >&5
  4520. echo "configure: failed program was:" >&5
  4521. cat conftest.$ac_ext >&5
  4522. rm -rf conftest*
  4523. eval "ac_cv_header_$ac_safe=no"
  4524. fi
  4525. rm -f conftest*
  4526. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4527. echo "$ac_t""yes" 1>&6
  4528. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4529. cat >> confdefs.h <<EOF
  4530. #define $ac_tr_hdr 1
  4531. EOF
  4532. else
  4533. echo "$ac_t""no" 1>&6
  4534. { echo "configure: error: *** Unable to locate bzlib includes." 1>&2; exit 1; }
  4535. fi
  4536. done
  4537. CPPFLAGS=$ac_save_cppflags
  4538. # With bzip2 library directory
  4539. echo $ac_n "checking for location of bzlib library""... $ac_c" 1>&6
  4540. echo "configure:5432: checking for location of bzlib library" >&5
  4541. case "$with_bzlib_libs" in
  4542. y | ye | yes | n | no)
  4543. { echo "configure: error: *** You must supply a directory to --with-bzlib-libs." 1>&2; exit 1; }
  4544. ;;
  4545. esac
  4546. echo "$ac_t""$with_bzlib_libs" 1>&6
  4547. if test -n "$with_bzlib_libs"; then
  4548. for dir in $with_bzlib_libs; do
  4549. if test -d "$dir"; then
  4550. BZIP2LIBPATH="$BZIP2LIBPATH -L$dir"
  4551. else
  4552. { echo "configure: error: *** bzlib library directory $dir does not exist." 1>&2; exit 1; }
  4553. fi
  4554. done
  4555. fi
  4556. ac_save_ldflags="$LDFLAGS"
  4557. LDFLAGS="$BZIP2LIBPATH $LDFLAGS"
  4558. echo $ac_n "checking for BZ2_bzBuffToBuffCompress in -lbz2""... $ac_c" 1>&6
  4559. echo "configure:5457: checking for BZ2_bzBuffToBuffCompress in -lbz2" >&5
  4560. ac_lib_var=`echo bz2'_'BZ2_bzBuffToBuffCompress | sed 'y%./+-%__p_%'`
  4561. ac_save_LIBS="$LIBS"
  4562. LIBS="-lbz2 $LIBS"
  4563. cat > conftest.$ac_ext <<EOF
  4564. #line 5463 "configure"
  4565. #include "confdefs.h"
  4566. /* Override any gcc2 internal prototype to avoid an error. */
  4567. /* We use char because int might match the return type of a gcc2
  4568. builtin and then its argument prototype would still apply. */
  4569. char BZ2_bzBuffToBuffCompress();
  4570. int main() {
  4571. BZ2_bzBuffToBuffCompress()
  4572. ; return 0; }
  4573. EOF
  4574. if { (eval echo configure:5474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4575. rm -rf conftest*
  4576. eval "ac_cv_lib_$ac_lib_var=yes"
  4577. else
  4578. echo "configure: failed program was:" >&5
  4579. cat conftest.$ac_ext >&5
  4580. rm -rf conftest*
  4581. eval "ac_cv_lib_$ac_lib_var=no"
  4582. fi
  4583. rm -f conftest*
  4584. LIBS="$ac_save_LIBS"
  4585. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4586. echo "$ac_t""yes" 1>&6
  4587. BZIP2LIB="$BZIP2LIB -lbz2 "
  4588. else
  4589. echo "$ac_t""no" 1>&6
  4590. LDFLAGS=${ac_save_ldflags}
  4591. { echo "configure: error: *** Unable to locate bzlib library." 1>&2; exit 1; }
  4592. fi
  4593. LDFLAGS=${ac_save_ldflags}
  4594. #
  4595. fi # $USE_BZIP2
  4596. # Done checking bzip2
  4597. # zstd support
  4598. ZSTDLIBPATH=
  4599. ZSTDINCPATH=
  4600. ZSTDLIB=
  4601. echo $ac_n "checking whether to use zstd""... $ac_c" 1>&6
  4602. echo "configure:5522: checking whether to use zstd" >&5
  4603. echo "$ac_t"""$with_zstd"" 1>&6
  4604. case "$with_zstd" in
  4605. "no") USE_ZSTD= ;;
  4606. "yes") USE_ZSTD="1" ;;
  4607. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  4608. esac
  4609. if test -n "$USE_ZSTD"; then
  4610. # With zstd includes directory
  4611. echo $ac_n "checking for location of zstd includes""... $ac_c" 1>&6
  4612. echo "configure:5538: checking for location of zstd includes" >&5
  4613. case "$with_zstd_includes" in
  4614. y | ye | yes | n | no)
  4615. { echo "configure: error: *** You must supply a directory to --with-zstd-includes." 1>&2; exit 1; }
  4616. ;;
  4617. esac
  4618. echo "$ac_t""$with_zstd_includes" 1>&6
  4619. if test -n "$with_zstd_includes" ; then
  4620. for dir in $with_zstd_includes; do
  4621. if test -d "$dir"; then
  4622. ZSTDINCPATH="$ZSTDINCPATH -I$dir"
  4623. else
  4624. { echo "configure: error: *** zstd includes directory $dir does not exist." 1>&2; exit 1; }
  4625. fi
  4626. done
  4627. fi
  4628. ac_save_cppflags="$CPPFLAGS"
  4629. CPPFLAGS="$ZSTDINCPATH $CPPFLAGS"
  4630. for ac_hdr in zstd.h
  4631. do
  4632. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4633. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4634. echo "configure:5563: checking for $ac_hdr" >&5
  4635. cat > conftest.$ac_ext <<EOF
  4636. #line 5566 "configure"
  4637. #include "confdefs.h"
  4638. #include <$ac_hdr>
  4639. EOF
  4640. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4641. { (eval echo configure:5571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4642. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4643. if test -z "$ac_err"; then
  4644. rm -rf conftest*
  4645. eval "ac_cv_header_$ac_safe=yes"
  4646. else
  4647. echo "$ac_err" >&5
  4648. echo "configure: failed program was:" >&5
  4649. cat conftest.$ac_ext >&5
  4650. rm -rf conftest*
  4651. eval "ac_cv_header_$ac_safe=no"
  4652. fi
  4653. rm -f conftest*
  4654. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4655. echo "$ac_t""yes" 1>&6
  4656. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4657. cat >> confdefs.h <<EOF
  4658. #define $ac_tr_hdr 1
  4659. EOF
  4660. else
  4661. echo "$ac_t""no" 1>&6
  4662. { echo "configure: error: *** Unable to locate zstd includes." 1>&2; exit 1; }
  4663. fi
  4664. done
  4665. CPPFLAGS=$ac_save_cppflags
  4666. # With zstd library directory
  4667. echo $ac_n "checking for location of zstd library""... $ac_c" 1>&6
  4668. echo "configure:5605: checking for location of zstd library" >&5
  4669. case "$with_zstd_libs" in
  4670. y | ye | yes | n | no)
  4671. { echo "configure: error: *** You must supply a directory to --with-zstd-libs." 1>&2; exit 1; }
  4672. ;;
  4673. esac
  4674. echo "$ac_t""$with_zstd_libs" 1>&6
  4675. if test -n "$with_zstd_libs"; then
  4676. for dir in $with_zstd_libs; do
  4677. if test -d "$dir"; then
  4678. ZSTDLIBPATH="$ZSTDLIBPATH -L$dir"
  4679. else
  4680. { echo "configure: error: *** zstd library directory $dir does not exist." 1>&2; exit 1; }
  4681. fi
  4682. done
  4683. fi
  4684. ac_save_ldflags="$LDFLAGS"
  4685. LDFLAGS="$ZSTDLIBPATH $LDFLAGS"
  4686. echo $ac_n "checking for ZSTD_compress in -lzstd""... $ac_c" 1>&6
  4687. echo "configure:5630: checking for ZSTD_compress in -lzstd" >&5
  4688. ac_lib_var=`echo zstd'_'ZSTD_compress | sed 'y%./+-%__p_%'`
  4689. ac_save_LIBS="$LIBS"
  4690. LIBS="-lzstd $LIBS"
  4691. cat > conftest.$ac_ext <<EOF
  4692. #line 5636 "configure"
  4693. #include "confdefs.h"
  4694. /* Override any gcc2 internal prototype to avoid an error. */
  4695. /* We use char because int might match the return type of a gcc2
  4696. builtin and then its argument prototype would still apply. */
  4697. char ZSTD_compress();
  4698. int main() {
  4699. ZSTD_compress()
  4700. ; return 0; }
  4701. EOF
  4702. if { (eval echo configure:5647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4703. rm -rf conftest*
  4704. eval "ac_cv_lib_$ac_lib_var=yes"
  4705. else
  4706. echo "configure: failed program was:" >&5
  4707. cat conftest.$ac_ext >&5
  4708. rm -rf conftest*
  4709. eval "ac_cv_lib_$ac_lib_var=no"
  4710. fi
  4711. rm -f conftest*
  4712. LIBS="$ac_save_LIBS"
  4713. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4714. echo "$ac_t""yes" 1>&6
  4715. ZSTDLIB="$ZSTDLIB -lzstd "
  4716. else
  4717. echo "$ac_t""no" 1>&6
  4718. LDFLAGS=${ac_save_ldflags}
  4719. { echo "configure: error: *** Unable to locate zstd library." 1>&2; exit 1; }
  4720. fi
  4721. LDFLAGS=${ac_save_ldflags}
  4722. #
  4723. fi # $USE_ZSTD
  4724. # Done checking zstd
  4725. # Mandatory PROJ dependency
  4726. PROJINC=
  4727. PROJLIB=
  4728. PROJSHARE=
  4729. PROJ4API=0
  4730. # With PROJ includes directory
  4731. echo $ac_n "checking for location of External PROJ includes""... $ac_c" 1>&6
  4732. echo "configure:5698: checking for location of External PROJ includes" >&5
  4733. case "$with_proj_includes" in
  4734. y | ye | yes | n | no)
  4735. { echo "configure: error: *** You must supply a directory to --with-proj-includes." 1>&2; exit 1; }
  4736. ;;
  4737. esac
  4738. echo "$ac_t""$with_proj_includes" 1>&6
  4739. if test -n "$with_proj_includes" ; then
  4740. for dir in $with_proj_includes; do
  4741. if test -d "$dir"; then
  4742. PROJINC="$PROJINC -I$dir"
  4743. else
  4744. { echo "configure: error: *** External PROJ includes directory $dir does not exist." 1>&2; exit 1; }
  4745. fi
  4746. done
  4747. fi
  4748. # PROJ version check: if proj.h exists, it must be proj 5+
  4749. ac_save_cppflags="$CPPFLAGS"
  4750. CPPFLAGS="$PROJINC $CPPFLAGS"
  4751. for ac_hdr in proj.h
  4752. do
  4753. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4754. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4755. echo "configure:5725: checking for $ac_hdr" >&5
  4756. cat > conftest.$ac_ext <<EOF
  4757. #line 5728 "configure"
  4758. #include "confdefs.h"
  4759. #include <$ac_hdr>
  4760. EOF
  4761. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4762. { (eval echo configure:5733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4763. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4764. if test -z "$ac_err"; then
  4765. rm -rf conftest*
  4766. eval "ac_cv_header_$ac_safe=yes"
  4767. else
  4768. echo "$ac_err" >&5
  4769. echo "configure: failed program was:" >&5
  4770. cat conftest.$ac_ext >&5
  4771. rm -rf conftest*
  4772. eval "ac_cv_header_$ac_safe=no"
  4773. fi
  4774. rm -f conftest*
  4775. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4776. echo "$ac_t""yes" 1>&6
  4777. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4778. cat >> confdefs.h <<EOF
  4779. #define $ac_tr_hdr 1
  4780. EOF
  4781. else
  4782. echo "$ac_t""no" 1>&6
  4783. PROJ4API=1
  4784. fi
  4785. done
  4786. CPPFLAGS=$ac_save_cppflags
  4787. if test $PROJ4API = 0 ; then
  4788. echo $ac_n "checking External PROJ major version""... $ac_c" 1>&6
  4789. echo "configure:5765: checking External PROJ major version" >&5
  4790. ac_save_cppflags="$CPPFLAGS"
  4791. CPPFLAGS="$PROJINC $CPPFLAGS"
  4792. if test "$cross_compiling" = yes; then
  4793. proj_ver_major=0
  4794. echo "$ac_t""unknown (cross-compiling)" 1>&6
  4795. else
  4796. cat > conftest.$ac_ext <<EOF
  4797. #line 5773 "configure"
  4798. #include "confdefs.h"
  4799. #include <stdio.h>
  4800. #include <proj.h>
  4801. int main(void) {
  4802. FILE *fp = fopen("conftestdata","w");
  4803. fprintf(fp, "%d", PROJ_VERSION_MAJOR);
  4804. return 0;
  4805. }
  4806. EOF
  4807. if { (eval echo configure:5785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4808. then
  4809. proj_ver_major=`cat conftestdata`
  4810. echo "$ac_t""$proj_ver_major" 1>&6
  4811. else
  4812. echo "configure: failed program was:" >&5
  4813. cat conftest.$ac_ext >&5
  4814. rm -fr conftest*
  4815. { echo "configure: error: *** Could not determine External PROJ major version." 1>&2; exit 1; }
  4816. fi
  4817. rm -fr conftest*
  4818. fi
  4819. CPPFLAGS=$ac_save_cppflags
  4820. echo $ac_n "checking External PROJ minor version""... $ac_c" 1>&6
  4821. echo "configure:5802: checking External PROJ minor version" >&5
  4822. ac_save_cppflags="$CPPFLAGS"
  4823. CPPFLAGS="$PROJINC $CPPFLAGS"
  4824. if test "$cross_compiling" = yes; then
  4825. proj_ver_minor=0
  4826. echo "$ac_t""unknown (cross-compiling)" 1>&6
  4827. else
  4828. cat > conftest.$ac_ext <<EOF
  4829. #line 5810 "configure"
  4830. #include "confdefs.h"
  4831. #include <stdio.h>
  4832. #include <proj.h>
  4833. int main(void) {
  4834. FILE *fp = fopen("conftestdata","w");
  4835. fprintf(fp, "%d", PROJ_VERSION_MINOR);
  4836. return 0;
  4837. }
  4838. EOF
  4839. if { (eval echo configure:5822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4840. then
  4841. proj_ver_minor=`cat conftestdata`
  4842. echo "$ac_t""$proj_ver_minor" 1>&6
  4843. else
  4844. echo "configure: failed program was:" >&5
  4845. cat conftest.$ac_ext >&5
  4846. rm -fr conftest*
  4847. { echo "configure: error: *** Could not determine External PROJ minor version." 1>&2; exit 1; }
  4848. fi
  4849. rm -fr conftest*
  4850. fi
  4851. CPPFLAGS=$ac_save_cppflags
  4852. echo $ac_n "checking External PROJ patch version""... $ac_c" 1>&6
  4853. echo "configure:5839: checking External PROJ patch version" >&5
  4854. ac_save_cppflags="$CPPFLAGS"
  4855. CPPFLAGS="$PROJINC $CPPFLAGS"
  4856. if test "$cross_compiling" = yes; then
  4857. proj_ver_patch=0
  4858. echo "$ac_t""unknown (cross-compiling)" 1>&6
  4859. else
  4860. cat > conftest.$ac_ext <<EOF
  4861. #line 5847 "configure"
  4862. #include "confdefs.h"
  4863. #include <stdio.h>
  4864. #include <proj.h>
  4865. int main(void) {
  4866. FILE *fp = fopen("conftestdata","w");
  4867. fprintf(fp, "%d", PROJ_VERSION_PATCH);
  4868. return 0;
  4869. }
  4870. EOF
  4871. if { (eval echo configure:5859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4872. then
  4873. proj_ver_patch=`cat conftestdata`
  4874. echo "$ac_t""$proj_ver_patch" 1>&6
  4875. else
  4876. echo "configure: failed program was:" >&5
  4877. cat conftest.$ac_ext >&5
  4878. rm -fr conftest*
  4879. { echo "configure: error: *** Could not determine External PROJ patch version." 1>&2; exit 1; }
  4880. fi
  4881. rm -fr conftest*
  4882. fi
  4883. CPPFLAGS=$ac_save_cppflags
  4884. echo "$ac_t""found PROJ version "${proj_ver_major}.${proj_ver_minor}.${proj_ver_patch}"" 1>&6
  4885. # minimum required PROJ 5+ version to use the new PROJ API: 5.1.0
  4886. if test ${proj_ver_major} = 5 && test `expr ${proj_ver_minor} \< 1` = 1 ; then
  4887. echo "configure: warning: At least PROJ version "5.1.0" is required for the new API " 1>&2
  4888. PROJ4API=1
  4889. fi
  4890. fi
  4891. if test $PROJ4API = 0 ; then
  4892. echo "$ac_t""using new PROJ version 5+ API" 1>&6
  4893. # With PROJ library directory
  4894. echo $ac_n "checking for location of External PROJ library""... $ac_c" 1>&6
  4895. echo "configure:5889: checking for location of External PROJ library" >&5
  4896. case "$with_proj_libs" in
  4897. y | ye | yes | n | no)
  4898. { echo "configure: error: *** You must supply a directory to --with-proj-libs." 1>&2; exit 1; }
  4899. ;;
  4900. esac
  4901. echo "$ac_t""$with_proj_libs" 1>&6
  4902. if test -n "$with_proj_libs"; then
  4903. for dir in $with_proj_libs; do
  4904. if test -d "$dir"; then
  4905. PROJLIB="$PROJLIB -L$dir"
  4906. else
  4907. { echo "configure: error: *** External PROJ library directory $dir does not exist." 1>&2; exit 1; }
  4908. fi
  4909. done
  4910. fi
  4911. ac_save_ldflags="$LDFLAGS"
  4912. LDFLAGS="$PROJLIB $LDFLAGS"
  4913. echo $ac_n "checking for proj_pj_info in -lproj""... $ac_c" 1>&6
  4914. echo "configure:5913: checking for proj_pj_info in -lproj" >&5
  4915. ac_lib_var=`echo proj'_'proj_pj_info | sed 'y%./+-%__p_%'`
  4916. ac_save_LIBS="$LIBS"
  4917. LIBS="-lproj $LIBS"
  4918. cat > conftest.$ac_ext <<EOF
  4919. #line 5919 "configure"
  4920. #include "confdefs.h"
  4921. /* Override any gcc2 internal prototype to avoid an error. */
  4922. /* We use char because int might match the return type of a gcc2
  4923. builtin and then its argument prototype would still apply. */
  4924. char proj_pj_info();
  4925. int main() {
  4926. proj_pj_info()
  4927. ; return 0; }
  4928. EOF
  4929. if { (eval echo configure:5930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4930. rm -rf conftest*
  4931. eval "ac_cv_lib_$ac_lib_var=yes"
  4932. else
  4933. echo "configure: failed program was:" >&5
  4934. cat conftest.$ac_ext >&5
  4935. rm -rf conftest*
  4936. eval "ac_cv_lib_$ac_lib_var=no"
  4937. fi
  4938. rm -f conftest*
  4939. LIBS="$ac_save_LIBS"
  4940. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4941. echo "$ac_t""yes" 1>&6
  4942. PROJLIB="$PROJLIB -lproj "
  4943. else
  4944. echo "$ac_t""no" 1>&6
  4945. LDFLAGS=${ac_save_ldflags}
  4946. { echo "configure: error: *** Unable to locate External PROJ library." 1>&2; exit 1; }
  4947. fi
  4948. LDFLAGS=${ac_save_ldflags}
  4949. else
  4950. echo "$ac_t""using old PROJ version 4 API" 1>&6
  4951. cat >> confdefs.h <<\EOF
  4952. #define USE_PROJ4API 1
  4953. EOF
  4954. ac_save_cppflags="$CPPFLAGS"
  4955. CPPFLAGS="$PROJINC $CPPFLAGS"
  4956. for ac_hdr in proj_api.h
  4957. do
  4958. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4959. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4960. echo "configure:5973: checking for $ac_hdr" >&5
  4961. cat > conftest.$ac_ext <<EOF
  4962. #line 5976 "configure"
  4963. #include "confdefs.h"
  4964. #include <$ac_hdr>
  4965. EOF
  4966. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4967. { (eval echo configure:5981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4968. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4969. if test -z "$ac_err"; then
  4970. rm -rf conftest*
  4971. eval "ac_cv_header_$ac_safe=yes"
  4972. else
  4973. echo "$ac_err" >&5
  4974. echo "configure: failed program was:" >&5
  4975. cat conftest.$ac_ext >&5
  4976. rm -rf conftest*
  4977. eval "ac_cv_header_$ac_safe=no"
  4978. fi
  4979. rm -f conftest*
  4980. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4981. echo "$ac_t""yes" 1>&6
  4982. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4983. cat >> confdefs.h <<EOF
  4984. #define $ac_tr_hdr 1
  4985. EOF
  4986. else
  4987. echo "$ac_t""no" 1>&6
  4988. { echo "configure: error: *** Unable to locate External PROJ includes." 1>&2; exit 1; }
  4989. fi
  4990. done
  4991. CPPFLAGS=$ac_save_cppflags
  4992. # PROJ version check for v4.x
  4993. if test "$cross_compiling" = yes; then
  4994. echo "configure: warning: *** Cannot check PROJ.4 version (cross-compiling)." 1>&2
  4995. else
  4996. echo $ac_n "checking External PROJ.4 version""... $ac_c" 1>&6
  4997. echo "configure:6017: checking External PROJ.4 version" >&5
  4998. ac_save_cppflags="$CPPFLAGS"
  4999. CPPFLAGS="$PROJINC $CPPFLAGS"
  5000. if test "$cross_compiling" = yes; then
  5001. proj_ver=0
  5002. echo "$ac_t""unknown (cross-compiling)" 1>&6
  5003. else
  5004. cat > conftest.$ac_ext <<EOF
  5005. #line 6025 "configure"
  5006. #include "confdefs.h"
  5007. #include <stdio.h>
  5008. #include <proj_api.h>
  5009. int main(void) {
  5010. FILE *fp = fopen("conftestdata","w");
  5011. fprintf(fp, "%d", PJ_VERSION);
  5012. return 0;
  5013. }
  5014. EOF
  5015. if { (eval echo configure:6037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  5016. then
  5017. proj_ver=`cat conftestdata`
  5018. echo "$ac_t""$proj_ver" 1>&6
  5019. else
  5020. echo "configure: failed program was:" >&5
  5021. cat conftest.$ac_ext >&5
  5022. rm -fr conftest*
  5023. { echo "configure: error: *** Could not determine External PROJ.4 version." 1>&2; exit 1; }
  5024. fi
  5025. rm -fr conftest*
  5026. fi
  5027. CPPFLAGS=$ac_save_cppflags
  5028. if test `expr ${proj_ver} \< 446` = 1 ; then
  5029. { echo "configure: error: *** PROJ.4.4.6 or later is required." 1>&2; exit 1; }
  5030. fi
  5031. fi
  5032. # With PROJ library directory
  5033. echo $ac_n "checking for location of External PROJ.4 library""... $ac_c" 1>&6
  5034. echo "configure:6062: checking for location of External PROJ.4 library" >&5
  5035. case "$with_proj_libs" in
  5036. y | ye | yes | n | no)
  5037. { echo "configure: error: *** You must supply a directory to --with-proj-libs." 1>&2; exit 1; }
  5038. ;;
  5039. esac
  5040. echo "$ac_t""$with_proj_libs" 1>&6
  5041. if test -n "$with_proj_libs"; then
  5042. for dir in $with_proj_libs; do
  5043. if test -d "$dir"; then
  5044. PROJLIB="$PROJLIB -L$dir"
  5045. else
  5046. { echo "configure: error: *** External PROJ.4 library directory $dir does not exist." 1>&2; exit 1; }
  5047. fi
  5048. done
  5049. fi
  5050. ac_save_ldflags="$LDFLAGS"
  5051. LDFLAGS="$PROJLIB $LDFLAGS"
  5052. echo $ac_n "checking for pj_get_def in -lproj""... $ac_c" 1>&6
  5053. echo "configure:6086: checking for pj_get_def in -lproj" >&5
  5054. ac_lib_var=`echo proj'_'pj_get_def | sed 'y%./+-%__p_%'`
  5055. ac_save_LIBS="$LIBS"
  5056. LIBS="-lproj $LIBS"
  5057. cat > conftest.$ac_ext <<EOF
  5058. #line 6092 "configure"
  5059. #include "confdefs.h"
  5060. /* Override any gcc2 internal prototype to avoid an error. */
  5061. /* We use char because int might match the return type of a gcc2
  5062. builtin and then its argument prototype would still apply. */
  5063. char pj_get_def();
  5064. int main() {
  5065. pj_get_def()
  5066. ; return 0; }
  5067. EOF
  5068. if { (eval echo configure:6103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5069. rm -rf conftest*
  5070. eval "ac_cv_lib_$ac_lib_var=yes"
  5071. else
  5072. echo "configure: failed program was:" >&5
  5073. cat conftest.$ac_ext >&5
  5074. rm -rf conftest*
  5075. eval "ac_cv_lib_$ac_lib_var=no"
  5076. fi
  5077. rm -f conftest*
  5078. LIBS="$ac_save_LIBS"
  5079. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5080. echo "$ac_t""yes" 1>&6
  5081. PROJLIB="$PROJLIB -lproj "
  5082. else
  5083. echo "$ac_t""no" 1>&6
  5084. LDFLAGS=${ac_save_ldflags}
  5085. { echo "configure: error: *** Unable to locate External PROJ.4 library." 1>&2; exit 1; }
  5086. fi
  5087. LDFLAGS=${ac_save_ldflags}
  5088. fi
  5089. # With PROJ share directory
  5090. echo $ac_n "checking for location of External PROJ data files""... $ac_c" 1>&6
  5091. echo "configure:6138: checking for location of External PROJ data files" >&5
  5092. case "$with_proj_share" in
  5093. y | ye | yes | n | no)
  5094. { echo "configure: error: *** You must supply a directory to --with-proj-share." 1>&2; exit 1; }
  5095. ;;
  5096. esac
  5097. echo "$ac_t""$with_proj_share" 1>&6
  5098. if test -n "$with_proj_share" ; then
  5099. if test -d "$with_proj_share"; then
  5100. PROJSHARE="$with_proj_share"
  5101. else
  5102. { echo "configure: error: *** External PROJ data directory $dir does not exist." 1>&2; exit 1; }
  5103. fi
  5104. fi
  5105. if test -z "$PROJSHARE" ; then
  5106. echo "configure: warning: *** External PROJ directory not specified; default will be used" 1>&2
  5107. PROJSHARE=/usr/share/proj
  5108. fi
  5109. # LOC_CHECK_SHARE does not work when cross compiling
  5110. if test "$cross_compiling" = "yes" ; then
  5111. echo $ac_n "checking for epsg""... $ac_c" 1>&6
  5112. echo "configure:6162: checking for epsg" >&5
  5113. echo "$ac_t""unknown (cross-compiling)" 1>&6
  5114. else
  5115. ac_safe=`echo "$PROJSHARE/epsg" | sed 'y%./+-%__p_%'`
  5116. echo $ac_n "checking for $PROJSHARE/epsg""... $ac_c" 1>&6
  5117. echo "configure:6169: checking for $PROJSHARE/epsg" >&5
  5118. if test "$cross_compiling" = yes; then
  5119. { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
  5120. else
  5121. if test -r $PROJSHARE/epsg; then
  5122. eval "ac_cv_file_$ac_safe=yes"
  5123. else
  5124. eval "ac_cv_file_$ac_safe=no"
  5125. fi
  5126. fi
  5127. if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
  5128. echo "$ac_t""yes" 1>&6
  5129. :
  5130. else
  5131. echo "$ac_t""no" 1>&6
  5132. echo "configure: warning: *** Unable to locate PROJ data files." 1>&2
  5133. fi
  5134. fi
  5135. # Done checking PROJ
  5136. # Enable regex option
  5137. echo $ac_n "checking whether to use regex""... $ac_c" 1>&6
  5138. echo "configure:6202: checking whether to use regex" >&5
  5139. echo "$ac_t"""$with_regex"" 1>&6
  5140. case "$with_regex" in
  5141. "no") USE_REGEX= ;;
  5142. "yes") USE_REGEX="1" ;;
  5143. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  5144. esac
  5145. REGEXINCPATH=
  5146. REGEXLIBPATH=
  5147. REGEXLIB=
  5148. if test -n "$USE_REGEX"; then
  5149. # With regex includes directory
  5150. echo $ac_n "checking for location of regex includes""... $ac_c" 1>&6
  5151. echo "configure:6222: checking for location of regex includes" >&5
  5152. case "$with_regex_includes" in
  5153. y | ye | yes | n | no)
  5154. { echo "configure: error: *** You must supply a directory to --with-regex-includes." 1>&2; exit 1; }
  5155. ;;
  5156. esac
  5157. echo "$ac_t""$with_regex_includes" 1>&6
  5158. if test -n "$with_regex_includes" ; then
  5159. for dir in $with_regex_includes; do
  5160. if test -d "$dir"; then
  5161. REGEXINCPATH="$REGEXINCPATH -I$dir"
  5162. else
  5163. { echo "configure: error: *** regex includes directory $dir does not exist." 1>&2; exit 1; }
  5164. fi
  5165. done
  5166. fi
  5167. ac_save_cppflags="$CPPFLAGS"
  5168. CPPFLAGS="$REGEXINCPATH $CPPFLAGS"
  5169. for ac_hdr in regex.h
  5170. do
  5171. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5172. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5173. echo "configure:6248: checking for $ac_hdr" >&5
  5174. cat > conftest.$ac_ext <<EOF
  5175. #line 6251 "configure"
  5176. #include "confdefs.h"
  5177. #include <$ac_hdr>
  5178. EOF
  5179. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5180. { (eval echo configure:6256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5181. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5182. if test -z "$ac_err"; then
  5183. rm -rf conftest*
  5184. eval "ac_cv_header_$ac_safe=yes"
  5185. else
  5186. echo "$ac_err" >&5
  5187. echo "configure: failed program was:" >&5
  5188. cat conftest.$ac_ext >&5
  5189. rm -rf conftest*
  5190. eval "ac_cv_header_$ac_safe=no"
  5191. fi
  5192. rm -f conftest*
  5193. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5194. echo "$ac_t""yes" 1>&6
  5195. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5196. cat >> confdefs.h <<EOF
  5197. #define $ac_tr_hdr 1
  5198. EOF
  5199. else
  5200. echo "$ac_t""no" 1>&6
  5201. { echo "configure: error: *** Unable to locate regex includes." 1>&2; exit 1; }
  5202. fi
  5203. done
  5204. CPPFLAGS=$ac_save_cppflags
  5205. # With regex library directory
  5206. echo $ac_n "checking for location of regex library""... $ac_c" 1>&6
  5207. echo "configure:6290: checking for location of regex library" >&5
  5208. case "$with_regex_libs" in
  5209. y | ye | yes | n | no)
  5210. { echo "configure: error: *** You must supply a directory to --with-regex-libs." 1>&2; exit 1; }
  5211. ;;
  5212. esac
  5213. echo "$ac_t""$with_regex_libs" 1>&6
  5214. if test -n "$with_regex_libs"; then
  5215. for dir in $with_regex_libs; do
  5216. if test -d "$dir"; then
  5217. REGEXLIBPATH="$REGEXLIBPATH -L$dir"
  5218. else
  5219. { echo "configure: error: *** regex library directory $dir does not exist." 1>&2; exit 1; }
  5220. fi
  5221. done
  5222. fi
  5223. ac_save_libs="$LIBS"
  5224. ac_save_ldflags="$LDFLAGS"
  5225. LIBS=" $LIBS"
  5226. LDFLAGS=" $LDFLAGS"
  5227. echo $ac_n "checking for regcomp""... $ac_c" 1>&6
  5228. echo "configure:6315: checking for regcomp" >&5
  5229. cat > conftest.$ac_ext <<EOF
  5230. #line 6318 "configure"
  5231. #include "confdefs.h"
  5232. /* System header to define __stub macros and hopefully few prototypes,
  5233. which can conflict with char regcomp(); below. */
  5234. #include <assert.h>
  5235. /* Override any gcc2 internal prototype to avoid an error. */
  5236. /* We use char because int might match the return type of a gcc2
  5237. builtin and then its argument prototype would still apply. */
  5238. char regcomp();
  5239. int main() {
  5240. /* The GNU C library defines this for functions which it implements
  5241. to always fail with ENOSYS. Some functions are actually named
  5242. something starting with __ and the normal name is an alias. */
  5243. #if defined (__stub_regcomp) || defined (__stub___regcomp)
  5244. choke me
  5245. #else
  5246. regcomp();
  5247. #endif
  5248. ; return 0; }
  5249. EOF
  5250. if { (eval echo configure:6341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5251. rm -rf conftest*
  5252. eval "ac_cv_func_regcomp=yes"
  5253. else
  5254. echo "configure: failed program was:" >&5
  5255. cat conftest.$ac_ext >&5
  5256. rm -rf conftest*
  5257. eval "ac_cv_func_regcomp=no"
  5258. fi
  5259. rm -f conftest*
  5260. if eval "test \"`echo '$ac_cv_func_'regcomp`\" = yes"; then
  5261. echo "$ac_t""yes" 1>&6
  5262. REGEXLIB="$REGEXLIB "
  5263. else
  5264. echo "$ac_t""no" 1>&6
  5265. ac_save_ldflags="$LDFLAGS"
  5266. LDFLAGS="$REGEXLIBPATH $LDFLAGS"
  5267. echo $ac_n "checking for regcomp in -lregex""... $ac_c" 1>&6
  5268. echo "configure:6368: checking for regcomp in -lregex" >&5
  5269. ac_lib_var=`echo regex'_'regcomp | sed 'y%./+-%__p_%'`
  5270. ac_save_LIBS="$LIBS"
  5271. LIBS="-lregex $LIBS"
  5272. cat > conftest.$ac_ext <<EOF
  5273. #line 6374 "configure"
  5274. #include "confdefs.h"
  5275. /* Override any gcc2 internal prototype to avoid an error. */
  5276. /* We use char because int might match the return type of a gcc2
  5277. builtin and then its argument prototype would still apply. */
  5278. char regcomp();
  5279. int main() {
  5280. regcomp()
  5281. ; return 0; }
  5282. EOF
  5283. if { (eval echo configure:6385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5284. rm -rf conftest*
  5285. eval "ac_cv_lib_$ac_lib_var=yes"
  5286. else
  5287. echo "configure: failed program was:" >&5
  5288. cat conftest.$ac_ext >&5
  5289. rm -rf conftest*
  5290. eval "ac_cv_lib_$ac_lib_var=no"
  5291. fi
  5292. rm -f conftest*
  5293. LIBS="$ac_save_LIBS"
  5294. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5295. echo "$ac_t""yes" 1>&6
  5296. REGEXLIB="$REGEXLIB -lregex "
  5297. else
  5298. echo "$ac_t""no" 1>&6
  5299. LDFLAGS=${ac_save_ldflags}
  5300. { echo "configure: error: *** Unable to locate regex library." 1>&2; exit 1; }
  5301. fi
  5302. LDFLAGS=${ac_save_ldflags}
  5303. fi
  5304. LIBS=${ac_save_libs}
  5305. LDFLAGS=${ac_save_ldflags}
  5306. fi # $USE_REGEX
  5307. # Done checking regex
  5308. # Enable Readline option
  5309. echo $ac_n "checking whether to use Readline""... $ac_c" 1>&6
  5310. echo "configure:6435: checking whether to use Readline" >&5
  5311. echo "$ac_t"""$with_readline"" 1>&6
  5312. case "$with_readline" in
  5313. "no") USE_READLINE= ;;
  5314. "yes") USE_READLINE="1" ;;
  5315. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  5316. esac
  5317. READLINEINCPATH=
  5318. READLINELIBPATH=
  5319. READLINELIB=
  5320. HISTORYLIB=
  5321. if test -n "$USE_READLINE"; then
  5322. # With Readline includes directory
  5323. echo $ac_n "checking for location of Readline includes""... $ac_c" 1>&6
  5324. echo "configure:6456: checking for location of Readline includes" >&5
  5325. case "$with_readline_includes" in
  5326. y | ye | yes | n | no)
  5327. { echo "configure: error: *** You must supply a directory to --with-readline-includes." 1>&2; exit 1; }
  5328. ;;
  5329. esac
  5330. echo "$ac_t""$with_readline_includes" 1>&6
  5331. if test -n "$with_readline_includes" ; then
  5332. for dir in $with_readline_includes; do
  5333. if test -d "$dir"; then
  5334. READLINEINCPATH="$READLINEINCPATH -I$dir"
  5335. else
  5336. { echo "configure: error: *** Readline includes directory $dir does not exist." 1>&2; exit 1; }
  5337. fi
  5338. done
  5339. fi
  5340. ac_save_cppflags="$CPPFLAGS"
  5341. CPPFLAGS="$READLINEINCPATH $CPPFLAGS"
  5342. for ac_hdr in readline/readline.h
  5343. do
  5344. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5345. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5346. echo "configure:6482: checking for $ac_hdr" >&5
  5347. cat > conftest.$ac_ext <<EOF
  5348. #line 6485 "configure"
  5349. #include "confdefs.h"
  5350. #include <$ac_hdr>
  5351. EOF
  5352. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5353. { (eval echo configure:6490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5354. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5355. if test -z "$ac_err"; then
  5356. rm -rf conftest*
  5357. eval "ac_cv_header_$ac_safe=yes"
  5358. else
  5359. echo "$ac_err" >&5
  5360. echo "configure: failed program was:" >&5
  5361. cat conftest.$ac_ext >&5
  5362. rm -rf conftest*
  5363. eval "ac_cv_header_$ac_safe=no"
  5364. fi
  5365. rm -f conftest*
  5366. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5367. echo "$ac_t""yes" 1>&6
  5368. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5369. cat >> confdefs.h <<EOF
  5370. #define $ac_tr_hdr 1
  5371. EOF
  5372. else
  5373. echo "$ac_t""no" 1>&6
  5374. { echo "configure: error: *** Unable to locate Readline includes." 1>&2; exit 1; }
  5375. fi
  5376. done
  5377. CPPFLAGS=$ac_save_cppflags
  5378. ac_save_cppflags="$CPPFLAGS"
  5379. CPPFLAGS="$READLINEINCPATH $CPPFLAGS"
  5380. for ac_hdr in readline/history.h
  5381. do
  5382. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5383. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5384. echo "configure:6526: checking for $ac_hdr" >&5
  5385. cat > conftest.$ac_ext <<EOF
  5386. #line 6529 "configure"
  5387. #include "confdefs.h"
  5388. #include <$ac_hdr>
  5389. EOF
  5390. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5391. { (eval echo configure:6534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5392. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5393. if test -z "$ac_err"; then
  5394. rm -rf conftest*
  5395. eval "ac_cv_header_$ac_safe=yes"
  5396. else
  5397. echo "$ac_err" >&5
  5398. echo "configure: failed program was:" >&5
  5399. cat conftest.$ac_ext >&5
  5400. rm -rf conftest*
  5401. eval "ac_cv_header_$ac_safe=no"
  5402. fi
  5403. rm -f conftest*
  5404. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5405. echo "$ac_t""yes" 1>&6
  5406. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5407. cat >> confdefs.h <<EOF
  5408. #define $ac_tr_hdr 1
  5409. EOF
  5410. else
  5411. echo "$ac_t""no" 1>&6
  5412. { echo "configure: error: *** Unable to locate Readline includes." 1>&2; exit 1; }
  5413. fi
  5414. done
  5415. CPPFLAGS=$ac_save_cppflags
  5416. # With Readline library directory
  5417. echo $ac_n "checking for location of Readline library""... $ac_c" 1>&6
  5418. echo "configure:6568: checking for location of Readline library" >&5
  5419. case "$with_readline_libs" in
  5420. y | ye | yes | n | no)
  5421. { echo "configure: error: *** You must supply a directory to --with-readline-libs." 1>&2; exit 1; }
  5422. ;;
  5423. esac
  5424. echo "$ac_t""$with_readline_libs" 1>&6
  5425. if test -n "$with_readline_libs"; then
  5426. for dir in $with_readline_libs; do
  5427. if test -d "$dir"; then
  5428. READLINELIBPATH="$READLINELIBPATH -L$dir"
  5429. else
  5430. { echo "configure: error: *** Readline library directory $dir does not exist." 1>&2; exit 1; }
  5431. fi
  5432. done
  5433. fi
  5434. ac_save_ldflags="$LDFLAGS"
  5435. LDFLAGS="$READLINELIBPATH $LDFLAGS"
  5436. echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
  5437. echo "configure:6593: checking for readline in -lreadline" >&5
  5438. ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
  5439. ac_save_LIBS="$LIBS"
  5440. LIBS="-lreadline $LIBS"
  5441. cat > conftest.$ac_ext <<EOF
  5442. #line 6599 "configure"
  5443. #include "confdefs.h"
  5444. /* Override any gcc2 internal prototype to avoid an error. */
  5445. /* We use char because int might match the return type of a gcc2
  5446. builtin and then its argument prototype would still apply. */
  5447. char readline();
  5448. int main() {
  5449. readline()
  5450. ; return 0; }
  5451. EOF
  5452. if { (eval echo configure:6610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5453. rm -rf conftest*
  5454. eval "ac_cv_lib_$ac_lib_var=yes"
  5455. else
  5456. echo "configure: failed program was:" >&5
  5457. cat conftest.$ac_ext >&5
  5458. rm -rf conftest*
  5459. eval "ac_cv_lib_$ac_lib_var=no"
  5460. fi
  5461. rm -f conftest*
  5462. LIBS="$ac_save_LIBS"
  5463. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5464. echo "$ac_t""yes" 1>&6
  5465. READLINELIB="$READLINELIB -lreadline "
  5466. else
  5467. echo "$ac_t""no" 1>&6
  5468. LDFLAGS=${ac_save_ldflags}
  5469. { echo "configure: error: *** Unable to locate Readline library." 1>&2; exit 1; }
  5470. fi
  5471. LDFLAGS=${ac_save_ldflags}
  5472. ac_save_ldflags="$LDFLAGS"
  5473. LDFLAGS="$READLINELIBPATH $LDFLAGS"
  5474. echo $ac_n "checking for add_history in -lhistory""... $ac_c" 1>&6
  5475. echo "configure:6645: checking for add_history in -lhistory" >&5
  5476. ac_lib_var=`echo history'_'add_history | sed 'y%./+-%__p_%'`
  5477. ac_save_LIBS="$LIBS"
  5478. LIBS="-lhistory $LIBS"
  5479. cat > conftest.$ac_ext <<EOF
  5480. #line 6651 "configure"
  5481. #include "confdefs.h"
  5482. /* Override any gcc2 internal prototype to avoid an error. */
  5483. /* We use char because int might match the return type of a gcc2
  5484. builtin and then its argument prototype would still apply. */
  5485. char add_history();
  5486. int main() {
  5487. add_history()
  5488. ; return 0; }
  5489. EOF
  5490. if { (eval echo configure:6662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5491. rm -rf conftest*
  5492. eval "ac_cv_lib_$ac_lib_var=yes"
  5493. else
  5494. echo "configure: failed program was:" >&5
  5495. cat conftest.$ac_ext >&5
  5496. rm -rf conftest*
  5497. eval "ac_cv_lib_$ac_lib_var=no"
  5498. fi
  5499. rm -f conftest*
  5500. LIBS="$ac_save_LIBS"
  5501. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5502. echo "$ac_t""yes" 1>&6
  5503. HISTORYLIB="$HISTORYLIB -lhistory "
  5504. else
  5505. echo "$ac_t""no" 1>&6
  5506. LDFLAGS=${ac_save_ldflags}
  5507. { echo "configure: error: *** Unable to locate History library." 1>&2; exit 1; }
  5508. fi
  5509. LDFLAGS=${ac_save_ldflags}
  5510. fi # $USE_READLINE
  5511. # Done checking Readline
  5512. # GDAL option
  5513. echo $ac_n "checking whether to use GDAL""... $ac_c" 1>&6
  5514. echo "configure:6704: checking whether to use GDAL" >&5
  5515. GDAL_LIBS=
  5516. GDAL_CFLAGS=
  5517. USE_GDAL=
  5518. USE_OGR=
  5519. if test "`basename xx/$with_gdal`" = "gdal-config" ; then
  5520. GDAL_CONFIG="$with_gdal"
  5521. fi
  5522. if test "$with_gdal" = "no" ; then
  5523. echo "$ac_t""no" 1>&6
  5524. else
  5525. echo "$ac_t""yes" 1>&6
  5526. # Extract the first word of "gdal-config", so it can be a program name with args.
  5527. set dummy gdal-config; ac_word=$2
  5528. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5529. echo "configure:6722: checking for $ac_word" >&5
  5530. case "$GDAL_CONFIG" in
  5531. /*)
  5532. ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a path.
  5533. ;;
  5534. ?:/*)
  5535. ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a dos path.
  5536. ;;
  5537. *)
  5538. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5539. ac_dummy="$PATH"
  5540. for ac_dir in $ac_dummy; do
  5541. test -z "$ac_dir" && ac_dir=.
  5542. if test -f $ac_dir/$ac_word; then
  5543. ac_cv_path_GDAL_CONFIG="$ac_dir/$ac_word"
  5544. break
  5545. fi
  5546. done
  5547. IFS="$ac_save_ifs"
  5548. test -z "$ac_cv_path_GDAL_CONFIG" && ac_cv_path_GDAL_CONFIG="no"
  5549. ;;
  5550. esac
  5551. GDAL_CONFIG="$ac_cv_path_GDAL_CONFIG"
  5552. if test -n "$GDAL_CONFIG"; then
  5553. echo "$ac_t""$GDAL_CONFIG" 1>&6
  5554. else
  5555. echo "$ac_t""no" 1>&6
  5556. fi
  5557. if test "$GDAL_CONFIG" = "no" ; then
  5558. { echo "configure: error: *** couldn't find gdal-config" 1>&2; exit 1; }
  5559. fi
  5560. if test "$GDAL_CONFIG" != "" ; then
  5561. GDAL_LIBS=`"$GDAL_CONFIG" --libs`
  5562. GDAL_DEP_LIBS=`"$GDAL_CONFIG" --dep-libs`
  5563. GDAL_CFLAGS=`"$GDAL_CONFIG" --cflags`
  5564. USE_GDAL=1
  5565. if test `"$GDAL_CONFIG" --ogr-enabled` = "yes" ; then
  5566. cat >> confdefs.h <<\EOF
  5567. #define HAVE_OGR 1
  5568. EOF
  5569. USE_OGR=1
  5570. fi
  5571. fi
  5572. GDAL=
  5573. ac_save_libs="$LIBS"
  5574. ac_save_cflags="$CFLAGS"
  5575. LIBS="$LIBS $GDAL_LIBS"
  5576. CFLAGS="$CFLAGS $GDAL_CFLAGS"
  5577. cat > conftest.$ac_ext <<EOF
  5578. #line 6777 "configure"
  5579. #include "confdefs.h"
  5580. #include <gdal.h>
  5581. int main() {
  5582. GDALOpen("foo", GA_ReadOnly);
  5583. ; return 0; }
  5584. EOF
  5585. if { (eval echo configure:6784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5586. :
  5587. else
  5588. echo "configure: failed program was:" >&5
  5589. cat conftest.$ac_ext >&5
  5590. rm -rf conftest*
  5591. LIBS="$LIBS $GDAL_DEP_LIBS"
  5592. cat > conftest.$ac_ext <<EOF
  5593. #line 6793 "configure"
  5594. #include "confdefs.h"
  5595. #include <gdal.h>
  5596. int main() {
  5597. GDALOpen("foo", GA_ReadOnly);
  5598. ; return 0; }
  5599. EOF
  5600. if { (eval echo configure:6800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5601. rm -rf conftest*
  5602. GDAL_LIBS="$GDAL_LIBS $GDAL_DEP_LIBS"
  5603. else
  5604. echo "configure: failed program was:" >&5
  5605. cat conftest.$ac_ext >&5
  5606. rm -rf conftest*
  5607. { echo "configure: error: *** Unable to locate GDAL library." 1>&2; exit 1; }
  5608. fi
  5609. rm -f conftest*
  5610. fi
  5611. rm -f conftest*
  5612. LIBS=${ac_save_libs}
  5613. CFLAGS=${ac_save_cflags}
  5614. cat >> confdefs.h <<\EOF
  5615. #define HAVE_GDAL 1
  5616. EOF
  5617. fi
  5618. # libLAS option
  5619. echo $ac_n "checking whether to use libLAS""... $ac_c" 1>&6
  5620. echo "configure:6832: checking whether to use libLAS" >&5
  5621. LIBLAS_LIBS=
  5622. LIBLAS_CFLAGS=
  5623. USE_LIBLAS=
  5624. if test "`basename xx/$with_liblas`" = "liblas-config" ; then
  5625. LIBLAS_CONFIG="$with_liblas"
  5626. fi
  5627. if test "$with_liblas" = "no" ; then
  5628. echo "$ac_t""no" 1>&6
  5629. else
  5630. echo "$ac_t""yes" 1>&6
  5631. # Extract the first word of "liblas-config", so it can be a program name with args.
  5632. set dummy liblas-config; ac_word=$2
  5633. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5634. echo "configure:6849: checking for $ac_word" >&5
  5635. case "$LIBLAS_CONFIG" in
  5636. /*)
  5637. ac_cv_path_LIBLAS_CONFIG="$LIBLAS_CONFIG" # Let the user override the test with a path.
  5638. ;;
  5639. ?:/*)
  5640. ac_cv_path_LIBLAS_CONFIG="$LIBLAS_CONFIG" # Let the user override the test with a dos path.
  5641. ;;
  5642. *)
  5643. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5644. ac_dummy="$PATH"
  5645. for ac_dir in $ac_dummy; do
  5646. test -z "$ac_dir" && ac_dir=.
  5647. if test -f $ac_dir/$ac_word; then
  5648. ac_cv_path_LIBLAS_CONFIG="$ac_dir/$ac_word"
  5649. break
  5650. fi
  5651. done
  5652. IFS="$ac_save_ifs"
  5653. test -z "$ac_cv_path_LIBLAS_CONFIG" && ac_cv_path_LIBLAS_CONFIG="no"
  5654. ;;
  5655. esac
  5656. LIBLAS_CONFIG="$ac_cv_path_LIBLAS_CONFIG"
  5657. if test -n "$LIBLAS_CONFIG"; then
  5658. echo "$ac_t""$LIBLAS_CONFIG" 1>&6
  5659. else
  5660. echo "$ac_t""no" 1>&6
  5661. fi
  5662. if test "$LIBLAS_CONFIG" = "no" ; then
  5663. { echo "configure: error: *** couldn't find liblas-config" 1>&2; exit 1; }
  5664. fi
  5665. if test "$LIBLAS_CONFIG" != "" ; then
  5666. LIBLAS_LIBS=`"$LIBLAS_CONFIG" --libs`
  5667. LIBLAS_CFLAGS=`"$LIBLAS_CONFIG" --cflags`
  5668. LIBLAS_INC=`"$LIBLAS_CONFIG" --includes`
  5669. USE_LIBLAS=1
  5670. fi
  5671. LIBLAS=
  5672. ac_save_libs="$LIBS"
  5673. ac_save_cflags="$CFLAGS"
  5674. ac_save_cppflags="$CPPFLAGS"
  5675. LIBS="$LIBS $LIBLAS_LIBS"
  5676. CFLAGS="$CFLAGS $LIBLAS_CFLAGS"
  5677. CPPFLAGS="$CPPFLAGS $LIBLAS_INC"
  5678. for ac_hdr in liblas/capi/liblas.h
  5679. do
  5680. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5681. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5682. echo "configure:6902: checking for $ac_hdr" >&5
  5683. cat > conftest.$ac_ext <<EOF
  5684. #line 6905 "configure"
  5685. #include "confdefs.h"
  5686. #include <$ac_hdr>
  5687. EOF
  5688. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5689. { (eval echo configure:6910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5690. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5691. if test -z "$ac_err"; then
  5692. rm -rf conftest*
  5693. eval "ac_cv_header_$ac_safe=yes"
  5694. else
  5695. echo "$ac_err" >&5
  5696. echo "configure: failed program was:" >&5
  5697. cat conftest.$ac_ext >&5
  5698. rm -rf conftest*
  5699. eval "ac_cv_header_$ac_safe=no"
  5700. fi
  5701. rm -f conftest*
  5702. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5703. echo "$ac_t""yes" 1>&6
  5704. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5705. cat >> confdefs.h <<EOF
  5706. #define $ac_tr_hdr 1
  5707. EOF
  5708. else
  5709. echo "$ac_t""no" 1>&6
  5710. fi
  5711. done
  5712. cat > conftest.$ac_ext <<EOF
  5713. #line 6936 "configure"
  5714. #include "confdefs.h"
  5715. #include <liblas/capi/liblas.h>
  5716. int main() {
  5717. LASReader_Create("foo");
  5718. ; return 0; }
  5719. EOF
  5720. if { (eval echo configure:6943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5721. :
  5722. else
  5723. echo "configure: failed program was:" >&5
  5724. cat conftest.$ac_ext >&5
  5725. rm -rf conftest*
  5726. cat > conftest.$ac_ext <<EOF
  5727. #line 6951 "configure"
  5728. #include "confdefs.h"
  5729. #include <liblas/capi/liblas.h>
  5730. int main() {
  5731. LASReader_Create("foo");
  5732. ; return 0; }
  5733. EOF
  5734. if { (eval echo configure:6958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5735. rm -rf conftest*
  5736. LAS_LIBS="$LAS_LIBS"
  5737. else
  5738. echo "configure: failed program was:" >&5
  5739. cat conftest.$ac_ext >&5
  5740. rm -rf conftest*
  5741. { echo "configure: error: *** Unable to locate libLAS library." 1>&2; exit 1; }
  5742. fi
  5743. rm -f conftest*
  5744. fi
  5745. rm -f conftest*
  5746. LIBS=${ac_save_libs}
  5747. CFLAGS=${ac_save_cflags}
  5748. CPPFLAGS=${ac_save_cppflags}
  5749. cat >> confdefs.h <<\EOF
  5750. #define HAVE_LIBLAS 1
  5751. EOF
  5752. fi
  5753. # PDAL option
  5754. echo $ac_n "checking whether to use PDAL""... $ac_c" 1>&6
  5755. echo "configure:6991: checking whether to use PDAL" >&5
  5756. # new and currently used way to switch language to C++
  5757. # AC_LANG_PUSH(C++)
  5758. ac_ext=C
  5759. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  5760. ac_cpp='$CXXCPP $CPPFLAGS'
  5761. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  5762. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5763. cross_compiling=$ac_cv_prog_cxx_cross
  5764. PDAL_LIBS=
  5765. PDAL_CPPFLAGS=
  5766. USE_PDAL=
  5767. if test "`basename xx/$with_pdal`" = "pdal-config" ; then
  5768. PDAL_CONFIG="$with_pdal"
  5769. fi
  5770. if test "$with_pdal" = "no" ; then
  5771. echo "$ac_t""no" 1>&6
  5772. else
  5773. echo "$ac_t""yes" 1>&6
  5774. # Extract the first word of "pdal-config", so it can be a program name with args.
  5775. set dummy pdal-config; ac_word=$2
  5776. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5777. echo "configure:7019: checking for $ac_word" >&5
  5778. case "$PDAL_CONFIG" in
  5779. /*)
  5780. ac_cv_path_PDAL_CONFIG="$PDAL_CONFIG" # Let the user override the test with a path.
  5781. ;;
  5782. ?:/*)
  5783. ac_cv_path_PDAL_CONFIG="$PDAL_CONFIG" # Let the user override the test with a dos path.
  5784. ;;
  5785. *)
  5786. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5787. ac_dummy="$PATH"
  5788. for ac_dir in $ac_dummy; do
  5789. test -z "$ac_dir" && ac_dir=.
  5790. if test -f $ac_dir/$ac_word; then
  5791. ac_cv_path_PDAL_CONFIG="$ac_dir/$ac_word"
  5792. break
  5793. fi
  5794. done
  5795. IFS="$ac_save_ifs"
  5796. test -z "$ac_cv_path_PDAL_CONFIG" && ac_cv_path_PDAL_CONFIG="no"
  5797. ;;
  5798. esac
  5799. PDAL_CONFIG="$ac_cv_path_PDAL_CONFIG"
  5800. if test -n "$PDAL_CONFIG"; then
  5801. echo "$ac_t""$PDAL_CONFIG" 1>&6
  5802. else
  5803. echo "$ac_t""no" 1>&6
  5804. fi
  5805. if test "$PDAL_CONFIG" = "no" ; then
  5806. { echo "configure: error: *** could not find pdal-config" 1>&2; exit 1; }
  5807. fi
  5808. if test "$PDAL_CONFIG" != "" ; then
  5809. PDAL_LIBS=`"$PDAL_CONFIG" --libs`
  5810. PDAL_CPPFLAGS=`"$PDAL_CONFIG" --cxxflags`
  5811. PDAL_INC=`"$PDAL_CONFIG" --includes`
  5812. USE_PDAL=1
  5813. fi
  5814. PDAL=
  5815. ac_save_libs="$LIBS"
  5816. ac_save_cflags="$CFLAGS"
  5817. ac_save_cppflags="$CPPFLAGS"
  5818. LIBS="$LIBS $PDAL_LIBS"
  5819. CFLAGS="$CFLAGS $PDAL_CFLAGS"
  5820. CPPFLAGS="$CPPFLAGS $PDAL_CPPFLAGS $PDAL_INC"
  5821. cat > conftest.$ac_ext <<EOF
  5822. #line 7069 "configure"
  5823. #include "confdefs.h"
  5824. #include <pdal/PointTable.hpp>
  5825. int main() {
  5826. pdal::PointTable table;
  5827. ; return 0; }
  5828. EOF
  5829. if { (eval echo configure:7076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5830. :
  5831. else
  5832. echo "configure: failed program was:" >&5
  5833. cat conftest.$ac_ext >&5
  5834. rm -rf conftest*
  5835. cat > conftest.$ac_ext <<EOF
  5836. #line 7084 "configure"
  5837. #include "confdefs.h"
  5838. #include <pdal/PointTable.hpp>
  5839. int main() {
  5840. pdal::PointTable table;
  5841. ; return 0; }
  5842. EOF
  5843. if { (eval echo configure:7091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5844. rm -rf conftest*
  5845. PDAL_LIBS="$PDAL_LIBS"
  5846. else
  5847. echo "configure: failed program was:" >&5
  5848. cat conftest.$ac_ext >&5
  5849. rm -rf conftest*
  5850. { echo "configure: error: *** Unable to locate PDAL library." 1>&2; exit 1; }
  5851. fi
  5852. rm -f conftest*
  5853. fi
  5854. rm -f conftest*
  5855. LIBS=${ac_save_libs}
  5856. CFLAGS=${ac_save_cflags}
  5857. CPPFLAGS=${ac_save_cppflags}
  5858. cat >> confdefs.h <<\EOF
  5859. #define HAVE_PDAL 1
  5860. EOF
  5861. fi
  5862. # new and currently used way to switch language back to C
  5863. # AC_LANG_POP(C++)
  5864. ac_ext=c
  5865. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  5866. ac_cpp='$CPP $CPPFLAGS'
  5867. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  5868. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5869. cross_compiling=$ac_cv_prog_cc_cross
  5870. ac_ext=c
  5871. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  5872. ac_cpp='$CPP $CPPFLAGS'
  5873. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  5874. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5875. cross_compiling=$ac_cv_prog_cc_cross
  5876. # NetCDF option
  5877. echo $ac_n "checking whether to use NetCDF""... $ac_c" 1>&6
  5878. echo "configure:7141: checking whether to use NetCDF" >&5
  5879. NETCDF_LIBS=
  5880. NETCDF_CFLAGS=
  5881. USE_NETCDF=
  5882. if test "`basename xx/$with_netcdf`" = "nc-config" ; then
  5883. NETCDF_CONFIG="$with_netcdf"
  5884. fi
  5885. if test "$with_netcdf" = "no" ; then
  5886. echo "$ac_t""no" 1>&6
  5887. else
  5888. echo "$ac_t""yes" 1>&6
  5889. # Extract the first word of "nc-config", so it can be a program name with args.
  5890. set dummy nc-config; ac_word=$2
  5891. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5892. echo "configure:7158: checking for $ac_word" >&5
  5893. case "$NETCDF_CONFIG" in
  5894. /*)
  5895. ac_cv_path_NETCDF_CONFIG="$NETCDF_CONFIG" # Let the user override the test with a path.
  5896. ;;
  5897. ?:/*)
  5898. ac_cv_path_NETCDF_CONFIG="$NETCDF_CONFIG" # Let the user override the test with a dos path.
  5899. ;;
  5900. *)
  5901. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5902. ac_dummy="$PATH"
  5903. for ac_dir in $ac_dummy; do
  5904. test -z "$ac_dir" && ac_dir=.
  5905. if test -f $ac_dir/$ac_word; then
  5906. ac_cv_path_NETCDF_CONFIG="$ac_dir/$ac_word"
  5907. break
  5908. fi
  5909. done
  5910. IFS="$ac_save_ifs"
  5911. test -z "$ac_cv_path_NETCDF_CONFIG" && ac_cv_path_NETCDF_CONFIG="no"
  5912. ;;
  5913. esac
  5914. NETCDF_CONFIG="$ac_cv_path_NETCDF_CONFIG"
  5915. if test -n "$NETCDF_CONFIG"; then
  5916. echo "$ac_t""$NETCDF_CONFIG" 1>&6
  5917. else
  5918. echo "$ac_t""no" 1>&6
  5919. fi
  5920. if test "$NETCDF_CONFIG" = "no" ; then
  5921. { echo "configure: error: *** couldn't find nc-config" 1>&2; exit 1; }
  5922. fi
  5923. if test "$NETCDF_CONFIG" != "" ; then
  5924. NETCDF_LIBS=`"$NETCDF_CONFIG" --libs`
  5925. NETCDF_CFLAGS=`"$NETCDF_CONFIG" --cflags`
  5926. USE_NETCDF=1
  5927. fi
  5928. NETCDF=
  5929. ac_save_libs="$LIBS"
  5930. ac_save_cflags="$CFLAGS"
  5931. LIBS="$LIBS $NETCDF_LIBS"
  5932. CFLAGS="$CFLAGS $NETCDF_CFLAGS"
  5933. cat > conftest.$ac_ext <<EOF
  5934. #line 7205 "configure"
  5935. #include "confdefs.h"
  5936. #include <netcdf.h>
  5937. int main() {
  5938. nc_create("foo", NC_CLOBBER, NULL);
  5939. ; return 0; }
  5940. EOF
  5941. if { (eval echo configure:7212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5942. :
  5943. else
  5944. echo "configure: failed program was:" >&5
  5945. cat conftest.$ac_ext >&5
  5946. rm -rf conftest*
  5947. cat > conftest.$ac_ext <<EOF
  5948. #line 7220 "configure"
  5949. #include "confdefs.h"
  5950. #include <netcdf.h>
  5951. int main() {
  5952. nc_create("foo", NC_CLOBBER, NULL);
  5953. ; return 0; }
  5954. EOF
  5955. if { (eval echo configure:7227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5956. rm -rf conftest*
  5957. NETCDF_LIBS="$NETCDF_LIBS"
  5958. else
  5959. echo "configure: failed program was:" >&5
  5960. cat conftest.$ac_ext >&5
  5961. rm -rf conftest*
  5962. { echo "configure: error: *** Unable to locate NetCDF library." 1>&2; exit 1; }
  5963. fi
  5964. rm -f conftest*
  5965. fi
  5966. rm -f conftest*
  5967. LIBS=${ac_save_libs}
  5968. CFLAGS=${ac_save_cflags}
  5969. cat >> confdefs.h <<\EOF
  5970. #define HAVE_NETCDF 1
  5971. EOF
  5972. fi
  5973. # GEOS option
  5974. echo $ac_n "checking whether to use GEOS""... $ac_c" 1>&6
  5975. echo "configure:7258: checking whether to use GEOS" >&5
  5976. GEOS_LIBS=
  5977. GEOS_CFLAGS=
  5978. USE_GEOS=
  5979. # FIXME: "quote" $with_geos ?
  5980. if test "`basename xx/$with_geos`" = "geos-config" ; then
  5981. GEOS_CONFIG="$with_geos"
  5982. fi
  5983. if test "$with_geos" = "no" ; then
  5984. echo "$ac_t""no" 1>&6
  5985. else
  5986. echo "$ac_t""yes" 1>&6
  5987. # Extract the first word of "geos-config", so it can be a program name with args.
  5988. set dummy geos-config; ac_word=$2
  5989. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5990. echo "configure:7276: checking for $ac_word" >&5
  5991. case "$GEOS_CONFIG" in
  5992. /*)
  5993. ac_cv_path_GEOS_CONFIG="$GEOS_CONFIG" # Let the user override the test with a path.
  5994. ;;
  5995. ?:/*)
  5996. ac_cv_path_GEOS_CONFIG="$GEOS_CONFIG" # Let the user override the test with a dos path.
  5997. ;;
  5998. *)
  5999. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  6000. ac_dummy="$PATH"
  6001. for ac_dir in $ac_dummy; do
  6002. test -z "$ac_dir" && ac_dir=.
  6003. if test -f $ac_dir/$ac_word; then
  6004. ac_cv_path_GEOS_CONFIG="$ac_dir/$ac_word"
  6005. break
  6006. fi
  6007. done
  6008. IFS="$ac_save_ifs"
  6009. test -z "$ac_cv_path_GEOS_CONFIG" && ac_cv_path_GEOS_CONFIG="no"
  6010. ;;
  6011. esac
  6012. GEOS_CONFIG="$ac_cv_path_GEOS_CONFIG"
  6013. if test -n "$GEOS_CONFIG"; then
  6014. echo "$ac_t""$GEOS_CONFIG" 1>&6
  6015. else
  6016. echo "$ac_t""no" 1>&6
  6017. fi
  6018. if test "$GEOS_CONFIG" = "no" ; then
  6019. { echo "configure: error: *** couldn't find geos-config" 1>&2; exit 1; }
  6020. fi
  6021. if test "$GEOS_CONFIG" != "" ; then
  6022. GEOS_LIBS=`"$GEOS_CONFIG" --clibs`
  6023. GEOS_CFLAGS=`"$GEOS_CONFIG" --cflags`
  6024. USE_GEOS=1
  6025. fi
  6026. ac_save_cppflags="$CPPFLAGS"
  6027. CPPFLAGS="$GEOS_CFLAGS $CPPFLAGS"
  6028. for ac_hdr in geos_c.h
  6029. do
  6030. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6031. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6032. echo "configure:7324: checking for $ac_hdr" >&5
  6033. cat > conftest.$ac_ext <<EOF
  6034. #line 7327 "configure"
  6035. #include "confdefs.h"
  6036. #include <$ac_hdr>
  6037. EOF
  6038. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6039. { (eval echo configure:7332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6040. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6041. if test -z "$ac_err"; then
  6042. rm -rf conftest*
  6043. eval "ac_cv_header_$ac_safe=yes"
  6044. else
  6045. echo "$ac_err" >&5
  6046. echo "configure: failed program was:" >&5
  6047. cat conftest.$ac_ext >&5
  6048. rm -rf conftest*
  6049. eval "ac_cv_header_$ac_safe=no"
  6050. fi
  6051. rm -f conftest*
  6052. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6053. echo "$ac_t""yes" 1>&6
  6054. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6055. cat >> confdefs.h <<EOF
  6056. #define $ac_tr_hdr 1
  6057. EOF
  6058. else
  6059. echo "$ac_t""no" 1>&6
  6060. { echo "configure: error: *** Unable to locate GEOS includes." 1>&2; exit 1; }
  6061. fi
  6062. done
  6063. CPPFLAGS=$ac_save_cppflags
  6064. ### geos 3.3.6 installs geos_c.lib, see http://osgeo-org.1560.n6.nabble.com/osgeo4w-329-update-geos-to-3-3-6-td5024605.html
  6065. # if test "$MINGW32" = yes ; then
  6066. # LOC_CHECK_LIBS(geos_c_i,initGEOS,GEOS,$GEOS_LIBS,GEOS_LIBS)
  6067. # else
  6068. ac_save_ldflags="$LDFLAGS"
  6069. LDFLAGS="$GEOS_LIBS $LDFLAGS"
  6070. echo $ac_n "checking for initGEOS in -lgeos_c""... $ac_c" 1>&6
  6071. echo "configure:7371: checking for initGEOS in -lgeos_c" >&5
  6072. ac_lib_var=`echo geos_c'_'initGEOS | sed 'y%./+-%__p_%'`
  6073. ac_save_LIBS="$LIBS"
  6074. LIBS="-lgeos_c $LIBS"
  6075. cat > conftest.$ac_ext <<EOF
  6076. #line 7377 "configure"
  6077. #include "confdefs.h"
  6078. /* Override any gcc2 internal prototype to avoid an error. */
  6079. /* We use char because int might match the return type of a gcc2
  6080. builtin and then its argument prototype would still apply. */
  6081. char initGEOS();
  6082. int main() {
  6083. initGEOS()
  6084. ; return 0; }
  6085. EOF
  6086. if { (eval echo configure:7388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6087. rm -rf conftest*
  6088. eval "ac_cv_lib_$ac_lib_var=yes"
  6089. else
  6090. echo "configure: failed program was:" >&5
  6091. cat conftest.$ac_ext >&5
  6092. rm -rf conftest*
  6093. eval "ac_cv_lib_$ac_lib_var=no"
  6094. fi
  6095. rm -f conftest*
  6096. LIBS="$ac_save_LIBS"
  6097. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6098. echo "$ac_t""yes" 1>&6
  6099. GEOS_LIBS="$GEOS_LIBS -lgeos_c "
  6100. else
  6101. echo "$ac_t""no" 1>&6
  6102. LDFLAGS=${ac_save_ldflags}
  6103. { echo "configure: error: *** Unable to locate GEOS library." 1>&2; exit 1; }
  6104. fi
  6105. LDFLAGS=${ac_save_ldflags}
  6106. # fi
  6107. cat >> confdefs.h <<\EOF
  6108. #define HAVE_GEOS 1
  6109. EOF
  6110. fi
  6111. # Enable TIFF option
  6112. echo $ac_n "checking whether to use TIFF""... $ac_c" 1>&6
  6113. echo "configure:7432: checking whether to use TIFF" >&5
  6114. echo "$ac_t"""$with_tiff"" 1>&6
  6115. case "$with_tiff" in
  6116. "no") USE_TIFF= ;;
  6117. "yes") USE_TIFF="1" ;;
  6118. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6119. esac
  6120. TIFF_INCLUDE_DIRS=
  6121. TIFF_LIBRARY_DIRS=
  6122. TIFFLIB=
  6123. if test -n "$USE_TIFF"; then
  6124. # With TIFF includes directory
  6125. echo $ac_n "checking for location of TIFF includes""... $ac_c" 1>&6
  6126. echo "configure:7452: checking for location of TIFF includes" >&5
  6127. case "$with_tiff_includes" in
  6128. y | ye | yes | n | no)
  6129. { echo "configure: error: *** You must supply a directory to --with-tiff-includes." 1>&2; exit 1; }
  6130. ;;
  6131. esac
  6132. echo "$ac_t""$with_tiff_includes" 1>&6
  6133. if test -n "$with_tiff_includes" ; then
  6134. for dir in $with_tiff_includes; do
  6135. if test -d "$dir"; then
  6136. TIFF_INCLUDE_DIRS="$TIFF_INCLUDE_DIRS -I$dir"
  6137. else
  6138. { echo "configure: error: *** TIFF includes directory $dir does not exist." 1>&2; exit 1; }
  6139. fi
  6140. done
  6141. fi
  6142. ac_save_cppflags="$CPPFLAGS"
  6143. CPPFLAGS="$TIFF_INCLUDE_DIRS $CPPFLAGS"
  6144. for ac_hdr in tiffio.h
  6145. do
  6146. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6147. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6148. echo "configure:7478: checking for $ac_hdr" >&5
  6149. cat > conftest.$ac_ext <<EOF
  6150. #line 7481 "configure"
  6151. #include "confdefs.h"
  6152. #include <$ac_hdr>
  6153. EOF
  6154. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6155. { (eval echo configure:7486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6156. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6157. if test -z "$ac_err"; then
  6158. rm -rf conftest*
  6159. eval "ac_cv_header_$ac_safe=yes"
  6160. else
  6161. echo "$ac_err" >&5
  6162. echo "configure: failed program was:" >&5
  6163. cat conftest.$ac_ext >&5
  6164. rm -rf conftest*
  6165. eval "ac_cv_header_$ac_safe=no"
  6166. fi
  6167. rm -f conftest*
  6168. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6169. echo "$ac_t""yes" 1>&6
  6170. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6171. cat >> confdefs.h <<EOF
  6172. #define $ac_tr_hdr 1
  6173. EOF
  6174. else
  6175. echo "$ac_t""no" 1>&6
  6176. { echo "configure: error: *** Unable to locate TIFF includes." 1>&2; exit 1; }
  6177. fi
  6178. done
  6179. CPPFLAGS=$ac_save_cppflags
  6180. # With TIFF library directory
  6181. echo $ac_n "checking for location of TIFF library""... $ac_c" 1>&6
  6182. echo "configure:7520: checking for location of TIFF library" >&5
  6183. case "$with_tiff_libs" in
  6184. y | ye | yes | n | no)
  6185. { echo "configure: error: *** You must supply a directory to --with-tiff-libs." 1>&2; exit 1; }
  6186. ;;
  6187. esac
  6188. echo "$ac_t""$with_tiff_libs" 1>&6
  6189. if test -n "$with_tiff_libs"; then
  6190. for dir in $with_tiff_libs; do
  6191. if test -d "$dir"; then
  6192. TIFF_LIBRARY_DIRS="$TIFF_LIBRARY_DIRS -L$dir"
  6193. else
  6194. { echo "configure: error: *** TIFF library directory $dir does not exist." 1>&2; exit 1; }
  6195. fi
  6196. done
  6197. fi
  6198. ac_save_ldflags="$LDFLAGS"
  6199. LDFLAGS="$TIFF_LIBRARY_DIRS $LDFLAGS"
  6200. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  6201. echo "configure:7551: checking for TIFFOpen in -ltiff" >&5
  6202. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  6203. ac_save_LIBS="$LIBS"
  6204. LIBS="-ltiff $LIBS"
  6205. cat > conftest.$ac_ext <<EOF
  6206. #line 7557 "configure"
  6207. #include "confdefs.h"
  6208. /* Override any gcc2 internal prototype to avoid an error. */
  6209. /* We use char because int might match the return type of a gcc2
  6210. builtin and then its argument prototype would still apply. */
  6211. char TIFFOpen();
  6212. int main() {
  6213. TIFFOpen()
  6214. ; return 0; }
  6215. EOF
  6216. if { (eval echo configure:7568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6217. rm -rf conftest*
  6218. eval "ac_cv_lib_$ac_lib_var=yes"
  6219. else
  6220. echo "configure: failed program was:" >&5
  6221. cat conftest.$ac_ext >&5
  6222. rm -rf conftest*
  6223. eval "ac_cv_lib_$ac_lib_var=no"
  6224. fi
  6225. rm -f conftest*
  6226. LIBS="$ac_save_LIBS"
  6227. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6228. echo "$ac_t""yes" 1>&6
  6229. TIFFLIB="$TIFFLIB -ltiff "
  6230. else
  6231. echo "$ac_t""no" 1>&6
  6232. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  6233. echo "configure:7587: checking for TIFFOpen in -ltiff" >&5
  6234. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  6235. ac_save_LIBS="$LIBS"
  6236. LIBS="-ltiff $MATHLIB $LIBS"
  6237. cat > conftest.$ac_ext <<EOF
  6238. #line 7593 "configure"
  6239. #include "confdefs.h"
  6240. /* Override any gcc2 internal prototype to avoid an error. */
  6241. /* We use char because int might match the return type of a gcc2
  6242. builtin and then its argument prototype would still apply. */
  6243. char TIFFOpen();
  6244. int main() {
  6245. TIFFOpen()
  6246. ; return 0; }
  6247. EOF
  6248. if { (eval echo configure:7604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6249. rm -rf conftest*
  6250. eval "ac_cv_lib_$ac_lib_var=yes"
  6251. else
  6252. echo "configure: failed program was:" >&5
  6253. cat conftest.$ac_ext >&5
  6254. rm -rf conftest*
  6255. eval "ac_cv_lib_$ac_lib_var=no"
  6256. fi
  6257. rm -f conftest*
  6258. LIBS="$ac_save_LIBS"
  6259. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6260. echo "$ac_t""yes" 1>&6
  6261. TIFFLIB="$TIFFLIB -ltiff $MATHLIB"
  6262. else
  6263. echo "$ac_t""no" 1>&6
  6264. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  6265. echo "configure:7623: checking for TIFFOpen in -ltiff" >&5
  6266. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  6267. ac_save_LIBS="$LIBS"
  6268. LIBS="-ltiff $ZLIB $LIBS"
  6269. cat > conftest.$ac_ext <<EOF
  6270. #line 7629 "configure"
  6271. #include "confdefs.h"
  6272. /* Override any gcc2 internal prototype to avoid an error. */
  6273. /* We use char because int might match the return type of a gcc2
  6274. builtin and then its argument prototype would still apply. */
  6275. char TIFFOpen();
  6276. int main() {
  6277. TIFFOpen()
  6278. ; return 0; }
  6279. EOF
  6280. if { (eval echo configure:7640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6281. rm -rf conftest*
  6282. eval "ac_cv_lib_$ac_lib_var=yes"
  6283. else
  6284. echo "configure: failed program was:" >&5
  6285. cat conftest.$ac_ext >&5
  6286. rm -rf conftest*
  6287. eval "ac_cv_lib_$ac_lib_var=no"
  6288. fi
  6289. rm -f conftest*
  6290. LIBS="$ac_save_LIBS"
  6291. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6292. echo "$ac_t""yes" 1>&6
  6293. TIFFLIB="$TIFFLIB -ltiff $ZLIB"
  6294. else
  6295. echo "$ac_t""no" 1>&6
  6296. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  6297. echo "configure:7659: checking for TIFFOpen in -ltiff" >&5
  6298. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  6299. ac_save_LIBS="$LIBS"
  6300. LIBS="-ltiff $ZLIB $MATHLIB $LIBS"
  6301. cat > conftest.$ac_ext <<EOF
  6302. #line 7665 "configure"
  6303. #include "confdefs.h"
  6304. /* Override any gcc2 internal prototype to avoid an error. */
  6305. /* We use char because int might match the return type of a gcc2
  6306. builtin and then its argument prototype would still apply. */
  6307. char TIFFOpen();
  6308. int main() {
  6309. TIFFOpen()
  6310. ; return 0; }
  6311. EOF
  6312. if { (eval echo configure:7676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6313. rm -rf conftest*
  6314. eval "ac_cv_lib_$ac_lib_var=yes"
  6315. else
  6316. echo "configure: failed program was:" >&5
  6317. cat conftest.$ac_ext >&5
  6318. rm -rf conftest*
  6319. eval "ac_cv_lib_$ac_lib_var=no"
  6320. fi
  6321. rm -f conftest*
  6322. LIBS="$ac_save_LIBS"
  6323. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6324. echo "$ac_t""yes" 1>&6
  6325. TIFFLIB="$TIFFLIB -ltiff $ZLIB $MATHLIB"
  6326. else
  6327. echo "$ac_t""no" 1>&6
  6328. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  6329. echo "configure:7695: checking for TIFFOpen in -ltiff" >&5
  6330. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  6331. ac_save_LIBS="$LIBS"
  6332. LIBS="-ltiff -ljpeg $LIBS"
  6333. cat > conftest.$ac_ext <<EOF
  6334. #line 7701 "configure"
  6335. #include "confdefs.h"
  6336. /* Override any gcc2 internal prototype to avoid an error. */
  6337. /* We use char because int might match the return type of a gcc2
  6338. builtin and then its argument prototype would still apply. */
  6339. char TIFFOpen();
  6340. int main() {
  6341. TIFFOpen()
  6342. ; return 0; }
  6343. EOF
  6344. if { (eval echo configure:7712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6345. rm -rf conftest*
  6346. eval "ac_cv_lib_$ac_lib_var=yes"
  6347. else
  6348. echo "configure: failed program was:" >&5
  6349. cat conftest.$ac_ext >&5
  6350. rm -rf conftest*
  6351. eval "ac_cv_lib_$ac_lib_var=no"
  6352. fi
  6353. rm -f conftest*
  6354. LIBS="$ac_save_LIBS"
  6355. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6356. echo "$ac_t""yes" 1>&6
  6357. TIFFLIB="$TIFFLIB -ltiff -ljpeg"
  6358. else
  6359. echo "$ac_t""no" 1>&6
  6360. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  6361. echo "configure:7731: checking for TIFFOpen in -ltiff" >&5
  6362. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  6363. ac_save_LIBS="$LIBS"
  6364. LIBS="-ltiff -ljpeg $MATHLIB $LIBS"
  6365. cat > conftest.$ac_ext <<EOF
  6366. #line 7737 "configure"
  6367. #include "confdefs.h"
  6368. /* Override any gcc2 internal prototype to avoid an error. */
  6369. /* We use char because int might match the return type of a gcc2
  6370. builtin and then its argument prototype would still apply. */
  6371. char TIFFOpen();
  6372. int main() {
  6373. TIFFOpen()
  6374. ; return 0; }
  6375. EOF
  6376. if { (eval echo configure:7748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6377. rm -rf conftest*
  6378. eval "ac_cv_lib_$ac_lib_var=yes"
  6379. else
  6380. echo "configure: failed program was:" >&5
  6381. cat conftest.$ac_ext >&5
  6382. rm -rf conftest*
  6383. eval "ac_cv_lib_$ac_lib_var=no"
  6384. fi
  6385. rm -f conftest*
  6386. LIBS="$ac_save_LIBS"
  6387. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6388. echo "$ac_t""yes" 1>&6
  6389. TIFFLIB="$TIFFLIB -ltiff -ljpeg $MATHLIB"
  6390. else
  6391. echo "$ac_t""no" 1>&6
  6392. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  6393. echo "configure:7767: checking for TIFFOpen in -ltiff" >&5
  6394. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  6395. ac_save_LIBS="$LIBS"
  6396. LIBS="-ltiff -ljpeg $ZLIB $LIBS"
  6397. cat > conftest.$ac_ext <<EOF
  6398. #line 7773 "configure"
  6399. #include "confdefs.h"
  6400. /* Override any gcc2 internal prototype to avoid an error. */
  6401. /* We use char because int might match the return type of a gcc2
  6402. builtin and then its argument prototype would still apply. */
  6403. char TIFFOpen();
  6404. int main() {
  6405. TIFFOpen()
  6406. ; return 0; }
  6407. EOF
  6408. if { (eval echo configure:7784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6409. rm -rf conftest*
  6410. eval "ac_cv_lib_$ac_lib_var=yes"
  6411. else
  6412. echo "configure: failed program was:" >&5
  6413. cat conftest.$ac_ext >&5
  6414. rm -rf conftest*
  6415. eval "ac_cv_lib_$ac_lib_var=no"
  6416. fi
  6417. rm -f conftest*
  6418. LIBS="$ac_save_LIBS"
  6419. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6420. echo "$ac_t""yes" 1>&6
  6421. TIFFLIB="$TIFFLIB -ltiff -ljpeg $ZLIB"
  6422. else
  6423. echo "$ac_t""no" 1>&6
  6424. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  6425. echo "configure:7803: checking for TIFFOpen in -ltiff" >&5
  6426. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  6427. ac_save_LIBS="$LIBS"
  6428. LIBS="-ltiff -ljpeg $ZLIB $MATHLIB $LIBS"
  6429. cat > conftest.$ac_ext <<EOF
  6430. #line 7809 "configure"
  6431. #include "confdefs.h"
  6432. /* Override any gcc2 internal prototype to avoid an error. */
  6433. /* We use char because int might match the return type of a gcc2
  6434. builtin and then its argument prototype would still apply. */
  6435. char TIFFOpen();
  6436. int main() {
  6437. TIFFOpen()
  6438. ; return 0; }
  6439. EOF
  6440. if { (eval echo configure:7820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6441. rm -rf conftest*
  6442. eval "ac_cv_lib_$ac_lib_var=yes"
  6443. else
  6444. echo "configure: failed program was:" >&5
  6445. cat conftest.$ac_ext >&5
  6446. rm -rf conftest*
  6447. eval "ac_cv_lib_$ac_lib_var=no"
  6448. fi
  6449. rm -f conftest*
  6450. LIBS="$ac_save_LIBS"
  6451. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6452. echo "$ac_t""yes" 1>&6
  6453. TIFFLIB="$TIFFLIB -ltiff -ljpeg $ZLIB $MATHLIB"
  6454. else
  6455. echo "$ac_t""no" 1>&6
  6456. LDFLAGS=${ac_save_ldflags}
  6457. { echo "configure: error: *** Unable to locate TIFF library." 1>&2; exit 1; }
  6458. fi
  6459. fi
  6460. fi
  6461. fi
  6462. fi
  6463. fi
  6464. fi
  6465. fi
  6466. LDFLAGS=${ac_save_ldflags}
  6467. fi # $USE_TIFF
  6468. # Done checking TIFF
  6469. # Enable PNG option
  6470. echo $ac_n "checking whether to use PNG""... $ac_c" 1>&6
  6471. echo "configure:7918: checking whether to use PNG" >&5
  6472. echo "$ac_t"""$with_png"" 1>&6
  6473. case "$with_png" in
  6474. "no") USE_PNG= ;;
  6475. "yes") USE_PNG="1" ;;
  6476. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6477. esac
  6478. PNGINC=
  6479. PNGLIB=
  6480. if test -n "$USE_PNG"; then
  6481. # With PNG includes directory
  6482. echo $ac_n "checking for location of PNG includes""... $ac_c" 1>&6
  6483. echo "configure:7937: checking for location of PNG includes" >&5
  6484. case "$with_png_includes" in
  6485. y | ye | yes | n | no)
  6486. { echo "configure: error: *** You must supply a directory to --with-png-includes." 1>&2; exit 1; }
  6487. ;;
  6488. esac
  6489. echo "$ac_t""$with_png_includes" 1>&6
  6490. if test -n "$with_png_includes" ; then
  6491. for dir in $with_png_includes; do
  6492. if test -d "$dir"; then
  6493. PNGINC="$PNGINC -I$dir"
  6494. else
  6495. { echo "configure: error: *** PNG includes directory $dir does not exist." 1>&2; exit 1; }
  6496. fi
  6497. done
  6498. fi
  6499. ac_save_cppflags="$CPPFLAGS"
  6500. CPPFLAGS="$PNGINC $CPPFLAGS"
  6501. for ac_hdr in png.h
  6502. do
  6503. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6504. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6505. echo "configure:7963: checking for $ac_hdr" >&5
  6506. cat > conftest.$ac_ext <<EOF
  6507. #line 7966 "configure"
  6508. #include "confdefs.h"
  6509. #include <$ac_hdr>
  6510. EOF
  6511. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6512. { (eval echo configure:7971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6513. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6514. if test -z "$ac_err"; then
  6515. rm -rf conftest*
  6516. eval "ac_cv_header_$ac_safe=yes"
  6517. else
  6518. echo "$ac_err" >&5
  6519. echo "configure: failed program was:" >&5
  6520. cat conftest.$ac_ext >&5
  6521. rm -rf conftest*
  6522. eval "ac_cv_header_$ac_safe=no"
  6523. fi
  6524. rm -f conftest*
  6525. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6526. echo "$ac_t""yes" 1>&6
  6527. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6528. cat >> confdefs.h <<EOF
  6529. #define $ac_tr_hdr 1
  6530. EOF
  6531. else
  6532. echo "$ac_t""no" 1>&6
  6533. { echo "configure: error: *** Unable to locate PNG includes." 1>&2; exit 1; }
  6534. fi
  6535. done
  6536. CPPFLAGS=$ac_save_cppflags
  6537. # With PNG library directory
  6538. echo $ac_n "checking for location of PNG library""... $ac_c" 1>&6
  6539. echo "configure:8005: checking for location of PNG library" >&5
  6540. case "$with_png_libs" in
  6541. y | ye | yes | n | no)
  6542. { echo "configure: error: *** You must supply a directory to --with-png-libs." 1>&2; exit 1; }
  6543. ;;
  6544. esac
  6545. echo "$ac_t""$with_png_libs" 1>&6
  6546. if test -n "$with_png_libs"; then
  6547. for dir in $with_png_libs; do
  6548. if test -d "$dir"; then
  6549. PNGLIB="$PNGLIB -L$dir"
  6550. else
  6551. { echo "configure: error: *** PNG library directory $dir does not exist." 1>&2; exit 1; }
  6552. fi
  6553. done
  6554. fi
  6555. ac_save_ldflags="$LDFLAGS"
  6556. LDFLAGS="$PNGLIB $LDFLAGS"
  6557. echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
  6558. echo "configure:8030: checking for png_read_image in -lpng" >&5
  6559. ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
  6560. ac_save_LIBS="$LIBS"
  6561. LIBS="-lpng $ZLIB $MATHLIB $LIBS"
  6562. cat > conftest.$ac_ext <<EOF
  6563. #line 8036 "configure"
  6564. #include "confdefs.h"
  6565. /* Override any gcc2 internal prototype to avoid an error. */
  6566. /* We use char because int might match the return type of a gcc2
  6567. builtin and then its argument prototype would still apply. */
  6568. char png_read_image();
  6569. int main() {
  6570. png_read_image()
  6571. ; return 0; }
  6572. EOF
  6573. if { (eval echo configure:8047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6574. rm -rf conftest*
  6575. eval "ac_cv_lib_$ac_lib_var=yes"
  6576. else
  6577. echo "configure: failed program was:" >&5
  6578. cat conftest.$ac_ext >&5
  6579. rm -rf conftest*
  6580. eval "ac_cv_lib_$ac_lib_var=no"
  6581. fi
  6582. rm -f conftest*
  6583. LIBS="$ac_save_LIBS"
  6584. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6585. echo "$ac_t""yes" 1>&6
  6586. PNGLIB="$PNGLIB -lpng $ZLIB $MATHLIB"
  6587. else
  6588. echo "$ac_t""no" 1>&6
  6589. LDFLAGS=${ac_save_ldflags}
  6590. { echo "configure: error: *** Unable to locate PNG library." 1>&2; exit 1; }
  6591. fi
  6592. LDFLAGS=${ac_save_ldflags}
  6593. fi # $USE_PNG
  6594. # Done checking PNG
  6595. # Enable PostgreSQL option
  6596. echo $ac_n "checking whether to use PostgreSQL""... $ac_c" 1>&6
  6597. echo "configure:8089: checking whether to use PostgreSQL" >&5
  6598. echo "$ac_t"""$with_postgres"" 1>&6
  6599. case "$with_postgres" in
  6600. "no") USE_POSTGRES= ;;
  6601. "yes") USE_POSTGRES="1" ;;
  6602. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6603. esac
  6604. if test -n "$USE_POSTGRES"; then
  6605. cat >> confdefs.h <<\EOF
  6606. #define HAVE_POSTGRES 1
  6607. EOF
  6608. fi # $USE_POSTGRES
  6609. PQINCPATH=
  6610. PQLIBPATH=
  6611. PQLIB=
  6612. if test -n "$USE_POSTGRES"; then
  6613. # With PostgreSQL includes directory
  6614. echo $ac_n "checking for location of PostgreSQL includes""... $ac_c" 1>&6
  6615. echo "configure:8116: checking for location of PostgreSQL includes" >&5
  6616. case "$with_postgres_includes" in
  6617. y | ye | yes | n | no)
  6618. { echo "configure: error: *** You must supply a directory to --with-postgres-includes." 1>&2; exit 1; }
  6619. ;;
  6620. esac
  6621. echo "$ac_t""$with_postgres_includes" 1>&6
  6622. if test -n "$with_postgres_includes" ; then
  6623. for dir in $with_postgres_includes; do
  6624. if test -d "$dir"; then
  6625. PQINCPATH="$PQINCPATH -I$dir"
  6626. else
  6627. { echo "configure: error: *** PostgreSQL includes directory $dir does not exist." 1>&2; exit 1; }
  6628. fi
  6629. done
  6630. fi
  6631. ac_save_cppflags="$CPPFLAGS"
  6632. CPPFLAGS="$PQINCPATH $CPPFLAGS"
  6633. for ac_hdr in libpq-fe.h
  6634. do
  6635. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6636. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6637. echo "configure:8142: checking for $ac_hdr" >&5
  6638. cat > conftest.$ac_ext <<EOF
  6639. #line 8145 "configure"
  6640. #include "confdefs.h"
  6641. #include <$ac_hdr>
  6642. EOF
  6643. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6644. { (eval echo configure:8150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6645. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6646. if test -z "$ac_err"; then
  6647. rm -rf conftest*
  6648. eval "ac_cv_header_$ac_safe=yes"
  6649. else
  6650. echo "$ac_err" >&5
  6651. echo "configure: failed program was:" >&5
  6652. cat conftest.$ac_ext >&5
  6653. rm -rf conftest*
  6654. eval "ac_cv_header_$ac_safe=no"
  6655. fi
  6656. rm -f conftest*
  6657. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6658. echo "$ac_t""yes" 1>&6
  6659. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6660. cat >> confdefs.h <<EOF
  6661. #define $ac_tr_hdr 1
  6662. EOF
  6663. else
  6664. echo "$ac_t""no" 1>&6
  6665. { echo "configure: error: *** Unable to locate PostgreSQL includes." 1>&2; exit 1; }
  6666. fi
  6667. done
  6668. CPPFLAGS=$ac_save_cppflags
  6669. fi # $USE_POSTGRES
  6670. if test -n "$USE_POSTGRES"; then
  6671. # With PostgreSQL library directory
  6672. echo $ac_n "checking for location of PostgreSQL library""... $ac_c" 1>&6
  6673. echo "configure:8188: checking for location of PostgreSQL library" >&5
  6674. case "$with_postgres_libs" in
  6675. y | ye | yes | n | no)
  6676. { echo "configure: error: *** You must supply a directory to --with-postgres-libs." 1>&2; exit 1; }
  6677. ;;
  6678. esac
  6679. echo "$ac_t""$with_postgres_libs" 1>&6
  6680. if test -n "$with_postgres_libs"; then
  6681. for dir in $with_postgres_libs; do
  6682. if test -d "$dir"; then
  6683. PQLIBPATH="$PQLIBPATH -L$dir"
  6684. else
  6685. { echo "configure: error: *** PostgreSQL library directory $dir does not exist." 1>&2; exit 1; }
  6686. fi
  6687. done
  6688. fi
  6689. ac_save_ldflags="$LDFLAGS"
  6690. LDFLAGS="$PQLIBPATH $LDFLAGS"
  6691. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6692. echo "configure:8217: checking for PQsetdbLogin in -lpq" >&5
  6693. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6694. ac_save_LIBS="$LIBS"
  6695. LIBS="-lpq $LIBS"
  6696. cat > conftest.$ac_ext <<EOF
  6697. #line 8223 "configure"
  6698. #include "confdefs.h"
  6699. /* Override any gcc2 internal prototype to avoid an error. */
  6700. /* We use char because int might match the return type of a gcc2
  6701. builtin and then its argument prototype would still apply. */
  6702. char PQsetdbLogin();
  6703. int main() {
  6704. PQsetdbLogin()
  6705. ; return 0; }
  6706. EOF
  6707. if { (eval echo configure:8234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6708. rm -rf conftest*
  6709. eval "ac_cv_lib_$ac_lib_var=yes"
  6710. else
  6711. echo "configure: failed program was:" >&5
  6712. cat conftest.$ac_ext >&5
  6713. rm -rf conftest*
  6714. eval "ac_cv_lib_$ac_lib_var=no"
  6715. fi
  6716. rm -f conftest*
  6717. LIBS="$ac_save_LIBS"
  6718. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6719. echo "$ac_t""yes" 1>&6
  6720. PQLIB="$PQLIB -lpq "
  6721. else
  6722. echo "$ac_t""no" 1>&6
  6723. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6724. echo "configure:8253: checking for PQsetdbLogin in -lpq" >&5
  6725. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6726. ac_save_LIBS="$LIBS"
  6727. LIBS="-lpq -lssl -lcrypto $LIBS"
  6728. cat > conftest.$ac_ext <<EOF
  6729. #line 8259 "configure"
  6730. #include "confdefs.h"
  6731. /* Override any gcc2 internal prototype to avoid an error. */
  6732. /* We use char because int might match the return type of a gcc2
  6733. builtin and then its argument prototype would still apply. */
  6734. char PQsetdbLogin();
  6735. int main() {
  6736. PQsetdbLogin()
  6737. ; return 0; }
  6738. EOF
  6739. if { (eval echo configure:8270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6740. rm -rf conftest*
  6741. eval "ac_cv_lib_$ac_lib_var=yes"
  6742. else
  6743. echo "configure: failed program was:" >&5
  6744. cat conftest.$ac_ext >&5
  6745. rm -rf conftest*
  6746. eval "ac_cv_lib_$ac_lib_var=no"
  6747. fi
  6748. rm -f conftest*
  6749. LIBS="$ac_save_LIBS"
  6750. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6751. echo "$ac_t""yes" 1>&6
  6752. PQLIB="$PQLIB -lpq -lssl -lcrypto"
  6753. else
  6754. echo "$ac_t""no" 1>&6
  6755. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6756. echo "configure:8289: checking for PQsetdbLogin in -lpq" >&5
  6757. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6758. ac_save_LIBS="$LIBS"
  6759. LIBS="-lpq -lcrypt $LIBS"
  6760. cat > conftest.$ac_ext <<EOF
  6761. #line 8295 "configure"
  6762. #include "confdefs.h"
  6763. /* Override any gcc2 internal prototype to avoid an error. */
  6764. /* We use char because int might match the return type of a gcc2
  6765. builtin and then its argument prototype would still apply. */
  6766. char PQsetdbLogin();
  6767. int main() {
  6768. PQsetdbLogin()
  6769. ; return 0; }
  6770. EOF
  6771. if { (eval echo configure:8306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6772. rm -rf conftest*
  6773. eval "ac_cv_lib_$ac_lib_var=yes"
  6774. else
  6775. echo "configure: failed program was:" >&5
  6776. cat conftest.$ac_ext >&5
  6777. rm -rf conftest*
  6778. eval "ac_cv_lib_$ac_lib_var=no"
  6779. fi
  6780. rm -f conftest*
  6781. LIBS="$ac_save_LIBS"
  6782. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6783. echo "$ac_t""yes" 1>&6
  6784. PQLIB="$PQLIB -lpq -lcrypt"
  6785. else
  6786. echo "$ac_t""no" 1>&6
  6787. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6788. echo "configure:8325: checking for PQsetdbLogin in -lpq" >&5
  6789. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6790. ac_save_LIBS="$LIBS"
  6791. LIBS="-lpq -lcrypt -lssl -lcrypto $LIBS"
  6792. cat > conftest.$ac_ext <<EOF
  6793. #line 8331 "configure"
  6794. #include "confdefs.h"
  6795. /* Override any gcc2 internal prototype to avoid an error. */
  6796. /* We use char because int might match the return type of a gcc2
  6797. builtin and then its argument prototype would still apply. */
  6798. char PQsetdbLogin();
  6799. int main() {
  6800. PQsetdbLogin()
  6801. ; return 0; }
  6802. EOF
  6803. if { (eval echo configure:8342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6804. rm -rf conftest*
  6805. eval "ac_cv_lib_$ac_lib_var=yes"
  6806. else
  6807. echo "configure: failed program was:" >&5
  6808. cat conftest.$ac_ext >&5
  6809. rm -rf conftest*
  6810. eval "ac_cv_lib_$ac_lib_var=no"
  6811. fi
  6812. rm -f conftest*
  6813. LIBS="$ac_save_LIBS"
  6814. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6815. echo "$ac_t""yes" 1>&6
  6816. PQLIB="$PQLIB -lpq -lcrypt -lssl -lcrypto"
  6817. else
  6818. echo "$ac_t""no" 1>&6
  6819. LDFLAGS=${ac_save_ldflags}
  6820. { echo "configure: error: *** Unable to locate PostgreSQL library." 1>&2; exit 1; }
  6821. fi
  6822. fi
  6823. fi
  6824. fi
  6825. LDFLAGS=${ac_save_ldflags}
  6826. ac_save_ldflags="$LDFLAGS"
  6827. LDFLAGS="$LDFLAGS $PQLIBPATH"
  6828. echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
  6829. echo "configure:8399: checking for PQcmdTuples in -lpq" >&5
  6830. ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
  6831. ac_save_LIBS="$LIBS"
  6832. LIBS="-lpq $LIBS"
  6833. cat > conftest.$ac_ext <<EOF
  6834. #line 8405 "configure"
  6835. #include "confdefs.h"
  6836. /* Override any gcc2 internal prototype to avoid an error. */
  6837. /* We use char because int might match the return type of a gcc2
  6838. builtin and then its argument prototype would still apply. */
  6839. char PQcmdTuples();
  6840. int main() {
  6841. PQcmdTuples()
  6842. ; return 0; }
  6843. EOF
  6844. if { (eval echo configure:8416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6845. rm -rf conftest*
  6846. eval "ac_cv_lib_$ac_lib_var=yes"
  6847. else
  6848. echo "configure: failed program was:" >&5
  6849. cat conftest.$ac_ext >&5
  6850. rm -rf conftest*
  6851. eval "ac_cv_lib_$ac_lib_var=no"
  6852. fi
  6853. rm -f conftest*
  6854. LIBS="$ac_save_LIBS"
  6855. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6856. echo "$ac_t""yes" 1>&6
  6857. cat >> confdefs.h <<\EOF
  6858. #define HAVE_PQCMDTUPLES 1
  6859. EOF
  6860. else
  6861. echo "$ac_t""no" 1>&6
  6862. echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
  6863. echo "configure:8438: checking for PQcmdTuples in -lpq" >&5
  6864. ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
  6865. ac_save_LIBS="$LIBS"
  6866. LIBS="-lpq -lcrypt $LIBS"
  6867. cat > conftest.$ac_ext <<EOF
  6868. #line 8444 "configure"
  6869. #include "confdefs.h"
  6870. /* Override any gcc2 internal prototype to avoid an error. */
  6871. /* We use char because int might match the return type of a gcc2
  6872. builtin and then its argument prototype would still apply. */
  6873. char PQcmdTuples();
  6874. int main() {
  6875. PQcmdTuples()
  6876. ; return 0; }
  6877. EOF
  6878. if { (eval echo configure:8455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6879. rm -rf conftest*
  6880. eval "ac_cv_lib_$ac_lib_var=yes"
  6881. else
  6882. echo "configure: failed program was:" >&5
  6883. cat conftest.$ac_ext >&5
  6884. rm -rf conftest*
  6885. eval "ac_cv_lib_$ac_lib_var=no"
  6886. fi
  6887. rm -f conftest*
  6888. LIBS="$ac_save_LIBS"
  6889. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6890. echo "$ac_t""yes" 1>&6
  6891. cat >> confdefs.h <<\EOF
  6892. #define HAVE_PQCMDTUPLES 1
  6893. EOF
  6894. else
  6895. echo "$ac_t""no" 1>&6
  6896. fi
  6897. fi
  6898. LDFLAGS="${ac_save_ldflags}"
  6899. fi # $USE_POSTGRES
  6900. # Done checking PostgreSQL
  6901. # Enable MySQL option
  6902. echo $ac_n "checking whether to use MySQL""... $ac_c" 1>&6
  6903. echo "configure:8498: checking whether to use MySQL" >&5
  6904. echo "$ac_t"""$with_mysql"" 1>&6
  6905. case "$with_mysql" in
  6906. "no") USE_MYSQL= ;;
  6907. "yes") USE_MYSQL="1" ;;
  6908. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6909. esac
  6910. MYSQLINCPATH=
  6911. MYSQLLIBPATH=
  6912. MYSQLLIB=
  6913. if test -n "$USE_MYSQL"; then
  6914. # With MySQL includes directory
  6915. echo $ac_n "checking for location of MySQL includes""... $ac_c" 1>&6
  6916. echo "configure:8518: checking for location of MySQL includes" >&5
  6917. case "$with_mysql_includes" in
  6918. y | ye | yes | n | no)
  6919. { echo "configure: error: *** You must supply a directory to --with-mysql-includes." 1>&2; exit 1; }
  6920. ;;
  6921. esac
  6922. echo "$ac_t""$with_mysql_includes" 1>&6
  6923. if test -n "$with_mysql_includes" ; then
  6924. for dir in $with_mysql_includes; do
  6925. if test -d "$dir"; then
  6926. MYSQLINCPATH="$MYSQLINCPATH -I$dir"
  6927. else
  6928. { echo "configure: error: *** MySQL includes directory $dir does not exist." 1>&2; exit 1; }
  6929. fi
  6930. done
  6931. fi
  6932. ac_save_cppflags="$CPPFLAGS"
  6933. CPPFLAGS="$MYSQLINCPATH $CPPFLAGS"
  6934. for ac_hdr in mysql.h
  6935. do
  6936. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6937. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6938. echo "configure:8544: checking for $ac_hdr" >&5
  6939. cat > conftest.$ac_ext <<EOF
  6940. #line 8547 "configure"
  6941. #include "confdefs.h"
  6942. #include <$ac_hdr>
  6943. EOF
  6944. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6945. { (eval echo configure:8552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6946. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6947. if test -z "$ac_err"; then
  6948. rm -rf conftest*
  6949. eval "ac_cv_header_$ac_safe=yes"
  6950. else
  6951. echo "$ac_err" >&5
  6952. echo "configure: failed program was:" >&5
  6953. cat conftest.$ac_ext >&5
  6954. rm -rf conftest*
  6955. eval "ac_cv_header_$ac_safe=no"
  6956. fi
  6957. rm -f conftest*
  6958. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6959. echo "$ac_t""yes" 1>&6
  6960. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6961. cat >> confdefs.h <<EOF
  6962. #define $ac_tr_hdr 1
  6963. EOF
  6964. else
  6965. echo "$ac_t""no" 1>&6
  6966. { echo "configure: error: *** Unable to locate MySQL includes." 1>&2; exit 1; }
  6967. fi
  6968. done
  6969. CPPFLAGS=$ac_save_cppflags
  6970. fi # $USE_MYSQL
  6971. if test -n "$USE_MYSQL"; then
  6972. # With MySQL library directory
  6973. echo $ac_n "checking for location of MySQL library""... $ac_c" 1>&6
  6974. echo "configure:8589: checking for location of MySQL library" >&5
  6975. case "$with_mysql_libs" in
  6976. y | ye | yes | n | no)
  6977. { echo "configure: error: *** You must supply a directory to --with-mysql-libs." 1>&2; exit 1; }
  6978. ;;
  6979. esac
  6980. echo "$ac_t""$with_mysql_libs" 1>&6
  6981. if test -n "$with_mysql_libs"; then
  6982. for dir in $with_mysql_libs; do
  6983. if test -d "$dir"; then
  6984. MYSQLLIBPATH="$MYSQLLIBPATH -L$dir"
  6985. else
  6986. { echo "configure: error: *** MySQL library directory $dir does not exist." 1>&2; exit 1; }
  6987. fi
  6988. done
  6989. fi
  6990. ac_save_ldflags="$LDFLAGS"
  6991. LDFLAGS="$MYSQLLIBPATH $LDFLAGS"
  6992. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6993. echo "configure:8620: checking for mysql_query in -lmysqlclient" >&5
  6994. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6995. ac_save_LIBS="$LIBS"
  6996. LIBS="-lmysqlclient $LIBS"
  6997. cat > conftest.$ac_ext <<EOF
  6998. #line 8626 "configure"
  6999. #include "confdefs.h"
  7000. /* Override any gcc2 internal prototype to avoid an error. */
  7001. /* We use char because int might match the return type of a gcc2
  7002. builtin and then its argument prototype would still apply. */
  7003. char mysql_query();
  7004. int main() {
  7005. mysql_query()
  7006. ; return 0; }
  7007. EOF
  7008. if { (eval echo configure:8637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7009. rm -rf conftest*
  7010. eval "ac_cv_lib_$ac_lib_var=yes"
  7011. else
  7012. echo "configure: failed program was:" >&5
  7013. cat conftest.$ac_ext >&5
  7014. rm -rf conftest*
  7015. eval "ac_cv_lib_$ac_lib_var=no"
  7016. fi
  7017. rm -f conftest*
  7018. LIBS="$ac_save_LIBS"
  7019. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7020. echo "$ac_t""yes" 1>&6
  7021. MYSQLLIB="$MYSQLLIB -lmysqlclient "
  7022. else
  7023. echo "$ac_t""no" 1>&6
  7024. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  7025. echo "configure:8656: checking for mysql_query in -lmysqlclient" >&5
  7026. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  7027. ac_save_LIBS="$LIBS"
  7028. LIBS="-lmysqlclient $MATHLIB $LIBS"
  7029. cat > conftest.$ac_ext <<EOF
  7030. #line 8662 "configure"
  7031. #include "confdefs.h"
  7032. /* Override any gcc2 internal prototype to avoid an error. */
  7033. /* We use char because int might match the return type of a gcc2
  7034. builtin and then its argument prototype would still apply. */
  7035. char mysql_query();
  7036. int main() {
  7037. mysql_query()
  7038. ; return 0; }
  7039. EOF
  7040. if { (eval echo configure:8673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7041. rm -rf conftest*
  7042. eval "ac_cv_lib_$ac_lib_var=yes"
  7043. else
  7044. echo "configure: failed program was:" >&5
  7045. cat conftest.$ac_ext >&5
  7046. rm -rf conftest*
  7047. eval "ac_cv_lib_$ac_lib_var=no"
  7048. fi
  7049. rm -f conftest*
  7050. LIBS="$ac_save_LIBS"
  7051. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7052. echo "$ac_t""yes" 1>&6
  7053. MYSQLLIB="$MYSQLLIB -lmysqlclient $MATHLIB"
  7054. else
  7055. echo "$ac_t""no" 1>&6
  7056. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  7057. echo "configure:8692: checking for mysql_query in -lmysqlclient" >&5
  7058. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  7059. ac_save_LIBS="$LIBS"
  7060. LIBS="-lmysqlclient $SOCKLIB $LIBS"
  7061. cat > conftest.$ac_ext <<EOF
  7062. #line 8698 "configure"
  7063. #include "confdefs.h"
  7064. /* Override any gcc2 internal prototype to avoid an error. */
  7065. /* We use char because int might match the return type of a gcc2
  7066. builtin and then its argument prototype would still apply. */
  7067. char mysql_query();
  7068. int main() {
  7069. mysql_query()
  7070. ; return 0; }
  7071. EOF
  7072. if { (eval echo configure:8709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7073. rm -rf conftest*
  7074. eval "ac_cv_lib_$ac_lib_var=yes"
  7075. else
  7076. echo "configure: failed program was:" >&5
  7077. cat conftest.$ac_ext >&5
  7078. rm -rf conftest*
  7079. eval "ac_cv_lib_$ac_lib_var=no"
  7080. fi
  7081. rm -f conftest*
  7082. LIBS="$ac_save_LIBS"
  7083. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7084. echo "$ac_t""yes" 1>&6
  7085. MYSQLLIB="$MYSQLLIB -lmysqlclient $SOCKLIB"
  7086. else
  7087. echo "$ac_t""no" 1>&6
  7088. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  7089. echo "configure:8728: checking for mysql_query in -lmysqlclient" >&5
  7090. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  7091. ac_save_LIBS="$LIBS"
  7092. LIBS="-lmysqlclient $SOCKLIB $MATHLIB $LIBS"
  7093. cat > conftest.$ac_ext <<EOF
  7094. #line 8734 "configure"
  7095. #include "confdefs.h"
  7096. /* Override any gcc2 internal prototype to avoid an error. */
  7097. /* We use char because int might match the return type of a gcc2
  7098. builtin and then its argument prototype would still apply. */
  7099. char mysql_query();
  7100. int main() {
  7101. mysql_query()
  7102. ; return 0; }
  7103. EOF
  7104. if { (eval echo configure:8745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7105. rm -rf conftest*
  7106. eval "ac_cv_lib_$ac_lib_var=yes"
  7107. else
  7108. echo "configure: failed program was:" >&5
  7109. cat conftest.$ac_ext >&5
  7110. rm -rf conftest*
  7111. eval "ac_cv_lib_$ac_lib_var=no"
  7112. fi
  7113. rm -f conftest*
  7114. LIBS="$ac_save_LIBS"
  7115. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7116. echo "$ac_t""yes" 1>&6
  7117. MYSQLLIB="$MYSQLLIB -lmysqlclient $SOCKLIB $MATHLIB"
  7118. else
  7119. echo "$ac_t""no" 1>&6
  7120. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  7121. echo "configure:8764: checking for mysql_query in -lmysqlclient" >&5
  7122. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  7123. ac_save_LIBS="$LIBS"
  7124. LIBS="-lmysqlclient $ZLIB $LIBS"
  7125. cat > conftest.$ac_ext <<EOF
  7126. #line 8770 "configure"
  7127. #include "confdefs.h"
  7128. /* Override any gcc2 internal prototype to avoid an error. */
  7129. /* We use char because int might match the return type of a gcc2
  7130. builtin and then its argument prototype would still apply. */
  7131. char mysql_query();
  7132. int main() {
  7133. mysql_query()
  7134. ; return 0; }
  7135. EOF
  7136. if { (eval echo configure:8781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7137. rm -rf conftest*
  7138. eval "ac_cv_lib_$ac_lib_var=yes"
  7139. else
  7140. echo "configure: failed program was:" >&5
  7141. cat conftest.$ac_ext >&5
  7142. rm -rf conftest*
  7143. eval "ac_cv_lib_$ac_lib_var=no"
  7144. fi
  7145. rm -f conftest*
  7146. LIBS="$ac_save_LIBS"
  7147. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7148. echo "$ac_t""yes" 1>&6
  7149. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB"
  7150. else
  7151. echo "$ac_t""no" 1>&6
  7152. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  7153. echo "configure:8800: checking for mysql_query in -lmysqlclient" >&5
  7154. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  7155. ac_save_LIBS="$LIBS"
  7156. LIBS="-lmysqlclient $ZLIB $MATHLIB $LIBS"
  7157. cat > conftest.$ac_ext <<EOF
  7158. #line 8806 "configure"
  7159. #include "confdefs.h"
  7160. /* Override any gcc2 internal prototype to avoid an error. */
  7161. /* We use char because int might match the return type of a gcc2
  7162. builtin and then its argument prototype would still apply. */
  7163. char mysql_query();
  7164. int main() {
  7165. mysql_query()
  7166. ; return 0; }
  7167. EOF
  7168. if { (eval echo configure:8817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7169. rm -rf conftest*
  7170. eval "ac_cv_lib_$ac_lib_var=yes"
  7171. else
  7172. echo "configure: failed program was:" >&5
  7173. cat conftest.$ac_ext >&5
  7174. rm -rf conftest*
  7175. eval "ac_cv_lib_$ac_lib_var=no"
  7176. fi
  7177. rm -f conftest*
  7178. LIBS="$ac_save_LIBS"
  7179. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7180. echo "$ac_t""yes" 1>&6
  7181. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $MATHLIB"
  7182. else
  7183. echo "$ac_t""no" 1>&6
  7184. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  7185. echo "configure:8836: checking for mysql_query in -lmysqlclient" >&5
  7186. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  7187. ac_save_LIBS="$LIBS"
  7188. LIBS="-lmysqlclient $ZLIB $SOCKLIB $LIBS"
  7189. cat > conftest.$ac_ext <<EOF
  7190. #line 8842 "configure"
  7191. #include "confdefs.h"
  7192. /* Override any gcc2 internal prototype to avoid an error. */
  7193. /* We use char because int might match the return type of a gcc2
  7194. builtin and then its argument prototype would still apply. */
  7195. char mysql_query();
  7196. int main() {
  7197. mysql_query()
  7198. ; return 0; }
  7199. EOF
  7200. if { (eval echo configure:8853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7201. rm -rf conftest*
  7202. eval "ac_cv_lib_$ac_lib_var=yes"
  7203. else
  7204. echo "configure: failed program was:" >&5
  7205. cat conftest.$ac_ext >&5
  7206. rm -rf conftest*
  7207. eval "ac_cv_lib_$ac_lib_var=no"
  7208. fi
  7209. rm -f conftest*
  7210. LIBS="$ac_save_LIBS"
  7211. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7212. echo "$ac_t""yes" 1>&6
  7213. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $SOCKLIB"
  7214. else
  7215. echo "$ac_t""no" 1>&6
  7216. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  7217. echo "configure:8872: checking for mysql_query in -lmysqlclient" >&5
  7218. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  7219. ac_save_LIBS="$LIBS"
  7220. LIBS="-lmysqlclient $ZLIB $SOCKLIB $MATHLIB $LIBS"
  7221. cat > conftest.$ac_ext <<EOF
  7222. #line 8878 "configure"
  7223. #include "confdefs.h"
  7224. /* Override any gcc2 internal prototype to avoid an error. */
  7225. /* We use char because int might match the return type of a gcc2
  7226. builtin and then its argument prototype would still apply. */
  7227. char mysql_query();
  7228. int main() {
  7229. mysql_query()
  7230. ; return 0; }
  7231. EOF
  7232. if { (eval echo configure:8889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7233. rm -rf conftest*
  7234. eval "ac_cv_lib_$ac_lib_var=yes"
  7235. else
  7236. echo "configure: failed program was:" >&5
  7237. cat conftest.$ac_ext >&5
  7238. rm -rf conftest*
  7239. eval "ac_cv_lib_$ac_lib_var=no"
  7240. fi
  7241. rm -f conftest*
  7242. LIBS="$ac_save_LIBS"
  7243. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7244. echo "$ac_t""yes" 1>&6
  7245. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $SOCKLIB $MATHLIB"
  7246. else
  7247. echo "$ac_t""no" 1>&6
  7248. LDFLAGS=${ac_save_ldflags}
  7249. { echo "configure: error: *** Unable to locate MySQL library." 1>&2; exit 1; }
  7250. fi
  7251. fi
  7252. fi
  7253. fi
  7254. fi
  7255. fi
  7256. fi
  7257. fi
  7258. LDFLAGS=${ac_save_ldflags}
  7259. # Check for libmysqld (for embedded version of the driver)
  7260. # Extract the first word of "mysql_config", so it can be a program name with args.
  7261. set dummy mysql_config; ac_word=$2
  7262. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  7263. echo "configure:8979: checking for $ac_word" >&5
  7264. case "$MYSQLD_CONFIG" in
  7265. /*)
  7266. ac_cv_path_MYSQLD_CONFIG="$MYSQLD_CONFIG" # Let the user override the test with a path.
  7267. ;;
  7268. ?:/*)
  7269. ac_cv_path_MYSQLD_CONFIG="$MYSQLD_CONFIG" # Let the user override the test with a dos path.
  7270. ;;
  7271. *)
  7272. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  7273. ac_dummy="$PATH"
  7274. for ac_dir in $ac_dummy; do
  7275. test -z "$ac_dir" && ac_dir=.
  7276. if test -f $ac_dir/$ac_word; then
  7277. ac_cv_path_MYSQLD_CONFIG="$ac_dir/$ac_word"
  7278. break
  7279. fi
  7280. done
  7281. IFS="$ac_save_ifs"
  7282. test -z "$ac_cv_path_MYSQLD_CONFIG" && ac_cv_path_MYSQLD_CONFIG="no"
  7283. ;;
  7284. esac
  7285. MYSQLD_CONFIG="$ac_cv_path_MYSQLD_CONFIG"
  7286. if test -n "$MYSQLD_CONFIG"; then
  7287. echo "$ac_t""$MYSQLD_CONFIG" 1>&6
  7288. else
  7289. echo "$ac_t""no" 1>&6
  7290. fi
  7291. if test "$MYSQLD_CONFIG" = "no" ; then
  7292. { echo "configure: error: *** couldn't find mysql_config" 1>&2; exit 1; }
  7293. fi
  7294. if test "$MYSQLD_CONFIG" != "" ; then
  7295. ac_ext=C
  7296. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  7297. ac_cpp='$CXXCPP $CPPFLAGS'
  7298. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  7299. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  7300. cross_compiling=$ac_cv_prog_cxx_cross
  7301. ac_save_libs="$LIBS"
  7302. MYSQLDLIB=`"$MYSQLD_CONFIG" --libmysqld-libs`
  7303. LIBS="$MYSQLDLIB $LIBS"
  7304. echo $ac_n "checking for mysql_server_init""... $ac_c" 1>&6
  7305. echo "configure:9028: checking for mysql_server_init" >&5
  7306. cat > conftest.$ac_ext <<EOF
  7307. #line 9031 "configure"
  7308. #include "confdefs.h"
  7309. /* System header to define __stub macros and hopefully few prototypes,
  7310. which can conflict with char mysql_server_init(); below. */
  7311. #include <assert.h>
  7312. /* Override any gcc2 internal prototype to avoid an error. */
  7313. #ifdef __cplusplus
  7314. extern "C"
  7315. #endif
  7316. /* We use char because int might match the return type of a gcc2
  7317. builtin and then its argument prototype would still apply. */
  7318. char mysql_server_init();
  7319. int main() {
  7320. /* The GNU C library defines this for functions which it implements
  7321. to always fail with ENOSYS. Some functions are actually named
  7322. something starting with __ and the normal name is an alias. */
  7323. #if defined (__stub_mysql_server_init) || defined (__stub___mysql_server_init)
  7324. choke me
  7325. #else
  7326. mysql_server_init();
  7327. #endif
  7328. ; return 0; }
  7329. EOF
  7330. if { (eval echo configure:9057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7331. rm -rf conftest*
  7332. eval "ac_cv_func_mysql_server_init=yes"
  7333. else
  7334. echo "configure: failed program was:" >&5
  7335. cat conftest.$ac_ext >&5
  7336. rm -rf conftest*
  7337. eval "ac_cv_func_mysql_server_init=no"
  7338. fi
  7339. rm -f conftest*
  7340. if eval "test \"`echo '$ac_cv_func_'mysql_server_init`\" = yes"; then
  7341. echo "$ac_t""yes" 1>&6
  7342. :
  7343. else
  7344. echo "$ac_t""no" 1>&6
  7345. MYSQLDLIB="";
  7346. echo "configure: warning: libmysqld not found" 1>&2
  7347. fi
  7348. LIBS=$ac_save_libs
  7349. ac_ext=c
  7350. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  7351. ac_cpp='$CPP $CPPFLAGS'
  7352. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  7353. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  7354. cross_compiling=$ac_cv_prog_cc_cross
  7355. ac_ext=c
  7356. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  7357. ac_cpp='$CPP $CPPFLAGS'
  7358. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  7359. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  7360. cross_compiling=$ac_cv_prog_cc_cross
  7361. fi
  7362. fi # $USE_MYSQL
  7363. # Done checking MySQL
  7364. # Enable SQLite option
  7365. echo $ac_n "checking whether to use SQLite""... $ac_c" 1>&6
  7366. echo "configure:9109: checking whether to use SQLite" >&5
  7367. echo "$ac_t"""$with_sqlite"" 1>&6
  7368. case "$with_sqlite" in
  7369. "no") USE_SQLITE= ;;
  7370. "yes") USE_SQLITE="1" ;;
  7371. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  7372. esac
  7373. SQLITEINCPATH=
  7374. SQLITELIBPATH=
  7375. SQLITELIB=
  7376. if test -n "$USE_SQLITE"; then
  7377. # With SQLite includes directory
  7378. echo $ac_n "checking for location of SQLite includes""... $ac_c" 1>&6
  7379. echo "configure:9129: checking for location of SQLite includes" >&5
  7380. case "$with_sqlite_includes" in
  7381. y | ye | yes | n | no)
  7382. { echo "configure: error: *** You must supply a directory to --with-sqlite-includes." 1>&2; exit 1; }
  7383. ;;
  7384. esac
  7385. echo "$ac_t""$with_sqlite_includes" 1>&6
  7386. if test -n "$with_sqlite_includes" ; then
  7387. for dir in $with_sqlite_includes; do
  7388. if test -d "$dir"; then
  7389. SQLITEINCPATH="$SQLITEINCPATH -I$dir"
  7390. else
  7391. { echo "configure: error: *** SQLite includes directory $dir does not exist." 1>&2; exit 1; }
  7392. fi
  7393. done
  7394. fi
  7395. ac_save_cppflags="$CPPFLAGS"
  7396. CPPFLAGS="$SQLITEINCPATH $CPPFLAGS"
  7397. for ac_hdr in sqlite3.h
  7398. do
  7399. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7400. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7401. echo "configure:9155: checking for $ac_hdr" >&5
  7402. cat > conftest.$ac_ext <<EOF
  7403. #line 9158 "configure"
  7404. #include "confdefs.h"
  7405. #include <$ac_hdr>
  7406. EOF
  7407. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7408. { (eval echo configure:9163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7409. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7410. if test -z "$ac_err"; then
  7411. rm -rf conftest*
  7412. eval "ac_cv_header_$ac_safe=yes"
  7413. else
  7414. echo "$ac_err" >&5
  7415. echo "configure: failed program was:" >&5
  7416. cat conftest.$ac_ext >&5
  7417. rm -rf conftest*
  7418. eval "ac_cv_header_$ac_safe=no"
  7419. fi
  7420. rm -f conftest*
  7421. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7422. echo "$ac_t""yes" 1>&6
  7423. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7424. cat >> confdefs.h <<EOF
  7425. #define $ac_tr_hdr 1
  7426. EOF
  7427. else
  7428. echo "$ac_t""no" 1>&6
  7429. { echo "configure: error: *** Unable to locate SQLite includes." 1>&2; exit 1; }
  7430. fi
  7431. done
  7432. CPPFLAGS=$ac_save_cppflags
  7433. cat >> confdefs.h <<\EOF
  7434. #define HAVE_SQLITE 1
  7435. EOF
  7436. fi # $USE_SQLITE
  7437. if test -n "$USE_SQLITE"; then
  7438. # With SQLite library directory
  7439. echo $ac_n "checking for location of SQLite library""... $ac_c" 1>&6
  7440. echo "configure:9206: checking for location of SQLite library" >&5
  7441. case "$with_sqlite_libs" in
  7442. y | ye | yes | n | no)
  7443. { echo "configure: error: *** You must supply a directory to --with-sqlite-libs." 1>&2; exit 1; }
  7444. ;;
  7445. esac
  7446. echo "$ac_t""$with_sqlite_libs" 1>&6
  7447. if test -n "$with_sqlite_libs"; then
  7448. for dir in $with_sqlite_libs; do
  7449. if test -d "$dir"; then
  7450. SQLITELIBPATH="$SQLITELIBPATH -L$dir"
  7451. else
  7452. { echo "configure: error: *** SQLite library directory $dir does not exist." 1>&2; exit 1; }
  7453. fi
  7454. done
  7455. fi
  7456. ac_save_ldflags="$LDFLAGS"
  7457. LDFLAGS="$SQLITELIBPATH $LDFLAGS"
  7458. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  7459. echo "configure:9235: checking for sqlite3_open in -lsqlite3" >&5
  7460. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  7461. ac_save_LIBS="$LIBS"
  7462. LIBS="-lsqlite3 $LIBS"
  7463. cat > conftest.$ac_ext <<EOF
  7464. #line 9241 "configure"
  7465. #include "confdefs.h"
  7466. /* Override any gcc2 internal prototype to avoid an error. */
  7467. /* We use char because int might match the return type of a gcc2
  7468. builtin and then its argument prototype would still apply. */
  7469. char sqlite3_open();
  7470. int main() {
  7471. sqlite3_open()
  7472. ; return 0; }
  7473. EOF
  7474. if { (eval echo configure:9252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7475. rm -rf conftest*
  7476. eval "ac_cv_lib_$ac_lib_var=yes"
  7477. else
  7478. echo "configure: failed program was:" >&5
  7479. cat conftest.$ac_ext >&5
  7480. rm -rf conftest*
  7481. eval "ac_cv_lib_$ac_lib_var=no"
  7482. fi
  7483. rm -f conftest*
  7484. LIBS="$ac_save_LIBS"
  7485. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7486. echo "$ac_t""yes" 1>&6
  7487. SQLITELIB="$SQLITELIB -lsqlite3 "
  7488. else
  7489. echo "$ac_t""no" 1>&6
  7490. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  7491. echo "configure:9271: checking for sqlite3_open in -lsqlite3" >&5
  7492. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  7493. ac_save_LIBS="$LIBS"
  7494. LIBS="-lsqlite3 $DLLIB $LIBS"
  7495. cat > conftest.$ac_ext <<EOF
  7496. #line 9277 "configure"
  7497. #include "confdefs.h"
  7498. /* Override any gcc2 internal prototype to avoid an error. */
  7499. /* We use char because int might match the return type of a gcc2
  7500. builtin and then its argument prototype would still apply. */
  7501. char sqlite3_open();
  7502. int main() {
  7503. sqlite3_open()
  7504. ; return 0; }
  7505. EOF
  7506. if { (eval echo configure:9288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7507. rm -rf conftest*
  7508. eval "ac_cv_lib_$ac_lib_var=yes"
  7509. else
  7510. echo "configure: failed program was:" >&5
  7511. cat conftest.$ac_ext >&5
  7512. rm -rf conftest*
  7513. eval "ac_cv_lib_$ac_lib_var=no"
  7514. fi
  7515. rm -f conftest*
  7516. LIBS="$ac_save_LIBS"
  7517. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7518. echo "$ac_t""yes" 1>&6
  7519. SQLITELIB="$SQLITELIB -lsqlite3 $DLLIB"
  7520. else
  7521. echo "$ac_t""no" 1>&6
  7522. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  7523. echo "configure:9307: checking for sqlite3_open in -lsqlite3" >&5
  7524. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  7525. ac_save_LIBS="$LIBS"
  7526. LIBS="-lsqlite3 $MATHLIB $LIBS"
  7527. cat > conftest.$ac_ext <<EOF
  7528. #line 9313 "configure"
  7529. #include "confdefs.h"
  7530. /* Override any gcc2 internal prototype to avoid an error. */
  7531. /* We use char because int might match the return type of a gcc2
  7532. builtin and then its argument prototype would still apply. */
  7533. char sqlite3_open();
  7534. int main() {
  7535. sqlite3_open()
  7536. ; return 0; }
  7537. EOF
  7538. if { (eval echo configure:9324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7539. rm -rf conftest*
  7540. eval "ac_cv_lib_$ac_lib_var=yes"
  7541. else
  7542. echo "configure: failed program was:" >&5
  7543. cat conftest.$ac_ext >&5
  7544. rm -rf conftest*
  7545. eval "ac_cv_lib_$ac_lib_var=no"
  7546. fi
  7547. rm -f conftest*
  7548. LIBS="$ac_save_LIBS"
  7549. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7550. echo "$ac_t""yes" 1>&6
  7551. SQLITELIB="$SQLITELIB -lsqlite3 $MATHLIB"
  7552. else
  7553. echo "$ac_t""no" 1>&6
  7554. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  7555. echo "configure:9343: checking for sqlite3_open in -lsqlite3" >&5
  7556. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  7557. ac_save_LIBS="$LIBS"
  7558. LIBS="-lsqlite3 $MATHLIB $DLLIB $LIBS"
  7559. cat > conftest.$ac_ext <<EOF
  7560. #line 9349 "configure"
  7561. #include "confdefs.h"
  7562. /* Override any gcc2 internal prototype to avoid an error. */
  7563. /* We use char because int might match the return type of a gcc2
  7564. builtin and then its argument prototype would still apply. */
  7565. char sqlite3_open();
  7566. int main() {
  7567. sqlite3_open()
  7568. ; return 0; }
  7569. EOF
  7570. if { (eval echo configure:9360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7571. rm -rf conftest*
  7572. eval "ac_cv_lib_$ac_lib_var=yes"
  7573. else
  7574. echo "configure: failed program was:" >&5
  7575. cat conftest.$ac_ext >&5
  7576. rm -rf conftest*
  7577. eval "ac_cv_lib_$ac_lib_var=no"
  7578. fi
  7579. rm -f conftest*
  7580. LIBS="$ac_save_LIBS"
  7581. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7582. echo "$ac_t""yes" 1>&6
  7583. SQLITELIB="$SQLITELIB -lsqlite3 $MATHLIB $DLLIB"
  7584. else
  7585. echo "$ac_t""no" 1>&6
  7586. LDFLAGS=${ac_save_ldflags}
  7587. { echo "configure: error: *** Unable to locate SQLite library." 1>&2; exit 1; }
  7588. fi
  7589. fi
  7590. fi
  7591. fi
  7592. LDFLAGS=${ac_save_ldflags}
  7593. fi # $USE_SQLITE
  7594. # Done checking SQLite
  7595. # Enable OpenGL option
  7596. OPENGLINC=
  7597. OPENGLLIB=
  7598. OPENGLULIB=
  7599. USE_OPENGL=
  7600. OPENGL_X11=
  7601. OPENGL_AQUA=
  7602. OPENGL_WINDOWS=
  7603. echo $ac_n "checking whether to use OpenGL""... $ac_c" 1>&6
  7604. echo "configure:9435: checking whether to use OpenGL" >&5
  7605. echo "$ac_t"""$with_opengl"" 1>&6
  7606. case "$with_opengl" in
  7607. n|no)
  7608. OPENGL_TYPE=none
  7609. ;;
  7610. y|yes|x|x11|glx)
  7611. OPENGL_TYPE=X11
  7612. USE_OPENGL=1
  7613. OPENGL_X11=1
  7614. ;;
  7615. aqua|mac|osx|macosx|agl)
  7616. OPENGL_TYPE=Aqua
  7617. USE_OPENGL=1
  7618. OPENGL_AQUA=1
  7619. ;;
  7620. win|windows|mswin|wgl)
  7621. OPENGL_TYPE=Windows
  7622. USE_OPENGL=1
  7623. OPENGL_WINDOWS=1
  7624. ;;
  7625. *)
  7626. { echo "configure: error: *** Valid arguments for --with-opengl= are yes,no,x11,aqua,windows." 1>&2; exit 1; }
  7627. ;;
  7628. esac
  7629. if test -n "$USE_OPENGL" ; then
  7630. if test "$OPENGL_X11" = 1 ; then
  7631. # With OpenGL includes directory
  7632. echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
  7633. echo "configure:9469: checking for location of OpenGL includes" >&5
  7634. case "$with_opengl_includes" in
  7635. y | ye | yes | n | no)
  7636. { echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
  7637. ;;
  7638. esac
  7639. echo "$ac_t""$with_opengl_includes" 1>&6
  7640. if test -n "$with_opengl_includes" ; then
  7641. for dir in $with_opengl_includes; do
  7642. if test -d "$dir"; then
  7643. OPENGLINC="$OPENGLINC -I$dir"
  7644. else
  7645. { echo "configure: error: *** OpenGL includes directory $dir does not exist." 1>&2; exit 1; }
  7646. fi
  7647. done
  7648. fi
  7649. ac_save_cppflags="$CPPFLAGS"
  7650. CPPFLAGS="$OPENGLINC $X_CFLAGS $CPPFLAGS"
  7651. for ac_hdr in GL/gl.h GL/glu.h
  7652. do
  7653. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7654. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7655. echo "configure:9495: checking for $ac_hdr" >&5
  7656. cat > conftest.$ac_ext <<EOF
  7657. #line 9498 "configure"
  7658. #include "confdefs.h"
  7659. #include <$ac_hdr>
  7660. EOF
  7661. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7662. { (eval echo configure:9503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7663. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7664. if test -z "$ac_err"; then
  7665. rm -rf conftest*
  7666. eval "ac_cv_header_$ac_safe=yes"
  7667. else
  7668. echo "$ac_err" >&5
  7669. echo "configure: failed program was:" >&5
  7670. cat conftest.$ac_ext >&5
  7671. rm -rf conftest*
  7672. eval "ac_cv_header_$ac_safe=no"
  7673. fi
  7674. rm -f conftest*
  7675. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7676. echo "$ac_t""yes" 1>&6
  7677. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7678. cat >> confdefs.h <<EOF
  7679. #define $ac_tr_hdr 1
  7680. EOF
  7681. else
  7682. echo "$ac_t""no" 1>&6
  7683. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  7684. fi
  7685. done
  7686. CPPFLAGS=$ac_save_cppflags
  7687. # With OpenGL library directory
  7688. echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
  7689. echo "configure:9537: checking for location of OpenGL library" >&5
  7690. case "$with_opengl_libs" in
  7691. y | ye | yes | n | no)
  7692. { echo "configure: error: *** You must supply a directory to --with-opengl-libs." 1>&2; exit 1; }
  7693. ;;
  7694. esac
  7695. echo "$ac_t""$with_opengl_libs" 1>&6
  7696. if test -n "$with_opengl_libs"; then
  7697. for dir in $with_opengl_libs; do
  7698. if test -d "$dir"; then
  7699. OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
  7700. else
  7701. { echo "configure: error: *** OpenGL library directory $dir does not exist." 1>&2; exit 1; }
  7702. fi
  7703. done
  7704. fi
  7705. ac_save_ldflags="$LDFLAGS"
  7706. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7707. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7708. echo "configure:9566: checking for glBegin in -lGL" >&5
  7709. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7710. ac_save_LIBS="$LIBS"
  7711. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
  7712. cat > conftest.$ac_ext <<EOF
  7713. #line 9572 "configure"
  7714. #include "confdefs.h"
  7715. /* Override any gcc2 internal prototype to avoid an error. */
  7716. /* We use char because int might match the return type of a gcc2
  7717. builtin and then its argument prototype would still apply. */
  7718. char glBegin();
  7719. int main() {
  7720. glBegin()
  7721. ; return 0; }
  7722. EOF
  7723. if { (eval echo configure:9583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7724. rm -rf conftest*
  7725. eval "ac_cv_lib_$ac_lib_var=yes"
  7726. else
  7727. echo "configure: failed program was:" >&5
  7728. cat conftest.$ac_ext >&5
  7729. rm -rf conftest*
  7730. eval "ac_cv_lib_$ac_lib_var=no"
  7731. fi
  7732. rm -f conftest*
  7733. LIBS="$ac_save_LIBS"
  7734. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7735. echo "$ac_t""yes" 1>&6
  7736. OPENGLLIB="$OPENGLLIB -lGL "
  7737. else
  7738. echo "$ac_t""no" 1>&6
  7739. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7740. echo "configure:9602: checking for glBegin in -lGL" >&5
  7741. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7742. ac_save_LIBS="$LIBS"
  7743. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lXext $LIBS"
  7744. cat > conftest.$ac_ext <<EOF
  7745. #line 9608 "configure"
  7746. #include "confdefs.h"
  7747. /* Override any gcc2 internal prototype to avoid an error. */
  7748. /* We use char because int might match the return type of a gcc2
  7749. builtin and then its argument prototype would still apply. */
  7750. char glBegin();
  7751. int main() {
  7752. glBegin()
  7753. ; return 0; }
  7754. EOF
  7755. if { (eval echo configure:9619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7756. rm -rf conftest*
  7757. eval "ac_cv_lib_$ac_lib_var=yes"
  7758. else
  7759. echo "configure: failed program was:" >&5
  7760. cat conftest.$ac_ext >&5
  7761. rm -rf conftest*
  7762. eval "ac_cv_lib_$ac_lib_var=no"
  7763. fi
  7764. rm -f conftest*
  7765. LIBS="$ac_save_LIBS"
  7766. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7767. echo "$ac_t""yes" 1>&6
  7768. OPENGLLIB="$OPENGLLIB -lGL -lXext"
  7769. else
  7770. echo "$ac_t""no" 1>&6
  7771. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7772. echo "configure:9638: checking for glBegin in -lGL" >&5
  7773. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7774. ac_save_LIBS="$LIBS"
  7775. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread $LIBS"
  7776. cat > conftest.$ac_ext <<EOF
  7777. #line 9644 "configure"
  7778. #include "confdefs.h"
  7779. /* Override any gcc2 internal prototype to avoid an error. */
  7780. /* We use char because int might match the return type of a gcc2
  7781. builtin and then its argument prototype would still apply. */
  7782. char glBegin();
  7783. int main() {
  7784. glBegin()
  7785. ; return 0; }
  7786. EOF
  7787. if { (eval echo configure:9655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7788. rm -rf conftest*
  7789. eval "ac_cv_lib_$ac_lib_var=yes"
  7790. else
  7791. echo "configure: failed program was:" >&5
  7792. cat conftest.$ac_ext >&5
  7793. rm -rf conftest*
  7794. eval "ac_cv_lib_$ac_lib_var=no"
  7795. fi
  7796. rm -f conftest*
  7797. LIBS="$ac_save_LIBS"
  7798. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7799. echo "$ac_t""yes" 1>&6
  7800. OPENGLLIB="$OPENGLLIB -lGL -lpthread"
  7801. else
  7802. echo "$ac_t""no" 1>&6
  7803. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7804. echo "configure:9674: checking for glBegin in -lGL" >&5
  7805. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7806. ac_save_LIBS="$LIBS"
  7807. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread -lXext $LIBS"
  7808. cat > conftest.$ac_ext <<EOF
  7809. #line 9680 "configure"
  7810. #include "confdefs.h"
  7811. /* Override any gcc2 internal prototype to avoid an error. */
  7812. /* We use char because int might match the return type of a gcc2
  7813. builtin and then its argument prototype would still apply. */
  7814. char glBegin();
  7815. int main() {
  7816. glBegin()
  7817. ; return 0; }
  7818. EOF
  7819. if { (eval echo configure:9691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7820. rm -rf conftest*
  7821. eval "ac_cv_lib_$ac_lib_var=yes"
  7822. else
  7823. echo "configure: failed program was:" >&5
  7824. cat conftest.$ac_ext >&5
  7825. rm -rf conftest*
  7826. eval "ac_cv_lib_$ac_lib_var=no"
  7827. fi
  7828. rm -f conftest*
  7829. LIBS="$ac_save_LIBS"
  7830. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7831. echo "$ac_t""yes" 1>&6
  7832. OPENGLLIB="$OPENGLLIB -lGL -lpthread -lXext"
  7833. else
  7834. echo "$ac_t""no" 1>&6
  7835. LDFLAGS=${ac_save_ldflags}
  7836. { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
  7837. fi
  7838. fi
  7839. fi
  7840. fi
  7841. LDFLAGS=${ac_save_ldflags}
  7842. ac_save_ldflags="$LDFLAGS"
  7843. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7844. echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
  7845. echo "configure:9753: checking for gluBeginCurve in -lGLU" >&5
  7846. ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
  7847. ac_save_LIBS="$LIBS"
  7848. LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
  7849. cat > conftest.$ac_ext <<EOF
  7850. #line 9759 "configure"
  7851. #include "confdefs.h"
  7852. /* Override any gcc2 internal prototype to avoid an error. */
  7853. /* We use char because int might match the return type of a gcc2
  7854. builtin and then its argument prototype would still apply. */
  7855. char gluBeginCurve();
  7856. int main() {
  7857. gluBeginCurve()
  7858. ; return 0; }
  7859. EOF
  7860. if { (eval echo configure:9770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7861. rm -rf conftest*
  7862. eval "ac_cv_lib_$ac_lib_var=yes"
  7863. else
  7864. echo "configure: failed program was:" >&5
  7865. cat conftest.$ac_ext >&5
  7866. rm -rf conftest*
  7867. eval "ac_cv_lib_$ac_lib_var=no"
  7868. fi
  7869. rm -f conftest*
  7870. LIBS="$ac_save_LIBS"
  7871. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7872. echo "$ac_t""yes" 1>&6
  7873. OPENGLULIB="$OPENGLULIB -lGLU "
  7874. else
  7875. echo "$ac_t""no" 1>&6
  7876. echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
  7877. echo "configure:9789: checking for gluBeginCurve in -lGLU" >&5
  7878. ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
  7879. ac_save_LIBS="$LIBS"
  7880. LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lstdc++ $LIBS"
  7881. cat > conftest.$ac_ext <<EOF
  7882. #line 9795 "configure"
  7883. #include "confdefs.h"
  7884. /* Override any gcc2 internal prototype to avoid an error. */
  7885. /* We use char because int might match the return type of a gcc2
  7886. builtin and then its argument prototype would still apply. */
  7887. char gluBeginCurve();
  7888. int main() {
  7889. gluBeginCurve()
  7890. ; return 0; }
  7891. EOF
  7892. if { (eval echo configure:9806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7893. rm -rf conftest*
  7894. eval "ac_cv_lib_$ac_lib_var=yes"
  7895. else
  7896. echo "configure: failed program was:" >&5
  7897. cat conftest.$ac_ext >&5
  7898. rm -rf conftest*
  7899. eval "ac_cv_lib_$ac_lib_var=no"
  7900. fi
  7901. rm -f conftest*
  7902. LIBS="$ac_save_LIBS"
  7903. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7904. echo "$ac_t""yes" 1>&6
  7905. OPENGLULIB="$OPENGLULIB -lGLU -lstdc++"
  7906. else
  7907. echo "$ac_t""no" 1>&6
  7908. LDFLAGS=${ac_save_ldflags}
  7909. { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
  7910. fi
  7911. fi
  7912. LDFLAGS=${ac_save_ldflags}
  7913. OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
  7914. OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
  7915. ac_save_libs="$LIBS"
  7916. ac_save_ldflags="$LDFLAGS"
  7917. LIBS=" $OPENGLLIB $LIBS"
  7918. LDFLAGS=" $LDFLAGS"
  7919. echo $ac_n "checking for glXCreatePbuffer""... $ac_c" 1>&6
  7920. echo "configure:9853: checking for glXCreatePbuffer" >&5
  7921. cat > conftest.$ac_ext <<EOF
  7922. #line 9856 "configure"
  7923. #include "confdefs.h"
  7924. /* System header to define __stub macros and hopefully few prototypes,
  7925. which can conflict with char glXCreatePbuffer(); below. */
  7926. #include <assert.h>
  7927. /* Override any gcc2 internal prototype to avoid an error. */
  7928. /* We use char because int might match the return type of a gcc2
  7929. builtin and then its argument prototype would still apply. */
  7930. char glXCreatePbuffer();
  7931. int main() {
  7932. /* The GNU C library defines this for functions which it implements
  7933. to always fail with ENOSYS. Some functions are actually named
  7934. something starting with __ and the normal name is an alias. */
  7935. #if defined (__stub_glXCreatePbuffer) || defined (__stub___glXCreatePbuffer)
  7936. choke me
  7937. #else
  7938. glXCreatePbuffer();
  7939. #endif
  7940. ; return 0; }
  7941. EOF
  7942. if { (eval echo configure:9879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7943. rm -rf conftest*
  7944. eval "ac_cv_func_glXCreatePbuffer=yes"
  7945. else
  7946. echo "configure: failed program was:" >&5
  7947. cat conftest.$ac_ext >&5
  7948. rm -rf conftest*
  7949. eval "ac_cv_func_glXCreatePbuffer=no"
  7950. fi
  7951. rm -f conftest*
  7952. if eval "test \"`echo '$ac_cv_func_'glXCreatePbuffer`\" = yes"; then
  7953. echo "$ac_t""yes" 1>&6
  7954. cat >> confdefs.h <<\EOF
  7955. #define HAVE_PBUFFERS 1
  7956. EOF
  7957. else
  7958. echo "$ac_t""no" 1>&6
  7959. { echo "configure: error: *** Unable to locate glXCreatePbuffer." 1>&2; exit 1; }
  7960. fi
  7961. LIBS=${ac_save_libs}
  7962. LDFLAGS=${ac_save_ldflags}
  7963. ac_save_libs="$LIBS"
  7964. ac_save_ldflags="$LDFLAGS"
  7965. LIBS=" $OPENGLLIB $LIBS"
  7966. LDFLAGS=" $LDFLAGS"
  7967. echo $ac_n "checking for glXCreateGLXPixmap""... $ac_c" 1>&6
  7968. echo "configure:9916: checking for glXCreateGLXPixmap" >&5
  7969. cat > conftest.$ac_ext <<EOF
  7970. #line 9919 "configure"
  7971. #include "confdefs.h"
  7972. /* System header to define __stub macros and hopefully few prototypes,
  7973. which can conflict with char glXCreateGLXPixmap(); below. */
  7974. #include <assert.h>
  7975. /* Override any gcc2 internal prototype to avoid an error. */
  7976. /* We use char because int might match the return type of a gcc2
  7977. builtin and then its argument prototype would still apply. */
  7978. char glXCreateGLXPixmap();
  7979. int main() {
  7980. /* The GNU C library defines this for functions which it implements
  7981. to always fail with ENOSYS. Some functions are actually named
  7982. something starting with __ and the normal name is an alias. */
  7983. #if defined (__stub_glXCreateGLXPixmap) || defined (__stub___glXCreateGLXPixmap)
  7984. choke me
  7985. #else
  7986. glXCreateGLXPixmap();
  7987. #endif
  7988. ; return 0; }
  7989. EOF
  7990. if { (eval echo configure:9942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7991. rm -rf conftest*
  7992. eval "ac_cv_func_glXCreateGLXPixmap=yes"
  7993. else
  7994. echo "configure: failed program was:" >&5
  7995. cat conftest.$ac_ext >&5
  7996. rm -rf conftest*
  7997. eval "ac_cv_func_glXCreateGLXPixmap=no"
  7998. fi
  7999. rm -f conftest*
  8000. if eval "test \"`echo '$ac_cv_func_'glXCreateGLXPixmap`\" = yes"; then
  8001. echo "$ac_t""yes" 1>&6
  8002. cat >> confdefs.h <<\EOF
  8003. #define HAVE_PIXMAPS 1
  8004. EOF
  8005. else
  8006. echo "$ac_t""no" 1>&6
  8007. { echo "configure: error: *** Unable to locate glXCreateGLXPixmap." 1>&2; exit 1; }
  8008. fi
  8009. LIBS=${ac_save_libs}
  8010. LDFLAGS=${ac_save_ldflags}
  8011. cat >> confdefs.h <<\EOF
  8012. #define OPENGL_X11 1
  8013. EOF
  8014. fi # $OPENGL_X11
  8015. if test "$OPENGL_AQUA" = 1 ; then
  8016. echo $ac_n "checking for location of OpenGL framework""... $ac_c" 1>&6
  8017. echo "configure:9985: checking for location of OpenGL framework" >&5
  8018. case "$with_opengl_framework" in
  8019. y | ye | yes | n | no)
  8020. { echo "configure: error: *** You must supply a directory to --with-opengl-framework." 1>&2; exit 1; }
  8021. ;;
  8022. esac
  8023. echo "$ac_t""$with_opengl_framework" 1>&6
  8024. if test -n "$with_opengl_framework"; then
  8025. if test -d $with_opengl_framework; then
  8026. OPENGLPATH="$OPENGLPATH -F$with_opengl_framework"
  8027. else
  8028. { echo "configure: error: *** OpenGL framework directory $dir does not exist." 1>&2; exit 1; }
  8029. fi
  8030. fi
  8031. ac_save_cppflags="$CPPFLAGS"
  8032. CPPFLAGS="$OPENGLPATH $CPPFLAGS"
  8033. for ac_hdr in OpenGL/gl.h OpenGL/glu.h
  8034. do
  8035. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8036. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8037. echo "configure:10009: checking for $ac_hdr" >&5
  8038. cat > conftest.$ac_ext <<EOF
  8039. #line 10012 "configure"
  8040. #include "confdefs.h"
  8041. #include <$ac_hdr>
  8042. EOF
  8043. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8044. { (eval echo configure:10017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8045. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8046. if test -z "$ac_err"; then
  8047. rm -rf conftest*
  8048. eval "ac_cv_header_$ac_safe=yes"
  8049. else
  8050. echo "$ac_err" >&5
  8051. echo "configure: failed program was:" >&5
  8052. cat conftest.$ac_ext >&5
  8053. rm -rf conftest*
  8054. eval "ac_cv_header_$ac_safe=no"
  8055. fi
  8056. rm -f conftest*
  8057. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8058. echo "$ac_t""yes" 1>&6
  8059. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8060. cat >> confdefs.h <<EOF
  8061. #define $ac_tr_hdr 1
  8062. EOF
  8063. else
  8064. echo "$ac_t""no" 1>&6
  8065. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  8066. fi
  8067. done
  8068. CPPFLAGS=$ac_save_cppflags
  8069. ac_save_libs="$LIBS"
  8070. ac_save_ldflags="$LDFLAGS"
  8071. LIBS="-framework OpenGL -framework AGL -framework ApplicationServices $LIBS"
  8072. LDFLAGS="$OPENGLPATH $LDFLAGS"
  8073. echo $ac_n "checking for glBegin""... $ac_c" 1>&6
  8074. echo "configure:10053: checking for glBegin" >&5
  8075. cat > conftest.$ac_ext <<EOF
  8076. #line 10056 "configure"
  8077. #include "confdefs.h"
  8078. /* System header to define __stub macros and hopefully few prototypes,
  8079. which can conflict with char glBegin(); below. */
  8080. #include <assert.h>
  8081. /* Override any gcc2 internal prototype to avoid an error. */
  8082. /* We use char because int might match the return type of a gcc2
  8083. builtin and then its argument prototype would still apply. */
  8084. char glBegin();
  8085. int main() {
  8086. /* The GNU C library defines this for functions which it implements
  8087. to always fail with ENOSYS. Some functions are actually named
  8088. something starting with __ and the normal name is an alias. */
  8089. #if defined (__stub_glBegin) || defined (__stub___glBegin)
  8090. choke me
  8091. #else
  8092. glBegin();
  8093. #endif
  8094. ; return 0; }
  8095. EOF
  8096. if { (eval echo configure:10079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8097. rm -rf conftest*
  8098. eval "ac_cv_func_glBegin=yes"
  8099. else
  8100. echo "configure: failed program was:" >&5
  8101. cat conftest.$ac_ext >&5
  8102. rm -rf conftest*
  8103. eval "ac_cv_func_glBegin=no"
  8104. fi
  8105. rm -f conftest*
  8106. if eval "test \"`echo '$ac_cv_func_'glBegin`\" = yes"; then
  8107. echo "$ac_t""yes" 1>&6
  8108. OPENGLLIB="$OPENGLLIB -framework OpenGL -framework AGL -framework ApplicationServices"
  8109. else
  8110. echo "$ac_t""no" 1>&6
  8111. { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
  8112. fi
  8113. LIBS=${ac_save_libs}
  8114. LDFLAGS=${ac_save_ldflags}
  8115. ac_save_libs="$LIBS"
  8116. ac_save_ldflags="$LDFLAGS"
  8117. LIBS=" $OPENGLLIB $LIBS"
  8118. LDFLAGS="$OPENGLPATH $LDFLAGS"
  8119. echo $ac_n "checking for gluBeginCurve""... $ac_c" 1>&6
  8120. echo "configure:10116: checking for gluBeginCurve" >&5
  8121. cat > conftest.$ac_ext <<EOF
  8122. #line 10119 "configure"
  8123. #include "confdefs.h"
  8124. /* System header to define __stub macros and hopefully few prototypes,
  8125. which can conflict with char gluBeginCurve(); below. */
  8126. #include <assert.h>
  8127. /* Override any gcc2 internal prototype to avoid an error. */
  8128. /* We use char because int might match the return type of a gcc2
  8129. builtin and then its argument prototype would still apply. */
  8130. char gluBeginCurve();
  8131. int main() {
  8132. /* The GNU C library defines this for functions which it implements
  8133. to always fail with ENOSYS. Some functions are actually named
  8134. something starting with __ and the normal name is an alias. */
  8135. #if defined (__stub_gluBeginCurve) || defined (__stub___gluBeginCurve)
  8136. choke me
  8137. #else
  8138. gluBeginCurve();
  8139. #endif
  8140. ; return 0; }
  8141. EOF
  8142. if { (eval echo configure:10142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8143. rm -rf conftest*
  8144. eval "ac_cv_func_gluBeginCurve=yes"
  8145. else
  8146. echo "configure: failed program was:" >&5
  8147. cat conftest.$ac_ext >&5
  8148. rm -rf conftest*
  8149. eval "ac_cv_func_gluBeginCurve=no"
  8150. fi
  8151. rm -f conftest*
  8152. if eval "test \"`echo '$ac_cv_func_'gluBeginCurve`\" = yes"; then
  8153. echo "$ac_t""yes" 1>&6
  8154. OPENGLLIB="$OPENGLLIB "
  8155. else
  8156. echo "$ac_t""no" 1>&6
  8157. { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
  8158. fi
  8159. LIBS=${ac_save_libs}
  8160. LDFLAGS=${ac_save_ldflags}
  8161. OPENGLINC="$OPENGLPATH"
  8162. OPENGLLIBPATH="$OPENGLPATH"
  8163. cat >> confdefs.h <<\EOF
  8164. #define OPENGL_AQUA 1
  8165. EOF
  8166. fi # $OPENGL_AQUA
  8167. if test "$OPENGL_WINDOWS" = 1 ; then
  8168. # With OpenGL includes directory
  8169. echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
  8170. echo "configure:10190: checking for location of OpenGL includes" >&5
  8171. case "$with_opengl_includes" in
  8172. y | ye | yes | n | no)
  8173. { echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
  8174. ;;
  8175. esac
  8176. echo "$ac_t""$with_opengl_includes" 1>&6
  8177. if test -n "$with_opengl_includes" ; then
  8178. for dir in $with_opengl_includes; do
  8179. if test -d "$dir"; then
  8180. OPENGLINC="$OPENGLINC -I$dir"
  8181. else
  8182. { echo "configure: error: *** OpenGL includes directory $dir does not exist." 1>&2; exit 1; }
  8183. fi
  8184. done
  8185. fi
  8186. ac_save_cppflags="$CPPFLAGS"
  8187. CPPFLAGS="$OPENGLINC $CPPFLAGS"
  8188. for ac_hdr in GL/gl.h GL/glu.h
  8189. do
  8190. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8191. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8192. echo "configure:10216: checking for $ac_hdr" >&5
  8193. cat > conftest.$ac_ext <<EOF
  8194. #line 10219 "configure"
  8195. #include "confdefs.h"
  8196. #include <$ac_hdr>
  8197. EOF
  8198. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8199. { (eval echo configure:10224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8200. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8201. if test -z "$ac_err"; then
  8202. rm -rf conftest*
  8203. eval "ac_cv_header_$ac_safe=yes"
  8204. else
  8205. echo "$ac_err" >&5
  8206. echo "configure: failed program was:" >&5
  8207. cat conftest.$ac_ext >&5
  8208. rm -rf conftest*
  8209. eval "ac_cv_header_$ac_safe=no"
  8210. fi
  8211. rm -f conftest*
  8212. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8213. echo "$ac_t""yes" 1>&6
  8214. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8215. cat >> confdefs.h <<EOF
  8216. #define $ac_tr_hdr 1
  8217. EOF
  8218. else
  8219. echo "$ac_t""no" 1>&6
  8220. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  8221. fi
  8222. done
  8223. CPPFLAGS=$ac_save_cppflags
  8224. # With OpenGL library directory
  8225. echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
  8226. echo "configure:10258: checking for location of OpenGL library" >&5
  8227. case "$with_opengl_libs" in
  8228. y | ye | yes | n | no)
  8229. { echo "configure: error: *** You must supply a directory to --with-opengl-libs." 1>&2; exit 1; }
  8230. ;;
  8231. esac
  8232. echo "$ac_t""$with_opengl_libs" 1>&6
  8233. if test -n "$with_opengl_libs"; then
  8234. for dir in $with_opengl_libs; do
  8235. if test -d "$dir"; then
  8236. OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
  8237. else
  8238. { echo "configure: error: *** OpenGL library directory $dir does not exist." 1>&2; exit 1; }
  8239. fi
  8240. done
  8241. fi
  8242. ac_save_cflags="$CFLAGS"
  8243. CFLAGS="$CFLAGS $OPENGLINC"
  8244. ac_save_ldflags="$LDFLAGS"
  8245. ac_save_libs="$LIBS"
  8246. echo $ac_n "checking for OpenGL library""... $ac_c" 1>&6
  8247. echo "configure:10283: checking for OpenGL library" >&5
  8248. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  8249. LIBS="-lopengl32 "
  8250. cat > conftest.$ac_ext <<EOF
  8251. #line 10287 "configure"
  8252. #include "confdefs.h"
  8253. #include <GL/gl.h>
  8254. int main() {
  8255. glEnd();
  8256. ; return 0; }
  8257. EOF
  8258. if { (eval echo configure:10294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8259. rm -rf conftest*
  8260. echo "$ac_t""found" 1>&6
  8261. OPENGLLIB="$OPENGLLIB -lopengl32 "
  8262. else
  8263. echo "configure: failed program was:" >&5
  8264. cat conftest.$ac_ext >&5
  8265. rm -rf conftest*
  8266. { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
  8267. fi
  8268. rm -f conftest*
  8269. LIBS=${ac_save_libs}
  8270. LDFLAGS=${ac_save_ldflags}
  8271. ac_save_ldflags="$LDFLAGS"
  8272. ac_save_libs="$LIBS"
  8273. echo $ac_n "checking for GLU library""... $ac_c" 1>&6
  8274. echo "configure:10318: checking for GLU library" >&5
  8275. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  8276. LIBS="-lglu32 $OPENGLLIB "
  8277. cat > conftest.$ac_ext <<EOF
  8278. #line 10322 "configure"
  8279. #include "confdefs.h"
  8280. #include <GL/glu.h>
  8281. int main() {
  8282. gluNewQuadric();
  8283. ; return 0; }
  8284. EOF
  8285. if { (eval echo configure:10329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8286. rm -rf conftest*
  8287. echo "$ac_t""found" 1>&6
  8288. OPENGLULIB="$OPENGLULIB -lglu32 "
  8289. else
  8290. echo "configure: failed program was:" >&5
  8291. cat conftest.$ac_ext >&5
  8292. rm -rf conftest*
  8293. { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
  8294. fi
  8295. rm -f conftest*
  8296. LIBS=${ac_save_libs}
  8297. LDFLAGS=${ac_save_ldflags}
  8298. CFLAGS="${ac_save_cflags}"
  8299. OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
  8300. OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
  8301. cat >> confdefs.h <<\EOF
  8302. #define OPENGL_WINDOWS 1
  8303. EOF
  8304. fi # $OPENGL_WINDOWS
  8305. fi # $USE_OPENGL
  8306. # Done checking OpenGL
  8307. # Enable ODBC option
  8308. echo $ac_n "checking whether to use ODBC""... $ac_c" 1>&6
  8309. echo "configure:10378: checking whether to use ODBC" >&5
  8310. echo "$ac_t"""$with_odbc"" 1>&6
  8311. case "$with_odbc" in
  8312. "no") USE_ODBC= ;;
  8313. "yes") USE_ODBC="1" ;;
  8314. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8315. esac
  8316. ODBCINC=
  8317. ODBCLIB=
  8318. if test -n "$USE_ODBC"; then
  8319. # With ODBC includes directory
  8320. echo $ac_n "checking for location of ODBC includes""... $ac_c" 1>&6
  8321. echo "configure:10397: checking for location of ODBC includes" >&5
  8322. case "$with_odbc_includes" in
  8323. y | ye | yes | n | no)
  8324. { echo "configure: error: *** You must supply a directory to --with-odbc-includes." 1>&2; exit 1; }
  8325. ;;
  8326. esac
  8327. echo "$ac_t""$with_odbc_includes" 1>&6
  8328. if test -n "$with_odbc_includes" ; then
  8329. for dir in $with_odbc_includes; do
  8330. if test -d "$dir"; then
  8331. ODBCINC="$ODBCINC -I$dir"
  8332. else
  8333. { echo "configure: error: *** ODBC includes directory $dir does not exist." 1>&2; exit 1; }
  8334. fi
  8335. done
  8336. fi
  8337. ac_save_cppflags="$CPPFLAGS"
  8338. CPPFLAGS="$ODBCINC $CPPFLAGS"
  8339. for ac_hdr in sql.h
  8340. do
  8341. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8342. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8343. echo "configure:10423: checking for $ac_hdr" >&5
  8344. cat > conftest.$ac_ext <<EOF
  8345. #line 10426 "configure"
  8346. #include "confdefs.h"
  8347. #include <$ac_hdr>
  8348. EOF
  8349. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8350. { (eval echo configure:10431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8351. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8352. if test -z "$ac_err"; then
  8353. rm -rf conftest*
  8354. eval "ac_cv_header_$ac_safe=yes"
  8355. else
  8356. echo "$ac_err" >&5
  8357. echo "configure: failed program was:" >&5
  8358. cat conftest.$ac_ext >&5
  8359. rm -rf conftest*
  8360. eval "ac_cv_header_$ac_safe=no"
  8361. fi
  8362. rm -f conftest*
  8363. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8364. echo "$ac_t""yes" 1>&6
  8365. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8366. cat >> confdefs.h <<EOF
  8367. #define $ac_tr_hdr 1
  8368. EOF
  8369. else
  8370. echo "$ac_t""no" 1>&6
  8371. { echo "configure: error: *** Unable to locate ODBC includes." 1>&2; exit 1; }
  8372. fi
  8373. done
  8374. CPPFLAGS=$ac_save_cppflags
  8375. # With ODBC library directory
  8376. echo $ac_n "checking for location of ODBC library""... $ac_c" 1>&6
  8377. echo "configure:10465: checking for location of ODBC library" >&5
  8378. case "$with_odbc_libs" in
  8379. y | ye | yes | n | no)
  8380. { echo "configure: error: *** You must supply a directory to --with-odbc-libs." 1>&2; exit 1; }
  8381. ;;
  8382. esac
  8383. echo "$ac_t""$with_odbc_libs" 1>&6
  8384. if test -n "$with_odbc_libs"; then
  8385. for dir in $with_odbc_libs; do
  8386. if test -d "$dir"; then
  8387. ODBCLIB="$ODBCLIB -L$dir"
  8388. else
  8389. { echo "configure: error: *** ODBC library directory $dir does not exist." 1>&2; exit 1; }
  8390. fi
  8391. done
  8392. fi
  8393. ac_save_ldflags="$LDFLAGS"
  8394. LDFLAGS="$ODBCLIB $LDFLAGS"
  8395. echo $ac_n "checking for SQLConnect in -lodbc""... $ac_c" 1>&6
  8396. echo "configure:10490: checking for SQLConnect in -lodbc" >&5
  8397. ac_lib_var=`echo odbc'_'SQLConnect | sed 'y%./+-%__p_%'`
  8398. ac_save_LIBS="$LIBS"
  8399. LIBS="-lodbc $ICONVLIB $LIBS"
  8400. cat > conftest.$ac_ext <<EOF
  8401. #line 10496 "configure"
  8402. #include "confdefs.h"
  8403. /* Override any gcc2 internal prototype to avoid an error. */
  8404. /* We use char because int might match the return type of a gcc2
  8405. builtin and then its argument prototype would still apply. */
  8406. char SQLConnect();
  8407. int main() {
  8408. SQLConnect()
  8409. ; return 0; }
  8410. EOF
  8411. if { (eval echo configure:10507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8412. rm -rf conftest*
  8413. eval "ac_cv_lib_$ac_lib_var=yes"
  8414. else
  8415. echo "configure: failed program was:" >&5
  8416. cat conftest.$ac_ext >&5
  8417. rm -rf conftest*
  8418. eval "ac_cv_lib_$ac_lib_var=no"
  8419. fi
  8420. rm -f conftest*
  8421. LIBS="$ac_save_LIBS"
  8422. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8423. echo "$ac_t""yes" 1>&6
  8424. ODBCLIB="$ODBCLIB -lodbc "
  8425. else
  8426. echo "$ac_t""no" 1>&6
  8427. LDFLAGS=${ac_save_ldflags}
  8428. ac_save_ldflags="$LDFLAGS"
  8429. LDFLAGS="$ODBCLIB $LDFLAGS"
  8430. echo $ac_n "checking for SQLConnect in -liodbc""... $ac_c" 1>&6
  8431. echo "configure:10532: checking for SQLConnect in -liodbc" >&5
  8432. ac_lib_var=`echo iodbc'_'SQLConnect | sed 'y%./+-%__p_%'`
  8433. ac_save_LIBS="$LIBS"
  8434. LIBS="-liodbc $LIBS"
  8435. cat > conftest.$ac_ext <<EOF
  8436. #line 10538 "configure"
  8437. #include "confdefs.h"
  8438. /* Override any gcc2 internal prototype to avoid an error. */
  8439. /* We use char because int might match the return type of a gcc2
  8440. builtin and then its argument prototype would still apply. */
  8441. char SQLConnect();
  8442. int main() {
  8443. SQLConnect()
  8444. ; return 0; }
  8445. EOF
  8446. if { (eval echo configure:10549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8447. rm -rf conftest*
  8448. eval "ac_cv_lib_$ac_lib_var=yes"
  8449. else
  8450. echo "configure: failed program was:" >&5
  8451. cat conftest.$ac_ext >&5
  8452. rm -rf conftest*
  8453. eval "ac_cv_lib_$ac_lib_var=no"
  8454. fi
  8455. rm -f conftest*
  8456. LIBS="$ac_save_LIBS"
  8457. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8458. echo "$ac_t""yes" 1>&6
  8459. ODBCLIB="$ODBCLIB -liodbc "
  8460. else
  8461. echo "$ac_t""no" 1>&6
  8462. LDFLAGS=${ac_save_ldflags}
  8463. ac_save_cflags="$CFLAGS"
  8464. CFLAGS="$CFLAGS $ODBCINC"
  8465. ac_save_ldflags="$LDFLAGS"
  8466. ac_save_libs="$LIBS"
  8467. echo $ac_n "checking for ODBC library""... $ac_c" 1>&6
  8468. echo "configure:10574: checking for ODBC library" >&5
  8469. LDFLAGS="$ODBCLIB $LDFLAGS"
  8470. LIBS="-lodbc32 "
  8471. cat > conftest.$ac_ext <<EOF
  8472. #line 10578 "configure"
  8473. #include "confdefs.h"
  8474. #include <windows.h>
  8475. #include <sql.h>
  8476. int main() {
  8477. SQLAllocEnv((SQLHENV *)0);
  8478. ; return 0; }
  8479. EOF
  8480. if { (eval echo configure:10586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8481. rm -rf conftest*
  8482. echo "$ac_t""found" 1>&6
  8483. ODBCLIB="$ODBCLIB -lodbc32 "
  8484. else
  8485. echo "configure: failed program was:" >&5
  8486. cat conftest.$ac_ext >&5
  8487. rm -rf conftest*
  8488. { echo "configure: error: *** Unable to locate ODBC library." 1>&2; exit 1; }
  8489. fi
  8490. rm -f conftest*
  8491. LIBS=${ac_save_libs}
  8492. LDFLAGS=${ac_save_ldflags}
  8493. CFLAGS="${ac_save_cflags}"
  8494. fi
  8495. LDFLAGS=${ac_save_ldflags}
  8496. fi
  8497. LDFLAGS=${ac_save_ldflags}
  8498. fi # $USE_ODBC
  8499. # Done checking ODBC
  8500. # Enable FFTW option
  8501. echo $ac_n "checking whether to use FFTW""... $ac_c" 1>&6
  8502. echo "configure:10635: checking whether to use FFTW" >&5
  8503. echo "$ac_t"""$with_fftw"" 1>&6
  8504. case "$with_fftw" in
  8505. "no") USE_FFTW= ;;
  8506. "yes") USE_FFTW="1" ;;
  8507. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8508. esac
  8509. FFTWINC=
  8510. FFTWLIB=
  8511. if test -n "$USE_FFTW"; then
  8512. # With FFTW includes directory
  8513. echo $ac_n "checking for location of FFTW includes""... $ac_c" 1>&6
  8514. echo "configure:10654: checking for location of FFTW includes" >&5
  8515. case "$with_fftw_includes" in
  8516. y | ye | yes | n | no)
  8517. { echo "configure: error: *** You must supply a directory to --with-fftw-includes." 1>&2; exit 1; }
  8518. ;;
  8519. esac
  8520. echo "$ac_t""$with_fftw_includes" 1>&6
  8521. if test -n "$with_fftw_includes" ; then
  8522. for dir in $with_fftw_includes; do
  8523. if test -d "$dir"; then
  8524. FFTWINC="$FFTWINC -I$dir"
  8525. else
  8526. { echo "configure: error: *** FFTW includes directory $dir does not exist." 1>&2; exit 1; }
  8527. fi
  8528. done
  8529. fi
  8530. ac_save_cppflags="$CPPFLAGS"
  8531. CPPFLAGS="$FFTWINC $CPPFLAGS"
  8532. for ac_hdr in fftw3.h
  8533. do
  8534. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8535. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8536. echo "configure:10680: checking for $ac_hdr" >&5
  8537. cat > conftest.$ac_ext <<EOF
  8538. #line 10683 "configure"
  8539. #include "confdefs.h"
  8540. #include <$ac_hdr>
  8541. EOF
  8542. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8543. { (eval echo configure:10688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8544. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8545. if test -z "$ac_err"; then
  8546. rm -rf conftest*
  8547. eval "ac_cv_header_$ac_safe=yes"
  8548. else
  8549. echo "$ac_err" >&5
  8550. echo "configure: failed program was:" >&5
  8551. cat conftest.$ac_ext >&5
  8552. rm -rf conftest*
  8553. eval "ac_cv_header_$ac_safe=no"
  8554. fi
  8555. rm -f conftest*
  8556. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8557. echo "$ac_t""yes" 1>&6
  8558. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8559. cat >> confdefs.h <<EOF
  8560. #define $ac_tr_hdr 1
  8561. EOF
  8562. else
  8563. echo "$ac_t""no" 1>&6
  8564. ac_save_cppflags="$CPPFLAGS"
  8565. CPPFLAGS=" $CPPFLAGS"
  8566. for ac_hdr in fftw.h
  8567. do
  8568. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8569. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8570. echo "configure:10716: checking for $ac_hdr" >&5
  8571. cat > conftest.$ac_ext <<EOF
  8572. #line 10719 "configure"
  8573. #include "confdefs.h"
  8574. #include <$ac_hdr>
  8575. EOF
  8576. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8577. { (eval echo configure:10724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8578. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8579. if test -z "$ac_err"; then
  8580. rm -rf conftest*
  8581. eval "ac_cv_header_$ac_safe=yes"
  8582. else
  8583. echo "$ac_err" >&5
  8584. echo "configure: failed program was:" >&5
  8585. cat conftest.$ac_ext >&5
  8586. rm -rf conftest*
  8587. eval "ac_cv_header_$ac_safe=no"
  8588. fi
  8589. rm -f conftest*
  8590. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8591. echo "$ac_t""yes" 1>&6
  8592. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8593. cat >> confdefs.h <<EOF
  8594. #define $ac_tr_hdr 1
  8595. EOF
  8596. else
  8597. echo "$ac_t""no" 1>&6
  8598. ac_save_cppflags="$CPPFLAGS"
  8599. CPPFLAGS=" $CPPFLAGS"
  8600. for ac_hdr in dfftw.h
  8601. do
  8602. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8603. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8604. echo "configure:10752: checking for $ac_hdr" >&5
  8605. cat > conftest.$ac_ext <<EOF
  8606. #line 10755 "configure"
  8607. #include "confdefs.h"
  8608. #include <$ac_hdr>
  8609. EOF
  8610. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8611. { (eval echo configure:10760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8612. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8613. if test -z "$ac_err"; then
  8614. rm -rf conftest*
  8615. eval "ac_cv_header_$ac_safe=yes"
  8616. else
  8617. echo "$ac_err" >&5
  8618. echo "configure: failed program was:" >&5
  8619. cat conftest.$ac_ext >&5
  8620. rm -rf conftest*
  8621. eval "ac_cv_header_$ac_safe=no"
  8622. fi
  8623. rm -f conftest*
  8624. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8625. echo "$ac_t""yes" 1>&6
  8626. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8627. cat >> confdefs.h <<EOF
  8628. #define $ac_tr_hdr 1
  8629. EOF
  8630. else
  8631. echo "$ac_t""no" 1>&6
  8632. { echo "configure: error: *** Unable to locate FFTW includes." 1>&2; exit 1; }
  8633. fi
  8634. done
  8635. CPPFLAGS=$ac_save_cppflags
  8636. fi
  8637. done
  8638. CPPFLAGS=$ac_save_cppflags
  8639. fi
  8640. done
  8641. CPPFLAGS=$ac_save_cppflags
  8642. # With FFTW library directory
  8643. echo $ac_n "checking for location of FFTW library""... $ac_c" 1>&6
  8644. echo "configure:10806: checking for location of FFTW library" >&5
  8645. case "$with_fftw_libs" in
  8646. y | ye | yes | n | no)
  8647. { echo "configure: error: *** You must supply a directory to --with-fftw-libs." 1>&2; exit 1; }
  8648. ;;
  8649. esac
  8650. echo "$ac_t""$with_fftw_libs" 1>&6
  8651. if test -n "$with_fftw_libs"; then
  8652. for dir in $with_fftw_libs; do
  8653. if test -d "$dir"; then
  8654. FFTWLIB="$FFTWLIB -L$dir"
  8655. else
  8656. { echo "configure: error: *** FFTW library directory $dir does not exist." 1>&2; exit 1; }
  8657. fi
  8658. done
  8659. fi
  8660. ac_save_ldflags="$LDFLAGS"
  8661. LDFLAGS="$FFTWLIB $LDFLAGS"
  8662. echo $ac_n "checking for fftw_execute in -lfftw3""... $ac_c" 1>&6
  8663. echo "configure:10831: checking for fftw_execute in -lfftw3" >&5
  8664. ac_lib_var=`echo fftw3'_'fftw_execute | sed 'y%./+-%__p_%'`
  8665. ac_save_LIBS="$LIBS"
  8666. LIBS="-lfftw3 $MATHLIB $LIBS"
  8667. cat > conftest.$ac_ext <<EOF
  8668. #line 10837 "configure"
  8669. #include "confdefs.h"
  8670. /* Override any gcc2 internal prototype to avoid an error. */
  8671. /* We use char because int might match the return type of a gcc2
  8672. builtin and then its argument prototype would still apply. */
  8673. char fftw_execute();
  8674. int main() {
  8675. fftw_execute()
  8676. ; return 0; }
  8677. EOF
  8678. if { (eval echo configure:10848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8679. rm -rf conftest*
  8680. eval "ac_cv_lib_$ac_lib_var=yes"
  8681. else
  8682. echo "configure: failed program was:" >&5
  8683. cat conftest.$ac_ext >&5
  8684. rm -rf conftest*
  8685. eval "ac_cv_lib_$ac_lib_var=no"
  8686. fi
  8687. rm -f conftest*
  8688. LIBS="$ac_save_LIBS"
  8689. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8690. echo "$ac_t""yes" 1>&6
  8691. FFTWLIB="$FFTWLIB -lfftw3 $MATHLIB"
  8692. else
  8693. echo "$ac_t""no" 1>&6
  8694. LDFLAGS=${ac_save_ldflags}
  8695. ac_save_ldflags="$LDFLAGS"
  8696. LDFLAGS="$FFTWLIB $LDFLAGS"
  8697. echo $ac_n "checking for fftwnd_one in -lfftw""... $ac_c" 1>&6
  8698. echo "configure:10873: checking for fftwnd_one in -lfftw" >&5
  8699. ac_lib_var=`echo fftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
  8700. ac_save_LIBS="$LIBS"
  8701. LIBS="-lfftw $MATHLIB $LIBS"
  8702. cat > conftest.$ac_ext <<EOF
  8703. #line 10879 "configure"
  8704. #include "confdefs.h"
  8705. /* Override any gcc2 internal prototype to avoid an error. */
  8706. /* We use char because int might match the return type of a gcc2
  8707. builtin and then its argument prototype would still apply. */
  8708. char fftwnd_one();
  8709. int main() {
  8710. fftwnd_one()
  8711. ; return 0; }
  8712. EOF
  8713. if { (eval echo configure:10890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8714. rm -rf conftest*
  8715. eval "ac_cv_lib_$ac_lib_var=yes"
  8716. else
  8717. echo "configure: failed program was:" >&5
  8718. cat conftest.$ac_ext >&5
  8719. rm -rf conftest*
  8720. eval "ac_cv_lib_$ac_lib_var=no"
  8721. fi
  8722. rm -f conftest*
  8723. LIBS="$ac_save_LIBS"
  8724. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8725. echo "$ac_t""yes" 1>&6
  8726. FFTWLIB="$FFTWLIB -lfftw $MATHLIB"
  8727. else
  8728. echo "$ac_t""no" 1>&6
  8729. LDFLAGS=${ac_save_ldflags}
  8730. ac_save_ldflags="$LDFLAGS"
  8731. LDFLAGS="$FFTWLIB $LDFLAGS"
  8732. echo $ac_n "checking for fftwnd_one in -ldfftw""... $ac_c" 1>&6
  8733. echo "configure:10915: checking for fftwnd_one in -ldfftw" >&5
  8734. ac_lib_var=`echo dfftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
  8735. ac_save_LIBS="$LIBS"
  8736. LIBS="-ldfftw $MATHLIB $LIBS"
  8737. cat > conftest.$ac_ext <<EOF
  8738. #line 10921 "configure"
  8739. #include "confdefs.h"
  8740. /* Override any gcc2 internal prototype to avoid an error. */
  8741. /* We use char because int might match the return type of a gcc2
  8742. builtin and then its argument prototype would still apply. */
  8743. char fftwnd_one();
  8744. int main() {
  8745. fftwnd_one()
  8746. ; return 0; }
  8747. EOF
  8748. if { (eval echo configure:10932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8749. rm -rf conftest*
  8750. eval "ac_cv_lib_$ac_lib_var=yes"
  8751. else
  8752. echo "configure: failed program was:" >&5
  8753. cat conftest.$ac_ext >&5
  8754. rm -rf conftest*
  8755. eval "ac_cv_lib_$ac_lib_var=no"
  8756. fi
  8757. rm -f conftest*
  8758. LIBS="$ac_save_LIBS"
  8759. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8760. echo "$ac_t""yes" 1>&6
  8761. FFTWLIB="$FFTWLIB -ldfftw $MATHLIB"
  8762. else
  8763. echo "$ac_t""no" 1>&6
  8764. LDFLAGS=${ac_save_ldflags}
  8765. { echo "configure: error: *** Unable to locate FFTW library." 1>&2; exit 1; }
  8766. fi
  8767. LDFLAGS=${ac_save_ldflags}
  8768. fi
  8769. LDFLAGS=${ac_save_ldflags}
  8770. fi
  8771. LDFLAGS=${ac_save_ldflags}
  8772. fi # $USE_FFTW
  8773. # Done checking FFTW
  8774. # Enable BLAS option
  8775. echo $ac_n "checking whether to use BLAS""... $ac_c" 1>&6
  8776. echo "configure:10989: checking whether to use BLAS" >&5
  8777. echo "$ac_t"""$with_blas"" 1>&6
  8778. case "$with_blas" in
  8779. "no") USE_BLAS= ;;
  8780. "yes") USE_BLAS="1" ;;
  8781. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8782. esac
  8783. BLASLIB=
  8784. BLASINC=
  8785. if test -n "$USE_BLAS"; then
  8786. # With BLAS includes directory
  8787. # BLAS doesn't have includes (FORTRAN library)
  8788. # With BLAS library directory
  8789. echo $ac_n "checking for location of BLAS includes""... $ac_c" 1>&6
  8790. echo "configure:11010: checking for location of BLAS includes" >&5
  8791. case "$with_blas_includes" in
  8792. y | ye | yes | n | no)
  8793. { echo "configure: error: *** You must supply a directory to --with-blas-includes." 1>&2; exit 1; }
  8794. ;;
  8795. esac
  8796. echo "$ac_t""$with_blas_includes" 1>&6
  8797. if test -n "$with_blas_includes" ; then
  8798. for dir in $with_blas_includes; do
  8799. if test -d "$dir"; then
  8800. BLASINC="$BLASINC -I$dir"
  8801. else
  8802. { echo "configure: error: *** BLAS includes directory $dir does not exist." 1>&2; exit 1; }
  8803. fi
  8804. done
  8805. fi
  8806. echo $ac_n "checking for location of BLAS library""... $ac_c" 1>&6
  8807. echo "configure:11030: checking for location of BLAS library" >&5
  8808. case "$with_blas_libs" in
  8809. y | ye | yes | n | no)
  8810. { echo "configure: error: *** You must supply a directory to --with-blas-libs." 1>&2; exit 1; }
  8811. ;;
  8812. esac
  8813. echo "$ac_t""$with_blas_libs" 1>&6
  8814. if test -n "$with_blas_libs"; then
  8815. for dir in $with_blas_libs; do
  8816. if test -d "$dir"; then
  8817. BLASLIB="$BLASLIB -L$dir"
  8818. else
  8819. { echo "configure: error: *** BLAS library directory $dir does not exist." 1>&2; exit 1; }
  8820. fi
  8821. done
  8822. fi
  8823. # See if cblas.h exists (CBLAS,ATLAS,others)
  8824. save_CPPFLAGS="$CPPFLAGS"
  8825. CPPFLAGS="$BLASINC $CPPFLAGS"
  8826. for ac_hdr in cblas.h
  8827. do
  8828. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8829. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8830. echo "configure:11056: checking for $ac_hdr" >&5
  8831. cat > conftest.$ac_ext <<EOF
  8832. #line 11059 "configure"
  8833. #include "confdefs.h"
  8834. #include <$ac_hdr>
  8835. EOF
  8836. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8837. { (eval echo configure:11064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8838. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8839. if test -z "$ac_err"; then
  8840. rm -rf conftest*
  8841. eval "ac_cv_header_$ac_safe=yes"
  8842. else
  8843. echo "$ac_err" >&5
  8844. echo "configure: failed program was:" >&5
  8845. cat conftest.$ac_ext >&5
  8846. rm -rf conftest*
  8847. eval "ac_cv_header_$ac_safe=no"
  8848. fi
  8849. rm -f conftest*
  8850. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8851. echo "$ac_t""yes" 1>&6
  8852. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8853. cat >> confdefs.h <<EOF
  8854. #define $ac_tr_hdr 1
  8855. EOF
  8856. else
  8857. echo "$ac_t""no" 1>&6
  8858. fi
  8859. done
  8860. CPPFLAGS="$save_CPPFLAGS"
  8861. ac_save_ldflags="$LDFLAGS"
  8862. LDFLAGS="$BLASLIB $LDFLAGS"
  8863. echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
  8864. echo "configure:11099: checking for dnrm2_ in -lblas" >&5
  8865. ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
  8866. ac_save_LIBS="$LIBS"
  8867. LIBS="-lblas $MATHLIB $LIBS"
  8868. cat > conftest.$ac_ext <<EOF
  8869. #line 11105 "configure"
  8870. #include "confdefs.h"
  8871. /* Override any gcc2 internal prototype to avoid an error. */
  8872. /* We use char because int might match the return type of a gcc2
  8873. builtin and then its argument prototype would still apply. */
  8874. char dnrm2_();
  8875. int main() {
  8876. dnrm2_()
  8877. ; return 0; }
  8878. EOF
  8879. if { (eval echo configure:11116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8880. rm -rf conftest*
  8881. eval "ac_cv_lib_$ac_lib_var=yes"
  8882. else
  8883. echo "configure: failed program was:" >&5
  8884. cat conftest.$ac_ext >&5
  8885. rm -rf conftest*
  8886. eval "ac_cv_lib_$ac_lib_var=no"
  8887. fi
  8888. rm -f conftest*
  8889. LIBS="$ac_save_LIBS"
  8890. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8891. echo "$ac_t""yes" 1>&6
  8892. BLASLIB="$BLASLIB -lblas "
  8893. else
  8894. echo "$ac_t""no" 1>&6
  8895. echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
  8896. echo "configure:11135: checking for dnrm2_ in -lblas" >&5
  8897. ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
  8898. ac_save_LIBS="$LIBS"
  8899. LIBS="-lblas $MATHLIB -lg2c $LIBS"
  8900. cat > conftest.$ac_ext <<EOF
  8901. #line 11141 "configure"
  8902. #include "confdefs.h"
  8903. /* Override any gcc2 internal prototype to avoid an error. */
  8904. /* We use char because int might match the return type of a gcc2
  8905. builtin and then its argument prototype would still apply. */
  8906. char dnrm2_();
  8907. int main() {
  8908. dnrm2_()
  8909. ; return 0; }
  8910. EOF
  8911. if { (eval echo configure:11152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8912. rm -rf conftest*
  8913. eval "ac_cv_lib_$ac_lib_var=yes"
  8914. else
  8915. echo "configure: failed program was:" >&5
  8916. cat conftest.$ac_ext >&5
  8917. rm -rf conftest*
  8918. eval "ac_cv_lib_$ac_lib_var=no"
  8919. fi
  8920. rm -f conftest*
  8921. LIBS="$ac_save_LIBS"
  8922. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8923. echo "$ac_t""yes" 1>&6
  8924. BLASLIB="$BLASLIB -lblas -lg2c"
  8925. else
  8926. echo "$ac_t""no" 1>&6
  8927. LDFLAGS=${ac_save_ldflags}
  8928. { echo "configure: error: *** Unable to locate BLAS library." 1>&2; exit 1; }
  8929. fi
  8930. fi
  8931. LDFLAGS=${ac_save_ldflags}
  8932. blas_ok=no
  8933. # Check for ATLAS
  8934. save_LDFLAGS="$LDFLAGS"
  8935. LDFLAGS="$BLASLIB $LDFLAGS"
  8936. echo $ac_n "checking for ATL_xerbla in -latlas""... $ac_c" 1>&6
  8937. echo "configure:11196: checking for ATL_xerbla in -latlas" >&5
  8938. ac_lib_var=`echo atlas'_'ATL_xerbla | sed 'y%./+-%__p_%'`
  8939. ac_save_LIBS="$LIBS"
  8940. LIBS="-latlas $LIBS"
  8941. cat > conftest.$ac_ext <<EOF
  8942. #line 11202 "configure"
  8943. #include "confdefs.h"
  8944. /* Override any gcc2 internal prototype to avoid an error. */
  8945. /* We use char because int might match the return type of a gcc2
  8946. builtin and then its argument prototype would still apply. */
  8947. char ATL_xerbla();
  8948. int main() {
  8949. ATL_xerbla()
  8950. ; return 0; }
  8951. EOF
  8952. if { (eval echo configure:11213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8953. rm -rf conftest*
  8954. eval "ac_cv_lib_$ac_lib_var=yes"
  8955. else
  8956. echo "configure: failed program was:" >&5
  8957. cat conftest.$ac_ext >&5
  8958. rm -rf conftest*
  8959. eval "ac_cv_lib_$ac_lib_var=no"
  8960. fi
  8961. rm -f conftest*
  8962. LIBS="$ac_save_LIBS"
  8963. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8964. echo "$ac_t""yes" 1>&6
  8965. echo $ac_n "checking for sgemm_ in -lf77blas""... $ac_c" 1>&6
  8966. echo "configure:11228: checking for sgemm_ in -lf77blas" >&5
  8967. ac_lib_var=`echo f77blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  8968. ac_save_LIBS="$LIBS"
  8969. LIBS="-lf77blas -latlas $LIBS"
  8970. cat > conftest.$ac_ext <<EOF
  8971. #line 11234 "configure"
  8972. #include "confdefs.h"
  8973. /* Override any gcc2 internal prototype to avoid an error. */
  8974. /* We use char because int might match the return type of a gcc2
  8975. builtin and then its argument prototype would still apply. */
  8976. char sgemm_();
  8977. int main() {
  8978. sgemm_()
  8979. ; return 0; }
  8980. EOF
  8981. if { (eval echo configure:11245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8982. rm -rf conftest*
  8983. eval "ac_cv_lib_$ac_lib_var=yes"
  8984. else
  8985. echo "configure: failed program was:" >&5
  8986. cat conftest.$ac_ext >&5
  8987. rm -rf conftest*
  8988. eval "ac_cv_lib_$ac_lib_var=no"
  8989. fi
  8990. rm -f conftest*
  8991. LIBS="$ac_save_LIBS"
  8992. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8993. echo "$ac_t""yes" 1>&6
  8994. echo $ac_n "checking for cblas_dgemm in -lcblas""... $ac_c" 1>&6
  8995. echo "configure:11260: checking for cblas_dgemm in -lcblas" >&5
  8996. ac_lib_var=`echo cblas'_'cblas_dgemm | sed 'y%./+-%__p_%'`
  8997. ac_save_LIBS="$LIBS"
  8998. LIBS="-lcblas -lf77blas -latlas $LIBS"
  8999. cat > conftest.$ac_ext <<EOF
  9000. #line 11266 "configure"
  9001. #include "confdefs.h"
  9002. /* Override any gcc2 internal prototype to avoid an error. */
  9003. /* We use char because int might match the return type of a gcc2
  9004. builtin and then its argument prototype would still apply. */
  9005. char cblas_dgemm();
  9006. int main() {
  9007. cblas_dgemm()
  9008. ; return 0; }
  9009. EOF
  9010. if { (eval echo configure:11277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9011. rm -rf conftest*
  9012. eval "ac_cv_lib_$ac_lib_var=yes"
  9013. else
  9014. echo "configure: failed program was:" >&5
  9015. cat conftest.$ac_ext >&5
  9016. rm -rf conftest*
  9017. eval "ac_cv_lib_$ac_lib_var=no"
  9018. fi
  9019. rm -f conftest*
  9020. LIBS="$ac_save_LIBS"
  9021. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9022. echo "$ac_t""yes" 1>&6
  9023. blas_ok=yes; BLASLIB="-lcblas -lf77blas -latlas"
  9024. else
  9025. echo "$ac_t""no" 1>&6
  9026. fi
  9027. else
  9028. echo "$ac_t""no" 1>&6
  9029. fi
  9030. else
  9031. echo "$ac_t""no" 1>&6
  9032. fi
  9033. LDFLAGS="$save_LDFLAGS"
  9034. # Do we have ATLAS?
  9035. if test $blas_ok = yes; then
  9036. cat >> confdefs.h <<\EOF
  9037. #define HAVE_LIBATLAS 1
  9038. EOF
  9039. fi
  9040. # BLAS in Apple vecLib framework? (Mac OS-X)
  9041. # not dependent on APP build
  9042. #if test -n "$MACOSX_APP"; then
  9043. if test $blas_ok = no; then
  9044. vlib_flags="-framework vecLib"
  9045. save_LIBS="$LIBS"
  9046. LIBS="$vlib_flags $LIBS"
  9047. echo $ac_n "checking for sgemm in $vlib_flags""... $ac_c" 1>&6
  9048. echo "configure:11323: checking for sgemm in $vlib_flags" >&5
  9049. cat > conftest.$ac_ext <<EOF
  9050. #line 11325 "configure"
  9051. #include "confdefs.h"
  9052. int main() {
  9053. sgemm
  9054. ; return 0; }
  9055. EOF
  9056. if { (eval echo configure:11332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9057. rm -rf conftest*
  9058. blas_ok=yes; BLASLIB="$vlib_flags"
  9059. else
  9060. echo "configure: failed program was:" >&5
  9061. cat conftest.$ac_ext >&5
  9062. rm -rf conftest*
  9063. BLASLIB=""
  9064. fi
  9065. rm -f conftest*
  9066. echo "$ac_t""$blas_ok" 1>&6
  9067. LIBS="$save_LIBS"
  9068. fi
  9069. #fi # $MACOSX_APP
  9070. # BLAS in PhiPACK libraries? (requires generic BLAS, too)
  9071. if test $blas_ok = no; then
  9072. echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
  9073. echo "configure:11350: checking for sgemm_ in -lblas" >&5
  9074. ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  9075. ac_save_LIBS="$LIBS"
  9076. LIBS="-lblas $LIBS"
  9077. cat > conftest.$ac_ext <<EOF
  9078. #line 11356 "configure"
  9079. #include "confdefs.h"
  9080. /* Override any gcc2 internal prototype to avoid an error. */
  9081. /* We use char because int might match the return type of a gcc2
  9082. builtin and then its argument prototype would still apply. */
  9083. char sgemm_();
  9084. int main() {
  9085. sgemm_()
  9086. ; return 0; }
  9087. EOF
  9088. if { (eval echo configure:11367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9089. rm -rf conftest*
  9090. eval "ac_cv_lib_$ac_lib_var=yes"
  9091. else
  9092. echo "configure: failed program was:" >&5
  9093. cat conftest.$ac_ext >&5
  9094. rm -rf conftest*
  9095. eval "ac_cv_lib_$ac_lib_var=no"
  9096. fi
  9097. rm -f conftest*
  9098. LIBS="$ac_save_LIBS"
  9099. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9100. echo "$ac_t""yes" 1>&6
  9101. echo $ac_n "checking for dgemm_ in -ldgemm""... $ac_c" 1>&6
  9102. echo "configure:11382: checking for dgemm_ in -ldgemm" >&5
  9103. ac_lib_var=`echo dgemm'_'dgemm_ | sed 'y%./+-%__p_%'`
  9104. ac_save_LIBS="$LIBS"
  9105. LIBS="-ldgemm -lblas $LIBS"
  9106. cat > conftest.$ac_ext <<EOF
  9107. #line 11388 "configure"
  9108. #include "confdefs.h"
  9109. /* Override any gcc2 internal prototype to avoid an error. */
  9110. /* We use char because int might match the return type of a gcc2
  9111. builtin and then its argument prototype would still apply. */
  9112. char dgemm_();
  9113. int main() {
  9114. dgemm_()
  9115. ; return 0; }
  9116. EOF
  9117. if { (eval echo configure:11399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9118. rm -rf conftest*
  9119. eval "ac_cv_lib_$ac_lib_var=yes"
  9120. else
  9121. echo "configure: failed program was:" >&5
  9122. cat conftest.$ac_ext >&5
  9123. rm -rf conftest*
  9124. eval "ac_cv_lib_$ac_lib_var=no"
  9125. fi
  9126. rm -f conftest*
  9127. LIBS="$ac_save_LIBS"
  9128. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9129. echo "$ac_t""yes" 1>&6
  9130. echo $ac_n "checking for sgemm_ in -lsgemm""... $ac_c" 1>&6
  9131. echo "configure:11414: checking for sgemm_ in -lsgemm" >&5
  9132. ac_lib_var=`echo sgemm'_'sgemm_ | sed 'y%./+-%__p_%'`
  9133. ac_save_LIBS="$LIBS"
  9134. LIBS="-lsgemm -lblas $LIBS"
  9135. cat > conftest.$ac_ext <<EOF
  9136. #line 11420 "configure"
  9137. #include "confdefs.h"
  9138. /* Override any gcc2 internal prototype to avoid an error. */
  9139. /* We use char because int might match the return type of a gcc2
  9140. builtin and then its argument prototype would still apply. */
  9141. char sgemm_();
  9142. int main() {
  9143. sgemm_()
  9144. ; return 0; }
  9145. EOF
  9146. if { (eval echo configure:11431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9147. rm -rf conftest*
  9148. eval "ac_cv_lib_$ac_lib_var=yes"
  9149. else
  9150. echo "configure: failed program was:" >&5
  9151. cat conftest.$ac_ext >&5
  9152. rm -rf conftest*
  9153. eval "ac_cv_lib_$ac_lib_var=no"
  9154. fi
  9155. rm -f conftest*
  9156. LIBS="$ac_save_LIBS"
  9157. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9158. echo "$ac_t""yes" 1>&6
  9159. blas_ok=yes; BLASLIB="-lsgemm -ldgemm -lblas"
  9160. else
  9161. echo "$ac_t""no" 1>&6
  9162. fi
  9163. else
  9164. echo "$ac_t""no" 1>&6
  9165. fi
  9166. else
  9167. echo "$ac_t""no" 1>&6
  9168. fi
  9169. fi
  9170. # BLAS in Sun Performance library?
  9171. if test $blas_ok = no; then
  9172. if test "x$GCC" != xyes; then # only works with Sun CC
  9173. echo $ac_n "checking for acosp in -lsunmath""... $ac_c" 1>&6
  9174. echo "configure:11465: checking for acosp in -lsunmath" >&5
  9175. ac_lib_var=`echo sunmath'_'acosp | sed 'y%./+-%__p_%'`
  9176. ac_save_LIBS="$LIBS"
  9177. LIBS="-lsunmath $LIBS"
  9178. cat > conftest.$ac_ext <<EOF
  9179. #line 11471 "configure"
  9180. #include "confdefs.h"
  9181. /* Override any gcc2 internal prototype to avoid an error. */
  9182. /* We use char because int might match the return type of a gcc2
  9183. builtin and then its argument prototype would still apply. */
  9184. char acosp();
  9185. int main() {
  9186. acosp()
  9187. ; return 0; }
  9188. EOF
  9189. if { (eval echo configure:11482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9190. rm -rf conftest*
  9191. eval "ac_cv_lib_$ac_lib_var=yes"
  9192. else
  9193. echo "configure: failed program was:" >&5
  9194. cat conftest.$ac_ext >&5
  9195. rm -rf conftest*
  9196. eval "ac_cv_lib_$ac_lib_var=no"
  9197. fi
  9198. rm -f conftest*
  9199. LIBS="$ac_save_LIBS"
  9200. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9201. echo "$ac_t""yes" 1>&6
  9202. echo $ac_n "checking for sgemm_ in -lsunperf""... $ac_c" 1>&6
  9203. echo "configure:11497: checking for sgemm_ in -lsunperf" >&5
  9204. ac_lib_var=`echo sunperf'_'sgemm_ | sed 'y%./+-%__p_%'`
  9205. ac_save_LIBS="$LIBS"
  9206. LIBS="-lsunperf -lsunmath $LIBS"
  9207. cat > conftest.$ac_ext <<EOF
  9208. #line 11503 "configure"
  9209. #include "confdefs.h"
  9210. /* Override any gcc2 internal prototype to avoid an error. */
  9211. /* We use char because int might match the return type of a gcc2
  9212. builtin and then its argument prototype would still apply. */
  9213. char sgemm_();
  9214. int main() {
  9215. sgemm_()
  9216. ; return 0; }
  9217. EOF
  9218. if { (eval echo configure:11514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9219. rm -rf conftest*
  9220. eval "ac_cv_lib_$ac_lib_var=yes"
  9221. else
  9222. echo "configure: failed program was:" >&5
  9223. cat conftest.$ac_ext >&5
  9224. rm -rf conftest*
  9225. eval "ac_cv_lib_$ac_lib_var=no"
  9226. fi
  9227. rm -f conftest*
  9228. LIBS="$ac_save_LIBS"
  9229. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9230. echo "$ac_t""yes" 1>&6
  9231. blas_ok=yes; BLASLIB="-xlic_lib=sunperf -lsunmath"
  9232. else
  9233. echo "$ac_t""no" 1>&6
  9234. fi
  9235. else
  9236. echo "$ac_t""no" 1>&6
  9237. fi
  9238. fi
  9239. fi
  9240. # Generic BLAS library
  9241. if test $blas_ok = no; then
  9242. echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
  9243. echo "configure:11544: checking for sgemm_ in -lblas" >&5
  9244. ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  9245. ac_save_LIBS="$LIBS"
  9246. LIBS="-lblas $LIBS"
  9247. cat > conftest.$ac_ext <<EOF
  9248. #line 11550 "configure"
  9249. #include "confdefs.h"
  9250. /* Override any gcc2 internal prototype to avoid an error. */
  9251. /* We use char because int might match the return type of a gcc2
  9252. builtin and then its argument prototype would still apply. */
  9253. char sgemm_();
  9254. int main() {
  9255. sgemm_()
  9256. ; return 0; }
  9257. EOF
  9258. if { (eval echo configure:11561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9259. rm -rf conftest*
  9260. eval "ac_cv_lib_$ac_lib_var=yes"
  9261. else
  9262. echo "configure: failed program was:" >&5
  9263. cat conftest.$ac_ext >&5
  9264. rm -rf conftest*
  9265. eval "ac_cv_lib_$ac_lib_var=no"
  9266. fi
  9267. rm -f conftest*
  9268. LIBS="$ac_save_LIBS"
  9269. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9270. echo "$ac_t""yes" 1>&6
  9271. blas_ok=yes; BLASLIB="-lblas"
  9272. else
  9273. echo "$ac_t""no" 1>&6
  9274. fi
  9275. fi
  9276. if test $blas_ok = yes; then
  9277. cat >> confdefs.h <<\EOF
  9278. #define HAVE_LIBBLAS 1
  9279. EOF
  9280. fi
  9281. fi # $USE_BLAS
  9282. # Done checking BLAS
  9283. # Enable LAPACK option
  9284. echo $ac_n "checking whether to use LAPACK""... $ac_c" 1>&6
  9285. echo "configure:11600: checking whether to use LAPACK" >&5
  9286. echo "$ac_t"""$with_lapack"" 1>&6
  9287. case "$with_lapack" in
  9288. "no") USE_LAPACK= ;;
  9289. "yes") USE_LAPACK="1" ;;
  9290. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9291. esac
  9292. LAPACKLIB=
  9293. LAPACKINC=
  9294. # LAPACK is useless without BLAS
  9295. if test -n "$USE_BLAS"; then
  9296. if test -n "$USE_LAPACK"; then
  9297. # With LAPACK includes directory
  9298. # LAPACK doesn't have includes (FORTRAN library)
  9299. # With LAPACK library directory
  9300. lapack_ok=no
  9301. echo $ac_n "checking for location of LAPACK includes""... $ac_c" 1>&6
  9302. echo "configure:11625: checking for location of LAPACK includes" >&5
  9303. case "$with_lapack_includes" in
  9304. y | ye | yes | n | no)
  9305. { echo "configure: error: *** You must supply a directory to --with-lapack-includes." 1>&2; exit 1; }
  9306. ;;
  9307. esac
  9308. echo "$ac_t""$with_lapack_includes" 1>&6
  9309. if test -n "$with_lapack_includes" ; then
  9310. for dir in $with_lapack_includes; do
  9311. if test -d "$dir"; then
  9312. LAPACKINC="$LAPACKINC -I$dir"
  9313. else
  9314. { echo "configure: error: *** LAPACK includes directory $dir does not exist." 1>&2; exit 1; }
  9315. fi
  9316. done
  9317. fi
  9318. echo $ac_n "checking for location of LAPACK library""... $ac_c" 1>&6
  9319. echo "configure:11645: checking for location of LAPACK library" >&5
  9320. case "$with_lapack_libs" in
  9321. y | ye | yes | n | no)
  9322. { echo "configure: error: *** You must supply a directory to --with-lapack-libs." 1>&2; exit 1; }
  9323. ;;
  9324. esac
  9325. echo "$ac_t""$with_lapack_libs" 1>&6
  9326. if test -n "$with_lapack_libs"; then
  9327. for dir in $with_lapack_libs; do
  9328. if test -d "$dir"; then
  9329. LAPACKLIB="$LAPACKLIB -L$dir"
  9330. else
  9331. { echo "configure: error: *** LAPACK library directory $dir does not exist." 1>&2; exit 1; }
  9332. fi
  9333. done
  9334. fi
  9335. # See if clapack.h exists (ATLAS)
  9336. save_CPPFLAGS="$CPPFLAGS"
  9337. CPPFLAGS="$LAPACKINC $CPPFLAGS"
  9338. for ac_hdr in clapack.h
  9339. do
  9340. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9341. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9342. echo "configure:11671: checking for $ac_hdr" >&5
  9343. cat > conftest.$ac_ext <<EOF
  9344. #line 11674 "configure"
  9345. #include "confdefs.h"
  9346. #include <$ac_hdr>
  9347. EOF
  9348. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9349. { (eval echo configure:11679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9350. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9351. if test -z "$ac_err"; then
  9352. rm -rf conftest*
  9353. eval "ac_cv_header_$ac_safe=yes"
  9354. else
  9355. echo "$ac_err" >&5
  9356. echo "configure: failed program was:" >&5
  9357. cat conftest.$ac_ext >&5
  9358. rm -rf conftest*
  9359. eval "ac_cv_header_$ac_safe=no"
  9360. fi
  9361. rm -f conftest*
  9362. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9363. echo "$ac_t""yes" 1>&6
  9364. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9365. cat >> confdefs.h <<EOF
  9366. #define $ac_tr_hdr 1
  9367. EOF
  9368. else
  9369. echo "$ac_t""no" 1>&6
  9370. fi
  9371. done
  9372. CPPFLAGS="$save_CPPFLAGS"
  9373. # LAPACK linked to by default?
  9374. if test lapack_ok=no; then
  9375. save_LIBS="$LIBS"; LIBS="$LIBS $BLASLIB $MATHLIB $FLIBS"
  9376. save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
  9377. echo $ac_n "checking for dsegv_""... $ac_c" 1>&6
  9378. echo "configure:11711: checking for dsegv_" >&5
  9379. cat > conftest.$ac_ext <<EOF
  9380. #line 11714 "configure"
  9381. #include "confdefs.h"
  9382. /* System header to define __stub macros and hopefully few prototypes,
  9383. which can conflict with char dsegv_(); below. */
  9384. #include <assert.h>
  9385. /* Override any gcc2 internal prototype to avoid an error. */
  9386. /* We use char because int might match the return type of a gcc2
  9387. builtin and then its argument prototype would still apply. */
  9388. char dsegv_();
  9389. int main() {
  9390. /* The GNU C library defines this for functions which it implements
  9391. to always fail with ENOSYS. Some functions are actually named
  9392. something starting with __ and the normal name is an alias. */
  9393. #if defined (__stub_dsegv_) || defined (__stub___dsegv_)
  9394. choke me
  9395. #else
  9396. dsegv_();
  9397. #endif
  9398. ; return 0; }
  9399. EOF
  9400. if { (eval echo configure:11737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9401. rm -rf conftest*
  9402. eval "ac_cv_func_dsegv_=yes"
  9403. else
  9404. echo "configure: failed program was:" >&5
  9405. cat conftest.$ac_ext >&5
  9406. rm -rf conftest*
  9407. eval "ac_cv_func_dsegv_=no"
  9408. fi
  9409. rm -f conftest*
  9410. if eval "test \"`echo '$ac_cv_func_'dsegv_`\" = yes"; then
  9411. echo "$ac_t""yes" 1>&6
  9412. lapack_ok=yes
  9413. else
  9414. echo "$ac_t""no" 1>&6
  9415. fi
  9416. LIBS="$save_LIBS"
  9417. LDFLAGS="$save_LDFLAGS"
  9418. fi
  9419. # Generic LAPACK library?
  9420. if test $lapack_ok = no; then
  9421. save_libs="$LIBS"; LIBS="$BLASLIB $MATHLIB $LIBS"
  9422. save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
  9423. echo $ac_n "checking for desgv_ in -llapack""... $ac_c" 1>&6
  9424. echo "configure:11764: checking for desgv_ in -llapack" >&5
  9425. ac_lib_var=`echo lapack'_'desgv_ | sed 'y%./+-%__p_%'`
  9426. ac_save_LIBS="$LIBS"
  9427. LIBS="-llapack $FLIBS $LIBS"
  9428. cat > conftest.$ac_ext <<EOF
  9429. #line 11770 "configure"
  9430. #include "confdefs.h"
  9431. /* Override any gcc2 internal prototype to avoid an error. */
  9432. /* We use char because int might match the return type of a gcc2
  9433. builtin and then its argument prototype would still apply. */
  9434. char desgv_();
  9435. int main() {
  9436. desgv_()
  9437. ; return 0; }
  9438. EOF
  9439. if { (eval echo configure:11781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9440. rm -rf conftest*
  9441. eval "ac_cv_lib_$ac_lib_var=yes"
  9442. else
  9443. echo "configure: failed program was:" >&5
  9444. cat conftest.$ac_ext >&5
  9445. rm -rf conftest*
  9446. eval "ac_cv_lib_$ac_lib_var=no"
  9447. fi
  9448. rm -f conftest*
  9449. LIBS="$ac_save_LIBS"
  9450. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9451. echo "$ac_t""yes" 1>&6
  9452. lapack_ok=yes; LAPACKLIB="-llapack"
  9453. else
  9454. echo "$ac_t""no" 1>&6
  9455. fi
  9456. LIBS="$save_LIBS"
  9457. LDFLAGS="$save_LDFLAGS"
  9458. fi
  9459. if test $lapack_ok = no; then
  9460. ac_save_ldflags="$LDFLAGS"
  9461. LDFLAGS="$LAPACKLIB $LDFLAGS"
  9462. echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
  9463. echo "configure:11813: checking for dgesv_ in -llapack" >&5
  9464. ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
  9465. ac_save_LIBS="$LIBS"
  9466. LIBS="-llapack $BLASLIB $MATHLIB $LIBS"
  9467. cat > conftest.$ac_ext <<EOF
  9468. #line 11819 "configure"
  9469. #include "confdefs.h"
  9470. /* Override any gcc2 internal prototype to avoid an error. */
  9471. /* We use char because int might match the return type of a gcc2
  9472. builtin and then its argument prototype would still apply. */
  9473. char dgesv_();
  9474. int main() {
  9475. dgesv_()
  9476. ; return 0; }
  9477. EOF
  9478. if { (eval echo configure:11830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9479. rm -rf conftest*
  9480. eval "ac_cv_lib_$ac_lib_var=yes"
  9481. else
  9482. echo "configure: failed program was:" >&5
  9483. cat conftest.$ac_ext >&5
  9484. rm -rf conftest*
  9485. eval "ac_cv_lib_$ac_lib_var=no"
  9486. fi
  9487. rm -f conftest*
  9488. LIBS="$ac_save_LIBS"
  9489. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9490. echo "$ac_t""yes" 1>&6
  9491. LAPACKLIB="$LAPACKLIB -llapack "
  9492. else
  9493. echo "$ac_t""no" 1>&6
  9494. echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
  9495. echo "configure:11849: checking for dgesv_ in -llapack" >&5
  9496. ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
  9497. ac_save_LIBS="$LIBS"
  9498. LIBS="-llapack $BLASLIB $MATHLIB -lg2c $LIBS"
  9499. cat > conftest.$ac_ext <<EOF
  9500. #line 11855 "configure"
  9501. #include "confdefs.h"
  9502. /* Override any gcc2 internal prototype to avoid an error. */
  9503. /* We use char because int might match the return type of a gcc2
  9504. builtin and then its argument prototype would still apply. */
  9505. char dgesv_();
  9506. int main() {
  9507. dgesv_()
  9508. ; return 0; }
  9509. EOF
  9510. if { (eval echo configure:11866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9511. rm -rf conftest*
  9512. eval "ac_cv_lib_$ac_lib_var=yes"
  9513. else
  9514. echo "configure: failed program was:" >&5
  9515. cat conftest.$ac_ext >&5
  9516. rm -rf conftest*
  9517. eval "ac_cv_lib_$ac_lib_var=no"
  9518. fi
  9519. rm -f conftest*
  9520. LIBS="$ac_save_LIBS"
  9521. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9522. echo "$ac_t""yes" 1>&6
  9523. LAPACKLIB="$LAPACKLIB -llapack -lg2c"
  9524. else
  9525. echo "$ac_t""no" 1>&6
  9526. LDFLAGS=${ac_save_ldflags}
  9527. { echo "configure: error: *** Unable to locate LAPACK library." 1>&2; exit 1; }
  9528. fi
  9529. fi
  9530. LDFLAGS=${ac_save_ldflags}
  9531. fi
  9532. cat >> confdefs.h <<\EOF
  9533. #define HAVE_LIBLAPACK 1
  9534. EOF
  9535. fi # $USE_LAPACK
  9536. fi # $USE_BLAS
  9537. # Done checking LAPACK
  9538. # Enable Cairo display driver option
  9539. echo $ac_n "checking whether to use Cairo""... $ac_c" 1>&6
  9540. echo "configure:11922: checking whether to use Cairo" >&5
  9541. echo "$ac_t"""$with_cairo"" 1>&6
  9542. case "$with_cairo" in
  9543. "no") USE_CAIRO= ;;
  9544. "yes") USE_CAIRO="1" ;;
  9545. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9546. esac
  9547. CAIROINC=
  9548. CAIROLIB=
  9549. if test -n "$USE_CAIRO"; then
  9550. cairo="cairo"
  9551. pkgs="cairo-ft cairo-fc cairo-pdf cairo-ps cairo-svg fontconfig"
  9552. if test -n "$USE_X11"; then
  9553. pkgs="$pkgs cairo-xlib cairo-xlib-xrender"
  9554. fi
  9555. for pkg in $pkgs ; do
  9556. if pkg-config --exists $pkg ; then
  9557. cairo="$cairo $pkg"
  9558. fi
  9559. done
  9560. # With Cairo includes directory
  9561. #FIXME: somehow quote dirs with spaces in $cairo ?
  9562. CAIROINC=`pkg-config --cflags $cairo`
  9563. echo $ac_n "checking for location of cairo includes""... $ac_c" 1>&6
  9564. echo "configure:11954: checking for location of cairo includes" >&5
  9565. case "$with_cairo_includes" in
  9566. y | ye | yes | n | no)
  9567. { echo "configure: error: *** You must supply a directory to --with-cairo-includes." 1>&2; exit 1; }
  9568. ;;
  9569. esac
  9570. echo "$ac_t""$with_cairo_includes" 1>&6
  9571. if test -n "$with_cairo_includes" ; then
  9572. for dir in $with_cairo_includes; do
  9573. if test -d "$dir"; then
  9574. CAIROINC="$CAIROINC -I$dir"
  9575. else
  9576. { echo "configure: error: *** cairo includes directory $dir does not exist." 1>&2; exit 1; }
  9577. fi
  9578. done
  9579. fi
  9580. ac_save_cppflags="$CPPFLAGS"
  9581. CPPFLAGS="$CAIROINC $CPPFLAGS"
  9582. for ac_hdr in cairo.h
  9583. do
  9584. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9585. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9586. echo "configure:11980: checking for $ac_hdr" >&5
  9587. cat > conftest.$ac_ext <<EOF
  9588. #line 11983 "configure"
  9589. #include "confdefs.h"
  9590. #include <$ac_hdr>
  9591. EOF
  9592. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9593. { (eval echo configure:11988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9594. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9595. if test -z "$ac_err"; then
  9596. rm -rf conftest*
  9597. eval "ac_cv_header_$ac_safe=yes"
  9598. else
  9599. echo "$ac_err" >&5
  9600. echo "configure: failed program was:" >&5
  9601. cat conftest.$ac_ext >&5
  9602. rm -rf conftest*
  9603. eval "ac_cv_header_$ac_safe=no"
  9604. fi
  9605. rm -f conftest*
  9606. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9607. echo "$ac_t""yes" 1>&6
  9608. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9609. cat >> confdefs.h <<EOF
  9610. #define $ac_tr_hdr 1
  9611. EOF
  9612. else
  9613. echo "$ac_t""no" 1>&6
  9614. { echo "configure: error: *** Unable to locate Cairo includes." 1>&2; exit 1; }
  9615. fi
  9616. done
  9617. CPPFLAGS=$ac_save_cppflags
  9618. # With Cairo library directory
  9619. CAIROLIB=`pkg-config --libs $cairo`
  9620. echo $ac_n "checking for location of cairo library""... $ac_c" 1>&6
  9621. echo "configure:12024: checking for location of cairo library" >&5
  9622. case "$with_cairo_libs" in
  9623. y | ye | yes | n | no)
  9624. { echo "configure: error: *** You must supply a directory to --with-cairo-libs." 1>&2; exit 1; }
  9625. ;;
  9626. esac
  9627. echo "$ac_t""$with_cairo_libs" 1>&6
  9628. if test -n "$with_cairo_libs"; then
  9629. for dir in $with_cairo_libs; do
  9630. if test -d "$dir"; then
  9631. CAIROLIB="$CAIROLIB -L$dir"
  9632. else
  9633. { echo "configure: error: *** cairo library directory $dir does not exist." 1>&2; exit 1; }
  9634. fi
  9635. done
  9636. fi
  9637. echo $ac_n "checking for cairo linking flags""... $ac_c" 1>&6
  9638. echo "configure:12044: checking for cairo linking flags" >&5
  9639. case "$with_cairo_ldflags" in
  9640. y | ye | yes | n | no)
  9641. { echo "configure: error: *** You must supply a directory to --with-cairo-ldflags." 1>&2; exit 1; }
  9642. ;;
  9643. esac
  9644. echo "$ac_t""$with_cairo_ldflags" 1>&6
  9645. CAIROLIB="$CAIROLIB $with_cairo_ldflags"
  9646. ac_save_libs="$LIBS"
  9647. ac_save_ldflags="$LDFLAGS"
  9648. LIBS=" $CAIROLIB $LIBS"
  9649. LDFLAGS=" $LDFLAGS"
  9650. echo $ac_n "checking for cairo_create""... $ac_c" 1>&6
  9651. echo "configure:12060: checking for cairo_create" >&5
  9652. cat > conftest.$ac_ext <<EOF
  9653. #line 12063 "configure"
  9654. #include "confdefs.h"
  9655. /* System header to define __stub macros and hopefully few prototypes,
  9656. which can conflict with char cairo_create(); below. */
  9657. #include <assert.h>
  9658. /* Override any gcc2 internal prototype to avoid an error. */
  9659. /* We use char because int might match the return type of a gcc2
  9660. builtin and then its argument prototype would still apply. */
  9661. char cairo_create();
  9662. int main() {
  9663. /* The GNU C library defines this for functions which it implements
  9664. to always fail with ENOSYS. Some functions are actually named
  9665. something starting with __ and the normal name is an alias. */
  9666. #if defined (__stub_cairo_create) || defined (__stub___cairo_create)
  9667. choke me
  9668. #else
  9669. cairo_create();
  9670. #endif
  9671. ; return 0; }
  9672. EOF
  9673. if { (eval echo configure:12086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9674. rm -rf conftest*
  9675. eval "ac_cv_func_cairo_create=yes"
  9676. else
  9677. echo "configure: failed program was:" >&5
  9678. cat conftest.$ac_ext >&5
  9679. rm -rf conftest*
  9680. eval "ac_cv_func_cairo_create=no"
  9681. fi
  9682. rm -f conftest*
  9683. if eval "test \"`echo '$ac_cv_func_'cairo_create`\" = yes"; then
  9684. echo "$ac_t""yes" 1>&6
  9685. :
  9686. else
  9687. echo "$ac_t""no" 1>&6
  9688. { echo "configure: error: *** Unable to locate cairo_create." 1>&2; exit 1; }
  9689. fi
  9690. LIBS=${ac_save_libs}
  9691. LDFLAGS=${ac_save_ldflags}
  9692. ac_save_libs="$LIBS"
  9693. ac_save_ldflags="$LDFLAGS"
  9694. LIBS=" $CAIROLIB $LIBS"
  9695. LDFLAGS=" $LDFLAGS"
  9696. echo $ac_n "checking for cairo_xlib_surface_create_with_xrender_format""... $ac_c" 1>&6
  9697. echo "configure:12120: checking for cairo_xlib_surface_create_with_xrender_format" >&5
  9698. cat > conftest.$ac_ext <<EOF
  9699. #line 12123 "configure"
  9700. #include "confdefs.h"
  9701. /* System header to define __stub macros and hopefully few prototypes,
  9702. which can conflict with char cairo_xlib_surface_create_with_xrender_format(); below. */
  9703. #include <assert.h>
  9704. /* Override any gcc2 internal prototype to avoid an error. */
  9705. /* We use char because int might match the return type of a gcc2
  9706. builtin and then its argument prototype would still apply. */
  9707. char cairo_xlib_surface_create_with_xrender_format();
  9708. int main() {
  9709. /* The GNU C library defines this for functions which it implements
  9710. to always fail with ENOSYS. Some functions are actually named
  9711. something starting with __ and the normal name is an alias. */
  9712. #if defined (__stub_cairo_xlib_surface_create_with_xrender_format) || defined (__stub___cairo_xlib_surface_create_with_xrender_format)
  9713. choke me
  9714. #else
  9715. cairo_xlib_surface_create_with_xrender_format();
  9716. #endif
  9717. ; return 0; }
  9718. EOF
  9719. if { (eval echo configure:12146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9720. rm -rf conftest*
  9721. eval "ac_cv_func_cairo_xlib_surface_create_with_xrender_format=yes"
  9722. else
  9723. echo "configure: failed program was:" >&5
  9724. cat conftest.$ac_ext >&5
  9725. rm -rf conftest*
  9726. eval "ac_cv_func_cairo_xlib_surface_create_with_xrender_format=no"
  9727. fi
  9728. rm -f conftest*
  9729. if eval "test \"`echo '$ac_cv_func_'cairo_xlib_surface_create_with_xrender_format`\" = yes"; then
  9730. echo "$ac_t""yes" 1>&6
  9731. CAIRO_HAS_XRENDER=1
  9732. else
  9733. echo "$ac_t""no" 1>&6
  9734. CAIRO_HAS_XRENDER=
  9735. fi
  9736. LIBS=${ac_save_libs}
  9737. LDFLAGS=${ac_save_ldflags}
  9738. ac_save_libs="$LIBS"
  9739. ac_save_ldflags="$LDFLAGS"
  9740. LIBS=" $CAIROLIB $LIBS"
  9741. LDFLAGS=" $LDFLAGS"
  9742. echo $ac_n "checking for cairo_xlib_surface_get_xrender_format""... $ac_c" 1>&6
  9743. echo "configure:12179: checking for cairo_xlib_surface_get_xrender_format" >&5
  9744. cat > conftest.$ac_ext <<EOF
  9745. #line 12182 "configure"
  9746. #include "confdefs.h"
  9747. /* System header to define __stub macros and hopefully few prototypes,
  9748. which can conflict with char cairo_xlib_surface_get_xrender_format(); below. */
  9749. #include <assert.h>
  9750. /* Override any gcc2 internal prototype to avoid an error. */
  9751. /* We use char because int might match the return type of a gcc2
  9752. builtin and then its argument prototype would still apply. */
  9753. char cairo_xlib_surface_get_xrender_format();
  9754. int main() {
  9755. /* The GNU C library defines this for functions which it implements
  9756. to always fail with ENOSYS. Some functions are actually named
  9757. something starting with __ and the normal name is an alias. */
  9758. #if defined (__stub_cairo_xlib_surface_get_xrender_format) || defined (__stub___cairo_xlib_surface_get_xrender_format)
  9759. choke me
  9760. #else
  9761. cairo_xlib_surface_get_xrender_format();
  9762. #endif
  9763. ; return 0; }
  9764. EOF
  9765. if { (eval echo configure:12205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9766. rm -rf conftest*
  9767. eval "ac_cv_func_cairo_xlib_surface_get_xrender_format=yes"
  9768. else
  9769. echo "configure: failed program was:" >&5
  9770. cat conftest.$ac_ext >&5
  9771. rm -rf conftest*
  9772. eval "ac_cv_func_cairo_xlib_surface_get_xrender_format=no"
  9773. fi
  9774. rm -f conftest*
  9775. if eval "test \"`echo '$ac_cv_func_'cairo_xlib_surface_get_xrender_format`\" = yes"; then
  9776. echo "$ac_t""yes" 1>&6
  9777. CAIRO_HAS_XRENDER_SURFACE=1
  9778. else
  9779. echo "$ac_t""no" 1>&6
  9780. CAIRO_HAS_XRENDER_SURFACE=
  9781. fi
  9782. LIBS=${ac_save_libs}
  9783. LDFLAGS=${ac_save_ldflags}
  9784. CAIROLIB="$CAIROLIB $CAIROLDFLAGS"
  9785. fi # $USE_CAIRO
  9786. # Done checking Cairo
  9787. # Enable FreeType option
  9788. echo $ac_n "checking whether to use FreeType""... $ac_c" 1>&6
  9789. echo "configure:12247: checking whether to use FreeType" >&5
  9790. echo "$ac_t"""$with_freetype"" 1>&6
  9791. case "$with_freetype" in
  9792. "no") USE_FREETYPE= ;;
  9793. "yes") USE_FREETYPE="1" ;;
  9794. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9795. esac
  9796. FTINC=
  9797. FTLIB=
  9798. if test -n "$USE_FREETYPE"; then
  9799. # With FreeType includes directory
  9800. echo $ac_n "checking for location of FreeType includes""... $ac_c" 1>&6
  9801. echo "configure:12266: checking for location of FreeType includes" >&5
  9802. case "$with_freetype_includes" in
  9803. y | ye | yes | n | no)
  9804. { echo "configure: error: *** You must supply a directory to --with-freetype-includes." 1>&2; exit 1; }
  9805. ;;
  9806. esac
  9807. echo "$ac_t""$with_freetype_includes" 1>&6
  9808. if test -n "$with_freetype_includes" ; then
  9809. for dir in $with_freetype_includes; do
  9810. if test -d "$dir"; then
  9811. FTINC="$FTINC -I$dir"
  9812. else
  9813. { echo "configure: error: *** FreeType includes directory $dir does not exist." 1>&2; exit 1; }
  9814. fi
  9815. done
  9816. fi
  9817. ac_save_cppflags="$CPPFLAGS"
  9818. CPPFLAGS="$FTINC $CPPFLAGS"
  9819. for ac_hdr in ft2build.h
  9820. do
  9821. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9822. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9823. echo "configure:12292: checking for $ac_hdr" >&5
  9824. cat > conftest.$ac_ext <<EOF
  9825. #line 12295 "configure"
  9826. #include "confdefs.h"
  9827. #include <$ac_hdr>
  9828. EOF
  9829. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9830. { (eval echo configure:12300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9831. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9832. if test -z "$ac_err"; then
  9833. rm -rf conftest*
  9834. eval "ac_cv_header_$ac_safe=yes"
  9835. else
  9836. echo "$ac_err" >&5
  9837. echo "configure: failed program was:" >&5
  9838. cat conftest.$ac_ext >&5
  9839. rm -rf conftest*
  9840. eval "ac_cv_header_$ac_safe=no"
  9841. fi
  9842. rm -f conftest*
  9843. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9844. echo "$ac_t""yes" 1>&6
  9845. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9846. cat >> confdefs.h <<EOF
  9847. #define $ac_tr_hdr 1
  9848. EOF
  9849. else
  9850. echo "$ac_t""no" 1>&6
  9851. { echo "configure: error: *** Unable to locate FreeType includes." 1>&2; exit 1; }
  9852. fi
  9853. done
  9854. CPPFLAGS=$ac_save_cppflags
  9855. # With FreeType library directory
  9856. echo $ac_n "checking for location of FreeType library""... $ac_c" 1>&6
  9857. echo "configure:12334: checking for location of FreeType library" >&5
  9858. case "$with_freetype_libs" in
  9859. y | ye | yes | n | no)
  9860. { echo "configure: error: *** You must supply a directory to --with-freetype-libs." 1>&2; exit 1; }
  9861. ;;
  9862. esac
  9863. echo "$ac_t""$with_freetype_libs" 1>&6
  9864. if test -n "$with_freetype_libs"; then
  9865. for dir in $with_freetype_libs; do
  9866. if test -d "$dir"; then
  9867. FTLIB="$FTLIB -L$dir"
  9868. else
  9869. { echo "configure: error: *** FreeType library directory $dir does not exist." 1>&2; exit 1; }
  9870. fi
  9871. done
  9872. fi
  9873. ac_save_ldflags="$LDFLAGS"
  9874. LDFLAGS="$FTLIB $LDFLAGS"
  9875. echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
  9876. echo "configure:12359: checking for FT_Init_FreeType in -lfreetype" >&5
  9877. ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
  9878. ac_save_LIBS="$LIBS"
  9879. LIBS="-lfreetype $LIBS"
  9880. cat > conftest.$ac_ext <<EOF
  9881. #line 12365 "configure"
  9882. #include "confdefs.h"
  9883. /* Override any gcc2 internal prototype to avoid an error. */
  9884. /* We use char because int might match the return type of a gcc2
  9885. builtin and then its argument prototype would still apply. */
  9886. char FT_Init_FreeType();
  9887. int main() {
  9888. FT_Init_FreeType()
  9889. ; return 0; }
  9890. EOF
  9891. if { (eval echo configure:12376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9892. rm -rf conftest*
  9893. eval "ac_cv_lib_$ac_lib_var=yes"
  9894. else
  9895. echo "configure: failed program was:" >&5
  9896. cat conftest.$ac_ext >&5
  9897. rm -rf conftest*
  9898. eval "ac_cv_lib_$ac_lib_var=no"
  9899. fi
  9900. rm -f conftest*
  9901. LIBS="$ac_save_LIBS"
  9902. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9903. echo "$ac_t""yes" 1>&6
  9904. FTLIB="$FTLIB -lfreetype "
  9905. else
  9906. echo "$ac_t""no" 1>&6
  9907. LDFLAGS=${ac_save_ldflags}
  9908. { echo "configure: error: *** Unable to locate FreeType library." 1>&2; exit 1; }
  9909. fi
  9910. LDFLAGS=${ac_save_ldflags}
  9911. fi # $USE_FREETYPE
  9912. # Done checking FreeType
  9913. # Enable NLS option
  9914. echo $ac_n "checking whether to use NLS""... $ac_c" 1>&6
  9915. echo "configure:12417: checking whether to use NLS" >&5
  9916. echo "$ac_t"""$with_nls"" 1>&6
  9917. case "$with_nls" in
  9918. "no") USE_NLS= ;;
  9919. "yes") USE_NLS="1" ;;
  9920. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9921. esac
  9922. INTLLIB=
  9923. HAVE_NLS=
  9924. if test -n "${USE_NLS}" ; then
  9925. cat >> confdefs.h <<\EOF
  9926. #define USE_NLS 1
  9927. EOF
  9928. echo $ac_n "checking for gettext""... $ac_c" 1>&6
  9929. echo "configure:12437: checking for gettext" >&5
  9930. cat > conftest.$ac_ext <<EOF
  9931. #line 12440 "configure"
  9932. #include "confdefs.h"
  9933. /* System header to define __stub macros and hopefully few prototypes,
  9934. which can conflict with char gettext(); below. */
  9935. #include <assert.h>
  9936. /* Override any gcc2 internal prototype to avoid an error. */
  9937. /* We use char because int might match the return type of a gcc2
  9938. builtin and then its argument prototype would still apply. */
  9939. char gettext();
  9940. int main() {
  9941. /* The GNU C library defines this for functions which it implements
  9942. to always fail with ENOSYS. Some functions are actually named
  9943. something starting with __ and the normal name is an alias. */
  9944. #if defined (__stub_gettext) || defined (__stub___gettext)
  9945. choke me
  9946. #else
  9947. gettext();
  9948. #endif
  9949. ; return 0; }
  9950. EOF
  9951. if { (eval echo configure:12463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9952. rm -rf conftest*
  9953. eval "ac_cv_func_gettext=yes"
  9954. else
  9955. echo "configure: failed program was:" >&5
  9956. cat conftest.$ac_ext >&5
  9957. rm -rf conftest*
  9958. eval "ac_cv_func_gettext=no"
  9959. fi
  9960. rm -f conftest*
  9961. if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
  9962. echo "$ac_t""yes" 1>&6
  9963. INTLLIB=
  9964. else
  9965. echo "$ac_t""no" 1>&6
  9966. echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
  9967. echo "configure:12481: checking for gettext in -lintl" >&5
  9968. ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
  9969. ac_save_LIBS="$LIBS"
  9970. LIBS="-lintl $LIBS"
  9971. cat > conftest.$ac_ext <<EOF
  9972. #line 12487 "configure"
  9973. #include "confdefs.h"
  9974. /* Override any gcc2 internal prototype to avoid an error. */
  9975. /* We use char because int might match the return type of a gcc2
  9976. builtin and then its argument prototype would still apply. */
  9977. char gettext();
  9978. int main() {
  9979. gettext()
  9980. ; return 0; }
  9981. EOF
  9982. if { (eval echo configure:12498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9983. rm -rf conftest*
  9984. eval "ac_cv_lib_$ac_lib_var=yes"
  9985. else
  9986. echo "configure: failed program was:" >&5
  9987. cat conftest.$ac_ext >&5
  9988. rm -rf conftest*
  9989. eval "ac_cv_lib_$ac_lib_var=no"
  9990. fi
  9991. rm -f conftest*
  9992. LIBS="$ac_save_LIBS"
  9993. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9994. echo "$ac_t""yes" 1>&6
  9995. INTLLIB=-lintl
  9996. else
  9997. echo "$ac_t""no" 1>&6
  9998. { echo "configure: error: *** Unable to locate gettext() function." 1>&2; exit 1; }
  9999. fi
  10000. fi
  10001. HAVE_NLS=1
  10002. fi
  10003. # Enable C++ option
  10004. echo $ac_n "checking whether to use C++""... $ac_c" 1>&6
  10005. echo "configure:12533: checking whether to use C++" >&5
  10006. echo "$ac_t"""$with_cxx"" 1>&6
  10007. case "$with_cxx" in
  10008. "no") USE_CXX= ;;
  10009. "yes") USE_CXX="1" ;;
  10010. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10011. esac
  10012. if test -n "$USE_CXX"; then
  10013. for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
  10014. do
  10015. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10016. set dummy $ac_prog; ac_word=$2
  10017. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  10018. echo "configure:12549: checking for $ac_word" >&5
  10019. if test -n "$CXX"; then
  10020. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10021. else
  10022. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  10023. ac_dummy="$PATH"
  10024. for ac_dir in $ac_dummy; do
  10025. test -z "$ac_dir" && ac_dir=.
  10026. if test -f $ac_dir/$ac_word; then
  10027. ac_cv_prog_CXX="$ac_prog"
  10028. break
  10029. fi
  10030. done
  10031. IFS="$ac_save_ifs"
  10032. fi
  10033. CXX="$ac_cv_prog_CXX"
  10034. if test -n "$CXX"; then
  10035. echo "$ac_t""$CXX" 1>&6
  10036. else
  10037. echo "$ac_t""no" 1>&6
  10038. fi
  10039. test -n "$CXX" && break
  10040. done
  10041. test -n "$CXX" || CXX="gcc"
  10042. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  10043. echo "configure:12578: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  10044. ac_ext=C
  10045. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  10046. ac_cpp='$CXXCPP $CPPFLAGS'
  10047. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  10048. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  10049. cross_compiling=$ac_cv_prog_cxx_cross
  10050. cat > conftest.$ac_ext << EOF
  10051. #line 12589 "configure"
  10052. #include "confdefs.h"
  10053. int main(){return(0);}
  10054. EOF
  10055. if { (eval echo configure:12594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10056. ac_cv_prog_cxx_works=yes
  10057. # If we can't run a trivial program, we are probably using a cross compiler.
  10058. if (./conftest; exit) 2>/dev/null; then
  10059. ac_cv_prog_cxx_cross=no
  10060. else
  10061. ac_cv_prog_cxx_cross=yes
  10062. fi
  10063. else
  10064. echo "configure: failed program was:" >&5
  10065. cat conftest.$ac_ext >&5
  10066. ac_cv_prog_cxx_works=no
  10067. fi
  10068. rm -fr conftest*
  10069. ac_ext=c
  10070. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  10071. ac_cpp='$CPP $CPPFLAGS'
  10072. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  10073. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  10074. cross_compiling=$ac_cv_prog_cc_cross
  10075. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  10076. if test $ac_cv_prog_cxx_works = no; then
  10077. { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  10078. fi
  10079. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  10080. echo "configure:12620: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  10081. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  10082. cross_compiling=$ac_cv_prog_cxx_cross
  10083. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  10084. echo "configure:12625: checking whether we are using GNU C++" >&5
  10085. cat > conftest.C <<EOF
  10086. #ifdef __GNUC__
  10087. yes;
  10088. #endif
  10089. EOF
  10090. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:12632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  10091. ac_cv_prog_gxx=yes
  10092. else
  10093. ac_cv_prog_gxx=no
  10094. fi
  10095. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  10096. if test $ac_cv_prog_gxx = yes; then
  10097. GXX=yes
  10098. else
  10099. GXX=
  10100. fi
  10101. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  10102. ac_save_CXXFLAGS="$CXXFLAGS"
  10103. CXXFLAGS=
  10104. echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  10105. echo "configure:12650: checking whether ${CXX-g++} accepts -g" >&5
  10106. echo 'void f(){}' > conftest.cc
  10107. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  10108. ac_cv_prog_cxx_g=yes
  10109. else
  10110. ac_cv_prog_cxx_g=no
  10111. fi
  10112. rm -f conftest*
  10113. echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  10114. if test "$ac_test_CXXFLAGS" = set; then
  10115. CXXFLAGS="$ac_save_CXXFLAGS"
  10116. elif test $ac_cv_prog_cxx_g = yes; then
  10117. if test "$GXX" = yes; then
  10118. CXXFLAGS="-g -O2"
  10119. else
  10120. CXXFLAGS="-g"
  10121. fi
  10122. else
  10123. if test "$GXX" = yes; then
  10124. CXXFLAGS="-O2"
  10125. else
  10126. CXXFLAGS=
  10127. fi
  10128. fi
  10129. else
  10130. CXX=
  10131. CXXFLAGS=
  10132. fi
  10133. # Done checking C++
  10134. # Enable openDWG option
  10135. echo $ac_n "checking whether to use openDWG""... $ac_c" 1>&6
  10136. echo "configure:12691: checking whether to use openDWG" >&5
  10137. echo "$ac_t"""$with_opendwg"" 1>&6
  10138. case "$with_opendwg" in
  10139. "no") USE_OPENDWG= ;;
  10140. "yes") USE_OPENDWG="1" ;;
  10141. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10142. esac
  10143. OPENDWGINCPATH=
  10144. OPENDWGLIBPATH=
  10145. OPENDWGLIB=
  10146. if test -n "${USE_OPENDWG}"; then
  10147. # With OPENDWG includes directory
  10148. echo $ac_n "checking for location of openDGW includes""... $ac_c" 1>&6
  10149. echo "configure:12711: checking for location of openDGW includes" >&5
  10150. case "$with_opendwg_includes" in
  10151. y | ye | yes | n | no)
  10152. { echo "configure: error: *** You must supply a directory to --with-opendwg-includes." 1>&2; exit 1; }
  10153. ;;
  10154. esac
  10155. echo "$ac_t""$with_opendwg_includes" 1>&6
  10156. if test -n "$with_opendwg_includes" ; then
  10157. for dir in $with_opendwg_includes; do
  10158. if test -d "$dir"; then
  10159. OPENDWGINCPATH="$OPENDWGINCPATH -I$dir"
  10160. else
  10161. { echo "configure: error: *** openDGW includes directory $dir does not exist." 1>&2; exit 1; }
  10162. fi
  10163. done
  10164. fi
  10165. ac_save_cppflags="$CPPFLAGS"
  10166. CPPFLAGS="$OPENDWGINCPATH $CPPFLAGS"
  10167. for ac_hdr in ad2.h
  10168. do
  10169. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10170. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10171. echo "configure:12737: checking for $ac_hdr" >&5
  10172. cat > conftest.$ac_ext <<EOF
  10173. #line 12740 "configure"
  10174. #include "confdefs.h"
  10175. #include <$ac_hdr>
  10176. EOF
  10177. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10178. { (eval echo configure:12745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10179. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10180. if test -z "$ac_err"; then
  10181. rm -rf conftest*
  10182. eval "ac_cv_header_$ac_safe=yes"
  10183. else
  10184. echo "$ac_err" >&5
  10185. echo "configure: failed program was:" >&5
  10186. cat conftest.$ac_ext >&5
  10187. rm -rf conftest*
  10188. eval "ac_cv_header_$ac_safe=no"
  10189. fi
  10190. rm -f conftest*
  10191. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10192. echo "$ac_t""yes" 1>&6
  10193. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10194. cat >> confdefs.h <<EOF
  10195. #define $ac_tr_hdr 1
  10196. EOF
  10197. else
  10198. echo "$ac_t""no" 1>&6
  10199. { echo "configure: error: *** Unable to locate openDWG includes." 1>&2; exit 1; }
  10200. fi
  10201. done
  10202. CPPFLAGS=$ac_save_cppflags
  10203. # With OPENDWG library directory
  10204. echo $ac_n "checking for location of openDWG library""... $ac_c" 1>&6
  10205. echo "configure:12779: checking for location of openDWG library" >&5
  10206. case "$with_opendwg_libs" in
  10207. y | ye | yes | n | no)
  10208. { echo "configure: error: *** You must supply a directory to --with-opendwg-libs." 1>&2; exit 1; }
  10209. ;;
  10210. esac
  10211. echo "$ac_t""$with_opendwg_libs" 1>&6
  10212. if test -n "$with_opendwg_libs"; then
  10213. for dir in $with_opendwg_libs; do
  10214. if test -d "$dir"; then
  10215. OPENDWGLIBPATH="$OPENDWGLIBPATH -L$dir"
  10216. else
  10217. { echo "configure: error: *** openDWG library directory $dir does not exist." 1>&2; exit 1; }
  10218. fi
  10219. done
  10220. fi
  10221. #search for ad2.a, ad3.a ... in openDWG toolkit directory:
  10222. #FIX ME how to program this test??
  10223. #LOC_CHECK_LIBS(ad?.a,adSeekLayer,openDWG,$OPENDWGLIBPATH,OPENDWGLIB,,)
  10224. #
  10225. #for now hack (but working):
  10226. TRUEOPENDWGLIBPATH=`echo "$OPENDWGLIBPATH" | cut -b3-`
  10227. adlib=`ls -1 "$TRUEOPENDWGLIBPATH"/ad?.a | tail -1`
  10228. OPENDWGLIB="$adlib"
  10229. fi # $USE_OPENDWG
  10230. # Done checking OPENDWG
  10231. # Enable pthread option
  10232. echo $ac_n "checking whether to use POSIX threads""... $ac_c" 1>&6
  10233. echo "configure:12820: checking whether to use POSIX threads" >&5
  10234. echo "$ac_t"""$with_pthread"" 1>&6
  10235. case "$with_pthread" in
  10236. "no") USE_PTHREAD= ;;
  10237. "yes") USE_PTHREAD="1" ;;
  10238. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10239. esac
  10240. PTHREADINCPATH=
  10241. PTHREADLIBPATH=
  10242. PTHREADLIB=
  10243. if test -n "$USE_PTHREAD"; then
  10244. # With pthread includes directory
  10245. echo $ac_n "checking for location of POSIX threads includes""... $ac_c" 1>&6
  10246. echo "configure:12840: checking for location of POSIX threads includes" >&5
  10247. case "$with_pthread_includes" in
  10248. y | ye | yes | n | no)
  10249. { echo "configure: error: *** You must supply a directory to --with-pthread-includes." 1>&2; exit 1; }
  10250. ;;
  10251. esac
  10252. echo "$ac_t""$with_pthread_includes" 1>&6
  10253. if test -n "$with_pthread_includes" ; then
  10254. for dir in $with_pthread_includes; do
  10255. if test -d "$dir"; then
  10256. PTHREADINCPATH="$PTHREADINCPATH -I$dir"
  10257. else
  10258. { echo "configure: error: *** POSIX threads includes directory $dir does not exist." 1>&2; exit 1; }
  10259. fi
  10260. done
  10261. fi
  10262. ac_save_cppflags="$CPPFLAGS"
  10263. CPPFLAGS="$PTHREADINCPATH $CPPFLAGS"
  10264. for ac_hdr in pthread.h
  10265. do
  10266. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10267. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10268. echo "configure:12866: checking for $ac_hdr" >&5
  10269. cat > conftest.$ac_ext <<EOF
  10270. #line 12869 "configure"
  10271. #include "confdefs.h"
  10272. #include <$ac_hdr>
  10273. EOF
  10274. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10275. { (eval echo configure:12874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10276. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10277. if test -z "$ac_err"; then
  10278. rm -rf conftest*
  10279. eval "ac_cv_header_$ac_safe=yes"
  10280. else
  10281. echo "$ac_err" >&5
  10282. echo "configure: failed program was:" >&5
  10283. cat conftest.$ac_ext >&5
  10284. rm -rf conftest*
  10285. eval "ac_cv_header_$ac_safe=no"
  10286. fi
  10287. rm -f conftest*
  10288. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10289. echo "$ac_t""yes" 1>&6
  10290. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10291. cat >> confdefs.h <<EOF
  10292. #define $ac_tr_hdr 1
  10293. EOF
  10294. else
  10295. echo "$ac_t""no" 1>&6
  10296. { echo "configure: error: *** Unable to locate POSIX threads includes." 1>&2; exit 1; }
  10297. fi
  10298. done
  10299. CPPFLAGS=$ac_save_cppflags
  10300. # With pthread library directory
  10301. echo $ac_n "checking for location of POSIX threads library""... $ac_c" 1>&6
  10302. echo "configure:12908: checking for location of POSIX threads library" >&5
  10303. case "$with_pthread_libs" in
  10304. y | ye | yes | n | no)
  10305. { echo "configure: error: *** You must supply a directory to --with-pthread-libs." 1>&2; exit 1; }
  10306. ;;
  10307. esac
  10308. echo "$ac_t""$with_pthread_libs" 1>&6
  10309. if test -n "$with_pthread_libs"; then
  10310. for dir in $with_pthread_libs; do
  10311. if test -d "$dir"; then
  10312. PTHREADLIBPATH="$PTHREADLIBPATH -L$dir"
  10313. else
  10314. { echo "configure: error: *** POSIX threads library directory $dir does not exist." 1>&2; exit 1; }
  10315. fi
  10316. done
  10317. fi
  10318. ac_save_libs="$LIBS"
  10319. ac_save_ldflags="$LDFLAGS"
  10320. LIBS=" $LIBS"
  10321. LDFLAGS=" $LDFLAGS"
  10322. echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
  10323. echo "configure:12933: checking for pthread_create" >&5
  10324. cat > conftest.$ac_ext <<EOF
  10325. #line 12936 "configure"
  10326. #include "confdefs.h"
  10327. /* System header to define __stub macros and hopefully few prototypes,
  10328. which can conflict with char pthread_create(); below. */
  10329. #include <assert.h>
  10330. /* Override any gcc2 internal prototype to avoid an error. */
  10331. /* We use char because int might match the return type of a gcc2
  10332. builtin and then its argument prototype would still apply. */
  10333. char pthread_create();
  10334. int main() {
  10335. /* The GNU C library defines this for functions which it implements
  10336. to always fail with ENOSYS. Some functions are actually named
  10337. something starting with __ and the normal name is an alias. */
  10338. #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
  10339. choke me
  10340. #else
  10341. pthread_create();
  10342. #endif
  10343. ; return 0; }
  10344. EOF
  10345. if { (eval echo configure:12959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10346. rm -rf conftest*
  10347. eval "ac_cv_func_pthread_create=yes"
  10348. else
  10349. echo "configure: failed program was:" >&5
  10350. cat conftest.$ac_ext >&5
  10351. rm -rf conftest*
  10352. eval "ac_cv_func_pthread_create=no"
  10353. fi
  10354. rm -f conftest*
  10355. if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
  10356. echo "$ac_t""yes" 1>&6
  10357. PTHREADLIB="$PTHREADLIB "
  10358. else
  10359. echo "$ac_t""no" 1>&6
  10360. ac_save_ldflags="$LDFLAGS"
  10361. LDFLAGS="$PTHREADLIBPATH $LDFLAGS"
  10362. echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
  10363. echo "configure:12986: checking for pthread_create in -lpthread" >&5
  10364. ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
  10365. ac_save_LIBS="$LIBS"
  10366. LIBS="-lpthread $LIBS"
  10367. cat > conftest.$ac_ext <<EOF
  10368. #line 12992 "configure"
  10369. #include "confdefs.h"
  10370. /* Override any gcc2 internal prototype to avoid an error. */
  10371. /* We use char because int might match the return type of a gcc2
  10372. builtin and then its argument prototype would still apply. */
  10373. char pthread_create();
  10374. int main() {
  10375. pthread_create()
  10376. ; return 0; }
  10377. EOF
  10378. if { (eval echo configure:13003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10379. rm -rf conftest*
  10380. eval "ac_cv_lib_$ac_lib_var=yes"
  10381. else
  10382. echo "configure: failed program was:" >&5
  10383. cat conftest.$ac_ext >&5
  10384. rm -rf conftest*
  10385. eval "ac_cv_lib_$ac_lib_var=no"
  10386. fi
  10387. rm -f conftest*
  10388. LIBS="$ac_save_LIBS"
  10389. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10390. echo "$ac_t""yes" 1>&6
  10391. PTHREADLIB="$PTHREADLIB -lpthread "
  10392. else
  10393. echo "$ac_t""no" 1>&6
  10394. LDFLAGS=${ac_save_ldflags}
  10395. { echo "configure: error: *** Unable to locate POSIX threads library." 1>&2; exit 1; }
  10396. fi
  10397. LDFLAGS=${ac_save_ldflags}
  10398. fi
  10399. LIBS=${ac_save_libs}
  10400. LDFLAGS=${ac_save_ldflags}
  10401. fi # $USE_PTHREAD
  10402. # Done checking pthread
  10403. # Enable OpenMP option
  10404. echo $ac_n "checking whether to use OpenMP""... $ac_c" 1>&6
  10405. echo "configure:13053: checking whether to use OpenMP" >&5
  10406. echo "$ac_t"""$with_openmp"" 1>&6
  10407. case "$with_openmp" in
  10408. "no") USE_OPENMP= ;;
  10409. "yes") USE_OPENMP="1" ;;
  10410. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10411. esac
  10412. OMPINCPATH=
  10413. OMPLIBPATH=
  10414. OMPLIB=
  10415. OMPCFLAGS=
  10416. if test -n "$USE_OPENMP"; then
  10417. # With OpenMP includes directory
  10418. echo $ac_n "checking for location of OpenMP includes""... $ac_c" 1>&6
  10419. echo "configure:13074: checking for location of OpenMP includes" >&5
  10420. case "$with_openmp_includes" in
  10421. y | ye | yes | n | no)
  10422. { echo "configure: error: *** You must supply a directory to --with-openmp-includes." 1>&2; exit 1; }
  10423. ;;
  10424. esac
  10425. echo "$ac_t""$with_openmp_includes" 1>&6
  10426. if test -n "$with_openmp_includes" ; then
  10427. for dir in $with_openmp_includes; do
  10428. if test -d "$dir"; then
  10429. OMPINCPATH="$OMPINCPATH -I$dir"
  10430. else
  10431. { echo "configure: error: *** OpenMP includes directory $dir does not exist." 1>&2; exit 1; }
  10432. fi
  10433. done
  10434. fi
  10435. ac_save_cppflags="$CPPFLAGS"
  10436. CPPFLAGS="$OMPINCPATH $CPPFLAGS"
  10437. for ac_hdr in omp.h
  10438. do
  10439. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10440. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10441. echo "configure:13100: checking for $ac_hdr" >&5
  10442. cat > conftest.$ac_ext <<EOF
  10443. #line 13103 "configure"
  10444. #include "confdefs.h"
  10445. #include <$ac_hdr>
  10446. EOF
  10447. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10448. { (eval echo configure:13108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10449. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10450. if test -z "$ac_err"; then
  10451. rm -rf conftest*
  10452. eval "ac_cv_header_$ac_safe=yes"
  10453. else
  10454. echo "$ac_err" >&5
  10455. echo "configure: failed program was:" >&5
  10456. cat conftest.$ac_ext >&5
  10457. rm -rf conftest*
  10458. eval "ac_cv_header_$ac_safe=no"
  10459. fi
  10460. rm -f conftest*
  10461. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10462. echo "$ac_t""yes" 1>&6
  10463. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10464. cat >> confdefs.h <<EOF
  10465. #define $ac_tr_hdr 1
  10466. EOF
  10467. else
  10468. echo "$ac_t""no" 1>&6
  10469. { echo "configure: error: *** Unable to locate OpenMP includes." 1>&2; exit 1; }
  10470. fi
  10471. done
  10472. CPPFLAGS=$ac_save_cppflags
  10473. # With OpenMP library directory
  10474. # GCC et al.: -lgomp
  10475. # Solaris cc: -lmtsk
  10476. # AIX xlc: -lxlsmp
  10477. # SGI IRIX 6.5 MIPSpro C/C++: -lmp
  10478. echo $ac_n "checking for location of OpenMP library""... $ac_c" 1>&6
  10479. echo "configure:13146: checking for location of OpenMP library" >&5
  10480. case "$with_openmp_libs" in
  10481. y | ye | yes | n | no)
  10482. { echo "configure: error: *** You must supply a directory to --with-openmp-libs." 1>&2; exit 1; }
  10483. ;;
  10484. esac
  10485. echo "$ac_t""$with_openmp_libs" 1>&6
  10486. if test -n "$with_openmp_libs"; then
  10487. for dir in $with_openmp_libs; do
  10488. if test -d "$dir"; then
  10489. OMPLIBPATH="$OMPLIBPATH -L$dir"
  10490. else
  10491. { echo "configure: error: *** OpenMP library directory $dir does not exist." 1>&2; exit 1; }
  10492. fi
  10493. done
  10494. fi
  10495. ac_save_libs="$LIBS"
  10496. ac_save_ldflags="$LDFLAGS"
  10497. LIBS=" $LIBS"
  10498. LDFLAGS=" $LDFLAGS"
  10499. echo $ac_n "checking for GOMP_parallel_start""... $ac_c" 1>&6
  10500. echo "configure:13171: checking for GOMP_parallel_start" >&5
  10501. cat > conftest.$ac_ext <<EOF
  10502. #line 13174 "configure"
  10503. #include "confdefs.h"
  10504. /* System header to define __stub macros and hopefully few prototypes,
  10505. which can conflict with char GOMP_parallel_start(); below. */
  10506. #include <assert.h>
  10507. /* Override any gcc2 internal prototype to avoid an error. */
  10508. /* We use char because int might match the return type of a gcc2
  10509. builtin and then its argument prototype would still apply. */
  10510. char GOMP_parallel_start();
  10511. int main() {
  10512. /* The GNU C library defines this for functions which it implements
  10513. to always fail with ENOSYS. Some functions are actually named
  10514. something starting with __ and the normal name is an alias. */
  10515. #if defined (__stub_GOMP_parallel_start) || defined (__stub___GOMP_parallel_start)
  10516. choke me
  10517. #else
  10518. GOMP_parallel_start();
  10519. #endif
  10520. ; return 0; }
  10521. EOF
  10522. if { (eval echo configure:13197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10523. rm -rf conftest*
  10524. eval "ac_cv_func_GOMP_parallel_start=yes"
  10525. else
  10526. echo "configure: failed program was:" >&5
  10527. cat conftest.$ac_ext >&5
  10528. rm -rf conftest*
  10529. eval "ac_cv_func_GOMP_parallel_start=no"
  10530. fi
  10531. rm -f conftest*
  10532. if eval "test \"`echo '$ac_cv_func_'GOMP_parallel_start`\" = yes"; then
  10533. echo "$ac_t""yes" 1>&6
  10534. OMPLIB="$OMPLIB "
  10535. else
  10536. echo "$ac_t""no" 1>&6
  10537. ac_save_ldflags="$LDFLAGS"
  10538. LDFLAGS="$OMPLIBPATH $LDFLAGS"
  10539. echo $ac_n "checking for GOMP_parallel_start in -lgomp""... $ac_c" 1>&6
  10540. echo "configure:13224: checking for GOMP_parallel_start in -lgomp" >&5
  10541. ac_lib_var=`echo gomp'_'GOMP_parallel_start | sed 'y%./+-%__p_%'`
  10542. ac_save_LIBS="$LIBS"
  10543. LIBS="-lgomp $LIBS"
  10544. cat > conftest.$ac_ext <<EOF
  10545. #line 13230 "configure"
  10546. #include "confdefs.h"
  10547. /* Override any gcc2 internal prototype to avoid an error. */
  10548. /* We use char because int might match the return type of a gcc2
  10549. builtin and then its argument prototype would still apply. */
  10550. char GOMP_parallel_start();
  10551. int main() {
  10552. GOMP_parallel_start()
  10553. ; return 0; }
  10554. EOF
  10555. if { (eval echo configure:13241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10556. rm -rf conftest*
  10557. eval "ac_cv_lib_$ac_lib_var=yes"
  10558. else
  10559. echo "configure: failed program was:" >&5
  10560. cat conftest.$ac_ext >&5
  10561. rm -rf conftest*
  10562. eval "ac_cv_lib_$ac_lib_var=no"
  10563. fi
  10564. rm -f conftest*
  10565. LIBS="$ac_save_LIBS"
  10566. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10567. echo "$ac_t""yes" 1>&6
  10568. OMPLIB="$OMPLIB -lgomp "
  10569. else
  10570. echo "$ac_t""no" 1>&6
  10571. LDFLAGS=${ac_save_ldflags}
  10572. { echo "configure: error: *** Unable to locate OpenMP library." 1>&2; exit 1; }
  10573. fi
  10574. LDFLAGS=${ac_save_ldflags}
  10575. fi
  10576. LIBS=${ac_save_libs}
  10577. LDFLAGS=${ac_save_ldflags}
  10578. # compiler dependent
  10579. #if test ${CC} = "gcc" ; then
  10580. if test x$GCC = xyes ; then
  10581. # GNU C compiler (>= 4.2.1)
  10582. OMPCFLAGS=-fopenmp
  10583. elif test ${CC} = "icc" ; then
  10584. # Intel compiler
  10585. OMPCFLAGS=-openmp
  10586. elif test ${CC} = "opencc" ; then
  10587. # AMD's x86 Open64 compiler
  10588. OMPCFLAGS=-mp
  10589. elif test ${CC} = "pgcc" ; then
  10590. # Portland Group's compiler
  10591. OMPCFLAGS=-mp
  10592. # ... anybody else?
  10593. fi
  10594. # try to build a test program with "$CC $OMPCLFAGS" to confirm it works
  10595. #...how?
  10596. #echo "int main() {return 0;}" > test.c
  10597. #$CC $OMPCLFAGS test.c -o test
  10598. fi # $USE_OPENMP
  10599. # Done checking OpenMP
  10600. # Enable OpenCL option
  10601. echo $ac_n "checking whether to use OpenCL""... $ac_c" 1>&6
  10602. echo "configure:13314: checking whether to use OpenCL" >&5
  10603. echo "$ac_t"""$with_opencl"" 1>&6
  10604. case "$with_opencl" in
  10605. "no") USE_OPENCL= ;;
  10606. "yes") USE_OPENCL="1" ;;
  10607. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10608. esac
  10609. OCLINCPATH=
  10610. OCLLIBPATH=
  10611. OCLLIB=
  10612. if test -n "$USE_OPENCL"; then
  10613. # With OpenCL includes directory
  10614. echo $ac_n "checking for location of OpenCL includes""... $ac_c" 1>&6
  10615. echo "configure:13334: checking for location of OpenCL includes" >&5
  10616. case "$with_opencl_includes" in
  10617. y | ye | yes | n | no)
  10618. { echo "configure: error: *** You must supply a directory to --with-opencl-includes." 1>&2; exit 1; }
  10619. ;;
  10620. esac
  10621. echo "$ac_t""$with_opencl_includes" 1>&6
  10622. if test -n "$with_opencl_includes" ; then
  10623. for dir in $with_opencl_includes; do
  10624. if test -d "$dir"; then
  10625. OCLINCPATH="$OCLINCPATH -I$dir"
  10626. else
  10627. { echo "configure: error: *** OpenCL includes directory $dir does not exist." 1>&2; exit 1; }
  10628. fi
  10629. done
  10630. fi
  10631. if test -n "$MACOSX_APP" ; then
  10632. ac_save_cppflags="$CPPFLAGS"
  10633. CPPFLAGS="$OCLINCPATH $CPPFLAGS"
  10634. for ac_hdr in OpenCL/opencl.h
  10635. do
  10636. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10637. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10638. echo "configure:13361: checking for $ac_hdr" >&5
  10639. cat > conftest.$ac_ext <<EOF
  10640. #line 13364 "configure"
  10641. #include "confdefs.h"
  10642. #include <$ac_hdr>
  10643. EOF
  10644. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10645. { (eval echo configure:13369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10646. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10647. if test -z "$ac_err"; then
  10648. rm -rf conftest*
  10649. eval "ac_cv_header_$ac_safe=yes"
  10650. else
  10651. echo "$ac_err" >&5
  10652. echo "configure: failed program was:" >&5
  10653. cat conftest.$ac_ext >&5
  10654. rm -rf conftest*
  10655. eval "ac_cv_header_$ac_safe=no"
  10656. fi
  10657. rm -f conftest*
  10658. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10659. echo "$ac_t""yes" 1>&6
  10660. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10661. cat >> confdefs.h <<EOF
  10662. #define $ac_tr_hdr 1
  10663. EOF
  10664. else
  10665. echo "$ac_t""no" 1>&6
  10666. { echo "configure: error: *** Unable to locate OpenCL includes." 1>&2; exit 1; }
  10667. fi
  10668. done
  10669. CPPFLAGS=$ac_save_cppflags
  10670. # With OpenCL library directory
  10671. ### FIXME: ###
  10672. #LOC_CHECK_FRAMEWORK_PATH(opencl,OpenCL,OPENCLPATH)
  10673. # last term in following would become ',$OPENCLPATH)' if above is uncommented
  10674. ac_save_libs="$LIBS"
  10675. ac_save_ldflags="$LDFLAGS"
  10676. LIBS="-framework OpenCL $LIBS"
  10677. LDFLAGS=" $LDFLAGS"
  10678. echo $ac_n "checking for clGetPlatformInfo""... $ac_c" 1>&6
  10679. echo "configure:13409: checking for clGetPlatformInfo" >&5
  10680. cat > conftest.$ac_ext <<EOF
  10681. #line 13412 "configure"
  10682. #include "confdefs.h"
  10683. /* System header to define __stub macros and hopefully few prototypes,
  10684. which can conflict with char clGetPlatformInfo(); below. */
  10685. #include <assert.h>
  10686. /* Override any gcc2 internal prototype to avoid an error. */
  10687. /* We use char because int might match the return type of a gcc2
  10688. builtin and then its argument prototype would still apply. */
  10689. char clGetPlatformInfo();
  10690. int main() {
  10691. /* The GNU C library defines this for functions which it implements
  10692. to always fail with ENOSYS. Some functions are actually named
  10693. something starting with __ and the normal name is an alias. */
  10694. #if defined (__stub_clGetPlatformInfo) || defined (__stub___clGetPlatformInfo)
  10695. choke me
  10696. #else
  10697. clGetPlatformInfo();
  10698. #endif
  10699. ; return 0; }
  10700. EOF
  10701. if { (eval echo configure:13435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10702. rm -rf conftest*
  10703. eval "ac_cv_func_clGetPlatformInfo=yes"
  10704. else
  10705. echo "configure: failed program was:" >&5
  10706. cat conftest.$ac_ext >&5
  10707. rm -rf conftest*
  10708. eval "ac_cv_func_clGetPlatformInfo=no"
  10709. fi
  10710. rm -f conftest*
  10711. if eval "test \"`echo '$ac_cv_func_'clGetPlatformInfo`\" = yes"; then
  10712. echo "$ac_t""yes" 1>&6
  10713. OCLLIB="$OCLLIB -framework OpenCL"
  10714. else
  10715. echo "$ac_t""no" 1>&6
  10716. { echo "configure: error: *** Unable to locate OpenCL library." 1>&2; exit 1; }
  10717. fi
  10718. LIBS=${ac_save_libs}
  10719. LDFLAGS=${ac_save_ldflags}
  10720. else
  10721. ac_save_cppflags="$CPPFLAGS"
  10722. CPPFLAGS="$OCLINCPATH $CPPFLAGS"
  10723. for ac_hdr in CL/cl.h
  10724. do
  10725. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10726. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10727. echo "configure:13474: checking for $ac_hdr" >&5
  10728. cat > conftest.$ac_ext <<EOF
  10729. #line 13477 "configure"
  10730. #include "confdefs.h"
  10731. #include <$ac_hdr>
  10732. EOF
  10733. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10734. { (eval echo configure:13482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10735. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10736. if test -z "$ac_err"; then
  10737. rm -rf conftest*
  10738. eval "ac_cv_header_$ac_safe=yes"
  10739. else
  10740. echo "$ac_err" >&5
  10741. echo "configure: failed program was:" >&5
  10742. cat conftest.$ac_ext >&5
  10743. rm -rf conftest*
  10744. eval "ac_cv_header_$ac_safe=no"
  10745. fi
  10746. rm -f conftest*
  10747. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10748. echo "$ac_t""yes" 1>&6
  10749. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10750. cat >> confdefs.h <<EOF
  10751. #define $ac_tr_hdr 1
  10752. EOF
  10753. else
  10754. echo "$ac_t""no" 1>&6
  10755. { echo "configure: error: *** Unable to locate OpenCL includes." 1>&2; exit 1; }
  10756. fi
  10757. done
  10758. CPPFLAGS=$ac_save_cppflags
  10759. # With OpenCL library directory
  10760. echo $ac_n "checking for location of OpenCL library""... $ac_c" 1>&6
  10761. echo "configure:13515: checking for location of OpenCL library" >&5
  10762. case "$with_opencl_libs" in
  10763. y | ye | yes | n | no)
  10764. { echo "configure: error: *** You must supply a directory to --with-opencl-libs." 1>&2; exit 1; }
  10765. ;;
  10766. esac
  10767. echo "$ac_t""$with_opencl_libs" 1>&6
  10768. if test -n "$with_opencl_libs"; then
  10769. for dir in $with_opencl_libs; do
  10770. if test -d "$dir"; then
  10771. OCLLIBPATH="$OCLLIBPATH -L$dir"
  10772. else
  10773. { echo "configure: error: *** OpenCL library directory $dir does not exist." 1>&2; exit 1; }
  10774. fi
  10775. done
  10776. fi
  10777. ac_save_ldflags="$LDFLAGS"
  10778. LDFLAGS="$OCLLIBPATH $LDFLAGS"
  10779. echo $ac_n "checking for clGetPlatformInfo in -lOpenCL""... $ac_c" 1>&6
  10780. echo "configure:13539: checking for clGetPlatformInfo in -lOpenCL" >&5
  10781. ac_lib_var=`echo OpenCL'_'clGetPlatformInfo | sed 'y%./+-%__p_%'`
  10782. ac_save_LIBS="$LIBS"
  10783. LIBS="-lOpenCL $LIBS"
  10784. cat > conftest.$ac_ext <<EOF
  10785. #line 13545 "configure"
  10786. #include "confdefs.h"
  10787. /* Override any gcc2 internal prototype to avoid an error. */
  10788. /* We use char because int might match the return type of a gcc2
  10789. builtin and then its argument prototype would still apply. */
  10790. char clGetPlatformInfo();
  10791. int main() {
  10792. clGetPlatformInfo()
  10793. ; return 0; }
  10794. EOF
  10795. if { (eval echo configure:13556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10796. rm -rf conftest*
  10797. eval "ac_cv_lib_$ac_lib_var=yes"
  10798. else
  10799. echo "configure: failed program was:" >&5
  10800. cat conftest.$ac_ext >&5
  10801. rm -rf conftest*
  10802. eval "ac_cv_lib_$ac_lib_var=no"
  10803. fi
  10804. rm -f conftest*
  10805. LIBS="$ac_save_LIBS"
  10806. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10807. echo "$ac_t""yes" 1>&6
  10808. OCLLIB="$OCLLIB -lOpenCL "
  10809. else
  10810. echo "$ac_t""no" 1>&6
  10811. LDFLAGS=${ac_save_ldflags}
  10812. { echo "configure: error: *** Unable to locate OpenCL library." 1>&2; exit 1; }
  10813. fi
  10814. LDFLAGS=${ac_save_ldflags}
  10815. # expanded symbol check: yes? no?
  10816. #LOC_CHECK_FUNC(clGetPlatformInfo,OpenCL functions,OCLLIB,,,,,[
  10817. #LOC_CHECK_LIBS(OpenCL,clGetPlatformInfo,OpenCL,$OCLLIBPATH,OCLLIB,,,)
  10818. #])
  10819. fi
  10820. fi # $USE_OPENCL
  10821. # Done checking OpenCL
  10822. # Enable LFS (from cdr-tools, tar, and autoconf 2.68)
  10823. # Check whether --enable-largefile or --disable-largefile was given.
  10824. if test "${enable_largefile+set}" = set; then
  10825. enableval="$enable_largefile"
  10826. :
  10827. fi
  10828. LFS_CFLAGS=
  10829. if test "$enable_largefile" != no; then
  10830. ac_save_cflags=$CFLAGS
  10831. if test "`which getconf 2>&5`" ; then
  10832. LFS_CFLAGS=`getconf LFS_CFLAGS 2>&5`
  10833. CFLAGS="$LFS_CFLAGS $ac_save_cflags"
  10834. fi
  10835. echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
  10836. echo "configure:13616: checking for special C compiler options needed for large files" >&5
  10837. ac_cv_sys_largefile_CC=no
  10838. largefile_cc_opt=""
  10839. if test "$GCC" != yes; then
  10840. # IRIX 6.2 and later do not support large files by default,
  10841. # so use the C compiler's -n32 option if that helps.
  10842. cat > conftest.$ac_ext <<EOF
  10843. #line 13624 "configure"
  10844. #include "confdefs.h"
  10845. #include <sys/types.h>
  10846. /* Check that off_t can represent 2**63 - 1 correctly.
  10847. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10848. since some C++ compilers masquerading as C compilers
  10849. incorrectly reject 9223372036854775807. */
  10850. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10851. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10852. && LARGE_OFF_T % 2147483647 == 1)
  10853. ? 1 : -1];
  10854. int main() {
  10855. ; return 0; }
  10856. EOF
  10857. if { (eval echo configure:13640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10858. :
  10859. else
  10860. echo "configure: failed program was:" >&5
  10861. cat conftest.$ac_ext >&5
  10862. rm -rf conftest*
  10863. ac_save_CC="${CC-cc}"
  10864. CC="$CC -n32"
  10865. cat > conftest.$ac_ext <<EOF
  10866. #line 13649 "configure"
  10867. #include "confdefs.h"
  10868. #include <sys/types.h>
  10869. /* Check that off_t can represent 2**63 - 1 correctly.
  10870. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10871. since some C++ compilers masquerading as C compilers
  10872. incorrectly reject 9223372036854775807. */
  10873. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10874. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10875. && LARGE_OFF_T % 2147483647 == 1)
  10876. ? 1 : -1];
  10877. int main() {
  10878. ; return 0; }
  10879. EOF
  10880. if { (eval echo configure:13665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10881. rm -rf conftest*
  10882. ac_cv_sys_largefile_CC=' -n32'
  10883. else
  10884. echo "configure: failed program was:" >&5
  10885. cat conftest.$ac_ext >&5
  10886. fi
  10887. rm -f conftest*
  10888. CC="$ac_save_CC"
  10889. fi
  10890. rm -f conftest*
  10891. fi
  10892. echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6
  10893. if test "$ac_cv_sys_largefile_CC" != no; then
  10894. CC="$CC$ac_cv_sys_largefile_CC"
  10895. largefile_cc_opt="$ac_cv_sys_largefile_CC"
  10896. if test "$LFS_CFLAGS" ; then
  10897. LFS_CFLAGS="$LFS_CFLAGS $ac_cv_sys_largefile_CC"
  10898. else
  10899. LFS_CFLAGS="$ac_cv_sys_largefile_CC"
  10900. CFLAGS="$LFS_CFLAGS $ac_save_cflags"
  10901. fi
  10902. fi
  10903. echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
  10904. echo "configure:13692: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  10905. ac_cv_sys_file_offset_bits=no
  10906. cat > conftest.$ac_ext <<EOF
  10907. #line 13696 "configure"
  10908. #include "confdefs.h"
  10909. #include <sys/types.h>
  10910. /* Check that off_t can represent 2**63 - 1 correctly.
  10911. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10912. since some C++ compilers masquerading as C compilers
  10913. incorrectly reject 9223372036854775807. */
  10914. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10915. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10916. && LARGE_OFF_T % 2147483647 == 1)
  10917. ? 1 : -1];
  10918. int main() {
  10919. ; return 0; }
  10920. EOF
  10921. if { (eval echo configure:13712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10922. :
  10923. else
  10924. echo "configure: failed program was:" >&5
  10925. cat conftest.$ac_ext >&5
  10926. rm -rf conftest*
  10927. cat > conftest.$ac_ext <<EOF
  10928. #line 13719 "configure"
  10929. #include "confdefs.h"
  10930. #define _FILE_OFFSET_BITS 64
  10931. #include <sys/types.h>
  10932. /* Check that off_t can represent 2**63 - 1 correctly.
  10933. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10934. since some C++ compilers masquerading as C compilers
  10935. incorrectly reject 9223372036854775807. */
  10936. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10937. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10938. && LARGE_OFF_T % 2147483647 == 1)
  10939. ? 1 : -1];
  10940. int main() {
  10941. ; return 0; }
  10942. EOF
  10943. if { (eval echo configure:13737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10944. rm -rf conftest*
  10945. ac_cv_sys_file_offset_bits=64
  10946. else
  10947. echo "configure: failed program was:" >&5
  10948. cat conftest.$ac_ext >&5
  10949. fi
  10950. rm -f conftest*
  10951. fi
  10952. rm -f conftest*
  10953. echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
  10954. if test "$ac_cv_sys_file_offset_bits" != no; then
  10955. cat >> confdefs.h <<EOF
  10956. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  10957. EOF
  10958. if test "$LFS_CFLAGS" ; then
  10959. LFS_CFLAGS="$LFS_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
  10960. else
  10961. LFS_CFLAGS="-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
  10962. fi
  10963. fi
  10964. echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
  10965. echo "configure:13763: checking for _LARGE_FILES value needed for large files" >&5
  10966. ac_cv_sys_large_files=no
  10967. cat > conftest.$ac_ext <<EOF
  10968. #line 13767 "configure"
  10969. #include "confdefs.h"
  10970. #include <sys/types.h>
  10971. /* Check that off_t can represent 2**63 - 1 correctly.
  10972. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10973. since some C++ compilers masquerading as C compilers
  10974. incorrectly reject 9223372036854775807. */
  10975. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10976. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10977. && LARGE_OFF_T % 2147483647 == 1)
  10978. ? 1 : -1];
  10979. int main() {
  10980. ; return 0; }
  10981. EOF
  10982. if { (eval echo configure:13783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10983. :
  10984. else
  10985. echo "configure: failed program was:" >&5
  10986. cat conftest.$ac_ext >&5
  10987. rm -rf conftest*
  10988. cat > conftest.$ac_ext <<EOF
  10989. #line 13790 "configure"
  10990. #include "confdefs.h"
  10991. #define _LARGE_FILES 1
  10992. #include <sys/types.h>
  10993. /* Check that off_t can represent 2**63 - 1 correctly.
  10994. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10995. since some C++ compilers masquerading as C compilers
  10996. incorrectly reject 9223372036854775807. */
  10997. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10998. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10999. && LARGE_OFF_T % 2147483647 == 1)
  11000. ? 1 : -1];
  11001. int main() {
  11002. ; return 0; }
  11003. EOF
  11004. if { (eval echo configure:13808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11005. rm -rf conftest*
  11006. ac_cv_sys_large_files=1
  11007. else
  11008. echo "configure: failed program was:" >&5
  11009. cat conftest.$ac_ext >&5
  11010. fi
  11011. rm -f conftest*
  11012. fi
  11013. rm -f conftest*
  11014. echo "$ac_t""$ac_cv_sys_large_files" 1>&6
  11015. if test "$ac_cv_sys_large_files" != no; then
  11016. cat >> confdefs.h <<EOF
  11017. #define _LARGE_FILES $ac_cv_sys_large_files
  11018. EOF
  11019. if test "$LFS_CFLAGS" ; then
  11020. LFS_CFLAGS="$LFS_CFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files"
  11021. else
  11022. LFS_CFLAGS="-D_LARGE_FILES=$ac_cv_sys_large_files"
  11023. fi
  11024. fi
  11025. echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
  11026. echo "configure:13834: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  11027. ac_cv_sys_largefile_source=no
  11028. cat > conftest.$ac_ext <<EOF
  11029. #line 13838 "configure"
  11030. #include "confdefs.h"
  11031. #include <stdio.h>
  11032. int main() {
  11033. return !fseeko;
  11034. ; return 0; }
  11035. EOF
  11036. if { (eval echo configure:13845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11037. :
  11038. else
  11039. echo "configure: failed program was:" >&5
  11040. cat conftest.$ac_ext >&5
  11041. rm -rf conftest*
  11042. cat > conftest.$ac_ext <<EOF
  11043. #line 13852 "configure"
  11044. #include "confdefs.h"
  11045. #define _LARGEFILE_SOURCE 1
  11046. #include <stdio.h>
  11047. int main() {
  11048. return !fseeko;
  11049. ; return 0; }
  11050. EOF
  11051. if { (eval echo configure:13861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11052. rm -rf conftest*
  11053. ac_cv_sys_largefile_source=1
  11054. else
  11055. echo "configure: failed program was:" >&5
  11056. cat conftest.$ac_ext >&5
  11057. fi
  11058. rm -f conftest*
  11059. fi
  11060. rm -f conftest*
  11061. echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
  11062. if test "$ac_cv_sys_largefile_source" != no; then
  11063. cat >> confdefs.h <<EOF
  11064. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  11065. EOF
  11066. if test "$LFS_CFLAGS" ; then
  11067. LFS_CFLAGS="$LFS_CFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
  11068. else
  11069. LFS_CFLAGS="-D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
  11070. fi
  11071. fi
  11072. CFLAGS=$ac_save_cflags
  11073. fi
  11074. ac_save_cflags=${CFLAGS}
  11075. CFLAGS="$LFS_CFLAGS ${ac_save_cflags}"
  11076. echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
  11077. echo "configure:13893: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  11078. ac_cv_sys_largefile_source=no
  11079. cat > conftest.$ac_ext <<EOF
  11080. #line 13897 "configure"
  11081. #include "confdefs.h"
  11082. #include <stdio.h>
  11083. int main() {
  11084. return !fseeko;
  11085. ; return 0; }
  11086. EOF
  11087. if { (eval echo configure:13904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11088. :
  11089. else
  11090. echo "configure: failed program was:" >&5
  11091. cat conftest.$ac_ext >&5
  11092. rm -rf conftest*
  11093. cat > conftest.$ac_ext <<EOF
  11094. #line 13911 "configure"
  11095. #include "confdefs.h"
  11096. #define _LARGEFILE_SOURCE 1
  11097. #include <stdio.h>
  11098. int main() {
  11099. return !fseeko;
  11100. ; return 0; }
  11101. EOF
  11102. if { (eval echo configure:13920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11103. rm -rf conftest*
  11104. ac_cv_sys_largefile_source=1
  11105. else
  11106. echo "configure: failed program was:" >&5
  11107. cat conftest.$ac_ext >&5
  11108. fi
  11109. rm -f conftest*
  11110. fi
  11111. rm -f conftest*
  11112. echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
  11113. if test "$ac_cv_sys_largefile_source" != no; then
  11114. cat >> confdefs.h <<EOF
  11115. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  11116. EOF
  11117. if test "$LFS_CFLAGS" ; then
  11118. LFS_CFLAGS="$LFS_CFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
  11119. else
  11120. LFS_CFLAGS="-D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
  11121. fi
  11122. fi
  11123. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  11124. # in glibc 2.1.3, but that breaks too many other things.
  11125. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  11126. echo $ac_n "checking for fseeko""... $ac_c" 1>&6
  11127. echo "configure:13950: checking for fseeko" >&5
  11128. ac_cv_func_fseeko=no
  11129. cat > conftest.$ac_ext <<EOF
  11130. #line 13954 "configure"
  11131. #include "confdefs.h"
  11132. #include <stdio.h>
  11133. int main() {
  11134. return fseeko && fseeko (stdin, 0, 0);
  11135. ; return 0; }
  11136. EOF
  11137. if { (eval echo configure:13961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  11138. rm -rf conftest*
  11139. ac_cv_func_fseeko=yes
  11140. else
  11141. echo "configure: failed program was:" >&5
  11142. cat conftest.$ac_ext >&5
  11143. fi
  11144. rm -f conftest*
  11145. echo "$ac_t""$ac_cv_func_fseeko" 1>&6
  11146. if test $ac_cv_func_fseeko != no; then
  11147. cat >> confdefs.h <<\EOF
  11148. #define HAVE_FSEEKO 1
  11149. EOF
  11150. fi
  11151. echo $ac_n "checking if system supports Large Files at all""... $ac_c" 1>&6
  11152. echo "configure:13978: checking if system supports Large Files at all" >&5
  11153. cat > conftest.$ac_ext <<EOF
  11154. #line 13981 "configure"
  11155. #include "confdefs.h"
  11156. #include <stdio.h>
  11157. #include <sys/types.h>
  11158. int main() {
  11159. /*
  11160. * Check that off_t can represent 2**63 - 1 correctly.
  11161. * We can't simply "#define LARGE_OFF_T 9223372036854775807",
  11162. * since some C++ compilers masquerading as C compilers
  11163. * incorrectly reject 9223372036854775807.
  11164. *
  11165. * For MinGW, off64_t should be used and __MSVCRT_VERSION__ >= 0x0601
  11166. * (msvcrt.dll version 6.10 or higher) is needed for _fstat64 and _stat64.
  11167. */
  11168. #ifdef __MINGW32__
  11169. # define LARGE_OFF_T (((off64_t) 1 << 62) - 1 + ((off64_t) 1 << 62))
  11170. #else
  11171. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11172. #endif
  11173. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11174. && LARGE_OFF_T % 2147483647 == 1)
  11175. ? 1 : -1];
  11176. #ifdef __MINGW32__
  11177. return !fseeko64;
  11178. return !ftello64;
  11179. #else
  11180. return !fseeko;
  11181. return !ftello;
  11182. #endif
  11183. ; return 0; }
  11184. EOF
  11185. if { (eval echo configure:14013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11186. rm -rf conftest*
  11187. ac_cv_largefiles=yes
  11188. else
  11189. echo "configure: failed program was:" >&5
  11190. cat conftest.$ac_ext >&5
  11191. rm -rf conftest*
  11192. ac_cv_largefiles=no
  11193. fi
  11194. rm -f conftest*
  11195. echo "$ac_t""$ac_cv_largefiles" 1>&6
  11196. if test $ac_cv_largefiles = yes; then
  11197. cat >> confdefs.h <<\EOF
  11198. #define HAVE_LARGEFILES 1
  11199. EOF
  11200. USE_LARGEFILES=1
  11201. else
  11202. USE_LARGEFILES=
  11203. LFS_CFLAGS=
  11204. fi
  11205. CFLAGS=${ac_save_cflags}
  11206. # Done large file support
  11207. USE_TERMIO=
  11208. STRIPFLAG=
  11209. GRASS_HOME="${DSTDIR}"
  11210. trap '' 1 2 15
  11211. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  11212. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11213. # Let make expand exec_prefix.
  11214. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11215. # Any assignment to VPATH causes Sun make to only execute
  11216. # the first set of double-colon rules, so remove it if not needed.
  11217. # If there is a colon in the path, we need to keep it.
  11218. if test "x$srcdir" = x.; then
  11219. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  11220. fi
  11221. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  11222. DEFS=-DHAVE_CONFIG_H
  11223. # Without the "./", some shells look in PATH for config.status.
  11224. : ${CONFIG_STATUS=./config.status}
  11225. echo creating $CONFIG_STATUS
  11226. rm -f $CONFIG_STATUS
  11227. cat > $CONFIG_STATUS <<EOF
  11228. #! /bin/sh
  11229. # Generated automatically by configure.
  11230. # Run this file to recreate the current configuration.
  11231. # This directory was configured as follows,
  11232. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11233. #
  11234. # $0 $ac_configure_args
  11235. #
  11236. # Compiler output produced by configure, useful for debugging
  11237. # configure, is in ./config.log if it exists.
  11238. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  11239. for ac_option
  11240. do
  11241. case "\$ac_option" in
  11242. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11243. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  11244. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  11245. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  11246. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  11247. exit 0 ;;
  11248. -help | --help | --hel | --he | --h)
  11249. echo "\$ac_cs_usage"; exit 0 ;;
  11250. *) echo "\$ac_cs_usage"; exit 1 ;;
  11251. esac
  11252. done
  11253. ac_given_srcdir=$srcdir
  11254. ac_given_INSTALL="$INSTALL"
  11255. 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
  11256. EOF
  11257. cat >> $CONFIG_STATUS <<EOF
  11258. # Protect against being on the right side of a sed subst in config.status.
  11259. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  11260. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  11261. $ac_vpsub
  11262. $extrasub
  11263. s%@SHELL@%$SHELL%g
  11264. s%@CFLAGS@%$CFLAGS%g
  11265. s%@CPPFLAGS@%$CPPFLAGS%g
  11266. s%@CXXFLAGS@%$CXXFLAGS%g
  11267. s%@FFLAGS@%$FFLAGS%g
  11268. s%@DEFS@%$DEFS%g
  11269. s%@LDFLAGS@%$LDFLAGS%g
  11270. s%@LIBS@%$LIBS%g
  11271. s%@exec_prefix@%$exec_prefix%g
  11272. s%@prefix@%$prefix%g
  11273. s%@program_transform_name@%$program_transform_name%g
  11274. s%@bindir@%$bindir%g
  11275. s%@sbindir@%$sbindir%g
  11276. s%@libexecdir@%$libexecdir%g
  11277. s%@datadir@%$datadir%g
  11278. s%@sysconfdir@%$sysconfdir%g
  11279. s%@sharedstatedir@%$sharedstatedir%g
  11280. s%@localstatedir@%$localstatedir%g
  11281. s%@libdir@%$libdir%g
  11282. s%@includedir@%$includedir%g
  11283. s%@oldincludedir@%$oldincludedir%g
  11284. s%@infodir@%$infodir%g
  11285. s%@mandir@%$mandir%g
  11286. s%@host@%$host%g
  11287. s%@host_alias@%$host_alias%g
  11288. s%@host_cpu@%$host_cpu%g
  11289. s%@host_vendor@%$host_vendor%g
  11290. s%@host_os@%$host_os%g
  11291. s%@CC@%$CC%g
  11292. s%@EXEEXT@%$EXEEXT%g
  11293. s%@MINGW32@%$MINGW32%g
  11294. s%@BINDIR@%$BINDIR%g
  11295. s%@pwd@%$pwd%g
  11296. s%@SRCDIR@%$SRCDIR%g
  11297. s%@DSTDIR@%$DSTDIR%g
  11298. s%@ARCH@%$ARCH%g
  11299. s%@GISBASE@%$GISBASE%g
  11300. s%@GRASS_BIN@%$GRASS_BIN%g
  11301. s%@GIT@%$GIT%g
  11302. s%@GRASS_VERSION_FILE@%$GRASS_VERSION_FILE%g
  11303. s%@GRASS_VERSION_MAJOR@%$GRASS_VERSION_MAJOR%g
  11304. s%@GRASS_VERSION_MINOR@%$GRASS_VERSION_MINOR%g
  11305. s%@GRASS_VERSION_RELEASE@%$GRASS_VERSION_RELEASE%g
  11306. s%@GRASS_VERSION_NUMBER@%$GRASS_VERSION_NUMBER%g
  11307. s%@GRASS_VERSION_DATE@%$GRASS_VERSION_DATE%g
  11308. s%@GRASS_VERSION_GIT@%$GRASS_VERSION_GIT%g
  11309. s%@NAME_VER@%$NAME_VER%g
  11310. s%@LIB_VER@%$LIB_VER%g
  11311. s%@MACOSX_APP@%$MACOSX_APP%g
  11312. s%@MACOSX_ARCHS@%$MACOSX_ARCHS%g
  11313. s%@MACOSX_SDK@%$MACOSX_SDK%g
  11314. s%@INSTDIR@%$INSTDIR%g
  11315. s%@GRASS_LIBRARY_TYPE@%$GRASS_LIBRARY_TYPE%g
  11316. s%@LD_SEARCH_FLAGS@%$LD_SEARCH_FLAGS%g
  11317. s%@LD_LIBRARY_PATH_VAR@%$LD_LIBRARY_PATH_VAR%g
  11318. s%@SHLIB_LD@%$SHLIB_LD%g
  11319. s%@SHLIB_LD_FLAGS@%$SHLIB_LD_FLAGS%g
  11320. s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
  11321. s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
  11322. s%@STLIB_LD@%$STLIB_LD%g
  11323. s%@STLIB_SUFFIX@%$STLIB_SUFFIX%g
  11324. s%@INCLUDE_DIRS@%$INCLUDE_DIRS%g
  11325. s%@LIBRARY_DIRS@%$LIBRARY_DIRS%g
  11326. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  11327. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  11328. s%@INSTALL_DATA@%$INSTALL_DATA%g
  11329. s%@LEX@%$LEX%g
  11330. s%@LEXLIB@%$LEXLIB%g
  11331. s%@LEXPATH@%$LEXPATH%g
  11332. s%@YACC@%$YACC%g
  11333. s%@YACCPATH@%$YACCPATH%g
  11334. s%@RANLIB@%$RANLIB%g
  11335. s%@AR@%$AR%g
  11336. s%@ENV@%$ENV%g
  11337. s%@PERL@%$PERL%g
  11338. s%@CPP@%$CPP%g
  11339. s%@CROSS_COMPILING@%$CROSS_COMPILING%g
  11340. s%@X_CFLAGS@%$X_CFLAGS%g
  11341. s%@X_LIBS@%$X_LIBS%g
  11342. s%@X_PRE_LIBS@%$X_PRE_LIBS%g
  11343. s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  11344. s%@XLIB@%$XLIB%g
  11345. s%@XTLIB@%$XTLIB%g
  11346. s%@USE_X11@%$USE_X11%g
  11347. s%@DBMIEXTRALIB@%$DBMIEXTRALIB%g
  11348. s%@HAVE_ASPRINTF@%$HAVE_ASPRINTF%g
  11349. s%@MATHLIB@%$MATHLIB%g
  11350. s%@DLLIB@%$DLLIB%g
  11351. s%@ICONVLIB@%$ICONVLIB%g
  11352. s%@SOCKLIB@%$SOCKLIB%g
  11353. s%@HAVE_SOCKET@%$HAVE_SOCKET%g
  11354. s%@ZLIBINCPATH@%$ZLIBINCPATH%g
  11355. s%@ZLIBLIBPATH@%$ZLIBLIBPATH%g
  11356. s%@ZLIB@%$ZLIB%g
  11357. s%@BZIP2INCPATH@%$BZIP2INCPATH%g
  11358. s%@BZIP2LIBPATH@%$BZIP2LIBPATH%g
  11359. s%@BZIP2LIB@%$BZIP2LIB%g
  11360. s%@ZSTDINCPATH@%$ZSTDINCPATH%g
  11361. s%@ZSTDLIBPATH@%$ZSTDLIBPATH%g
  11362. s%@ZSTDLIB@%$ZSTDLIB%g
  11363. s%@PROJINC@%$PROJINC%g
  11364. s%@PROJLIB@%$PROJLIB%g
  11365. s%@PROJSHARE@%$PROJSHARE%g
  11366. s%@REGEXINCPATH@%$REGEXINCPATH%g
  11367. s%@REGEXLIBPATH@%$REGEXLIBPATH%g
  11368. s%@REGEXLIB@%$REGEXLIB%g
  11369. s%@USE_REGEX@%$USE_REGEX%g
  11370. s%@READLINEINCPATH@%$READLINEINCPATH%g
  11371. s%@READLINELIBPATH@%$READLINELIBPATH%g
  11372. s%@READLINELIB@%$READLINELIB%g
  11373. s%@HISTORYLIB@%$HISTORYLIB%g
  11374. s%@GDAL_CONFIG@%$GDAL_CONFIG%g
  11375. s%@GDAL_LIBS@%$GDAL_LIBS%g
  11376. s%@GDAL_CFLAGS@%$GDAL_CFLAGS%g
  11377. s%@USE_GDAL@%$USE_GDAL%g
  11378. s%@USE_OGR@%$USE_OGR%g
  11379. s%@LIBLAS_CONFIG@%$LIBLAS_CONFIG%g
  11380. s%@LIBLAS_LIBS@%$LIBLAS_LIBS%g
  11381. s%@LIBLAS_CFLAGS@%$LIBLAS_CFLAGS%g
  11382. s%@LIBLAS_INC@%$LIBLAS_INC%g
  11383. s%@USE_LIBLAS@%$USE_LIBLAS%g
  11384. s%@PDAL_CONFIG@%$PDAL_CONFIG%g
  11385. s%@PDAL_LIBS@%$PDAL_LIBS%g
  11386. s%@PDAL_CPPFLAGS@%$PDAL_CPPFLAGS%g
  11387. s%@PDAL_INC@%$PDAL_INC%g
  11388. s%@USE_PDAL@%$USE_PDAL%g
  11389. s%@NETCDF_CONFIG@%$NETCDF_CONFIG%g
  11390. s%@NETCDF_LIBS@%$NETCDF_LIBS%g
  11391. s%@NETCDF_CFLAGS@%$NETCDF_CFLAGS%g
  11392. s%@USE_NETCDF@%$USE_NETCDF%g
  11393. s%@GEOS_CONFIG@%$GEOS_CONFIG%g
  11394. s%@GEOS_LIBS@%$GEOS_LIBS%g
  11395. s%@GEOS_CFLAGS@%$GEOS_CFLAGS%g
  11396. s%@USE_GEOS@%$USE_GEOS%g
  11397. s%@TIFF_INCLUDE_DIRS@%$TIFF_INCLUDE_DIRS%g
  11398. s%@TIFF_LIBRARY_DIRS@%$TIFF_LIBRARY_DIRS%g
  11399. s%@TIFFLIB@%$TIFFLIB%g
  11400. s%@PNGINC@%$PNGINC%g
  11401. s%@PNGLIB@%$PNGLIB%g
  11402. s%@USE_PNG@%$USE_PNG%g
  11403. s%@USE_POSTGRES@%$USE_POSTGRES%g
  11404. s%@PQINCPATH@%$PQINCPATH%g
  11405. s%@PQLIBPATH@%$PQLIBPATH%g
  11406. s%@PQLIB@%$PQLIB%g
  11407. s%@MYSQLD_CONFIG@%$MYSQLD_CONFIG%g
  11408. s%@USE_MYSQL@%$USE_MYSQL%g
  11409. s%@MYSQLINCPATH@%$MYSQLINCPATH%g
  11410. s%@MYSQLLIBPATH@%$MYSQLLIBPATH%g
  11411. s%@MYSQLLIB@%$MYSQLLIB%g
  11412. s%@MYSQLDLIB@%$MYSQLDLIB%g
  11413. s%@USE_SQLITE@%$USE_SQLITE%g
  11414. s%@SQLITEINCPATH@%$SQLITEINCPATH%g
  11415. s%@SQLITELIBPATH@%$SQLITELIBPATH%g
  11416. s%@SQLITELIB@%$SQLITELIB%g
  11417. s%@USE_OPENGL@%$USE_OPENGL%g
  11418. s%@OPENGL_X11@%$OPENGL_X11%g
  11419. s%@OPENGL_AQUA@%$OPENGL_AQUA%g
  11420. s%@OPENGL_WINDOWS@%$OPENGL_WINDOWS%g
  11421. s%@OPENGLINC@%$OPENGLINC%g
  11422. s%@OPENGLLIB@%$OPENGLLIB%g
  11423. s%@OPENGLULIB@%$OPENGLULIB%g
  11424. s%@ODBCINC@%$ODBCINC%g
  11425. s%@ODBCLIB@%$ODBCLIB%g
  11426. s%@FFTWINC@%$FFTWINC%g
  11427. s%@FFTWLIB@%$FFTWLIB%g
  11428. s%@BLASLIB@%$BLASLIB%g
  11429. s%@BLASINC@%$BLASINC%g
  11430. s%@LAPACKLIB@%$LAPACKLIB%g
  11431. s%@LAPACKINC@%$LAPACKINC%g
  11432. s%@CAIRO_HAS_XRENDER@%$CAIRO_HAS_XRENDER%g
  11433. s%@CAIRO_HAS_XRENDER_SURFACE@%$CAIRO_HAS_XRENDER_SURFACE%g
  11434. s%@CAIROINC@%$CAIROINC%g
  11435. s%@CAIROLIB@%$CAIROLIB%g
  11436. s%@USE_CAIRO@%$USE_CAIRO%g
  11437. s%@FTINC@%$FTINC%g
  11438. s%@FTLIB@%$FTLIB%g
  11439. s%@INTLLIB@%$INTLLIB%g
  11440. s%@HAVE_NLS@%$HAVE_NLS%g
  11441. s%@CXX@%$CXX%g
  11442. s%@OPENDWGINCPATH@%$OPENDWGINCPATH%g
  11443. s%@OPENDWGLIBPATH@%$OPENDWGLIBPATH%g
  11444. s%@OPENDWGLIB@%$OPENDWGLIB%g
  11445. s%@USE_OPENDWG@%$USE_OPENDWG%g
  11446. s%@PTHREADINCPATH@%$PTHREADINCPATH%g
  11447. s%@PTHREADLIBPATH@%$PTHREADLIBPATH%g
  11448. s%@PTHREADLIB@%$PTHREADLIB%g
  11449. s%@USE_PTHREAD@%$USE_PTHREAD%g
  11450. s%@OMPINCPATH@%$OMPINCPATH%g
  11451. s%@OMPLIBPATH@%$OMPLIBPATH%g
  11452. s%@OMPLIB@%$OMPLIB%g
  11453. s%@OMPCFLAGS@%$OMPCFLAGS%g
  11454. s%@USE_OPENMP@%$USE_OPENMP%g
  11455. s%@OCLINCPATH@%$OCLINCPATH%g
  11456. s%@OCLLIBPATH@%$OCLLIBPATH%g
  11457. s%@OCLLIB@%$OCLLIB%g
  11458. s%@USE_OPENCL@%$USE_OPENCL%g
  11459. s%@USE_LARGEFILES@%$USE_LARGEFILES%g
  11460. s%@LFS_CFLAGS@%$LFS_CFLAGS%g
  11461. s%@USE_TERMIO@%$USE_TERMIO%g
  11462. s%@STRIPFLAG@%$STRIPFLAG%g
  11463. s%@GRASS_HOME@%$GRASS_HOME%g
  11464. CEOF
  11465. EOF
  11466. cat >> $CONFIG_STATUS <<\EOF
  11467. # Split the substitutions into bite-sized pieces for seds with
  11468. # small command number limits, like on Digital OSF/1 and HP-UX.
  11469. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  11470. ac_file=1 # Number of current file.
  11471. ac_beg=1 # First line for current file.
  11472. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  11473. ac_more_lines=:
  11474. ac_sed_cmds=""
  11475. while $ac_more_lines; do
  11476. if test $ac_beg -gt 1; then
  11477. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  11478. else
  11479. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  11480. fi
  11481. if test ! -s conftest.s$ac_file; then
  11482. ac_more_lines=false
  11483. rm -f conftest.s$ac_file
  11484. else
  11485. if test -z "$ac_sed_cmds"; then
  11486. ac_sed_cmds="sed -f conftest.s$ac_file"
  11487. else
  11488. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  11489. fi
  11490. ac_file=`expr $ac_file + 1`
  11491. ac_beg=$ac_end
  11492. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  11493. fi
  11494. done
  11495. if test -z "$ac_sed_cmds"; then
  11496. ac_sed_cmds=cat
  11497. fi
  11498. EOF
  11499. cat >> $CONFIG_STATUS <<EOF
  11500. CONFIG_FILES=\${CONFIG_FILES-"include/Make/Platform.make include/Make/Doxyfile_arch_html include/Make/Doxyfile_arch_latex include/version.h grass.pc"}
  11501. EOF
  11502. cat >> $CONFIG_STATUS <<\EOF
  11503. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  11504. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11505. case "$ac_file" in
  11506. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  11507. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11508. *) ac_file_in="${ac_file}.in" ;;
  11509. esac
  11510. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  11511. # Remove last slash and all that follows it. Not all systems have dirname.
  11512. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  11513. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  11514. # The file is in a subdirectory.
  11515. test ! -d "$ac_dir" && mkdir "$ac_dir"
  11516. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  11517. # A "../" for each directory in $ac_dir_suffix.
  11518. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  11519. else
  11520. ac_dir_suffix= ac_dots=
  11521. fi
  11522. case "$ac_given_srcdir" in
  11523. .) srcdir=.
  11524. if test -z "$ac_dots"; then top_srcdir=.
  11525. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  11526. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  11527. *) # Relative path.
  11528. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  11529. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  11530. esac
  11531. case "$ac_given_INSTALL" in
  11532. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  11533. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  11534. esac
  11535. echo creating "$ac_file"
  11536. rm -f "$ac_file"
  11537. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  11538. case "$ac_file" in
  11539. *Makefile*) ac_comsub="1i\\
  11540. # $configure_input" ;;
  11541. *) ac_comsub= ;;
  11542. esac
  11543. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  11544. sed -e "$ac_comsub
  11545. s%@configure_input@%$configure_input%g
  11546. s%@srcdir@%$srcdir%g
  11547. s%@top_srcdir@%$top_srcdir%g
  11548. s%@INSTALL@%$INSTALL%g
  11549. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  11550. fi; done
  11551. rm -f conftest.s*
  11552. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11553. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11554. #
  11555. # ac_d sets the value in "#define NAME VALUE" lines.
  11556. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11557. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  11558. ac_dC='\3'
  11559. ac_dD='%g'
  11560. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  11561. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11562. ac_uB='\([ ]\)%\1#\2define\3'
  11563. ac_uC=' '
  11564. ac_uD='\4%g'
  11565. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11566. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11567. ac_eB='$%\1#\2define\3'
  11568. ac_eC=' '
  11569. ac_eD='%g'
  11570. if test "${CONFIG_HEADERS+set}" != set; then
  11571. EOF
  11572. cat >> $CONFIG_STATUS <<EOF
  11573. CONFIG_HEADERS="include/config.h"
  11574. EOF
  11575. cat >> $CONFIG_STATUS <<\EOF
  11576. fi
  11577. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  11578. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11579. case "$ac_file" in
  11580. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  11581. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11582. *) ac_file_in="${ac_file}.in" ;;
  11583. esac
  11584. echo creating $ac_file
  11585. rm -f conftest.frag conftest.in conftest.out
  11586. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  11587. cat $ac_file_inputs > conftest.in
  11588. EOF
  11589. # Transform confdefs.h into a sed script conftest.vals that substitutes
  11590. # the proper values into config.h.in to produce config.h. And first:
  11591. # Protect against being on the right side of a sed subst in config.status.
  11592. # Protect against being in an unquoted here document in config.status.
  11593. rm -f conftest.vals
  11594. cat > conftest.hdr <<\EOF
  11595. s/[\\&%]/\\&/g
  11596. s%[\\$`]%\\&%g
  11597. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  11598. s%ac_d%ac_u%gp
  11599. s%ac_u%ac_e%gp
  11600. EOF
  11601. sed -n -f conftest.hdr confdefs.h > conftest.vals
  11602. rm -f conftest.hdr
  11603. # This sed command replaces #undef with comments. This is necessary, for
  11604. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11605. # on some systems where configure will not decide to define it.
  11606. cat >> conftest.vals <<\EOF
  11607. s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  11608. EOF
  11609. # Break up conftest.vals because some shells have a limit on
  11610. # the size of here documents, and old seds have small limits too.
  11611. rm -f conftest.tail
  11612. while :
  11613. do
  11614. ac_lines=`grep -c . conftest.vals`
  11615. # grep -c gives empty output for an empty file on some AIX systems.
  11616. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  11617. # Write a limited-size here document to conftest.frag.
  11618. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  11619. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  11620. echo 'CEOF
  11621. sed -f conftest.frag conftest.in > conftest.out
  11622. rm -f conftest.in
  11623. mv conftest.out conftest.in
  11624. ' >> $CONFIG_STATUS
  11625. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  11626. rm -f conftest.vals
  11627. mv conftest.tail conftest.vals
  11628. done
  11629. rm -f conftest.vals
  11630. cat >> $CONFIG_STATUS <<\EOF
  11631. rm -f conftest.frag conftest.h
  11632. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  11633. cat conftest.in >> conftest.h
  11634. rm -f conftest.in
  11635. if cmp -s $ac_file conftest.h 2>/dev/null; then
  11636. echo "$ac_file is unchanged"
  11637. rm -f conftest.h
  11638. else
  11639. # Remove last slash and all that follows it. Not all systems have dirname.
  11640. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  11641. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  11642. # The file is in a subdirectory.
  11643. test ! -d "$ac_dir" && mkdir "$ac_dir"
  11644. fi
  11645. rm -f $ac_file
  11646. mv conftest.h $ac_file
  11647. fi
  11648. fi; done
  11649. EOF
  11650. cat >> $CONFIG_STATUS <<EOF
  11651. EOF
  11652. cat >> $CONFIG_STATUS <<\EOF
  11653. exit 0
  11654. EOF
  11655. chmod +x $CONFIG_STATUS
  11656. rm -fr confdefs* $ac_clean_files
  11657. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  11658. echo "Copying config.status to config.status.${ARCH}"
  11659. cp -f config.status config.status.${ARCH}
  11660. # Display configuration status
  11661. echo ""
  11662. echo "GRASS is now configured for: ${host}"
  11663. echo ""
  11664. echo " Source directory: ${SRCDIR}"
  11665. echo " Build directory: ${DSTDIR}"
  11666. echo " Installation directory: ${INSTDIR}"
  11667. echo " Startup script in directory:${bindir}"
  11668. echo " C compiler: ${CC} ${CFLAGS}"
  11669. echo " C++ compiler: ${CXX} ${CXXFLAGS}"
  11670. echo " Building shared libraries: ${shared_ok}"
  11671. echo " OpenGL platform: ${OPENGL_TYPE}"
  11672. echo ""
  11673. echo " MacOSX application: `if test -n "${MACOSX_APP}" ; then echo yes ; else echo no ; fi`"
  11674. echo " MacOSX architectures: ${MACOSX_ARCHS}"
  11675. echo " MacOSX SDK: ${MACOSX_SDK}"
  11676. echo ""
  11677. echo " BLAS support: `if test -n "${USE_BLAS}" ; then echo yes ; else echo no ; fi`"
  11678. echo " BZIP2 support: `if test -n "${USE_BZIP2}" ; then echo yes ; else echo no ; fi`"
  11679. echo " C++ support: `if test -n "${USE_CXX}" ; then echo yes ; else echo no ; fi`"
  11680. echo " Cairo support: `if test -n "${USE_CAIRO}" ; then echo yes ; else echo no ; fi`"
  11681. echo " DWG support: `if test -n "${USE_OPENDWG}" ; then echo yes ; else echo no ; fi`"
  11682. echo " FFTW support: `if test -n "${USE_FFTW}" ; then echo yes ; else echo no ; fi`"
  11683. echo " FreeType support: `if test -n "${USE_FREETYPE}" ; then echo yes ; else echo no ; fi`"
  11684. echo " GDAL support: `if test -n "${USE_GDAL}" ; then echo yes ; else echo no ; fi`"
  11685. echo " GEOS support: `if test -n "${USE_GEOS}" ; then echo yes ; else echo no ; fi`"
  11686. echo " LAPACK support: `if test -n "${USE_LAPACK}" ; then echo yes ; else echo no ; fi`"
  11687. echo " Large File support (LFS): `if test -n "${USE_LARGEFILES}" ; then echo yes ; else echo no ; fi`"
  11688. echo " libLAS support: `if test -n "${USE_LIBLAS}" ; then echo yes ; else echo no ; fi`"
  11689. echo " MySQL support: `if test -n "${USE_MYSQL}" ; then echo yes ; else echo no ; fi`"
  11690. echo " NetCDF support: `if test -n "${USE_NETCDF}" ; then echo yes ; else echo no ; fi`"
  11691. echo " NLS support: `if test -n "${USE_NLS}" ; then echo yes ; else echo no ; fi`"
  11692. echo " ODBC support: `if test -n "${USE_ODBC}" ; then echo yes ; else echo no ; fi`"
  11693. echo " OGR support: `if test -n "${USE_OGR}" ; then echo yes ; else echo no ; fi`"
  11694. echo " OpenCL support: `if test -n "${USE_OPENCL}" ; then echo yes ; else echo no ; fi`"
  11695. echo " OpenGL support: `if test -n "${USE_OPENGL}" ; then echo yes ; else echo no ; fi`"
  11696. echo " OpenMP support: `if test -n "${USE_OPENMP}" ; then echo yes ; else echo no ; fi`"
  11697. echo " PDAL support: `if test -n "${USE_PDAL}" ; then echo yes ; else echo no ; fi`"
  11698. echo " PNG support: `if test -n "${USE_PNG}" ; then echo yes ; else echo no ; fi`"
  11699. echo " POSIX thread support: `if test -n "${USE_PTHREAD}" ; then echo yes ; else echo no ; fi`"
  11700. echo " PostgreSQL support: `if test -n "${USE_POSTGRES}" ; then echo yes ; else echo no ; fi`"
  11701. echo " Readline support: `if test -n "${USE_READLINE}" ; then echo yes ; else echo no ; fi`"
  11702. echo " Regex support: `if test -n "${USE_REGEX}" ; then echo yes ; else echo no ; fi`"
  11703. echo " SQLite support: `if test -n "${USE_SQLITE}" ; then echo yes ; else echo no ; fi`"
  11704. echo " TIFF support: `if test -n "${USE_TIFF}" ; then echo yes ; else echo no ; fi`"
  11705. echo " X11 support: `if test -n "${USE_X11}" ; then echo yes ; else echo no ; fi`"
  11706. echo " Zstandard support: `if test -n "${USE_ZSTD}" ; then echo yes ; else echo no ; fi`"
  11707. echo ""
  11708. # remove when the new PROJ API is stable
  11709. if test $PROJ4API = 0 ; then
  11710. echo "$ac_t"" using new PROJ 5+ API" 1>&6
  11711. else
  11712. echo "$ac_t"" using old PROJ 4 API" 1>&6
  11713. fi
  11714. echo ""