configure 363 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166
  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-gdal[=path/gdal-config]
  71. enable GDAL/OGR support (gdal-config with path,
  72. e.g. '--with-gdal=/usr/local/bin/gdal-config')"
  73. ac_help="$ac_help
  74. --with-liblas[=path/liblas-config]
  75. enable libLAS support (liblas-config with path,
  76. e.g. '--with-liblas=/usr/local/bin/liblas-config',
  77. default: no)"
  78. ac_help="$ac_help
  79. --with-pdal[=path/pdal-config]
  80. enable PDAL support (pdal-config with path,
  81. e.g. '--with-pdal=/usr/local/bin/pdal-config',
  82. default: no)"
  83. ac_help="$ac_help
  84. --with-wxwidgets[=path/wx-config]
  85. enable wxWidgets support (wx-config with path,
  86. e.g. '--with-wxwidgets=/usr/local/bin/wx-config',
  87. default: no)"
  88. ac_help="$ac_help
  89. --with-netcdf[=path/nc-config]
  90. enable NetCDF support (nc-config with path,
  91. e.g. '--with-nc=/usr/local/bin/nc-config',
  92. default: no)"
  93. ac_help="$ac_help
  94. --with-geos[=path/geos-config]
  95. enable GEOS support (geos-config with path,
  96. e.g. '--with-geos=/usr/local/bin/geos-config',
  97. default: no)"
  98. ac_help="$ac_help
  99. --with-includes=DIRS site include files are in DIRS"
  100. ac_help="$ac_help
  101. --with-libs=DIRS site library files are in DIRS"
  102. ac_help="$ac_help
  103. --with-zlib-includes=DIRS
  104. zlib include files are in DIRS"
  105. ac_help="$ac_help
  106. --with-zlib-libs=DIRS zlib library files are in DIRS"
  107. ac_help="$ac_help
  108. --with-bzlib-includes=DIRS
  109. BZIP2 include files are in DIRS"
  110. ac_help="$ac_help
  111. --with-bzlib-libs=DIRS BZIP2 library files are in DIRS"
  112. ac_help="$ac_help
  113. --with-readline-includes=DIRS
  114. Readline include files are in DIRS"
  115. ac_help="$ac_help
  116. --with-readline-libs=DIRS
  117. Readline library files are in DIRS"
  118. ac_help="$ac_help
  119. --with-tiff-includes=DIRS
  120. TIFF include files are in DIRS"
  121. ac_help="$ac_help
  122. --with-tiff-libs=DIRS TIFF library files are in DIRS"
  123. ac_help="$ac_help
  124. --with-png-includes=DIRS
  125. PNG include files are in DIRS"
  126. ac_help="$ac_help
  127. --with-png-libs=DIRS PNG library files are in DIRS"
  128. ac_help="$ac_help
  129. --with-postgres-includes=DIRS
  130. PostgreSQL include files are in DIRS"
  131. ac_help="$ac_help
  132. --with-postgres-libs=DIRS
  133. PostgreSQL library files are in DIRS"
  134. ac_help="$ac_help
  135. --with-mysql-includes=DIRS
  136. MySQL include files are in DIRS"
  137. ac_help="$ac_help
  138. --with-mysql-libs=DIRS MySQL library files are in DIRS"
  139. ac_help="$ac_help
  140. --with-sqlite-includes=DIRS
  141. SQLite include files are in DIRS"
  142. ac_help="$ac_help
  143. --with-sqlite-libs=DIRS SQLite library files are in DIRS"
  144. ac_help="$ac_help
  145. --with-opengl-includes=DIRS
  146. OpenGL include files are in DIRS"
  147. ac_help="$ac_help
  148. --with-opengl-libs=DIRS OpenGL library files are in DIRS"
  149. ac_help="$ac_help
  150. --with-opengl-framework=DIR
  151. OpenGL framework is in DIR"
  152. ac_help="$ac_help
  153. --with-odbc-includes=DIRS
  154. ODBC include files are in DIRS"
  155. ac_help="$ac_help
  156. --with-odbc-libs=DIRS ODBC library files are in DIRS"
  157. ac_help="$ac_help
  158. --with-fftw-includes=DIRS
  159. FFTW include files are in DIRS"
  160. ac_help="$ac_help
  161. --with-fftw-libs=DIRS FFTW library files are in DIRS"
  162. ac_help="$ac_help
  163. --with-blas-includes=DIRS
  164. BLAS include files are in DIRS"
  165. ac_help="$ac_help
  166. --with-blas-libs=DIRS BLAS library files are in DIRS"
  167. ac_help="$ac_help
  168. --with-lapack-includes=DIRS
  169. LAPACK include files are in DIRS"
  170. ac_help="$ac_help
  171. --with-lapack-libs=DIRS LAPACK library files are in DIRS"
  172. ac_help="$ac_help
  173. --with-cairo-includes=DIRS
  174. cairo include files are in DIRS"
  175. ac_help="$ac_help
  176. --with-cairo-libs=DIRS cairo library files are in DIRS"
  177. ac_help="$ac_help
  178. --with-cairo-ldflags=FLAGS
  179. cairo needs FLAGS when linking"
  180. ac_help="$ac_help
  181. --with-freetype-includes=DIRS
  182. FreeType include files are in DIRS"
  183. ac_help="$ac_help
  184. --with-freetype-libs=DIRS
  185. FreeType library files are in DIRS"
  186. ac_help="$ac_help
  187. --with-proj-includes=DIRS
  188. External PROJ.4 include files are in DIRS"
  189. ac_help="$ac_help
  190. --with-proj-libs=DIRS External PROJ.4 library files are in DIRS"
  191. ac_help="$ac_help
  192. --with-proj-share=DIR External PROJ.4 data files are in DIR"
  193. ac_help="$ac_help
  194. --with-opendwg-includes=DIRS
  195. openDWG include files are in DIRS"
  196. ac_help="$ac_help
  197. --with-opendwg-libs=DIRS
  198. openDWG library files are in DIRS"
  199. ac_help="$ac_help
  200. --with-regex-includes=DIRS
  201. regex include files are in DIRS"
  202. ac_help="$ac_help
  203. --with-regex-libs=DIRS regex library files are in DIRS"
  204. ac_help="$ac_help
  205. --with-pthread-includes=DIRS
  206. POSIX threads include files are in DIRS"
  207. ac_help="$ac_help
  208. --with-pthread-libs=DIRS
  209. POSIX threads library files are in DIRS"
  210. ac_help="$ac_help
  211. --with-openmp-includes=DIRS
  212. OpenMP include files are in DIRS"
  213. ac_help="$ac_help
  214. --with-openmp-libs=DIRS OpenMP library files are in DIRS"
  215. ac_help="$ac_help
  216. --with-opencl-includes=DIRS
  217. OpenCL include files are in DIRS"
  218. ac_help="$ac_help
  219. --with-opencl-libs=DIRS OpenCL library files are in DIRS"
  220. ac_help="$ac_help
  221. --with-x use the X Window System"
  222. ac_help="$ac_help
  223. --disable-largefile omit support for large files (LFS)"
  224. # Initialize some variables set by options.
  225. # The variables have the same names as the options, with
  226. # dashes changed to underlines.
  227. build=NONE
  228. cache_file=./config.cache
  229. exec_prefix=NONE
  230. host=NONE
  231. no_create=
  232. nonopt=NONE
  233. no_recursion=
  234. prefix=NONE
  235. program_prefix=NONE
  236. program_suffix=NONE
  237. program_transform_name=s,x,x,
  238. silent=
  239. site=
  240. srcdir=
  241. target=NONE
  242. verbose=
  243. x_includes=NONE
  244. x_libraries=NONE
  245. bindir='${exec_prefix}/bin'
  246. sbindir='${exec_prefix}/sbin'
  247. libexecdir='${exec_prefix}/libexec'
  248. datadir='${prefix}/share'
  249. sysconfdir='${prefix}/etc'
  250. sharedstatedir='${prefix}/com'
  251. localstatedir='${prefix}/var'
  252. libdir='${exec_prefix}/lib'
  253. includedir='${prefix}/include'
  254. oldincludedir='/usr/include'
  255. infodir='${prefix}/info'
  256. mandir='${prefix}/man'
  257. # Initialize some other variables.
  258. subdirs=
  259. MFLAGS= MAKEFLAGS=
  260. SHELL=${CONFIG_SHELL-/bin/sh}
  261. # Maximum number of lines to put in a shell here document.
  262. ac_max_here_lines=12
  263. ac_prev=
  264. for ac_option
  265. do
  266. # If the previous option needs an argument, assign it.
  267. if test -n "$ac_prev"; then
  268. eval "$ac_prev=\$ac_option"
  269. ac_prev=
  270. continue
  271. fi
  272. case "$ac_option" in
  273. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  274. *) ac_optarg= ;;
  275. esac
  276. # Accept the important Cygnus configure options, so we can diagnose typos.
  277. case "$ac_option" in
  278. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  279. ac_prev=bindir ;;
  280. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  281. bindir="$ac_optarg" ;;
  282. -build | --build | --buil | --bui | --bu)
  283. ac_prev=build ;;
  284. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  285. build="$ac_optarg" ;;
  286. -cache-file | --cache-file | --cache-fil | --cache-fi \
  287. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  288. ac_prev=cache_file ;;
  289. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  290. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  291. cache_file="$ac_optarg" ;;
  292. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  293. ac_prev=datadir ;;
  294. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  295. | --da=*)
  296. datadir="$ac_optarg" ;;
  297. -disable-* | --disable-*)
  298. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  299. # Reject names that are not valid shell variable names.
  300. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  301. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  302. fi
  303. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  304. eval "enable_${ac_feature}=no" ;;
  305. -enable-* | --enable-*)
  306. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  307. # Reject names that are not valid shell variable names.
  308. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  309. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  310. fi
  311. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  312. case "$ac_option" in
  313. *=*) ;;
  314. *) ac_optarg=yes ;;
  315. esac
  316. eval "enable_${ac_feature}='$ac_optarg'" ;;
  317. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  318. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  319. | --exec | --exe | --ex)
  320. ac_prev=exec_prefix ;;
  321. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  322. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  323. | --exec=* | --exe=* | --ex=*)
  324. exec_prefix="$ac_optarg" ;;
  325. -gas | --gas | --ga | --g)
  326. # Obsolete; use --with-gas.
  327. with_gas=yes ;;
  328. -help | --help | --hel | --he)
  329. # Omit some internal or obsolete options to make the list less imposing.
  330. # This message is too long to be a string in the A/UX 3.1 sh.
  331. cat << EOF
  332. Usage: configure [options] [host]
  333. Options: [defaults in brackets after descriptions]
  334. Configuration:
  335. --cache-file=FILE cache test results in FILE
  336. --help print this message
  337. --no-create do not create output files
  338. --quiet, --silent do not print \`checking...' messages
  339. --version print the version of autoconf that created configure
  340. Directory and file names:
  341. --prefix=PREFIX install architecture-independent files in PREFIX
  342. [$ac_default_prefix]
  343. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  344. [same as prefix]
  345. --bindir=DIR user executables in DIR [EPREFIX/bin]
  346. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  347. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  348. --datadir=DIR read-only architecture-independent data in DIR
  349. [PREFIX/share]
  350. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  351. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  352. [PREFIX/com]
  353. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  354. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  355. --includedir=DIR C header files in DIR [PREFIX/include]
  356. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  357. --infodir=DIR info documentation in DIR [PREFIX/info]
  358. --mandir=DIR man documentation in DIR [PREFIX/man]
  359. --srcdir=DIR find the sources in DIR [configure dir or ..]
  360. --program-prefix=PREFIX prepend PREFIX to installed program names
  361. --program-suffix=SUFFIX append SUFFIX to installed program names
  362. --program-transform-name=PROGRAM
  363. run sed PROGRAM on installed program names
  364. EOF
  365. cat << EOF
  366. Host type:
  367. --build=BUILD configure for building on BUILD [BUILD=HOST]
  368. --host=HOST configure for HOST [guessed]
  369. --target=TARGET configure for TARGET [TARGET=HOST]
  370. Features and packages:
  371. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  372. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  373. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  374. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  375. --x-includes=DIR X include files are in DIR
  376. --x-libraries=DIR X library files are in DIR
  377. EOF
  378. if test -n "$ac_help"; then
  379. echo "--enable and --with options recognized:$ac_help"
  380. fi
  381. exit 0 ;;
  382. -host | --host | --hos | --ho)
  383. ac_prev=host ;;
  384. -host=* | --host=* | --hos=* | --ho=*)
  385. host="$ac_optarg" ;;
  386. -includedir | --includedir | --includedi | --included | --include \
  387. | --includ | --inclu | --incl | --inc)
  388. ac_prev=includedir ;;
  389. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  390. | --includ=* | --inclu=* | --incl=* | --inc=*)
  391. includedir="$ac_optarg" ;;
  392. -infodir | --infodir | --infodi | --infod | --info | --inf)
  393. ac_prev=infodir ;;
  394. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  395. infodir="$ac_optarg" ;;
  396. -libdir | --libdir | --libdi | --libd)
  397. ac_prev=libdir ;;
  398. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  399. libdir="$ac_optarg" ;;
  400. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  401. | --libexe | --libex | --libe)
  402. ac_prev=libexecdir ;;
  403. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  404. | --libexe=* | --libex=* | --libe=*)
  405. libexecdir="$ac_optarg" ;;
  406. -localstatedir | --localstatedir | --localstatedi | --localstated \
  407. | --localstate | --localstat | --localsta | --localst \
  408. | --locals | --local | --loca | --loc | --lo)
  409. ac_prev=localstatedir ;;
  410. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  411. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  412. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  413. localstatedir="$ac_optarg" ;;
  414. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  415. ac_prev=mandir ;;
  416. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  417. mandir="$ac_optarg" ;;
  418. -nfp | --nfp | --nf)
  419. # Obsolete; use --without-fp.
  420. with_fp=no ;;
  421. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  422. | --no-cr | --no-c)
  423. no_create=yes ;;
  424. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  425. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  426. no_recursion=yes ;;
  427. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  428. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  429. | --oldin | --oldi | --old | --ol | --o)
  430. ac_prev=oldincludedir ;;
  431. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  432. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  433. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  434. oldincludedir="$ac_optarg" ;;
  435. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  436. ac_prev=prefix ;;
  437. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  438. prefix="$ac_optarg" ;;
  439. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  440. | --program-pre | --program-pr | --program-p)
  441. ac_prev=program_prefix ;;
  442. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  443. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  444. program_prefix="$ac_optarg" ;;
  445. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  446. | --program-suf | --program-su | --program-s)
  447. ac_prev=program_suffix ;;
  448. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  449. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  450. program_suffix="$ac_optarg" ;;
  451. -program-transform-name | --program-transform-name \
  452. | --program-transform-nam | --program-transform-na \
  453. | --program-transform-n | --program-transform- \
  454. | --program-transform | --program-transfor \
  455. | --program-transfo | --program-transf \
  456. | --program-trans | --program-tran \
  457. | --progr-tra | --program-tr | --program-t)
  458. ac_prev=program_transform_name ;;
  459. -program-transform-name=* | --program-transform-name=* \
  460. | --program-transform-nam=* | --program-transform-na=* \
  461. | --program-transform-n=* | --program-transform-=* \
  462. | --program-transform=* | --program-transfor=* \
  463. | --program-transfo=* | --program-transf=* \
  464. | --program-trans=* | --program-tran=* \
  465. | --progr-tra=* | --program-tr=* | --program-t=*)
  466. program_transform_name="$ac_optarg" ;;
  467. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  468. | -silent | --silent | --silen | --sile | --sil)
  469. silent=yes ;;
  470. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  471. ac_prev=sbindir ;;
  472. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  473. | --sbi=* | --sb=*)
  474. sbindir="$ac_optarg" ;;
  475. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  476. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  477. | --sharedst | --shareds | --shared | --share | --shar \
  478. | --sha | --sh)
  479. ac_prev=sharedstatedir ;;
  480. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  481. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  482. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  483. | --sha=* | --sh=*)
  484. sharedstatedir="$ac_optarg" ;;
  485. -site | --site | --sit)
  486. ac_prev=site ;;
  487. -site=* | --site=* | --sit=*)
  488. site="$ac_optarg" ;;
  489. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  490. ac_prev=srcdir ;;
  491. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  492. srcdir="$ac_optarg" ;;
  493. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  494. | --syscon | --sysco | --sysc | --sys | --sy)
  495. ac_prev=sysconfdir ;;
  496. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  497. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  498. sysconfdir="$ac_optarg" ;;
  499. -target | --target | --targe | --targ | --tar | --ta | --t)
  500. ac_prev=target ;;
  501. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  502. target="$ac_optarg" ;;
  503. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  504. verbose=yes ;;
  505. -version | --version | --versio | --versi | --vers)
  506. echo "configure generated by autoconf version 2.13"
  507. exit 0 ;;
  508. -with-* | --with-*)
  509. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  510. # Reject names that are not valid shell variable names.
  511. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  512. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  513. fi
  514. ac_package=`echo $ac_package| sed 's/-/_/g'`
  515. case "$ac_option" in
  516. *=*) ;;
  517. *) ac_optarg=yes ;;
  518. esac
  519. eval "with_${ac_package}='$ac_optarg'" ;;
  520. -without-* | --without-*)
  521. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  522. # Reject names that are not valid shell variable names.
  523. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  524. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  525. fi
  526. ac_package=`echo $ac_package| sed 's/-/_/g'`
  527. eval "with_${ac_package}=no" ;;
  528. --x)
  529. # Obsolete; use --with-x.
  530. with_x=yes ;;
  531. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  532. | --x-incl | --x-inc | --x-in | --x-i)
  533. ac_prev=x_includes ;;
  534. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  535. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  536. x_includes="$ac_optarg" ;;
  537. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  538. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  539. ac_prev=x_libraries ;;
  540. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  541. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  542. x_libraries="$ac_optarg" ;;
  543. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  544. ;;
  545. *)
  546. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  547. echo "configure: warning: $ac_option: invalid host type" 1>&2
  548. fi
  549. if test "x$nonopt" != xNONE; then
  550. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  551. fi
  552. nonopt="$ac_option"
  553. ;;
  554. esac
  555. done
  556. if test -n "$ac_prev"; then
  557. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  558. fi
  559. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  560. # File descriptor usage:
  561. # 0 standard input
  562. # 1 file creation
  563. # 2 errors and warnings
  564. # 3 some systems may open it to /dev/tty
  565. # 4 used on the Kubota Titan
  566. # 6 checking for... messages and results
  567. # 5 compiler messages saved in config.log
  568. if test "$silent" = yes; then
  569. exec 6>/dev/null
  570. else
  571. exec 6>&1
  572. fi
  573. exec 5>./config.log
  574. echo "\
  575. This file contains any messages produced by compilers while
  576. running configure, to aid debugging if configure makes a mistake.
  577. " 1>&5
  578. # Strip out --no-create and --no-recursion so they do not pile up.
  579. # Also quote any args containing shell metacharacters.
  580. ac_configure_args=
  581. for ac_arg
  582. do
  583. case "$ac_arg" in
  584. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  585. | --no-cr | --no-c) ;;
  586. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  587. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  588. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  589. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  590. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  591. esac
  592. done
  593. # NLS nuisances.
  594. # Only set these to C if already set. These must not be set unconditionally
  595. # because not all systems understand e.g. LANG=C (notably SCO).
  596. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  597. # Non-C LC_CTYPE values break the ctype check.
  598. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  599. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  600. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  601. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  602. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  603. rm -rf conftest* confdefs.h
  604. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  605. echo > confdefs.h
  606. # A filename unique to this package, relative to the directory that
  607. # configure is in, which we can look for to find out if srcdir is correct.
  608. ac_unique_file=configure.in
  609. # Find the source files, if location was not specified.
  610. if test -z "$srcdir"; then
  611. ac_srcdir_defaulted=yes
  612. # Try the directory containing this script, then its parent.
  613. ac_prog=$0
  614. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  615. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  616. srcdir=$ac_confdir
  617. if test ! -r $srcdir/$ac_unique_file; then
  618. srcdir=..
  619. fi
  620. else
  621. ac_srcdir_defaulted=no
  622. fi
  623. if test ! -r $srcdir/$ac_unique_file; then
  624. if test "$ac_srcdir_defaulted" = yes; then
  625. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  626. else
  627. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  628. fi
  629. fi
  630. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  631. # Prefer explicitly selected file to automatically selected ones.
  632. if test -z "$CONFIG_SITE"; then
  633. if test "x$prefix" != xNONE; then
  634. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  635. else
  636. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  637. fi
  638. fi
  639. for ac_site_file in $CONFIG_SITE; do
  640. if test -r "$ac_site_file"; then
  641. echo "loading site script $ac_site_file"
  642. . "$ac_site_file"
  643. fi
  644. done
  645. ac_ext=c
  646. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  647. ac_cpp='$CPP $CPPFLAGS'
  648. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  649. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  650. cross_compiling=$ac_cv_prog_cc_cross
  651. ac_exeext=
  652. ac_objext=o
  653. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  654. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  655. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  656. ac_n= ac_c='
  657. ' ac_t=' '
  658. else
  659. ac_n=-n ac_c= ac_t=
  660. fi
  661. else
  662. ac_n= ac_c='\c' ac_t=
  663. fi
  664. ac_aux_dir=
  665. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  666. if test -f $ac_dir/install-sh; then
  667. ac_aux_dir=$ac_dir
  668. ac_install_sh="$ac_aux_dir/install-sh -c"
  669. break
  670. elif test -f $ac_dir/install.sh; then
  671. ac_aux_dir=$ac_dir
  672. ac_install_sh="$ac_aux_dir/install.sh -c"
  673. break
  674. fi
  675. done
  676. if test -z "$ac_aux_dir"; then
  677. { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  678. fi
  679. ac_config_guess=$ac_aux_dir/config.guess
  680. ac_config_sub=$ac_aux_dir/config.sub
  681. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  682. # Make sure we can run config.sub.
  683. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  684. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  685. fi
  686. echo $ac_n "checking host system type""... $ac_c" 1>&6
  687. echo "configure:759: checking host system type" >&5
  688. host_alias=$host
  689. case "$host_alias" in
  690. NONE)
  691. case $nonopt in
  692. NONE)
  693. if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  694. else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  695. fi ;;
  696. *) host_alias=$nonopt ;;
  697. esac ;;
  698. esac
  699. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  700. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  701. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  702. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  703. echo "$ac_t""$host" 1>&6
  704. # Extract the first word of "gcc", so it can be a program name with args.
  705. set dummy gcc; ac_word=$2
  706. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  707. echo "configure:782: checking for $ac_word" >&5
  708. if test -n "$CC"; then
  709. ac_cv_prog_CC="$CC" # Let the user override the test.
  710. else
  711. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  712. ac_dummy="$PATH"
  713. for ac_dir in $ac_dummy; do
  714. test -z "$ac_dir" && ac_dir=.
  715. if test -f $ac_dir/$ac_word; then
  716. ac_cv_prog_CC="gcc"
  717. break
  718. fi
  719. done
  720. IFS="$ac_save_ifs"
  721. fi
  722. CC="$ac_cv_prog_CC"
  723. if test -n "$CC"; then
  724. echo "$ac_t""$CC" 1>&6
  725. else
  726. echo "$ac_t""no" 1>&6
  727. fi
  728. if test -z "$CC"; then
  729. # Extract the first word of "cc", so it can be a program name with args.
  730. set dummy cc; ac_word=$2
  731. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  732. echo "configure:809: checking for $ac_word" >&5
  733. if test -n "$CC"; then
  734. ac_cv_prog_CC="$CC" # Let the user override the test.
  735. else
  736. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  737. ac_prog_rejected=no
  738. ac_dummy="$PATH"
  739. for ac_dir in $ac_dummy; do
  740. test -z "$ac_dir" && ac_dir=.
  741. if test -f $ac_dir/$ac_word; then
  742. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  743. ac_prog_rejected=yes
  744. continue
  745. fi
  746. ac_cv_prog_CC="cc"
  747. break
  748. fi
  749. done
  750. IFS="$ac_save_ifs"
  751. if test $ac_prog_rejected = yes; then
  752. # We found a bogon in the path, so make sure we never use it.
  753. set dummy $ac_cv_prog_CC
  754. shift
  755. if test $# -gt 0; then
  756. # We chose a different compiler from the bogus one.
  757. # However, it has the same basename, so the bogon will be chosen
  758. # first if we set CC to just the basename; use the full file name.
  759. shift
  760. set dummy "$ac_dir/$ac_word" "$@"
  761. shift
  762. ac_cv_prog_CC="$@"
  763. fi
  764. fi
  765. fi
  766. CC="$ac_cv_prog_CC"
  767. if test -n "$CC"; then
  768. echo "$ac_t""$CC" 1>&6
  769. else
  770. echo "$ac_t""no" 1>&6
  771. fi
  772. if test -z "$CC"; then
  773. case "`uname -s`" in
  774. *win32* | *WIN32*)
  775. # Extract the first word of "cl", so it can be a program name with args.
  776. set dummy cl; ac_word=$2
  777. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  778. echo "configure:857: checking for $ac_word" >&5
  779. if test -n "$CC"; then
  780. ac_cv_prog_CC="$CC" # Let the user override the test.
  781. else
  782. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  783. ac_dummy="$PATH"
  784. for ac_dir in $ac_dummy; do
  785. test -z "$ac_dir" && ac_dir=.
  786. if test -f $ac_dir/$ac_word; then
  787. ac_cv_prog_CC="cl"
  788. break
  789. fi
  790. done
  791. IFS="$ac_save_ifs"
  792. fi
  793. CC="$ac_cv_prog_CC"
  794. if test -n "$CC"; then
  795. echo "$ac_t""$CC" 1>&6
  796. else
  797. echo "$ac_t""no" 1>&6
  798. fi
  799. ;;
  800. esac
  801. fi
  802. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  803. fi
  804. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  805. echo "configure:886: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  806. ac_ext=c
  807. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  808. ac_cpp='$CPP $CPPFLAGS'
  809. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  810. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  811. cross_compiling=$ac_cv_prog_cc_cross
  812. cat > conftest.$ac_ext << EOF
  813. #line 897 "configure"
  814. #include "confdefs.h"
  815. main(){return(0);}
  816. EOF
  817. if { (eval echo configure:902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  818. ac_cv_prog_cc_works=yes
  819. # If we can't run a trivial program, we are probably using a cross compiler.
  820. if (./conftest; exit) 2>/dev/null; then
  821. ac_cv_prog_cc_cross=no
  822. else
  823. ac_cv_prog_cc_cross=yes
  824. fi
  825. else
  826. echo "configure: failed program was:" >&5
  827. cat conftest.$ac_ext >&5
  828. ac_cv_prog_cc_works=no
  829. fi
  830. rm -fr conftest*
  831. ac_ext=c
  832. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  833. ac_cpp='$CPP $CPPFLAGS'
  834. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  835. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  836. cross_compiling=$ac_cv_prog_cc_cross
  837. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  838. if test $ac_cv_prog_cc_works = no; then
  839. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  840. fi
  841. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  842. echo "configure:928: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  843. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  844. cross_compiling=$ac_cv_prog_cc_cross
  845. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  846. echo "configure:933: checking whether we are using GNU C" >&5
  847. cat > conftest.c <<EOF
  848. #ifdef __GNUC__
  849. yes;
  850. #endif
  851. EOF
  852. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  853. ac_cv_prog_gcc=yes
  854. else
  855. ac_cv_prog_gcc=no
  856. fi
  857. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  858. if test $ac_cv_prog_gcc = yes; then
  859. GCC=yes
  860. else
  861. GCC=
  862. fi
  863. ac_test_CFLAGS="${CFLAGS+set}"
  864. ac_save_CFLAGS="$CFLAGS"
  865. CFLAGS=
  866. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  867. echo "configure:958: checking whether ${CC-cc} accepts -g" >&5
  868. echo 'void f(){}' > conftest.c
  869. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  870. ac_cv_prog_cc_g=yes
  871. else
  872. ac_cv_prog_cc_g=no
  873. fi
  874. rm -f conftest*
  875. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  876. if test "$ac_test_CFLAGS" = set; then
  877. CFLAGS="$ac_save_CFLAGS"
  878. elif test $ac_cv_prog_cc_g = yes; then
  879. if test "$GCC" = yes; then
  880. CFLAGS="-g -O2"
  881. else
  882. CFLAGS="-g"
  883. fi
  884. else
  885. if test "$GCC" = yes; then
  886. CFLAGS="-O2"
  887. else
  888. CFLAGS=
  889. fi
  890. fi
  891. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  892. echo "configure:987: checking for Cygwin environment" >&5
  893. cat > conftest.$ac_ext <<EOF
  894. #line 990 "configure"
  895. #include "confdefs.h"
  896. int main() {
  897. #ifndef __CYGWIN__
  898. #define __CYGWIN__ __CYGWIN32__
  899. #endif
  900. return __CYGWIN__;
  901. ; return 0; }
  902. EOF
  903. if { (eval echo configure:1001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  904. rm -rf conftest*
  905. ac_cv_cygwin=yes
  906. else
  907. echo "configure: failed program was:" >&5
  908. cat conftest.$ac_ext >&5
  909. rm -rf conftest*
  910. ac_cv_cygwin=no
  911. fi
  912. rm -f conftest*
  913. rm -f conftest*
  914. echo "$ac_t""$ac_cv_cygwin" 1>&6
  915. CYGWIN=
  916. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  917. echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
  918. echo "configure:1017: checking for mingw32 environment" >&5
  919. cat > conftest.$ac_ext <<EOF
  920. #line 1020 "configure"
  921. #include "confdefs.h"
  922. int main() {
  923. return __MINGW32__;
  924. ; return 0; }
  925. EOF
  926. if { (eval echo configure:1027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  927. rm -rf conftest*
  928. ac_cv_mingw32=yes
  929. else
  930. echo "configure: failed program was:" >&5
  931. cat conftest.$ac_ext >&5
  932. rm -rf conftest*
  933. ac_cv_mingw32=no
  934. fi
  935. rm -f conftest*
  936. rm -f conftest*
  937. echo "$ac_t""$ac_cv_mingw32" 1>&6
  938. MINGW32=
  939. test "$ac_cv_mingw32" = yes && MINGW32=yes
  940. echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
  941. echo "configure:1045: checking for executable suffix" >&5
  942. if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
  943. ac_cv_exeext=.exe
  944. else
  945. ac_cv_exeext=no
  946. fi
  947. EXEEXT=""
  948. test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
  949. echo "$ac_t""${ac_cv_exeext}" 1>&6
  950. ac_exeext=$EXEEXT
  951. # Check for full floating-point support, including Infinity and NaN
  952. IEEEFLAG=
  953. echo $ac_n "checking for full floating-point support""... $ac_c" 1>&6
  954. echo "configure:1064: checking for full floating-point support" >&5
  955. if test "$cross_compiling" = yes; then
  956. echo "$ac_t""unknown (cross-compiling)" 1>&6
  957. echo $ac_n "checking whether "cc -mieee" works""... $ac_c" 1>&6
  958. echo "configure:1069: checking whether "cc -mieee" works" >&5
  959. ac_save_cflags=${CFLAGS}
  960. CFLAGS="$CFLAGS -mieee"
  961. cat > conftest.$ac_ext <<EOF
  962. #line 1073 "configure"
  963. #include "confdefs.h"
  964. int main() {
  965. ; return 0; }
  966. EOF
  967. if { (eval echo configure:1080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  968. rm -rf conftest*
  969. echo "$ac_t""yes" 1>&6
  970. IEEEFLAG="-mieee"
  971. else
  972. echo "configure: failed program was:" >&5
  973. cat conftest.$ac_ext >&5
  974. rm -rf conftest*
  975. echo "$ac_t""no" 1>&6
  976. fi
  977. rm -f conftest*
  978. CFLAGS=${ac_save_cflags}
  979. else
  980. cat > conftest.$ac_ext <<EOF
  981. #line 1096 "configure"
  982. #include "confdefs.h"
  983. #include <float.h>
  984. int main(void) {
  985. double one = 1.0;
  986. double zero = 0.0;
  987. if (one/zero > DBL_MAX) /* infinity */
  988. if (zero/zero != zero/zero) /* NaN */
  989. return 0;
  990. return 1;
  991. }
  992. EOF
  993. if { (eval echo configure:1110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  994. then
  995. echo "$ac_t""yes" 1>&6
  996. else
  997. echo "configure: failed program was:" >&5
  998. cat conftest.$ac_ext >&5
  999. rm -fr conftest*
  1000. echo "$ac_t""no" 1>&6
  1001. ac_save_cflags=${CFLAGS}
  1002. CFLAGS=-mieee
  1003. echo $ac_n "checking for full floating-point support with -mieee""... $ac_c" 1>&6
  1004. echo "configure:1123: checking for full floating-point support with -mieee" >&5
  1005. if test "$cross_compiling" = yes; then
  1006. echo "$ac_t""unknown (cross-compiling)" 1>&6
  1007. { echo "configure: error: *** INTERNAL CONFIGURE ERROR" 1>&2; exit 1; }
  1008. else
  1009. cat > conftest.$ac_ext <<EOF
  1010. #line 1130 "configure"
  1011. #include "confdefs.h"
  1012. #include <float.h>
  1013. int main(void) {
  1014. double one = 1.0;
  1015. double zero = 0.0;
  1016. if (one/zero > DBL_MAX) /* infinity */
  1017. if (zero/zero != zero/zero) /* NaN */
  1018. return 0;
  1019. return 1;
  1020. }
  1021. EOF
  1022. if { (eval echo configure:1144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1023. then
  1024. echo "$ac_t""yes" 1>&6
  1025. IEEEFLAG="-mieee"
  1026. else
  1027. echo "configure: failed program was:" >&5
  1028. cat conftest.$ac_ext >&5
  1029. rm -fr conftest*
  1030. echo "$ac_t""no" 1>&6
  1031. echo "configure: warning: *** Incomplete floating-point support." 1>&2
  1032. fi
  1033. rm -fr conftest*
  1034. fi
  1035. CFLAGS=${ac_save_cflags}
  1036. fi
  1037. rm -fr conftest*
  1038. fi
  1039. CFLAGS="$CFLAGS $IEEEFLAG"
  1040. # Set BINDIR
  1041. if test -n "${bindir}"; then
  1042. BINDIR="${bindir}"
  1043. else
  1044. BINDIR=/usr/local/bin
  1045. fi
  1046. # Set SRCDIR and DSTDIR
  1047. # Extract the first word of "pwd", so it can be a program name with args.
  1048. set dummy pwd; ac_word=$2
  1049. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1050. echo "configure:1181: checking for $ac_word" >&5
  1051. case "$pwd" in
  1052. /*)
  1053. ac_cv_path_pwd="$pwd" # Let the user override the test with a path.
  1054. ;;
  1055. ?:/*)
  1056. ac_cv_path_pwd="$pwd" # Let the user override the test with a dos path.
  1057. ;;
  1058. *)
  1059. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1060. ac_dummy="$PATH"
  1061. for ac_dir in $ac_dummy; do
  1062. test -z "$ac_dir" && ac_dir=.
  1063. if test -f $ac_dir/$ac_word; then
  1064. ac_cv_path_pwd="$ac_dir/$ac_word"
  1065. break
  1066. fi
  1067. done
  1068. IFS="$ac_save_ifs"
  1069. test -z "$ac_cv_path_pwd" && ac_cv_path_pwd="pwd"
  1070. ;;
  1071. esac
  1072. pwd="$ac_cv_path_pwd"
  1073. if test -n "$pwd"; then
  1074. echo "$ac_t""$pwd" 1>&6
  1075. else
  1076. echo "$ac_t""no" 1>&6
  1077. fi
  1078. if test "$MINGW32" = yes ; then
  1079. winpwd="pwd -W"
  1080. else
  1081. winpwd="$pwd"
  1082. fi
  1083. echo $ac_n "checking for source directory""... $ac_c" 1>&6
  1084. echo "configure:1219: checking for source directory" >&5
  1085. if test -z "$srcdir" ; then
  1086. SRCDIR=`$pwd`
  1087. else
  1088. SRCDIR=`(cd "$srcdir" ; $pwd)`
  1089. fi
  1090. echo "$ac_t"""$SRCDIR"" 1>&6
  1091. echo $ac_n "checking for build directory""... $ac_c" 1>&6
  1092. echo "configure:1230: checking for build directory" >&5
  1093. DSTDIR=`$pwd`
  1094. WINDSTDIR=`$winpwd`
  1095. echo "$ac_t"""$DSTDIR"" 1>&6
  1096. # Set ARCH
  1097. ARCH=
  1098. if test -z "${host}"; then
  1099. ARCH="unknown"
  1100. else
  1101. ARCH="${host}"
  1102. fi
  1103. # Use absolute path for aux directory so that install-sh works
  1104. ac_aux_dir=
  1105. for ac_dir in "$SRCDIR" $srcdir/"$SRCDIR"; do
  1106. if test -f $ac_dir/install-sh; then
  1107. ac_aux_dir=$ac_dir
  1108. ac_install_sh="$ac_aux_dir/install-sh -c"
  1109. break
  1110. elif test -f $ac_dir/install.sh; then
  1111. ac_aux_dir=$ac_dir
  1112. ac_install_sh="$ac_aux_dir/install.sh -c"
  1113. break
  1114. fi
  1115. done
  1116. if test -z "$ac_aux_dir"; then
  1117. { echo "configure: error: can not find install-sh or install.sh in "$SRCDIR" $srcdir/"$SRCDIR"" 1>&2; exit 1; }
  1118. fi
  1119. ac_config_guess=$ac_aux_dir/config.guess
  1120. ac_config_sub=$ac_aux_dir/config.sub
  1121. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  1122. # Set GISBASE and GRASS_BIN
  1123. GISBASE="${WINDSTDIR}/dist.${ARCH}"
  1124. GRASS_BIN="${DSTDIR}/bin.${ARCH}"
  1125. # Set GRASS_VERSION_*
  1126. GRASS_VERSION_FILE=include/VERSION
  1127. GRASS_VERSION_MAJOR=`sed -n 1p "${GRASS_VERSION_FILE}"`
  1128. GRASS_VERSION_MINOR=`sed -n 2p "${GRASS_VERSION_FILE}"`
  1129. GRASS_VERSION_RELEASE=`sed -n 3p "${GRASS_VERSION_FILE}"`
  1130. GRASS_VERSION_DATE=`sed -n 4p "${GRASS_VERSION_FILE}"`
  1131. GRASS_VERSION_NUMBER=`echo ${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.${GRASS_VERSION_RELEASE}`
  1132. NAME_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/\..*//'`
  1133. LIB_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/^\([0-9.]*\).*$/\1/'`
  1134. GRASS_VERSION_SVN="exported"
  1135. # Extract the first word of "svnversion", so it can be a program name with args.
  1136. set dummy svnversion; ac_word=$2
  1137. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1138. echo "configure:1298: checking for $ac_word" >&5
  1139. case "$SVN_VERSION" in
  1140. /*)
  1141. ac_cv_path_SVN_VERSION="$SVN_VERSION" # Let the user override the test with a path.
  1142. ;;
  1143. ?:/*)
  1144. ac_cv_path_SVN_VERSION="$SVN_VERSION" # Let the user override the test with a dos path.
  1145. ;;
  1146. *)
  1147. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1148. ac_dummy="$PATH"
  1149. for ac_dir in $ac_dummy; do
  1150. test -z "$ac_dir" && ac_dir=.
  1151. if test -f $ac_dir/$ac_word; then
  1152. ac_cv_path_SVN_VERSION="$ac_dir/$ac_word"
  1153. break
  1154. fi
  1155. done
  1156. IFS="$ac_save_ifs"
  1157. test -z "$ac_cv_path_SVN_VERSION" && ac_cv_path_SVN_VERSION="no"
  1158. ;;
  1159. esac
  1160. SVN_VERSION="$ac_cv_path_SVN_VERSION"
  1161. if test -n "$SVN_VERSION"; then
  1162. echo "$ac_t""$SVN_VERSION" 1>&6
  1163. else
  1164. echo "$ac_t""no" 1>&6
  1165. fi
  1166. if test "$SVN_VERSION" != "no" ; then
  1167. GRASS_VERSION_SVN=`$SVN_VERSION -c | cut -f2 -d:`
  1168. if test "$GRASS_VERSION_SVN" = "exported" -o "$GRASS_VERSION_SVN" = "Unversioned directory" ; then
  1169. GRASS_VERSION_SVN="exported"
  1170. else
  1171. GRASS_VERSION_SVN="r$GRASS_VERSION_SVN"
  1172. fi
  1173. fi
  1174. # Check for MacOSX App
  1175. # Check whether --enable-macosx-app or --disable-macosx-app was given.
  1176. if test "${enable_macosx_app+set}" = set; then
  1177. enableval="$enable_macosx_app"
  1178. :
  1179. else
  1180. enable_macosx_app=no
  1181. fi
  1182. echo $ac_n "checking for MacOSX App""... $ac_c" 1>&6
  1183. echo "configure:1359: checking for MacOSX App" >&5
  1184. case "$enable_macosx_app" in
  1185. yes) MACOSX_APP=1 ;;
  1186. no) MACOSX_APP= ;;
  1187. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  1188. esac
  1189. echo "$ac_t"""$enable_macosx_app"" 1>&6
  1190. # Check for MacOSX archs
  1191. echo $ac_n "checking for MacOSX architectures""... $ac_c" 1>&6
  1192. echo "configure:1371: checking for MacOSX architectures" >&5
  1193. MACOSX_ARCHS=
  1194. if test -z "$with_macosx_archs" ; then
  1195. echo "$ac_t""no" 1>&6
  1196. else
  1197. for a in $with_macosx_archs
  1198. do
  1199. # check if valid arch?
  1200. case "$a" in
  1201. i386|ppc|x86_64|ppc64)
  1202. MACOSX_ARCHS="$MACOSX_ARCHS -arch $a"
  1203. ;;
  1204. esac
  1205. done
  1206. echo "$ac_t""$MACOSX_ARCHS" 1>&6
  1207. LDFLAGS="$LDFLAGS $MACOSX_ARCHS"
  1208. CFLAGS="$CFLAGS $MACOSX_ARCHS"
  1209. CXXFLAGS="$CXXFLAGS $MACOSX_ARCHS"
  1210. fi
  1211. # Done checking MacOSX archs
  1212. # Check for MacOSX SDK
  1213. echo $ac_n "checking for MacOSX SDK""... $ac_c" 1>&6
  1214. echo "configure:1400: checking for MacOSX SDK" >&5
  1215. MACOSX_SDK=
  1216. if test -z "$with_macosx_sdk" ; then
  1217. echo "$ac_t""no" 1>&6
  1218. else
  1219. ac_safe=`echo "$with_macosx_sdk/SDKSettings.plist" | sed 'y%./+-%__p_%'`
  1220. echo $ac_n "checking for $with_macosx_sdk/SDKSettings.plist""... $ac_c" 1>&6
  1221. echo "configure:1410: checking for $with_macosx_sdk/SDKSettings.plist" >&5
  1222. if test "$cross_compiling" = yes; then
  1223. { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
  1224. else
  1225. if test -r $with_macosx_sdk/SDKSettings.plist; then
  1226. eval "ac_cv_file_$ac_safe=yes"
  1227. else
  1228. eval "ac_cv_file_$ac_safe=no"
  1229. fi
  1230. fi
  1231. if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
  1232. echo "$ac_t""yes" 1>&6
  1233. MACOSX_SDK="-isysroot $with_macosx_sdk"
  1234. else
  1235. echo "$ac_t""no" 1>&6
  1236. { echo "configure: error: *** specified SDK does not exist or is not a SDK" 1>&2; exit 1; }
  1237. fi
  1238. LDFLAGS="$LDFLAGS $MACOSX_SDK"
  1239. CFLAGS="$CFLAGS $MACOSX_SDK"
  1240. CXXFLAGS="$CXXFLAGS $MACOSX_SDK"
  1241. fi
  1242. # Done checking MacOSX SDK
  1243. # Set INST_DIR
  1244. if test -n "$MACOSX_APP" ; then
  1245. INSTDIR='${prefix}'"/GRASS-${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.app/Contents/MacOS"
  1246. else
  1247. INSTDIR='${prefix}'"/grass-${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.${GRASS_VERSION_RELEASE}"
  1248. fi
  1249. # Get flags for building shared libraries
  1250. echo $ac_n "checking how to build libraries""... $ac_c" 1>&6
  1251. echo "configure:1454: checking how to build libraries" >&5
  1252. # Check whether --enable-shared or --disable-shared was given.
  1253. if test "${enable_shared+set}" = set; then
  1254. enableval="$enable_shared"
  1255. shared_ok=$enableval
  1256. else
  1257. shared_ok=yes
  1258. fi
  1259. if test "${enable_shared+set}" = set; then
  1260. enableval="$enable_shared"
  1261. shared_ok=$enableval
  1262. else
  1263. shared_ok=yes
  1264. fi
  1265. if test "$shared_ok" = "yes" ; then
  1266. echo "$ac_t""shared" 1>&6
  1267. SHARED_BUILD=1
  1268. GRASS_LIBRARY_TYPE='shlib'
  1269. else
  1270. echo "$ac_t""static" 1>&6
  1271. SHARED_BUILD=0
  1272. cat >> confdefs.h <<\EOF
  1273. #define STATIC_BUILD 1
  1274. EOF
  1275. GRASS_LIBRARY_TYPE='stlib'
  1276. fi
  1277. ac_save_ldflags="$LDFLAGS"
  1278. SHLIB_CFLAGS=""
  1279. SHLIB_LD_FLAGS=""
  1280. SHLIB_SUFFIX=""
  1281. SHLIB_LD=""
  1282. STLIB_LD='${AR} cr'
  1283. STLIB_SUFFIX='.a'
  1284. GRASS_TRIM_DOTS='`echo ${LIB_VER} | tr -d .`'
  1285. GRASS_LIB_VERSIONS_OK=ok
  1286. LDFLAGS=""
  1287. LD_SEARCH_FLAGS=""
  1288. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1289. case $host in
  1290. *-linux-* | *-gnu* | *-kfreebsd*-gnu)
  1291. SHLIB_CFLAGS="-fPIC"
  1292. SHLIB_LD_FLAGS="-Wl,-soname,\$(notdir \$@)"
  1293. SHLIB_SUFFIX=".so"
  1294. SHLIB_LD="${CC} -shared"
  1295. LDFLAGS="-Wl,--export-dynamic"
  1296. LD_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
  1297. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1298. ;;
  1299. *-pc-cygwin)
  1300. SHLIB_SUFFIX=".dll"
  1301. SHLIB_LD="${CC} -shared"
  1302. LDFLAGS="-Wl,--export-dynamic"
  1303. LD_LIBRARY_PATH_VAR="PATH"
  1304. ;;
  1305. *-pc-mingw32 | *-w64-mingw32 | *-pc-msys)
  1306. SHLIB_SUFFIX=".dll"
  1307. SHLIB_LD="${CC} -shared"
  1308. LDFLAGS="-Wl,--export-dynamic,--enable-runtime-pseudo-reloc"
  1309. LD_LIBRARY_PATH_VAR="PATH"
  1310. ;;
  1311. *-apple-darwin*)
  1312. SHLIB_CFLAGS="-fno-common"
  1313. SHLIB_SUFFIX=".dylib"
  1314. 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}"
  1315. LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
  1316. ;;
  1317. *-sun-solaris*)
  1318. # Note: If _REENTRANT isn't defined, then Solaris
  1319. # won't define thread-safe library routines.
  1320. cat >> confdefs.h <<\EOF
  1321. #define _REENTRANT 1
  1322. EOF
  1323. cat >> confdefs.h <<\EOF
  1324. #define _POSIX_PTHREAD_SEMANTICS 1
  1325. EOF
  1326. # Note: need the LIBS below, otherwise Tk won't find Tcl's
  1327. # symbols when dynamically loaded into tclsh.
  1328. if test "$GCC" = "yes" ; then
  1329. SHLIB_CFLAGS="-fPIC"
  1330. SHLIB_LD="$CC -shared"
  1331. LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
  1332. else
  1333. SHLIB_CFLAGS="-KPIC"
  1334. SHLIB_LD="/usr/ccs/bin/ld -G -z text"
  1335. LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
  1336. fi
  1337. SHLIB_SUFFIX=".so"
  1338. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1339. ;;
  1340. *-solaris2*)
  1341. # Note: Solaris is as of 2010 Oracle Solaris, not Sun Solaris
  1342. # Oracle Solaris derives from Solaris 2
  1343. # derives from SunOS 5
  1344. # derives from UNIX System V Release 4
  1345. # Note: If _REENTRANT isn't defined, then Solaris
  1346. # won't define thread-safe library routines.
  1347. cat >> confdefs.h <<\EOF
  1348. #define _REENTRANT 1
  1349. EOF
  1350. cat >> confdefs.h <<\EOF
  1351. #define _POSIX_PTHREAD_SEMANTICS 1
  1352. EOF
  1353. # Note: need the LIBS below, otherwise Tk won't find Tcl's
  1354. # symbols when dynamically loaded into tclsh.
  1355. if test "$GCC" = "yes" ; then
  1356. SHLIB_CFLAGS="-fPIC"
  1357. SHLIB_LD="$CC -shared"
  1358. LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
  1359. else
  1360. SHLIB_CFLAGS="-KPIC"
  1361. SHLIB_LD="/usr/ccs/bin/ld -G -z text"
  1362. LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
  1363. fi
  1364. SHLIB_SUFFIX=".so"
  1365. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1366. ;;
  1367. *-freebsd*)
  1368. # NOTE: only FreeBSD 4+ is supported
  1369. # FreeBSD 3.* and greater have ELF.
  1370. SHLIB_CFLAGS="-fPIC"
  1371. #SHLIB_LD="ld -Bshareable -x"
  1372. SHLIB_LD="${CC} -shared"
  1373. SHLIB_SUFFIX=".so"
  1374. LDFLAGS="-export-dynamic"
  1375. #LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
  1376. LD_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
  1377. # TODO: add optional pthread support with any combination of:
  1378. # CFLAGS="$CFLAGS -pthread"
  1379. # LDFLAGS="$LDFLAGS -lpthread"
  1380. # AC_DEFINE(_REENTRANT)
  1381. # AC_DEFINE(_POSIX_PTHREAD_SEMANTICS)
  1382. ;;
  1383. *-netbsd*)
  1384. # NetBSD has ELF.
  1385. SHLIB_CFLAGS="-fPIC"
  1386. SHLIB_LD="${CC} -shared"
  1387. SHLIB_LD_LIBS="${LIBS}"
  1388. LDFLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -export-dynamic'
  1389. SHLIB_LD_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -export-dynamic'
  1390. LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -L${LIB_RUNTIME_DIR}'
  1391. # some older NetBSD versions do not handle version numbers with dots.
  1392. #STLIB_SUFFIX='${GRASS_TRIM_DOTS}.a'
  1393. #SHLIB_SUFFIX='${GRASS_TRIM_DOTS}.so'
  1394. #GRASS_LIB_VERSIONS_OK=nodots
  1395. # NetBSD 6 does handle version numbers with dots.
  1396. STLIB_SUFFIX=".a"
  1397. SHLIB_SUFFIX=".so"
  1398. # TODO: add optional pthread support with any combination of:
  1399. # CFLAGS="$CFLAGS -pthread"
  1400. # LDFLAGS="$LDFLAGS -lpthread"
  1401. # AC_DEFINE(_REENTRANT)
  1402. # AC_DEFINE(_POSIX_PTHREAD_SEMANTICS)
  1403. ;;
  1404. *aix*)
  1405. # NOTE: do we need to support aix < 6 ?
  1406. LIBS="$LIBS -lc"
  1407. SHLIB_CFLAGS=""
  1408. LDFLAGS=""
  1409. if test "$GCC" = "yes" ; then
  1410. SHLIB_CFLAGS="-fPIC"
  1411. SHLIB_LD="$CC -shared"
  1412. LD_SEARCH_FLAGS='-Wl,-bsvr4,-R,${LIB_RUNTIME_DIR}'
  1413. else
  1414. # assume xlc
  1415. SHLIB_CFLAGS="-qmkshrobj"
  1416. SHLIB_LD="$CC -shared"
  1417. LD_SEARCH_FLAGS='-Wl,-bsvr4,-R,${LIB_RUNTIME_DIR}'
  1418. fi
  1419. SHLIB_SUFFIX=".so"
  1420. LD_LIBRARY_PATH_VAR="LIBPATH"
  1421. GRASS_NEEDS_EXP_FILE=1
  1422. GRASS_EXPORT_FILE_SUFFIX='${LIB_VER}.exp'
  1423. ;;
  1424. *)
  1425. { echo "configure: error: ***Unknown platform: $host***" 1>&2; exit 1; }
  1426. ;;
  1427. esac
  1428. LDFLAGS="${ac_save_ldflags} $LDFLAGS"
  1429. # Enable options
  1430. # Check whether --enable-w11 or --disable-w11 was given.
  1431. if test "${enable_w11+set}" = set; then
  1432. enableval="$enable_w11"
  1433. :
  1434. else
  1435. enable_w11=no
  1436. fi
  1437. # With options
  1438. # Check whether --with-cxx or --without-cxx was given.
  1439. if test "${with_cxx+set}" = set; then
  1440. withval="$with_cxx"
  1441. :
  1442. else
  1443. with_cxx=yes
  1444. fi
  1445. #LOC_ARG_WITH(g77, GNU Fortran 77, no)
  1446. # Check whether --with-macosx-archs or --without-macosx-archs was given.
  1447. if test "${with_macosx_archs+set}" = set; then
  1448. withval="$with_macosx_archs"
  1449. :
  1450. else
  1451. with_macosx_archs="no"
  1452. fi
  1453. # Check whether --with-macosx-sdk or --without-macosx-sdk was given.
  1454. if test "${with_macosx_sdk+set}" = set; then
  1455. withval="$with_macosx_sdk"
  1456. :
  1457. else
  1458. with_macosx_sdk="no"
  1459. fi
  1460. # Check whether --with-tiff or --without-tiff was given.
  1461. if test "${with_tiff+set}" = set; then
  1462. withval="$with_tiff"
  1463. :
  1464. else
  1465. with_tiff=yes
  1466. fi
  1467. # Check whether --with-png or --without-png was given.
  1468. if test "${with_png+set}" = set; then
  1469. withval="$with_png"
  1470. :
  1471. else
  1472. with_png=yes
  1473. fi
  1474. # Check whether --with-postgres or --without-postgres was given.
  1475. if test "${with_postgres+set}" = set; then
  1476. withval="$with_postgres"
  1477. :
  1478. else
  1479. with_postgres=no
  1480. fi
  1481. # Check whether --with-mysql or --without-mysql was given.
  1482. if test "${with_mysql+set}" = set; then
  1483. withval="$with_mysql"
  1484. :
  1485. else
  1486. with_mysql=no
  1487. fi
  1488. # Check whether --with-sqlite or --without-sqlite was given.
  1489. if test "${with_sqlite+set}" = set; then
  1490. withval="$with_sqlite"
  1491. :
  1492. else
  1493. with_sqlite=yes
  1494. fi
  1495. # Check whether --with-opengl or --without-opengl was given.
  1496. if test "${with_opengl+set}" = set; then
  1497. withval="$with_opengl"
  1498. :
  1499. else
  1500. with_opengl=yes
  1501. fi
  1502. # Check whether --with-odbc or --without-odbc was given.
  1503. if test "${with_odbc+set}" = set; then
  1504. withval="$with_odbc"
  1505. :
  1506. else
  1507. with_odbc=no
  1508. fi
  1509. # Check whether --with-fftw or --without-fftw was given.
  1510. if test "${with_fftw+set}" = set; then
  1511. withval="$with_fftw"
  1512. :
  1513. else
  1514. with_fftw=yes
  1515. fi
  1516. # Check whether --with-blas or --without-blas was given.
  1517. if test "${with_blas+set}" = set; then
  1518. withval="$with_blas"
  1519. :
  1520. else
  1521. with_blas=no
  1522. fi
  1523. # Check whether --with-lapack or --without-lapack was given.
  1524. if test "${with_lapack+set}" = set; then
  1525. withval="$with_lapack"
  1526. :
  1527. else
  1528. with_lapack=no
  1529. fi
  1530. # Check whether --with-cairo or --without-cairo was given.
  1531. if test "${with_cairo+set}" = set; then
  1532. withval="$with_cairo"
  1533. :
  1534. else
  1535. with_cairo=yes
  1536. fi
  1537. # Check whether --with-freetype or --without-freetype was given.
  1538. if test "${with_freetype+set}" = set; then
  1539. withval="$with_freetype"
  1540. :
  1541. else
  1542. with_freetype=yes
  1543. fi
  1544. # Check whether --with-nls or --without-nls was given.
  1545. if test "${with_nls+set}" = set; then
  1546. withval="$with_nls"
  1547. :
  1548. else
  1549. with_nls=no
  1550. fi
  1551. # Check whether --with-readline or --without-readline was given.
  1552. if test "${with_readline+set}" = set; then
  1553. withval="$with_readline"
  1554. :
  1555. else
  1556. with_readline=no
  1557. fi
  1558. # Check whether --with-opendwg or --without-opendwg was given.
  1559. if test "${with_opendwg+set}" = set; then
  1560. withval="$with_opendwg"
  1561. :
  1562. else
  1563. with_opendwg=no
  1564. fi
  1565. # Check whether --with-regex or --without-regex was given.
  1566. if test "${with_regex+set}" = set; then
  1567. withval="$with_regex"
  1568. :
  1569. else
  1570. with_regex=yes
  1571. fi
  1572. # Check whether --with-pthread or --without-pthread was given.
  1573. if test "${with_pthread+set}" = set; then
  1574. withval="$with_pthread"
  1575. :
  1576. else
  1577. with_pthread=no
  1578. fi
  1579. # Check whether --with-openmp or --without-openmp was given.
  1580. if test "${with_openmp+set}" = set; then
  1581. withval="$with_openmp"
  1582. :
  1583. else
  1584. with_openmp=no
  1585. fi
  1586. # Check whether --with-opencl or --without-opencl was given.
  1587. if test "${with_opencl+set}" = set; then
  1588. withval="$with_opencl"
  1589. :
  1590. else
  1591. with_opencl=no
  1592. fi
  1593. # Check whether --with-bzlib or --without-bzlib was given.
  1594. if test "${with_bzlib+set}" = set; then
  1595. withval="$with_bzlib"
  1596. :
  1597. else
  1598. with_bzlib=no
  1599. fi
  1600. # Check whether --with-gdal or --without-gdal was given.
  1601. if test "${with_gdal+set}" = set; then
  1602. withval="$with_gdal"
  1603. :
  1604. fi
  1605. # Check whether --with-liblas or --without-liblas was given.
  1606. if test "${with_liblas+set}" = set; then
  1607. withval="$with_liblas"
  1608. :
  1609. else
  1610. with_liblas="no"
  1611. fi
  1612. # Check whether --with-pdal or --without-pdal was given.
  1613. if test "${with_pdal+set}" = set; then
  1614. withval="$with_pdal"
  1615. :
  1616. else
  1617. with_pdal="no"
  1618. fi
  1619. # Check whether --with-wxwidgets or --without-wxwidgets was given.
  1620. if test "${with_wxwidgets+set}" = set; then
  1621. withval="$with_wxwidgets"
  1622. :
  1623. else
  1624. with_wxwidgets="no"
  1625. fi
  1626. # Check whether --with-netcdf or --without-netcdf was given.
  1627. if test "${with_netcdf+set}" = set; then
  1628. withval="$with_netcdf"
  1629. :
  1630. else
  1631. with_netcdf="no"
  1632. fi
  1633. # With includes and libs options
  1634. # Check whether --with-geos or --without-geos was given.
  1635. if test "${with_geos+set}" = set; then
  1636. withval="$with_geos"
  1637. :
  1638. else
  1639. with_geos="no"
  1640. fi
  1641. # Check whether --with-includes or --without-includes was given.
  1642. if test "${with_includes+set}" = set; then
  1643. withval="$with_includes"
  1644. :
  1645. fi
  1646. # Check whether --with-libs or --without-libs was given.
  1647. if test "${with_libs+set}" = set; then
  1648. withval="$with_libs"
  1649. :
  1650. fi
  1651. # Check whether --with-zlib-includes or --without-zlib-includes was given.
  1652. if test "${with_zlib_includes+set}" = set; then
  1653. withval="$with_zlib_includes"
  1654. :
  1655. fi
  1656. # Check whether --with-zlib-libs or --without-zlib-libs was given.
  1657. if test "${with_zlib_libs+set}" = set; then
  1658. withval="$with_zlib_libs"
  1659. :
  1660. fi
  1661. # Check whether --with-bzlib-includes or --without-bzlib-includes was given.
  1662. if test "${with_bzlib_includes+set}" = set; then
  1663. withval="$with_bzlib_includes"
  1664. :
  1665. fi
  1666. # Check whether --with-bzlib-libs or --without-bzlib-libs was given.
  1667. if test "${with_bzlib_libs+set}" = set; then
  1668. withval="$with_bzlib_libs"
  1669. :
  1670. fi
  1671. # Check whether --with-readline-includes or --without-readline-includes was given.
  1672. if test "${with_readline_includes+set}" = set; then
  1673. withval="$with_readline_includes"
  1674. :
  1675. fi
  1676. # Check whether --with-readline-libs or --without-readline-libs was given.
  1677. if test "${with_readline_libs+set}" = set; then
  1678. withval="$with_readline_libs"
  1679. :
  1680. fi
  1681. # Check whether --with-tiff-includes or --without-tiff-includes was given.
  1682. if test "${with_tiff_includes+set}" = set; then
  1683. withval="$with_tiff_includes"
  1684. :
  1685. fi
  1686. # Check whether --with-tiff-libs or --without-tiff-libs was given.
  1687. if test "${with_tiff_libs+set}" = set; then
  1688. withval="$with_tiff_libs"
  1689. :
  1690. fi
  1691. # Check whether --with-png-includes or --without-png-includes was given.
  1692. if test "${with_png_includes+set}" = set; then
  1693. withval="$with_png_includes"
  1694. :
  1695. fi
  1696. # Check whether --with-png-libs or --without-png-libs was given.
  1697. if test "${with_png_libs+set}" = set; then
  1698. withval="$with_png_libs"
  1699. :
  1700. fi
  1701. # Check whether --with-postgres-includes or --without-postgres-includes was given.
  1702. if test "${with_postgres_includes+set}" = set; then
  1703. withval="$with_postgres_includes"
  1704. :
  1705. fi
  1706. # Check whether --with-postgres-libs or --without-postgres-libs was given.
  1707. if test "${with_postgres_libs+set}" = set; then
  1708. withval="$with_postgres_libs"
  1709. :
  1710. fi
  1711. # Check whether --with-mysql-includes or --without-mysql-includes was given.
  1712. if test "${with_mysql_includes+set}" = set; then
  1713. withval="$with_mysql_includes"
  1714. :
  1715. fi
  1716. # Check whether --with-mysql-libs or --without-mysql-libs was given.
  1717. if test "${with_mysql_libs+set}" = set; then
  1718. withval="$with_mysql_libs"
  1719. :
  1720. fi
  1721. # Check whether --with-sqlite-includes or --without-sqlite-includes was given.
  1722. if test "${with_sqlite_includes+set}" = set; then
  1723. withval="$with_sqlite_includes"
  1724. :
  1725. fi
  1726. # Check whether --with-sqlite-libs or --without-sqlite-libs was given.
  1727. if test "${with_sqlite_libs+set}" = set; then
  1728. withval="$with_sqlite_libs"
  1729. :
  1730. fi
  1731. # Check whether --with-opengl-includes or --without-opengl-includes was given.
  1732. if test "${with_opengl_includes+set}" = set; then
  1733. withval="$with_opengl_includes"
  1734. :
  1735. fi
  1736. # Check whether --with-opengl-libs or --without-opengl-libs was given.
  1737. if test "${with_opengl_libs+set}" = set; then
  1738. withval="$with_opengl_libs"
  1739. :
  1740. fi
  1741. # Check whether --with-opengl-framework or --without-opengl-framework was given.
  1742. if test "${with_opengl_framework+set}" = set; then
  1743. withval="$with_opengl_framework"
  1744. :
  1745. fi
  1746. # Check whether --with-odbc-includes or --without-odbc-includes was given.
  1747. if test "${with_odbc_includes+set}" = set; then
  1748. withval="$with_odbc_includes"
  1749. :
  1750. fi
  1751. # Check whether --with-odbc-libs or --without-odbc-libs was given.
  1752. if test "${with_odbc_libs+set}" = set; then
  1753. withval="$with_odbc_libs"
  1754. :
  1755. fi
  1756. # Check whether --with-fftw-includes or --without-fftw-includes was given.
  1757. if test "${with_fftw_includes+set}" = set; then
  1758. withval="$with_fftw_includes"
  1759. :
  1760. fi
  1761. # Check whether --with-fftw-libs or --without-fftw-libs was given.
  1762. if test "${with_fftw_libs+set}" = set; then
  1763. withval="$with_fftw_libs"
  1764. :
  1765. fi
  1766. # Check whether --with-blas-includes or --without-blas-includes was given.
  1767. if test "${with_blas_includes+set}" = set; then
  1768. withval="$with_blas_includes"
  1769. :
  1770. fi
  1771. # Check whether --with-blas-libs or --without-blas-libs was given.
  1772. if test "${with_blas_libs+set}" = set; then
  1773. withval="$with_blas_libs"
  1774. :
  1775. fi
  1776. # Check whether --with-lapack-includes or --without-lapack-includes was given.
  1777. if test "${with_lapack_includes+set}" = set; then
  1778. withval="$with_lapack_includes"
  1779. :
  1780. fi
  1781. # Check whether --with-lapack-libs or --without-lapack-libs was given.
  1782. if test "${with_lapack_libs+set}" = set; then
  1783. withval="$with_lapack_libs"
  1784. :
  1785. fi
  1786. # Check whether --with-cairo-includes or --without-cairo-includes was given.
  1787. if test "${with_cairo_includes+set}" = set; then
  1788. withval="$with_cairo_includes"
  1789. :
  1790. fi
  1791. # Check whether --with-cairo-libs or --without-cairo-libs was given.
  1792. if test "${with_cairo_libs+set}" = set; then
  1793. withval="$with_cairo_libs"
  1794. :
  1795. fi
  1796. # Check whether --with-cairo-ldflags or --without-cairo-ldflags was given.
  1797. if test "${with_cairo_ldflags+set}" = set; then
  1798. withval="$with_cairo_ldflags"
  1799. :
  1800. fi
  1801. # Check whether --with-freetype-includes or --without-freetype-includes was given.
  1802. if test "${with_freetype_includes+set}" = set; then
  1803. withval="$with_freetype_includes"
  1804. :
  1805. fi
  1806. # Check whether --with-freetype-libs or --without-freetype-libs was given.
  1807. if test "${with_freetype_libs+set}" = set; then
  1808. withval="$with_freetype_libs"
  1809. :
  1810. fi
  1811. # Check whether --with-proj-includes or --without-proj-includes was given.
  1812. if test "${with_proj_includes+set}" = set; then
  1813. withval="$with_proj_includes"
  1814. :
  1815. fi
  1816. # Check whether --with-proj-libs or --without-proj-libs was given.
  1817. if test "${with_proj_libs+set}" = set; then
  1818. withval="$with_proj_libs"
  1819. :
  1820. fi
  1821. # Check whether --with-proj-share or --without-proj-share was given.
  1822. if test "${with_proj_share+set}" = set; then
  1823. withval="$with_proj_share"
  1824. :
  1825. fi
  1826. # Check whether --with-opendwg-includes or --without-opendwg-includes was given.
  1827. if test "${with_opendwg_includes+set}" = set; then
  1828. withval="$with_opendwg_includes"
  1829. :
  1830. fi
  1831. # Check whether --with-opendwg-libs or --without-opendwg-libs was given.
  1832. if test "${with_opendwg_libs+set}" = set; then
  1833. withval="$with_opendwg_libs"
  1834. :
  1835. fi
  1836. # Check whether --with-regex-includes or --without-regex-includes was given.
  1837. if test "${with_regex_includes+set}" = set; then
  1838. withval="$with_regex_includes"
  1839. :
  1840. fi
  1841. # Check whether --with-regex-libs or --without-regex-libs was given.
  1842. if test "${with_regex_libs+set}" = set; then
  1843. withval="$with_regex_libs"
  1844. :
  1845. fi
  1846. # Check whether --with-pthread-includes or --without-pthread-includes was given.
  1847. if test "${with_pthread_includes+set}" = set; then
  1848. withval="$with_pthread_includes"
  1849. :
  1850. fi
  1851. # Check whether --with-pthread-libs or --without-pthread-libs was given.
  1852. if test "${with_pthread_libs+set}" = set; then
  1853. withval="$with_pthread_libs"
  1854. :
  1855. fi
  1856. # Check whether --with-openmp-includes or --without-openmp-includes was given.
  1857. if test "${with_openmp_includes+set}" = set; then
  1858. withval="$with_openmp_includes"
  1859. :
  1860. fi
  1861. # Check whether --with-openmp-libs or --without-openmp-libs was given.
  1862. if test "${with_openmp_libs+set}" = set; then
  1863. withval="$with_openmp_libs"
  1864. :
  1865. fi
  1866. # Check whether --with-opencl-includes or --without-opencl-includes was given.
  1867. if test "${with_opencl_includes+set}" = set; then
  1868. withval="$with_opencl_includes"
  1869. :
  1870. fi
  1871. # Check whether --with-opencl-libs or --without-opencl-libs was given.
  1872. if test "${with_opencl_libs+set}" = set; then
  1873. withval="$with_opencl_libs"
  1874. :
  1875. fi
  1876. #LOC_ARG_WITH_FRAMEWORK(opencl, OpenCL)
  1877. # Put this early on so CPPFLAGS and LDFLAGS have any additional dirs
  1878. # With includes option
  1879. # Handle Fortran compiler choice
  1880. #LOC_CHECK_USE(g77, GNU Fortran 77, USE_G77)
  1881. # Done checking fortran
  1882. echo $ac_n "checking for additional include dirs""... $ac_c" 1>&6
  1883. echo "configure:2360: checking for additional include dirs" >&5
  1884. case "$with_includes" in
  1885. y | ye | yes | n | no)
  1886. { echo "configure: error: *** You must supply a directory to list --with-includes." 1>&2; exit 1; }
  1887. ;;
  1888. esac
  1889. echo "$ac_t""$with_includes" 1>&6
  1890. if test -n "$with_includes"; then
  1891. for dir in $with_includes; do
  1892. if test -d "$dir"; then
  1893. INCLUDE_DIRS="$INCLUDE_DIRS -I$dir"
  1894. else
  1895. { echo "configure: error: *** Include directory $dir does not exist." 1>&2; exit 1; }
  1896. fi
  1897. done
  1898. CPPFLAGS="$CPPFLAGS $INCLUDE_DIRS"
  1899. fi
  1900. # With libs option
  1901. echo $ac_n "checking for additional library dirs""... $ac_c" 1>&6
  1902. echo "configure:2383: checking for additional library dirs" >&5
  1903. case "$with_libs" in
  1904. y | ye | yes | n | no)
  1905. { echo "configure: error: *** You must supply a directory list to --with-libs." 1>&2; exit 1; }
  1906. ;;
  1907. esac
  1908. echo "$ac_t""$with_libs" 1>&6
  1909. if test -n "$with_libs"; then
  1910. for dir in $with_libs; do
  1911. if test -d "$dir"; then
  1912. LIBRARY_DIRS="$LIBRARY_DIRS -L$dir"
  1913. else
  1914. { echo "configure: error: *** Library directory $dir does not exist." 1>&2; exit 1; }
  1915. fi
  1916. done
  1917. LDFLAGS="$LDFLAGS $LIBRARY_DIRS"
  1918. fi
  1919. # Programs and standard headers, libraries, functions
  1920. # Find a good install program. We prefer a C program (faster),
  1921. # so one script is as good as another. But avoid the broken or
  1922. # incompatible versions:
  1923. # SysV /etc/install, /usr/sbin/install
  1924. # SunOS /usr/etc/install
  1925. # IRIX /sbin/install
  1926. # AIX /bin/install
  1927. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1928. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1929. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1930. # ./install, which can be erroneously created by make from ./install.sh.
  1931. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1932. echo "configure:2417: checking for a BSD compatible install" >&5
  1933. if test -z "$INSTALL"; then
  1934. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  1935. for ac_dir in $PATH; do
  1936. # Account for people who put trailing slashes in PATH elements.
  1937. case "$ac_dir/" in
  1938. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1939. *)
  1940. # OSF1 and SCO ODT 3.0 have their own names for install.
  1941. # Don't use installbsd from OSF since it installs stuff as root
  1942. # by default.
  1943. for ac_prog in ginstall scoinst install; do
  1944. if test -f $ac_dir/$ac_prog; then
  1945. if test $ac_prog = install &&
  1946. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1947. # AIX install. It has an incompatible calling convention.
  1948. :
  1949. else
  1950. ac_cv_path_install="$ac_dir/$ac_prog -c"
  1951. break 2
  1952. fi
  1953. fi
  1954. done
  1955. ;;
  1956. esac
  1957. done
  1958. IFS="$ac_save_IFS"
  1959. if test "${ac_cv_path_install+set}" = set; then
  1960. INSTALL="$ac_cv_path_install"
  1961. else
  1962. # As a last resort, use the slow shell script. We don't cache a
  1963. # path for INSTALL within a source directory, because that will
  1964. # break other packages using the cache if that directory is
  1965. # removed, or if the path is relative.
  1966. INSTALL="$ac_install_sh"
  1967. fi
  1968. fi
  1969. echo "$ac_t""$INSTALL" 1>&6
  1970. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1971. # It thinks the first close brace ends the variable substitution.
  1972. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1973. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  1974. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1975. # Extract the first word of "flex", so it can be a program name with args.
  1976. set dummy flex; ac_word=$2
  1977. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1978. echo "configure:2470: checking for $ac_word" >&5
  1979. if test -n "$LEX"; then
  1980. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  1981. else
  1982. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1983. ac_dummy="$PATH"
  1984. for ac_dir in $ac_dummy; do
  1985. test -z "$ac_dir" && ac_dir=.
  1986. if test -f $ac_dir/$ac_word; then
  1987. ac_cv_prog_LEX="flex"
  1988. break
  1989. fi
  1990. done
  1991. IFS="$ac_save_ifs"
  1992. test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
  1993. fi
  1994. LEX="$ac_cv_prog_LEX"
  1995. if test -n "$LEX"; then
  1996. echo "$ac_t""$LEX" 1>&6
  1997. else
  1998. echo "$ac_t""no" 1>&6
  1999. fi
  2000. if test -z "$LEXLIB"
  2001. then
  2002. case "$LEX" in
  2003. flex*) ac_lib=fl ;;
  2004. *) ac_lib=l ;;
  2005. esac
  2006. echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
  2007. echo "configure:2501: checking for yywrap in -l$ac_lib" >&5
  2008. ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
  2009. ac_save_LIBS="$LIBS"
  2010. LIBS="-l$ac_lib $LIBS"
  2011. cat > conftest.$ac_ext <<EOF
  2012. #line 2507 "configure"
  2013. #include "confdefs.h"
  2014. /* Override any gcc2 internal prototype to avoid an error. */
  2015. /* We use char because int might match the return type of a gcc2
  2016. builtin and then its argument prototype would still apply. */
  2017. char yywrap();
  2018. int main() {
  2019. yywrap()
  2020. ; return 0; }
  2021. EOF
  2022. if { (eval echo configure:2518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2023. rm -rf conftest*
  2024. eval "ac_cv_lib_$ac_lib_var=yes"
  2025. else
  2026. echo "configure: failed program was:" >&5
  2027. cat conftest.$ac_ext >&5
  2028. rm -rf conftest*
  2029. eval "ac_cv_lib_$ac_lib_var=no"
  2030. fi
  2031. rm -f conftest*
  2032. LIBS="$ac_save_LIBS"
  2033. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2034. echo "$ac_t""yes" 1>&6
  2035. LEXLIB="-l$ac_lib"
  2036. else
  2037. echo "$ac_t""no" 1>&6
  2038. fi
  2039. fi
  2040. if test "$LEX" = "lex"; then
  2041. # Extract the first word of "lex", so it can be a program name with args.
  2042. set dummy lex; ac_word=$2
  2043. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2044. echo "configure:2543: checking for $ac_word" >&5
  2045. case "$LEXPATH" in
  2046. /*)
  2047. ac_cv_path_LEXPATH="$LEXPATH" # Let the user override the test with a path.
  2048. ;;
  2049. ?:/*)
  2050. ac_cv_path_LEXPATH="$LEXPATH" # Let the user override the test with a dos path.
  2051. ;;
  2052. *)
  2053. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2054. ac_dummy="$PATH"
  2055. for ac_dir in $ac_dummy; do
  2056. test -z "$ac_dir" && ac_dir=.
  2057. if test -f $ac_dir/$ac_word; then
  2058. ac_cv_path_LEXPATH="$ac_dir/$ac_word"
  2059. break
  2060. fi
  2061. done
  2062. IFS="$ac_save_ifs"
  2063. test -z "$ac_cv_path_LEXPATH" && ac_cv_path_LEXPATH="no"
  2064. ;;
  2065. esac
  2066. LEXPATH="$ac_cv_path_LEXPATH"
  2067. if test -n "$LEXPATH"; then
  2068. echo "$ac_t""$LEXPATH" 1>&6
  2069. else
  2070. echo "$ac_t""no" 1>&6
  2071. fi
  2072. if test "$LEXPATH" = "no"; then
  2073. { echo "configure: error: *** Unable to locate lex." 1>&2; exit 1; }
  2074. fi
  2075. fi
  2076. for ac_prog in 'bison -y' byacc
  2077. do
  2078. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2079. set dummy $ac_prog; ac_word=$2
  2080. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2081. echo "configure:2583: checking for $ac_word" >&5
  2082. if test -n "$YACC"; then
  2083. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  2084. else
  2085. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2086. ac_dummy="$PATH"
  2087. for ac_dir in $ac_dummy; do
  2088. test -z "$ac_dir" && ac_dir=.
  2089. if test -f $ac_dir/$ac_word; then
  2090. ac_cv_prog_YACC="$ac_prog"
  2091. break
  2092. fi
  2093. done
  2094. IFS="$ac_save_ifs"
  2095. fi
  2096. YACC="$ac_cv_prog_YACC"
  2097. if test -n "$YACC"; then
  2098. echo "$ac_t""$YACC" 1>&6
  2099. else
  2100. echo "$ac_t""no" 1>&6
  2101. fi
  2102. test -n "$YACC" && break
  2103. done
  2104. test -n "$YACC" || YACC="yacc"
  2105. if test "$YACC" = "yacc"; then
  2106. # Extract the first word of "yacc", so it can be a program name with args.
  2107. set dummy yacc; ac_word=$2
  2108. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2109. echo "configure:2614: checking for $ac_word" >&5
  2110. case "$YACCPATH" in
  2111. /*)
  2112. ac_cv_path_YACCPATH="$YACCPATH" # Let the user override the test with a path.
  2113. ;;
  2114. ?:/*)
  2115. ac_cv_path_YACCPATH="$YACCPATH" # Let the user override the test with a dos path.
  2116. ;;
  2117. *)
  2118. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2119. ac_dummy="$PATH"
  2120. for ac_dir in $ac_dummy; do
  2121. test -z "$ac_dir" && ac_dir=.
  2122. if test -f $ac_dir/$ac_word; then
  2123. ac_cv_path_YACCPATH="$ac_dir/$ac_word"
  2124. break
  2125. fi
  2126. done
  2127. IFS="$ac_save_ifs"
  2128. test -z "$ac_cv_path_YACCPATH" && ac_cv_path_YACCPATH="no"
  2129. ;;
  2130. esac
  2131. YACCPATH="$ac_cv_path_YACCPATH"
  2132. if test -n "$YACCPATH"; then
  2133. echo "$ac_t""$YACCPATH" 1>&6
  2134. else
  2135. echo "$ac_t""no" 1>&6
  2136. fi
  2137. if test "$YACCPATH" = "no"; then
  2138. { echo "configure: error: *** Unable to locate yacc." 1>&2; exit 1; }
  2139. fi
  2140. fi
  2141. # Extract the first word of "ranlib", so it can be a program name with args.
  2142. set dummy ranlib; ac_word=$2
  2143. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2144. echo "configure:2652: checking for $ac_word" >&5
  2145. if test -n "$RANLIB"; then
  2146. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2147. else
  2148. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2149. ac_dummy="$PATH"
  2150. for ac_dir in $ac_dummy; do
  2151. test -z "$ac_dir" && ac_dir=.
  2152. if test -f $ac_dir/$ac_word; then
  2153. ac_cv_prog_RANLIB="ranlib"
  2154. break
  2155. fi
  2156. done
  2157. IFS="$ac_save_ifs"
  2158. test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  2159. fi
  2160. RANLIB="$ac_cv_prog_RANLIB"
  2161. if test -n "$RANLIB"; then
  2162. echo "$ac_t""$RANLIB" 1>&6
  2163. else
  2164. echo "$ac_t""no" 1>&6
  2165. fi
  2166. for ac_prog in ar
  2167. do
  2168. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2169. set dummy $ac_prog; ac_word=$2
  2170. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2171. echo "configure:2681: checking for $ac_word" >&5
  2172. if test -n "$AR"; then
  2173. ac_cv_prog_AR="$AR" # Let the user override the test.
  2174. else
  2175. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2176. ac_dummy="$PATH"
  2177. for ac_dir in $ac_dummy; do
  2178. test -z "$ac_dir" && ac_dir=.
  2179. if test -f $ac_dir/$ac_word; then
  2180. ac_cv_prog_AR="$ac_prog"
  2181. break
  2182. fi
  2183. done
  2184. IFS="$ac_save_ifs"
  2185. fi
  2186. AR="$ac_cv_prog_AR"
  2187. if test -n "$AR"; then
  2188. echo "$ac_t""$AR" 1>&6
  2189. else
  2190. echo "$ac_t""no" 1>&6
  2191. fi
  2192. test -n "$AR" && break
  2193. done
  2194. for ac_prog in env
  2195. do
  2196. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2197. set dummy $ac_prog; ac_word=$2
  2198. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2199. echo "configure:2712: checking for $ac_word" >&5
  2200. if test -n "$ENV"; then
  2201. ac_cv_prog_ENV="$ENV" # Let the user override the test.
  2202. else
  2203. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2204. ac_dummy="$PATH"
  2205. for ac_dir in $ac_dummy; do
  2206. test -z "$ac_dir" && ac_dir=.
  2207. if test -f $ac_dir/$ac_word; then
  2208. ac_cv_prog_ENV="$ac_prog"
  2209. break
  2210. fi
  2211. done
  2212. IFS="$ac_save_ifs"
  2213. fi
  2214. ENV="$ac_cv_prog_ENV"
  2215. if test -n "$ENV"; then
  2216. echo "$ac_t""$ENV" 1>&6
  2217. else
  2218. echo "$ac_t""no" 1>&6
  2219. fi
  2220. test -n "$ENV" && break
  2221. done
  2222. # Extract the first word of "perl", so it can be a program name with args.
  2223. set dummy perl; ac_word=$2
  2224. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2225. echo "configure:2741: checking for $ac_word" >&5
  2226. case "$PERL" in
  2227. /*)
  2228. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  2229. ;;
  2230. ?:/*)
  2231. ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
  2232. ;;
  2233. *)
  2234. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2235. ac_dummy="$PATH"
  2236. for ac_dir in $ac_dummy; do
  2237. test -z "$ac_dir" && ac_dir=.
  2238. if test -f $ac_dir/$ac_word; then
  2239. ac_cv_path_PERL="$ac_dir/$ac_word"
  2240. break
  2241. fi
  2242. done
  2243. IFS="$ac_save_ifs"
  2244. test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
  2245. ;;
  2246. esac
  2247. PERL="$ac_cv_path_PERL"
  2248. if test -n "$PERL"; then
  2249. echo "$ac_t""$PERL" 1>&6
  2250. else
  2251. echo "$ac_t""no" 1>&6
  2252. fi
  2253. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  2254. echo "configure:2772: checking how to run the C preprocessor" >&5
  2255. # On Suns, sometimes $CPP names a directory.
  2256. if test -n "$CPP" && test -d "$CPP"; then
  2257. CPP=
  2258. fi
  2259. if test -z "$CPP"; then
  2260. # This must be in double quotes, not single quotes, because CPP may get
  2261. # substituted into the Makefile and "${CC-cc}" will confuse make.
  2262. CPP="${CC-cc} -E"
  2263. # On the NeXT, cc -E runs the code through the compiler's parser,
  2264. # not just through cpp.
  2265. cat > conftest.$ac_ext <<EOF
  2266. #line 2785 "configure"
  2267. #include "confdefs.h"
  2268. #include <assert.h>
  2269. Syntax Error
  2270. EOF
  2271. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2272. { (eval echo configure:2791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2273. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2274. if test -z "$ac_err"; then
  2275. :
  2276. else
  2277. echo "$ac_err" >&5
  2278. echo "configure: failed program was:" >&5
  2279. cat conftest.$ac_ext >&5
  2280. rm -rf conftest*
  2281. CPP="${CC-cc} -E -traditional-cpp"
  2282. cat > conftest.$ac_ext <<EOF
  2283. #line 2802 "configure"
  2284. #include "confdefs.h"
  2285. #include <assert.h>
  2286. Syntax Error
  2287. EOF
  2288. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2289. { (eval echo configure:2808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2290. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2291. if test -z "$ac_err"; then
  2292. :
  2293. else
  2294. echo "$ac_err" >&5
  2295. echo "configure: failed program was:" >&5
  2296. cat conftest.$ac_ext >&5
  2297. rm -rf conftest*
  2298. CPP="${CC-cc} -nologo -E"
  2299. cat > conftest.$ac_ext <<EOF
  2300. #line 2819 "configure"
  2301. #include "confdefs.h"
  2302. #include <assert.h>
  2303. Syntax Error
  2304. EOF
  2305. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2306. { (eval echo configure:2825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2307. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2308. if test -z "$ac_err"; then
  2309. :
  2310. else
  2311. echo "$ac_err" >&5
  2312. echo "configure: failed program was:" >&5
  2313. cat conftest.$ac_ext >&5
  2314. rm -rf conftest*
  2315. CPP=/lib/cpp
  2316. fi
  2317. rm -f conftest*
  2318. fi
  2319. rm -f conftest*
  2320. fi
  2321. rm -f conftest*
  2322. ac_cv_prog_CPP="$CPP"
  2323. CPP="$ac_cv_prog_CPP"
  2324. else
  2325. ac_cv_prog_CPP="$CPP"
  2326. fi
  2327. echo "$ac_t""$CPP" 1>&6
  2328. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  2329. echo "configure:2849: checking for ANSI C header files" >&5
  2330. cat > conftest.$ac_ext <<EOF
  2331. #line 2852 "configure"
  2332. #include "confdefs.h"
  2333. #include <stdlib.h>
  2334. #include <stdarg.h>
  2335. #include <string.h>
  2336. #include <float.h>
  2337. EOF
  2338. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2339. { (eval echo configure:2860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2340. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2341. if test -z "$ac_err"; then
  2342. rm -rf conftest*
  2343. ac_cv_header_stdc=yes
  2344. else
  2345. echo "$ac_err" >&5
  2346. echo "configure: failed program was:" >&5
  2347. cat conftest.$ac_ext >&5
  2348. rm -rf conftest*
  2349. ac_cv_header_stdc=no
  2350. fi
  2351. rm -f conftest*
  2352. if test $ac_cv_header_stdc = yes; then
  2353. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2354. cat > conftest.$ac_ext <<EOF
  2355. #line 2877 "configure"
  2356. #include "confdefs.h"
  2357. #include <string.h>
  2358. EOF
  2359. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2360. egrep "memchr" >/dev/null 2>&1; then
  2361. :
  2362. else
  2363. rm -rf conftest*
  2364. ac_cv_header_stdc=no
  2365. fi
  2366. rm -f conftest*
  2367. fi
  2368. if test $ac_cv_header_stdc = yes; then
  2369. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2370. cat > conftest.$ac_ext <<EOF
  2371. #line 2895 "configure"
  2372. #include "confdefs.h"
  2373. #include <stdlib.h>
  2374. EOF
  2375. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2376. egrep "free" >/dev/null 2>&1; then
  2377. :
  2378. else
  2379. rm -rf conftest*
  2380. ac_cv_header_stdc=no
  2381. fi
  2382. rm -f conftest*
  2383. fi
  2384. if test $ac_cv_header_stdc = yes; then
  2385. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2386. if test "$cross_compiling" = yes; then
  2387. :
  2388. else
  2389. cat > conftest.$ac_ext <<EOF
  2390. #line 2916 "configure"
  2391. #include "confdefs.h"
  2392. #include <ctype.h>
  2393. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2394. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2395. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2396. int main () { int i; for (i = 0; i < 256; i++)
  2397. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  2398. exit (0); }
  2399. EOF
  2400. if { (eval echo configure:2927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2401. then
  2402. :
  2403. else
  2404. echo "configure: failed program was:" >&5
  2405. cat conftest.$ac_ext >&5
  2406. rm -fr conftest*
  2407. ac_cv_header_stdc=no
  2408. fi
  2409. rm -fr conftest*
  2410. fi
  2411. fi
  2412. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  2413. if test $ac_cv_header_stdc = yes; then
  2414. cat >> confdefs.h <<\EOF
  2415. #define STDC_HEADERS 1
  2416. EOF
  2417. fi
  2418. #AC_CHECK_HEADERS(curses.h limits.h termio.h termios.h unistd.h values.h)
  2419. for ac_hdr in limits.h termio.h termios.h unistd.h values.h f2c.h g2c.h
  2420. do
  2421. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2422. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2423. echo "configure:2954: checking for $ac_hdr" >&5
  2424. cat > conftest.$ac_ext <<EOF
  2425. #line 2957 "configure"
  2426. #include "confdefs.h"
  2427. #include <$ac_hdr>
  2428. EOF
  2429. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2430. { (eval echo configure:2962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2431. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2432. if test -z "$ac_err"; then
  2433. rm -rf conftest*
  2434. eval "ac_cv_header_$ac_safe=yes"
  2435. else
  2436. echo "$ac_err" >&5
  2437. echo "configure: failed program was:" >&5
  2438. cat conftest.$ac_ext >&5
  2439. rm -rf conftest*
  2440. eval "ac_cv_header_$ac_safe=no"
  2441. fi
  2442. rm -f conftest*
  2443. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2444. echo "$ac_t""yes" 1>&6
  2445. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2446. cat >> confdefs.h <<EOF
  2447. #define $ac_tr_hdr 1
  2448. EOF
  2449. else
  2450. echo "$ac_t""no" 1>&6
  2451. fi
  2452. done
  2453. for ac_hdr in sys/ioctl.h sys/mtio.h sys/resource.h sys/time.h
  2454. do
  2455. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2456. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2457. echo "configure:2991: checking for $ac_hdr" >&5
  2458. cat > conftest.$ac_ext <<EOF
  2459. #line 2994 "configure"
  2460. #include "confdefs.h"
  2461. #include <$ac_hdr>
  2462. EOF
  2463. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2464. { (eval echo configure:2999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2465. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2466. if test -z "$ac_err"; then
  2467. rm -rf conftest*
  2468. eval "ac_cv_header_$ac_safe=yes"
  2469. else
  2470. echo "$ac_err" >&5
  2471. echo "configure: failed program was:" >&5
  2472. cat conftest.$ac_ext >&5
  2473. rm -rf conftest*
  2474. eval "ac_cv_header_$ac_safe=no"
  2475. fi
  2476. rm -f conftest*
  2477. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2478. echo "$ac_t""yes" 1>&6
  2479. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2480. cat >> confdefs.h <<EOF
  2481. #define $ac_tr_hdr 1
  2482. EOF
  2483. else
  2484. echo "$ac_t""no" 1>&6
  2485. fi
  2486. done
  2487. for ac_hdr in sys/timeb.h sys/types.h sys/utsname.h
  2488. do
  2489. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2490. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2491. echo "configure:3028: checking for $ac_hdr" >&5
  2492. cat > conftest.$ac_ext <<EOF
  2493. #line 3031 "configure"
  2494. #include "confdefs.h"
  2495. #include <$ac_hdr>
  2496. EOF
  2497. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2498. { (eval echo configure:3036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2499. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2500. if test -z "$ac_err"; then
  2501. rm -rf conftest*
  2502. eval "ac_cv_header_$ac_safe=yes"
  2503. else
  2504. echo "$ac_err" >&5
  2505. echo "configure: failed program was:" >&5
  2506. cat conftest.$ac_ext >&5
  2507. rm -rf conftest*
  2508. eval "ac_cv_header_$ac_safe=no"
  2509. fi
  2510. rm -f conftest*
  2511. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2512. echo "$ac_t""yes" 1>&6
  2513. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2514. cat >> confdefs.h <<EOF
  2515. #define $ac_tr_hdr 1
  2516. EOF
  2517. else
  2518. echo "$ac_t""no" 1>&6
  2519. fi
  2520. done
  2521. for ac_hdr in libintl.h iconv.h
  2522. do
  2523. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2524. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2525. echo "configure:3065: checking for $ac_hdr" >&5
  2526. cat > conftest.$ac_ext <<EOF
  2527. #line 3068 "configure"
  2528. #include "confdefs.h"
  2529. #include <$ac_hdr>
  2530. EOF
  2531. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2532. { (eval echo configure:3073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2533. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2534. if test -z "$ac_err"; then
  2535. rm -rf conftest*
  2536. eval "ac_cv_header_$ac_safe=yes"
  2537. else
  2538. echo "$ac_err" >&5
  2539. echo "configure: failed program was:" >&5
  2540. cat conftest.$ac_ext >&5
  2541. rm -rf conftest*
  2542. eval "ac_cv_header_$ac_safe=no"
  2543. fi
  2544. rm -f conftest*
  2545. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2546. echo "$ac_t""yes" 1>&6
  2547. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2548. cat >> confdefs.h <<EOF
  2549. #define $ac_tr_hdr 1
  2550. EOF
  2551. else
  2552. echo "$ac_t""no" 1>&6
  2553. fi
  2554. done
  2555. for ac_hdr in langinfo.h
  2556. do
  2557. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2558. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2559. echo "configure:3102: checking for $ac_hdr" >&5
  2560. cat > conftest.$ac_ext <<EOF
  2561. #line 3105 "configure"
  2562. #include "confdefs.h"
  2563. #include <$ac_hdr>
  2564. EOF
  2565. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2566. { (eval echo configure:3110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2567. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2568. if test -z "$ac_err"; then
  2569. rm -rf conftest*
  2570. eval "ac_cv_header_$ac_safe=yes"
  2571. else
  2572. echo "$ac_err" >&5
  2573. echo "configure: failed program was:" >&5
  2574. cat conftest.$ac_ext >&5
  2575. rm -rf conftest*
  2576. eval "ac_cv_header_$ac_safe=no"
  2577. fi
  2578. rm -f conftest*
  2579. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2580. echo "$ac_t""yes" 1>&6
  2581. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2582. cat >> confdefs.h <<EOF
  2583. #define $ac_tr_hdr 1
  2584. EOF
  2585. else
  2586. echo "$ac_t""no" 1>&6
  2587. fi
  2588. done
  2589. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  2590. echo "configure:3136: checking whether time.h and sys/time.h may both be included" >&5
  2591. cat > conftest.$ac_ext <<EOF
  2592. #line 3139 "configure"
  2593. #include "confdefs.h"
  2594. #include <sys/types.h>
  2595. #include <sys/time.h>
  2596. #include <time.h>
  2597. int main() {
  2598. struct tm *tp;
  2599. ; return 0; }
  2600. EOF
  2601. if { (eval echo configure:3148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2602. rm -rf conftest*
  2603. ac_cv_header_time=yes
  2604. else
  2605. echo "configure: failed program was:" >&5
  2606. cat conftest.$ac_ext >&5
  2607. rm -rf conftest*
  2608. ac_cv_header_time=no
  2609. fi
  2610. rm -f conftest*
  2611. echo "$ac_t""$ac_cv_header_time" 1>&6
  2612. if test $ac_cv_header_time = yes; then
  2613. cat >> confdefs.h <<\EOF
  2614. #define TIME_WITH_SYS_TIME 1
  2615. EOF
  2616. fi
  2617. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  2618. echo "configure:3168: checking for off_t" >&5
  2619. cat > conftest.$ac_ext <<EOF
  2620. #line 3171 "configure"
  2621. #include "confdefs.h"
  2622. #include <sys/types.h>
  2623. #if STDC_HEADERS
  2624. #include <stdlib.h>
  2625. #include <stddef.h>
  2626. #endif
  2627. EOF
  2628. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2629. egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2630. rm -rf conftest*
  2631. ac_cv_type_off_t=yes
  2632. else
  2633. rm -rf conftest*
  2634. ac_cv_type_off_t=no
  2635. fi
  2636. rm -f conftest*
  2637. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  2638. if test $ac_cv_type_off_t = no; then
  2639. cat >> confdefs.h <<\EOF
  2640. #define off_t long
  2641. EOF
  2642. fi
  2643. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  2644. echo "configure:3198: checking for uid_t in sys/types.h" >&5
  2645. cat > conftest.$ac_ext <<EOF
  2646. #line 3201 "configure"
  2647. #include "confdefs.h"
  2648. #include <sys/types.h>
  2649. EOF
  2650. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2651. egrep "uid_t" >/dev/null 2>&1; then
  2652. rm -rf conftest*
  2653. ac_cv_type_uid_t=yes
  2654. else
  2655. rm -rf conftest*
  2656. ac_cv_type_uid_t=no
  2657. fi
  2658. rm -f conftest*
  2659. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  2660. if test $ac_cv_type_uid_t = no; then
  2661. cat >> confdefs.h <<\EOF
  2662. #define uid_t int
  2663. EOF
  2664. cat >> confdefs.h <<\EOF
  2665. #define gid_t int
  2666. EOF
  2667. fi
  2668. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  2669. echo "configure:3229: checking return type of signal handlers" >&5
  2670. cat > conftest.$ac_ext <<EOF
  2671. #line 3232 "configure"
  2672. #include "confdefs.h"
  2673. #include <sys/types.h>
  2674. #include <signal.h>
  2675. #ifdef signal
  2676. #undef signal
  2677. #endif
  2678. #ifdef __cplusplus
  2679. extern "C" void (*signal (int, void (*)(int)))(int);
  2680. #else
  2681. void (*signal ()) ();
  2682. #endif
  2683. int main() {
  2684. int i;
  2685. ; return 0; }
  2686. EOF
  2687. if { (eval echo configure:3249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2688. rm -rf conftest*
  2689. ac_cv_type_signal=void
  2690. else
  2691. echo "configure: failed program was:" >&5
  2692. cat conftest.$ac_ext >&5
  2693. rm -rf conftest*
  2694. ac_cv_type_signal=int
  2695. fi
  2696. rm -f conftest*
  2697. echo "$ac_t""$ac_cv_type_signal" 1>&6
  2698. cat >> confdefs.h <<EOF
  2699. #define RETSIGTYPE $ac_cv_type_signal
  2700. EOF
  2701. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  2702. echo "configure:3267: checking for Cygwin environment" >&5
  2703. cat > conftest.$ac_ext <<EOF
  2704. #line 3270 "configure"
  2705. #include "confdefs.h"
  2706. int main() {
  2707. #ifndef __CYGWIN__
  2708. #define __CYGWIN__ __CYGWIN32__
  2709. #endif
  2710. return __CYGWIN__;
  2711. ; return 0; }
  2712. EOF
  2713. if { (eval echo configure:3281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2714. rm -rf conftest*
  2715. ac_cv_cygwin=yes
  2716. else
  2717. echo "configure: failed program was:" >&5
  2718. cat conftest.$ac_ext >&5
  2719. rm -rf conftest*
  2720. ac_cv_cygwin=no
  2721. fi
  2722. rm -f conftest*
  2723. rm -f conftest*
  2724. echo "$ac_t""$ac_cv_cygwin" 1>&6
  2725. CYGWIN=
  2726. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  2727. for ac_func in ftime gethostname gettimeofday lseek nice time uname
  2728. do
  2729. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2730. echo "configure:3299: checking for $ac_func" >&5
  2731. cat > conftest.$ac_ext <<EOF
  2732. #line 3302 "configure"
  2733. #include "confdefs.h"
  2734. /* System header to define __stub macros and hopefully few prototypes,
  2735. which can conflict with char $ac_func(); below. */
  2736. #include <assert.h>
  2737. /* Override any gcc2 internal prototype to avoid an error. */
  2738. /* We use char because int might match the return type of a gcc2
  2739. builtin and then its argument prototype would still apply. */
  2740. char $ac_func();
  2741. int main() {
  2742. /* The GNU C library defines this for functions which it implements
  2743. to always fail with ENOSYS. Some functions are actually named
  2744. something starting with __ and the normal name is an alias. */
  2745. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2746. choke me
  2747. #else
  2748. $ac_func();
  2749. #endif
  2750. ; return 0; }
  2751. EOF
  2752. if { (eval echo configure:3325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2753. rm -rf conftest*
  2754. eval "ac_cv_func_$ac_func=yes"
  2755. else
  2756. echo "configure: failed program was:" >&5
  2757. cat conftest.$ac_ext >&5
  2758. rm -rf conftest*
  2759. eval "ac_cv_func_$ac_func=no"
  2760. fi
  2761. rm -f conftest*
  2762. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2763. echo "$ac_t""yes" 1>&6
  2764. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2765. cat >> confdefs.h <<EOF
  2766. #define $ac_tr_func 1
  2767. EOF
  2768. else
  2769. echo "$ac_t""no" 1>&6
  2770. fi
  2771. done
  2772. for ac_func in seteuid setpriority setreuid setruid
  2773. do
  2774. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2775. echo "configure:3351: checking for $ac_func" >&5
  2776. cat > conftest.$ac_ext <<EOF
  2777. #line 3354 "configure"
  2778. #include "confdefs.h"
  2779. /* System header to define __stub macros and hopefully few prototypes,
  2780. which can conflict with char $ac_func(); below. */
  2781. #include <assert.h>
  2782. /* Override any gcc2 internal prototype to avoid an error. */
  2783. /* We use char because int might match the return type of a gcc2
  2784. builtin and then its argument prototype would still apply. */
  2785. char $ac_func();
  2786. int main() {
  2787. /* The GNU C library defines this for functions which it implements
  2788. to always fail with ENOSYS. Some functions are actually named
  2789. something starting with __ and the normal name is an alias. */
  2790. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2791. choke me
  2792. #else
  2793. $ac_func();
  2794. #endif
  2795. ; return 0; }
  2796. EOF
  2797. if { (eval echo configure:3377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2798. rm -rf conftest*
  2799. eval "ac_cv_func_$ac_func=yes"
  2800. else
  2801. echo "configure: failed program was:" >&5
  2802. cat conftest.$ac_ext >&5
  2803. rm -rf conftest*
  2804. eval "ac_cv_func_$ac_func=no"
  2805. fi
  2806. rm -f conftest*
  2807. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2808. echo "$ac_t""yes" 1>&6
  2809. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2810. cat >> confdefs.h <<EOF
  2811. #define $ac_tr_func 1
  2812. EOF
  2813. else
  2814. echo "$ac_t""no" 1>&6
  2815. fi
  2816. done
  2817. for ac_func in drand48
  2818. do
  2819. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2820. echo "configure:3403: checking for $ac_func" >&5
  2821. cat > conftest.$ac_ext <<EOF
  2822. #line 3406 "configure"
  2823. #include "confdefs.h"
  2824. /* System header to define __stub macros and hopefully few prototypes,
  2825. which can conflict with char $ac_func(); below. */
  2826. #include <assert.h>
  2827. /* Override any gcc2 internal prototype to avoid an error. */
  2828. /* We use char because int might match the return type of a gcc2
  2829. builtin and then its argument prototype would still apply. */
  2830. char $ac_func();
  2831. int main() {
  2832. /* The GNU C library defines this for functions which it implements
  2833. to always fail with ENOSYS. Some functions are actually named
  2834. something starting with __ and the normal name is an alias. */
  2835. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2836. choke me
  2837. #else
  2838. $ac_func();
  2839. #endif
  2840. ; return 0; }
  2841. EOF
  2842. if { (eval echo configure:3429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2843. rm -rf conftest*
  2844. eval "ac_cv_func_$ac_func=yes"
  2845. else
  2846. echo "configure: failed program was:" >&5
  2847. cat conftest.$ac_ext >&5
  2848. rm -rf conftest*
  2849. eval "ac_cv_func_$ac_func=no"
  2850. fi
  2851. rm -f conftest*
  2852. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2853. echo "$ac_t""yes" 1>&6
  2854. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2855. cat >> confdefs.h <<EOF
  2856. #define $ac_tr_func 1
  2857. EOF
  2858. else
  2859. echo "$ac_t""no" 1>&6
  2860. fi
  2861. done
  2862. for ac_func in putenv setenv
  2863. do
  2864. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2865. echo "configure:3455: checking for $ac_func" >&5
  2866. cat > conftest.$ac_ext <<EOF
  2867. #line 3458 "configure"
  2868. #include "confdefs.h"
  2869. /* System header to define __stub macros and hopefully few prototypes,
  2870. which can conflict with char $ac_func(); below. */
  2871. #include <assert.h>
  2872. /* Override any gcc2 internal prototype to avoid an error. */
  2873. /* We use char because int might match the return type of a gcc2
  2874. builtin and then its argument prototype would still apply. */
  2875. char $ac_func();
  2876. int main() {
  2877. /* The GNU C library defines this for functions which it implements
  2878. to always fail with ENOSYS. Some functions are actually named
  2879. something starting with __ and the normal name is an alias. */
  2880. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2881. choke me
  2882. #else
  2883. $ac_func();
  2884. #endif
  2885. ; return 0; }
  2886. EOF
  2887. if { (eval echo configure:3481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2888. rm -rf conftest*
  2889. eval "ac_cv_func_$ac_func=yes"
  2890. else
  2891. echo "configure: failed program was:" >&5
  2892. cat conftest.$ac_ext >&5
  2893. rm -rf conftest*
  2894. eval "ac_cv_func_$ac_func=no"
  2895. fi
  2896. rm -f conftest*
  2897. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2898. echo "$ac_t""yes" 1>&6
  2899. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2900. cat >> confdefs.h <<EOF
  2901. #define $ac_tr_func 1
  2902. EOF
  2903. else
  2904. echo "$ac_t""no" 1>&6
  2905. fi
  2906. done
  2907. for ac_func in nanosleep
  2908. do
  2909. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2910. echo "configure:3507: checking for $ac_func" >&5
  2911. cat > conftest.$ac_ext <<EOF
  2912. #line 3510 "configure"
  2913. #include "confdefs.h"
  2914. /* System header to define __stub macros and hopefully few prototypes,
  2915. which can conflict with char $ac_func(); below. */
  2916. #include <assert.h>
  2917. /* Override any gcc2 internal prototype to avoid an error. */
  2918. /* We use char because int might match the return type of a gcc2
  2919. builtin and then its argument prototype would still apply. */
  2920. char $ac_func();
  2921. int main() {
  2922. /* The GNU C library defines this for functions which it implements
  2923. to always fail with ENOSYS. Some functions are actually named
  2924. something starting with __ and the normal name is an alias. */
  2925. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2926. choke me
  2927. #else
  2928. $ac_func();
  2929. #endif
  2930. ; return 0; }
  2931. EOF
  2932. if { (eval echo configure:3533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2933. rm -rf conftest*
  2934. eval "ac_cv_func_$ac_func=yes"
  2935. else
  2936. echo "configure: failed program was:" >&5
  2937. cat conftest.$ac_ext >&5
  2938. rm -rf conftest*
  2939. eval "ac_cv_func_$ac_func=no"
  2940. fi
  2941. rm -f conftest*
  2942. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2943. echo "$ac_t""yes" 1>&6
  2944. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2945. cat >> confdefs.h <<EOF
  2946. #define $ac_tr_func 1
  2947. EOF
  2948. else
  2949. echo "$ac_t""no" 1>&6
  2950. fi
  2951. done
  2952. if test "$cross_compiling" != "yes" ; then
  2953. echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
  2954. echo "configure:3558: checking whether setpgrp takes no argument" >&5
  2955. if test "$cross_compiling" = yes; then
  2956. { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
  2957. else
  2958. cat > conftest.$ac_ext <<EOF
  2959. #line 3564 "configure"
  2960. #include "confdefs.h"
  2961. #ifdef HAVE_UNISTD_H
  2962. #include <unistd.h>
  2963. #endif
  2964. /*
  2965. * If this system has a BSD-style setpgrp, which takes arguments, exit
  2966. * successfully.
  2967. */
  2968. main()
  2969. {
  2970. if (setpgrp(1,1) == -1)
  2971. exit(0);
  2972. else
  2973. exit(1);
  2974. }
  2975. EOF
  2976. if { (eval echo configure:3584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2977. then
  2978. ac_cv_func_setpgrp_void=no
  2979. else
  2980. echo "configure: failed program was:" >&5
  2981. cat conftest.$ac_ext >&5
  2982. rm -fr conftest*
  2983. ac_cv_func_setpgrp_void=yes
  2984. fi
  2985. rm -fr conftest*
  2986. fi
  2987. echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
  2988. if test $ac_cv_func_setpgrp_void = yes; then
  2989. cat >> confdefs.h <<\EOF
  2990. #define SETPGRP_VOID 1
  2991. EOF
  2992. fi
  2993. else
  2994. CROSS_COMPILING=1
  2995. fi
  2996. echo $ac_n "checking for long long int""... $ac_c" 1>&6
  2997. echo "configure:3612: checking for long long int" >&5
  2998. cat > conftest.$ac_ext <<EOF
  2999. #line 3614 "configure"
  3000. #include "confdefs.h"
  3001. int main() {
  3002. long long int x;
  3003. ; return 0; }
  3004. EOF
  3005. if { (eval echo configure:3621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3006. rm -rf conftest*
  3007. echo "$ac_t""yes" 1>&6
  3008. cat >> confdefs.h <<\EOF
  3009. #define HAVE_LONG_LONG_INT 1
  3010. EOF
  3011. else
  3012. echo "configure: failed program was:" >&5
  3013. cat conftest.$ac_ext >&5
  3014. rm -rf conftest*
  3015. echo "$ac_t""no" 1>&6
  3016. fi
  3017. rm -f conftest*
  3018. echo $ac_n "checking for W11""... $ac_c" 1>&6
  3019. echo "configure:3641: checking for W11" >&5
  3020. case "$enable_w11" in
  3021. yes|no) echo "$ac_t"""$enable_w11"" 1>&6 ;;
  3022. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  3023. esac
  3024. USE_X11=
  3025. USE_W11=
  3026. XLIB=
  3027. XTLIB=
  3028. if test "$enable_w11" = "yes" ; then
  3029. X_CFLAGS=-I${SRCDIR}/display/drivers/windows/libW11
  3030. X_LIBS='-L$(LIBDIR)'
  3031. USE_W11="1"
  3032. USE_X11="1"
  3033. XLIB=-lX11
  3034. CFLAGS="$CFLAGS -D__W98__"
  3035. else
  3036. # If we find X, set shell vars x_includes and x_libraries to the
  3037. # paths, otherwise set no_x=yes.
  3038. # Uses ac_ vars as temps to allow command line to override cache and checks.
  3039. # --without-x overrides everything else, but does not touch the cache.
  3040. echo $ac_n "checking for X""... $ac_c" 1>&6
  3041. echo "configure:3669: checking for X" >&5
  3042. # Check whether --with-x or --without-x was given.
  3043. if test "${with_x+set}" = set; then
  3044. withval="$with_x"
  3045. :
  3046. fi
  3047. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  3048. if test "x$with_x" = xno; then
  3049. # The user explicitly disabled X.
  3050. have_x=disabled
  3051. else
  3052. if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  3053. # Both variables are already set.
  3054. have_x=yes
  3055. else
  3056. # One or both of the vars are not set, and there is no cached value.
  3057. ac_x_includes=NO ac_x_libraries=NO
  3058. rm -fr conftestdir
  3059. if mkdir conftestdir; then
  3060. cd conftestdir
  3061. # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  3062. cat > Imakefile <<'EOF'
  3063. acfindx:
  3064. @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  3065. EOF
  3066. if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  3067. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3068. eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  3069. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  3070. for ac_extension in a so sl; do
  3071. if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  3072. test -f $ac_im_libdir/libX11.$ac_extension; then
  3073. ac_im_usrlibdir=$ac_im_libdir; break
  3074. fi
  3075. done
  3076. # Screen out bogus values from the imake configuration. They are
  3077. # bogus both because they are the default anyway, and because
  3078. # using them would break gcc on systems where it needs fixed includes.
  3079. case "$ac_im_incroot" in
  3080. /usr/include) ;;
  3081. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
  3082. esac
  3083. case "$ac_im_usrlibdir" in
  3084. /usr/lib | /lib) ;;
  3085. *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
  3086. esac
  3087. fi
  3088. cd ..
  3089. rm -fr conftestdir
  3090. fi
  3091. if test "$ac_x_includes" = NO; then
  3092. # Guess where to find include files, by looking for this one X11 .h file.
  3093. test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  3094. # First, try using that file with no special directory specified.
  3095. cat > conftest.$ac_ext <<EOF
  3096. #line 3729 "configure"
  3097. #include "confdefs.h"
  3098. #include <$x_direct_test_include>
  3099. EOF
  3100. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3101. { (eval echo configure:3734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3102. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3103. if test -z "$ac_err"; then
  3104. rm -rf conftest*
  3105. # We can compile using X headers with no special include directory.
  3106. ac_x_includes=
  3107. else
  3108. echo "$ac_err" >&5
  3109. echo "configure: failed program was:" >&5
  3110. cat conftest.$ac_ext >&5
  3111. rm -rf conftest*
  3112. # Look for the header file in a standard set of common directories.
  3113. # Check X11 before X11Rn because it is often a symlink to the current release.
  3114. for ac_dir in \
  3115. /usr/X11/include \
  3116. /usr/X11R6/include \
  3117. /usr/X11R5/include \
  3118. /usr/X11R4/include \
  3119. \
  3120. /usr/include/X11 \
  3121. /usr/include/X11R6 \
  3122. /usr/include/X11R5 \
  3123. /usr/include/X11R4 \
  3124. \
  3125. /usr/local/X11/include \
  3126. /usr/local/X11R6/include \
  3127. /usr/local/X11R5/include \
  3128. /usr/local/X11R4/include \
  3129. \
  3130. /usr/local/include/X11 \
  3131. /usr/local/include/X11R6 \
  3132. /usr/local/include/X11R5 \
  3133. /usr/local/include/X11R4 \
  3134. \
  3135. /usr/X386/include \
  3136. /usr/x386/include \
  3137. /usr/XFree86/include/X11 \
  3138. \
  3139. /usr/include \
  3140. /usr/local/include \
  3141. /usr/unsupported/include \
  3142. /usr/athena/include \
  3143. /usr/local/x11r5/include \
  3144. /usr/lpp/Xamples/include \
  3145. \
  3146. /usr/openwin/include \
  3147. /usr/openwin/share/include \
  3148. ; \
  3149. do
  3150. if test -r "$ac_dir/$x_direct_test_include"; then
  3151. ac_x_includes=$ac_dir
  3152. break
  3153. fi
  3154. done
  3155. fi
  3156. rm -f conftest*
  3157. fi # $ac_x_includes = NO
  3158. if test "$ac_x_libraries" = NO; then
  3159. # Check for the libraries.
  3160. test -z "$x_direct_test_library" && x_direct_test_library=Xt
  3161. test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  3162. # See if we find them without any special options.
  3163. # Don't add to $LIBS permanently.
  3164. ac_save_LIBS="$LIBS"
  3165. LIBS="-l$x_direct_test_library $LIBS"
  3166. cat > conftest.$ac_ext <<EOF
  3167. #line 3803 "configure"
  3168. #include "confdefs.h"
  3169. int main() {
  3170. ${x_direct_test_function}()
  3171. ; return 0; }
  3172. EOF
  3173. if { (eval echo configure:3810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3174. rm -rf conftest*
  3175. LIBS="$ac_save_LIBS"
  3176. # We can link X programs with no special library path.
  3177. ac_x_libraries=
  3178. else
  3179. echo "configure: failed program was:" >&5
  3180. cat conftest.$ac_ext >&5
  3181. rm -rf conftest*
  3182. LIBS="$ac_save_LIBS"
  3183. # First see if replacing the include by lib works.
  3184. # Check X11 before X11Rn because it is often a symlink to the current release.
  3185. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  3186. /usr/X11/lib \
  3187. /usr/X11R6/lib \
  3188. /usr/X11R5/lib \
  3189. /usr/X11R4/lib \
  3190. \
  3191. /usr/lib/X11 \
  3192. /usr/lib/X11R6 \
  3193. /usr/lib/X11R5 \
  3194. /usr/lib/X11R4 \
  3195. \
  3196. /usr/local/X11/lib \
  3197. /usr/local/X11R6/lib \
  3198. /usr/local/X11R5/lib \
  3199. /usr/local/X11R4/lib \
  3200. \
  3201. /usr/local/lib/X11 \
  3202. /usr/local/lib/X11R6 \
  3203. /usr/local/lib/X11R5 \
  3204. /usr/local/lib/X11R4 \
  3205. \
  3206. /usr/X386/lib \
  3207. /usr/x386/lib \
  3208. /usr/XFree86/lib/X11 \
  3209. \
  3210. /usr/lib \
  3211. /usr/local/lib \
  3212. /usr/unsupported/lib \
  3213. /usr/athena/lib \
  3214. /usr/local/x11r5/lib \
  3215. /usr/lpp/Xamples/lib \
  3216. /lib/usr/lib/X11 \
  3217. \
  3218. /usr/openwin/lib \
  3219. /usr/openwin/share/lib \
  3220. ; \
  3221. do
  3222. for ac_extension in a so sl; do
  3223. if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  3224. ac_x_libraries=$ac_dir
  3225. break 2
  3226. fi
  3227. done
  3228. done
  3229. fi
  3230. rm -f conftest*
  3231. fi # $ac_x_libraries = NO
  3232. if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
  3233. # Didn't find X anywhere. Cache the known absence of X.
  3234. ac_cv_have_x="have_x=no"
  3235. else
  3236. # Record where we found X for the cache.
  3237. ac_cv_have_x="have_x=yes \
  3238. ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  3239. fi
  3240. fi
  3241. eval "$ac_cv_have_x"
  3242. fi # $with_x != no
  3243. if test "$have_x" != yes; then
  3244. echo "$ac_t""$have_x" 1>&6
  3245. no_x=yes
  3246. else
  3247. # If each of the values was on the command line, it overrides each guess.
  3248. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  3249. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  3250. # Update the cache value to reflect the command line values.
  3251. ac_cv_have_x="have_x=yes \
  3252. ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  3253. echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
  3254. fi
  3255. if test "$no_x" = yes; then
  3256. # Not all programs may use this symbol, but it does not hurt to define it.
  3257. cat >> confdefs.h <<\EOF
  3258. #define X_DISPLAY_MISSING 1
  3259. EOF
  3260. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  3261. else
  3262. if test -n "$x_includes"; then
  3263. X_CFLAGS="$X_CFLAGS -I$x_includes"
  3264. fi
  3265. # It would also be nice to do this for all -L options, not just this one.
  3266. if test -n "$x_libraries"; then
  3267. X_LIBS="$X_LIBS -L$x_libraries"
  3268. # For Solaris; some versions of Sun CC require a space after -R and
  3269. # others require no space. Words are not sufficient . . . .
  3270. case "`(uname -sr) 2>/dev/null`" in
  3271. "SunOS 5"*)
  3272. echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
  3273. echo "configure:3915: checking whether -R must be followed by a space" >&5
  3274. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
  3275. cat > conftest.$ac_ext <<EOF
  3276. #line 3918 "configure"
  3277. #include "confdefs.h"
  3278. int main() {
  3279. ; return 0; }
  3280. EOF
  3281. if { (eval echo configure:3925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3282. rm -rf conftest*
  3283. ac_R_nospace=yes
  3284. else
  3285. echo "configure: failed program was:" >&5
  3286. cat conftest.$ac_ext >&5
  3287. rm -rf conftest*
  3288. ac_R_nospace=no
  3289. fi
  3290. rm -f conftest*
  3291. if test $ac_R_nospace = yes; then
  3292. echo "$ac_t""no" 1>&6
  3293. X_LIBS="$X_LIBS -R$x_libraries"
  3294. else
  3295. LIBS="$ac_xsave_LIBS -R $x_libraries"
  3296. cat > conftest.$ac_ext <<EOF
  3297. #line 3941 "configure"
  3298. #include "confdefs.h"
  3299. int main() {
  3300. ; return 0; }
  3301. EOF
  3302. if { (eval echo configure:3948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3303. rm -rf conftest*
  3304. ac_R_space=yes
  3305. else
  3306. echo "configure: failed program was:" >&5
  3307. cat conftest.$ac_ext >&5
  3308. rm -rf conftest*
  3309. ac_R_space=no
  3310. fi
  3311. rm -f conftest*
  3312. if test $ac_R_space = yes; then
  3313. echo "$ac_t""yes" 1>&6
  3314. X_LIBS="$X_LIBS -R $x_libraries"
  3315. else
  3316. echo "$ac_t""neither works" 1>&6
  3317. fi
  3318. fi
  3319. LIBS="$ac_xsave_LIBS"
  3320. esac
  3321. fi
  3322. # Check for system-dependent libraries X programs must link with.
  3323. # Do this before checking for the system-independent R6 libraries
  3324. # (-lICE), since we may need -lsocket or whatever for X linking.
  3325. if test "$ISC" = yes; then
  3326. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  3327. else
  3328. # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  3329. # libraries were built with DECnet support. And karl@cs.umb.edu says
  3330. # the Alpha needs dnet_stub (dnet does not exist).
  3331. echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
  3332. echo "configure:3980: checking for dnet_ntoa in -ldnet" >&5
  3333. ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  3334. ac_save_LIBS="$LIBS"
  3335. LIBS="-ldnet $LIBS"
  3336. cat > conftest.$ac_ext <<EOF
  3337. #line 3986 "configure"
  3338. #include "confdefs.h"
  3339. /* Override any gcc2 internal prototype to avoid an error. */
  3340. /* We use char because int might match the return type of a gcc2
  3341. builtin and then its argument prototype would still apply. */
  3342. char dnet_ntoa();
  3343. int main() {
  3344. dnet_ntoa()
  3345. ; return 0; }
  3346. EOF
  3347. if { (eval echo configure:3997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3348. rm -rf conftest*
  3349. eval "ac_cv_lib_$ac_lib_var=yes"
  3350. else
  3351. echo "configure: failed program was:" >&5
  3352. cat conftest.$ac_ext >&5
  3353. rm -rf conftest*
  3354. eval "ac_cv_lib_$ac_lib_var=no"
  3355. fi
  3356. rm -f conftest*
  3357. LIBS="$ac_save_LIBS"
  3358. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3359. echo "$ac_t""yes" 1>&6
  3360. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  3361. else
  3362. echo "$ac_t""no" 1>&6
  3363. fi
  3364. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  3365. echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
  3366. echo "configure:4018: checking for dnet_ntoa in -ldnet_stub" >&5
  3367. ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  3368. ac_save_LIBS="$LIBS"
  3369. LIBS="-ldnet_stub $LIBS"
  3370. cat > conftest.$ac_ext <<EOF
  3371. #line 4024 "configure"
  3372. #include "confdefs.h"
  3373. /* Override any gcc2 internal prototype to avoid an error. */
  3374. /* We use char because int might match the return type of a gcc2
  3375. builtin and then its argument prototype would still apply. */
  3376. char dnet_ntoa();
  3377. int main() {
  3378. dnet_ntoa()
  3379. ; return 0; }
  3380. EOF
  3381. if { (eval echo configure:4035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3382. rm -rf conftest*
  3383. eval "ac_cv_lib_$ac_lib_var=yes"
  3384. else
  3385. echo "configure: failed program was:" >&5
  3386. cat conftest.$ac_ext >&5
  3387. rm -rf conftest*
  3388. eval "ac_cv_lib_$ac_lib_var=no"
  3389. fi
  3390. rm -f conftest*
  3391. LIBS="$ac_save_LIBS"
  3392. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3393. echo "$ac_t""yes" 1>&6
  3394. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  3395. else
  3396. echo "$ac_t""no" 1>&6
  3397. fi
  3398. fi
  3399. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  3400. # to get the SysV transport functions.
  3401. # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
  3402. # needs -lnsl.
  3403. # The nsl library prevents programs from opening the X display
  3404. # on Irix 5.2, according to dickey@clark.net.
  3405. echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
  3406. echo "configure:4063: checking for gethostbyname" >&5
  3407. cat > conftest.$ac_ext <<EOF
  3408. #line 4066 "configure"
  3409. #include "confdefs.h"
  3410. /* System header to define __stub macros and hopefully few prototypes,
  3411. which can conflict with char gethostbyname(); below. */
  3412. #include <assert.h>
  3413. /* Override any gcc2 internal prototype to avoid an error. */
  3414. /* We use char because int might match the return type of a gcc2
  3415. builtin and then its argument prototype would still apply. */
  3416. char gethostbyname();
  3417. int main() {
  3418. /* The GNU C library defines this for functions which it implements
  3419. to always fail with ENOSYS. Some functions are actually named
  3420. something starting with __ and the normal name is an alias. */
  3421. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  3422. choke me
  3423. #else
  3424. gethostbyname();
  3425. #endif
  3426. ; return 0; }
  3427. EOF
  3428. if { (eval echo configure:4089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3429. rm -rf conftest*
  3430. eval "ac_cv_func_gethostbyname=yes"
  3431. else
  3432. echo "configure: failed program was:" >&5
  3433. cat conftest.$ac_ext >&5
  3434. rm -rf conftest*
  3435. eval "ac_cv_func_gethostbyname=no"
  3436. fi
  3437. rm -f conftest*
  3438. if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  3439. echo "$ac_t""yes" 1>&6
  3440. :
  3441. else
  3442. echo "$ac_t""no" 1>&6
  3443. fi
  3444. if test $ac_cv_func_gethostbyname = no; then
  3445. echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  3446. echo "configure:4109: checking for gethostbyname in -lnsl" >&5
  3447. ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  3448. ac_save_LIBS="$LIBS"
  3449. LIBS="-lnsl $LIBS"
  3450. cat > conftest.$ac_ext <<EOF
  3451. #line 4115 "configure"
  3452. #include "confdefs.h"
  3453. /* Override any gcc2 internal prototype to avoid an error. */
  3454. /* We use char because int might match the return type of a gcc2
  3455. builtin and then its argument prototype would still apply. */
  3456. char gethostbyname();
  3457. int main() {
  3458. gethostbyname()
  3459. ; return 0; }
  3460. EOF
  3461. if { (eval echo configure:4126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3462. rm -rf conftest*
  3463. eval "ac_cv_lib_$ac_lib_var=yes"
  3464. else
  3465. echo "configure: failed program was:" >&5
  3466. cat conftest.$ac_ext >&5
  3467. rm -rf conftest*
  3468. eval "ac_cv_lib_$ac_lib_var=no"
  3469. fi
  3470. rm -f conftest*
  3471. LIBS="$ac_save_LIBS"
  3472. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3473. echo "$ac_t""yes" 1>&6
  3474. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  3475. else
  3476. echo "$ac_t""no" 1>&6
  3477. fi
  3478. fi
  3479. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  3480. # socket/setsockopt and other routines are undefined under SCO ODT
  3481. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  3482. # on later versions), says simon@lia.di.epfl.ch: it contains
  3483. # gethostby* variants that don't use the nameserver (or something).
  3484. # -lsocket must be given before -lnsl if both are needed.
  3485. # We assume that if connect needs -lnsl, so does gethostbyname.
  3486. echo $ac_n "checking for connect""... $ac_c" 1>&6
  3487. echo "configure:4155: checking for connect" >&5
  3488. cat > conftest.$ac_ext <<EOF
  3489. #line 4158 "configure"
  3490. #include "confdefs.h"
  3491. /* System header to define __stub macros and hopefully few prototypes,
  3492. which can conflict with char connect(); below. */
  3493. #include <assert.h>
  3494. /* Override any gcc2 internal prototype to avoid an error. */
  3495. /* We use char because int might match the return type of a gcc2
  3496. builtin and then its argument prototype would still apply. */
  3497. char connect();
  3498. int main() {
  3499. /* The GNU C library defines this for functions which it implements
  3500. to always fail with ENOSYS. Some functions are actually named
  3501. something starting with __ and the normal name is an alias. */
  3502. #if defined (__stub_connect) || defined (__stub___connect)
  3503. choke me
  3504. #else
  3505. connect();
  3506. #endif
  3507. ; return 0; }
  3508. EOF
  3509. if { (eval echo configure:4181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3510. rm -rf conftest*
  3511. eval "ac_cv_func_connect=yes"
  3512. else
  3513. echo "configure: failed program was:" >&5
  3514. cat conftest.$ac_ext >&5
  3515. rm -rf conftest*
  3516. eval "ac_cv_func_connect=no"
  3517. fi
  3518. rm -f conftest*
  3519. if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  3520. echo "$ac_t""yes" 1>&6
  3521. :
  3522. else
  3523. echo "$ac_t""no" 1>&6
  3524. fi
  3525. if test $ac_cv_func_connect = no; then
  3526. echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
  3527. echo "configure:4201: checking for connect in -lsocket" >&5
  3528. ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
  3529. ac_save_LIBS="$LIBS"
  3530. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  3531. cat > conftest.$ac_ext <<EOF
  3532. #line 4207 "configure"
  3533. #include "confdefs.h"
  3534. /* Override any gcc2 internal prototype to avoid an error. */
  3535. /* We use char because int might match the return type of a gcc2
  3536. builtin and then its argument prototype would still apply. */
  3537. char connect();
  3538. int main() {
  3539. connect()
  3540. ; return 0; }
  3541. EOF
  3542. if { (eval echo configure:4218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3543. rm -rf conftest*
  3544. eval "ac_cv_lib_$ac_lib_var=yes"
  3545. else
  3546. echo "configure: failed program was:" >&5
  3547. cat conftest.$ac_ext >&5
  3548. rm -rf conftest*
  3549. eval "ac_cv_lib_$ac_lib_var=no"
  3550. fi
  3551. rm -f conftest*
  3552. LIBS="$ac_save_LIBS"
  3553. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3554. echo "$ac_t""yes" 1>&6
  3555. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  3556. else
  3557. echo "$ac_t""no" 1>&6
  3558. fi
  3559. fi
  3560. # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
  3561. echo $ac_n "checking for remove""... $ac_c" 1>&6
  3562. echo "configure:4241: checking for remove" >&5
  3563. cat > conftest.$ac_ext <<EOF
  3564. #line 4244 "configure"
  3565. #include "confdefs.h"
  3566. /* System header to define __stub macros and hopefully few prototypes,
  3567. which can conflict with char remove(); below. */
  3568. #include <assert.h>
  3569. /* Override any gcc2 internal prototype to avoid an error. */
  3570. /* We use char because int might match the return type of a gcc2
  3571. builtin and then its argument prototype would still apply. */
  3572. char remove();
  3573. int main() {
  3574. /* The GNU C library defines this for functions which it implements
  3575. to always fail with ENOSYS. Some functions are actually named
  3576. something starting with __ and the normal name is an alias. */
  3577. #if defined (__stub_remove) || defined (__stub___remove)
  3578. choke me
  3579. #else
  3580. remove();
  3581. #endif
  3582. ; return 0; }
  3583. EOF
  3584. if { (eval echo configure:4267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3585. rm -rf conftest*
  3586. eval "ac_cv_func_remove=yes"
  3587. else
  3588. echo "configure: failed program was:" >&5
  3589. cat conftest.$ac_ext >&5
  3590. rm -rf conftest*
  3591. eval "ac_cv_func_remove=no"
  3592. fi
  3593. rm -f conftest*
  3594. if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
  3595. echo "$ac_t""yes" 1>&6
  3596. :
  3597. else
  3598. echo "$ac_t""no" 1>&6
  3599. fi
  3600. if test $ac_cv_func_remove = no; then
  3601. echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
  3602. echo "configure:4287: checking for remove in -lposix" >&5
  3603. ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
  3604. ac_save_LIBS="$LIBS"
  3605. LIBS="-lposix $LIBS"
  3606. cat > conftest.$ac_ext <<EOF
  3607. #line 4293 "configure"
  3608. #include "confdefs.h"
  3609. /* Override any gcc2 internal prototype to avoid an error. */
  3610. /* We use char because int might match the return type of a gcc2
  3611. builtin and then its argument prototype would still apply. */
  3612. char remove();
  3613. int main() {
  3614. remove()
  3615. ; return 0; }
  3616. EOF
  3617. if { (eval echo configure:4304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3618. rm -rf conftest*
  3619. eval "ac_cv_lib_$ac_lib_var=yes"
  3620. else
  3621. echo "configure: failed program was:" >&5
  3622. cat conftest.$ac_ext >&5
  3623. rm -rf conftest*
  3624. eval "ac_cv_lib_$ac_lib_var=no"
  3625. fi
  3626. rm -f conftest*
  3627. LIBS="$ac_save_LIBS"
  3628. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3629. echo "$ac_t""yes" 1>&6
  3630. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  3631. else
  3632. echo "$ac_t""no" 1>&6
  3633. fi
  3634. fi
  3635. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  3636. echo $ac_n "checking for shmat""... $ac_c" 1>&6
  3637. echo "configure:4327: checking for shmat" >&5
  3638. cat > conftest.$ac_ext <<EOF
  3639. #line 4330 "configure"
  3640. #include "confdefs.h"
  3641. /* System header to define __stub macros and hopefully few prototypes,
  3642. which can conflict with char shmat(); below. */
  3643. #include <assert.h>
  3644. /* Override any gcc2 internal prototype to avoid an error. */
  3645. /* We use char because int might match the return type of a gcc2
  3646. builtin and then its argument prototype would still apply. */
  3647. char shmat();
  3648. int main() {
  3649. /* The GNU C library defines this for functions which it implements
  3650. to always fail with ENOSYS. Some functions are actually named
  3651. something starting with __ and the normal name is an alias. */
  3652. #if defined (__stub_shmat) || defined (__stub___shmat)
  3653. choke me
  3654. #else
  3655. shmat();
  3656. #endif
  3657. ; return 0; }
  3658. EOF
  3659. if { (eval echo configure:4353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3660. rm -rf conftest*
  3661. eval "ac_cv_func_shmat=yes"
  3662. else
  3663. echo "configure: failed program was:" >&5
  3664. cat conftest.$ac_ext >&5
  3665. rm -rf conftest*
  3666. eval "ac_cv_func_shmat=no"
  3667. fi
  3668. rm -f conftest*
  3669. if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
  3670. echo "$ac_t""yes" 1>&6
  3671. :
  3672. else
  3673. echo "$ac_t""no" 1>&6
  3674. fi
  3675. if test $ac_cv_func_shmat = no; then
  3676. echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
  3677. echo "configure:4373: checking for shmat in -lipc" >&5
  3678. ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
  3679. ac_save_LIBS="$LIBS"
  3680. LIBS="-lipc $LIBS"
  3681. cat > conftest.$ac_ext <<EOF
  3682. #line 4379 "configure"
  3683. #include "confdefs.h"
  3684. /* Override any gcc2 internal prototype to avoid an error. */
  3685. /* We use char because int might match the return type of a gcc2
  3686. builtin and then its argument prototype would still apply. */
  3687. char shmat();
  3688. int main() {
  3689. shmat()
  3690. ; return 0; }
  3691. EOF
  3692. if { (eval echo configure:4390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3693. rm -rf conftest*
  3694. eval "ac_cv_lib_$ac_lib_var=yes"
  3695. else
  3696. echo "configure: failed program was:" >&5
  3697. cat conftest.$ac_ext >&5
  3698. rm -rf conftest*
  3699. eval "ac_cv_lib_$ac_lib_var=no"
  3700. fi
  3701. rm -f conftest*
  3702. LIBS="$ac_save_LIBS"
  3703. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3704. echo "$ac_t""yes" 1>&6
  3705. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  3706. else
  3707. echo "$ac_t""no" 1>&6
  3708. fi
  3709. fi
  3710. fi
  3711. # Check for libraries that X11R6 Xt/Xaw programs need.
  3712. ac_save_LDFLAGS="$LDFLAGS"
  3713. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  3714. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  3715. # check for ICE first), but we must link in the order -lSM -lICE or
  3716. # we get undefined symbols. So assume we have SM if we have ICE.
  3717. # These have to be linked with before -lX11, unlike the other
  3718. # libraries we check for below, so use a different variable.
  3719. # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  3720. echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
  3721. echo "configure:4422: checking for IceConnectionNumber in -lICE" >&5
  3722. ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
  3723. ac_save_LIBS="$LIBS"
  3724. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  3725. cat > conftest.$ac_ext <<EOF
  3726. #line 4428 "configure"
  3727. #include "confdefs.h"
  3728. /* Override any gcc2 internal prototype to avoid an error. */
  3729. /* We use char because int might match the return type of a gcc2
  3730. builtin and then its argument prototype would still apply. */
  3731. char IceConnectionNumber();
  3732. int main() {
  3733. IceConnectionNumber()
  3734. ; return 0; }
  3735. EOF
  3736. if { (eval echo configure:4439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3737. rm -rf conftest*
  3738. eval "ac_cv_lib_$ac_lib_var=yes"
  3739. else
  3740. echo "configure: failed program was:" >&5
  3741. cat conftest.$ac_ext >&5
  3742. rm -rf conftest*
  3743. eval "ac_cv_lib_$ac_lib_var=no"
  3744. fi
  3745. rm -f conftest*
  3746. LIBS="$ac_save_LIBS"
  3747. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3748. echo "$ac_t""yes" 1>&6
  3749. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  3750. else
  3751. echo "$ac_t""no" 1>&6
  3752. fi
  3753. LDFLAGS="$ac_save_LDFLAGS"
  3754. fi
  3755. if test "$no_x" != "yes"; then
  3756. USE_X11="1"
  3757. XLIB=-lX11
  3758. XTLIB=-lXt
  3759. fi
  3760. fi
  3761. # Note that some systems (FreeBSD for example) need an extra library for
  3762. # cuserid
  3763. ac_save_libs="$LIBS"
  3764. LIBS=""
  3765. echo $ac_n "checking for library containing cuserid""... $ac_c" 1>&6
  3766. echo "configure:4479: checking for library containing cuserid" >&5
  3767. ac_func_search_save_LIBS="$LIBS"
  3768. ac_cv_search_cuserid="no"
  3769. cat > conftest.$ac_ext <<EOF
  3770. #line 4484 "configure"
  3771. #include "confdefs.h"
  3772. /* Override any gcc2 internal prototype to avoid an error. */
  3773. /* We use char because int might match the return type of a gcc2
  3774. builtin and then its argument prototype would still apply. */
  3775. char cuserid();
  3776. int main() {
  3777. cuserid()
  3778. ; return 0; }
  3779. EOF
  3780. if { (eval echo configure:4495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3781. rm -rf conftest*
  3782. ac_cv_search_cuserid="none required"
  3783. else
  3784. echo "configure: failed program was:" >&5
  3785. cat conftest.$ac_ext >&5
  3786. fi
  3787. rm -f conftest*
  3788. test "$ac_cv_search_cuserid" = "no" && for i in compat; do
  3789. LIBS="-l$i $ac_func_search_save_LIBS"
  3790. cat > conftest.$ac_ext <<EOF
  3791. #line 4506 "configure"
  3792. #include "confdefs.h"
  3793. /* Override any gcc2 internal prototype to avoid an error. */
  3794. /* We use char because int might match the return type of a gcc2
  3795. builtin and then its argument prototype would still apply. */
  3796. char cuserid();
  3797. int main() {
  3798. cuserid()
  3799. ; return 0; }
  3800. EOF
  3801. if { (eval echo configure:4517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3802. rm -rf conftest*
  3803. ac_cv_search_cuserid="-l$i"
  3804. break
  3805. else
  3806. echo "configure: failed program was:" >&5
  3807. cat conftest.$ac_ext >&5
  3808. fi
  3809. rm -f conftest*
  3810. done
  3811. LIBS="$ac_func_search_save_LIBS"
  3812. echo "$ac_t""$ac_cv_search_cuserid" 1>&6
  3813. if test "$ac_cv_search_cuserid" != "no"; then
  3814. test "$ac_cv_search_cuserid" = "none required" || LIBS="$ac_cv_search_cuserid $LIBS"
  3815. else :
  3816. fi
  3817. DBMIEXTRALIB="$LIBS"
  3818. LIBS="$ac_save_libs"
  3819. for ac_func in asprintf
  3820. do
  3821. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3822. echo "configure:4543: checking for $ac_func" >&5
  3823. cat > conftest.$ac_ext <<EOF
  3824. #line 4546 "configure"
  3825. #include "confdefs.h"
  3826. /* System header to define __stub macros and hopefully few prototypes,
  3827. which can conflict with char $ac_func(); below. */
  3828. #include <assert.h>
  3829. /* Override any gcc2 internal prototype to avoid an error. */
  3830. /* We use char because int might match the return type of a gcc2
  3831. builtin and then its argument prototype would still apply. */
  3832. char $ac_func();
  3833. int main() {
  3834. /* The GNU C library defines this for functions which it implements
  3835. to always fail with ENOSYS. Some functions are actually named
  3836. something starting with __ and the normal name is an alias. */
  3837. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3838. choke me
  3839. #else
  3840. $ac_func();
  3841. #endif
  3842. ; return 0; }
  3843. EOF
  3844. if { (eval echo configure:4569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3845. rm -rf conftest*
  3846. eval "ac_cv_func_$ac_func=yes"
  3847. else
  3848. echo "configure: failed program was:" >&5
  3849. cat conftest.$ac_ext >&5
  3850. rm -rf conftest*
  3851. eval "ac_cv_func_$ac_func=no"
  3852. fi
  3853. rm -f conftest*
  3854. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3855. echo "$ac_t""yes" 1>&6
  3856. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3857. cat >> confdefs.h <<EOF
  3858. #define $ac_tr_func 1
  3859. EOF
  3860. else
  3861. echo "$ac_t""no" 1>&6
  3862. fi
  3863. done
  3864. # Test if mathlib needs -lm flag or is included with libc
  3865. echo $ac_n "checking for atan""... $ac_c" 1>&6
  3866. echo "configure:4596: checking for atan" >&5
  3867. cat > conftest.$ac_ext <<EOF
  3868. #line 4599 "configure"
  3869. #include "confdefs.h"
  3870. /* System header to define __stub macros and hopefully few prototypes,
  3871. which can conflict with char atan(); below. */
  3872. #include <assert.h>
  3873. /* Override any gcc2 internal prototype to avoid an error. */
  3874. /* We use char because int might match the return type of a gcc2
  3875. builtin and then its argument prototype would still apply. */
  3876. char atan();
  3877. int main() {
  3878. /* The GNU C library defines this for functions which it implements
  3879. to always fail with ENOSYS. Some functions are actually named
  3880. something starting with __ and the normal name is an alias. */
  3881. #if defined (__stub_atan) || defined (__stub___atan)
  3882. choke me
  3883. #else
  3884. atan();
  3885. #endif
  3886. ; return 0; }
  3887. EOF
  3888. if { (eval echo configure:4622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3889. rm -rf conftest*
  3890. eval "ac_cv_func_atan=yes"
  3891. else
  3892. echo "configure: failed program was:" >&5
  3893. cat conftest.$ac_ext >&5
  3894. rm -rf conftest*
  3895. eval "ac_cv_func_atan=no"
  3896. fi
  3897. rm -f conftest*
  3898. if eval "test \"`echo '$ac_cv_func_'atan`\" = yes"; then
  3899. echo "$ac_t""yes" 1>&6
  3900. MATHLIB=
  3901. else
  3902. echo "$ac_t""no" 1>&6
  3903. echo $ac_n "checking for atan in -lm""... $ac_c" 1>&6
  3904. echo "configure:4640: checking for atan in -lm" >&5
  3905. ac_lib_var=`echo m'_'atan | sed 'y%./+-%__p_%'`
  3906. ac_save_LIBS="$LIBS"
  3907. LIBS="-lm $LIBS"
  3908. cat > conftest.$ac_ext <<EOF
  3909. #line 4646 "configure"
  3910. #include "confdefs.h"
  3911. /* Override any gcc2 internal prototype to avoid an error. */
  3912. /* We use char because int might match the return type of a gcc2
  3913. builtin and then its argument prototype would still apply. */
  3914. char atan();
  3915. int main() {
  3916. atan()
  3917. ; return 0; }
  3918. EOF
  3919. if { (eval echo configure:4657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3920. rm -rf conftest*
  3921. eval "ac_cv_lib_$ac_lib_var=yes"
  3922. else
  3923. echo "configure: failed program was:" >&5
  3924. cat conftest.$ac_ext >&5
  3925. rm -rf conftest*
  3926. eval "ac_cv_lib_$ac_lib_var=no"
  3927. fi
  3928. rm -f conftest*
  3929. LIBS="$ac_save_LIBS"
  3930. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3931. echo "$ac_t""yes" 1>&6
  3932. MATHLIB=-lm
  3933. else
  3934. echo "$ac_t""no" 1>&6
  3935. { echo "configure: error: *** Failed check for math library." 1>&2; exit 1; }
  3936. fi
  3937. fi
  3938. echo $ac_n "checking for dlsym""... $ac_c" 1>&6
  3939. echo "configure:4684: checking for dlsym" >&5
  3940. cat > conftest.$ac_ext <<EOF
  3941. #line 4687 "configure"
  3942. #include "confdefs.h"
  3943. /* System header to define __stub macros and hopefully few prototypes,
  3944. which can conflict with char dlsym(); below. */
  3945. #include <assert.h>
  3946. /* Override any gcc2 internal prototype to avoid an error. */
  3947. /* We use char because int might match the return type of a gcc2
  3948. builtin and then its argument prototype would still apply. */
  3949. char dlsym();
  3950. int main() {
  3951. /* The GNU C library defines this for functions which it implements
  3952. to always fail with ENOSYS. Some functions are actually named
  3953. something starting with __ and the normal name is an alias. */
  3954. #if defined (__stub_dlsym) || defined (__stub___dlsym)
  3955. choke me
  3956. #else
  3957. dlsym();
  3958. #endif
  3959. ; return 0; }
  3960. EOF
  3961. if { (eval echo configure:4710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3962. rm -rf conftest*
  3963. eval "ac_cv_func_dlsym=yes"
  3964. else
  3965. echo "configure: failed program was:" >&5
  3966. cat conftest.$ac_ext >&5
  3967. rm -rf conftest*
  3968. eval "ac_cv_func_dlsym=no"
  3969. fi
  3970. rm -f conftest*
  3971. if eval "test \"`echo '$ac_cv_func_'dlsym`\" = yes"; then
  3972. echo "$ac_t""yes" 1>&6
  3973. DLLIB=
  3974. else
  3975. echo "$ac_t""no" 1>&6
  3976. echo $ac_n "checking for dlsym in -ldl""... $ac_c" 1>&6
  3977. echo "configure:4728: checking for dlsym in -ldl" >&5
  3978. ac_lib_var=`echo dl'_'dlsym | sed 'y%./+-%__p_%'`
  3979. ac_save_LIBS="$LIBS"
  3980. LIBS="-ldl $LIBS"
  3981. cat > conftest.$ac_ext <<EOF
  3982. #line 4734 "configure"
  3983. #include "confdefs.h"
  3984. /* Override any gcc2 internal prototype to avoid an error. */
  3985. /* We use char because int might match the return type of a gcc2
  3986. builtin and then its argument prototype would still apply. */
  3987. char dlsym();
  3988. int main() {
  3989. dlsym()
  3990. ; return 0; }
  3991. EOF
  3992. if { (eval echo configure:4745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3993. rm -rf conftest*
  3994. eval "ac_cv_lib_$ac_lib_var=yes"
  3995. else
  3996. echo "configure: failed program was:" >&5
  3997. cat conftest.$ac_ext >&5
  3998. rm -rf conftest*
  3999. eval "ac_cv_lib_$ac_lib_var=no"
  4000. fi
  4001. rm -f conftest*
  4002. LIBS="$ac_save_LIBS"
  4003. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4004. echo "$ac_t""yes" 1>&6
  4005. DLLIB=-ldl
  4006. else
  4007. echo "$ac_t""no" 1>&6
  4008. DLLIB=
  4009. fi
  4010. fi
  4011. echo $ac_n "checking for iconv""... $ac_c" 1>&6
  4012. echo "configure:4772: checking for iconv" >&5
  4013. cat > conftest.$ac_ext <<EOF
  4014. #line 4775 "configure"
  4015. #include "confdefs.h"
  4016. /* System header to define __stub macros and hopefully few prototypes,
  4017. which can conflict with char iconv(); below. */
  4018. #include <assert.h>
  4019. /* Override any gcc2 internal prototype to avoid an error. */
  4020. /* We use char because int might match the return type of a gcc2
  4021. builtin and then its argument prototype would still apply. */
  4022. char iconv();
  4023. int main() {
  4024. /* The GNU C library defines this for functions which it implements
  4025. to always fail with ENOSYS. Some functions are actually named
  4026. something starting with __ and the normal name is an alias. */
  4027. #if defined (__stub_iconv) || defined (__stub___iconv)
  4028. choke me
  4029. #else
  4030. iconv();
  4031. #endif
  4032. ; return 0; }
  4033. EOF
  4034. if { (eval echo configure:4798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4035. rm -rf conftest*
  4036. eval "ac_cv_func_iconv=yes"
  4037. else
  4038. echo "configure: failed program was:" >&5
  4039. cat conftest.$ac_ext >&5
  4040. rm -rf conftest*
  4041. eval "ac_cv_func_iconv=no"
  4042. fi
  4043. rm -f conftest*
  4044. if eval "test \"`echo '$ac_cv_func_'iconv`\" = yes"; then
  4045. echo "$ac_t""yes" 1>&6
  4046. ICONVLIB=
  4047. else
  4048. echo "$ac_t""no" 1>&6
  4049. echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
  4050. echo "configure:4816: checking for iconv in -liconv" >&5
  4051. ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
  4052. ac_save_LIBS="$LIBS"
  4053. LIBS="-liconv $LIBS"
  4054. cat > conftest.$ac_ext <<EOF
  4055. #line 4822 "configure"
  4056. #include "confdefs.h"
  4057. /* Override any gcc2 internal prototype to avoid an error. */
  4058. /* We use char because int might match the return type of a gcc2
  4059. builtin and then its argument prototype would still apply. */
  4060. char iconv();
  4061. int main() {
  4062. iconv()
  4063. ; return 0; }
  4064. EOF
  4065. if { (eval echo configure:4833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4066. rm -rf conftest*
  4067. eval "ac_cv_lib_$ac_lib_var=yes"
  4068. else
  4069. echo "configure: failed program was:" >&5
  4070. cat conftest.$ac_ext >&5
  4071. rm -rf conftest*
  4072. eval "ac_cv_lib_$ac_lib_var=no"
  4073. fi
  4074. rm -f conftest*
  4075. LIBS="$ac_save_LIBS"
  4076. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4077. echo "$ac_t""yes" 1>&6
  4078. ICONVLIB=-liconv
  4079. else
  4080. echo "$ac_t""no" 1>&6
  4081. echo $ac_n "checking for iconv in -lgiconv""... $ac_c" 1>&6
  4082. echo "configure:4852: checking for iconv in -lgiconv" >&5
  4083. ac_lib_var=`echo giconv'_'iconv | sed 'y%./+-%__p_%'`
  4084. ac_save_LIBS="$LIBS"
  4085. LIBS="-lgiconv $LIBS"
  4086. cat > conftest.$ac_ext <<EOF
  4087. #line 4858 "configure"
  4088. #include "confdefs.h"
  4089. /* Override any gcc2 internal prototype to avoid an error. */
  4090. /* We use char because int might match the return type of a gcc2
  4091. builtin and then its argument prototype would still apply. */
  4092. char iconv();
  4093. int main() {
  4094. iconv()
  4095. ; return 0; }
  4096. EOF
  4097. if { (eval echo configure:4869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4098. rm -rf conftest*
  4099. eval "ac_cv_lib_$ac_lib_var=yes"
  4100. else
  4101. echo "configure: failed program was:" >&5
  4102. cat conftest.$ac_ext >&5
  4103. rm -rf conftest*
  4104. eval "ac_cv_lib_$ac_lib_var=no"
  4105. fi
  4106. rm -f conftest*
  4107. LIBS="$ac_save_LIBS"
  4108. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4109. echo "$ac_t""yes" 1>&6
  4110. ICONVLIB=-lgiconv
  4111. else
  4112. echo "$ac_t""no" 1>&6
  4113. echo $ac_n "checking for libiconv""... $ac_c" 1>&6
  4114. echo "configure:4888: checking for libiconv" >&5
  4115. cat > conftest.$ac_ext <<EOF
  4116. #line 4891 "configure"
  4117. #include "confdefs.h"
  4118. /* System header to define __stub macros and hopefully few prototypes,
  4119. which can conflict with char libiconv(); below. */
  4120. #include <assert.h>
  4121. /* Override any gcc2 internal prototype to avoid an error. */
  4122. /* We use char because int might match the return type of a gcc2
  4123. builtin and then its argument prototype would still apply. */
  4124. char libiconv();
  4125. int main() {
  4126. /* The GNU C library defines this for functions which it implements
  4127. to always fail with ENOSYS. Some functions are actually named
  4128. something starting with __ and the normal name is an alias. */
  4129. #if defined (__stub_libiconv) || defined (__stub___libiconv)
  4130. choke me
  4131. #else
  4132. libiconv();
  4133. #endif
  4134. ; return 0; }
  4135. EOF
  4136. if { (eval echo configure:4914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4137. rm -rf conftest*
  4138. eval "ac_cv_func_libiconv=yes"
  4139. else
  4140. echo "configure: failed program was:" >&5
  4141. cat conftest.$ac_ext >&5
  4142. rm -rf conftest*
  4143. eval "ac_cv_func_libiconv=no"
  4144. fi
  4145. rm -f conftest*
  4146. if eval "test \"`echo '$ac_cv_func_'libiconv`\" = yes"; then
  4147. echo "$ac_t""yes" 1>&6
  4148. ICONVLIB=
  4149. else
  4150. echo "$ac_t""no" 1>&6
  4151. echo $ac_n "checking for libiconv in -liconv""... $ac_c" 1>&6
  4152. echo "configure:4932: checking for libiconv in -liconv" >&5
  4153. ac_lib_var=`echo iconv'_'libiconv | sed 'y%./+-%__p_%'`
  4154. ac_save_LIBS="$LIBS"
  4155. LIBS="-liconv $LIBS"
  4156. cat > conftest.$ac_ext <<EOF
  4157. #line 4938 "configure"
  4158. #include "confdefs.h"
  4159. /* Override any gcc2 internal prototype to avoid an error. */
  4160. /* We use char because int might match the return type of a gcc2
  4161. builtin and then its argument prototype would still apply. */
  4162. char libiconv();
  4163. int main() {
  4164. libiconv()
  4165. ; return 0; }
  4166. EOF
  4167. if { (eval echo configure:4949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4168. rm -rf conftest*
  4169. eval "ac_cv_lib_$ac_lib_var=yes"
  4170. else
  4171. echo "configure: failed program was:" >&5
  4172. cat conftest.$ac_ext >&5
  4173. rm -rf conftest*
  4174. eval "ac_cv_lib_$ac_lib_var=no"
  4175. fi
  4176. rm -f conftest*
  4177. LIBS="$ac_save_LIBS"
  4178. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4179. echo "$ac_t""yes" 1>&6
  4180. ICONVLIB=-liconv
  4181. else
  4182. echo "$ac_t""no" 1>&6
  4183. echo $ac_n "checking for libiconv in -lgiconv""... $ac_c" 1>&6
  4184. echo "configure:4968: checking for libiconv in -lgiconv" >&5
  4185. ac_lib_var=`echo giconv'_'libiconv | sed 'y%./+-%__p_%'`
  4186. ac_save_LIBS="$LIBS"
  4187. LIBS="-lgiconv $LIBS"
  4188. cat > conftest.$ac_ext <<EOF
  4189. #line 4974 "configure"
  4190. #include "confdefs.h"
  4191. /* Override any gcc2 internal prototype to avoid an error. */
  4192. /* We use char because int might match the return type of a gcc2
  4193. builtin and then its argument prototype would still apply. */
  4194. char libiconv();
  4195. int main() {
  4196. libiconv()
  4197. ; return 0; }
  4198. EOF
  4199. if { (eval echo configure:4985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4200. rm -rf conftest*
  4201. eval "ac_cv_lib_$ac_lib_var=yes"
  4202. else
  4203. echo "configure: failed program was:" >&5
  4204. cat conftest.$ac_ext >&5
  4205. rm -rf conftest*
  4206. eval "ac_cv_lib_$ac_lib_var=no"
  4207. fi
  4208. rm -f conftest*
  4209. LIBS="$ac_save_LIBS"
  4210. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4211. echo "$ac_t""yes" 1>&6
  4212. ICONVLIB=-lgiconv
  4213. else
  4214. echo "$ac_t""no" 1>&6
  4215. echo "configure: warning: *** Unable to locate iconv() function." 1>&2
  4216. ICONVLIB=
  4217. fi
  4218. fi
  4219. fi
  4220. fi
  4221. fi
  4222. fi
  4223. have_socket=1
  4224. echo $ac_n "checking for socket""... $ac_c" 1>&6
  4225. echo "configure:5022: checking for socket" >&5
  4226. cat > conftest.$ac_ext <<EOF
  4227. #line 5025 "configure"
  4228. #include "confdefs.h"
  4229. /* System header to define __stub macros and hopefully few prototypes,
  4230. which can conflict with char socket(); below. */
  4231. #include <assert.h>
  4232. /* Override any gcc2 internal prototype to avoid an error. */
  4233. /* We use char because int might match the return type of a gcc2
  4234. builtin and then its argument prototype would still apply. */
  4235. char socket();
  4236. int main() {
  4237. /* The GNU C library defines this for functions which it implements
  4238. to always fail with ENOSYS. Some functions are actually named
  4239. something starting with __ and the normal name is an alias. */
  4240. #if defined (__stub_socket) || defined (__stub___socket)
  4241. choke me
  4242. #else
  4243. socket();
  4244. #endif
  4245. ; return 0; }
  4246. EOF
  4247. if { (eval echo configure:5048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4248. rm -rf conftest*
  4249. eval "ac_cv_func_socket=yes"
  4250. else
  4251. echo "configure: failed program was:" >&5
  4252. cat conftest.$ac_ext >&5
  4253. rm -rf conftest*
  4254. eval "ac_cv_func_socket=no"
  4255. fi
  4256. rm -f conftest*
  4257. if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
  4258. echo "$ac_t""yes" 1>&6
  4259. SOCKLIB=
  4260. else
  4261. echo "$ac_t""no" 1>&6
  4262. echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
  4263. echo "configure:5066: checking for socket in -lsocket" >&5
  4264. ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
  4265. ac_save_LIBS="$LIBS"
  4266. LIBS="-lsocket $LIBS"
  4267. cat > conftest.$ac_ext <<EOF
  4268. #line 5072 "configure"
  4269. #include "confdefs.h"
  4270. /* Override any gcc2 internal prototype to avoid an error. */
  4271. /* We use char because int might match the return type of a gcc2
  4272. builtin and then its argument prototype would still apply. */
  4273. char socket();
  4274. int main() {
  4275. socket()
  4276. ; return 0; }
  4277. EOF
  4278. if { (eval echo configure:5083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4279. rm -rf conftest*
  4280. eval "ac_cv_lib_$ac_lib_var=yes"
  4281. else
  4282. echo "configure: failed program was:" >&5
  4283. cat conftest.$ac_ext >&5
  4284. rm -rf conftest*
  4285. eval "ac_cv_lib_$ac_lib_var=no"
  4286. fi
  4287. rm -f conftest*
  4288. LIBS="$ac_save_LIBS"
  4289. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4290. echo "$ac_t""yes" 1>&6
  4291. SOCKLIB=-lsocket
  4292. else
  4293. echo "$ac_t""no" 1>&6
  4294. have_socket=0
  4295. echo "configure: warning: *** Unable to locate socket() function." 1>&2
  4296. fi
  4297. fi
  4298. if test "$have_socket" = 1 ; then
  4299. HAVE_SOCKET=1
  4300. cat >> confdefs.h <<\EOF
  4301. #define HAVE_SOCKET 1
  4302. EOF
  4303. else
  4304. HAVE_SOCKET=
  4305. fi
  4306. # Mandatory zlib dependency
  4307. ZLIBLIBPATH=
  4308. ZLIBINCPATH=
  4309. ZLIB=
  4310. # With zlib includes directory
  4311. echo $ac_n "checking for location of zlib includes""... $ac_c" 1>&6
  4312. echo "configure:5131: checking for location of zlib includes" >&5
  4313. case "$with_zlib_includes" in
  4314. y | ye | yes | n | no)
  4315. { echo "configure: error: *** You must supply a directory to --with-zlib-includes." 1>&2; exit 1; }
  4316. ;;
  4317. esac
  4318. echo "$ac_t""$with_zlib_includes" 1>&6
  4319. if test -n "$with_zlib_includes" ; then
  4320. for dir in $with_zlib_includes; do
  4321. if test -d "$dir"; then
  4322. ZLIBINCPATH="$ZLIBINCPATH -I$dir"
  4323. else
  4324. { echo "configure: error: *** zlib includes directory $dir does not exist." 1>&2; exit 1; }
  4325. fi
  4326. done
  4327. fi
  4328. ac_save_cppflags="$CPPFLAGS"
  4329. CPPFLAGS="$ZLIBINCPATH $CPPFLAGS"
  4330. for ac_hdr in zlib.h
  4331. do
  4332. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4333. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4334. echo "configure:5157: checking for $ac_hdr" >&5
  4335. cat > conftest.$ac_ext <<EOF
  4336. #line 5160 "configure"
  4337. #include "confdefs.h"
  4338. #include <$ac_hdr>
  4339. EOF
  4340. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4341. { (eval echo configure:5165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4342. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4343. if test -z "$ac_err"; then
  4344. rm -rf conftest*
  4345. eval "ac_cv_header_$ac_safe=yes"
  4346. else
  4347. echo "$ac_err" >&5
  4348. echo "configure: failed program was:" >&5
  4349. cat conftest.$ac_ext >&5
  4350. rm -rf conftest*
  4351. eval "ac_cv_header_$ac_safe=no"
  4352. fi
  4353. rm -f conftest*
  4354. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4355. echo "$ac_t""yes" 1>&6
  4356. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4357. cat >> confdefs.h <<EOF
  4358. #define $ac_tr_hdr 1
  4359. EOF
  4360. else
  4361. echo "$ac_t""no" 1>&6
  4362. { echo "configure: error: *** Unable to locate zlib includes." 1>&2; exit 1; }
  4363. fi
  4364. done
  4365. CPPFLAGS=$ac_save_cppflags
  4366. # With zlib library directory
  4367. echo $ac_n "checking for location of zlib library""... $ac_c" 1>&6
  4368. echo "configure:5199: checking for location of zlib library" >&5
  4369. case "$with_zlib_libs" in
  4370. y | ye | yes | n | no)
  4371. { echo "configure: error: *** You must supply a directory to --with-zlib-libs." 1>&2; exit 1; }
  4372. ;;
  4373. esac
  4374. echo "$ac_t""$with_zlib_libs" 1>&6
  4375. if test -n "$with_zlib_libs"; then
  4376. for dir in $with_zlib_libs; do
  4377. if test -d "$dir"; then
  4378. ZLIBLIBPATH="$ZLIBLIBPATH -L$dir"
  4379. else
  4380. { echo "configure: error: *** zlib library directory $dir does not exist." 1>&2; exit 1; }
  4381. fi
  4382. done
  4383. fi
  4384. ac_save_ldflags="$LDFLAGS"
  4385. LDFLAGS="$ZLIBLIBPATH $LDFLAGS"
  4386. echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
  4387. echo "configure:5224: checking for deflate in -lz" >&5
  4388. ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
  4389. ac_save_LIBS="$LIBS"
  4390. LIBS="-lz $LIBS"
  4391. cat > conftest.$ac_ext <<EOF
  4392. #line 5230 "configure"
  4393. #include "confdefs.h"
  4394. /* Override any gcc2 internal prototype to avoid an error. */
  4395. /* We use char because int might match the return type of a gcc2
  4396. builtin and then its argument prototype would still apply. */
  4397. char deflate();
  4398. int main() {
  4399. deflate()
  4400. ; return 0; }
  4401. EOF
  4402. if { (eval echo configure:5241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4403. rm -rf conftest*
  4404. eval "ac_cv_lib_$ac_lib_var=yes"
  4405. else
  4406. echo "configure: failed program was:" >&5
  4407. cat conftest.$ac_ext >&5
  4408. rm -rf conftest*
  4409. eval "ac_cv_lib_$ac_lib_var=no"
  4410. fi
  4411. rm -f conftest*
  4412. LIBS="$ac_save_LIBS"
  4413. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4414. echo "$ac_t""yes" 1>&6
  4415. ZLIB="$ZLIB -lz "
  4416. else
  4417. echo "$ac_t""no" 1>&6
  4418. LDFLAGS=${ac_save_ldflags}
  4419. { echo "configure: error: *** Unable to locate zlib library." 1>&2; exit 1; }
  4420. fi
  4421. LDFLAGS=${ac_save_ldflags}
  4422. #
  4423. # Done checking zlib
  4424. # bzip2 support
  4425. echo $ac_n "checking whether to use bzlib""... $ac_c" 1>&6
  4426. echo "configure:5283: checking whether to use bzlib" >&5
  4427. echo "$ac_t"""$with_bzlib"" 1>&6
  4428. case "$with_bzlib" in
  4429. "no") USE_BZIP2= ;;
  4430. "yes") USE_BZIP2="1" ;;
  4431. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  4432. esac
  4433. if test -n "$USE_BZIP2"; then
  4434. BZLIBLIBPATH=
  4435. BZLIBINCPATH=
  4436. BZLIB=
  4437. # With bzip2 includes directory
  4438. echo $ac_n "checking for location of bzlib includes""... $ac_c" 1>&6
  4439. echo "configure:5303: checking for location of bzlib includes" >&5
  4440. case "$with_bzlib_includes" in
  4441. y | ye | yes | n | no)
  4442. { echo "configure: error: *** You must supply a directory to --with-bzlib-includes." 1>&2; exit 1; }
  4443. ;;
  4444. esac
  4445. echo "$ac_t""$with_bzlib_includes" 1>&6
  4446. if test -n "$with_bzlib_includes" ; then
  4447. for dir in $with_bzlib_includes; do
  4448. if test -d "$dir"; then
  4449. BZLIBINCPATH="$BZLIBINCPATH -I$dir"
  4450. else
  4451. { echo "configure: error: *** bzlib includes directory $dir does not exist." 1>&2; exit 1; }
  4452. fi
  4453. done
  4454. fi
  4455. ac_save_cppflags="$CPPFLAGS"
  4456. CPPFLAGS="$BZLIBINCPATH $CPPFLAGS"
  4457. for ac_hdr in bzlib.h
  4458. do
  4459. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4460. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4461. echo "configure:5329: checking for $ac_hdr" >&5
  4462. cat > conftest.$ac_ext <<EOF
  4463. #line 5332 "configure"
  4464. #include "confdefs.h"
  4465. #include <$ac_hdr>
  4466. EOF
  4467. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4468. { (eval echo configure:5337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4469. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4470. if test -z "$ac_err"; then
  4471. rm -rf conftest*
  4472. eval "ac_cv_header_$ac_safe=yes"
  4473. else
  4474. echo "$ac_err" >&5
  4475. echo "configure: failed program was:" >&5
  4476. cat conftest.$ac_ext >&5
  4477. rm -rf conftest*
  4478. eval "ac_cv_header_$ac_safe=no"
  4479. fi
  4480. rm -f conftest*
  4481. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4482. echo "$ac_t""yes" 1>&6
  4483. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4484. cat >> confdefs.h <<EOF
  4485. #define $ac_tr_hdr 1
  4486. EOF
  4487. else
  4488. echo "$ac_t""no" 1>&6
  4489. { echo "configure: error: *** Unable to locate bzlib includes." 1>&2; exit 1; }
  4490. fi
  4491. done
  4492. CPPFLAGS=$ac_save_cppflags
  4493. # With bzip2 library directory
  4494. echo $ac_n "checking for location of bzlib library""... $ac_c" 1>&6
  4495. echo "configure:5371: checking for location of bzlib library" >&5
  4496. case "$with_bzlib_libs" in
  4497. y | ye | yes | n | no)
  4498. { echo "configure: error: *** You must supply a directory to --with-bzlib-libs." 1>&2; exit 1; }
  4499. ;;
  4500. esac
  4501. echo "$ac_t""$with_bzlib_libs" 1>&6
  4502. if test -n "$with_bzlib_libs"; then
  4503. for dir in $with_bzlib_libs; do
  4504. if test -d "$dir"; then
  4505. BZLIBLIBPATH="$BZLIBLIBPATH -L$dir"
  4506. else
  4507. { echo "configure: error: *** bzlib library directory $dir does not exist." 1>&2; exit 1; }
  4508. fi
  4509. done
  4510. fi
  4511. ac_save_ldflags="$LDFLAGS"
  4512. LDFLAGS="$BZLIBLIBPATH $LDFLAGS"
  4513. echo $ac_n "checking for BZ2_bzBuffToBuffCompress in -lbz2""... $ac_c" 1>&6
  4514. echo "configure:5396: checking for BZ2_bzBuffToBuffCompress in -lbz2" >&5
  4515. ac_lib_var=`echo bz2'_'BZ2_bzBuffToBuffCompress | sed 'y%./+-%__p_%'`
  4516. ac_save_LIBS="$LIBS"
  4517. LIBS="-lbz2 $LIBS"
  4518. cat > conftest.$ac_ext <<EOF
  4519. #line 5402 "configure"
  4520. #include "confdefs.h"
  4521. /* Override any gcc2 internal prototype to avoid an error. */
  4522. /* We use char because int might match the return type of a gcc2
  4523. builtin and then its argument prototype would still apply. */
  4524. char BZ2_bzBuffToBuffCompress();
  4525. int main() {
  4526. BZ2_bzBuffToBuffCompress()
  4527. ; return 0; }
  4528. EOF
  4529. if { (eval echo configure:5413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4530. rm -rf conftest*
  4531. eval "ac_cv_lib_$ac_lib_var=yes"
  4532. else
  4533. echo "configure: failed program was:" >&5
  4534. cat conftest.$ac_ext >&5
  4535. rm -rf conftest*
  4536. eval "ac_cv_lib_$ac_lib_var=no"
  4537. fi
  4538. rm -f conftest*
  4539. LIBS="$ac_save_LIBS"
  4540. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4541. echo "$ac_t""yes" 1>&6
  4542. BZLIB="$BZLIB -lbz2 "
  4543. else
  4544. echo "$ac_t""no" 1>&6
  4545. LDFLAGS=${ac_save_ldflags}
  4546. { echo "configure: error: *** Unable to locate bzlib library." 1>&2; exit 1; }
  4547. fi
  4548. LDFLAGS=${ac_save_ldflags}
  4549. #
  4550. fi # $USE_BZIP2
  4551. # Done checking bzip2
  4552. # Mandatory PROJ dependency
  4553. PROJINC=
  4554. PROJLIB=
  4555. PROJSHARE=
  4556. # With PROJ includes directory
  4557. echo $ac_n "checking for location of External PROJ.4 includes""... $ac_c" 1>&6
  4558. echo "configure:5463: checking for location of External PROJ.4 includes" >&5
  4559. case "$with_proj_includes" in
  4560. y | ye | yes | n | no)
  4561. { echo "configure: error: *** You must supply a directory to --with-proj-includes." 1>&2; exit 1; }
  4562. ;;
  4563. esac
  4564. echo "$ac_t""$with_proj_includes" 1>&6
  4565. if test -n "$with_proj_includes" ; then
  4566. for dir in $with_proj_includes; do
  4567. if test -d "$dir"; then
  4568. PROJINC="$PROJINC -I$dir"
  4569. else
  4570. { echo "configure: error: *** External PROJ.4 includes directory $dir does not exist." 1>&2; exit 1; }
  4571. fi
  4572. done
  4573. fi
  4574. ac_save_cppflags="$CPPFLAGS"
  4575. CPPFLAGS="$PROJINC $CPPFLAGS"
  4576. for ac_hdr in proj_api.h
  4577. do
  4578. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4579. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4580. echo "configure:5489: checking for $ac_hdr" >&5
  4581. cat > conftest.$ac_ext <<EOF
  4582. #line 5492 "configure"
  4583. #include "confdefs.h"
  4584. #include <$ac_hdr>
  4585. EOF
  4586. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4587. { (eval echo configure:5497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4588. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4589. if test -z "$ac_err"; then
  4590. rm -rf conftest*
  4591. eval "ac_cv_header_$ac_safe=yes"
  4592. else
  4593. echo "$ac_err" >&5
  4594. echo "configure: failed program was:" >&5
  4595. cat conftest.$ac_ext >&5
  4596. rm -rf conftest*
  4597. eval "ac_cv_header_$ac_safe=no"
  4598. fi
  4599. rm -f conftest*
  4600. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4601. echo "$ac_t""yes" 1>&6
  4602. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4603. cat >> confdefs.h <<EOF
  4604. #define $ac_tr_hdr 1
  4605. EOF
  4606. else
  4607. echo "$ac_t""no" 1>&6
  4608. { echo "configure: error: *** Unable to locate External PROJ.4 includes." 1>&2; exit 1; }
  4609. fi
  4610. done
  4611. CPPFLAGS=$ac_save_cppflags
  4612. # PROJ version check
  4613. if test "$cross_compiling" = yes; then
  4614. echo "configure: warning: *** Cannot check PROJ.4 version (cross-compiling)." 1>&2
  4615. else
  4616. echo $ac_n "checking External PROJ.4 version""... $ac_c" 1>&6
  4617. echo "configure:5534: checking External PROJ.4 version" >&5
  4618. ac_save_cppflags="$CPPFLAGS"
  4619. CPPFLAGS="$PROJINC $CPPFLAGS"
  4620. if test "$cross_compiling" = yes; then
  4621. proj_ver=0
  4622. echo "$ac_t""unknown (cross-compiling)" 1>&6
  4623. else
  4624. cat > conftest.$ac_ext <<EOF
  4625. #line 5542 "configure"
  4626. #include "confdefs.h"
  4627. #include <stdio.h>
  4628. #include <proj_api.h>
  4629. int main(void) {
  4630. FILE *fp = fopen("conftestdata","w");
  4631. fprintf(fp, "%d", PJ_VERSION);
  4632. return 0;
  4633. }
  4634. EOF
  4635. if { (eval echo configure:5554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4636. then
  4637. proj_ver=`cat conftestdata`
  4638. echo "$ac_t""$proj_ver" 1>&6
  4639. else
  4640. echo "configure: failed program was:" >&5
  4641. cat conftest.$ac_ext >&5
  4642. rm -fr conftest*
  4643. { echo "configure: error: *** Could not determine External PROJ.4 version." 1>&2; exit 1; }
  4644. fi
  4645. rm -fr conftest*
  4646. fi
  4647. CPPFLAGS=$ac_save_cppflags
  4648. if test `expr "$proj_ver" \< 446` = 1 ; then
  4649. { echo "configure: error: *** PROJ.4.4.6 or later is required." 1>&2; exit 1; }
  4650. fi
  4651. fi
  4652. # With PROJ library directory
  4653. echo $ac_n "checking for location of External PROJ.4 library""... $ac_c" 1>&6
  4654. echo "configure:5579: checking for location of External PROJ.4 library" >&5
  4655. case "$with_proj_libs" in
  4656. y | ye | yes | n | no)
  4657. { echo "configure: error: *** You must supply a directory to --with-proj-libs." 1>&2; exit 1; }
  4658. ;;
  4659. esac
  4660. echo "$ac_t""$with_proj_libs" 1>&6
  4661. if test -n "$with_proj_libs"; then
  4662. for dir in $with_proj_libs; do
  4663. if test -d "$dir"; then
  4664. PROJLIB="$PROJLIB -L$dir"
  4665. else
  4666. { echo "configure: error: *** External PROJ.4 library directory $dir does not exist." 1>&2; exit 1; }
  4667. fi
  4668. done
  4669. fi
  4670. ac_save_ldflags="$LDFLAGS"
  4671. LDFLAGS="$PROJLIB $LDFLAGS"
  4672. echo $ac_n "checking for pj_get_def in -lproj""... $ac_c" 1>&6
  4673. echo "configure:5604: checking for pj_get_def in -lproj" >&5
  4674. ac_lib_var=`echo proj'_'pj_get_def | sed 'y%./+-%__p_%'`
  4675. ac_save_LIBS="$LIBS"
  4676. LIBS="-lproj $LIBS"
  4677. cat > conftest.$ac_ext <<EOF
  4678. #line 5610 "configure"
  4679. #include "confdefs.h"
  4680. /* Override any gcc2 internal prototype to avoid an error. */
  4681. /* We use char because int might match the return type of a gcc2
  4682. builtin and then its argument prototype would still apply. */
  4683. char pj_get_def();
  4684. int main() {
  4685. pj_get_def()
  4686. ; return 0; }
  4687. EOF
  4688. if { (eval echo configure:5621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4689. rm -rf conftest*
  4690. eval "ac_cv_lib_$ac_lib_var=yes"
  4691. else
  4692. echo "configure: failed program was:" >&5
  4693. cat conftest.$ac_ext >&5
  4694. rm -rf conftest*
  4695. eval "ac_cv_lib_$ac_lib_var=no"
  4696. fi
  4697. rm -f conftest*
  4698. LIBS="$ac_save_LIBS"
  4699. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4700. echo "$ac_t""yes" 1>&6
  4701. PROJLIB="$PROJLIB -lproj "
  4702. else
  4703. echo "$ac_t""no" 1>&6
  4704. LDFLAGS=${ac_save_ldflags}
  4705. { echo "configure: error: *** Unable to locate External PROJ.4 library." 1>&2; exit 1; }
  4706. fi
  4707. LDFLAGS=${ac_save_ldflags}
  4708. # With PROJ share directory
  4709. echo $ac_n "checking for location of External PROJ.4 data files""... $ac_c" 1>&6
  4710. echo "configure:5655: checking for location of External PROJ.4 data files" >&5
  4711. case "$with_proj_share" in
  4712. y | ye | yes | n | no)
  4713. { echo "configure: error: *** You must supply a directory to --with-proj-share." 1>&2; exit 1; }
  4714. ;;
  4715. esac
  4716. echo "$ac_t""$with_proj_share" 1>&6
  4717. if test -n "$with_proj_share" ; then
  4718. if test -d "$with_proj_share"; then
  4719. PROJSHARE="$with_proj_share"
  4720. else
  4721. { echo "configure: error: *** External PROJ.4 data directory $dir does not exist." 1>&2; exit 1; }
  4722. fi
  4723. fi
  4724. if test -z "$PROJSHARE" ; then
  4725. echo "configure: warning: *** External PROJ.4 directory not specified; default will be used" 1>&2
  4726. PROJSHARE=/usr/share/proj
  4727. fi
  4728. # LOC_CHECK_SHARE does not work when cross compiling
  4729. if test "$cross_compiling" = "yes" ; then
  4730. echo $ac_n "checking for epsg""... $ac_c" 1>&6
  4731. echo "configure:5679: checking for epsg" >&5
  4732. echo "$ac_t""unknown (cross-compiling)" 1>&6
  4733. else
  4734. ac_safe=`echo "$PROJSHARE/epsg" | sed 'y%./+-%__p_%'`
  4735. echo $ac_n "checking for $PROJSHARE/epsg""... $ac_c" 1>&6
  4736. echo "configure:5686: checking for $PROJSHARE/epsg" >&5
  4737. if test "$cross_compiling" = yes; then
  4738. { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
  4739. else
  4740. if test -r $PROJSHARE/epsg; then
  4741. eval "ac_cv_file_$ac_safe=yes"
  4742. else
  4743. eval "ac_cv_file_$ac_safe=no"
  4744. fi
  4745. fi
  4746. if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
  4747. echo "$ac_t""yes" 1>&6
  4748. :
  4749. else
  4750. echo "$ac_t""no" 1>&6
  4751. echo "configure: warning: *** Unable to locate PROJ data files." 1>&2
  4752. fi
  4753. fi
  4754. # nad2bin needs to be in path for installing datum gridshift files
  4755. # Extract the first word of "nad2bin", so it can be a program name with args.
  4756. set dummy nad2bin; ac_word=$2
  4757. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  4758. echo "configure:5718: checking for $ac_word" >&5
  4759. case "$NAD2BIN" in
  4760. /*)
  4761. ac_cv_path_NAD2BIN="$NAD2BIN" # Let the user override the test with a path.
  4762. ;;
  4763. ?:/*)
  4764. ac_cv_path_NAD2BIN="$NAD2BIN" # Let the user override the test with a dos path.
  4765. ;;
  4766. *)
  4767. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  4768. ac_dummy="$PATH"
  4769. for ac_dir in $ac_dummy; do
  4770. test -z "$ac_dir" && ac_dir=.
  4771. if test -f $ac_dir/$ac_word; then
  4772. ac_cv_path_NAD2BIN="$ac_dir/$ac_word"
  4773. break
  4774. fi
  4775. done
  4776. IFS="$ac_save_ifs"
  4777. test -z "$ac_cv_path_NAD2BIN" && ac_cv_path_NAD2BIN="no"
  4778. ;;
  4779. esac
  4780. NAD2BIN="$ac_cv_path_NAD2BIN"
  4781. if test -n "$NAD2BIN"; then
  4782. echo "$ac_t""$NAD2BIN" 1>&6
  4783. else
  4784. echo "$ac_t""no" 1>&6
  4785. fi
  4786. if test "$NAD2BIN" = "no"; then
  4787. { echo "configure: error: *** Unable to locate nad2bin (needs to be in PATH)." 1>&2; exit 1; }
  4788. fi
  4789. # Done checking PROJ
  4790. # Enable regex option
  4791. echo $ac_n "checking whether to use regex""... $ac_c" 1>&6
  4792. echo "configure:5758: checking whether to use regex" >&5
  4793. echo "$ac_t"""$with_regex"" 1>&6
  4794. case "$with_regex" in
  4795. "no") USE_REGEX= ;;
  4796. "yes") USE_REGEX="1" ;;
  4797. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  4798. esac
  4799. REGEXINCPATH=
  4800. REGEXLIBPATH=
  4801. REGEXLIB=
  4802. if test -n "$USE_REGEX"; then
  4803. # With regex includes directory
  4804. echo $ac_n "checking for location of regex includes""... $ac_c" 1>&6
  4805. echo "configure:5778: checking for location of regex includes" >&5
  4806. case "$with_regex_includes" in
  4807. y | ye | yes | n | no)
  4808. { echo "configure: error: *** You must supply a directory to --with-regex-includes." 1>&2; exit 1; }
  4809. ;;
  4810. esac
  4811. echo "$ac_t""$with_regex_includes" 1>&6
  4812. if test -n "$with_regex_includes" ; then
  4813. for dir in $with_regex_includes; do
  4814. if test -d "$dir"; then
  4815. REGEXINCPATH="$REGEXINCPATH -I$dir"
  4816. else
  4817. { echo "configure: error: *** regex includes directory $dir does not exist." 1>&2; exit 1; }
  4818. fi
  4819. done
  4820. fi
  4821. ac_save_cppflags="$CPPFLAGS"
  4822. CPPFLAGS="$REGEXINCPATH $CPPFLAGS"
  4823. for ac_hdr in regex.h
  4824. do
  4825. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4826. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4827. echo "configure:5804: checking for $ac_hdr" >&5
  4828. cat > conftest.$ac_ext <<EOF
  4829. #line 5807 "configure"
  4830. #include "confdefs.h"
  4831. #include <$ac_hdr>
  4832. EOF
  4833. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4834. { (eval echo configure:5812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4835. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4836. if test -z "$ac_err"; then
  4837. rm -rf conftest*
  4838. eval "ac_cv_header_$ac_safe=yes"
  4839. else
  4840. echo "$ac_err" >&5
  4841. echo "configure: failed program was:" >&5
  4842. cat conftest.$ac_ext >&5
  4843. rm -rf conftest*
  4844. eval "ac_cv_header_$ac_safe=no"
  4845. fi
  4846. rm -f conftest*
  4847. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4848. echo "$ac_t""yes" 1>&6
  4849. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4850. cat >> confdefs.h <<EOF
  4851. #define $ac_tr_hdr 1
  4852. EOF
  4853. else
  4854. echo "$ac_t""no" 1>&6
  4855. { echo "configure: error: *** Unable to locate regex includes." 1>&2; exit 1; }
  4856. fi
  4857. done
  4858. CPPFLAGS=$ac_save_cppflags
  4859. # With regex library directory
  4860. echo $ac_n "checking for location of regex library""... $ac_c" 1>&6
  4861. echo "configure:5846: checking for location of regex library" >&5
  4862. case "$with_regex_libs" in
  4863. y | ye | yes | n | no)
  4864. { echo "configure: error: *** You must supply a directory to --with-regex-libs." 1>&2; exit 1; }
  4865. ;;
  4866. esac
  4867. echo "$ac_t""$with_regex_libs" 1>&6
  4868. if test -n "$with_regex_libs"; then
  4869. for dir in $with_regex_libs; do
  4870. if test -d "$dir"; then
  4871. REGEXLIBPATH="$REGEXLIBPATH -L$dir"
  4872. else
  4873. { echo "configure: error: *** regex library directory $dir does not exist." 1>&2; exit 1; }
  4874. fi
  4875. done
  4876. fi
  4877. ac_save_libs="$LIBS"
  4878. ac_save_ldflags="$LDFLAGS"
  4879. LIBS=" $LIBS"
  4880. LDFLAGS=" $LDFLAGS"
  4881. echo $ac_n "checking for regcomp""... $ac_c" 1>&6
  4882. echo "configure:5871: checking for regcomp" >&5
  4883. cat > conftest.$ac_ext <<EOF
  4884. #line 5874 "configure"
  4885. #include "confdefs.h"
  4886. /* System header to define __stub macros and hopefully few prototypes,
  4887. which can conflict with char regcomp(); below. */
  4888. #include <assert.h>
  4889. /* Override any gcc2 internal prototype to avoid an error. */
  4890. /* We use char because int might match the return type of a gcc2
  4891. builtin and then its argument prototype would still apply. */
  4892. char regcomp();
  4893. int main() {
  4894. /* The GNU C library defines this for functions which it implements
  4895. to always fail with ENOSYS. Some functions are actually named
  4896. something starting with __ and the normal name is an alias. */
  4897. #if defined (__stub_regcomp) || defined (__stub___regcomp)
  4898. choke me
  4899. #else
  4900. regcomp();
  4901. #endif
  4902. ; return 0; }
  4903. EOF
  4904. if { (eval echo configure:5897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4905. rm -rf conftest*
  4906. eval "ac_cv_func_regcomp=yes"
  4907. else
  4908. echo "configure: failed program was:" >&5
  4909. cat conftest.$ac_ext >&5
  4910. rm -rf conftest*
  4911. eval "ac_cv_func_regcomp=no"
  4912. fi
  4913. rm -f conftest*
  4914. if eval "test \"`echo '$ac_cv_func_'regcomp`\" = yes"; then
  4915. echo "$ac_t""yes" 1>&6
  4916. REGEXLIB="$REGEXLIB "
  4917. else
  4918. echo "$ac_t""no" 1>&6
  4919. ac_save_ldflags="$LDFLAGS"
  4920. LDFLAGS="$REGEXLIBPATH $LDFLAGS"
  4921. echo $ac_n "checking for regcomp in -lregex""... $ac_c" 1>&6
  4922. echo "configure:5924: checking for regcomp in -lregex" >&5
  4923. ac_lib_var=`echo regex'_'regcomp | sed 'y%./+-%__p_%'`
  4924. ac_save_LIBS="$LIBS"
  4925. LIBS="-lregex $LIBS"
  4926. cat > conftest.$ac_ext <<EOF
  4927. #line 5930 "configure"
  4928. #include "confdefs.h"
  4929. /* Override any gcc2 internal prototype to avoid an error. */
  4930. /* We use char because int might match the return type of a gcc2
  4931. builtin and then its argument prototype would still apply. */
  4932. char regcomp();
  4933. int main() {
  4934. regcomp()
  4935. ; return 0; }
  4936. EOF
  4937. if { (eval echo configure:5941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4938. rm -rf conftest*
  4939. eval "ac_cv_lib_$ac_lib_var=yes"
  4940. else
  4941. echo "configure: failed program was:" >&5
  4942. cat conftest.$ac_ext >&5
  4943. rm -rf conftest*
  4944. eval "ac_cv_lib_$ac_lib_var=no"
  4945. fi
  4946. rm -f conftest*
  4947. LIBS="$ac_save_LIBS"
  4948. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4949. echo "$ac_t""yes" 1>&6
  4950. REGEXLIB="$REGEXLIB -lregex "
  4951. else
  4952. echo "$ac_t""no" 1>&6
  4953. LDFLAGS=${ac_save_ldflags}
  4954. { echo "configure: error: *** Unable to locate regex library." 1>&2; exit 1; }
  4955. fi
  4956. LDFLAGS=${ac_save_ldflags}
  4957. fi
  4958. LIBS=${ac_save_libs}
  4959. LDFLAGS=${ac_save_ldflags}
  4960. fi # $USE_REGEX
  4961. # Done checking regex
  4962. # Enable Readline option
  4963. echo $ac_n "checking whether to use Readline""... $ac_c" 1>&6
  4964. echo "configure:5991: checking whether to use Readline" >&5
  4965. echo "$ac_t"""$with_readline"" 1>&6
  4966. case "$with_readline" in
  4967. "no") USE_READLINE= ;;
  4968. "yes") USE_READLINE="1" ;;
  4969. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  4970. esac
  4971. READLINEINCPATH=
  4972. READLINELIBPATH=
  4973. READLINELIB=
  4974. HISTORYLIB=
  4975. if test -n "$USE_READLINE"; then
  4976. # With Readline includes directory
  4977. echo $ac_n "checking for location of Readline includes""... $ac_c" 1>&6
  4978. echo "configure:6012: checking for location of Readline includes" >&5
  4979. case "$with_readline_includes" in
  4980. y | ye | yes | n | no)
  4981. { echo "configure: error: *** You must supply a directory to --with-readline-includes." 1>&2; exit 1; }
  4982. ;;
  4983. esac
  4984. echo "$ac_t""$with_readline_includes" 1>&6
  4985. if test -n "$with_readline_includes" ; then
  4986. for dir in $with_readline_includes; do
  4987. if test -d "$dir"; then
  4988. READLINEINCPATH="$READLINEINCPATH -I$dir"
  4989. else
  4990. { echo "configure: error: *** Readline includes directory $dir does not exist." 1>&2; exit 1; }
  4991. fi
  4992. done
  4993. fi
  4994. ac_save_cppflags="$CPPFLAGS"
  4995. CPPFLAGS="$READLINEINCPATH $CPPFLAGS"
  4996. for ac_hdr in readline/readline.h
  4997. do
  4998. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4999. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5000. echo "configure:6038: checking for $ac_hdr" >&5
  5001. cat > conftest.$ac_ext <<EOF
  5002. #line 6041 "configure"
  5003. #include "confdefs.h"
  5004. #include <$ac_hdr>
  5005. EOF
  5006. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5007. { (eval echo configure:6046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5008. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5009. if test -z "$ac_err"; then
  5010. rm -rf conftest*
  5011. eval "ac_cv_header_$ac_safe=yes"
  5012. else
  5013. echo "$ac_err" >&5
  5014. echo "configure: failed program was:" >&5
  5015. cat conftest.$ac_ext >&5
  5016. rm -rf conftest*
  5017. eval "ac_cv_header_$ac_safe=no"
  5018. fi
  5019. rm -f conftest*
  5020. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5021. echo "$ac_t""yes" 1>&6
  5022. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5023. cat >> confdefs.h <<EOF
  5024. #define $ac_tr_hdr 1
  5025. EOF
  5026. else
  5027. echo "$ac_t""no" 1>&6
  5028. { echo "configure: error: *** Unable to locate Readline includes." 1>&2; exit 1; }
  5029. fi
  5030. done
  5031. CPPFLAGS=$ac_save_cppflags
  5032. ac_save_cppflags="$CPPFLAGS"
  5033. CPPFLAGS="$READLINEINCPATH $CPPFLAGS"
  5034. for ac_hdr in readline/history.h
  5035. do
  5036. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5037. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5038. echo "configure:6082: checking for $ac_hdr" >&5
  5039. cat > conftest.$ac_ext <<EOF
  5040. #line 6085 "configure"
  5041. #include "confdefs.h"
  5042. #include <$ac_hdr>
  5043. EOF
  5044. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5045. { (eval echo configure:6090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5046. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5047. if test -z "$ac_err"; then
  5048. rm -rf conftest*
  5049. eval "ac_cv_header_$ac_safe=yes"
  5050. else
  5051. echo "$ac_err" >&5
  5052. echo "configure: failed program was:" >&5
  5053. cat conftest.$ac_ext >&5
  5054. rm -rf conftest*
  5055. eval "ac_cv_header_$ac_safe=no"
  5056. fi
  5057. rm -f conftest*
  5058. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5059. echo "$ac_t""yes" 1>&6
  5060. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5061. cat >> confdefs.h <<EOF
  5062. #define $ac_tr_hdr 1
  5063. EOF
  5064. else
  5065. echo "$ac_t""no" 1>&6
  5066. { echo "configure: error: *** Unable to locate Readline includes." 1>&2; exit 1; }
  5067. fi
  5068. done
  5069. CPPFLAGS=$ac_save_cppflags
  5070. # With Readline library directory
  5071. echo $ac_n "checking for location of Readline library""... $ac_c" 1>&6
  5072. echo "configure:6124: checking for location of Readline library" >&5
  5073. case "$with_readline_libs" in
  5074. y | ye | yes | n | no)
  5075. { echo "configure: error: *** You must supply a directory to --with-readline-libs." 1>&2; exit 1; }
  5076. ;;
  5077. esac
  5078. echo "$ac_t""$with_readline_libs" 1>&6
  5079. if test -n "$with_readline_libs"; then
  5080. for dir in $with_readline_libs; do
  5081. if test -d "$dir"; then
  5082. READLINELIBPATH="$READLINELIBPATH -L$dir"
  5083. else
  5084. { echo "configure: error: *** Readline library directory $dir does not exist." 1>&2; exit 1; }
  5085. fi
  5086. done
  5087. fi
  5088. ac_save_ldflags="$LDFLAGS"
  5089. LDFLAGS="$READLINELIBPATH $LDFLAGS"
  5090. echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
  5091. echo "configure:6149: checking for readline in -lreadline" >&5
  5092. ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
  5093. ac_save_LIBS="$LIBS"
  5094. LIBS="-lreadline $LIBS"
  5095. cat > conftest.$ac_ext <<EOF
  5096. #line 6155 "configure"
  5097. #include "confdefs.h"
  5098. /* Override any gcc2 internal prototype to avoid an error. */
  5099. /* We use char because int might match the return type of a gcc2
  5100. builtin and then its argument prototype would still apply. */
  5101. char readline();
  5102. int main() {
  5103. readline()
  5104. ; return 0; }
  5105. EOF
  5106. if { (eval echo configure:6166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5107. rm -rf conftest*
  5108. eval "ac_cv_lib_$ac_lib_var=yes"
  5109. else
  5110. echo "configure: failed program was:" >&5
  5111. cat conftest.$ac_ext >&5
  5112. rm -rf conftest*
  5113. eval "ac_cv_lib_$ac_lib_var=no"
  5114. fi
  5115. rm -f conftest*
  5116. LIBS="$ac_save_LIBS"
  5117. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5118. echo "$ac_t""yes" 1>&6
  5119. READLINELIB="$READLINELIB -lreadline "
  5120. else
  5121. echo "$ac_t""no" 1>&6
  5122. LDFLAGS=${ac_save_ldflags}
  5123. { echo "configure: error: *** Unable to locate Readline library." 1>&2; exit 1; }
  5124. fi
  5125. LDFLAGS=${ac_save_ldflags}
  5126. ac_save_ldflags="$LDFLAGS"
  5127. LDFLAGS="$READLINELIBPATH $LDFLAGS"
  5128. echo $ac_n "checking for add_history in -lhistory""... $ac_c" 1>&6
  5129. echo "configure:6201: checking for add_history in -lhistory" >&5
  5130. ac_lib_var=`echo history'_'add_history | sed 'y%./+-%__p_%'`
  5131. ac_save_LIBS="$LIBS"
  5132. LIBS="-lhistory $LIBS"
  5133. cat > conftest.$ac_ext <<EOF
  5134. #line 6207 "configure"
  5135. #include "confdefs.h"
  5136. /* Override any gcc2 internal prototype to avoid an error. */
  5137. /* We use char because int might match the return type of a gcc2
  5138. builtin and then its argument prototype would still apply. */
  5139. char add_history();
  5140. int main() {
  5141. add_history()
  5142. ; return 0; }
  5143. EOF
  5144. if { (eval echo configure:6218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5145. rm -rf conftest*
  5146. eval "ac_cv_lib_$ac_lib_var=yes"
  5147. else
  5148. echo "configure: failed program was:" >&5
  5149. cat conftest.$ac_ext >&5
  5150. rm -rf conftest*
  5151. eval "ac_cv_lib_$ac_lib_var=no"
  5152. fi
  5153. rm -f conftest*
  5154. LIBS="$ac_save_LIBS"
  5155. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5156. echo "$ac_t""yes" 1>&6
  5157. HISTORYLIB="$HISTORYLIB -lhistory "
  5158. else
  5159. echo "$ac_t""no" 1>&6
  5160. LDFLAGS=${ac_save_ldflags}
  5161. { echo "configure: error: *** Unable to locate History library." 1>&2; exit 1; }
  5162. fi
  5163. LDFLAGS=${ac_save_ldflags}
  5164. fi # $USE_READLINE
  5165. # Done checking Readline
  5166. # GDAL option
  5167. echo $ac_n "checking whether to use GDAL""... $ac_c" 1>&6
  5168. echo "configure:6260: checking whether to use GDAL" >&5
  5169. GDAL_LIBS=
  5170. GDAL_CFLAGS=
  5171. USE_GDAL=
  5172. USE_OGR=
  5173. if test "`basename xx/$with_gdal`" = "gdal-config" ; then
  5174. GDAL_CONFIG="$with_gdal"
  5175. fi
  5176. if test "$with_gdal" = "no" ; then
  5177. echo "$ac_t""no" 1>&6
  5178. else
  5179. echo "$ac_t""yes" 1>&6
  5180. # Extract the first word of "gdal-config", so it can be a program name with args.
  5181. set dummy gdal-config; ac_word=$2
  5182. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5183. echo "configure:6278: checking for $ac_word" >&5
  5184. case "$GDAL_CONFIG" in
  5185. /*)
  5186. ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a path.
  5187. ;;
  5188. ?:/*)
  5189. ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a dos path.
  5190. ;;
  5191. *)
  5192. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5193. ac_dummy="$PATH"
  5194. for ac_dir in $ac_dummy; do
  5195. test -z "$ac_dir" && ac_dir=.
  5196. if test -f $ac_dir/$ac_word; then
  5197. ac_cv_path_GDAL_CONFIG="$ac_dir/$ac_word"
  5198. break
  5199. fi
  5200. done
  5201. IFS="$ac_save_ifs"
  5202. test -z "$ac_cv_path_GDAL_CONFIG" && ac_cv_path_GDAL_CONFIG="no"
  5203. ;;
  5204. esac
  5205. GDAL_CONFIG="$ac_cv_path_GDAL_CONFIG"
  5206. if test -n "$GDAL_CONFIG"; then
  5207. echo "$ac_t""$GDAL_CONFIG" 1>&6
  5208. else
  5209. echo "$ac_t""no" 1>&6
  5210. fi
  5211. if test "$GDAL_CONFIG" = "no" ; then
  5212. { echo "configure: error: *** couldn't find gdal-config" 1>&2; exit 1; }
  5213. fi
  5214. if test "$GDAL_CONFIG" != "" ; then
  5215. GDAL_LIBS=`"$GDAL_CONFIG" --libs`
  5216. GDAL_DEP_LIBS=`"$GDAL_CONFIG" --dep-libs`
  5217. GDAL_CFLAGS=`"$GDAL_CONFIG" --cflags`
  5218. USE_GDAL=1
  5219. if test `"$GDAL_CONFIG" --ogr-enabled` = "yes" ; then
  5220. cat >> confdefs.h <<\EOF
  5221. #define HAVE_OGR 1
  5222. EOF
  5223. USE_OGR=1
  5224. fi
  5225. fi
  5226. GDAL=
  5227. ac_save_libs="$LIBS"
  5228. ac_save_cflags="$CFLAGS"
  5229. LIBS="$LIBS $GDAL_LIBS"
  5230. CFLAGS="$CFLAGS $GDAL_CFLAGS"
  5231. cat > conftest.$ac_ext <<EOF
  5232. #line 6333 "configure"
  5233. #include "confdefs.h"
  5234. #include <gdal.h>
  5235. int main() {
  5236. GDALOpen("foo", GA_ReadOnly);
  5237. ; return 0; }
  5238. EOF
  5239. if { (eval echo configure:6340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5240. :
  5241. else
  5242. echo "configure: failed program was:" >&5
  5243. cat conftest.$ac_ext >&5
  5244. rm -rf conftest*
  5245. LIBS="$LIBS $GDAL_DEP_LIBS"
  5246. cat > conftest.$ac_ext <<EOF
  5247. #line 6349 "configure"
  5248. #include "confdefs.h"
  5249. #include <gdal.h>
  5250. int main() {
  5251. GDALOpen("foo", GA_ReadOnly);
  5252. ; return 0; }
  5253. EOF
  5254. if { (eval echo configure:6356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5255. rm -rf conftest*
  5256. GDAL_LIBS="$GDAL_LIBS $GDAL_DEP_LIBS"
  5257. else
  5258. echo "configure: failed program was:" >&5
  5259. cat conftest.$ac_ext >&5
  5260. rm -rf conftest*
  5261. { echo "configure: error: *** Unable to locate GDAL library." 1>&2; exit 1; }
  5262. fi
  5263. rm -f conftest*
  5264. fi
  5265. rm -f conftest*
  5266. LIBS=${ac_save_libs}
  5267. CFLAGS=${ac_save_cflags}
  5268. cat >> confdefs.h <<\EOF
  5269. #define HAVE_GDAL 1
  5270. EOF
  5271. fi
  5272. # libLAS option
  5273. echo $ac_n "checking whether to use libLAS""... $ac_c" 1>&6
  5274. echo "configure:6388: checking whether to use libLAS" >&5
  5275. LIBLAS_LIBS=
  5276. LIBLAS_CFLAGS=
  5277. USE_LIBLAS=
  5278. if test "`basename xx/$with_liblas`" = "liblas-config" ; then
  5279. LIBLAS_CONFIG="$with_liblas"
  5280. fi
  5281. if test "$with_liblas" = "no" ; then
  5282. echo "$ac_t""no" 1>&6
  5283. else
  5284. echo "$ac_t""yes" 1>&6
  5285. # Extract the first word of "liblas-config", so it can be a program name with args.
  5286. set dummy liblas-config; ac_word=$2
  5287. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5288. echo "configure:6405: checking for $ac_word" >&5
  5289. case "$LIBLAS_CONFIG" in
  5290. /*)
  5291. ac_cv_path_LIBLAS_CONFIG="$LIBLAS_CONFIG" # Let the user override the test with a path.
  5292. ;;
  5293. ?:/*)
  5294. ac_cv_path_LIBLAS_CONFIG="$LIBLAS_CONFIG" # Let the user override the test with a dos path.
  5295. ;;
  5296. *)
  5297. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5298. ac_dummy="$PATH"
  5299. for ac_dir in $ac_dummy; do
  5300. test -z "$ac_dir" && ac_dir=.
  5301. if test -f $ac_dir/$ac_word; then
  5302. ac_cv_path_LIBLAS_CONFIG="$ac_dir/$ac_word"
  5303. break
  5304. fi
  5305. done
  5306. IFS="$ac_save_ifs"
  5307. test -z "$ac_cv_path_LIBLAS_CONFIG" && ac_cv_path_LIBLAS_CONFIG="no"
  5308. ;;
  5309. esac
  5310. LIBLAS_CONFIG="$ac_cv_path_LIBLAS_CONFIG"
  5311. if test -n "$LIBLAS_CONFIG"; then
  5312. echo "$ac_t""$LIBLAS_CONFIG" 1>&6
  5313. else
  5314. echo "$ac_t""no" 1>&6
  5315. fi
  5316. if test "$LIBLAS_CONFIG" = "no" ; then
  5317. { echo "configure: error: *** couldn't find liblas-config" 1>&2; exit 1; }
  5318. fi
  5319. if test "$LIBLAS_CONFIG" != "" ; then
  5320. LIBLAS_LIBS=`"$LIBLAS_CONFIG" --libs`
  5321. LIBLAS_CFLAGS=`"$LIBLAS_CONFIG" --cflags`
  5322. LIBLAS_INC=`"$LIBLAS_CONFIG" --includes`
  5323. USE_LIBLAS=1
  5324. fi
  5325. LIBLAS=
  5326. ac_save_libs="$LIBS"
  5327. ac_save_cflags="$CFLAGS"
  5328. ac_save_cppflags="$CPPFLAGS"
  5329. LIBS="$LIBS $LIBLAS_LIBS"
  5330. CFLAGS="$CFLAGS $LIBLAS_CFLAGS"
  5331. CPPFLAGS="$CPPFLAGS $LIBLAS_INC"
  5332. cat > conftest.$ac_ext <<EOF
  5333. #line 6455 "configure"
  5334. #include "confdefs.h"
  5335. #include <liblas/capi/liblas.h>
  5336. int main() {
  5337. LASReader_Create("foo");
  5338. ; return 0; }
  5339. EOF
  5340. if { (eval echo configure:6462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5341. :
  5342. else
  5343. echo "configure: failed program was:" >&5
  5344. cat conftest.$ac_ext >&5
  5345. rm -rf conftest*
  5346. cat > conftest.$ac_ext <<EOF
  5347. #line 6470 "configure"
  5348. #include "confdefs.h"
  5349. #include <liblas/capi/liblas.h>
  5350. int main() {
  5351. LASReader_Create("foo");
  5352. ; return 0; }
  5353. EOF
  5354. if { (eval echo configure:6477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5355. rm -rf conftest*
  5356. LAS_LIBS="$LAS_LIBS"
  5357. else
  5358. echo "configure: failed program was:" >&5
  5359. cat conftest.$ac_ext >&5
  5360. rm -rf conftest*
  5361. { echo "configure: error: *** Unable to locate libLAS library." 1>&2; exit 1; }
  5362. fi
  5363. rm -f conftest*
  5364. fi
  5365. rm -f conftest*
  5366. LIBS=${ac_save_libs}
  5367. CFLAGS=${ac_save_cflags}
  5368. CPPFLAGS=${ac_save_cppflags}
  5369. cat >> confdefs.h <<\EOF
  5370. #define HAVE_LIBLAS 1
  5371. EOF
  5372. fi
  5373. # PDAL option
  5374. echo $ac_n "checking whether to use PDAL""... $ac_c" 1>&6
  5375. echo "configure:6510: checking whether to use PDAL" >&5
  5376. # new and currently used way to switch language to C++
  5377. # AC_LANG_PUSH(C++)
  5378. ac_ext=C
  5379. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  5380. ac_cpp='$CXXCPP $CPPFLAGS'
  5381. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  5382. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5383. cross_compiling=$ac_cv_prog_cxx_cross
  5384. PDAL_LIBS=
  5385. PDAL_CPPFLAGS=
  5386. USE_PDAL=
  5387. if test "`basename xx/$with_pdal`" = "pdal-config" ; then
  5388. PDAL_CONFIG="$with_pdal"
  5389. fi
  5390. if test "$with_pdal" = "no" ; then
  5391. echo "$ac_t""no" 1>&6
  5392. else
  5393. echo "$ac_t""yes" 1>&6
  5394. # Extract the first word of "pdal-config", so it can be a program name with args.
  5395. set dummy pdal-config; ac_word=$2
  5396. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5397. echo "configure:6538: checking for $ac_word" >&5
  5398. case "$PDAL_CONFIG" in
  5399. /*)
  5400. ac_cv_path_PDAL_CONFIG="$PDAL_CONFIG" # Let the user override the test with a path.
  5401. ;;
  5402. ?:/*)
  5403. ac_cv_path_PDAL_CONFIG="$PDAL_CONFIG" # Let the user override the test with a dos path.
  5404. ;;
  5405. *)
  5406. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5407. ac_dummy="$PATH"
  5408. for ac_dir in $ac_dummy; do
  5409. test -z "$ac_dir" && ac_dir=.
  5410. if test -f $ac_dir/$ac_word; then
  5411. ac_cv_path_PDAL_CONFIG="$ac_dir/$ac_word"
  5412. break
  5413. fi
  5414. done
  5415. IFS="$ac_save_ifs"
  5416. test -z "$ac_cv_path_PDAL_CONFIG" && ac_cv_path_PDAL_CONFIG="no"
  5417. ;;
  5418. esac
  5419. PDAL_CONFIG="$ac_cv_path_PDAL_CONFIG"
  5420. if test -n "$PDAL_CONFIG"; then
  5421. echo "$ac_t""$PDAL_CONFIG" 1>&6
  5422. else
  5423. echo "$ac_t""no" 1>&6
  5424. fi
  5425. if test "$PDAL_CONFIG" = "no" ; then
  5426. { echo "configure: error: *** could not find pdal-config" 1>&2; exit 1; }
  5427. fi
  5428. if test "$PDAL_CONFIG" != "" ; then
  5429. PDAL_LIBS=`"$PDAL_CONFIG" --libs`
  5430. PDAL_CPPFLAGS=`"$PDAL_CONFIG" --cxxflags`
  5431. PDAL_INC=`"$PDAL_CONFIG" --includes`
  5432. USE_PDAL=1
  5433. fi
  5434. PDAL=
  5435. ac_save_libs="$LIBS"
  5436. ac_save_cflags="$CFLAGS"
  5437. ac_save_cppflags="$CPPFLAGS"
  5438. LIBS="$LIBS $PDAL_LIBS"
  5439. CFLAGS="$CFLAGS $PDAL_CFLAGS"
  5440. CPPFLAGS="$CPPFLAGS $PDAL_CPPFLAGS $PDAL_INC"
  5441. cat > conftest.$ac_ext <<EOF
  5442. #line 6588 "configure"
  5443. #include "confdefs.h"
  5444. #include <pdal/PointTable.hpp>
  5445. int main() {
  5446. pdal::PointTable table;
  5447. ; return 0; }
  5448. EOF
  5449. if { (eval echo configure:6595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5450. :
  5451. else
  5452. echo "configure: failed program was:" >&5
  5453. cat conftest.$ac_ext >&5
  5454. rm -rf conftest*
  5455. cat > conftest.$ac_ext <<EOF
  5456. #line 6603 "configure"
  5457. #include "confdefs.h"
  5458. #include <pdal/PointTable.hpp>
  5459. int main() {
  5460. pdal::PointTable table;
  5461. ; return 0; }
  5462. EOF
  5463. if { (eval echo configure:6610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5464. rm -rf conftest*
  5465. PDAL_LIBS="$PDAL_LIBS"
  5466. else
  5467. echo "configure: failed program was:" >&5
  5468. cat conftest.$ac_ext >&5
  5469. rm -rf conftest*
  5470. { echo "configure: error: *** Unable to locate PDAL library." 1>&2; exit 1; }
  5471. fi
  5472. rm -f conftest*
  5473. fi
  5474. rm -f conftest*
  5475. LIBS=${ac_save_libs}
  5476. CFLAGS=${ac_save_cflags}
  5477. CPPFLAGS=${ac_save_cppflags}
  5478. cat >> confdefs.h <<\EOF
  5479. #define HAVE_PDAL 1
  5480. EOF
  5481. fi
  5482. # new and currently used way to switch language back to C
  5483. # AC_LANG_POP(C++)
  5484. ac_ext=c
  5485. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  5486. ac_cpp='$CPP $CPPFLAGS'
  5487. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  5488. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5489. cross_compiling=$ac_cv_prog_cc_cross
  5490. ac_ext=c
  5491. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  5492. ac_cpp='$CPP $CPPFLAGS'
  5493. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  5494. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5495. cross_compiling=$ac_cv_prog_cc_cross
  5496. # NetCDF option
  5497. echo $ac_n "checking whether to use NetCDF""... $ac_c" 1>&6
  5498. echo "configure:6660: checking whether to use NetCDF" >&5
  5499. NETCDF_LIBS=
  5500. NETCDF_CFLAGS=
  5501. USE_NETCDF=
  5502. if test "`basename xx/$with_netcdf`" = "nc-config" ; then
  5503. NETCDF_CONFIG="$with_netcdf"
  5504. fi
  5505. if test "$with_netcdf" = "no" ; then
  5506. echo "$ac_t""no" 1>&6
  5507. else
  5508. echo "$ac_t""yes" 1>&6
  5509. # Extract the first word of "nc-config", so it can be a program name with args.
  5510. set dummy nc-config; ac_word=$2
  5511. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5512. echo "configure:6677: checking for $ac_word" >&5
  5513. case "$NETCDF_CONFIG" in
  5514. /*)
  5515. ac_cv_path_NETCDF_CONFIG="$NETCDF_CONFIG" # Let the user override the test with a path.
  5516. ;;
  5517. ?:/*)
  5518. ac_cv_path_NETCDF_CONFIG="$NETCDF_CONFIG" # Let the user override the test with a dos path.
  5519. ;;
  5520. *)
  5521. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5522. ac_dummy="$PATH"
  5523. for ac_dir in $ac_dummy; do
  5524. test -z "$ac_dir" && ac_dir=.
  5525. if test -f $ac_dir/$ac_word; then
  5526. ac_cv_path_NETCDF_CONFIG="$ac_dir/$ac_word"
  5527. break
  5528. fi
  5529. done
  5530. IFS="$ac_save_ifs"
  5531. test -z "$ac_cv_path_NETCDF_CONFIG" && ac_cv_path_NETCDF_CONFIG="no"
  5532. ;;
  5533. esac
  5534. NETCDF_CONFIG="$ac_cv_path_NETCDF_CONFIG"
  5535. if test -n "$NETCDF_CONFIG"; then
  5536. echo "$ac_t""$NETCDF_CONFIG" 1>&6
  5537. else
  5538. echo "$ac_t""no" 1>&6
  5539. fi
  5540. if test "$NETCDF_CONFIG" = "no" ; then
  5541. { echo "configure: error: *** couldn't find nc-config" 1>&2; exit 1; }
  5542. fi
  5543. if test "$NETCDF_CONFIG" != "" ; then
  5544. NETCDF_LIBS=`"$NETCDF_CONFIG" --libs`
  5545. NETCDF_CFLAGS=`"$NETCDF_CONFIG" --cflags`
  5546. USE_NETCDF=1
  5547. fi
  5548. NETCDF=
  5549. ac_save_libs="$LIBS"
  5550. ac_save_cflags="$CFLAGS"
  5551. LIBS="$LIBS $NETCDF_LIBS"
  5552. CFLAGS="$CFLAGS $NETCDF_CFLAGS"
  5553. cat > conftest.$ac_ext <<EOF
  5554. #line 6724 "configure"
  5555. #include "confdefs.h"
  5556. #include <netcdf.h>
  5557. int main() {
  5558. nc_create("foo", NC_CLOBBER, NULL);
  5559. ; return 0; }
  5560. EOF
  5561. if { (eval echo configure:6731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5562. :
  5563. else
  5564. echo "configure: failed program was:" >&5
  5565. cat conftest.$ac_ext >&5
  5566. rm -rf conftest*
  5567. cat > conftest.$ac_ext <<EOF
  5568. #line 6739 "configure"
  5569. #include "confdefs.h"
  5570. #include <netcdf.h>
  5571. int main() {
  5572. nc_create("foo", NC_CLOBBER, NULL);
  5573. ; return 0; }
  5574. EOF
  5575. if { (eval echo configure:6746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5576. rm -rf conftest*
  5577. NETCDF_LIBS="$NETCDF_LIBS"
  5578. else
  5579. echo "configure: failed program was:" >&5
  5580. cat conftest.$ac_ext >&5
  5581. rm -rf conftest*
  5582. { echo "configure: error: *** Unable to locate NetCDF library." 1>&2; exit 1; }
  5583. fi
  5584. rm -f conftest*
  5585. fi
  5586. rm -f conftest*
  5587. LIBS=${ac_save_libs}
  5588. CFLAGS=${ac_save_cflags}
  5589. cat >> confdefs.h <<\EOF
  5590. #define HAVE_NETCDF 1
  5591. EOF
  5592. fi
  5593. # GEOS option
  5594. echo $ac_n "checking whether to use GEOS""... $ac_c" 1>&6
  5595. echo "configure:6777: checking whether to use GEOS" >&5
  5596. GEOS_LIBS=
  5597. GEOS_CFLAGS=
  5598. USE_GEOS=
  5599. # FIXME: "quote" $with_geos ?
  5600. if test "`basename xx/$with_geos`" = "geos-config" ; then
  5601. GEOS_CONFIG="$with_geos"
  5602. fi
  5603. if test "$with_geos" = "no" ; then
  5604. echo "$ac_t""no" 1>&6
  5605. else
  5606. echo "$ac_t""yes" 1>&6
  5607. # Extract the first word of "geos-config", so it can be a program name with args.
  5608. set dummy geos-config; ac_word=$2
  5609. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5610. echo "configure:6795: checking for $ac_word" >&5
  5611. case "$GEOS_CONFIG" in
  5612. /*)
  5613. ac_cv_path_GEOS_CONFIG="$GEOS_CONFIG" # Let the user override the test with a path.
  5614. ;;
  5615. ?:/*)
  5616. ac_cv_path_GEOS_CONFIG="$GEOS_CONFIG" # Let the user override the test with a dos path.
  5617. ;;
  5618. *)
  5619. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5620. ac_dummy="$PATH"
  5621. for ac_dir in $ac_dummy; do
  5622. test -z "$ac_dir" && ac_dir=.
  5623. if test -f $ac_dir/$ac_word; then
  5624. ac_cv_path_GEOS_CONFIG="$ac_dir/$ac_word"
  5625. break
  5626. fi
  5627. done
  5628. IFS="$ac_save_ifs"
  5629. test -z "$ac_cv_path_GEOS_CONFIG" && ac_cv_path_GEOS_CONFIG="no"
  5630. ;;
  5631. esac
  5632. GEOS_CONFIG="$ac_cv_path_GEOS_CONFIG"
  5633. if test -n "$GEOS_CONFIG"; then
  5634. echo "$ac_t""$GEOS_CONFIG" 1>&6
  5635. else
  5636. echo "$ac_t""no" 1>&6
  5637. fi
  5638. if test "$GEOS_CONFIG" = "no" ; then
  5639. { echo "configure: error: *** couldn't find geos-config" 1>&2; exit 1; }
  5640. fi
  5641. if test "$GEOS_CONFIG" != "" ; then
  5642. GEOS_LIBS=`"$GEOS_CONFIG" --libs`
  5643. GEOS_CFLAGS=`"$GEOS_CONFIG" --cflags`
  5644. USE_GEOS=1
  5645. fi
  5646. ac_save_cppflags="$CPPFLAGS"
  5647. CPPFLAGS="$GEOS_CFLAGS $CPPFLAGS"
  5648. for ac_hdr in geos_c.h
  5649. do
  5650. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5651. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5652. echo "configure:6843: checking for $ac_hdr" >&5
  5653. cat > conftest.$ac_ext <<EOF
  5654. #line 6846 "configure"
  5655. #include "confdefs.h"
  5656. #include <$ac_hdr>
  5657. EOF
  5658. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5659. { (eval echo configure:6851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5660. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5661. if test -z "$ac_err"; then
  5662. rm -rf conftest*
  5663. eval "ac_cv_header_$ac_safe=yes"
  5664. else
  5665. echo "$ac_err" >&5
  5666. echo "configure: failed program was:" >&5
  5667. cat conftest.$ac_ext >&5
  5668. rm -rf conftest*
  5669. eval "ac_cv_header_$ac_safe=no"
  5670. fi
  5671. rm -f conftest*
  5672. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5673. echo "$ac_t""yes" 1>&6
  5674. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5675. cat >> confdefs.h <<EOF
  5676. #define $ac_tr_hdr 1
  5677. EOF
  5678. else
  5679. echo "$ac_t""no" 1>&6
  5680. { echo "configure: error: *** Unable to locate GEOS includes." 1>&2; exit 1; }
  5681. fi
  5682. done
  5683. CPPFLAGS=$ac_save_cppflags
  5684. ### 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
  5685. # if test "$MINGW32" = yes ; then
  5686. # LOC_CHECK_LIBS(geos_c_i,initGEOS,GEOS,$GEOS_LIBS,GEOS_LIBS)
  5687. # else
  5688. ac_save_ldflags="$LDFLAGS"
  5689. LDFLAGS="$GEOS_LIBS $LDFLAGS"
  5690. echo $ac_n "checking for initGEOS in -lgeos_c""... $ac_c" 1>&6
  5691. echo "configure:6890: checking for initGEOS in -lgeos_c" >&5
  5692. ac_lib_var=`echo geos_c'_'initGEOS | sed 'y%./+-%__p_%'`
  5693. ac_save_LIBS="$LIBS"
  5694. LIBS="-lgeos_c $LIBS"
  5695. cat > conftest.$ac_ext <<EOF
  5696. #line 6896 "configure"
  5697. #include "confdefs.h"
  5698. /* Override any gcc2 internal prototype to avoid an error. */
  5699. /* We use char because int might match the return type of a gcc2
  5700. builtin and then its argument prototype would still apply. */
  5701. char initGEOS();
  5702. int main() {
  5703. initGEOS()
  5704. ; return 0; }
  5705. EOF
  5706. if { (eval echo configure:6907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5707. rm -rf conftest*
  5708. eval "ac_cv_lib_$ac_lib_var=yes"
  5709. else
  5710. echo "configure: failed program was:" >&5
  5711. cat conftest.$ac_ext >&5
  5712. rm -rf conftest*
  5713. eval "ac_cv_lib_$ac_lib_var=no"
  5714. fi
  5715. rm -f conftest*
  5716. LIBS="$ac_save_LIBS"
  5717. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5718. echo "$ac_t""yes" 1>&6
  5719. GEOS_LIBS="$GEOS_LIBS -lgeos_c "
  5720. else
  5721. echo "$ac_t""no" 1>&6
  5722. LDFLAGS=${ac_save_ldflags}
  5723. { echo "configure: error: *** Unable to locate GEOS library." 1>&2; exit 1; }
  5724. fi
  5725. LDFLAGS=${ac_save_ldflags}
  5726. # fi
  5727. cat >> confdefs.h <<\EOF
  5728. #define HAVE_GEOS 1
  5729. EOF
  5730. fi
  5731. # Enable TIFF option
  5732. echo $ac_n "checking whether to use TIFF""... $ac_c" 1>&6
  5733. echo "configure:6951: checking whether to use TIFF" >&5
  5734. echo "$ac_t"""$with_tiff"" 1>&6
  5735. case "$with_tiff" in
  5736. "no") USE_TIFF= ;;
  5737. "yes") USE_TIFF="1" ;;
  5738. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  5739. esac
  5740. TIFF_INCLUDE_DIRS=
  5741. TIFF_LIBRARY_DIRS=
  5742. TIFFLIB=
  5743. if test -n "$USE_TIFF"; then
  5744. # With TIFF includes directory
  5745. echo $ac_n "checking for location of TIFF includes""... $ac_c" 1>&6
  5746. echo "configure:6971: checking for location of TIFF includes" >&5
  5747. case "$with_tiff_includes" in
  5748. y | ye | yes | n | no)
  5749. { echo "configure: error: *** You must supply a directory to --with-tiff-includes." 1>&2; exit 1; }
  5750. ;;
  5751. esac
  5752. echo "$ac_t""$with_tiff_includes" 1>&6
  5753. if test -n "$with_tiff_includes" ; then
  5754. for dir in $with_tiff_includes; do
  5755. if test -d "$dir"; then
  5756. TIFF_INCLUDE_DIRS="$TIFF_INCLUDE_DIRS -I$dir"
  5757. else
  5758. { echo "configure: error: *** TIFF includes directory $dir does not exist." 1>&2; exit 1; }
  5759. fi
  5760. done
  5761. fi
  5762. ac_save_cppflags="$CPPFLAGS"
  5763. CPPFLAGS="$TIFF_INCLUDE_DIRS $CPPFLAGS"
  5764. for ac_hdr in tiffio.h
  5765. do
  5766. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5767. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5768. echo "configure:6997: checking for $ac_hdr" >&5
  5769. cat > conftest.$ac_ext <<EOF
  5770. #line 7000 "configure"
  5771. #include "confdefs.h"
  5772. #include <$ac_hdr>
  5773. EOF
  5774. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5775. { (eval echo configure:7005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5776. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5777. if test -z "$ac_err"; then
  5778. rm -rf conftest*
  5779. eval "ac_cv_header_$ac_safe=yes"
  5780. else
  5781. echo "$ac_err" >&5
  5782. echo "configure: failed program was:" >&5
  5783. cat conftest.$ac_ext >&5
  5784. rm -rf conftest*
  5785. eval "ac_cv_header_$ac_safe=no"
  5786. fi
  5787. rm -f conftest*
  5788. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5789. echo "$ac_t""yes" 1>&6
  5790. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5791. cat >> confdefs.h <<EOF
  5792. #define $ac_tr_hdr 1
  5793. EOF
  5794. else
  5795. echo "$ac_t""no" 1>&6
  5796. { echo "configure: error: *** Unable to locate TIFF includes." 1>&2; exit 1; }
  5797. fi
  5798. done
  5799. CPPFLAGS=$ac_save_cppflags
  5800. # With TIFF library directory
  5801. echo $ac_n "checking for location of TIFF library""... $ac_c" 1>&6
  5802. echo "configure:7039: checking for location of TIFF library" >&5
  5803. case "$with_tiff_libs" in
  5804. y | ye | yes | n | no)
  5805. { echo "configure: error: *** You must supply a directory to --with-tiff-libs." 1>&2; exit 1; }
  5806. ;;
  5807. esac
  5808. echo "$ac_t""$with_tiff_libs" 1>&6
  5809. if test -n "$with_tiff_libs"; then
  5810. for dir in $with_tiff_libs; do
  5811. if test -d "$dir"; then
  5812. TIFF_LIBRARY_DIRS="$TIFF_LIBRARY_DIRS -L$dir"
  5813. else
  5814. { echo "configure: error: *** TIFF library directory $dir does not exist." 1>&2; exit 1; }
  5815. fi
  5816. done
  5817. fi
  5818. ac_save_ldflags="$LDFLAGS"
  5819. LDFLAGS="$TIFF_LIBRARY_DIRS $LDFLAGS"
  5820. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5821. echo "configure:7070: checking for TIFFOpen in -ltiff" >&5
  5822. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5823. ac_save_LIBS="$LIBS"
  5824. LIBS="-ltiff $LIBS"
  5825. cat > conftest.$ac_ext <<EOF
  5826. #line 7076 "configure"
  5827. #include "confdefs.h"
  5828. /* Override any gcc2 internal prototype to avoid an error. */
  5829. /* We use char because int might match the return type of a gcc2
  5830. builtin and then its argument prototype would still apply. */
  5831. char TIFFOpen();
  5832. int main() {
  5833. TIFFOpen()
  5834. ; return 0; }
  5835. EOF
  5836. if { (eval echo configure:7087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5837. rm -rf conftest*
  5838. eval "ac_cv_lib_$ac_lib_var=yes"
  5839. else
  5840. echo "configure: failed program was:" >&5
  5841. cat conftest.$ac_ext >&5
  5842. rm -rf conftest*
  5843. eval "ac_cv_lib_$ac_lib_var=no"
  5844. fi
  5845. rm -f conftest*
  5846. LIBS="$ac_save_LIBS"
  5847. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5848. echo "$ac_t""yes" 1>&6
  5849. TIFFLIB="$TIFFLIB -ltiff "
  5850. else
  5851. echo "$ac_t""no" 1>&6
  5852. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5853. echo "configure:7106: checking for TIFFOpen in -ltiff" >&5
  5854. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5855. ac_save_LIBS="$LIBS"
  5856. LIBS="-ltiff $MATHLIB $LIBS"
  5857. cat > conftest.$ac_ext <<EOF
  5858. #line 7112 "configure"
  5859. #include "confdefs.h"
  5860. /* Override any gcc2 internal prototype to avoid an error. */
  5861. /* We use char because int might match the return type of a gcc2
  5862. builtin and then its argument prototype would still apply. */
  5863. char TIFFOpen();
  5864. int main() {
  5865. TIFFOpen()
  5866. ; return 0; }
  5867. EOF
  5868. if { (eval echo configure:7123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5869. rm -rf conftest*
  5870. eval "ac_cv_lib_$ac_lib_var=yes"
  5871. else
  5872. echo "configure: failed program was:" >&5
  5873. cat conftest.$ac_ext >&5
  5874. rm -rf conftest*
  5875. eval "ac_cv_lib_$ac_lib_var=no"
  5876. fi
  5877. rm -f conftest*
  5878. LIBS="$ac_save_LIBS"
  5879. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5880. echo "$ac_t""yes" 1>&6
  5881. TIFFLIB="$TIFFLIB -ltiff $MATHLIB"
  5882. else
  5883. echo "$ac_t""no" 1>&6
  5884. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5885. echo "configure:7142: checking for TIFFOpen in -ltiff" >&5
  5886. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5887. ac_save_LIBS="$LIBS"
  5888. LIBS="-ltiff $ZLIB $LIBS"
  5889. cat > conftest.$ac_ext <<EOF
  5890. #line 7148 "configure"
  5891. #include "confdefs.h"
  5892. /* Override any gcc2 internal prototype to avoid an error. */
  5893. /* We use char because int might match the return type of a gcc2
  5894. builtin and then its argument prototype would still apply. */
  5895. char TIFFOpen();
  5896. int main() {
  5897. TIFFOpen()
  5898. ; return 0; }
  5899. EOF
  5900. if { (eval echo configure:7159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5901. rm -rf conftest*
  5902. eval "ac_cv_lib_$ac_lib_var=yes"
  5903. else
  5904. echo "configure: failed program was:" >&5
  5905. cat conftest.$ac_ext >&5
  5906. rm -rf conftest*
  5907. eval "ac_cv_lib_$ac_lib_var=no"
  5908. fi
  5909. rm -f conftest*
  5910. LIBS="$ac_save_LIBS"
  5911. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5912. echo "$ac_t""yes" 1>&6
  5913. TIFFLIB="$TIFFLIB -ltiff $ZLIB"
  5914. else
  5915. echo "$ac_t""no" 1>&6
  5916. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5917. echo "configure:7178: checking for TIFFOpen in -ltiff" >&5
  5918. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5919. ac_save_LIBS="$LIBS"
  5920. LIBS="-ltiff $ZLIB $MATHLIB $LIBS"
  5921. cat > conftest.$ac_ext <<EOF
  5922. #line 7184 "configure"
  5923. #include "confdefs.h"
  5924. /* Override any gcc2 internal prototype to avoid an error. */
  5925. /* We use char because int might match the return type of a gcc2
  5926. builtin and then its argument prototype would still apply. */
  5927. char TIFFOpen();
  5928. int main() {
  5929. TIFFOpen()
  5930. ; return 0; }
  5931. EOF
  5932. if { (eval echo configure:7195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5933. rm -rf conftest*
  5934. eval "ac_cv_lib_$ac_lib_var=yes"
  5935. else
  5936. echo "configure: failed program was:" >&5
  5937. cat conftest.$ac_ext >&5
  5938. rm -rf conftest*
  5939. eval "ac_cv_lib_$ac_lib_var=no"
  5940. fi
  5941. rm -f conftest*
  5942. LIBS="$ac_save_LIBS"
  5943. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5944. echo "$ac_t""yes" 1>&6
  5945. TIFFLIB="$TIFFLIB -ltiff $ZLIB $MATHLIB"
  5946. else
  5947. echo "$ac_t""no" 1>&6
  5948. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5949. echo "configure:7214: checking for TIFFOpen in -ltiff" >&5
  5950. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5951. ac_save_LIBS="$LIBS"
  5952. LIBS="-ltiff -ljpeg $LIBS"
  5953. cat > conftest.$ac_ext <<EOF
  5954. #line 7220 "configure"
  5955. #include "confdefs.h"
  5956. /* Override any gcc2 internal prototype to avoid an error. */
  5957. /* We use char because int might match the return type of a gcc2
  5958. builtin and then its argument prototype would still apply. */
  5959. char TIFFOpen();
  5960. int main() {
  5961. TIFFOpen()
  5962. ; return 0; }
  5963. EOF
  5964. if { (eval echo configure:7231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5965. rm -rf conftest*
  5966. eval "ac_cv_lib_$ac_lib_var=yes"
  5967. else
  5968. echo "configure: failed program was:" >&5
  5969. cat conftest.$ac_ext >&5
  5970. rm -rf conftest*
  5971. eval "ac_cv_lib_$ac_lib_var=no"
  5972. fi
  5973. rm -f conftest*
  5974. LIBS="$ac_save_LIBS"
  5975. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5976. echo "$ac_t""yes" 1>&6
  5977. TIFFLIB="$TIFFLIB -ltiff -ljpeg"
  5978. else
  5979. echo "$ac_t""no" 1>&6
  5980. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5981. echo "configure:7250: checking for TIFFOpen in -ltiff" >&5
  5982. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5983. ac_save_LIBS="$LIBS"
  5984. LIBS="-ltiff -ljpeg $MATHLIB $LIBS"
  5985. cat > conftest.$ac_ext <<EOF
  5986. #line 7256 "configure"
  5987. #include "confdefs.h"
  5988. /* Override any gcc2 internal prototype to avoid an error. */
  5989. /* We use char because int might match the return type of a gcc2
  5990. builtin and then its argument prototype would still apply. */
  5991. char TIFFOpen();
  5992. int main() {
  5993. TIFFOpen()
  5994. ; return 0; }
  5995. EOF
  5996. if { (eval echo configure:7267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5997. rm -rf conftest*
  5998. eval "ac_cv_lib_$ac_lib_var=yes"
  5999. else
  6000. echo "configure: failed program was:" >&5
  6001. cat conftest.$ac_ext >&5
  6002. rm -rf conftest*
  6003. eval "ac_cv_lib_$ac_lib_var=no"
  6004. fi
  6005. rm -f conftest*
  6006. LIBS="$ac_save_LIBS"
  6007. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6008. echo "$ac_t""yes" 1>&6
  6009. TIFFLIB="$TIFFLIB -ltiff -ljpeg $MATHLIB"
  6010. else
  6011. echo "$ac_t""no" 1>&6
  6012. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  6013. echo "configure:7286: checking for TIFFOpen in -ltiff" >&5
  6014. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  6015. ac_save_LIBS="$LIBS"
  6016. LIBS="-ltiff -ljpeg $ZLIB $LIBS"
  6017. cat > conftest.$ac_ext <<EOF
  6018. #line 7292 "configure"
  6019. #include "confdefs.h"
  6020. /* Override any gcc2 internal prototype to avoid an error. */
  6021. /* We use char because int might match the return type of a gcc2
  6022. builtin and then its argument prototype would still apply. */
  6023. char TIFFOpen();
  6024. int main() {
  6025. TIFFOpen()
  6026. ; return 0; }
  6027. EOF
  6028. if { (eval echo configure:7303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6029. rm -rf conftest*
  6030. eval "ac_cv_lib_$ac_lib_var=yes"
  6031. else
  6032. echo "configure: failed program was:" >&5
  6033. cat conftest.$ac_ext >&5
  6034. rm -rf conftest*
  6035. eval "ac_cv_lib_$ac_lib_var=no"
  6036. fi
  6037. rm -f conftest*
  6038. LIBS="$ac_save_LIBS"
  6039. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6040. echo "$ac_t""yes" 1>&6
  6041. TIFFLIB="$TIFFLIB -ltiff -ljpeg $ZLIB"
  6042. else
  6043. echo "$ac_t""no" 1>&6
  6044. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  6045. echo "configure:7322: checking for TIFFOpen in -ltiff" >&5
  6046. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  6047. ac_save_LIBS="$LIBS"
  6048. LIBS="-ltiff -ljpeg $ZLIB $MATHLIB $LIBS"
  6049. cat > conftest.$ac_ext <<EOF
  6050. #line 7328 "configure"
  6051. #include "confdefs.h"
  6052. /* Override any gcc2 internal prototype to avoid an error. */
  6053. /* We use char because int might match the return type of a gcc2
  6054. builtin and then its argument prototype would still apply. */
  6055. char TIFFOpen();
  6056. int main() {
  6057. TIFFOpen()
  6058. ; return 0; }
  6059. EOF
  6060. if { (eval echo configure:7339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6061. rm -rf conftest*
  6062. eval "ac_cv_lib_$ac_lib_var=yes"
  6063. else
  6064. echo "configure: failed program was:" >&5
  6065. cat conftest.$ac_ext >&5
  6066. rm -rf conftest*
  6067. eval "ac_cv_lib_$ac_lib_var=no"
  6068. fi
  6069. rm -f conftest*
  6070. LIBS="$ac_save_LIBS"
  6071. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6072. echo "$ac_t""yes" 1>&6
  6073. TIFFLIB="$TIFFLIB -ltiff -ljpeg $ZLIB $MATHLIB"
  6074. else
  6075. echo "$ac_t""no" 1>&6
  6076. LDFLAGS=${ac_save_ldflags}
  6077. { echo "configure: error: *** Unable to locate TIFF library." 1>&2; exit 1; }
  6078. fi
  6079. fi
  6080. fi
  6081. fi
  6082. fi
  6083. fi
  6084. fi
  6085. fi
  6086. LDFLAGS=${ac_save_ldflags}
  6087. fi # $USE_TIFF
  6088. # Done checking TIFF
  6089. # Enable PNG option
  6090. echo $ac_n "checking whether to use PNG""... $ac_c" 1>&6
  6091. echo "configure:7437: checking whether to use PNG" >&5
  6092. echo "$ac_t"""$with_png"" 1>&6
  6093. case "$with_png" in
  6094. "no") USE_PNG= ;;
  6095. "yes") USE_PNG="1" ;;
  6096. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6097. esac
  6098. PNGINC=
  6099. PNGLIB=
  6100. if test -n "$USE_PNG"; then
  6101. # With PNG includes directory
  6102. echo $ac_n "checking for location of PNG includes""... $ac_c" 1>&6
  6103. echo "configure:7456: checking for location of PNG includes" >&5
  6104. case "$with_png_includes" in
  6105. y | ye | yes | n | no)
  6106. { echo "configure: error: *** You must supply a directory to --with-png-includes." 1>&2; exit 1; }
  6107. ;;
  6108. esac
  6109. echo "$ac_t""$with_png_includes" 1>&6
  6110. if test -n "$with_png_includes" ; then
  6111. for dir in $with_png_includes; do
  6112. if test -d "$dir"; then
  6113. PNGINC="$PNGINC -I$dir"
  6114. else
  6115. { echo "configure: error: *** PNG includes directory $dir does not exist." 1>&2; exit 1; }
  6116. fi
  6117. done
  6118. fi
  6119. ac_save_cppflags="$CPPFLAGS"
  6120. CPPFLAGS="$PNGINC $CPPFLAGS"
  6121. for ac_hdr in png.h
  6122. do
  6123. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6124. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6125. echo "configure:7482: checking for $ac_hdr" >&5
  6126. cat > conftest.$ac_ext <<EOF
  6127. #line 7485 "configure"
  6128. #include "confdefs.h"
  6129. #include <$ac_hdr>
  6130. EOF
  6131. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6132. { (eval echo configure:7490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6133. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6134. if test -z "$ac_err"; then
  6135. rm -rf conftest*
  6136. eval "ac_cv_header_$ac_safe=yes"
  6137. else
  6138. echo "$ac_err" >&5
  6139. echo "configure: failed program was:" >&5
  6140. cat conftest.$ac_ext >&5
  6141. rm -rf conftest*
  6142. eval "ac_cv_header_$ac_safe=no"
  6143. fi
  6144. rm -f conftest*
  6145. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6146. echo "$ac_t""yes" 1>&6
  6147. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6148. cat >> confdefs.h <<EOF
  6149. #define $ac_tr_hdr 1
  6150. EOF
  6151. else
  6152. echo "$ac_t""no" 1>&6
  6153. { echo "configure: error: *** Unable to locate PNG includes." 1>&2; exit 1; }
  6154. fi
  6155. done
  6156. CPPFLAGS=$ac_save_cppflags
  6157. # With PNG library directory
  6158. echo $ac_n "checking for location of PNG library""... $ac_c" 1>&6
  6159. echo "configure:7524: checking for location of PNG library" >&5
  6160. case "$with_png_libs" in
  6161. y | ye | yes | n | no)
  6162. { echo "configure: error: *** You must supply a directory to --with-png-libs." 1>&2; exit 1; }
  6163. ;;
  6164. esac
  6165. echo "$ac_t""$with_png_libs" 1>&6
  6166. if test -n "$with_png_libs"; then
  6167. for dir in $with_png_libs; do
  6168. if test -d "$dir"; then
  6169. PNGLIB="$PNGLIB -L$dir"
  6170. else
  6171. { echo "configure: error: *** PNG library directory $dir does not exist." 1>&2; exit 1; }
  6172. fi
  6173. done
  6174. fi
  6175. ac_save_ldflags="$LDFLAGS"
  6176. LDFLAGS="$PNGLIB $LDFLAGS"
  6177. echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
  6178. echo "configure:7549: checking for png_read_image in -lpng" >&5
  6179. ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
  6180. ac_save_LIBS="$LIBS"
  6181. LIBS="-lpng $ZLIB $MATHLIB $LIBS"
  6182. cat > conftest.$ac_ext <<EOF
  6183. #line 7555 "configure"
  6184. #include "confdefs.h"
  6185. /* Override any gcc2 internal prototype to avoid an error. */
  6186. /* We use char because int might match the return type of a gcc2
  6187. builtin and then its argument prototype would still apply. */
  6188. char png_read_image();
  6189. int main() {
  6190. png_read_image()
  6191. ; return 0; }
  6192. EOF
  6193. if { (eval echo configure:7566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6194. rm -rf conftest*
  6195. eval "ac_cv_lib_$ac_lib_var=yes"
  6196. else
  6197. echo "configure: failed program was:" >&5
  6198. cat conftest.$ac_ext >&5
  6199. rm -rf conftest*
  6200. eval "ac_cv_lib_$ac_lib_var=no"
  6201. fi
  6202. rm -f conftest*
  6203. LIBS="$ac_save_LIBS"
  6204. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6205. echo "$ac_t""yes" 1>&6
  6206. PNGLIB="$PNGLIB -lpng $ZLIB $MATHLIB"
  6207. else
  6208. echo "$ac_t""no" 1>&6
  6209. LDFLAGS=${ac_save_ldflags}
  6210. { echo "configure: error: *** Unable to locate PNG library." 1>&2; exit 1; }
  6211. fi
  6212. LDFLAGS=${ac_save_ldflags}
  6213. fi # $USE_PNG
  6214. # Done checking PNG
  6215. # Enable PostgreSQL option
  6216. echo $ac_n "checking whether to use PostgreSQL""... $ac_c" 1>&6
  6217. echo "configure:7608: checking whether to use PostgreSQL" >&5
  6218. echo "$ac_t"""$with_postgres"" 1>&6
  6219. case "$with_postgres" in
  6220. "no") USE_POSTGRES= ;;
  6221. "yes") USE_POSTGRES="1" ;;
  6222. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6223. esac
  6224. if test -n "$USE_POSTGRES"; then
  6225. cat >> confdefs.h <<\EOF
  6226. #define HAVE_POSTGRES 1
  6227. EOF
  6228. fi # $USE_POSTGRES
  6229. PQINCPATH=
  6230. PQLIBPATH=
  6231. PQLIB=
  6232. if test -n "$USE_POSTGRES"; then
  6233. # With PostgreSQL includes directory
  6234. echo $ac_n "checking for location of PostgreSQL includes""... $ac_c" 1>&6
  6235. echo "configure:7635: checking for location of PostgreSQL includes" >&5
  6236. case "$with_postgres_includes" in
  6237. y | ye | yes | n | no)
  6238. { echo "configure: error: *** You must supply a directory to --with-postgres-includes." 1>&2; exit 1; }
  6239. ;;
  6240. esac
  6241. echo "$ac_t""$with_postgres_includes" 1>&6
  6242. if test -n "$with_postgres_includes" ; then
  6243. for dir in $with_postgres_includes; do
  6244. if test -d "$dir"; then
  6245. PQINCPATH="$PQINCPATH -I$dir"
  6246. else
  6247. { echo "configure: error: *** PostgreSQL includes directory $dir does not exist." 1>&2; exit 1; }
  6248. fi
  6249. done
  6250. fi
  6251. ac_save_cppflags="$CPPFLAGS"
  6252. CPPFLAGS="$PQINCPATH $CPPFLAGS"
  6253. for ac_hdr in libpq-fe.h
  6254. do
  6255. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6256. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6257. echo "configure:7661: checking for $ac_hdr" >&5
  6258. cat > conftest.$ac_ext <<EOF
  6259. #line 7664 "configure"
  6260. #include "confdefs.h"
  6261. #include <$ac_hdr>
  6262. EOF
  6263. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6264. { (eval echo configure:7669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6265. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6266. if test -z "$ac_err"; then
  6267. rm -rf conftest*
  6268. eval "ac_cv_header_$ac_safe=yes"
  6269. else
  6270. echo "$ac_err" >&5
  6271. echo "configure: failed program was:" >&5
  6272. cat conftest.$ac_ext >&5
  6273. rm -rf conftest*
  6274. eval "ac_cv_header_$ac_safe=no"
  6275. fi
  6276. rm -f conftest*
  6277. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6278. echo "$ac_t""yes" 1>&6
  6279. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6280. cat >> confdefs.h <<EOF
  6281. #define $ac_tr_hdr 1
  6282. EOF
  6283. else
  6284. echo "$ac_t""no" 1>&6
  6285. { echo "configure: error: *** Unable to locate PostgreSQL includes." 1>&2; exit 1; }
  6286. fi
  6287. done
  6288. CPPFLAGS=$ac_save_cppflags
  6289. fi # $USE_POSTGRES
  6290. if test -n "$USE_POSTGRES"; then
  6291. # With PostgreSQL library directory
  6292. echo $ac_n "checking for location of PostgreSQL library""... $ac_c" 1>&6
  6293. echo "configure:7707: checking for location of PostgreSQL library" >&5
  6294. case "$with_postgres_libs" in
  6295. y | ye | yes | n | no)
  6296. { echo "configure: error: *** You must supply a directory to --with-postgres-libs." 1>&2; exit 1; }
  6297. ;;
  6298. esac
  6299. echo "$ac_t""$with_postgres_libs" 1>&6
  6300. if test -n "$with_postgres_libs"; then
  6301. for dir in $with_postgres_libs; do
  6302. if test -d "$dir"; then
  6303. PQLIBPATH="$PQLIBPATH -L$dir"
  6304. else
  6305. { echo "configure: error: *** PostgreSQL library directory $dir does not exist." 1>&2; exit 1; }
  6306. fi
  6307. done
  6308. fi
  6309. ac_save_ldflags="$LDFLAGS"
  6310. LDFLAGS="$PQLIBPATH $LDFLAGS"
  6311. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6312. echo "configure:7736: checking for PQsetdbLogin in -lpq" >&5
  6313. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6314. ac_save_LIBS="$LIBS"
  6315. LIBS="-lpq $LIBS"
  6316. cat > conftest.$ac_ext <<EOF
  6317. #line 7742 "configure"
  6318. #include "confdefs.h"
  6319. /* Override any gcc2 internal prototype to avoid an error. */
  6320. /* We use char because int might match the return type of a gcc2
  6321. builtin and then its argument prototype would still apply. */
  6322. char PQsetdbLogin();
  6323. int main() {
  6324. PQsetdbLogin()
  6325. ; return 0; }
  6326. EOF
  6327. if { (eval echo configure:7753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6328. rm -rf conftest*
  6329. eval "ac_cv_lib_$ac_lib_var=yes"
  6330. else
  6331. echo "configure: failed program was:" >&5
  6332. cat conftest.$ac_ext >&5
  6333. rm -rf conftest*
  6334. eval "ac_cv_lib_$ac_lib_var=no"
  6335. fi
  6336. rm -f conftest*
  6337. LIBS="$ac_save_LIBS"
  6338. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6339. echo "$ac_t""yes" 1>&6
  6340. PQLIB="$PQLIB -lpq "
  6341. else
  6342. echo "$ac_t""no" 1>&6
  6343. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6344. echo "configure:7772: checking for PQsetdbLogin in -lpq" >&5
  6345. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6346. ac_save_LIBS="$LIBS"
  6347. LIBS="-lpq -lssl -lcrypto $LIBS"
  6348. cat > conftest.$ac_ext <<EOF
  6349. #line 7778 "configure"
  6350. #include "confdefs.h"
  6351. /* Override any gcc2 internal prototype to avoid an error. */
  6352. /* We use char because int might match the return type of a gcc2
  6353. builtin and then its argument prototype would still apply. */
  6354. char PQsetdbLogin();
  6355. int main() {
  6356. PQsetdbLogin()
  6357. ; return 0; }
  6358. EOF
  6359. if { (eval echo configure:7789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6360. rm -rf conftest*
  6361. eval "ac_cv_lib_$ac_lib_var=yes"
  6362. else
  6363. echo "configure: failed program was:" >&5
  6364. cat conftest.$ac_ext >&5
  6365. rm -rf conftest*
  6366. eval "ac_cv_lib_$ac_lib_var=no"
  6367. fi
  6368. rm -f conftest*
  6369. LIBS="$ac_save_LIBS"
  6370. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6371. echo "$ac_t""yes" 1>&6
  6372. PQLIB="$PQLIB -lpq -lssl -lcrypto"
  6373. else
  6374. echo "$ac_t""no" 1>&6
  6375. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6376. echo "configure:7808: checking for PQsetdbLogin in -lpq" >&5
  6377. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6378. ac_save_LIBS="$LIBS"
  6379. LIBS="-lpq -lcrypt $LIBS"
  6380. cat > conftest.$ac_ext <<EOF
  6381. #line 7814 "configure"
  6382. #include "confdefs.h"
  6383. /* Override any gcc2 internal prototype to avoid an error. */
  6384. /* We use char because int might match the return type of a gcc2
  6385. builtin and then its argument prototype would still apply. */
  6386. char PQsetdbLogin();
  6387. int main() {
  6388. PQsetdbLogin()
  6389. ; return 0; }
  6390. EOF
  6391. if { (eval echo configure:7825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6392. rm -rf conftest*
  6393. eval "ac_cv_lib_$ac_lib_var=yes"
  6394. else
  6395. echo "configure: failed program was:" >&5
  6396. cat conftest.$ac_ext >&5
  6397. rm -rf conftest*
  6398. eval "ac_cv_lib_$ac_lib_var=no"
  6399. fi
  6400. rm -f conftest*
  6401. LIBS="$ac_save_LIBS"
  6402. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6403. echo "$ac_t""yes" 1>&6
  6404. PQLIB="$PQLIB -lpq -lcrypt"
  6405. else
  6406. echo "$ac_t""no" 1>&6
  6407. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6408. echo "configure:7844: checking for PQsetdbLogin in -lpq" >&5
  6409. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6410. ac_save_LIBS="$LIBS"
  6411. LIBS="-lpq -lcrypt -lssl -lcrypto $LIBS"
  6412. cat > conftest.$ac_ext <<EOF
  6413. #line 7850 "configure"
  6414. #include "confdefs.h"
  6415. /* Override any gcc2 internal prototype to avoid an error. */
  6416. /* We use char because int might match the return type of a gcc2
  6417. builtin and then its argument prototype would still apply. */
  6418. char PQsetdbLogin();
  6419. int main() {
  6420. PQsetdbLogin()
  6421. ; return 0; }
  6422. EOF
  6423. if { (eval echo configure:7861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6424. rm -rf conftest*
  6425. eval "ac_cv_lib_$ac_lib_var=yes"
  6426. else
  6427. echo "configure: failed program was:" >&5
  6428. cat conftest.$ac_ext >&5
  6429. rm -rf conftest*
  6430. eval "ac_cv_lib_$ac_lib_var=no"
  6431. fi
  6432. rm -f conftest*
  6433. LIBS="$ac_save_LIBS"
  6434. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6435. echo "$ac_t""yes" 1>&6
  6436. PQLIB="$PQLIB -lpq -lcrypt -lssl -lcrypto"
  6437. else
  6438. echo "$ac_t""no" 1>&6
  6439. LDFLAGS=${ac_save_ldflags}
  6440. { echo "configure: error: *** Unable to locate PostgreSQL library." 1>&2; exit 1; }
  6441. fi
  6442. fi
  6443. fi
  6444. fi
  6445. LDFLAGS=${ac_save_ldflags}
  6446. ac_save_ldflags="$LDFLAGS"
  6447. LDFLAGS="$LDFLAGS $PQLIBPATH"
  6448. echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
  6449. echo "configure:7918: checking for PQcmdTuples in -lpq" >&5
  6450. ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
  6451. ac_save_LIBS="$LIBS"
  6452. LIBS="-lpq $LIBS"
  6453. cat > conftest.$ac_ext <<EOF
  6454. #line 7924 "configure"
  6455. #include "confdefs.h"
  6456. /* Override any gcc2 internal prototype to avoid an error. */
  6457. /* We use char because int might match the return type of a gcc2
  6458. builtin and then its argument prototype would still apply. */
  6459. char PQcmdTuples();
  6460. int main() {
  6461. PQcmdTuples()
  6462. ; return 0; }
  6463. EOF
  6464. if { (eval echo configure:7935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6465. rm -rf conftest*
  6466. eval "ac_cv_lib_$ac_lib_var=yes"
  6467. else
  6468. echo "configure: failed program was:" >&5
  6469. cat conftest.$ac_ext >&5
  6470. rm -rf conftest*
  6471. eval "ac_cv_lib_$ac_lib_var=no"
  6472. fi
  6473. rm -f conftest*
  6474. LIBS="$ac_save_LIBS"
  6475. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6476. echo "$ac_t""yes" 1>&6
  6477. cat >> confdefs.h <<\EOF
  6478. #define HAVE_PQCMDTUPLES 1
  6479. EOF
  6480. else
  6481. echo "$ac_t""no" 1>&6
  6482. echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
  6483. echo "configure:7957: checking for PQcmdTuples in -lpq" >&5
  6484. ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
  6485. ac_save_LIBS="$LIBS"
  6486. LIBS="-lpq -lcrypt $LIBS"
  6487. cat > conftest.$ac_ext <<EOF
  6488. #line 7963 "configure"
  6489. #include "confdefs.h"
  6490. /* Override any gcc2 internal prototype to avoid an error. */
  6491. /* We use char because int might match the return type of a gcc2
  6492. builtin and then its argument prototype would still apply. */
  6493. char PQcmdTuples();
  6494. int main() {
  6495. PQcmdTuples()
  6496. ; return 0; }
  6497. EOF
  6498. if { (eval echo configure:7974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6499. rm -rf conftest*
  6500. eval "ac_cv_lib_$ac_lib_var=yes"
  6501. else
  6502. echo "configure: failed program was:" >&5
  6503. cat conftest.$ac_ext >&5
  6504. rm -rf conftest*
  6505. eval "ac_cv_lib_$ac_lib_var=no"
  6506. fi
  6507. rm -f conftest*
  6508. LIBS="$ac_save_LIBS"
  6509. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6510. echo "$ac_t""yes" 1>&6
  6511. cat >> confdefs.h <<\EOF
  6512. #define HAVE_PQCMDTUPLES 1
  6513. EOF
  6514. else
  6515. echo "$ac_t""no" 1>&6
  6516. fi
  6517. fi
  6518. LDFLAGS="${ac_save_ldflags}"
  6519. fi # $USE_POSTGRES
  6520. # Done checking PostgreSQL
  6521. # Enable MySQL option
  6522. echo $ac_n "checking whether to use MySQL""... $ac_c" 1>&6
  6523. echo "configure:8017: checking whether to use MySQL" >&5
  6524. echo "$ac_t"""$with_mysql"" 1>&6
  6525. case "$with_mysql" in
  6526. "no") USE_MYSQL= ;;
  6527. "yes") USE_MYSQL="1" ;;
  6528. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6529. esac
  6530. MYSQLINCPATH=
  6531. MYSQLLIBPATH=
  6532. MYSQLLIB=
  6533. if test -n "$USE_MYSQL"; then
  6534. # With MySQL includes directory
  6535. echo $ac_n "checking for location of MySQL includes""... $ac_c" 1>&6
  6536. echo "configure:8037: checking for location of MySQL includes" >&5
  6537. case "$with_mysql_includes" in
  6538. y | ye | yes | n | no)
  6539. { echo "configure: error: *** You must supply a directory to --with-mysql-includes." 1>&2; exit 1; }
  6540. ;;
  6541. esac
  6542. echo "$ac_t""$with_mysql_includes" 1>&6
  6543. if test -n "$with_mysql_includes" ; then
  6544. for dir in $with_mysql_includes; do
  6545. if test -d "$dir"; then
  6546. MYSQLINCPATH="$MYSQLINCPATH -I$dir"
  6547. else
  6548. { echo "configure: error: *** MySQL includes directory $dir does not exist." 1>&2; exit 1; }
  6549. fi
  6550. done
  6551. fi
  6552. ac_save_cppflags="$CPPFLAGS"
  6553. CPPFLAGS="$MYSQLINCPATH $CPPFLAGS"
  6554. for ac_hdr in mysql.h
  6555. do
  6556. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6557. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6558. echo "configure:8063: checking for $ac_hdr" >&5
  6559. cat > conftest.$ac_ext <<EOF
  6560. #line 8066 "configure"
  6561. #include "confdefs.h"
  6562. #include <$ac_hdr>
  6563. EOF
  6564. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6565. { (eval echo configure:8071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6566. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6567. if test -z "$ac_err"; then
  6568. rm -rf conftest*
  6569. eval "ac_cv_header_$ac_safe=yes"
  6570. else
  6571. echo "$ac_err" >&5
  6572. echo "configure: failed program was:" >&5
  6573. cat conftest.$ac_ext >&5
  6574. rm -rf conftest*
  6575. eval "ac_cv_header_$ac_safe=no"
  6576. fi
  6577. rm -f conftest*
  6578. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6579. echo "$ac_t""yes" 1>&6
  6580. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6581. cat >> confdefs.h <<EOF
  6582. #define $ac_tr_hdr 1
  6583. EOF
  6584. else
  6585. echo "$ac_t""no" 1>&6
  6586. { echo "configure: error: *** Unable to locate MySQL includes." 1>&2; exit 1; }
  6587. fi
  6588. done
  6589. CPPFLAGS=$ac_save_cppflags
  6590. fi # $USE_MYSQL
  6591. if test -n "$USE_MYSQL"; then
  6592. # With MySQL library directory
  6593. echo $ac_n "checking for location of MySQL library""... $ac_c" 1>&6
  6594. echo "configure:8108: checking for location of MySQL library" >&5
  6595. case "$with_mysql_libs" in
  6596. y | ye | yes | n | no)
  6597. { echo "configure: error: *** You must supply a directory to --with-mysql-libs." 1>&2; exit 1; }
  6598. ;;
  6599. esac
  6600. echo "$ac_t""$with_mysql_libs" 1>&6
  6601. if test -n "$with_mysql_libs"; then
  6602. for dir in $with_mysql_libs; do
  6603. if test -d "$dir"; then
  6604. MYSQLLIBPATH="$MYSQLLIBPATH -L$dir"
  6605. else
  6606. { echo "configure: error: *** MySQL library directory $dir does not exist." 1>&2; exit 1; }
  6607. fi
  6608. done
  6609. fi
  6610. ac_save_ldflags="$LDFLAGS"
  6611. LDFLAGS="$MYSQLLIBPATH $LDFLAGS"
  6612. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6613. echo "configure:8139: checking for mysql_query in -lmysqlclient" >&5
  6614. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6615. ac_save_LIBS="$LIBS"
  6616. LIBS="-lmysqlclient $LIBS"
  6617. cat > conftest.$ac_ext <<EOF
  6618. #line 8145 "configure"
  6619. #include "confdefs.h"
  6620. /* Override any gcc2 internal prototype to avoid an error. */
  6621. /* We use char because int might match the return type of a gcc2
  6622. builtin and then its argument prototype would still apply. */
  6623. char mysql_query();
  6624. int main() {
  6625. mysql_query()
  6626. ; return 0; }
  6627. EOF
  6628. if { (eval echo configure:8156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6629. rm -rf conftest*
  6630. eval "ac_cv_lib_$ac_lib_var=yes"
  6631. else
  6632. echo "configure: failed program was:" >&5
  6633. cat conftest.$ac_ext >&5
  6634. rm -rf conftest*
  6635. eval "ac_cv_lib_$ac_lib_var=no"
  6636. fi
  6637. rm -f conftest*
  6638. LIBS="$ac_save_LIBS"
  6639. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6640. echo "$ac_t""yes" 1>&6
  6641. MYSQLLIB="$MYSQLLIB -lmysqlclient "
  6642. else
  6643. echo "$ac_t""no" 1>&6
  6644. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6645. echo "configure:8175: checking for mysql_query in -lmysqlclient" >&5
  6646. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6647. ac_save_LIBS="$LIBS"
  6648. LIBS="-lmysqlclient $MATHLIB $LIBS"
  6649. cat > conftest.$ac_ext <<EOF
  6650. #line 8181 "configure"
  6651. #include "confdefs.h"
  6652. /* Override any gcc2 internal prototype to avoid an error. */
  6653. /* We use char because int might match the return type of a gcc2
  6654. builtin and then its argument prototype would still apply. */
  6655. char mysql_query();
  6656. int main() {
  6657. mysql_query()
  6658. ; return 0; }
  6659. EOF
  6660. if { (eval echo configure:8192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6661. rm -rf conftest*
  6662. eval "ac_cv_lib_$ac_lib_var=yes"
  6663. else
  6664. echo "configure: failed program was:" >&5
  6665. cat conftest.$ac_ext >&5
  6666. rm -rf conftest*
  6667. eval "ac_cv_lib_$ac_lib_var=no"
  6668. fi
  6669. rm -f conftest*
  6670. LIBS="$ac_save_LIBS"
  6671. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6672. echo "$ac_t""yes" 1>&6
  6673. MYSQLLIB="$MYSQLLIB -lmysqlclient $MATHLIB"
  6674. else
  6675. echo "$ac_t""no" 1>&6
  6676. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6677. echo "configure:8211: checking for mysql_query in -lmysqlclient" >&5
  6678. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6679. ac_save_LIBS="$LIBS"
  6680. LIBS="-lmysqlclient $SOCKLIB $LIBS"
  6681. cat > conftest.$ac_ext <<EOF
  6682. #line 8217 "configure"
  6683. #include "confdefs.h"
  6684. /* Override any gcc2 internal prototype to avoid an error. */
  6685. /* We use char because int might match the return type of a gcc2
  6686. builtin and then its argument prototype would still apply. */
  6687. char mysql_query();
  6688. int main() {
  6689. mysql_query()
  6690. ; return 0; }
  6691. EOF
  6692. if { (eval echo configure:8228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6693. rm -rf conftest*
  6694. eval "ac_cv_lib_$ac_lib_var=yes"
  6695. else
  6696. echo "configure: failed program was:" >&5
  6697. cat conftest.$ac_ext >&5
  6698. rm -rf conftest*
  6699. eval "ac_cv_lib_$ac_lib_var=no"
  6700. fi
  6701. rm -f conftest*
  6702. LIBS="$ac_save_LIBS"
  6703. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6704. echo "$ac_t""yes" 1>&6
  6705. MYSQLLIB="$MYSQLLIB -lmysqlclient $SOCKLIB"
  6706. else
  6707. echo "$ac_t""no" 1>&6
  6708. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6709. echo "configure:8247: checking for mysql_query in -lmysqlclient" >&5
  6710. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6711. ac_save_LIBS="$LIBS"
  6712. LIBS="-lmysqlclient $SOCKLIB $MATHLIB $LIBS"
  6713. cat > conftest.$ac_ext <<EOF
  6714. #line 8253 "configure"
  6715. #include "confdefs.h"
  6716. /* Override any gcc2 internal prototype to avoid an error. */
  6717. /* We use char because int might match the return type of a gcc2
  6718. builtin and then its argument prototype would still apply. */
  6719. char mysql_query();
  6720. int main() {
  6721. mysql_query()
  6722. ; return 0; }
  6723. EOF
  6724. if { (eval echo configure:8264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6725. rm -rf conftest*
  6726. eval "ac_cv_lib_$ac_lib_var=yes"
  6727. else
  6728. echo "configure: failed program was:" >&5
  6729. cat conftest.$ac_ext >&5
  6730. rm -rf conftest*
  6731. eval "ac_cv_lib_$ac_lib_var=no"
  6732. fi
  6733. rm -f conftest*
  6734. LIBS="$ac_save_LIBS"
  6735. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6736. echo "$ac_t""yes" 1>&6
  6737. MYSQLLIB="$MYSQLLIB -lmysqlclient $SOCKLIB $MATHLIB"
  6738. else
  6739. echo "$ac_t""no" 1>&6
  6740. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6741. echo "configure:8283: checking for mysql_query in -lmysqlclient" >&5
  6742. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6743. ac_save_LIBS="$LIBS"
  6744. LIBS="-lmysqlclient $ZLIB $LIBS"
  6745. cat > conftest.$ac_ext <<EOF
  6746. #line 8289 "configure"
  6747. #include "confdefs.h"
  6748. /* Override any gcc2 internal prototype to avoid an error. */
  6749. /* We use char because int might match the return type of a gcc2
  6750. builtin and then its argument prototype would still apply. */
  6751. char mysql_query();
  6752. int main() {
  6753. mysql_query()
  6754. ; return 0; }
  6755. EOF
  6756. if { (eval echo configure:8300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6757. rm -rf conftest*
  6758. eval "ac_cv_lib_$ac_lib_var=yes"
  6759. else
  6760. echo "configure: failed program was:" >&5
  6761. cat conftest.$ac_ext >&5
  6762. rm -rf conftest*
  6763. eval "ac_cv_lib_$ac_lib_var=no"
  6764. fi
  6765. rm -f conftest*
  6766. LIBS="$ac_save_LIBS"
  6767. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6768. echo "$ac_t""yes" 1>&6
  6769. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB"
  6770. else
  6771. echo "$ac_t""no" 1>&6
  6772. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6773. echo "configure:8319: checking for mysql_query in -lmysqlclient" >&5
  6774. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6775. ac_save_LIBS="$LIBS"
  6776. LIBS="-lmysqlclient $ZLIB $MATHLIB $LIBS"
  6777. cat > conftest.$ac_ext <<EOF
  6778. #line 8325 "configure"
  6779. #include "confdefs.h"
  6780. /* Override any gcc2 internal prototype to avoid an error. */
  6781. /* We use char because int might match the return type of a gcc2
  6782. builtin and then its argument prototype would still apply. */
  6783. char mysql_query();
  6784. int main() {
  6785. mysql_query()
  6786. ; return 0; }
  6787. EOF
  6788. if { (eval echo configure:8336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6789. rm -rf conftest*
  6790. eval "ac_cv_lib_$ac_lib_var=yes"
  6791. else
  6792. echo "configure: failed program was:" >&5
  6793. cat conftest.$ac_ext >&5
  6794. rm -rf conftest*
  6795. eval "ac_cv_lib_$ac_lib_var=no"
  6796. fi
  6797. rm -f conftest*
  6798. LIBS="$ac_save_LIBS"
  6799. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6800. echo "$ac_t""yes" 1>&6
  6801. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $MATHLIB"
  6802. else
  6803. echo "$ac_t""no" 1>&6
  6804. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6805. echo "configure:8355: checking for mysql_query in -lmysqlclient" >&5
  6806. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6807. ac_save_LIBS="$LIBS"
  6808. LIBS="-lmysqlclient $ZLIB $SOCKLIB $LIBS"
  6809. cat > conftest.$ac_ext <<EOF
  6810. #line 8361 "configure"
  6811. #include "confdefs.h"
  6812. /* Override any gcc2 internal prototype to avoid an error. */
  6813. /* We use char because int might match the return type of a gcc2
  6814. builtin and then its argument prototype would still apply. */
  6815. char mysql_query();
  6816. int main() {
  6817. mysql_query()
  6818. ; return 0; }
  6819. EOF
  6820. if { (eval echo configure:8372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6821. rm -rf conftest*
  6822. eval "ac_cv_lib_$ac_lib_var=yes"
  6823. else
  6824. echo "configure: failed program was:" >&5
  6825. cat conftest.$ac_ext >&5
  6826. rm -rf conftest*
  6827. eval "ac_cv_lib_$ac_lib_var=no"
  6828. fi
  6829. rm -f conftest*
  6830. LIBS="$ac_save_LIBS"
  6831. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6832. echo "$ac_t""yes" 1>&6
  6833. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $SOCKLIB"
  6834. else
  6835. echo "$ac_t""no" 1>&6
  6836. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6837. echo "configure:8391: checking for mysql_query in -lmysqlclient" >&5
  6838. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6839. ac_save_LIBS="$LIBS"
  6840. LIBS="-lmysqlclient $ZLIB $SOCKLIB $MATHLIB $LIBS"
  6841. cat > conftest.$ac_ext <<EOF
  6842. #line 8397 "configure"
  6843. #include "confdefs.h"
  6844. /* Override any gcc2 internal prototype to avoid an error. */
  6845. /* We use char because int might match the return type of a gcc2
  6846. builtin and then its argument prototype would still apply. */
  6847. char mysql_query();
  6848. int main() {
  6849. mysql_query()
  6850. ; return 0; }
  6851. EOF
  6852. if { (eval echo configure:8408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6853. rm -rf conftest*
  6854. eval "ac_cv_lib_$ac_lib_var=yes"
  6855. else
  6856. echo "configure: failed program was:" >&5
  6857. cat conftest.$ac_ext >&5
  6858. rm -rf conftest*
  6859. eval "ac_cv_lib_$ac_lib_var=no"
  6860. fi
  6861. rm -f conftest*
  6862. LIBS="$ac_save_LIBS"
  6863. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6864. echo "$ac_t""yes" 1>&6
  6865. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $SOCKLIB $MATHLIB"
  6866. else
  6867. echo "$ac_t""no" 1>&6
  6868. LDFLAGS=${ac_save_ldflags}
  6869. { echo "configure: error: *** Unable to locate MySQL library." 1>&2; exit 1; }
  6870. fi
  6871. fi
  6872. fi
  6873. fi
  6874. fi
  6875. fi
  6876. fi
  6877. fi
  6878. LDFLAGS=${ac_save_ldflags}
  6879. # Check for libmysqld (for embeded version of the driver)
  6880. # Extract the first word of "mysql_config", so it can be a program name with args.
  6881. set dummy mysql_config; ac_word=$2
  6882. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  6883. echo "configure:8498: checking for $ac_word" >&5
  6884. case "$MYSQLD_CONFIG" in
  6885. /*)
  6886. ac_cv_path_MYSQLD_CONFIG="$MYSQLD_CONFIG" # Let the user override the test with a path.
  6887. ;;
  6888. ?:/*)
  6889. ac_cv_path_MYSQLD_CONFIG="$MYSQLD_CONFIG" # Let the user override the test with a dos path.
  6890. ;;
  6891. *)
  6892. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  6893. ac_dummy="$PATH"
  6894. for ac_dir in $ac_dummy; do
  6895. test -z "$ac_dir" && ac_dir=.
  6896. if test -f $ac_dir/$ac_word; then
  6897. ac_cv_path_MYSQLD_CONFIG="$ac_dir/$ac_word"
  6898. break
  6899. fi
  6900. done
  6901. IFS="$ac_save_ifs"
  6902. test -z "$ac_cv_path_MYSQLD_CONFIG" && ac_cv_path_MYSQLD_CONFIG="no"
  6903. ;;
  6904. esac
  6905. MYSQLD_CONFIG="$ac_cv_path_MYSQLD_CONFIG"
  6906. if test -n "$MYSQLD_CONFIG"; then
  6907. echo "$ac_t""$MYSQLD_CONFIG" 1>&6
  6908. else
  6909. echo "$ac_t""no" 1>&6
  6910. fi
  6911. if test "$MYSQLD_CONFIG" = "no" ; then
  6912. { echo "configure: error: *** couldn't find mysql_config" 1>&2; exit 1; }
  6913. fi
  6914. if test "$MYSQLD_CONFIG" != "" ; then
  6915. ac_ext=C
  6916. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6917. ac_cpp='$CXXCPP $CPPFLAGS'
  6918. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6919. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6920. cross_compiling=$ac_cv_prog_cxx_cross
  6921. ac_save_libs="$LIBS"
  6922. MYSQLDLIB=`"$MYSQLD_CONFIG" --libmysqld-libs`
  6923. LIBS="$MYSQLDLIB $LIBS"
  6924. echo $ac_n "checking for mysql_server_init""... $ac_c" 1>&6
  6925. echo "configure:8547: checking for mysql_server_init" >&5
  6926. cat > conftest.$ac_ext <<EOF
  6927. #line 8550 "configure"
  6928. #include "confdefs.h"
  6929. /* System header to define __stub macros and hopefully few prototypes,
  6930. which can conflict with char mysql_server_init(); below. */
  6931. #include <assert.h>
  6932. /* Override any gcc2 internal prototype to avoid an error. */
  6933. #ifdef __cplusplus
  6934. extern "C"
  6935. #endif
  6936. /* We use char because int might match the return type of a gcc2
  6937. builtin and then its argument prototype would still apply. */
  6938. char mysql_server_init();
  6939. int main() {
  6940. /* The GNU C library defines this for functions which it implements
  6941. to always fail with ENOSYS. Some functions are actually named
  6942. something starting with __ and the normal name is an alias. */
  6943. #if defined (__stub_mysql_server_init) || defined (__stub___mysql_server_init)
  6944. choke me
  6945. #else
  6946. mysql_server_init();
  6947. #endif
  6948. ; return 0; }
  6949. EOF
  6950. if { (eval echo configure:8576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6951. rm -rf conftest*
  6952. eval "ac_cv_func_mysql_server_init=yes"
  6953. else
  6954. echo "configure: failed program was:" >&5
  6955. cat conftest.$ac_ext >&5
  6956. rm -rf conftest*
  6957. eval "ac_cv_func_mysql_server_init=no"
  6958. fi
  6959. rm -f conftest*
  6960. if eval "test \"`echo '$ac_cv_func_'mysql_server_init`\" = yes"; then
  6961. echo "$ac_t""yes" 1>&6
  6962. :
  6963. else
  6964. echo "$ac_t""no" 1>&6
  6965. MYSQLDLIB="";
  6966. echo "configure: warning: libmysqld not found" 1>&2
  6967. fi
  6968. LIBS=$ac_save_libs
  6969. ac_ext=c
  6970. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6971. ac_cpp='$CPP $CPPFLAGS'
  6972. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6973. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6974. cross_compiling=$ac_cv_prog_cc_cross
  6975. ac_ext=c
  6976. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6977. ac_cpp='$CPP $CPPFLAGS'
  6978. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6979. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6980. cross_compiling=$ac_cv_prog_cc_cross
  6981. fi
  6982. fi # $USE_MYSQL
  6983. # Done checking MySQL
  6984. # Enable SQLite option
  6985. echo $ac_n "checking whether to use SQLite""... $ac_c" 1>&6
  6986. echo "configure:8628: checking whether to use SQLite" >&5
  6987. echo "$ac_t"""$with_sqlite"" 1>&6
  6988. case "$with_sqlite" in
  6989. "no") USE_SQLITE= ;;
  6990. "yes") USE_SQLITE="1" ;;
  6991. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6992. esac
  6993. SQLITEINCPATH=
  6994. SQLITELIBPATH=
  6995. SQLITELIB=
  6996. if test -n "$USE_SQLITE"; then
  6997. # With SQLite includes directory
  6998. echo $ac_n "checking for location of SQLite includes""... $ac_c" 1>&6
  6999. echo "configure:8648: checking for location of SQLite includes" >&5
  7000. case "$with_sqlite_includes" in
  7001. y | ye | yes | n | no)
  7002. { echo "configure: error: *** You must supply a directory to --with-sqlite-includes." 1>&2; exit 1; }
  7003. ;;
  7004. esac
  7005. echo "$ac_t""$with_sqlite_includes" 1>&6
  7006. if test -n "$with_sqlite_includes" ; then
  7007. for dir in $with_sqlite_includes; do
  7008. if test -d "$dir"; then
  7009. SQLITEINCPATH="$SQLITEINCPATH -I$dir"
  7010. else
  7011. { echo "configure: error: *** SQLite includes directory $dir does not exist." 1>&2; exit 1; }
  7012. fi
  7013. done
  7014. fi
  7015. ac_save_cppflags="$CPPFLAGS"
  7016. CPPFLAGS="$SQLITEINCPATH $CPPFLAGS"
  7017. for ac_hdr in sqlite3.h
  7018. do
  7019. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7020. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7021. echo "configure:8674: checking for $ac_hdr" >&5
  7022. cat > conftest.$ac_ext <<EOF
  7023. #line 8677 "configure"
  7024. #include "confdefs.h"
  7025. #include <$ac_hdr>
  7026. EOF
  7027. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7028. { (eval echo configure:8682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7029. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7030. if test -z "$ac_err"; then
  7031. rm -rf conftest*
  7032. eval "ac_cv_header_$ac_safe=yes"
  7033. else
  7034. echo "$ac_err" >&5
  7035. echo "configure: failed program was:" >&5
  7036. cat conftest.$ac_ext >&5
  7037. rm -rf conftest*
  7038. eval "ac_cv_header_$ac_safe=no"
  7039. fi
  7040. rm -f conftest*
  7041. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7042. echo "$ac_t""yes" 1>&6
  7043. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7044. cat >> confdefs.h <<EOF
  7045. #define $ac_tr_hdr 1
  7046. EOF
  7047. else
  7048. echo "$ac_t""no" 1>&6
  7049. { echo "configure: error: *** Unable to locate SQLite includes." 1>&2; exit 1; }
  7050. fi
  7051. done
  7052. CPPFLAGS=$ac_save_cppflags
  7053. cat >> confdefs.h <<\EOF
  7054. #define HAVE_SQLITE 1
  7055. EOF
  7056. fi # $USE_SQLITE
  7057. if test -n "$USE_SQLITE"; then
  7058. # With SQLite library directory
  7059. echo $ac_n "checking for location of SQLite library""... $ac_c" 1>&6
  7060. echo "configure:8725: checking for location of SQLite library" >&5
  7061. case "$with_sqlite_libs" in
  7062. y | ye | yes | n | no)
  7063. { echo "configure: error: *** You must supply a directory to --with-sqlite-libs." 1>&2; exit 1; }
  7064. ;;
  7065. esac
  7066. echo "$ac_t""$with_sqlite_libs" 1>&6
  7067. if test -n "$with_sqlite_libs"; then
  7068. for dir in $with_sqlite_libs; do
  7069. if test -d "$dir"; then
  7070. SQLITELIBPATH="$SQLITELIBPATH -L$dir"
  7071. else
  7072. { echo "configure: error: *** SQLite library directory $dir does not exist." 1>&2; exit 1; }
  7073. fi
  7074. done
  7075. fi
  7076. ac_save_ldflags="$LDFLAGS"
  7077. LDFLAGS="$SQLITELIBPATH $LDFLAGS"
  7078. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  7079. echo "configure:8754: checking for sqlite3_open in -lsqlite3" >&5
  7080. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  7081. ac_save_LIBS="$LIBS"
  7082. LIBS="-lsqlite3 $LIBS"
  7083. cat > conftest.$ac_ext <<EOF
  7084. #line 8760 "configure"
  7085. #include "confdefs.h"
  7086. /* Override any gcc2 internal prototype to avoid an error. */
  7087. /* We use char because int might match the return type of a gcc2
  7088. builtin and then its argument prototype would still apply. */
  7089. char sqlite3_open();
  7090. int main() {
  7091. sqlite3_open()
  7092. ; return 0; }
  7093. EOF
  7094. if { (eval echo configure:8771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7095. rm -rf conftest*
  7096. eval "ac_cv_lib_$ac_lib_var=yes"
  7097. else
  7098. echo "configure: failed program was:" >&5
  7099. cat conftest.$ac_ext >&5
  7100. rm -rf conftest*
  7101. eval "ac_cv_lib_$ac_lib_var=no"
  7102. fi
  7103. rm -f conftest*
  7104. LIBS="$ac_save_LIBS"
  7105. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7106. echo "$ac_t""yes" 1>&6
  7107. SQLITELIB="$SQLITELIB -lsqlite3 "
  7108. else
  7109. echo "$ac_t""no" 1>&6
  7110. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  7111. echo "configure:8790: checking for sqlite3_open in -lsqlite3" >&5
  7112. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  7113. ac_save_LIBS="$LIBS"
  7114. LIBS="-lsqlite3 $DLLIB $LIBS"
  7115. cat > conftest.$ac_ext <<EOF
  7116. #line 8796 "configure"
  7117. #include "confdefs.h"
  7118. /* Override any gcc2 internal prototype to avoid an error. */
  7119. /* We use char because int might match the return type of a gcc2
  7120. builtin and then its argument prototype would still apply. */
  7121. char sqlite3_open();
  7122. int main() {
  7123. sqlite3_open()
  7124. ; return 0; }
  7125. EOF
  7126. if { (eval echo configure:8807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7127. rm -rf conftest*
  7128. eval "ac_cv_lib_$ac_lib_var=yes"
  7129. else
  7130. echo "configure: failed program was:" >&5
  7131. cat conftest.$ac_ext >&5
  7132. rm -rf conftest*
  7133. eval "ac_cv_lib_$ac_lib_var=no"
  7134. fi
  7135. rm -f conftest*
  7136. LIBS="$ac_save_LIBS"
  7137. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7138. echo "$ac_t""yes" 1>&6
  7139. SQLITELIB="$SQLITELIB -lsqlite3 $DLLIB"
  7140. else
  7141. echo "$ac_t""no" 1>&6
  7142. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  7143. echo "configure:8826: checking for sqlite3_open in -lsqlite3" >&5
  7144. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  7145. ac_save_LIBS="$LIBS"
  7146. LIBS="-lsqlite3 $MATHLIB $LIBS"
  7147. cat > conftest.$ac_ext <<EOF
  7148. #line 8832 "configure"
  7149. #include "confdefs.h"
  7150. /* Override any gcc2 internal prototype to avoid an error. */
  7151. /* We use char because int might match the return type of a gcc2
  7152. builtin and then its argument prototype would still apply. */
  7153. char sqlite3_open();
  7154. int main() {
  7155. sqlite3_open()
  7156. ; return 0; }
  7157. EOF
  7158. if { (eval echo configure:8843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7159. rm -rf conftest*
  7160. eval "ac_cv_lib_$ac_lib_var=yes"
  7161. else
  7162. echo "configure: failed program was:" >&5
  7163. cat conftest.$ac_ext >&5
  7164. rm -rf conftest*
  7165. eval "ac_cv_lib_$ac_lib_var=no"
  7166. fi
  7167. rm -f conftest*
  7168. LIBS="$ac_save_LIBS"
  7169. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7170. echo "$ac_t""yes" 1>&6
  7171. SQLITELIB="$SQLITELIB -lsqlite3 $MATHLIB"
  7172. else
  7173. echo "$ac_t""no" 1>&6
  7174. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  7175. echo "configure:8862: checking for sqlite3_open in -lsqlite3" >&5
  7176. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  7177. ac_save_LIBS="$LIBS"
  7178. LIBS="-lsqlite3 $MATHLIB $DLLIB $LIBS"
  7179. cat > conftest.$ac_ext <<EOF
  7180. #line 8868 "configure"
  7181. #include "confdefs.h"
  7182. /* Override any gcc2 internal prototype to avoid an error. */
  7183. /* We use char because int might match the return type of a gcc2
  7184. builtin and then its argument prototype would still apply. */
  7185. char sqlite3_open();
  7186. int main() {
  7187. sqlite3_open()
  7188. ; return 0; }
  7189. EOF
  7190. if { (eval echo configure:8879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7191. rm -rf conftest*
  7192. eval "ac_cv_lib_$ac_lib_var=yes"
  7193. else
  7194. echo "configure: failed program was:" >&5
  7195. cat conftest.$ac_ext >&5
  7196. rm -rf conftest*
  7197. eval "ac_cv_lib_$ac_lib_var=no"
  7198. fi
  7199. rm -f conftest*
  7200. LIBS="$ac_save_LIBS"
  7201. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7202. echo "$ac_t""yes" 1>&6
  7203. SQLITELIB="$SQLITELIB -lsqlite3 $MATHLIB $DLLIB"
  7204. else
  7205. echo "$ac_t""no" 1>&6
  7206. LDFLAGS=${ac_save_ldflags}
  7207. { echo "configure: error: *** Unable to locate SQLite library." 1>&2; exit 1; }
  7208. fi
  7209. fi
  7210. fi
  7211. fi
  7212. LDFLAGS=${ac_save_ldflags}
  7213. fi # $USE_SQLITE
  7214. # Done checking SQLite
  7215. # Enable OpenGL option
  7216. OPENGLINC=
  7217. OPENGLLIB=
  7218. OPENGLULIB=
  7219. USE_OPENGL=
  7220. OPENGL_X11=
  7221. OPENGL_AQUA=
  7222. OPENGL_WINDOWS=
  7223. echo $ac_n "checking whether to use OpenGL""... $ac_c" 1>&6
  7224. echo "configure:8954: checking whether to use OpenGL" >&5
  7225. echo "$ac_t"""$with_opengl"" 1>&6
  7226. case "$with_opengl" in
  7227. n|no)
  7228. OPENGL_TYPE=none
  7229. ;;
  7230. y|yes|x|x11|glx)
  7231. OPENGL_TYPE=X11
  7232. USE_OPENGL=1
  7233. OPENGL_X11=1
  7234. ;;
  7235. aqua|mac|osx|macosx|agl)
  7236. OPENGL_TYPE=Aqua
  7237. USE_OPENGL=1
  7238. OPENGL_AQUA=1
  7239. ;;
  7240. win|windows|mswin|wgl)
  7241. OPENGL_TYPE=Windows
  7242. USE_OPENGL=1
  7243. OPENGL_WINDOWS=1
  7244. ;;
  7245. *)
  7246. { echo "configure: error: *** Valid arguments for --with-opengl= are yes,no,x11,aqua,windows." 1>&2; exit 1; }
  7247. ;;
  7248. esac
  7249. if test -n "$USE_OPENGL" ; then
  7250. if test "$OPENGL_X11" = 1 ; then
  7251. # With OpenGL includes directory
  7252. echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
  7253. echo "configure:8988: checking for location of OpenGL includes" >&5
  7254. case "$with_opengl_includes" in
  7255. y | ye | yes | n | no)
  7256. { echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
  7257. ;;
  7258. esac
  7259. echo "$ac_t""$with_opengl_includes" 1>&6
  7260. if test -n "$with_opengl_includes" ; then
  7261. for dir in $with_opengl_includes; do
  7262. if test -d "$dir"; then
  7263. OPENGLINC="$OPENGLINC -I$dir"
  7264. else
  7265. { echo "configure: error: *** OpenGL includes directory $dir does not exist." 1>&2; exit 1; }
  7266. fi
  7267. done
  7268. fi
  7269. ac_save_cppflags="$CPPFLAGS"
  7270. CPPFLAGS="$OPENGLINC $X_CFLAGS $CPPFLAGS"
  7271. for ac_hdr in GL/gl.h GL/glu.h
  7272. do
  7273. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7274. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7275. echo "configure:9014: checking for $ac_hdr" >&5
  7276. cat > conftest.$ac_ext <<EOF
  7277. #line 9017 "configure"
  7278. #include "confdefs.h"
  7279. #include <$ac_hdr>
  7280. EOF
  7281. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7282. { (eval echo configure:9022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7283. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7284. if test -z "$ac_err"; then
  7285. rm -rf conftest*
  7286. eval "ac_cv_header_$ac_safe=yes"
  7287. else
  7288. echo "$ac_err" >&5
  7289. echo "configure: failed program was:" >&5
  7290. cat conftest.$ac_ext >&5
  7291. rm -rf conftest*
  7292. eval "ac_cv_header_$ac_safe=no"
  7293. fi
  7294. rm -f conftest*
  7295. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7296. echo "$ac_t""yes" 1>&6
  7297. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7298. cat >> confdefs.h <<EOF
  7299. #define $ac_tr_hdr 1
  7300. EOF
  7301. else
  7302. echo "$ac_t""no" 1>&6
  7303. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  7304. fi
  7305. done
  7306. CPPFLAGS=$ac_save_cppflags
  7307. # With OpenGL library directory
  7308. echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
  7309. echo "configure:9056: checking for location of OpenGL library" >&5
  7310. case "$with_opengl_libs" in
  7311. y | ye | yes | n | no)
  7312. { echo "configure: error: *** You must supply a directory to --with-opengl-libs." 1>&2; exit 1; }
  7313. ;;
  7314. esac
  7315. echo "$ac_t""$with_opengl_libs" 1>&6
  7316. if test -n "$with_opengl_libs"; then
  7317. for dir in $with_opengl_libs; do
  7318. if test -d "$dir"; then
  7319. OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
  7320. else
  7321. { echo "configure: error: *** OpenGL library directory $dir does not exist." 1>&2; exit 1; }
  7322. fi
  7323. done
  7324. fi
  7325. ac_save_ldflags="$LDFLAGS"
  7326. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7327. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7328. echo "configure:9085: checking for glBegin in -lGL" >&5
  7329. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7330. ac_save_LIBS="$LIBS"
  7331. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
  7332. cat > conftest.$ac_ext <<EOF
  7333. #line 9091 "configure"
  7334. #include "confdefs.h"
  7335. /* Override any gcc2 internal prototype to avoid an error. */
  7336. /* We use char because int might match the return type of a gcc2
  7337. builtin and then its argument prototype would still apply. */
  7338. char glBegin();
  7339. int main() {
  7340. glBegin()
  7341. ; return 0; }
  7342. EOF
  7343. if { (eval echo configure:9102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7344. rm -rf conftest*
  7345. eval "ac_cv_lib_$ac_lib_var=yes"
  7346. else
  7347. echo "configure: failed program was:" >&5
  7348. cat conftest.$ac_ext >&5
  7349. rm -rf conftest*
  7350. eval "ac_cv_lib_$ac_lib_var=no"
  7351. fi
  7352. rm -f conftest*
  7353. LIBS="$ac_save_LIBS"
  7354. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7355. echo "$ac_t""yes" 1>&6
  7356. OPENGLLIB="$OPENGLLIB -lGL "
  7357. else
  7358. echo "$ac_t""no" 1>&6
  7359. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7360. echo "configure:9121: checking for glBegin in -lGL" >&5
  7361. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7362. ac_save_LIBS="$LIBS"
  7363. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lXext $LIBS"
  7364. cat > conftest.$ac_ext <<EOF
  7365. #line 9127 "configure"
  7366. #include "confdefs.h"
  7367. /* Override any gcc2 internal prototype to avoid an error. */
  7368. /* We use char because int might match the return type of a gcc2
  7369. builtin and then its argument prototype would still apply. */
  7370. char glBegin();
  7371. int main() {
  7372. glBegin()
  7373. ; return 0; }
  7374. EOF
  7375. if { (eval echo configure:9138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7376. rm -rf conftest*
  7377. eval "ac_cv_lib_$ac_lib_var=yes"
  7378. else
  7379. echo "configure: failed program was:" >&5
  7380. cat conftest.$ac_ext >&5
  7381. rm -rf conftest*
  7382. eval "ac_cv_lib_$ac_lib_var=no"
  7383. fi
  7384. rm -f conftest*
  7385. LIBS="$ac_save_LIBS"
  7386. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7387. echo "$ac_t""yes" 1>&6
  7388. OPENGLLIB="$OPENGLLIB -lGL -lXext"
  7389. else
  7390. echo "$ac_t""no" 1>&6
  7391. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7392. echo "configure:9157: checking for glBegin in -lGL" >&5
  7393. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7394. ac_save_LIBS="$LIBS"
  7395. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread $LIBS"
  7396. cat > conftest.$ac_ext <<EOF
  7397. #line 9163 "configure"
  7398. #include "confdefs.h"
  7399. /* Override any gcc2 internal prototype to avoid an error. */
  7400. /* We use char because int might match the return type of a gcc2
  7401. builtin and then its argument prototype would still apply. */
  7402. char glBegin();
  7403. int main() {
  7404. glBegin()
  7405. ; return 0; }
  7406. EOF
  7407. if { (eval echo configure:9174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7408. rm -rf conftest*
  7409. eval "ac_cv_lib_$ac_lib_var=yes"
  7410. else
  7411. echo "configure: failed program was:" >&5
  7412. cat conftest.$ac_ext >&5
  7413. rm -rf conftest*
  7414. eval "ac_cv_lib_$ac_lib_var=no"
  7415. fi
  7416. rm -f conftest*
  7417. LIBS="$ac_save_LIBS"
  7418. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7419. echo "$ac_t""yes" 1>&6
  7420. OPENGLLIB="$OPENGLLIB -lGL -lpthread"
  7421. else
  7422. echo "$ac_t""no" 1>&6
  7423. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7424. echo "configure:9193: checking for glBegin in -lGL" >&5
  7425. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7426. ac_save_LIBS="$LIBS"
  7427. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread -lXext $LIBS"
  7428. cat > conftest.$ac_ext <<EOF
  7429. #line 9199 "configure"
  7430. #include "confdefs.h"
  7431. /* Override any gcc2 internal prototype to avoid an error. */
  7432. /* We use char because int might match the return type of a gcc2
  7433. builtin and then its argument prototype would still apply. */
  7434. char glBegin();
  7435. int main() {
  7436. glBegin()
  7437. ; return 0; }
  7438. EOF
  7439. if { (eval echo configure:9210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7440. rm -rf conftest*
  7441. eval "ac_cv_lib_$ac_lib_var=yes"
  7442. else
  7443. echo "configure: failed program was:" >&5
  7444. cat conftest.$ac_ext >&5
  7445. rm -rf conftest*
  7446. eval "ac_cv_lib_$ac_lib_var=no"
  7447. fi
  7448. rm -f conftest*
  7449. LIBS="$ac_save_LIBS"
  7450. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7451. echo "$ac_t""yes" 1>&6
  7452. OPENGLLIB="$OPENGLLIB -lGL -lpthread -lXext"
  7453. else
  7454. echo "$ac_t""no" 1>&6
  7455. LDFLAGS=${ac_save_ldflags}
  7456. { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
  7457. fi
  7458. fi
  7459. fi
  7460. fi
  7461. LDFLAGS=${ac_save_ldflags}
  7462. ac_save_ldflags="$LDFLAGS"
  7463. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7464. echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
  7465. echo "configure:9272: checking for gluBeginCurve in -lGLU" >&5
  7466. ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
  7467. ac_save_LIBS="$LIBS"
  7468. LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
  7469. cat > conftest.$ac_ext <<EOF
  7470. #line 9278 "configure"
  7471. #include "confdefs.h"
  7472. /* Override any gcc2 internal prototype to avoid an error. */
  7473. /* We use char because int might match the return type of a gcc2
  7474. builtin and then its argument prototype would still apply. */
  7475. char gluBeginCurve();
  7476. int main() {
  7477. gluBeginCurve()
  7478. ; return 0; }
  7479. EOF
  7480. if { (eval echo configure:9289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7481. rm -rf conftest*
  7482. eval "ac_cv_lib_$ac_lib_var=yes"
  7483. else
  7484. echo "configure: failed program was:" >&5
  7485. cat conftest.$ac_ext >&5
  7486. rm -rf conftest*
  7487. eval "ac_cv_lib_$ac_lib_var=no"
  7488. fi
  7489. rm -f conftest*
  7490. LIBS="$ac_save_LIBS"
  7491. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7492. echo "$ac_t""yes" 1>&6
  7493. OPENGLULIB="$OPENGLULIB -lGLU "
  7494. else
  7495. echo "$ac_t""no" 1>&6
  7496. echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
  7497. echo "configure:9308: checking for gluBeginCurve in -lGLU" >&5
  7498. ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
  7499. ac_save_LIBS="$LIBS"
  7500. LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lstdc++ $LIBS"
  7501. cat > conftest.$ac_ext <<EOF
  7502. #line 9314 "configure"
  7503. #include "confdefs.h"
  7504. /* Override any gcc2 internal prototype to avoid an error. */
  7505. /* We use char because int might match the return type of a gcc2
  7506. builtin and then its argument prototype would still apply. */
  7507. char gluBeginCurve();
  7508. int main() {
  7509. gluBeginCurve()
  7510. ; return 0; }
  7511. EOF
  7512. if { (eval echo configure:9325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7513. rm -rf conftest*
  7514. eval "ac_cv_lib_$ac_lib_var=yes"
  7515. else
  7516. echo "configure: failed program was:" >&5
  7517. cat conftest.$ac_ext >&5
  7518. rm -rf conftest*
  7519. eval "ac_cv_lib_$ac_lib_var=no"
  7520. fi
  7521. rm -f conftest*
  7522. LIBS="$ac_save_LIBS"
  7523. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7524. echo "$ac_t""yes" 1>&6
  7525. OPENGLULIB="$OPENGLULIB -lGLU -lstdc++"
  7526. else
  7527. echo "$ac_t""no" 1>&6
  7528. LDFLAGS=${ac_save_ldflags}
  7529. { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
  7530. fi
  7531. fi
  7532. LDFLAGS=${ac_save_ldflags}
  7533. OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
  7534. OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
  7535. ac_save_libs="$LIBS"
  7536. ac_save_ldflags="$LDFLAGS"
  7537. LIBS=" $OPENGLLIB $LIBS"
  7538. LDFLAGS=" $LDFLAGS"
  7539. echo $ac_n "checking for glXCreatePbuffer""... $ac_c" 1>&6
  7540. echo "configure:9372: checking for glXCreatePbuffer" >&5
  7541. cat > conftest.$ac_ext <<EOF
  7542. #line 9375 "configure"
  7543. #include "confdefs.h"
  7544. /* System header to define __stub macros and hopefully few prototypes,
  7545. which can conflict with char glXCreatePbuffer(); below. */
  7546. #include <assert.h>
  7547. /* Override any gcc2 internal prototype to avoid an error. */
  7548. /* We use char because int might match the return type of a gcc2
  7549. builtin and then its argument prototype would still apply. */
  7550. char glXCreatePbuffer();
  7551. int main() {
  7552. /* The GNU C library defines this for functions which it implements
  7553. to always fail with ENOSYS. Some functions are actually named
  7554. something starting with __ and the normal name is an alias. */
  7555. #if defined (__stub_glXCreatePbuffer) || defined (__stub___glXCreatePbuffer)
  7556. choke me
  7557. #else
  7558. glXCreatePbuffer();
  7559. #endif
  7560. ; return 0; }
  7561. EOF
  7562. if { (eval echo configure:9398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7563. rm -rf conftest*
  7564. eval "ac_cv_func_glXCreatePbuffer=yes"
  7565. else
  7566. echo "configure: failed program was:" >&5
  7567. cat conftest.$ac_ext >&5
  7568. rm -rf conftest*
  7569. eval "ac_cv_func_glXCreatePbuffer=no"
  7570. fi
  7571. rm -f conftest*
  7572. if eval "test \"`echo '$ac_cv_func_'glXCreatePbuffer`\" = yes"; then
  7573. echo "$ac_t""yes" 1>&6
  7574. cat >> confdefs.h <<\EOF
  7575. #define HAVE_PBUFFERS 1
  7576. EOF
  7577. else
  7578. echo "$ac_t""no" 1>&6
  7579. { echo "configure: error: *** Unable to locate glXCreatePbuffer." 1>&2; exit 1; }
  7580. fi
  7581. LIBS=${ac_save_libs}
  7582. LDFLAGS=${ac_save_ldflags}
  7583. ac_save_libs="$LIBS"
  7584. ac_save_ldflags="$LDFLAGS"
  7585. LIBS=" $OPENGLLIB $LIBS"
  7586. LDFLAGS=" $LDFLAGS"
  7587. echo $ac_n "checking for glXCreateGLXPixmap""... $ac_c" 1>&6
  7588. echo "configure:9435: checking for glXCreateGLXPixmap" >&5
  7589. cat > conftest.$ac_ext <<EOF
  7590. #line 9438 "configure"
  7591. #include "confdefs.h"
  7592. /* System header to define __stub macros and hopefully few prototypes,
  7593. which can conflict with char glXCreateGLXPixmap(); below. */
  7594. #include <assert.h>
  7595. /* Override any gcc2 internal prototype to avoid an error. */
  7596. /* We use char because int might match the return type of a gcc2
  7597. builtin and then its argument prototype would still apply. */
  7598. char glXCreateGLXPixmap();
  7599. int main() {
  7600. /* The GNU C library defines this for functions which it implements
  7601. to always fail with ENOSYS. Some functions are actually named
  7602. something starting with __ and the normal name is an alias. */
  7603. #if defined (__stub_glXCreateGLXPixmap) || defined (__stub___glXCreateGLXPixmap)
  7604. choke me
  7605. #else
  7606. glXCreateGLXPixmap();
  7607. #endif
  7608. ; return 0; }
  7609. EOF
  7610. if { (eval echo configure:9461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7611. rm -rf conftest*
  7612. eval "ac_cv_func_glXCreateGLXPixmap=yes"
  7613. else
  7614. echo "configure: failed program was:" >&5
  7615. cat conftest.$ac_ext >&5
  7616. rm -rf conftest*
  7617. eval "ac_cv_func_glXCreateGLXPixmap=no"
  7618. fi
  7619. rm -f conftest*
  7620. if eval "test \"`echo '$ac_cv_func_'glXCreateGLXPixmap`\" = yes"; then
  7621. echo "$ac_t""yes" 1>&6
  7622. cat >> confdefs.h <<\EOF
  7623. #define HAVE_PIXMAPS 1
  7624. EOF
  7625. else
  7626. echo "$ac_t""no" 1>&6
  7627. { echo "configure: error: *** Unable to locate glXCreateGLXPixmap." 1>&2; exit 1; }
  7628. fi
  7629. LIBS=${ac_save_libs}
  7630. LDFLAGS=${ac_save_ldflags}
  7631. cat >> confdefs.h <<\EOF
  7632. #define OPENGL_X11 1
  7633. EOF
  7634. fi # $OPENGL_X11
  7635. if test "$OPENGL_AQUA" = 1 ; then
  7636. echo $ac_n "checking for location of OpenGL framework""... $ac_c" 1>&6
  7637. echo "configure:9504: checking for location of OpenGL framework" >&5
  7638. case "$with_opengl_framework" in
  7639. y | ye | yes | n | no)
  7640. { echo "configure: error: *** You must supply a directory to --with-opengl-framework." 1>&2; exit 1; }
  7641. ;;
  7642. esac
  7643. echo "$ac_t""$with_opengl_framework" 1>&6
  7644. if test -n "$with_opengl_framework"; then
  7645. if test -d $with_opengl_framework; then
  7646. OPENGLPATH="$OPENGLPATH -F$with_opengl_framework"
  7647. else
  7648. { echo "configure: error: *** OpenGL framework directory $dir does not exist." 1>&2; exit 1; }
  7649. fi
  7650. fi
  7651. ac_save_cppflags="$CPPFLAGS"
  7652. CPPFLAGS="$OPENGLPATH $CPPFLAGS"
  7653. for ac_hdr in OpenGL/gl.h OpenGL/glu.h
  7654. do
  7655. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7656. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7657. echo "configure:9528: checking for $ac_hdr" >&5
  7658. cat > conftest.$ac_ext <<EOF
  7659. #line 9531 "configure"
  7660. #include "confdefs.h"
  7661. #include <$ac_hdr>
  7662. EOF
  7663. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7664. { (eval echo configure:9536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7665. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7666. if test -z "$ac_err"; then
  7667. rm -rf conftest*
  7668. eval "ac_cv_header_$ac_safe=yes"
  7669. else
  7670. echo "$ac_err" >&5
  7671. echo "configure: failed program was:" >&5
  7672. cat conftest.$ac_ext >&5
  7673. rm -rf conftest*
  7674. eval "ac_cv_header_$ac_safe=no"
  7675. fi
  7676. rm -f conftest*
  7677. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7678. echo "$ac_t""yes" 1>&6
  7679. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7680. cat >> confdefs.h <<EOF
  7681. #define $ac_tr_hdr 1
  7682. EOF
  7683. else
  7684. echo "$ac_t""no" 1>&6
  7685. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  7686. fi
  7687. done
  7688. CPPFLAGS=$ac_save_cppflags
  7689. ac_save_libs="$LIBS"
  7690. ac_save_ldflags="$LDFLAGS"
  7691. LIBS="-framework OpenGL -framework AGL -framework ApplicationServices $LIBS"
  7692. LDFLAGS="$OPENGLPATH $LDFLAGS"
  7693. echo $ac_n "checking for glBegin""... $ac_c" 1>&6
  7694. echo "configure:9572: checking for glBegin" >&5
  7695. cat > conftest.$ac_ext <<EOF
  7696. #line 9575 "configure"
  7697. #include "confdefs.h"
  7698. /* System header to define __stub macros and hopefully few prototypes,
  7699. which can conflict with char glBegin(); below. */
  7700. #include <assert.h>
  7701. /* Override any gcc2 internal prototype to avoid an error. */
  7702. /* We use char because int might match the return type of a gcc2
  7703. builtin and then its argument prototype would still apply. */
  7704. char glBegin();
  7705. int main() {
  7706. /* The GNU C library defines this for functions which it implements
  7707. to always fail with ENOSYS. Some functions are actually named
  7708. something starting with __ and the normal name is an alias. */
  7709. #if defined (__stub_glBegin) || defined (__stub___glBegin)
  7710. choke me
  7711. #else
  7712. glBegin();
  7713. #endif
  7714. ; return 0; }
  7715. EOF
  7716. if { (eval echo configure:9598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7717. rm -rf conftest*
  7718. eval "ac_cv_func_glBegin=yes"
  7719. else
  7720. echo "configure: failed program was:" >&5
  7721. cat conftest.$ac_ext >&5
  7722. rm -rf conftest*
  7723. eval "ac_cv_func_glBegin=no"
  7724. fi
  7725. rm -f conftest*
  7726. if eval "test \"`echo '$ac_cv_func_'glBegin`\" = yes"; then
  7727. echo "$ac_t""yes" 1>&6
  7728. OPENGLLIB="$OPENGLLIB -framework OpenGL -framework AGL -framework ApplicationServices"
  7729. else
  7730. echo "$ac_t""no" 1>&6
  7731. { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
  7732. fi
  7733. LIBS=${ac_save_libs}
  7734. LDFLAGS=${ac_save_ldflags}
  7735. ac_save_libs="$LIBS"
  7736. ac_save_ldflags="$LDFLAGS"
  7737. LIBS=" $OPENGLLIB $LIBS"
  7738. LDFLAGS="$OPENGLPATH $LDFLAGS"
  7739. echo $ac_n "checking for gluBeginCurve""... $ac_c" 1>&6
  7740. echo "configure:9635: checking for gluBeginCurve" >&5
  7741. cat > conftest.$ac_ext <<EOF
  7742. #line 9638 "configure"
  7743. #include "confdefs.h"
  7744. /* System header to define __stub macros and hopefully few prototypes,
  7745. which can conflict with char gluBeginCurve(); below. */
  7746. #include <assert.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 gluBeginCurve();
  7751. int main() {
  7752. /* The GNU C library defines this for functions which it implements
  7753. to always fail with ENOSYS. Some functions are actually named
  7754. something starting with __ and the normal name is an alias. */
  7755. #if defined (__stub_gluBeginCurve) || defined (__stub___gluBeginCurve)
  7756. choke me
  7757. #else
  7758. gluBeginCurve();
  7759. #endif
  7760. ; return 0; }
  7761. EOF
  7762. if { (eval echo configure:9661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7763. rm -rf conftest*
  7764. eval "ac_cv_func_gluBeginCurve=yes"
  7765. else
  7766. echo "configure: failed program was:" >&5
  7767. cat conftest.$ac_ext >&5
  7768. rm -rf conftest*
  7769. eval "ac_cv_func_gluBeginCurve=no"
  7770. fi
  7771. rm -f conftest*
  7772. if eval "test \"`echo '$ac_cv_func_'gluBeginCurve`\" = yes"; then
  7773. echo "$ac_t""yes" 1>&6
  7774. OPENGLLIB="$OPENGLLIB "
  7775. else
  7776. echo "$ac_t""no" 1>&6
  7777. { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
  7778. fi
  7779. LIBS=${ac_save_libs}
  7780. LDFLAGS=${ac_save_ldflags}
  7781. OPENGLINC="$OPENGLPATH"
  7782. OPENGLLIBPATH="$OPENGLPATH"
  7783. cat >> confdefs.h <<\EOF
  7784. #define OPENGL_AQUA 1
  7785. EOF
  7786. fi # $OPENGL_AQUA
  7787. if test "$OPENGL_WINDOWS" = 1 ; then
  7788. # With OpenGL includes directory
  7789. echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
  7790. echo "configure:9709: checking for location of OpenGL includes" >&5
  7791. case "$with_opengl_includes" in
  7792. y | ye | yes | n | no)
  7793. { echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
  7794. ;;
  7795. esac
  7796. echo "$ac_t""$with_opengl_includes" 1>&6
  7797. if test -n "$with_opengl_includes" ; then
  7798. for dir in $with_opengl_includes; do
  7799. if test -d "$dir"; then
  7800. OPENGLINC="$OPENGLINC -I$dir"
  7801. else
  7802. { echo "configure: error: *** OpenGL includes directory $dir does not exist." 1>&2; exit 1; }
  7803. fi
  7804. done
  7805. fi
  7806. ac_save_cppflags="$CPPFLAGS"
  7807. CPPFLAGS="$OPENGLINC $CPPFLAGS"
  7808. for ac_hdr in GL/gl.h GL/glu.h
  7809. do
  7810. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7811. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7812. echo "configure:9735: checking for $ac_hdr" >&5
  7813. cat > conftest.$ac_ext <<EOF
  7814. #line 9738 "configure"
  7815. #include "confdefs.h"
  7816. #include <$ac_hdr>
  7817. EOF
  7818. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7819. { (eval echo configure:9743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7820. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7821. if test -z "$ac_err"; then
  7822. rm -rf conftest*
  7823. eval "ac_cv_header_$ac_safe=yes"
  7824. else
  7825. echo "$ac_err" >&5
  7826. echo "configure: failed program was:" >&5
  7827. cat conftest.$ac_ext >&5
  7828. rm -rf conftest*
  7829. eval "ac_cv_header_$ac_safe=no"
  7830. fi
  7831. rm -f conftest*
  7832. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7833. echo "$ac_t""yes" 1>&6
  7834. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7835. cat >> confdefs.h <<EOF
  7836. #define $ac_tr_hdr 1
  7837. EOF
  7838. else
  7839. echo "$ac_t""no" 1>&6
  7840. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  7841. fi
  7842. done
  7843. CPPFLAGS=$ac_save_cppflags
  7844. # With OpenGL library directory
  7845. echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
  7846. echo "configure:9777: checking for location of OpenGL library" >&5
  7847. case "$with_opengl_libs" in
  7848. y | ye | yes | n | no)
  7849. { echo "configure: error: *** You must supply a directory to --with-opengl-libs." 1>&2; exit 1; }
  7850. ;;
  7851. esac
  7852. echo "$ac_t""$with_opengl_libs" 1>&6
  7853. if test -n "$with_opengl_libs"; then
  7854. for dir in $with_opengl_libs; do
  7855. if test -d "$dir"; then
  7856. OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
  7857. else
  7858. { echo "configure: error: *** OpenGL library directory $dir does not exist." 1>&2; exit 1; }
  7859. fi
  7860. done
  7861. fi
  7862. ac_save_cflags="$CFLAGS"
  7863. CFLAGS="$CFLAGS $OPENGLINC"
  7864. ac_save_ldflags="$LDFLAGS"
  7865. ac_save_libs="$LIBS"
  7866. echo $ac_n "checking for OpenGL library""... $ac_c" 1>&6
  7867. echo "configure:9802: checking for OpenGL library" >&5
  7868. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7869. LIBS="-lopengl32 "
  7870. cat > conftest.$ac_ext <<EOF
  7871. #line 9806 "configure"
  7872. #include "confdefs.h"
  7873. #include <GL/gl.h>
  7874. int main() {
  7875. glEnd();
  7876. ; return 0; }
  7877. EOF
  7878. if { (eval echo configure:9813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7879. rm -rf conftest*
  7880. echo "$ac_t""found" 1>&6
  7881. OPENGLLIB="$OPENGLLIB -lopengl32 "
  7882. else
  7883. echo "configure: failed program was:" >&5
  7884. cat conftest.$ac_ext >&5
  7885. rm -rf conftest*
  7886. { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
  7887. fi
  7888. rm -f conftest*
  7889. LIBS=${ac_save_libs}
  7890. LDFLAGS=${ac_save_ldflags}
  7891. ac_save_ldflags="$LDFLAGS"
  7892. ac_save_libs="$LIBS"
  7893. echo $ac_n "checking for GLU library""... $ac_c" 1>&6
  7894. echo "configure:9837: checking for GLU library" >&5
  7895. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7896. LIBS="-lglu32 $OPENGLLIB "
  7897. cat > conftest.$ac_ext <<EOF
  7898. #line 9841 "configure"
  7899. #include "confdefs.h"
  7900. #include <GL/glu.h>
  7901. int main() {
  7902. gluNewQuadric();
  7903. ; return 0; }
  7904. EOF
  7905. if { (eval echo configure:9848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7906. rm -rf conftest*
  7907. echo "$ac_t""found" 1>&6
  7908. OPENGLULIB="$OPENGLULIB -lglu32 "
  7909. else
  7910. echo "configure: failed program was:" >&5
  7911. cat conftest.$ac_ext >&5
  7912. rm -rf conftest*
  7913. { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
  7914. fi
  7915. rm -f conftest*
  7916. LIBS=${ac_save_libs}
  7917. LDFLAGS=${ac_save_ldflags}
  7918. CFLAGS="${ac_save_cflags}"
  7919. OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
  7920. OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
  7921. cat >> confdefs.h <<\EOF
  7922. #define OPENGL_WINDOWS 1
  7923. EOF
  7924. fi # $OPENGL_WINDOWS
  7925. fi # $USE_OPENGL
  7926. # Done checking OpenGL
  7927. # Enable ODBC option
  7928. echo $ac_n "checking whether to use ODBC""... $ac_c" 1>&6
  7929. echo "configure:9897: checking whether to use ODBC" >&5
  7930. echo "$ac_t"""$with_odbc"" 1>&6
  7931. case "$with_odbc" in
  7932. "no") USE_ODBC= ;;
  7933. "yes") USE_ODBC="1" ;;
  7934. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  7935. esac
  7936. ODBCINC=
  7937. ODBCLIB=
  7938. if test -n "$USE_ODBC"; then
  7939. # With ODBC includes directory
  7940. echo $ac_n "checking for location of ODBC includes""... $ac_c" 1>&6
  7941. echo "configure:9916: checking for location of ODBC includes" >&5
  7942. case "$with_odbc_includes" in
  7943. y | ye | yes | n | no)
  7944. { echo "configure: error: *** You must supply a directory to --with-odbc-includes." 1>&2; exit 1; }
  7945. ;;
  7946. esac
  7947. echo "$ac_t""$with_odbc_includes" 1>&6
  7948. if test -n "$with_odbc_includes" ; then
  7949. for dir in $with_odbc_includes; do
  7950. if test -d "$dir"; then
  7951. ODBCINC="$ODBCINC -I$dir"
  7952. else
  7953. { echo "configure: error: *** ODBC includes directory $dir does not exist." 1>&2; exit 1; }
  7954. fi
  7955. done
  7956. fi
  7957. ac_save_cppflags="$CPPFLAGS"
  7958. CPPFLAGS="$ODBCINC $CPPFLAGS"
  7959. for ac_hdr in sql.h
  7960. do
  7961. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7962. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7963. echo "configure:9942: checking for $ac_hdr" >&5
  7964. cat > conftest.$ac_ext <<EOF
  7965. #line 9945 "configure"
  7966. #include "confdefs.h"
  7967. #include <$ac_hdr>
  7968. EOF
  7969. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7970. { (eval echo configure:9950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7971. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7972. if test -z "$ac_err"; then
  7973. rm -rf conftest*
  7974. eval "ac_cv_header_$ac_safe=yes"
  7975. else
  7976. echo "$ac_err" >&5
  7977. echo "configure: failed program was:" >&5
  7978. cat conftest.$ac_ext >&5
  7979. rm -rf conftest*
  7980. eval "ac_cv_header_$ac_safe=no"
  7981. fi
  7982. rm -f conftest*
  7983. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7984. echo "$ac_t""yes" 1>&6
  7985. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7986. cat >> confdefs.h <<EOF
  7987. #define $ac_tr_hdr 1
  7988. EOF
  7989. else
  7990. echo "$ac_t""no" 1>&6
  7991. { echo "configure: error: *** Unable to locate ODBC includes." 1>&2; exit 1; }
  7992. fi
  7993. done
  7994. CPPFLAGS=$ac_save_cppflags
  7995. # With ODBC library directory
  7996. echo $ac_n "checking for location of ODBC library""... $ac_c" 1>&6
  7997. echo "configure:9984: checking for location of ODBC library" >&5
  7998. case "$with_odbc_libs" in
  7999. y | ye | yes | n | no)
  8000. { echo "configure: error: *** You must supply a directory to --with-odbc-libs." 1>&2; exit 1; }
  8001. ;;
  8002. esac
  8003. echo "$ac_t""$with_odbc_libs" 1>&6
  8004. if test -n "$with_odbc_libs"; then
  8005. for dir in $with_odbc_libs; do
  8006. if test -d "$dir"; then
  8007. ODBCLIB="$ODBCLIB -L$dir"
  8008. else
  8009. { echo "configure: error: *** ODBC library directory $dir does not exist." 1>&2; exit 1; }
  8010. fi
  8011. done
  8012. fi
  8013. ac_save_ldflags="$LDFLAGS"
  8014. LDFLAGS="$ODBCLIB $LDFLAGS"
  8015. echo $ac_n "checking for SQLConnect in -lodbc""... $ac_c" 1>&6
  8016. echo "configure:10009: checking for SQLConnect in -lodbc" >&5
  8017. ac_lib_var=`echo odbc'_'SQLConnect | sed 'y%./+-%__p_%'`
  8018. ac_save_LIBS="$LIBS"
  8019. LIBS="-lodbc $ICONVLIB $LIBS"
  8020. cat > conftest.$ac_ext <<EOF
  8021. #line 10015 "configure"
  8022. #include "confdefs.h"
  8023. /* Override any gcc2 internal prototype to avoid an error. */
  8024. /* We use char because int might match the return type of a gcc2
  8025. builtin and then its argument prototype would still apply. */
  8026. char SQLConnect();
  8027. int main() {
  8028. SQLConnect()
  8029. ; return 0; }
  8030. EOF
  8031. if { (eval echo configure:10026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8032. rm -rf conftest*
  8033. eval "ac_cv_lib_$ac_lib_var=yes"
  8034. else
  8035. echo "configure: failed program was:" >&5
  8036. cat conftest.$ac_ext >&5
  8037. rm -rf conftest*
  8038. eval "ac_cv_lib_$ac_lib_var=no"
  8039. fi
  8040. rm -f conftest*
  8041. LIBS="$ac_save_LIBS"
  8042. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8043. echo "$ac_t""yes" 1>&6
  8044. ODBCLIB="$ODBCLIB -lodbc "
  8045. else
  8046. echo "$ac_t""no" 1>&6
  8047. LDFLAGS=${ac_save_ldflags}
  8048. ac_save_ldflags="$LDFLAGS"
  8049. LDFLAGS="$ODBCLIB $LDFLAGS"
  8050. echo $ac_n "checking for SQLConnect in -liodbc""... $ac_c" 1>&6
  8051. echo "configure:10051: checking for SQLConnect in -liodbc" >&5
  8052. ac_lib_var=`echo iodbc'_'SQLConnect | sed 'y%./+-%__p_%'`
  8053. ac_save_LIBS="$LIBS"
  8054. LIBS="-liodbc $LIBS"
  8055. cat > conftest.$ac_ext <<EOF
  8056. #line 10057 "configure"
  8057. #include "confdefs.h"
  8058. /* Override any gcc2 internal prototype to avoid an error. */
  8059. /* We use char because int might match the return type of a gcc2
  8060. builtin and then its argument prototype would still apply. */
  8061. char SQLConnect();
  8062. int main() {
  8063. SQLConnect()
  8064. ; return 0; }
  8065. EOF
  8066. if { (eval echo configure:10068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8067. rm -rf conftest*
  8068. eval "ac_cv_lib_$ac_lib_var=yes"
  8069. else
  8070. echo "configure: failed program was:" >&5
  8071. cat conftest.$ac_ext >&5
  8072. rm -rf conftest*
  8073. eval "ac_cv_lib_$ac_lib_var=no"
  8074. fi
  8075. rm -f conftest*
  8076. LIBS="$ac_save_LIBS"
  8077. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8078. echo "$ac_t""yes" 1>&6
  8079. ODBCLIB="$ODBCLIB -liodbc "
  8080. else
  8081. echo "$ac_t""no" 1>&6
  8082. LDFLAGS=${ac_save_ldflags}
  8083. ac_save_cflags="$CFLAGS"
  8084. CFLAGS="$CFLAGS $ODBCINC"
  8085. ac_save_ldflags="$LDFLAGS"
  8086. ac_save_libs="$LIBS"
  8087. echo $ac_n "checking for ODBC library""... $ac_c" 1>&6
  8088. echo "configure:10093: checking for ODBC library" >&5
  8089. LDFLAGS="$ODBCLIB $LDFLAGS"
  8090. LIBS="-lodbc32 "
  8091. cat > conftest.$ac_ext <<EOF
  8092. #line 10097 "configure"
  8093. #include "confdefs.h"
  8094. #include <windows.h>
  8095. #include <sql.h>
  8096. int main() {
  8097. SQLAllocEnv((SQLHENV *)0);
  8098. ; return 0; }
  8099. EOF
  8100. if { (eval echo configure:10105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8101. rm -rf conftest*
  8102. echo "$ac_t""found" 1>&6
  8103. ODBCLIB="$ODBCLIB -lodbc32 "
  8104. else
  8105. echo "configure: failed program was:" >&5
  8106. cat conftest.$ac_ext >&5
  8107. rm -rf conftest*
  8108. { echo "configure: error: *** Unable to locate ODBC library." 1>&2; exit 1; }
  8109. fi
  8110. rm -f conftest*
  8111. LIBS=${ac_save_libs}
  8112. LDFLAGS=${ac_save_ldflags}
  8113. CFLAGS="${ac_save_cflags}"
  8114. fi
  8115. LDFLAGS=${ac_save_ldflags}
  8116. fi
  8117. LDFLAGS=${ac_save_ldflags}
  8118. fi # $USE_ODBC
  8119. # Done checking ODBC
  8120. # Enable FFTW option
  8121. echo $ac_n "checking whether to use FFTW""... $ac_c" 1>&6
  8122. echo "configure:10154: checking whether to use FFTW" >&5
  8123. echo "$ac_t"""$with_fftw"" 1>&6
  8124. case "$with_fftw" in
  8125. "no") USE_FFTW= ;;
  8126. "yes") USE_FFTW="1" ;;
  8127. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8128. esac
  8129. FFTWINC=
  8130. FFTWLIB=
  8131. if test -n "$USE_FFTW"; then
  8132. # With FFTW includes directory
  8133. echo $ac_n "checking for location of FFTW includes""... $ac_c" 1>&6
  8134. echo "configure:10173: checking for location of FFTW includes" >&5
  8135. case "$with_fftw_includes" in
  8136. y | ye | yes | n | no)
  8137. { echo "configure: error: *** You must supply a directory to --with-fftw-includes." 1>&2; exit 1; }
  8138. ;;
  8139. esac
  8140. echo "$ac_t""$with_fftw_includes" 1>&6
  8141. if test -n "$with_fftw_includes" ; then
  8142. for dir in $with_fftw_includes; do
  8143. if test -d "$dir"; then
  8144. FFTWINC="$FFTWINC -I$dir"
  8145. else
  8146. { echo "configure: error: *** FFTW includes directory $dir does not exist." 1>&2; exit 1; }
  8147. fi
  8148. done
  8149. fi
  8150. ac_save_cppflags="$CPPFLAGS"
  8151. CPPFLAGS="$FFTWINC $CPPFLAGS"
  8152. for ac_hdr in fftw3.h
  8153. do
  8154. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8155. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8156. echo "configure:10199: checking for $ac_hdr" >&5
  8157. cat > conftest.$ac_ext <<EOF
  8158. #line 10202 "configure"
  8159. #include "confdefs.h"
  8160. #include <$ac_hdr>
  8161. EOF
  8162. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8163. { (eval echo configure:10207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8164. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8165. if test -z "$ac_err"; then
  8166. rm -rf conftest*
  8167. eval "ac_cv_header_$ac_safe=yes"
  8168. else
  8169. echo "$ac_err" >&5
  8170. echo "configure: failed program was:" >&5
  8171. cat conftest.$ac_ext >&5
  8172. rm -rf conftest*
  8173. eval "ac_cv_header_$ac_safe=no"
  8174. fi
  8175. rm -f conftest*
  8176. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8177. echo "$ac_t""yes" 1>&6
  8178. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8179. cat >> confdefs.h <<EOF
  8180. #define $ac_tr_hdr 1
  8181. EOF
  8182. else
  8183. echo "$ac_t""no" 1>&6
  8184. ac_save_cppflags="$CPPFLAGS"
  8185. CPPFLAGS=" $CPPFLAGS"
  8186. for ac_hdr in fftw.h
  8187. do
  8188. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8189. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8190. echo "configure:10235: checking for $ac_hdr" >&5
  8191. cat > conftest.$ac_ext <<EOF
  8192. #line 10238 "configure"
  8193. #include "confdefs.h"
  8194. #include <$ac_hdr>
  8195. EOF
  8196. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8197. { (eval echo configure:10243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8198. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8199. if test -z "$ac_err"; then
  8200. rm -rf conftest*
  8201. eval "ac_cv_header_$ac_safe=yes"
  8202. else
  8203. echo "$ac_err" >&5
  8204. echo "configure: failed program was:" >&5
  8205. cat conftest.$ac_ext >&5
  8206. rm -rf conftest*
  8207. eval "ac_cv_header_$ac_safe=no"
  8208. fi
  8209. rm -f conftest*
  8210. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8211. echo "$ac_t""yes" 1>&6
  8212. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8213. cat >> confdefs.h <<EOF
  8214. #define $ac_tr_hdr 1
  8215. EOF
  8216. else
  8217. echo "$ac_t""no" 1>&6
  8218. ac_save_cppflags="$CPPFLAGS"
  8219. CPPFLAGS=" $CPPFLAGS"
  8220. for ac_hdr in dfftw.h
  8221. do
  8222. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8223. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8224. echo "configure:10271: checking for $ac_hdr" >&5
  8225. cat > conftest.$ac_ext <<EOF
  8226. #line 10274 "configure"
  8227. #include "confdefs.h"
  8228. #include <$ac_hdr>
  8229. EOF
  8230. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8231. { (eval echo configure:10279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8232. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8233. if test -z "$ac_err"; then
  8234. rm -rf conftest*
  8235. eval "ac_cv_header_$ac_safe=yes"
  8236. else
  8237. echo "$ac_err" >&5
  8238. echo "configure: failed program was:" >&5
  8239. cat conftest.$ac_ext >&5
  8240. rm -rf conftest*
  8241. eval "ac_cv_header_$ac_safe=no"
  8242. fi
  8243. rm -f conftest*
  8244. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8245. echo "$ac_t""yes" 1>&6
  8246. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8247. cat >> confdefs.h <<EOF
  8248. #define $ac_tr_hdr 1
  8249. EOF
  8250. else
  8251. echo "$ac_t""no" 1>&6
  8252. { echo "configure: error: *** Unable to locate FFTW includes." 1>&2; exit 1; }
  8253. fi
  8254. done
  8255. CPPFLAGS=$ac_save_cppflags
  8256. fi
  8257. done
  8258. CPPFLAGS=$ac_save_cppflags
  8259. fi
  8260. done
  8261. CPPFLAGS=$ac_save_cppflags
  8262. # With FFTW library directory
  8263. echo $ac_n "checking for location of FFTW library""... $ac_c" 1>&6
  8264. echo "configure:10325: checking for location of FFTW library" >&5
  8265. case "$with_fftw_libs" in
  8266. y | ye | yes | n | no)
  8267. { echo "configure: error: *** You must supply a directory to --with-fftw-libs." 1>&2; exit 1; }
  8268. ;;
  8269. esac
  8270. echo "$ac_t""$with_fftw_libs" 1>&6
  8271. if test -n "$with_fftw_libs"; then
  8272. for dir in $with_fftw_libs; do
  8273. if test -d "$dir"; then
  8274. FFTWLIB="$FFTWLIB -L$dir"
  8275. else
  8276. { echo "configure: error: *** FFTW library directory $dir does not exist." 1>&2; exit 1; }
  8277. fi
  8278. done
  8279. fi
  8280. ac_save_ldflags="$LDFLAGS"
  8281. LDFLAGS="$FFTWLIB $LDFLAGS"
  8282. echo $ac_n "checking for fftw_execute in -lfftw3""... $ac_c" 1>&6
  8283. echo "configure:10350: checking for fftw_execute in -lfftw3" >&5
  8284. ac_lib_var=`echo fftw3'_'fftw_execute | sed 'y%./+-%__p_%'`
  8285. ac_save_LIBS="$LIBS"
  8286. LIBS="-lfftw3 $MATHLIB $LIBS"
  8287. cat > conftest.$ac_ext <<EOF
  8288. #line 10356 "configure"
  8289. #include "confdefs.h"
  8290. /* Override any gcc2 internal prototype to avoid an error. */
  8291. /* We use char because int might match the return type of a gcc2
  8292. builtin and then its argument prototype would still apply. */
  8293. char fftw_execute();
  8294. int main() {
  8295. fftw_execute()
  8296. ; return 0; }
  8297. EOF
  8298. if { (eval echo configure:10367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8299. rm -rf conftest*
  8300. eval "ac_cv_lib_$ac_lib_var=yes"
  8301. else
  8302. echo "configure: failed program was:" >&5
  8303. cat conftest.$ac_ext >&5
  8304. rm -rf conftest*
  8305. eval "ac_cv_lib_$ac_lib_var=no"
  8306. fi
  8307. rm -f conftest*
  8308. LIBS="$ac_save_LIBS"
  8309. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8310. echo "$ac_t""yes" 1>&6
  8311. FFTWLIB="$FFTWLIB -lfftw3 $MATHLIB"
  8312. else
  8313. echo "$ac_t""no" 1>&6
  8314. LDFLAGS=${ac_save_ldflags}
  8315. ac_save_ldflags="$LDFLAGS"
  8316. LDFLAGS="$FFTWLIB $LDFLAGS"
  8317. echo $ac_n "checking for fftwnd_one in -lfftw""... $ac_c" 1>&6
  8318. echo "configure:10392: checking for fftwnd_one in -lfftw" >&5
  8319. ac_lib_var=`echo fftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
  8320. ac_save_LIBS="$LIBS"
  8321. LIBS="-lfftw $MATHLIB $LIBS"
  8322. cat > conftest.$ac_ext <<EOF
  8323. #line 10398 "configure"
  8324. #include "confdefs.h"
  8325. /* Override any gcc2 internal prototype to avoid an error. */
  8326. /* We use char because int might match the return type of a gcc2
  8327. builtin and then its argument prototype would still apply. */
  8328. char fftwnd_one();
  8329. int main() {
  8330. fftwnd_one()
  8331. ; return 0; }
  8332. EOF
  8333. if { (eval echo configure:10409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8334. rm -rf conftest*
  8335. eval "ac_cv_lib_$ac_lib_var=yes"
  8336. else
  8337. echo "configure: failed program was:" >&5
  8338. cat conftest.$ac_ext >&5
  8339. rm -rf conftest*
  8340. eval "ac_cv_lib_$ac_lib_var=no"
  8341. fi
  8342. rm -f conftest*
  8343. LIBS="$ac_save_LIBS"
  8344. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8345. echo "$ac_t""yes" 1>&6
  8346. FFTWLIB="$FFTWLIB -lfftw $MATHLIB"
  8347. else
  8348. echo "$ac_t""no" 1>&6
  8349. LDFLAGS=${ac_save_ldflags}
  8350. ac_save_ldflags="$LDFLAGS"
  8351. LDFLAGS="$FFTWLIB $LDFLAGS"
  8352. echo $ac_n "checking for fftwnd_one in -ldfftw""... $ac_c" 1>&6
  8353. echo "configure:10434: checking for fftwnd_one in -ldfftw" >&5
  8354. ac_lib_var=`echo dfftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
  8355. ac_save_LIBS="$LIBS"
  8356. LIBS="-ldfftw $MATHLIB $LIBS"
  8357. cat > conftest.$ac_ext <<EOF
  8358. #line 10440 "configure"
  8359. #include "confdefs.h"
  8360. /* Override any gcc2 internal prototype to avoid an error. */
  8361. /* We use char because int might match the return type of a gcc2
  8362. builtin and then its argument prototype would still apply. */
  8363. char fftwnd_one();
  8364. int main() {
  8365. fftwnd_one()
  8366. ; return 0; }
  8367. EOF
  8368. if { (eval echo configure:10451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8369. rm -rf conftest*
  8370. eval "ac_cv_lib_$ac_lib_var=yes"
  8371. else
  8372. echo "configure: failed program was:" >&5
  8373. cat conftest.$ac_ext >&5
  8374. rm -rf conftest*
  8375. eval "ac_cv_lib_$ac_lib_var=no"
  8376. fi
  8377. rm -f conftest*
  8378. LIBS="$ac_save_LIBS"
  8379. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8380. echo "$ac_t""yes" 1>&6
  8381. FFTWLIB="$FFTWLIB -ldfftw $MATHLIB"
  8382. else
  8383. echo "$ac_t""no" 1>&6
  8384. LDFLAGS=${ac_save_ldflags}
  8385. { echo "configure: error: *** Unable to locate FFTW library." 1>&2; exit 1; }
  8386. fi
  8387. LDFLAGS=${ac_save_ldflags}
  8388. fi
  8389. LDFLAGS=${ac_save_ldflags}
  8390. fi
  8391. LDFLAGS=${ac_save_ldflags}
  8392. fi # $USE_FFTW
  8393. # Done checking FFTW
  8394. # Enable BLAS option
  8395. echo $ac_n "checking whether to use BLAS""... $ac_c" 1>&6
  8396. echo "configure:10508: checking whether to use BLAS" >&5
  8397. echo "$ac_t"""$with_blas"" 1>&6
  8398. case "$with_blas" in
  8399. "no") USE_BLAS= ;;
  8400. "yes") USE_BLAS="1" ;;
  8401. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8402. esac
  8403. BLASLIB=
  8404. BLASINC=
  8405. if test -n "$USE_BLAS"; then
  8406. # With BLAS includes directory
  8407. # BLAS doesn't have includes (FORTRAN library)
  8408. # With BLAS library directory
  8409. echo $ac_n "checking for location of BLAS includes""... $ac_c" 1>&6
  8410. echo "configure:10529: checking for location of BLAS includes" >&5
  8411. case "$with_blas_includes" in
  8412. y | ye | yes | n | no)
  8413. { echo "configure: error: *** You must supply a directory to --with-blas-includes." 1>&2; exit 1; }
  8414. ;;
  8415. esac
  8416. echo "$ac_t""$with_blas_includes" 1>&6
  8417. if test -n "$with_blas_includes" ; then
  8418. for dir in $with_blas_includes; do
  8419. if test -d "$dir"; then
  8420. BLASINC="$BLASINC -I$dir"
  8421. else
  8422. { echo "configure: error: *** BLAS includes directory $dir does not exist." 1>&2; exit 1; }
  8423. fi
  8424. done
  8425. fi
  8426. echo $ac_n "checking for location of BLAS library""... $ac_c" 1>&6
  8427. echo "configure:10549: checking for location of BLAS library" >&5
  8428. case "$with_blas_libs" in
  8429. y | ye | yes | n | no)
  8430. { echo "configure: error: *** You must supply a directory to --with-blas-libs." 1>&2; exit 1; }
  8431. ;;
  8432. esac
  8433. echo "$ac_t""$with_blas_libs" 1>&6
  8434. if test -n "$with_blas_libs"; then
  8435. for dir in $with_blas_libs; do
  8436. if test -d "$dir"; then
  8437. BLASLIB="$BLASLIB -L$dir"
  8438. else
  8439. { echo "configure: error: *** BLAS library directory $dir does not exist." 1>&2; exit 1; }
  8440. fi
  8441. done
  8442. fi
  8443. # See if cblas.h exists (CBLAS,ATLAS,others)
  8444. save_CPPFLAGS="$CPPFLAGS"
  8445. CPPFLAGS="$BLASINC $CPPFLAGS"
  8446. for ac_hdr in cblas.h
  8447. do
  8448. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8449. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8450. echo "configure:10575: checking for $ac_hdr" >&5
  8451. cat > conftest.$ac_ext <<EOF
  8452. #line 10578 "configure"
  8453. #include "confdefs.h"
  8454. #include <$ac_hdr>
  8455. EOF
  8456. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8457. { (eval echo configure:10583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8458. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8459. if test -z "$ac_err"; then
  8460. rm -rf conftest*
  8461. eval "ac_cv_header_$ac_safe=yes"
  8462. else
  8463. echo "$ac_err" >&5
  8464. echo "configure: failed program was:" >&5
  8465. cat conftest.$ac_ext >&5
  8466. rm -rf conftest*
  8467. eval "ac_cv_header_$ac_safe=no"
  8468. fi
  8469. rm -f conftest*
  8470. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8471. echo "$ac_t""yes" 1>&6
  8472. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8473. cat >> confdefs.h <<EOF
  8474. #define $ac_tr_hdr 1
  8475. EOF
  8476. else
  8477. echo "$ac_t""no" 1>&6
  8478. fi
  8479. done
  8480. CPPFLAGS="$save_CPPFLAGS"
  8481. ac_save_ldflags="$LDFLAGS"
  8482. LDFLAGS="$BLASLIB $LDFLAGS"
  8483. echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
  8484. echo "configure:10618: checking for dnrm2_ in -lblas" >&5
  8485. ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
  8486. ac_save_LIBS="$LIBS"
  8487. LIBS="-lblas $MATHLIB $LIBS"
  8488. cat > conftest.$ac_ext <<EOF
  8489. #line 10624 "configure"
  8490. #include "confdefs.h"
  8491. /* Override any gcc2 internal prototype to avoid an error. */
  8492. /* We use char because int might match the return type of a gcc2
  8493. builtin and then its argument prototype would still apply. */
  8494. char dnrm2_();
  8495. int main() {
  8496. dnrm2_()
  8497. ; return 0; }
  8498. EOF
  8499. if { (eval echo configure:10635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8500. rm -rf conftest*
  8501. eval "ac_cv_lib_$ac_lib_var=yes"
  8502. else
  8503. echo "configure: failed program was:" >&5
  8504. cat conftest.$ac_ext >&5
  8505. rm -rf conftest*
  8506. eval "ac_cv_lib_$ac_lib_var=no"
  8507. fi
  8508. rm -f conftest*
  8509. LIBS="$ac_save_LIBS"
  8510. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8511. echo "$ac_t""yes" 1>&6
  8512. BLASLIB="$BLASLIB -lblas "
  8513. else
  8514. echo "$ac_t""no" 1>&6
  8515. echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
  8516. echo "configure:10654: checking for dnrm2_ in -lblas" >&5
  8517. ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
  8518. ac_save_LIBS="$LIBS"
  8519. LIBS="-lblas $MATHLIB -lg2c $LIBS"
  8520. cat > conftest.$ac_ext <<EOF
  8521. #line 10660 "configure"
  8522. #include "confdefs.h"
  8523. /* Override any gcc2 internal prototype to avoid an error. */
  8524. /* We use char because int might match the return type of a gcc2
  8525. builtin and then its argument prototype would still apply. */
  8526. char dnrm2_();
  8527. int main() {
  8528. dnrm2_()
  8529. ; return 0; }
  8530. EOF
  8531. if { (eval echo configure:10671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8532. rm -rf conftest*
  8533. eval "ac_cv_lib_$ac_lib_var=yes"
  8534. else
  8535. echo "configure: failed program was:" >&5
  8536. cat conftest.$ac_ext >&5
  8537. rm -rf conftest*
  8538. eval "ac_cv_lib_$ac_lib_var=no"
  8539. fi
  8540. rm -f conftest*
  8541. LIBS="$ac_save_LIBS"
  8542. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8543. echo "$ac_t""yes" 1>&6
  8544. BLASLIB="$BLASLIB -lblas -lg2c"
  8545. else
  8546. echo "$ac_t""no" 1>&6
  8547. LDFLAGS=${ac_save_ldflags}
  8548. { echo "configure: error: *** Unable to locate BLAS library." 1>&2; exit 1; }
  8549. fi
  8550. fi
  8551. LDFLAGS=${ac_save_ldflags}
  8552. blas_ok=no
  8553. # Check for ATLAS
  8554. save_LDFLAGS="$LDFLAGS"
  8555. LDFLAGS="$BLASLIB $LDFLAGS"
  8556. echo $ac_n "checking for ATL_xerbla in -latlas""... $ac_c" 1>&6
  8557. echo "configure:10715: checking for ATL_xerbla in -latlas" >&5
  8558. ac_lib_var=`echo atlas'_'ATL_xerbla | sed 'y%./+-%__p_%'`
  8559. ac_save_LIBS="$LIBS"
  8560. LIBS="-latlas $LIBS"
  8561. cat > conftest.$ac_ext <<EOF
  8562. #line 10721 "configure"
  8563. #include "confdefs.h"
  8564. /* Override any gcc2 internal prototype to avoid an error. */
  8565. /* We use char because int might match the return type of a gcc2
  8566. builtin and then its argument prototype would still apply. */
  8567. char ATL_xerbla();
  8568. int main() {
  8569. ATL_xerbla()
  8570. ; return 0; }
  8571. EOF
  8572. if { (eval echo configure:10732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8573. rm -rf conftest*
  8574. eval "ac_cv_lib_$ac_lib_var=yes"
  8575. else
  8576. echo "configure: failed program was:" >&5
  8577. cat conftest.$ac_ext >&5
  8578. rm -rf conftest*
  8579. eval "ac_cv_lib_$ac_lib_var=no"
  8580. fi
  8581. rm -f conftest*
  8582. LIBS="$ac_save_LIBS"
  8583. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8584. echo "$ac_t""yes" 1>&6
  8585. echo $ac_n "checking for sgemm_ in -lf77blas""... $ac_c" 1>&6
  8586. echo "configure:10747: checking for sgemm_ in -lf77blas" >&5
  8587. ac_lib_var=`echo f77blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  8588. ac_save_LIBS="$LIBS"
  8589. LIBS="-lf77blas -latlas $LIBS"
  8590. cat > conftest.$ac_ext <<EOF
  8591. #line 10753 "configure"
  8592. #include "confdefs.h"
  8593. /* Override any gcc2 internal prototype to avoid an error. */
  8594. /* We use char because int might match the return type of a gcc2
  8595. builtin and then its argument prototype would still apply. */
  8596. char sgemm_();
  8597. int main() {
  8598. sgemm_()
  8599. ; return 0; }
  8600. EOF
  8601. if { (eval echo configure:10764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8602. rm -rf conftest*
  8603. eval "ac_cv_lib_$ac_lib_var=yes"
  8604. else
  8605. echo "configure: failed program was:" >&5
  8606. cat conftest.$ac_ext >&5
  8607. rm -rf conftest*
  8608. eval "ac_cv_lib_$ac_lib_var=no"
  8609. fi
  8610. rm -f conftest*
  8611. LIBS="$ac_save_LIBS"
  8612. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8613. echo "$ac_t""yes" 1>&6
  8614. echo $ac_n "checking for cblas_dgemm in -lcblas""... $ac_c" 1>&6
  8615. echo "configure:10779: checking for cblas_dgemm in -lcblas" >&5
  8616. ac_lib_var=`echo cblas'_'cblas_dgemm | sed 'y%./+-%__p_%'`
  8617. ac_save_LIBS="$LIBS"
  8618. LIBS="-lcblas -lf77blas -latlas $LIBS"
  8619. cat > conftest.$ac_ext <<EOF
  8620. #line 10785 "configure"
  8621. #include "confdefs.h"
  8622. /* Override any gcc2 internal prototype to avoid an error. */
  8623. /* We use char because int might match the return type of a gcc2
  8624. builtin and then its argument prototype would still apply. */
  8625. char cblas_dgemm();
  8626. int main() {
  8627. cblas_dgemm()
  8628. ; return 0; }
  8629. EOF
  8630. if { (eval echo configure:10796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8631. rm -rf conftest*
  8632. eval "ac_cv_lib_$ac_lib_var=yes"
  8633. else
  8634. echo "configure: failed program was:" >&5
  8635. cat conftest.$ac_ext >&5
  8636. rm -rf conftest*
  8637. eval "ac_cv_lib_$ac_lib_var=no"
  8638. fi
  8639. rm -f conftest*
  8640. LIBS="$ac_save_LIBS"
  8641. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8642. echo "$ac_t""yes" 1>&6
  8643. blas_ok=yes; BLASLIB="-lcblas -lf77blas -latlas"
  8644. else
  8645. echo "$ac_t""no" 1>&6
  8646. fi
  8647. else
  8648. echo "$ac_t""no" 1>&6
  8649. fi
  8650. else
  8651. echo "$ac_t""no" 1>&6
  8652. fi
  8653. LDFLAGS="$save_LDFLAGS"
  8654. # Do we have ATLAS?
  8655. if test $blas_ok = yes; then
  8656. cat >> confdefs.h <<\EOF
  8657. #define HAVE_LIBATLAS 1
  8658. EOF
  8659. fi
  8660. # BLAS in Apple vecLib framework? (Mac OS-X)
  8661. # not dependent on APP build
  8662. #if test -n "$MACOSX_APP"; then
  8663. if test $blas_ok = no; then
  8664. vlib_flags="-framework vecLib"
  8665. save_LIBS="$LIBS"
  8666. LIBS="$vlib_flags $LIBS"
  8667. echo $ac_n "checking for sgemm in $vlib_flags""... $ac_c" 1>&6
  8668. echo "configure:10842: checking for sgemm in $vlib_flags" >&5
  8669. cat > conftest.$ac_ext <<EOF
  8670. #line 10844 "configure"
  8671. #include "confdefs.h"
  8672. int main() {
  8673. sgemm
  8674. ; return 0; }
  8675. EOF
  8676. if { (eval echo configure:10851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8677. rm -rf conftest*
  8678. blas_ok=yes; BLASLIB="$vlib_flags"
  8679. else
  8680. echo "configure: failed program was:" >&5
  8681. cat conftest.$ac_ext >&5
  8682. rm -rf conftest*
  8683. BLASLIB=""
  8684. fi
  8685. rm -f conftest*
  8686. echo "$ac_t""$blas_ok" 1>&6
  8687. LIBS="$save_LIBS"
  8688. fi
  8689. #fi # $MACOSX_APP
  8690. # BLAS in PhiPACK libraries? (requires generic BLAS, too)
  8691. if test $blas_ok = no; then
  8692. echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
  8693. echo "configure:10869: checking for sgemm_ in -lblas" >&5
  8694. ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  8695. ac_save_LIBS="$LIBS"
  8696. LIBS="-lblas $LIBS"
  8697. cat > conftest.$ac_ext <<EOF
  8698. #line 10875 "configure"
  8699. #include "confdefs.h"
  8700. /* Override any gcc2 internal prototype to avoid an error. */
  8701. /* We use char because int might match the return type of a gcc2
  8702. builtin and then its argument prototype would still apply. */
  8703. char sgemm_();
  8704. int main() {
  8705. sgemm_()
  8706. ; return 0; }
  8707. EOF
  8708. if { (eval echo configure:10886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8709. rm -rf conftest*
  8710. eval "ac_cv_lib_$ac_lib_var=yes"
  8711. else
  8712. echo "configure: failed program was:" >&5
  8713. cat conftest.$ac_ext >&5
  8714. rm -rf conftest*
  8715. eval "ac_cv_lib_$ac_lib_var=no"
  8716. fi
  8717. rm -f conftest*
  8718. LIBS="$ac_save_LIBS"
  8719. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8720. echo "$ac_t""yes" 1>&6
  8721. echo $ac_n "checking for dgemm_ in -ldgemm""... $ac_c" 1>&6
  8722. echo "configure:10901: checking for dgemm_ in -ldgemm" >&5
  8723. ac_lib_var=`echo dgemm'_'dgemm_ | sed 'y%./+-%__p_%'`
  8724. ac_save_LIBS="$LIBS"
  8725. LIBS="-ldgemm -lblas $LIBS"
  8726. cat > conftest.$ac_ext <<EOF
  8727. #line 10907 "configure"
  8728. #include "confdefs.h"
  8729. /* Override any gcc2 internal prototype to avoid an error. */
  8730. /* We use char because int might match the return type of a gcc2
  8731. builtin and then its argument prototype would still apply. */
  8732. char dgemm_();
  8733. int main() {
  8734. dgemm_()
  8735. ; return 0; }
  8736. EOF
  8737. if { (eval echo configure:10918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8738. rm -rf conftest*
  8739. eval "ac_cv_lib_$ac_lib_var=yes"
  8740. else
  8741. echo "configure: failed program was:" >&5
  8742. cat conftest.$ac_ext >&5
  8743. rm -rf conftest*
  8744. eval "ac_cv_lib_$ac_lib_var=no"
  8745. fi
  8746. rm -f conftest*
  8747. LIBS="$ac_save_LIBS"
  8748. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8749. echo "$ac_t""yes" 1>&6
  8750. echo $ac_n "checking for sgemm_ in -lsgemm""... $ac_c" 1>&6
  8751. echo "configure:10933: checking for sgemm_ in -lsgemm" >&5
  8752. ac_lib_var=`echo sgemm'_'sgemm_ | sed 'y%./+-%__p_%'`
  8753. ac_save_LIBS="$LIBS"
  8754. LIBS="-lsgemm -lblas $LIBS"
  8755. cat > conftest.$ac_ext <<EOF
  8756. #line 10939 "configure"
  8757. #include "confdefs.h"
  8758. /* Override any gcc2 internal prototype to avoid an error. */
  8759. /* We use char because int might match the return type of a gcc2
  8760. builtin and then its argument prototype would still apply. */
  8761. char sgemm_();
  8762. int main() {
  8763. sgemm_()
  8764. ; return 0; }
  8765. EOF
  8766. if { (eval echo configure:10950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8767. rm -rf conftest*
  8768. eval "ac_cv_lib_$ac_lib_var=yes"
  8769. else
  8770. echo "configure: failed program was:" >&5
  8771. cat conftest.$ac_ext >&5
  8772. rm -rf conftest*
  8773. eval "ac_cv_lib_$ac_lib_var=no"
  8774. fi
  8775. rm -f conftest*
  8776. LIBS="$ac_save_LIBS"
  8777. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8778. echo "$ac_t""yes" 1>&6
  8779. blas_ok=yes; BLASLIB="-lsgemm -ldgemm -lblas"
  8780. else
  8781. echo "$ac_t""no" 1>&6
  8782. fi
  8783. else
  8784. echo "$ac_t""no" 1>&6
  8785. fi
  8786. else
  8787. echo "$ac_t""no" 1>&6
  8788. fi
  8789. fi
  8790. # BLAS in Sun Performance library?
  8791. if test $blas_ok = no; then
  8792. if test "x$GCC" != xyes; then # only works with Sun CC
  8793. echo $ac_n "checking for acosp in -lsunmath""... $ac_c" 1>&6
  8794. echo "configure:10984: checking for acosp in -lsunmath" >&5
  8795. ac_lib_var=`echo sunmath'_'acosp | sed 'y%./+-%__p_%'`
  8796. ac_save_LIBS="$LIBS"
  8797. LIBS="-lsunmath $LIBS"
  8798. cat > conftest.$ac_ext <<EOF
  8799. #line 10990 "configure"
  8800. #include "confdefs.h"
  8801. /* Override any gcc2 internal prototype to avoid an error. */
  8802. /* We use char because int might match the return type of a gcc2
  8803. builtin and then its argument prototype would still apply. */
  8804. char acosp();
  8805. int main() {
  8806. acosp()
  8807. ; return 0; }
  8808. EOF
  8809. if { (eval echo configure:11001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8810. rm -rf conftest*
  8811. eval "ac_cv_lib_$ac_lib_var=yes"
  8812. else
  8813. echo "configure: failed program was:" >&5
  8814. cat conftest.$ac_ext >&5
  8815. rm -rf conftest*
  8816. eval "ac_cv_lib_$ac_lib_var=no"
  8817. fi
  8818. rm -f conftest*
  8819. LIBS="$ac_save_LIBS"
  8820. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8821. echo "$ac_t""yes" 1>&6
  8822. echo $ac_n "checking for sgemm_ in -lsunperf""... $ac_c" 1>&6
  8823. echo "configure:11016: checking for sgemm_ in -lsunperf" >&5
  8824. ac_lib_var=`echo sunperf'_'sgemm_ | sed 'y%./+-%__p_%'`
  8825. ac_save_LIBS="$LIBS"
  8826. LIBS="-lsunperf -lsunmath $LIBS"
  8827. cat > conftest.$ac_ext <<EOF
  8828. #line 11022 "configure"
  8829. #include "confdefs.h"
  8830. /* Override any gcc2 internal prototype to avoid an error. */
  8831. /* We use char because int might match the return type of a gcc2
  8832. builtin and then its argument prototype would still apply. */
  8833. char sgemm_();
  8834. int main() {
  8835. sgemm_()
  8836. ; return 0; }
  8837. EOF
  8838. if { (eval echo configure:11033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8839. rm -rf conftest*
  8840. eval "ac_cv_lib_$ac_lib_var=yes"
  8841. else
  8842. echo "configure: failed program was:" >&5
  8843. cat conftest.$ac_ext >&5
  8844. rm -rf conftest*
  8845. eval "ac_cv_lib_$ac_lib_var=no"
  8846. fi
  8847. rm -f conftest*
  8848. LIBS="$ac_save_LIBS"
  8849. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8850. echo "$ac_t""yes" 1>&6
  8851. blas_ok=yes; BLASLIB="-xlic_lib=sunperf -lsunmath"
  8852. else
  8853. echo "$ac_t""no" 1>&6
  8854. fi
  8855. else
  8856. echo "$ac_t""no" 1>&6
  8857. fi
  8858. fi
  8859. fi
  8860. # Generic BLAS library
  8861. if test $blas_ok = no; then
  8862. echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
  8863. echo "configure:11063: checking for sgemm_ in -lblas" >&5
  8864. ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  8865. ac_save_LIBS="$LIBS"
  8866. LIBS="-lblas $LIBS"
  8867. cat > conftest.$ac_ext <<EOF
  8868. #line 11069 "configure"
  8869. #include "confdefs.h"
  8870. /* Override any gcc2 internal prototype to avoid an error. */
  8871. /* We use char because int might match the return type of a gcc2
  8872. builtin and then its argument prototype would still apply. */
  8873. char sgemm_();
  8874. int main() {
  8875. sgemm_()
  8876. ; return 0; }
  8877. EOF
  8878. if { (eval echo configure:11080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8879. rm -rf conftest*
  8880. eval "ac_cv_lib_$ac_lib_var=yes"
  8881. else
  8882. echo "configure: failed program was:" >&5
  8883. cat conftest.$ac_ext >&5
  8884. rm -rf conftest*
  8885. eval "ac_cv_lib_$ac_lib_var=no"
  8886. fi
  8887. rm -f conftest*
  8888. LIBS="$ac_save_LIBS"
  8889. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8890. echo "$ac_t""yes" 1>&6
  8891. blas_ok=yes; BLASLIB="-lblas"
  8892. else
  8893. echo "$ac_t""no" 1>&6
  8894. fi
  8895. fi
  8896. if test $blas_ok = yes; then
  8897. cat >> confdefs.h <<\EOF
  8898. #define HAVE_LIBBLAS 1
  8899. EOF
  8900. fi
  8901. fi # $USE_BLAS
  8902. # Done checking BLAS
  8903. # Enable LAPACK option
  8904. echo $ac_n "checking whether to use LAPACK""... $ac_c" 1>&6
  8905. echo "configure:11119: checking whether to use LAPACK" >&5
  8906. echo "$ac_t"""$with_lapack"" 1>&6
  8907. case "$with_lapack" in
  8908. "no") USE_LAPACK= ;;
  8909. "yes") USE_LAPACK="1" ;;
  8910. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8911. esac
  8912. LAPACKLIB=
  8913. LAPACKINC=
  8914. # LAPACK is useless without BLAS
  8915. if test -n "$USE_BLAS"; then
  8916. if test -n "$USE_LAPACK"; then
  8917. # With LAPACK includes directory
  8918. # LAPACK doesn't have includes (FORTRAN library)
  8919. # With LAPACK library directory
  8920. lapack_ok=no
  8921. echo $ac_n "checking for location of LAPACK includes""... $ac_c" 1>&6
  8922. echo "configure:11144: checking for location of LAPACK includes" >&5
  8923. case "$with_lapack_includes" in
  8924. y | ye | yes | n | no)
  8925. { echo "configure: error: *** You must supply a directory to --with-lapack-includes." 1>&2; exit 1; }
  8926. ;;
  8927. esac
  8928. echo "$ac_t""$with_lapack_includes" 1>&6
  8929. if test -n "$with_lapack_includes" ; then
  8930. for dir in $with_lapack_includes; do
  8931. if test -d "$dir"; then
  8932. LAPACKINC="$LAPACKINC -I$dir"
  8933. else
  8934. { echo "configure: error: *** LAPACK includes directory $dir does not exist." 1>&2; exit 1; }
  8935. fi
  8936. done
  8937. fi
  8938. echo $ac_n "checking for location of LAPACK library""... $ac_c" 1>&6
  8939. echo "configure:11164: checking for location of LAPACK library" >&5
  8940. case "$with_lapack_libs" in
  8941. y | ye | yes | n | no)
  8942. { echo "configure: error: *** You must supply a directory to --with-lapack-libs." 1>&2; exit 1; }
  8943. ;;
  8944. esac
  8945. echo "$ac_t""$with_lapack_libs" 1>&6
  8946. if test -n "$with_lapack_libs"; then
  8947. for dir in $with_lapack_libs; do
  8948. if test -d "$dir"; then
  8949. LAPACKLIB="$LAPACKLIB -L$dir"
  8950. else
  8951. { echo "configure: error: *** LAPACK library directory $dir does not exist." 1>&2; exit 1; }
  8952. fi
  8953. done
  8954. fi
  8955. # See if clapack.h exists (ATLAS)
  8956. save_CPPFLAGS="$CPPFLAGS"
  8957. CPPFLAGS="$LAPACKINC $CPPFLAGS"
  8958. for ac_hdr in clapack.h
  8959. do
  8960. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8961. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8962. echo "configure:11190: checking for $ac_hdr" >&5
  8963. cat > conftest.$ac_ext <<EOF
  8964. #line 11193 "configure"
  8965. #include "confdefs.h"
  8966. #include <$ac_hdr>
  8967. EOF
  8968. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8969. { (eval echo configure:11198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8970. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8971. if test -z "$ac_err"; then
  8972. rm -rf conftest*
  8973. eval "ac_cv_header_$ac_safe=yes"
  8974. else
  8975. echo "$ac_err" >&5
  8976. echo "configure: failed program was:" >&5
  8977. cat conftest.$ac_ext >&5
  8978. rm -rf conftest*
  8979. eval "ac_cv_header_$ac_safe=no"
  8980. fi
  8981. rm -f conftest*
  8982. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8983. echo "$ac_t""yes" 1>&6
  8984. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8985. cat >> confdefs.h <<EOF
  8986. #define $ac_tr_hdr 1
  8987. EOF
  8988. else
  8989. echo "$ac_t""no" 1>&6
  8990. fi
  8991. done
  8992. CPPFLAGS="$save_CPPFLAGS"
  8993. # LAPACK linked to by default?
  8994. if test lapack_ok=no; then
  8995. save_LIBS="$LIBS"; LIBS="$LIBS $BLASLIB $MATHLIB $FLIBS"
  8996. save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
  8997. echo $ac_n "checking for dsegv_""... $ac_c" 1>&6
  8998. echo "configure:11230: checking for dsegv_" >&5
  8999. cat > conftest.$ac_ext <<EOF
  9000. #line 11233 "configure"
  9001. #include "confdefs.h"
  9002. /* System header to define __stub macros and hopefully few prototypes,
  9003. which can conflict with char dsegv_(); below. */
  9004. #include <assert.h>
  9005. /* Override any gcc2 internal prototype to avoid an error. */
  9006. /* We use char because int might match the return type of a gcc2
  9007. builtin and then its argument prototype would still apply. */
  9008. char dsegv_();
  9009. int main() {
  9010. /* The GNU C library defines this for functions which it implements
  9011. to always fail with ENOSYS. Some functions are actually named
  9012. something starting with __ and the normal name is an alias. */
  9013. #if defined (__stub_dsegv_) || defined (__stub___dsegv_)
  9014. choke me
  9015. #else
  9016. dsegv_();
  9017. #endif
  9018. ; return 0; }
  9019. EOF
  9020. if { (eval echo configure:11256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9021. rm -rf conftest*
  9022. eval "ac_cv_func_dsegv_=yes"
  9023. else
  9024. echo "configure: failed program was:" >&5
  9025. cat conftest.$ac_ext >&5
  9026. rm -rf conftest*
  9027. eval "ac_cv_func_dsegv_=no"
  9028. fi
  9029. rm -f conftest*
  9030. if eval "test \"`echo '$ac_cv_func_'dsegv_`\" = yes"; then
  9031. echo "$ac_t""yes" 1>&6
  9032. lapack_ok=yes
  9033. else
  9034. echo "$ac_t""no" 1>&6
  9035. fi
  9036. LIBS="$save_LIBS"
  9037. LDFLAGS="$save_LDFLAGS"
  9038. fi
  9039. # Generic LAPACK library?
  9040. if test $lapack_ok = no; then
  9041. save_libs="$LIBS"; LIBS="$BLASLIB $MATHLIB $LIBS"
  9042. save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
  9043. echo $ac_n "checking for desgv_ in -llapack""... $ac_c" 1>&6
  9044. echo "configure:11283: checking for desgv_ in -llapack" >&5
  9045. ac_lib_var=`echo lapack'_'desgv_ | sed 'y%./+-%__p_%'`
  9046. ac_save_LIBS="$LIBS"
  9047. LIBS="-llapack $FLIBS $LIBS"
  9048. cat > conftest.$ac_ext <<EOF
  9049. #line 11289 "configure"
  9050. #include "confdefs.h"
  9051. /* Override any gcc2 internal prototype to avoid an error. */
  9052. /* We use char because int might match the return type of a gcc2
  9053. builtin and then its argument prototype would still apply. */
  9054. char desgv_();
  9055. int main() {
  9056. desgv_()
  9057. ; return 0; }
  9058. EOF
  9059. if { (eval echo configure:11300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9060. rm -rf conftest*
  9061. eval "ac_cv_lib_$ac_lib_var=yes"
  9062. else
  9063. echo "configure: failed program was:" >&5
  9064. cat conftest.$ac_ext >&5
  9065. rm -rf conftest*
  9066. eval "ac_cv_lib_$ac_lib_var=no"
  9067. fi
  9068. rm -f conftest*
  9069. LIBS="$ac_save_LIBS"
  9070. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9071. echo "$ac_t""yes" 1>&6
  9072. lapack_ok=yes; LAPACKLIB="-llapack"
  9073. else
  9074. echo "$ac_t""no" 1>&6
  9075. fi
  9076. LIBS="$save_LIBS"
  9077. LDFLAGS="$save_LDFLAGS"
  9078. fi
  9079. if test $lapack_ok = no; then
  9080. ac_save_ldflags="$LDFLAGS"
  9081. LDFLAGS="$LAPACKLIB $LDFLAGS"
  9082. echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
  9083. echo "configure:11332: checking for dgesv_ in -llapack" >&5
  9084. ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
  9085. ac_save_LIBS="$LIBS"
  9086. LIBS="-llapack $BLASLIB $MATHLIB $LIBS"
  9087. cat > conftest.$ac_ext <<EOF
  9088. #line 11338 "configure"
  9089. #include "confdefs.h"
  9090. /* Override any gcc2 internal prototype to avoid an error. */
  9091. /* We use char because int might match the return type of a gcc2
  9092. builtin and then its argument prototype would still apply. */
  9093. char dgesv_();
  9094. int main() {
  9095. dgesv_()
  9096. ; return 0; }
  9097. EOF
  9098. if { (eval echo configure:11349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9099. rm -rf conftest*
  9100. eval "ac_cv_lib_$ac_lib_var=yes"
  9101. else
  9102. echo "configure: failed program was:" >&5
  9103. cat conftest.$ac_ext >&5
  9104. rm -rf conftest*
  9105. eval "ac_cv_lib_$ac_lib_var=no"
  9106. fi
  9107. rm -f conftest*
  9108. LIBS="$ac_save_LIBS"
  9109. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9110. echo "$ac_t""yes" 1>&6
  9111. LAPACKLIB="$LAPACKLIB -llapack "
  9112. else
  9113. echo "$ac_t""no" 1>&6
  9114. echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
  9115. echo "configure:11368: checking for dgesv_ in -llapack" >&5
  9116. ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
  9117. ac_save_LIBS="$LIBS"
  9118. LIBS="-llapack $BLASLIB $MATHLIB -lg2c $LIBS"
  9119. cat > conftest.$ac_ext <<EOF
  9120. #line 11374 "configure"
  9121. #include "confdefs.h"
  9122. /* Override any gcc2 internal prototype to avoid an error. */
  9123. /* We use char because int might match the return type of a gcc2
  9124. builtin and then its argument prototype would still apply. */
  9125. char dgesv_();
  9126. int main() {
  9127. dgesv_()
  9128. ; return 0; }
  9129. EOF
  9130. if { (eval echo configure:11385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9131. rm -rf conftest*
  9132. eval "ac_cv_lib_$ac_lib_var=yes"
  9133. else
  9134. echo "configure: failed program was:" >&5
  9135. cat conftest.$ac_ext >&5
  9136. rm -rf conftest*
  9137. eval "ac_cv_lib_$ac_lib_var=no"
  9138. fi
  9139. rm -f conftest*
  9140. LIBS="$ac_save_LIBS"
  9141. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9142. echo "$ac_t""yes" 1>&6
  9143. LAPACKLIB="$LAPACKLIB -llapack -lg2c"
  9144. else
  9145. echo "$ac_t""no" 1>&6
  9146. LDFLAGS=${ac_save_ldflags}
  9147. { echo "configure: error: *** Unable to locate LAPACK library." 1>&2; exit 1; }
  9148. fi
  9149. fi
  9150. LDFLAGS=${ac_save_ldflags}
  9151. fi
  9152. cat >> confdefs.h <<\EOF
  9153. #define HAVE_LIBLAPACK 1
  9154. EOF
  9155. fi # $USE_LAPACK
  9156. fi # $USE_BLAS
  9157. # Done checking LAPACK
  9158. # Enable Cairo display driver option
  9159. echo $ac_n "checking whether to use Cairo""... $ac_c" 1>&6
  9160. echo "configure:11441: checking whether to use Cairo" >&5
  9161. echo "$ac_t"""$with_cairo"" 1>&6
  9162. case "$with_cairo" in
  9163. "no") USE_CAIRO= ;;
  9164. "yes") USE_CAIRO="1" ;;
  9165. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9166. esac
  9167. CAIROINC=
  9168. CAIROLIB=
  9169. if test -n "$USE_CAIRO"; then
  9170. cairo="cairo"
  9171. pkgs="cairo-ft cairo-fc cairo-pdf cairo-ps cairo-svg fontconfig"
  9172. if test -n "$USE_X11"; then
  9173. pkgs="$pkgs cairo-xlib cairo-xlib-xrender"
  9174. fi
  9175. for pkg in $pkgs ; do
  9176. if pkg-config --exists $pkg ; then
  9177. cairo="$cairo $pkg"
  9178. fi
  9179. done
  9180. # With Cairo includes directory
  9181. #FIXME: somehow quote dirs with spaces in $cairo ?
  9182. CAIROINC=`pkg-config --cflags $cairo`
  9183. echo $ac_n "checking for location of cairo includes""... $ac_c" 1>&6
  9184. echo "configure:11473: checking for location of cairo includes" >&5
  9185. case "$with_cairo_includes" in
  9186. y | ye | yes | n | no)
  9187. { echo "configure: error: *** You must supply a directory to --with-cairo-includes." 1>&2; exit 1; }
  9188. ;;
  9189. esac
  9190. echo "$ac_t""$with_cairo_includes" 1>&6
  9191. if test -n "$with_cairo_includes" ; then
  9192. for dir in $with_cairo_includes; do
  9193. if test -d "$dir"; then
  9194. CAIROINC="$CAIROINC -I$dir"
  9195. else
  9196. { echo "configure: error: *** cairo includes directory $dir does not exist." 1>&2; exit 1; }
  9197. fi
  9198. done
  9199. fi
  9200. ac_save_cppflags="$CPPFLAGS"
  9201. CPPFLAGS="$CAIROINC $CPPFLAGS"
  9202. for ac_hdr in cairo.h
  9203. do
  9204. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9205. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9206. echo "configure:11499: checking for $ac_hdr" >&5
  9207. cat > conftest.$ac_ext <<EOF
  9208. #line 11502 "configure"
  9209. #include "confdefs.h"
  9210. #include <$ac_hdr>
  9211. EOF
  9212. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9213. { (eval echo configure:11507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9214. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9215. if test -z "$ac_err"; then
  9216. rm -rf conftest*
  9217. eval "ac_cv_header_$ac_safe=yes"
  9218. else
  9219. echo "$ac_err" >&5
  9220. echo "configure: failed program was:" >&5
  9221. cat conftest.$ac_ext >&5
  9222. rm -rf conftest*
  9223. eval "ac_cv_header_$ac_safe=no"
  9224. fi
  9225. rm -f conftest*
  9226. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9227. echo "$ac_t""yes" 1>&6
  9228. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9229. cat >> confdefs.h <<EOF
  9230. #define $ac_tr_hdr 1
  9231. EOF
  9232. else
  9233. echo "$ac_t""no" 1>&6
  9234. { echo "configure: error: *** Unable to locate Cairo includes." 1>&2; exit 1; }
  9235. fi
  9236. done
  9237. CPPFLAGS=$ac_save_cppflags
  9238. # With Cairo library directory
  9239. CAIROLIB=`pkg-config --libs $cairo`
  9240. echo $ac_n "checking for location of cairo library""... $ac_c" 1>&6
  9241. echo "configure:11543: checking for location of cairo library" >&5
  9242. case "$with_cairo_libs" in
  9243. y | ye | yes | n | no)
  9244. { echo "configure: error: *** You must supply a directory to --with-cairo-libs." 1>&2; exit 1; }
  9245. ;;
  9246. esac
  9247. echo "$ac_t""$with_cairo_libs" 1>&6
  9248. if test -n "$with_cairo_libs"; then
  9249. for dir in $with_cairo_libs; do
  9250. if test -d "$dir"; then
  9251. CAIROLIB="$CAIROLIB -L$dir"
  9252. else
  9253. { echo "configure: error: *** cairo library directory $dir does not exist." 1>&2; exit 1; }
  9254. fi
  9255. done
  9256. fi
  9257. echo $ac_n "checking for cairo linking flags""... $ac_c" 1>&6
  9258. echo "configure:11563: checking for cairo linking flags" >&5
  9259. case "$with_cairo_ldflags" in
  9260. y | ye | yes | n | no)
  9261. { echo "configure: error: *** You must supply a directory to --with-cairo-ldflags." 1>&2; exit 1; }
  9262. ;;
  9263. esac
  9264. echo "$ac_t""$with_cairo_ldflags" 1>&6
  9265. CAIROLIB="$CAIROLIB $with_cairo_ldflags"
  9266. ac_save_libs="$LIBS"
  9267. ac_save_ldflags="$LDFLAGS"
  9268. LIBS=" $CAIROLIB $LIBS"
  9269. LDFLAGS=" $LDFLAGS"
  9270. echo $ac_n "checking for cairo_create""... $ac_c" 1>&6
  9271. echo "configure:11579: checking for cairo_create" >&5
  9272. cat > conftest.$ac_ext <<EOF
  9273. #line 11582 "configure"
  9274. #include "confdefs.h"
  9275. /* System header to define __stub macros and hopefully few prototypes,
  9276. which can conflict with char cairo_create(); below. */
  9277. #include <assert.h>
  9278. /* Override any gcc2 internal prototype to avoid an error. */
  9279. /* We use char because int might match the return type of a gcc2
  9280. builtin and then its argument prototype would still apply. */
  9281. char cairo_create();
  9282. int main() {
  9283. /* The GNU C library defines this for functions which it implements
  9284. to always fail with ENOSYS. Some functions are actually named
  9285. something starting with __ and the normal name is an alias. */
  9286. #if defined (__stub_cairo_create) || defined (__stub___cairo_create)
  9287. choke me
  9288. #else
  9289. cairo_create();
  9290. #endif
  9291. ; return 0; }
  9292. EOF
  9293. if { (eval echo configure:11605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9294. rm -rf conftest*
  9295. eval "ac_cv_func_cairo_create=yes"
  9296. else
  9297. echo "configure: failed program was:" >&5
  9298. cat conftest.$ac_ext >&5
  9299. rm -rf conftest*
  9300. eval "ac_cv_func_cairo_create=no"
  9301. fi
  9302. rm -f conftest*
  9303. if eval "test \"`echo '$ac_cv_func_'cairo_create`\" = yes"; then
  9304. echo "$ac_t""yes" 1>&6
  9305. :
  9306. else
  9307. echo "$ac_t""no" 1>&6
  9308. { echo "configure: error: *** Unable to locate cairo_create." 1>&2; exit 1; }
  9309. fi
  9310. LIBS=${ac_save_libs}
  9311. LDFLAGS=${ac_save_ldflags}
  9312. ac_save_libs="$LIBS"
  9313. ac_save_ldflags="$LDFLAGS"
  9314. LIBS=" $CAIROLIB $LIBS"
  9315. LDFLAGS=" $LDFLAGS"
  9316. echo $ac_n "checking for cairo_xlib_surface_create_with_xrender_format""... $ac_c" 1>&6
  9317. echo "configure:11639: checking for cairo_xlib_surface_create_with_xrender_format" >&5
  9318. cat > conftest.$ac_ext <<EOF
  9319. #line 11642 "configure"
  9320. #include "confdefs.h"
  9321. /* System header to define __stub macros and hopefully few prototypes,
  9322. which can conflict with char cairo_xlib_surface_create_with_xrender_format(); below. */
  9323. #include <assert.h>
  9324. /* Override any gcc2 internal prototype to avoid an error. */
  9325. /* We use char because int might match the return type of a gcc2
  9326. builtin and then its argument prototype would still apply. */
  9327. char cairo_xlib_surface_create_with_xrender_format();
  9328. int main() {
  9329. /* The GNU C library defines this for functions which it implements
  9330. to always fail with ENOSYS. Some functions are actually named
  9331. something starting with __ and the normal name is an alias. */
  9332. #if defined (__stub_cairo_xlib_surface_create_with_xrender_format) || defined (__stub___cairo_xlib_surface_create_with_xrender_format)
  9333. choke me
  9334. #else
  9335. cairo_xlib_surface_create_with_xrender_format();
  9336. #endif
  9337. ; return 0; }
  9338. EOF
  9339. if { (eval echo configure:11665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9340. rm -rf conftest*
  9341. eval "ac_cv_func_cairo_xlib_surface_create_with_xrender_format=yes"
  9342. else
  9343. echo "configure: failed program was:" >&5
  9344. cat conftest.$ac_ext >&5
  9345. rm -rf conftest*
  9346. eval "ac_cv_func_cairo_xlib_surface_create_with_xrender_format=no"
  9347. fi
  9348. rm -f conftest*
  9349. if eval "test \"`echo '$ac_cv_func_'cairo_xlib_surface_create_with_xrender_format`\" = yes"; then
  9350. echo "$ac_t""yes" 1>&6
  9351. CAIRO_HAS_XRENDER=1
  9352. else
  9353. echo "$ac_t""no" 1>&6
  9354. CAIRO_HAS_XRENDER=
  9355. fi
  9356. LIBS=${ac_save_libs}
  9357. LDFLAGS=${ac_save_ldflags}
  9358. ac_save_libs="$LIBS"
  9359. ac_save_ldflags="$LDFLAGS"
  9360. LIBS=" $CAIROLIB $LIBS"
  9361. LDFLAGS=" $LDFLAGS"
  9362. echo $ac_n "checking for cairo_xlib_surface_get_xrender_format""... $ac_c" 1>&6
  9363. echo "configure:11698: checking for cairo_xlib_surface_get_xrender_format" >&5
  9364. cat > conftest.$ac_ext <<EOF
  9365. #line 11701 "configure"
  9366. #include "confdefs.h"
  9367. /* System header to define __stub macros and hopefully few prototypes,
  9368. which can conflict with char cairo_xlib_surface_get_xrender_format(); below. */
  9369. #include <assert.h>
  9370. /* Override any gcc2 internal prototype to avoid an error. */
  9371. /* We use char because int might match the return type of a gcc2
  9372. builtin and then its argument prototype would still apply. */
  9373. char cairo_xlib_surface_get_xrender_format();
  9374. int main() {
  9375. /* The GNU C library defines this for functions which it implements
  9376. to always fail with ENOSYS. Some functions are actually named
  9377. something starting with __ and the normal name is an alias. */
  9378. #if defined (__stub_cairo_xlib_surface_get_xrender_format) || defined (__stub___cairo_xlib_surface_get_xrender_format)
  9379. choke me
  9380. #else
  9381. cairo_xlib_surface_get_xrender_format();
  9382. #endif
  9383. ; return 0; }
  9384. EOF
  9385. if { (eval echo configure:11724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9386. rm -rf conftest*
  9387. eval "ac_cv_func_cairo_xlib_surface_get_xrender_format=yes"
  9388. else
  9389. echo "configure: failed program was:" >&5
  9390. cat conftest.$ac_ext >&5
  9391. rm -rf conftest*
  9392. eval "ac_cv_func_cairo_xlib_surface_get_xrender_format=no"
  9393. fi
  9394. rm -f conftest*
  9395. if eval "test \"`echo '$ac_cv_func_'cairo_xlib_surface_get_xrender_format`\" = yes"; then
  9396. echo "$ac_t""yes" 1>&6
  9397. CAIRO_HAS_XRENDER_SURFACE=1
  9398. else
  9399. echo "$ac_t""no" 1>&6
  9400. CAIRO_HAS_XRENDER_SURFACE=
  9401. fi
  9402. LIBS=${ac_save_libs}
  9403. LDFLAGS=${ac_save_ldflags}
  9404. CAIROLIB="$CAIROLIB $CAIROLDFLAGS"
  9405. fi # $USE_CAIRO
  9406. # Done checking Cairo
  9407. # Enable FreeType option
  9408. echo $ac_n "checking whether to use FreeType""... $ac_c" 1>&6
  9409. echo "configure:11766: checking whether to use FreeType" >&5
  9410. echo "$ac_t"""$with_freetype"" 1>&6
  9411. case "$with_freetype" in
  9412. "no") USE_FREETYPE= ;;
  9413. "yes") USE_FREETYPE="1" ;;
  9414. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9415. esac
  9416. FTINC=
  9417. FTLIB=
  9418. if test -n "$USE_FREETYPE"; then
  9419. # With FreeType includes directory
  9420. echo $ac_n "checking for location of FreeType includes""... $ac_c" 1>&6
  9421. echo "configure:11785: checking for location of FreeType includes" >&5
  9422. case "$with_freetype_includes" in
  9423. y | ye | yes | n | no)
  9424. { echo "configure: error: *** You must supply a directory to --with-freetype-includes." 1>&2; exit 1; }
  9425. ;;
  9426. esac
  9427. echo "$ac_t""$with_freetype_includes" 1>&6
  9428. if test -n "$with_freetype_includes" ; then
  9429. for dir in $with_freetype_includes; do
  9430. if test -d "$dir"; then
  9431. FTINC="$FTINC -I$dir"
  9432. else
  9433. { echo "configure: error: *** FreeType includes directory $dir does not exist." 1>&2; exit 1; }
  9434. fi
  9435. done
  9436. fi
  9437. ac_save_cppflags="$CPPFLAGS"
  9438. CPPFLAGS="$FTINC $CPPFLAGS"
  9439. for ac_hdr in ft2build.h
  9440. do
  9441. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9442. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9443. echo "configure:11811: checking for $ac_hdr" >&5
  9444. cat > conftest.$ac_ext <<EOF
  9445. #line 11814 "configure"
  9446. #include "confdefs.h"
  9447. #include <$ac_hdr>
  9448. EOF
  9449. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9450. { (eval echo configure:11819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9451. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9452. if test -z "$ac_err"; then
  9453. rm -rf conftest*
  9454. eval "ac_cv_header_$ac_safe=yes"
  9455. else
  9456. echo "$ac_err" >&5
  9457. echo "configure: failed program was:" >&5
  9458. cat conftest.$ac_ext >&5
  9459. rm -rf conftest*
  9460. eval "ac_cv_header_$ac_safe=no"
  9461. fi
  9462. rm -f conftest*
  9463. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9464. echo "$ac_t""yes" 1>&6
  9465. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9466. cat >> confdefs.h <<EOF
  9467. #define $ac_tr_hdr 1
  9468. EOF
  9469. else
  9470. echo "$ac_t""no" 1>&6
  9471. { echo "configure: error: *** Unable to locate FreeType includes." 1>&2; exit 1; }
  9472. fi
  9473. done
  9474. CPPFLAGS=$ac_save_cppflags
  9475. # With FreeType library directory
  9476. echo $ac_n "checking for location of FreeType library""... $ac_c" 1>&6
  9477. echo "configure:11853: checking for location of FreeType library" >&5
  9478. case "$with_freetype_libs" in
  9479. y | ye | yes | n | no)
  9480. { echo "configure: error: *** You must supply a directory to --with-freetype-libs." 1>&2; exit 1; }
  9481. ;;
  9482. esac
  9483. echo "$ac_t""$with_freetype_libs" 1>&6
  9484. if test -n "$with_freetype_libs"; then
  9485. for dir in $with_freetype_libs; do
  9486. if test -d "$dir"; then
  9487. FTLIB="$FTLIB -L$dir"
  9488. else
  9489. { echo "configure: error: *** FreeType library directory $dir does not exist." 1>&2; exit 1; }
  9490. fi
  9491. done
  9492. fi
  9493. ac_save_ldflags="$LDFLAGS"
  9494. LDFLAGS="$FTLIB $LDFLAGS"
  9495. echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
  9496. echo "configure:11878: checking for FT_Init_FreeType in -lfreetype" >&5
  9497. ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
  9498. ac_save_LIBS="$LIBS"
  9499. LIBS="-lfreetype $LIBS"
  9500. cat > conftest.$ac_ext <<EOF
  9501. #line 11884 "configure"
  9502. #include "confdefs.h"
  9503. /* Override any gcc2 internal prototype to avoid an error. */
  9504. /* We use char because int might match the return type of a gcc2
  9505. builtin and then its argument prototype would still apply. */
  9506. char FT_Init_FreeType();
  9507. int main() {
  9508. FT_Init_FreeType()
  9509. ; return 0; }
  9510. EOF
  9511. if { (eval echo configure:11895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9512. rm -rf conftest*
  9513. eval "ac_cv_lib_$ac_lib_var=yes"
  9514. else
  9515. echo "configure: failed program was:" >&5
  9516. cat conftest.$ac_ext >&5
  9517. rm -rf conftest*
  9518. eval "ac_cv_lib_$ac_lib_var=no"
  9519. fi
  9520. rm -f conftest*
  9521. LIBS="$ac_save_LIBS"
  9522. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9523. echo "$ac_t""yes" 1>&6
  9524. FTLIB="$FTLIB -lfreetype "
  9525. else
  9526. echo "$ac_t""no" 1>&6
  9527. LDFLAGS=${ac_save_ldflags}
  9528. { echo "configure: error: *** Unable to locate FreeType library." 1>&2; exit 1; }
  9529. fi
  9530. LDFLAGS=${ac_save_ldflags}
  9531. fi # $USE_FREETYPE
  9532. # Done checking FreeType
  9533. # Enable NLS option
  9534. echo $ac_n "checking whether to use NLS""... $ac_c" 1>&6
  9535. echo "configure:11936: checking whether to use NLS" >&5
  9536. echo "$ac_t"""$with_nls"" 1>&6
  9537. case "$with_nls" in
  9538. "no") USE_NLS= ;;
  9539. "yes") USE_NLS="1" ;;
  9540. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9541. esac
  9542. INTLLIB=
  9543. HAVE_NLS=
  9544. if test -n "${USE_NLS}" ; then
  9545. cat >> confdefs.h <<\EOF
  9546. #define USE_NLS 1
  9547. EOF
  9548. echo $ac_n "checking for gettext""... $ac_c" 1>&6
  9549. echo "configure:11956: checking for gettext" >&5
  9550. cat > conftest.$ac_ext <<EOF
  9551. #line 11959 "configure"
  9552. #include "confdefs.h"
  9553. /* System header to define __stub macros and hopefully few prototypes,
  9554. which can conflict with char gettext(); below. */
  9555. #include <assert.h>
  9556. /* Override any gcc2 internal prototype to avoid an error. */
  9557. /* We use char because int might match the return type of a gcc2
  9558. builtin and then its argument prototype would still apply. */
  9559. char gettext();
  9560. int main() {
  9561. /* The GNU C library defines this for functions which it implements
  9562. to always fail with ENOSYS. Some functions are actually named
  9563. something starting with __ and the normal name is an alias. */
  9564. #if defined (__stub_gettext) || defined (__stub___gettext)
  9565. choke me
  9566. #else
  9567. gettext();
  9568. #endif
  9569. ; return 0; }
  9570. EOF
  9571. if { (eval echo configure:11982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9572. rm -rf conftest*
  9573. eval "ac_cv_func_gettext=yes"
  9574. else
  9575. echo "configure: failed program was:" >&5
  9576. cat conftest.$ac_ext >&5
  9577. rm -rf conftest*
  9578. eval "ac_cv_func_gettext=no"
  9579. fi
  9580. rm -f conftest*
  9581. if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
  9582. echo "$ac_t""yes" 1>&6
  9583. INTLLIB=
  9584. else
  9585. echo "$ac_t""no" 1>&6
  9586. echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
  9587. echo "configure:12000: checking for gettext in -lintl" >&5
  9588. ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
  9589. ac_save_LIBS="$LIBS"
  9590. LIBS="-lintl $LIBS"
  9591. cat > conftest.$ac_ext <<EOF
  9592. #line 12006 "configure"
  9593. #include "confdefs.h"
  9594. /* Override any gcc2 internal prototype to avoid an error. */
  9595. /* We use char because int might match the return type of a gcc2
  9596. builtin and then its argument prototype would still apply. */
  9597. char gettext();
  9598. int main() {
  9599. gettext()
  9600. ; return 0; }
  9601. EOF
  9602. if { (eval echo configure:12017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9603. rm -rf conftest*
  9604. eval "ac_cv_lib_$ac_lib_var=yes"
  9605. else
  9606. echo "configure: failed program was:" >&5
  9607. cat conftest.$ac_ext >&5
  9608. rm -rf conftest*
  9609. eval "ac_cv_lib_$ac_lib_var=no"
  9610. fi
  9611. rm -f conftest*
  9612. LIBS="$ac_save_LIBS"
  9613. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9614. echo "$ac_t""yes" 1>&6
  9615. INTLLIB=-lintl
  9616. else
  9617. echo "$ac_t""no" 1>&6
  9618. { echo "configure: error: *** Unable to locate gettext() function." 1>&2; exit 1; }
  9619. fi
  9620. fi
  9621. HAVE_NLS=1
  9622. fi
  9623. # Enable C++ option
  9624. echo $ac_n "checking whether to use C++""... $ac_c" 1>&6
  9625. echo "configure:12052: checking whether to use C++" >&5
  9626. echo "$ac_t"""$with_cxx"" 1>&6
  9627. case "$with_cxx" in
  9628. "no") USE_CXX= ;;
  9629. "yes") USE_CXX="1" ;;
  9630. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9631. esac
  9632. if test -n "$USE_CXX"; then
  9633. for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
  9634. do
  9635. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9636. set dummy $ac_prog; ac_word=$2
  9637. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  9638. echo "configure:12068: checking for $ac_word" >&5
  9639. if test -n "$CXX"; then
  9640. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  9641. else
  9642. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  9643. ac_dummy="$PATH"
  9644. for ac_dir in $ac_dummy; do
  9645. test -z "$ac_dir" && ac_dir=.
  9646. if test -f $ac_dir/$ac_word; then
  9647. ac_cv_prog_CXX="$ac_prog"
  9648. break
  9649. fi
  9650. done
  9651. IFS="$ac_save_ifs"
  9652. fi
  9653. CXX="$ac_cv_prog_CXX"
  9654. if test -n "$CXX"; then
  9655. echo "$ac_t""$CXX" 1>&6
  9656. else
  9657. echo "$ac_t""no" 1>&6
  9658. fi
  9659. test -n "$CXX" && break
  9660. done
  9661. test -n "$CXX" || CXX="gcc"
  9662. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  9663. echo "configure:12097: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  9664. ac_ext=C
  9665. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  9666. ac_cpp='$CXXCPP $CPPFLAGS'
  9667. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  9668. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  9669. cross_compiling=$ac_cv_prog_cxx_cross
  9670. cat > conftest.$ac_ext << EOF
  9671. #line 12108 "configure"
  9672. #include "confdefs.h"
  9673. int main(){return(0);}
  9674. EOF
  9675. if { (eval echo configure:12113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9676. ac_cv_prog_cxx_works=yes
  9677. # If we can't run a trivial program, we are probably using a cross compiler.
  9678. if (./conftest; exit) 2>/dev/null; then
  9679. ac_cv_prog_cxx_cross=no
  9680. else
  9681. ac_cv_prog_cxx_cross=yes
  9682. fi
  9683. else
  9684. echo "configure: failed program was:" >&5
  9685. cat conftest.$ac_ext >&5
  9686. ac_cv_prog_cxx_works=no
  9687. fi
  9688. rm -fr conftest*
  9689. ac_ext=c
  9690. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  9691. ac_cpp='$CPP $CPPFLAGS'
  9692. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  9693. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  9694. cross_compiling=$ac_cv_prog_cc_cross
  9695. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  9696. if test $ac_cv_prog_cxx_works = no; then
  9697. { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  9698. fi
  9699. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  9700. echo "configure:12139: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  9701. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  9702. cross_compiling=$ac_cv_prog_cxx_cross
  9703. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  9704. echo "configure:12144: checking whether we are using GNU C++" >&5
  9705. cat > conftest.C <<EOF
  9706. #ifdef __GNUC__
  9707. yes;
  9708. #endif
  9709. EOF
  9710. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:12151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  9711. ac_cv_prog_gxx=yes
  9712. else
  9713. ac_cv_prog_gxx=no
  9714. fi
  9715. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  9716. if test $ac_cv_prog_gxx = yes; then
  9717. GXX=yes
  9718. else
  9719. GXX=
  9720. fi
  9721. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  9722. ac_save_CXXFLAGS="$CXXFLAGS"
  9723. CXXFLAGS=
  9724. echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  9725. echo "configure:12169: checking whether ${CXX-g++} accepts -g" >&5
  9726. echo 'void f(){}' > conftest.cc
  9727. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  9728. ac_cv_prog_cxx_g=yes
  9729. else
  9730. ac_cv_prog_cxx_g=no
  9731. fi
  9732. rm -f conftest*
  9733. echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  9734. if test "$ac_test_CXXFLAGS" = set; then
  9735. CXXFLAGS="$ac_save_CXXFLAGS"
  9736. elif test $ac_cv_prog_cxx_g = yes; then
  9737. if test "$GXX" = yes; then
  9738. CXXFLAGS="-g -O2"
  9739. else
  9740. CXXFLAGS="-g"
  9741. fi
  9742. else
  9743. if test "$GXX" = yes; then
  9744. CXXFLAGS="-O2"
  9745. else
  9746. CXXFLAGS=
  9747. fi
  9748. fi
  9749. else
  9750. CXX=
  9751. CXXFLAGS=
  9752. fi
  9753. # Done checking C++
  9754. # Enable openDWG option
  9755. echo $ac_n "checking whether to use openDWG""... $ac_c" 1>&6
  9756. echo "configure:12210: checking whether to use openDWG" >&5
  9757. echo "$ac_t"""$with_opendwg"" 1>&6
  9758. case "$with_opendwg" in
  9759. "no") USE_OPENDWG= ;;
  9760. "yes") USE_OPENDWG="1" ;;
  9761. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9762. esac
  9763. OPENDWGINCPATH=
  9764. OPENDWGLIBPATH=
  9765. OPENDWGLIB=
  9766. if test -n "${USE_OPENDWG}"; then
  9767. # With OPENDWG includes directory
  9768. echo $ac_n "checking for location of openDGW includes""... $ac_c" 1>&6
  9769. echo "configure:12230: checking for location of openDGW includes" >&5
  9770. case "$with_opendwg_includes" in
  9771. y | ye | yes | n | no)
  9772. { echo "configure: error: *** You must supply a directory to --with-opendwg-includes." 1>&2; exit 1; }
  9773. ;;
  9774. esac
  9775. echo "$ac_t""$with_opendwg_includes" 1>&6
  9776. if test -n "$with_opendwg_includes" ; then
  9777. for dir in $with_opendwg_includes; do
  9778. if test -d "$dir"; then
  9779. OPENDWGINCPATH="$OPENDWGINCPATH -I$dir"
  9780. else
  9781. { echo "configure: error: *** openDGW includes directory $dir does not exist." 1>&2; exit 1; }
  9782. fi
  9783. done
  9784. fi
  9785. ac_save_cppflags="$CPPFLAGS"
  9786. CPPFLAGS="$OPENDWGINCPATH $CPPFLAGS"
  9787. for ac_hdr in ad2.h
  9788. do
  9789. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9790. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9791. echo "configure:12256: checking for $ac_hdr" >&5
  9792. cat > conftest.$ac_ext <<EOF
  9793. #line 12259 "configure"
  9794. #include "confdefs.h"
  9795. #include <$ac_hdr>
  9796. EOF
  9797. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9798. { (eval echo configure:12264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9799. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9800. if test -z "$ac_err"; then
  9801. rm -rf conftest*
  9802. eval "ac_cv_header_$ac_safe=yes"
  9803. else
  9804. echo "$ac_err" >&5
  9805. echo "configure: failed program was:" >&5
  9806. cat conftest.$ac_ext >&5
  9807. rm -rf conftest*
  9808. eval "ac_cv_header_$ac_safe=no"
  9809. fi
  9810. rm -f conftest*
  9811. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9812. echo "$ac_t""yes" 1>&6
  9813. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9814. cat >> confdefs.h <<EOF
  9815. #define $ac_tr_hdr 1
  9816. EOF
  9817. else
  9818. echo "$ac_t""no" 1>&6
  9819. { echo "configure: error: *** Unable to locate openDWG includes." 1>&2; exit 1; }
  9820. fi
  9821. done
  9822. CPPFLAGS=$ac_save_cppflags
  9823. # With OPENDWG library directory
  9824. echo $ac_n "checking for location of openDWG library""... $ac_c" 1>&6
  9825. echo "configure:12298: checking for location of openDWG library" >&5
  9826. case "$with_opendwg_libs" in
  9827. y | ye | yes | n | no)
  9828. { echo "configure: error: *** You must supply a directory to --with-opendwg-libs." 1>&2; exit 1; }
  9829. ;;
  9830. esac
  9831. echo "$ac_t""$with_opendwg_libs" 1>&6
  9832. if test -n "$with_opendwg_libs"; then
  9833. for dir in $with_opendwg_libs; do
  9834. if test -d "$dir"; then
  9835. OPENDWGLIBPATH="$OPENDWGLIBPATH -L$dir"
  9836. else
  9837. { echo "configure: error: *** openDWG library directory $dir does not exist." 1>&2; exit 1; }
  9838. fi
  9839. done
  9840. fi
  9841. #search for ad2.a, ad3.a ... in openDWG toolkit directory:
  9842. #FIX ME how to program this test??
  9843. #LOC_CHECK_LIBS(ad?.a,adSeekLayer,openDWG,$OPENDWGLIBPATH,OPENDWGLIB,,)
  9844. #
  9845. #for now hack (but working):
  9846. TRUEOPENDWGLIBPATH=`echo "$OPENDWGLIBPATH" | cut -b3-`
  9847. adlib=`ls -1 "$TRUEOPENDWGLIBPATH"/ad?.a | tail -1`
  9848. OPENDWGLIB="$adlib"
  9849. fi # $USE_OPENDWG
  9850. # Done checking OPENDWG
  9851. # Enable pthread option
  9852. echo $ac_n "checking whether to use POSIX threads""... $ac_c" 1>&6
  9853. echo "configure:12339: checking whether to use POSIX threads" >&5
  9854. echo "$ac_t"""$with_pthread"" 1>&6
  9855. case "$with_pthread" in
  9856. "no") USE_PTHREAD= ;;
  9857. "yes") USE_PTHREAD="1" ;;
  9858. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9859. esac
  9860. PTHREADINCPATH=
  9861. PTHREADLIBPATH=
  9862. PTHREADLIB=
  9863. if test -n "$USE_PTHREAD"; then
  9864. # With pthread includes directory
  9865. echo $ac_n "checking for location of POSIX threads includes""... $ac_c" 1>&6
  9866. echo "configure:12359: checking for location of POSIX threads includes" >&5
  9867. case "$with_pthread_includes" in
  9868. y | ye | yes | n | no)
  9869. { echo "configure: error: *** You must supply a directory to --with-pthread-includes." 1>&2; exit 1; }
  9870. ;;
  9871. esac
  9872. echo "$ac_t""$with_pthread_includes" 1>&6
  9873. if test -n "$with_pthread_includes" ; then
  9874. for dir in $with_pthread_includes; do
  9875. if test -d "$dir"; then
  9876. PTHREADINCPATH="$PTHREADINCPATH -I$dir"
  9877. else
  9878. { echo "configure: error: *** POSIX threads includes directory $dir does not exist." 1>&2; exit 1; }
  9879. fi
  9880. done
  9881. fi
  9882. ac_save_cppflags="$CPPFLAGS"
  9883. CPPFLAGS="$PTHREADINCPATH $CPPFLAGS"
  9884. for ac_hdr in pthread.h
  9885. do
  9886. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9887. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9888. echo "configure:12385: checking for $ac_hdr" >&5
  9889. cat > conftest.$ac_ext <<EOF
  9890. #line 12388 "configure"
  9891. #include "confdefs.h"
  9892. #include <$ac_hdr>
  9893. EOF
  9894. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9895. { (eval echo configure:12393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9896. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9897. if test -z "$ac_err"; then
  9898. rm -rf conftest*
  9899. eval "ac_cv_header_$ac_safe=yes"
  9900. else
  9901. echo "$ac_err" >&5
  9902. echo "configure: failed program was:" >&5
  9903. cat conftest.$ac_ext >&5
  9904. rm -rf conftest*
  9905. eval "ac_cv_header_$ac_safe=no"
  9906. fi
  9907. rm -f conftest*
  9908. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9909. echo "$ac_t""yes" 1>&6
  9910. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9911. cat >> confdefs.h <<EOF
  9912. #define $ac_tr_hdr 1
  9913. EOF
  9914. else
  9915. echo "$ac_t""no" 1>&6
  9916. { echo "configure: error: *** Unable to locate POSIX threads includes." 1>&2; exit 1; }
  9917. fi
  9918. done
  9919. CPPFLAGS=$ac_save_cppflags
  9920. # With pthread library directory
  9921. echo $ac_n "checking for location of POSIX threads library""... $ac_c" 1>&6
  9922. echo "configure:12427: checking for location of POSIX threads library" >&5
  9923. case "$with_pthread_libs" in
  9924. y | ye | yes | n | no)
  9925. { echo "configure: error: *** You must supply a directory to --with-pthread-libs." 1>&2; exit 1; }
  9926. ;;
  9927. esac
  9928. echo "$ac_t""$with_pthread_libs" 1>&6
  9929. if test -n "$with_pthread_libs"; then
  9930. for dir in $with_pthread_libs; do
  9931. if test -d "$dir"; then
  9932. PTHREADLIBPATH="$PTHREADLIBPATH -L$dir"
  9933. else
  9934. { echo "configure: error: *** POSIX threads library directory $dir does not exist." 1>&2; exit 1; }
  9935. fi
  9936. done
  9937. fi
  9938. ac_save_libs="$LIBS"
  9939. ac_save_ldflags="$LDFLAGS"
  9940. LIBS=" $LIBS"
  9941. LDFLAGS=" $LDFLAGS"
  9942. echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
  9943. echo "configure:12452: checking for pthread_create" >&5
  9944. cat > conftest.$ac_ext <<EOF
  9945. #line 12455 "configure"
  9946. #include "confdefs.h"
  9947. /* System header to define __stub macros and hopefully few prototypes,
  9948. which can conflict with char pthread_create(); below. */
  9949. #include <assert.h>
  9950. /* Override any gcc2 internal prototype to avoid an error. */
  9951. /* We use char because int might match the return type of a gcc2
  9952. builtin and then its argument prototype would still apply. */
  9953. char pthread_create();
  9954. int main() {
  9955. /* The GNU C library defines this for functions which it implements
  9956. to always fail with ENOSYS. Some functions are actually named
  9957. something starting with __ and the normal name is an alias. */
  9958. #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
  9959. choke me
  9960. #else
  9961. pthread_create();
  9962. #endif
  9963. ; return 0; }
  9964. EOF
  9965. if { (eval echo configure:12478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9966. rm -rf conftest*
  9967. eval "ac_cv_func_pthread_create=yes"
  9968. else
  9969. echo "configure: failed program was:" >&5
  9970. cat conftest.$ac_ext >&5
  9971. rm -rf conftest*
  9972. eval "ac_cv_func_pthread_create=no"
  9973. fi
  9974. rm -f conftest*
  9975. if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
  9976. echo "$ac_t""yes" 1>&6
  9977. PTHREADLIB="$PTHREADLIB "
  9978. else
  9979. echo "$ac_t""no" 1>&6
  9980. ac_save_ldflags="$LDFLAGS"
  9981. LDFLAGS="$PTHREADLIBPATH $LDFLAGS"
  9982. echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
  9983. echo "configure:12505: checking for pthread_create in -lpthread" >&5
  9984. ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
  9985. ac_save_LIBS="$LIBS"
  9986. LIBS="-lpthread $LIBS"
  9987. cat > conftest.$ac_ext <<EOF
  9988. #line 12511 "configure"
  9989. #include "confdefs.h"
  9990. /* Override any gcc2 internal prototype to avoid an error. */
  9991. /* We use char because int might match the return type of a gcc2
  9992. builtin and then its argument prototype would still apply. */
  9993. char pthread_create();
  9994. int main() {
  9995. pthread_create()
  9996. ; return 0; }
  9997. EOF
  9998. if { (eval echo configure:12522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9999. rm -rf conftest*
  10000. eval "ac_cv_lib_$ac_lib_var=yes"
  10001. else
  10002. echo "configure: failed program was:" >&5
  10003. cat conftest.$ac_ext >&5
  10004. rm -rf conftest*
  10005. eval "ac_cv_lib_$ac_lib_var=no"
  10006. fi
  10007. rm -f conftest*
  10008. LIBS="$ac_save_LIBS"
  10009. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10010. echo "$ac_t""yes" 1>&6
  10011. PTHREADLIB="$PTHREADLIB -lpthread "
  10012. else
  10013. echo "$ac_t""no" 1>&6
  10014. LDFLAGS=${ac_save_ldflags}
  10015. { echo "configure: error: *** Unable to locate POSIX threads library." 1>&2; exit 1; }
  10016. fi
  10017. LDFLAGS=${ac_save_ldflags}
  10018. fi
  10019. LIBS=${ac_save_libs}
  10020. LDFLAGS=${ac_save_ldflags}
  10021. fi # $USE_PTHREAD
  10022. # Done checking pthread
  10023. # Enable OpenMP option
  10024. echo $ac_n "checking whether to use OpenMP""... $ac_c" 1>&6
  10025. echo "configure:12572: checking whether to use OpenMP" >&5
  10026. echo "$ac_t"""$with_openmp"" 1>&6
  10027. case "$with_openmp" in
  10028. "no") USE_OPENMP= ;;
  10029. "yes") USE_OPENMP="1" ;;
  10030. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10031. esac
  10032. OMPINCPATH=
  10033. OMPLIBPATH=
  10034. OMPLIB=
  10035. OMPCFLAGS=
  10036. if test -n "$USE_OPENMP"; then
  10037. # With OpenMP includes directory
  10038. echo $ac_n "checking for location of OpenMP includes""... $ac_c" 1>&6
  10039. echo "configure:12593: checking for location of OpenMP includes" >&5
  10040. case "$with_openmp_includes" in
  10041. y | ye | yes | n | no)
  10042. { echo "configure: error: *** You must supply a directory to --with-openmp-includes." 1>&2; exit 1; }
  10043. ;;
  10044. esac
  10045. echo "$ac_t""$with_openmp_includes" 1>&6
  10046. if test -n "$with_openmp_includes" ; then
  10047. for dir in $with_openmp_includes; do
  10048. if test -d "$dir"; then
  10049. OMPINCPATH="$OMPINCPATH -I$dir"
  10050. else
  10051. { echo "configure: error: *** OpenMP includes directory $dir does not exist." 1>&2; exit 1; }
  10052. fi
  10053. done
  10054. fi
  10055. ac_save_cppflags="$CPPFLAGS"
  10056. CPPFLAGS="$OMPINCPATH $CPPFLAGS"
  10057. for ac_hdr in omp.h
  10058. do
  10059. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10060. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10061. echo "configure:12619: checking for $ac_hdr" >&5
  10062. cat > conftest.$ac_ext <<EOF
  10063. #line 12622 "configure"
  10064. #include "confdefs.h"
  10065. #include <$ac_hdr>
  10066. EOF
  10067. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10068. { (eval echo configure:12627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10069. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10070. if test -z "$ac_err"; then
  10071. rm -rf conftest*
  10072. eval "ac_cv_header_$ac_safe=yes"
  10073. else
  10074. echo "$ac_err" >&5
  10075. echo "configure: failed program was:" >&5
  10076. cat conftest.$ac_ext >&5
  10077. rm -rf conftest*
  10078. eval "ac_cv_header_$ac_safe=no"
  10079. fi
  10080. rm -f conftest*
  10081. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10082. echo "$ac_t""yes" 1>&6
  10083. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10084. cat >> confdefs.h <<EOF
  10085. #define $ac_tr_hdr 1
  10086. EOF
  10087. else
  10088. echo "$ac_t""no" 1>&6
  10089. { echo "configure: error: *** Unable to locate OpenMP includes." 1>&2; exit 1; }
  10090. fi
  10091. done
  10092. CPPFLAGS=$ac_save_cppflags
  10093. # With OpenMP library directory
  10094. # GCC et al.: -lgomp
  10095. # Solaris cc: -lmtsk
  10096. # AIX xlc: -lxlsmp
  10097. # SGI IRIX 6.5 MIPSpro C/C++: -lmp
  10098. echo $ac_n "checking for location of OpenMP library""... $ac_c" 1>&6
  10099. echo "configure:12665: checking for location of OpenMP library" >&5
  10100. case "$with_openmp_libs" in
  10101. y | ye | yes | n | no)
  10102. { echo "configure: error: *** You must supply a directory to --with-openmp-libs." 1>&2; exit 1; }
  10103. ;;
  10104. esac
  10105. echo "$ac_t""$with_openmp_libs" 1>&6
  10106. if test -n "$with_openmp_libs"; then
  10107. for dir in $with_openmp_libs; do
  10108. if test -d "$dir"; then
  10109. OMPLIBPATH="$OMPLIBPATH -L$dir"
  10110. else
  10111. { echo "configure: error: *** OpenMP library directory $dir does not exist." 1>&2; exit 1; }
  10112. fi
  10113. done
  10114. fi
  10115. ac_save_libs="$LIBS"
  10116. ac_save_ldflags="$LDFLAGS"
  10117. LIBS=" $LIBS"
  10118. LDFLAGS=" $LDFLAGS"
  10119. echo $ac_n "checking for GOMP_parallel_start""... $ac_c" 1>&6
  10120. echo "configure:12690: checking for GOMP_parallel_start" >&5
  10121. cat > conftest.$ac_ext <<EOF
  10122. #line 12693 "configure"
  10123. #include "confdefs.h"
  10124. /* System header to define __stub macros and hopefully few prototypes,
  10125. which can conflict with char GOMP_parallel_start(); below. */
  10126. #include <assert.h>
  10127. /* Override any gcc2 internal prototype to avoid an error. */
  10128. /* We use char because int might match the return type of a gcc2
  10129. builtin and then its argument prototype would still apply. */
  10130. char GOMP_parallel_start();
  10131. int main() {
  10132. /* The GNU C library defines this for functions which it implements
  10133. to always fail with ENOSYS. Some functions are actually named
  10134. something starting with __ and the normal name is an alias. */
  10135. #if defined (__stub_GOMP_parallel_start) || defined (__stub___GOMP_parallel_start)
  10136. choke me
  10137. #else
  10138. GOMP_parallel_start();
  10139. #endif
  10140. ; return 0; }
  10141. EOF
  10142. if { (eval echo configure:12716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10143. rm -rf conftest*
  10144. eval "ac_cv_func_GOMP_parallel_start=yes"
  10145. else
  10146. echo "configure: failed program was:" >&5
  10147. cat conftest.$ac_ext >&5
  10148. rm -rf conftest*
  10149. eval "ac_cv_func_GOMP_parallel_start=no"
  10150. fi
  10151. rm -f conftest*
  10152. if eval "test \"`echo '$ac_cv_func_'GOMP_parallel_start`\" = yes"; then
  10153. echo "$ac_t""yes" 1>&6
  10154. OMPLIB="$OMPLIB "
  10155. else
  10156. echo "$ac_t""no" 1>&6
  10157. ac_save_ldflags="$LDFLAGS"
  10158. LDFLAGS="$OMPLIBPATH $LDFLAGS"
  10159. echo $ac_n "checking for GOMP_parallel_start in -lgomp""... $ac_c" 1>&6
  10160. echo "configure:12743: checking for GOMP_parallel_start in -lgomp" >&5
  10161. ac_lib_var=`echo gomp'_'GOMP_parallel_start | sed 'y%./+-%__p_%'`
  10162. ac_save_LIBS="$LIBS"
  10163. LIBS="-lgomp $LIBS"
  10164. cat > conftest.$ac_ext <<EOF
  10165. #line 12749 "configure"
  10166. #include "confdefs.h"
  10167. /* Override any gcc2 internal prototype to avoid an error. */
  10168. /* We use char because int might match the return type of a gcc2
  10169. builtin and then its argument prototype would still apply. */
  10170. char GOMP_parallel_start();
  10171. int main() {
  10172. GOMP_parallel_start()
  10173. ; return 0; }
  10174. EOF
  10175. if { (eval echo configure:12760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10176. rm -rf conftest*
  10177. eval "ac_cv_lib_$ac_lib_var=yes"
  10178. else
  10179. echo "configure: failed program was:" >&5
  10180. cat conftest.$ac_ext >&5
  10181. rm -rf conftest*
  10182. eval "ac_cv_lib_$ac_lib_var=no"
  10183. fi
  10184. rm -f conftest*
  10185. LIBS="$ac_save_LIBS"
  10186. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10187. echo "$ac_t""yes" 1>&6
  10188. OMPLIB="$OMPLIB -lgomp "
  10189. else
  10190. echo "$ac_t""no" 1>&6
  10191. LDFLAGS=${ac_save_ldflags}
  10192. { echo "configure: error: *** Unable to locate OpenMP library." 1>&2; exit 1; }
  10193. fi
  10194. LDFLAGS=${ac_save_ldflags}
  10195. fi
  10196. LIBS=${ac_save_libs}
  10197. LDFLAGS=${ac_save_ldflags}
  10198. # compiler dependent
  10199. #if test ${CC} = "gcc" ; then
  10200. if test x$GCC = xyes ; then
  10201. # GNU C compiler (>= 4.2.1)
  10202. OMPCFLAGS=-fopenmp
  10203. elif test ${CC} = "icc" ; then
  10204. # Intel compiler
  10205. OMPCFLAGS=-openmp
  10206. elif test ${CC} = "opencc" ; then
  10207. # AMD's x86 Open64 compiler
  10208. OMPCFLAGS=-mp
  10209. elif test ${CC} = "pgcc" ; then
  10210. # Portland Group's compiler
  10211. OMPCFLAGS=-mp
  10212. # ... anybody else?
  10213. fi
  10214. # try to build a test program with "$CC $OMPCLFAGS" to confirm it works
  10215. #...how?
  10216. #echo "int main() {return 0;}" > test.c
  10217. #$CC $OMPCLFAGS test.c -o test
  10218. fi # $USE_OPENMP
  10219. # Done checking OpenMP
  10220. # Enable OpenCL option
  10221. echo $ac_n "checking whether to use OpenCL""... $ac_c" 1>&6
  10222. echo "configure:12833: checking whether to use OpenCL" >&5
  10223. echo "$ac_t"""$with_opencl"" 1>&6
  10224. case "$with_opencl" in
  10225. "no") USE_OPENCL= ;;
  10226. "yes") USE_OPENCL="1" ;;
  10227. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10228. esac
  10229. OCLINCPATH=
  10230. OCLLIBPATH=
  10231. OCLLIB=
  10232. if test -n "$USE_OPENCL"; then
  10233. # With OpenCL includes directory
  10234. echo $ac_n "checking for location of OpenCL includes""... $ac_c" 1>&6
  10235. echo "configure:12853: checking for location of OpenCL includes" >&5
  10236. case "$with_opencl_includes" in
  10237. y | ye | yes | n | no)
  10238. { echo "configure: error: *** You must supply a directory to --with-opencl-includes." 1>&2; exit 1; }
  10239. ;;
  10240. esac
  10241. echo "$ac_t""$with_opencl_includes" 1>&6
  10242. if test -n "$with_opencl_includes" ; then
  10243. for dir in $with_opencl_includes; do
  10244. if test -d "$dir"; then
  10245. OCLINCPATH="$OCLINCPATH -I$dir"
  10246. else
  10247. { echo "configure: error: *** OpenCL includes directory $dir does not exist." 1>&2; exit 1; }
  10248. fi
  10249. done
  10250. fi
  10251. if test -n "$MACOSX_APP" ; then
  10252. ac_save_cppflags="$CPPFLAGS"
  10253. CPPFLAGS="$OCLINCPATH $CPPFLAGS"
  10254. for ac_hdr in OpenCL/opencl.h
  10255. do
  10256. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10257. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10258. echo "configure:12880: checking for $ac_hdr" >&5
  10259. cat > conftest.$ac_ext <<EOF
  10260. #line 12883 "configure"
  10261. #include "confdefs.h"
  10262. #include <$ac_hdr>
  10263. EOF
  10264. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10265. { (eval echo configure:12888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10266. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10267. if test -z "$ac_err"; then
  10268. rm -rf conftest*
  10269. eval "ac_cv_header_$ac_safe=yes"
  10270. else
  10271. echo "$ac_err" >&5
  10272. echo "configure: failed program was:" >&5
  10273. cat conftest.$ac_ext >&5
  10274. rm -rf conftest*
  10275. eval "ac_cv_header_$ac_safe=no"
  10276. fi
  10277. rm -f conftest*
  10278. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10279. echo "$ac_t""yes" 1>&6
  10280. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10281. cat >> confdefs.h <<EOF
  10282. #define $ac_tr_hdr 1
  10283. EOF
  10284. else
  10285. echo "$ac_t""no" 1>&6
  10286. { echo "configure: error: *** Unable to locate OpenCL includes." 1>&2; exit 1; }
  10287. fi
  10288. done
  10289. CPPFLAGS=$ac_save_cppflags
  10290. # With OpenCL library directory
  10291. ### FIXME: ###
  10292. #LOC_CHECK_FRAMEWORK_PATH(opencl,OpenCL,OPENCLPATH)
  10293. # last term in following would become ',$OPENCLPATH)' if above is uncommented
  10294. ac_save_libs="$LIBS"
  10295. ac_save_ldflags="$LDFLAGS"
  10296. LIBS="-framework OpenCL $LIBS"
  10297. LDFLAGS=" $LDFLAGS"
  10298. echo $ac_n "checking for clGetPlatformInfo""... $ac_c" 1>&6
  10299. echo "configure:12928: checking for clGetPlatformInfo" >&5
  10300. cat > conftest.$ac_ext <<EOF
  10301. #line 12931 "configure"
  10302. #include "confdefs.h"
  10303. /* System header to define __stub macros and hopefully few prototypes,
  10304. which can conflict with char clGetPlatformInfo(); below. */
  10305. #include <assert.h>
  10306. /* Override any gcc2 internal prototype to avoid an error. */
  10307. /* We use char because int might match the return type of a gcc2
  10308. builtin and then its argument prototype would still apply. */
  10309. char clGetPlatformInfo();
  10310. int main() {
  10311. /* The GNU C library defines this for functions which it implements
  10312. to always fail with ENOSYS. Some functions are actually named
  10313. something starting with __ and the normal name is an alias. */
  10314. #if defined (__stub_clGetPlatformInfo) || defined (__stub___clGetPlatformInfo)
  10315. choke me
  10316. #else
  10317. clGetPlatformInfo();
  10318. #endif
  10319. ; return 0; }
  10320. EOF
  10321. if { (eval echo configure:12954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10322. rm -rf conftest*
  10323. eval "ac_cv_func_clGetPlatformInfo=yes"
  10324. else
  10325. echo "configure: failed program was:" >&5
  10326. cat conftest.$ac_ext >&5
  10327. rm -rf conftest*
  10328. eval "ac_cv_func_clGetPlatformInfo=no"
  10329. fi
  10330. rm -f conftest*
  10331. if eval "test \"`echo '$ac_cv_func_'clGetPlatformInfo`\" = yes"; then
  10332. echo "$ac_t""yes" 1>&6
  10333. OCLLIB="$OCLLIB -framework OpenCL"
  10334. else
  10335. echo "$ac_t""no" 1>&6
  10336. { echo "configure: error: *** Unable to locate OpenCL library." 1>&2; exit 1; }
  10337. fi
  10338. LIBS=${ac_save_libs}
  10339. LDFLAGS=${ac_save_ldflags}
  10340. else
  10341. ac_save_cppflags="$CPPFLAGS"
  10342. CPPFLAGS="$OCLINCPATH $CPPFLAGS"
  10343. for ac_hdr in CL/cl.h
  10344. do
  10345. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10346. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10347. echo "configure:12993: checking for $ac_hdr" >&5
  10348. cat > conftest.$ac_ext <<EOF
  10349. #line 12996 "configure"
  10350. #include "confdefs.h"
  10351. #include <$ac_hdr>
  10352. EOF
  10353. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10354. { (eval echo configure:13001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10355. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10356. if test -z "$ac_err"; then
  10357. rm -rf conftest*
  10358. eval "ac_cv_header_$ac_safe=yes"
  10359. else
  10360. echo "$ac_err" >&5
  10361. echo "configure: failed program was:" >&5
  10362. cat conftest.$ac_ext >&5
  10363. rm -rf conftest*
  10364. eval "ac_cv_header_$ac_safe=no"
  10365. fi
  10366. rm -f conftest*
  10367. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10368. echo "$ac_t""yes" 1>&6
  10369. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10370. cat >> confdefs.h <<EOF
  10371. #define $ac_tr_hdr 1
  10372. EOF
  10373. else
  10374. echo "$ac_t""no" 1>&6
  10375. { echo "configure: error: *** Unable to locate OpenCL includes." 1>&2; exit 1; }
  10376. fi
  10377. done
  10378. CPPFLAGS=$ac_save_cppflags
  10379. # With OpenCL library directory
  10380. echo $ac_n "checking for location of OpenCL library""... $ac_c" 1>&6
  10381. echo "configure:13034: checking for location of OpenCL library" >&5
  10382. case "$with_opencl_libs" in
  10383. y | ye | yes | n | no)
  10384. { echo "configure: error: *** You must supply a directory to --with-opencl-libs." 1>&2; exit 1; }
  10385. ;;
  10386. esac
  10387. echo "$ac_t""$with_opencl_libs" 1>&6
  10388. if test -n "$with_opencl_libs"; then
  10389. for dir in $with_opencl_libs; do
  10390. if test -d "$dir"; then
  10391. OCLLIBPATH="$OCLLIBPATH -L$dir"
  10392. else
  10393. { echo "configure: error: *** OpenCL library directory $dir does not exist." 1>&2; exit 1; }
  10394. fi
  10395. done
  10396. fi
  10397. ac_save_ldflags="$LDFLAGS"
  10398. LDFLAGS="$OCLLIBPATH $LDFLAGS"
  10399. echo $ac_n "checking for clGetPlatformInfo in -lOpenCL""... $ac_c" 1>&6
  10400. echo "configure:13058: checking for clGetPlatformInfo in -lOpenCL" >&5
  10401. ac_lib_var=`echo OpenCL'_'clGetPlatformInfo | sed 'y%./+-%__p_%'`
  10402. ac_save_LIBS="$LIBS"
  10403. LIBS="-lOpenCL $LIBS"
  10404. cat > conftest.$ac_ext <<EOF
  10405. #line 13064 "configure"
  10406. #include "confdefs.h"
  10407. /* Override any gcc2 internal prototype to avoid an error. */
  10408. /* We use char because int might match the return type of a gcc2
  10409. builtin and then its argument prototype would still apply. */
  10410. char clGetPlatformInfo();
  10411. int main() {
  10412. clGetPlatformInfo()
  10413. ; return 0; }
  10414. EOF
  10415. if { (eval echo configure:13075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10416. rm -rf conftest*
  10417. eval "ac_cv_lib_$ac_lib_var=yes"
  10418. else
  10419. echo "configure: failed program was:" >&5
  10420. cat conftest.$ac_ext >&5
  10421. rm -rf conftest*
  10422. eval "ac_cv_lib_$ac_lib_var=no"
  10423. fi
  10424. rm -f conftest*
  10425. LIBS="$ac_save_LIBS"
  10426. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10427. echo "$ac_t""yes" 1>&6
  10428. OCLLIB="$OCLLIB -lOpenCL "
  10429. else
  10430. echo "$ac_t""no" 1>&6
  10431. LDFLAGS=${ac_save_ldflags}
  10432. { echo "configure: error: *** Unable to locate OpenCL library." 1>&2; exit 1; }
  10433. fi
  10434. LDFLAGS=${ac_save_ldflags}
  10435. # expanded symbol check: yes? no?
  10436. #LOC_CHECK_FUNC(clGetPlatformInfo,OpenCL functions,OCLLIB,,,,,[
  10437. #LOC_CHECK_LIBS(OpenCL,clGetPlatformInfo,OpenCL,$OCLLIBPATH,OCLLIB,,,)
  10438. #])
  10439. fi
  10440. fi # $USE_OPENCL
  10441. # Done checking OpenCL
  10442. # Enable LFS (from cdr-tools, tar, and autoconf 2.68)
  10443. # Check whether --enable-largefile or --disable-largefile was given.
  10444. if test "${enable_largefile+set}" = set; then
  10445. enableval="$enable_largefile"
  10446. :
  10447. fi
  10448. LFS_CFLAGS=
  10449. if test "$enable_largefile" != no; then
  10450. ac_save_cflags=$CFLAGS
  10451. if test "`which getconf 2>&5`" ; then
  10452. LFS_CFLAGS=`getconf LFS_CFLAGS 2>&5`
  10453. CFLAGS="$LFS_CFLAGS $ac_save_cflags"
  10454. fi
  10455. echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
  10456. echo "configure:13135: checking for special C compiler options needed for large files" >&5
  10457. ac_cv_sys_largefile_CC=no
  10458. largefile_cc_opt=""
  10459. if test "$GCC" != yes; then
  10460. # IRIX 6.2 and later do not support large files by default,
  10461. # so use the C compiler's -n32 option if that helps.
  10462. cat > conftest.$ac_ext <<EOF
  10463. #line 13143 "configure"
  10464. #include "confdefs.h"
  10465. #include <sys/types.h>
  10466. /* Check that off_t can represent 2**63 - 1 correctly.
  10467. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10468. since some C++ compilers masquerading as C compilers
  10469. incorrectly reject 9223372036854775807. */
  10470. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10471. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10472. && LARGE_OFF_T % 2147483647 == 1)
  10473. ? 1 : -1];
  10474. int main() {
  10475. ; return 0; }
  10476. EOF
  10477. if { (eval echo configure:13159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10478. :
  10479. else
  10480. echo "configure: failed program was:" >&5
  10481. cat conftest.$ac_ext >&5
  10482. rm -rf conftest*
  10483. ac_save_CC="${CC-cc}"
  10484. CC="$CC -n32"
  10485. cat > conftest.$ac_ext <<EOF
  10486. #line 13168 "configure"
  10487. #include "confdefs.h"
  10488. #include <sys/types.h>
  10489. /* Check that off_t can represent 2**63 - 1 correctly.
  10490. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10491. since some C++ compilers masquerading as C compilers
  10492. incorrectly reject 9223372036854775807. */
  10493. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10494. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10495. && LARGE_OFF_T % 2147483647 == 1)
  10496. ? 1 : -1];
  10497. int main() {
  10498. ; return 0; }
  10499. EOF
  10500. if { (eval echo configure:13184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10501. rm -rf conftest*
  10502. ac_cv_sys_largefile_CC=' -n32'
  10503. else
  10504. echo "configure: failed program was:" >&5
  10505. cat conftest.$ac_ext >&5
  10506. fi
  10507. rm -f conftest*
  10508. CC="$ac_save_CC"
  10509. fi
  10510. rm -f conftest*
  10511. fi
  10512. echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6
  10513. if test "$ac_cv_sys_largefile_CC" != no; then
  10514. CC="$CC$ac_cv_sys_largefile_CC"
  10515. largefile_cc_opt="$ac_cv_sys_largefile_CC"
  10516. if test "$LFS_CFLAGS" ; then
  10517. LFS_CFLAGS="$LFS_CFLAGS $ac_cv_sys_largefile_CC"
  10518. else
  10519. LFS_CFLAGS="$ac_cv_sys_largefile_CC"
  10520. CFLAGS="$LFS_CFLAGS $ac_save_cflags"
  10521. fi
  10522. fi
  10523. echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
  10524. echo "configure:13211: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  10525. ac_cv_sys_file_offset_bits=no
  10526. cat > conftest.$ac_ext <<EOF
  10527. #line 13215 "configure"
  10528. #include "confdefs.h"
  10529. #include <sys/types.h>
  10530. /* Check that off_t can represent 2**63 - 1 correctly.
  10531. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10532. since some C++ compilers masquerading as C compilers
  10533. incorrectly reject 9223372036854775807. */
  10534. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10535. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10536. && LARGE_OFF_T % 2147483647 == 1)
  10537. ? 1 : -1];
  10538. int main() {
  10539. ; return 0; }
  10540. EOF
  10541. if { (eval echo configure:13231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10542. :
  10543. else
  10544. echo "configure: failed program was:" >&5
  10545. cat conftest.$ac_ext >&5
  10546. rm -rf conftest*
  10547. cat > conftest.$ac_ext <<EOF
  10548. #line 13238 "configure"
  10549. #include "confdefs.h"
  10550. #define _FILE_OFFSET_BITS 64
  10551. #include <sys/types.h>
  10552. /* Check that off_t can represent 2**63 - 1 correctly.
  10553. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10554. since some C++ compilers masquerading as C compilers
  10555. incorrectly reject 9223372036854775807. */
  10556. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10557. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10558. && LARGE_OFF_T % 2147483647 == 1)
  10559. ? 1 : -1];
  10560. int main() {
  10561. ; return 0; }
  10562. EOF
  10563. if { (eval echo configure:13256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10564. rm -rf conftest*
  10565. ac_cv_sys_file_offset_bits=64
  10566. else
  10567. echo "configure: failed program was:" >&5
  10568. cat conftest.$ac_ext >&5
  10569. fi
  10570. rm -f conftest*
  10571. fi
  10572. rm -f conftest*
  10573. echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
  10574. if test "$ac_cv_sys_file_offset_bits" != no; then
  10575. cat >> confdefs.h <<EOF
  10576. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  10577. EOF
  10578. if test "$LFS_CFLAGS" ; then
  10579. LFS_CFLAGS="$LFS_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
  10580. else
  10581. LFS_CFLAGS="-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
  10582. fi
  10583. fi
  10584. echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
  10585. echo "configure:13282: checking for _LARGE_FILES value needed for large files" >&5
  10586. ac_cv_sys_large_files=no
  10587. cat > conftest.$ac_ext <<EOF
  10588. #line 13286 "configure"
  10589. #include "confdefs.h"
  10590. #include <sys/types.h>
  10591. /* Check that off_t can represent 2**63 - 1 correctly.
  10592. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10593. since some C++ compilers masquerading as C compilers
  10594. incorrectly reject 9223372036854775807. */
  10595. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10596. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10597. && LARGE_OFF_T % 2147483647 == 1)
  10598. ? 1 : -1];
  10599. int main() {
  10600. ; return 0; }
  10601. EOF
  10602. if { (eval echo configure:13302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10603. :
  10604. else
  10605. echo "configure: failed program was:" >&5
  10606. cat conftest.$ac_ext >&5
  10607. rm -rf conftest*
  10608. cat > conftest.$ac_ext <<EOF
  10609. #line 13309 "configure"
  10610. #include "confdefs.h"
  10611. #define _LARGE_FILES 1
  10612. #include <sys/types.h>
  10613. /* Check that off_t can represent 2**63 - 1 correctly.
  10614. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10615. since some C++ compilers masquerading as C compilers
  10616. incorrectly reject 9223372036854775807. */
  10617. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10618. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10619. && LARGE_OFF_T % 2147483647 == 1)
  10620. ? 1 : -1];
  10621. int main() {
  10622. ; return 0; }
  10623. EOF
  10624. if { (eval echo configure:13327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10625. rm -rf conftest*
  10626. ac_cv_sys_large_files=1
  10627. else
  10628. echo "configure: failed program was:" >&5
  10629. cat conftest.$ac_ext >&5
  10630. fi
  10631. rm -f conftest*
  10632. fi
  10633. rm -f conftest*
  10634. echo "$ac_t""$ac_cv_sys_large_files" 1>&6
  10635. if test "$ac_cv_sys_large_files" != no; then
  10636. cat >> confdefs.h <<EOF
  10637. #define _LARGE_FILES $ac_cv_sys_large_files
  10638. EOF
  10639. if test "$LFS_CFLAGS" ; then
  10640. LFS_CFLAGS="$LFS_CFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files"
  10641. else
  10642. LFS_CFLAGS="-D_LARGE_FILES=$ac_cv_sys_large_files"
  10643. fi
  10644. fi
  10645. echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
  10646. echo "configure:13353: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  10647. ac_cv_sys_largefile_source=no
  10648. cat > conftest.$ac_ext <<EOF
  10649. #line 13357 "configure"
  10650. #include "confdefs.h"
  10651. #include <stdio.h>
  10652. int main() {
  10653. return !fseeko;
  10654. ; return 0; }
  10655. EOF
  10656. if { (eval echo configure:13364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10657. :
  10658. else
  10659. echo "configure: failed program was:" >&5
  10660. cat conftest.$ac_ext >&5
  10661. rm -rf conftest*
  10662. cat > conftest.$ac_ext <<EOF
  10663. #line 13371 "configure"
  10664. #include "confdefs.h"
  10665. #define _LARGEFILE_SOURCE 1
  10666. #include <stdio.h>
  10667. int main() {
  10668. return !fseeko;
  10669. ; return 0; }
  10670. EOF
  10671. if { (eval echo configure:13380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10672. rm -rf conftest*
  10673. ac_cv_sys_largefile_source=1
  10674. else
  10675. echo "configure: failed program was:" >&5
  10676. cat conftest.$ac_ext >&5
  10677. fi
  10678. rm -f conftest*
  10679. fi
  10680. rm -f conftest*
  10681. echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
  10682. if test "$ac_cv_sys_largefile_source" != no; then
  10683. cat >> confdefs.h <<EOF
  10684. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  10685. EOF
  10686. if test "$LFS_CFLAGS" ; then
  10687. LFS_CFLAGS="$LFS_CFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
  10688. else
  10689. LFS_CFLAGS="-D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
  10690. fi
  10691. fi
  10692. CFLAGS=$ac_save_cflags
  10693. fi
  10694. ac_save_cflags=${CFLAGS}
  10695. CFLAGS="$LFS_CFLAGS ${ac_save_cflags}"
  10696. echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
  10697. echo "configure:13412: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  10698. ac_cv_sys_largefile_source=no
  10699. cat > conftest.$ac_ext <<EOF
  10700. #line 13416 "configure"
  10701. #include "confdefs.h"
  10702. #include <stdio.h>
  10703. int main() {
  10704. return !fseeko;
  10705. ; return 0; }
  10706. EOF
  10707. if { (eval echo configure:13423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10708. :
  10709. else
  10710. echo "configure: failed program was:" >&5
  10711. cat conftest.$ac_ext >&5
  10712. rm -rf conftest*
  10713. cat > conftest.$ac_ext <<EOF
  10714. #line 13430 "configure"
  10715. #include "confdefs.h"
  10716. #define _LARGEFILE_SOURCE 1
  10717. #include <stdio.h>
  10718. int main() {
  10719. return !fseeko;
  10720. ; return 0; }
  10721. EOF
  10722. if { (eval echo configure:13439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10723. rm -rf conftest*
  10724. ac_cv_sys_largefile_source=1
  10725. else
  10726. echo "configure: failed program was:" >&5
  10727. cat conftest.$ac_ext >&5
  10728. fi
  10729. rm -f conftest*
  10730. fi
  10731. rm -f conftest*
  10732. echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
  10733. if test "$ac_cv_sys_largefile_source" != no; then
  10734. cat >> confdefs.h <<EOF
  10735. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  10736. EOF
  10737. if test "$LFS_CFLAGS" ; then
  10738. LFS_CFLAGS="$LFS_CFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
  10739. else
  10740. LFS_CFLAGS="-D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
  10741. fi
  10742. fi
  10743. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  10744. # in glibc 2.1.3, but that breaks too many other things.
  10745. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  10746. echo $ac_n "checking for fseeko""... $ac_c" 1>&6
  10747. echo "configure:13469: checking for fseeko" >&5
  10748. ac_cv_func_fseeko=no
  10749. cat > conftest.$ac_ext <<EOF
  10750. #line 13473 "configure"
  10751. #include "confdefs.h"
  10752. #include <stdio.h>
  10753. int main() {
  10754. return fseeko && fseeko (stdin, 0, 0);
  10755. ; return 0; }
  10756. EOF
  10757. if { (eval echo configure:13480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10758. rm -rf conftest*
  10759. ac_cv_func_fseeko=yes
  10760. else
  10761. echo "configure: failed program was:" >&5
  10762. cat conftest.$ac_ext >&5
  10763. fi
  10764. rm -f conftest*
  10765. echo "$ac_t""$ac_cv_func_fseeko" 1>&6
  10766. if test $ac_cv_func_fseeko != no; then
  10767. cat >> confdefs.h <<\EOF
  10768. #define HAVE_FSEEKO 1
  10769. EOF
  10770. fi
  10771. echo $ac_n "checking if system supports Large Files at all""... $ac_c" 1>&6
  10772. echo "configure:13497: checking if system supports Large Files at all" >&5
  10773. cat > conftest.$ac_ext <<EOF
  10774. #line 13500 "configure"
  10775. #include "confdefs.h"
  10776. #include <stdio.h>
  10777. #include <sys/types.h>
  10778. int main() {
  10779. /*
  10780. * Check that off_t can represent 2**63 - 1 correctly.
  10781. * We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10782. * since some C++ compilers masquerading as C compilers
  10783. * incorrectly reject 9223372036854775807.
  10784. *
  10785. * For MinGW, off64_t should be used and __MSVCRT_VERSION__ >= 0x0601
  10786. * (msvcrt.dll version 6.10 or higher) is needed for _fstat64 and _stat64.
  10787. */
  10788. #ifdef __MINGW32__
  10789. # define LARGE_OFF_T (((off64_t) 1 << 62) - 1 + ((off64_t) 1 << 62))
  10790. #else
  10791. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10792. #endif
  10793. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10794. && LARGE_OFF_T % 2147483647 == 1)
  10795. ? 1 : -1];
  10796. #ifdef __MINGW32__
  10797. return !fseeko64;
  10798. return !ftello64;
  10799. #else
  10800. return !fseeko;
  10801. return !ftello;
  10802. #endif
  10803. ; return 0; }
  10804. EOF
  10805. if { (eval echo configure:13532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10806. rm -rf conftest*
  10807. ac_cv_largefiles=yes
  10808. else
  10809. echo "configure: failed program was:" >&5
  10810. cat conftest.$ac_ext >&5
  10811. rm -rf conftest*
  10812. ac_cv_largefiles=no
  10813. fi
  10814. rm -f conftest*
  10815. echo "$ac_t""$ac_cv_largefiles" 1>&6
  10816. if test $ac_cv_largefiles = yes; then
  10817. cat >> confdefs.h <<\EOF
  10818. #define HAVE_LARGEFILES 1
  10819. EOF
  10820. USE_LARGEFILES=1
  10821. else
  10822. USE_LARGEFILES=
  10823. LFS_CFLAGS=
  10824. fi
  10825. CFLAGS=${ac_save_cflags}
  10826. # Done large file support
  10827. USE_TERMIO=
  10828. STRIPFLAG=
  10829. GRASS_HOME="${DSTDIR}"
  10830. trap '' 1 2 15
  10831. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  10832. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10833. # Let make expand exec_prefix.
  10834. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10835. # Any assignment to VPATH causes Sun make to only execute
  10836. # the first set of double-colon rules, so remove it if not needed.
  10837. # If there is a colon in the path, we need to keep it.
  10838. if test "x$srcdir" = x.; then
  10839. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  10840. fi
  10841. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  10842. DEFS=-DHAVE_CONFIG_H
  10843. # Without the "./", some shells look in PATH for config.status.
  10844. : ${CONFIG_STATUS=./config.status}
  10845. echo creating $CONFIG_STATUS
  10846. rm -f $CONFIG_STATUS
  10847. cat > $CONFIG_STATUS <<EOF
  10848. #! /bin/sh
  10849. # Generated automatically by configure.
  10850. # Run this file to recreate the current configuration.
  10851. # This directory was configured as follows,
  10852. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  10853. #
  10854. # $0 $ac_configure_args
  10855. #
  10856. # Compiler output produced by configure, useful for debugging
  10857. # configure, is in ./config.log if it exists.
  10858. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  10859. for ac_option
  10860. do
  10861. case "\$ac_option" in
  10862. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10863. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  10864. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  10865. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  10866. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  10867. exit 0 ;;
  10868. -help | --help | --hel | --he | --h)
  10869. echo "\$ac_cs_usage"; exit 0 ;;
  10870. *) echo "\$ac_cs_usage"; exit 1 ;;
  10871. esac
  10872. done
  10873. ac_given_srcdir=$srcdir
  10874. ac_given_INSTALL="$INSTALL"
  10875. 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
  10876. EOF
  10877. cat >> $CONFIG_STATUS <<EOF
  10878. # Protect against being on the right side of a sed subst in config.status.
  10879. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  10880. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  10881. $ac_vpsub
  10882. $extrasub
  10883. s%@SHELL@%$SHELL%g
  10884. s%@CFLAGS@%$CFLAGS%g
  10885. s%@CPPFLAGS@%$CPPFLAGS%g
  10886. s%@CXXFLAGS@%$CXXFLAGS%g
  10887. s%@FFLAGS@%$FFLAGS%g
  10888. s%@DEFS@%$DEFS%g
  10889. s%@LDFLAGS@%$LDFLAGS%g
  10890. s%@LIBS@%$LIBS%g
  10891. s%@exec_prefix@%$exec_prefix%g
  10892. s%@prefix@%$prefix%g
  10893. s%@program_transform_name@%$program_transform_name%g
  10894. s%@bindir@%$bindir%g
  10895. s%@sbindir@%$sbindir%g
  10896. s%@libexecdir@%$libexecdir%g
  10897. s%@datadir@%$datadir%g
  10898. s%@sysconfdir@%$sysconfdir%g
  10899. s%@sharedstatedir@%$sharedstatedir%g
  10900. s%@localstatedir@%$localstatedir%g
  10901. s%@libdir@%$libdir%g
  10902. s%@includedir@%$includedir%g
  10903. s%@oldincludedir@%$oldincludedir%g
  10904. s%@infodir@%$infodir%g
  10905. s%@mandir@%$mandir%g
  10906. s%@host@%$host%g
  10907. s%@host_alias@%$host_alias%g
  10908. s%@host_cpu@%$host_cpu%g
  10909. s%@host_vendor@%$host_vendor%g
  10910. s%@host_os@%$host_os%g
  10911. s%@CC@%$CC%g
  10912. s%@EXEEXT@%$EXEEXT%g
  10913. s%@MINGW32@%$MINGW32%g
  10914. s%@BINDIR@%$BINDIR%g
  10915. s%@pwd@%$pwd%g
  10916. s%@SRCDIR@%$SRCDIR%g
  10917. s%@DSTDIR@%$DSTDIR%g
  10918. s%@ARCH@%$ARCH%g
  10919. s%@GISBASE@%$GISBASE%g
  10920. s%@GRASS_BIN@%$GRASS_BIN%g
  10921. s%@SVN_VERSION@%$SVN_VERSION%g
  10922. s%@GRASS_VERSION_FILE@%$GRASS_VERSION_FILE%g
  10923. s%@GRASS_VERSION_MAJOR@%$GRASS_VERSION_MAJOR%g
  10924. s%@GRASS_VERSION_MINOR@%$GRASS_VERSION_MINOR%g
  10925. s%@GRASS_VERSION_RELEASE@%$GRASS_VERSION_RELEASE%g
  10926. s%@GRASS_VERSION_NUMBER@%$GRASS_VERSION_NUMBER%g
  10927. s%@GRASS_VERSION_DATE@%$GRASS_VERSION_DATE%g
  10928. s%@GRASS_VERSION_SVN@%$GRASS_VERSION_SVN%g
  10929. s%@NAME_VER@%$NAME_VER%g
  10930. s%@LIB_VER@%$LIB_VER%g
  10931. s%@MACOSX_APP@%$MACOSX_APP%g
  10932. s%@MACOSX_ARCHS@%$MACOSX_ARCHS%g
  10933. s%@MACOSX_SDK@%$MACOSX_SDK%g
  10934. s%@INSTDIR@%$INSTDIR%g
  10935. s%@GRASS_LIBRARY_TYPE@%$GRASS_LIBRARY_TYPE%g
  10936. s%@LD_SEARCH_FLAGS@%$LD_SEARCH_FLAGS%g
  10937. s%@LD_LIBRARY_PATH_VAR@%$LD_LIBRARY_PATH_VAR%g
  10938. s%@SHLIB_LD@%$SHLIB_LD%g
  10939. s%@SHLIB_LD_FLAGS@%$SHLIB_LD_FLAGS%g
  10940. s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
  10941. s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
  10942. s%@STLIB_LD@%$STLIB_LD%g
  10943. s%@STLIB_SUFFIX@%$STLIB_SUFFIX%g
  10944. s%@INCLUDE_DIRS@%$INCLUDE_DIRS%g
  10945. s%@LIBRARY_DIRS@%$LIBRARY_DIRS%g
  10946. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  10947. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  10948. s%@INSTALL_DATA@%$INSTALL_DATA%g
  10949. s%@LEX@%$LEX%g
  10950. s%@LEXLIB@%$LEXLIB%g
  10951. s%@LEXPATH@%$LEXPATH%g
  10952. s%@YACC@%$YACC%g
  10953. s%@YACCPATH@%$YACCPATH%g
  10954. s%@RANLIB@%$RANLIB%g
  10955. s%@AR@%$AR%g
  10956. s%@ENV@%$ENV%g
  10957. s%@PERL@%$PERL%g
  10958. s%@CPP@%$CPP%g
  10959. s%@CROSS_COMPILING@%$CROSS_COMPILING%g
  10960. s%@X_CFLAGS@%$X_CFLAGS%g
  10961. s%@X_LIBS@%$X_LIBS%g
  10962. s%@X_PRE_LIBS@%$X_PRE_LIBS%g
  10963. s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  10964. s%@XLIB@%$XLIB%g
  10965. s%@XTLIB@%$XTLIB%g
  10966. s%@USE_X11@%$USE_X11%g
  10967. s%@DBMIEXTRALIB@%$DBMIEXTRALIB%g
  10968. s%@HAVE_ASPRINTF@%$HAVE_ASPRINTF%g
  10969. s%@MATHLIB@%$MATHLIB%g
  10970. s%@DLLIB@%$DLLIB%g
  10971. s%@ICONVLIB@%$ICONVLIB%g
  10972. s%@SOCKLIB@%$SOCKLIB%g
  10973. s%@HAVE_SOCKET@%$HAVE_SOCKET%g
  10974. s%@ZLIBINCPATH@%$ZLIBINCPATH%g
  10975. s%@ZLIBLIBPATH@%$ZLIBLIBPATH%g
  10976. s%@ZLIB@%$ZLIB%g
  10977. s%@BZLIBINCPATH@%$BZLIBINCPATH%g
  10978. s%@BZLIBLIBPATH@%$BZLIBLIBPATH%g
  10979. s%@BZLIB@%$BZLIB%g
  10980. s%@PROJINC@%$PROJINC%g
  10981. s%@PROJLIB@%$PROJLIB%g
  10982. s%@PROJSHARE@%$PROJSHARE%g
  10983. s%@NAD2BIN@%$NAD2BIN%g
  10984. s%@REGEXINCPATH@%$REGEXINCPATH%g
  10985. s%@REGEXLIBPATH@%$REGEXLIBPATH%g
  10986. s%@REGEXLIB@%$REGEXLIB%g
  10987. s%@USE_REGEX@%$USE_REGEX%g
  10988. s%@READLINEINCPATH@%$READLINEINCPATH%g
  10989. s%@READLINELIBPATH@%$READLINELIBPATH%g
  10990. s%@READLINELIB@%$READLINELIB%g
  10991. s%@HISTORYLIB@%$HISTORYLIB%g
  10992. s%@GDAL_CONFIG@%$GDAL_CONFIG%g
  10993. s%@GDAL_LIBS@%$GDAL_LIBS%g
  10994. s%@GDAL_CFLAGS@%$GDAL_CFLAGS%g
  10995. s%@USE_GDAL@%$USE_GDAL%g
  10996. s%@USE_OGR@%$USE_OGR%g
  10997. s%@LIBLAS_CONFIG@%$LIBLAS_CONFIG%g
  10998. s%@LIBLAS_LIBS@%$LIBLAS_LIBS%g
  10999. s%@LIBLAS_CFLAGS@%$LIBLAS_CFLAGS%g
  11000. s%@LIBLAS_INC@%$LIBLAS_INC%g
  11001. s%@USE_LIBLAS@%$USE_LIBLAS%g
  11002. s%@PDAL_CONFIG@%$PDAL_CONFIG%g
  11003. s%@PDAL_LIBS@%$PDAL_LIBS%g
  11004. s%@PDAL_CPPFLAGS@%$PDAL_CPPFLAGS%g
  11005. s%@PDAL_INC@%$PDAL_INC%g
  11006. s%@USE_PDAL@%$USE_PDAL%g
  11007. s%@NETCDF_CONFIG@%$NETCDF_CONFIG%g
  11008. s%@NETCDF_LIBS@%$NETCDF_LIBS%g
  11009. s%@NETCDF_CFLAGS@%$NETCDF_CFLAGS%g
  11010. s%@USE_NETCDF@%$USE_NETCDF%g
  11011. s%@GEOS_CONFIG@%$GEOS_CONFIG%g
  11012. s%@GEOS_LIBS@%$GEOS_LIBS%g
  11013. s%@GEOS_CFLAGS@%$GEOS_CFLAGS%g
  11014. s%@USE_GEOS@%$USE_GEOS%g
  11015. s%@TIFF_INCLUDE_DIRS@%$TIFF_INCLUDE_DIRS%g
  11016. s%@TIFF_LIBRARY_DIRS@%$TIFF_LIBRARY_DIRS%g
  11017. s%@TIFFLIB@%$TIFFLIB%g
  11018. s%@PNGINC@%$PNGINC%g
  11019. s%@PNGLIB@%$PNGLIB%g
  11020. s%@USE_PNG@%$USE_PNG%g
  11021. s%@USE_POSTGRES@%$USE_POSTGRES%g
  11022. s%@PQINCPATH@%$PQINCPATH%g
  11023. s%@PQLIBPATH@%$PQLIBPATH%g
  11024. s%@PQLIB@%$PQLIB%g
  11025. s%@MYSQLD_CONFIG@%$MYSQLD_CONFIG%g
  11026. s%@USE_MYSQL@%$USE_MYSQL%g
  11027. s%@MYSQLINCPATH@%$MYSQLINCPATH%g
  11028. s%@MYSQLLIBPATH@%$MYSQLLIBPATH%g
  11029. s%@MYSQLLIB@%$MYSQLLIB%g
  11030. s%@MYSQLDLIB@%$MYSQLDLIB%g
  11031. s%@USE_SQLITE@%$USE_SQLITE%g
  11032. s%@SQLITEINCPATH@%$SQLITEINCPATH%g
  11033. s%@SQLITELIBPATH@%$SQLITELIBPATH%g
  11034. s%@SQLITELIB@%$SQLITELIB%g
  11035. s%@USE_OPENGL@%$USE_OPENGL%g
  11036. s%@OPENGL_X11@%$OPENGL_X11%g
  11037. s%@OPENGL_AQUA@%$OPENGL_AQUA%g
  11038. s%@OPENGL_WINDOWS@%$OPENGL_WINDOWS%g
  11039. s%@OPENGLINC@%$OPENGLINC%g
  11040. s%@OPENGLLIB@%$OPENGLLIB%g
  11041. s%@OPENGLULIB@%$OPENGLULIB%g
  11042. s%@ODBCINC@%$ODBCINC%g
  11043. s%@ODBCLIB@%$ODBCLIB%g
  11044. s%@FFTWINC@%$FFTWINC%g
  11045. s%@FFTWLIB@%$FFTWLIB%g
  11046. s%@BLASLIB@%$BLASLIB%g
  11047. s%@BLASINC@%$BLASINC%g
  11048. s%@LAPACKLIB@%$LAPACKLIB%g
  11049. s%@LAPACKINC@%$LAPACKINC%g
  11050. s%@CAIRO_HAS_XRENDER@%$CAIRO_HAS_XRENDER%g
  11051. s%@CAIRO_HAS_XRENDER_SURFACE@%$CAIRO_HAS_XRENDER_SURFACE%g
  11052. s%@CAIROINC@%$CAIROINC%g
  11053. s%@CAIROLIB@%$CAIROLIB%g
  11054. s%@USE_CAIRO@%$USE_CAIRO%g
  11055. s%@FTINC@%$FTINC%g
  11056. s%@FTLIB@%$FTLIB%g
  11057. s%@INTLLIB@%$INTLLIB%g
  11058. s%@HAVE_NLS@%$HAVE_NLS%g
  11059. s%@CXX@%$CXX%g
  11060. s%@OPENDWGINCPATH@%$OPENDWGINCPATH%g
  11061. s%@OPENDWGLIBPATH@%$OPENDWGLIBPATH%g
  11062. s%@OPENDWGLIB@%$OPENDWGLIB%g
  11063. s%@USE_OPENDWG@%$USE_OPENDWG%g
  11064. s%@PTHREADINCPATH@%$PTHREADINCPATH%g
  11065. s%@PTHREADLIBPATH@%$PTHREADLIBPATH%g
  11066. s%@PTHREADLIB@%$PTHREADLIB%g
  11067. s%@USE_PTHREAD@%$USE_PTHREAD%g
  11068. s%@OMPINCPATH@%$OMPINCPATH%g
  11069. s%@OMPLIBPATH@%$OMPLIBPATH%g
  11070. s%@OMPLIB@%$OMPLIB%g
  11071. s%@OMPCFLAGS@%$OMPCFLAGS%g
  11072. s%@USE_OPENMP@%$USE_OPENMP%g
  11073. s%@OCLINCPATH@%$OCLINCPATH%g
  11074. s%@OCLLIBPATH@%$OCLLIBPATH%g
  11075. s%@OCLLIB@%$OCLLIB%g
  11076. s%@USE_OPENCL@%$USE_OPENCL%g
  11077. s%@USE_LARGEFILES@%$USE_LARGEFILES%g
  11078. s%@LFS_CFLAGS@%$LFS_CFLAGS%g
  11079. s%@USE_TERMIO@%$USE_TERMIO%g
  11080. s%@STRIPFLAG@%$STRIPFLAG%g
  11081. s%@GRASS_HOME@%$GRASS_HOME%g
  11082. CEOF
  11083. EOF
  11084. cat >> $CONFIG_STATUS <<\EOF
  11085. # Split the substitutions into bite-sized pieces for seds with
  11086. # small command number limits, like on Digital OSF/1 and HP-UX.
  11087. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  11088. ac_file=1 # Number of current file.
  11089. ac_beg=1 # First line for current file.
  11090. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  11091. ac_more_lines=:
  11092. ac_sed_cmds=""
  11093. while $ac_more_lines; do
  11094. if test $ac_beg -gt 1; then
  11095. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  11096. else
  11097. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  11098. fi
  11099. if test ! -s conftest.s$ac_file; then
  11100. ac_more_lines=false
  11101. rm -f conftest.s$ac_file
  11102. else
  11103. if test -z "$ac_sed_cmds"; then
  11104. ac_sed_cmds="sed -f conftest.s$ac_file"
  11105. else
  11106. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  11107. fi
  11108. ac_file=`expr $ac_file + 1`
  11109. ac_beg=$ac_end
  11110. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  11111. fi
  11112. done
  11113. if test -z "$ac_sed_cmds"; then
  11114. ac_sed_cmds=cat
  11115. fi
  11116. EOF
  11117. cat >> $CONFIG_STATUS <<EOF
  11118. CONFIG_FILES=\${CONFIG_FILES-"include/Make/Platform.make include/Make/Doxyfile_arch_html include/Make/Doxyfile_arch_latex include/version.h grass.pc"}
  11119. EOF
  11120. cat >> $CONFIG_STATUS <<\EOF
  11121. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  11122. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11123. case "$ac_file" in
  11124. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  11125. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11126. *) ac_file_in="${ac_file}.in" ;;
  11127. esac
  11128. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  11129. # Remove last slash and all that follows it. Not all systems have dirname.
  11130. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  11131. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  11132. # The file is in a subdirectory.
  11133. test ! -d "$ac_dir" && mkdir "$ac_dir"
  11134. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  11135. # A "../" for each directory in $ac_dir_suffix.
  11136. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  11137. else
  11138. ac_dir_suffix= ac_dots=
  11139. fi
  11140. case "$ac_given_srcdir" in
  11141. .) srcdir=.
  11142. if test -z "$ac_dots"; then top_srcdir=.
  11143. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  11144. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  11145. *) # Relative path.
  11146. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  11147. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  11148. esac
  11149. case "$ac_given_INSTALL" in
  11150. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  11151. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  11152. esac
  11153. echo creating "$ac_file"
  11154. rm -f "$ac_file"
  11155. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  11156. case "$ac_file" in
  11157. *Makefile*) ac_comsub="1i\\
  11158. # $configure_input" ;;
  11159. *) ac_comsub= ;;
  11160. esac
  11161. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  11162. sed -e "$ac_comsub
  11163. s%@configure_input@%$configure_input%g
  11164. s%@srcdir@%$srcdir%g
  11165. s%@top_srcdir@%$top_srcdir%g
  11166. s%@INSTALL@%$INSTALL%g
  11167. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  11168. fi; done
  11169. rm -f conftest.s*
  11170. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11171. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11172. #
  11173. # ac_d sets the value in "#define NAME VALUE" lines.
  11174. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11175. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  11176. ac_dC='\3'
  11177. ac_dD='%g'
  11178. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  11179. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11180. ac_uB='\([ ]\)%\1#\2define\3'
  11181. ac_uC=' '
  11182. ac_uD='\4%g'
  11183. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11184. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11185. ac_eB='$%\1#\2define\3'
  11186. ac_eC=' '
  11187. ac_eD='%g'
  11188. if test "${CONFIG_HEADERS+set}" != set; then
  11189. EOF
  11190. cat >> $CONFIG_STATUS <<EOF
  11191. CONFIG_HEADERS="include/config.h"
  11192. EOF
  11193. cat >> $CONFIG_STATUS <<\EOF
  11194. fi
  11195. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  11196. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11197. case "$ac_file" in
  11198. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  11199. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11200. *) ac_file_in="${ac_file}.in" ;;
  11201. esac
  11202. echo creating $ac_file
  11203. rm -f conftest.frag conftest.in conftest.out
  11204. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  11205. cat $ac_file_inputs > conftest.in
  11206. EOF
  11207. # Transform confdefs.h into a sed script conftest.vals that substitutes
  11208. # the proper values into config.h.in to produce config.h. And first:
  11209. # Protect against being on the right side of a sed subst in config.status.
  11210. # Protect against being in an unquoted here document in config.status.
  11211. rm -f conftest.vals
  11212. cat > conftest.hdr <<\EOF
  11213. s/[\\&%]/\\&/g
  11214. s%[\\$`]%\\&%g
  11215. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  11216. s%ac_d%ac_u%gp
  11217. s%ac_u%ac_e%gp
  11218. EOF
  11219. sed -n -f conftest.hdr confdefs.h > conftest.vals
  11220. rm -f conftest.hdr
  11221. # This sed command replaces #undef with comments. This is necessary, for
  11222. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11223. # on some systems where configure will not decide to define it.
  11224. cat >> conftest.vals <<\EOF
  11225. s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  11226. EOF
  11227. # Break up conftest.vals because some shells have a limit on
  11228. # the size of here documents, and old seds have small limits too.
  11229. rm -f conftest.tail
  11230. while :
  11231. do
  11232. ac_lines=`grep -c . conftest.vals`
  11233. # grep -c gives empty output for an empty file on some AIX systems.
  11234. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  11235. # Write a limited-size here document to conftest.frag.
  11236. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  11237. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  11238. echo 'CEOF
  11239. sed -f conftest.frag conftest.in > conftest.out
  11240. rm -f conftest.in
  11241. mv conftest.out conftest.in
  11242. ' >> $CONFIG_STATUS
  11243. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  11244. rm -f conftest.vals
  11245. mv conftest.tail conftest.vals
  11246. done
  11247. rm -f conftest.vals
  11248. cat >> $CONFIG_STATUS <<\EOF
  11249. rm -f conftest.frag conftest.h
  11250. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  11251. cat conftest.in >> conftest.h
  11252. rm -f conftest.in
  11253. if cmp -s $ac_file conftest.h 2>/dev/null; then
  11254. echo "$ac_file is unchanged"
  11255. rm -f conftest.h
  11256. else
  11257. # Remove last slash and all that follows it. Not all systems have dirname.
  11258. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  11259. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  11260. # The file is in a subdirectory.
  11261. test ! -d "$ac_dir" && mkdir "$ac_dir"
  11262. fi
  11263. rm -f $ac_file
  11264. mv conftest.h $ac_file
  11265. fi
  11266. fi; done
  11267. EOF
  11268. cat >> $CONFIG_STATUS <<EOF
  11269. EOF
  11270. cat >> $CONFIG_STATUS <<\EOF
  11271. exit 0
  11272. EOF
  11273. chmod +x $CONFIG_STATUS
  11274. rm -fr confdefs* $ac_clean_files
  11275. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  11276. echo "Copying config.status to config.status.${ARCH}"
  11277. cp -f config.status config.status.${ARCH}
  11278. # Display configuration status
  11279. echo ""
  11280. echo "GRASS is now configured for: ${host}"
  11281. echo ""
  11282. echo " Source directory: ${SRCDIR}"
  11283. echo " Build directory: ${DSTDIR}"
  11284. echo " Installation directory: ${INSTDIR}"
  11285. echo " Startup script in directory:${bindir}"
  11286. echo " C compiler: ${CC} ${CFLAGS}"
  11287. echo " C++ compiler: ${CXX} ${CXXFLAGS}"
  11288. echo " Building shared libraries: ${shared_ok}"
  11289. echo " OpenGL platform: ${OPENGL_TYPE}"
  11290. echo ""
  11291. echo " MacOSX application: `if test -n "${MACOSX_APP}" ; then echo yes ; else echo no ; fi`"
  11292. echo " MacOSX architectures: ${MACOSX_ARCHS}"
  11293. echo " MacOSX SDK: ${MACOSX_SDK}"
  11294. echo ""
  11295. echo " BLAS support: `if test -n "${USE_BLAS}" ; then echo yes ; else echo no ; fi`"
  11296. echo " BZIP2 support: `if test -n "${USE_BZIP2}" ; then echo yes ; else echo no ; fi`"
  11297. echo " C++ support: `if test -n "${USE_CXX}" ; then echo yes ; else echo no ; fi`"
  11298. echo " Cairo support: `if test -n "${USE_CAIRO}" ; then echo yes ; else echo no ; fi`"
  11299. echo " DWG support: `if test -n "${USE_OPENDWG}" ; then echo yes ; else echo no ; fi`"
  11300. echo " FFTW support: `if test -n "${USE_FFTW}" ; then echo yes ; else echo no ; fi`"
  11301. echo " FreeType support: `if test -n "${USE_FREETYPE}" ; then echo yes ; else echo no ; fi`"
  11302. echo " GDAL support: `if test -n "${USE_GDAL}" ; then echo yes ; else echo no ; fi`"
  11303. echo " GEOS support: `if test -n "${USE_GEOS}" ; then echo yes ; else echo no ; fi`"
  11304. echo " LAPACK support: `if test -n "${USE_LAPACK}" ; then echo yes ; else echo no ; fi`"
  11305. echo " Large File support (LFS): `if test -n "${USE_LARGEFILES}" ; then echo yes ; else echo no ; fi`"
  11306. echo " libLAS support: `if test -n "${USE_LIBLAS}" ; then echo yes ; else echo no ; fi`"
  11307. echo " MySQL support: `if test -n "${USE_MYSQL}" ; then echo yes ; else echo no ; fi`"
  11308. echo " NetCDF support: `if test -n "${USE_NETCDF}" ; then echo yes ; else echo no ; fi`"
  11309. echo " NLS support: `if test -n "${USE_NLS}" ; then echo yes ; else echo no ; fi`"
  11310. echo " ODBC support: `if test -n "${USE_ODBC}" ; then echo yes ; else echo no ; fi`"
  11311. echo " OGR support: `if test -n "${USE_OGR}" ; then echo yes ; else echo no ; fi`"
  11312. echo " OpenCL support: `if test -n "${USE_OPENCL}" ; then echo yes ; else echo no ; fi`"
  11313. echo " OpenGL support: `if test -n "${USE_OPENGL}" ; then echo yes ; else echo no ; fi`"
  11314. echo " OpenMP support: `if test -n "${USE_OPENMP}" ; then echo yes ; else echo no ; fi`"
  11315. echo " PDAL support: `if test -n "${USE_PDAL}" ; then echo yes ; else echo no ; fi`"
  11316. echo " PNG support: `if test -n "${USE_PNG}" ; then echo yes ; else echo no ; fi`"
  11317. echo " POSIX thread support: `if test -n "${USE_PTHREAD}" ; then echo yes ; else echo no ; fi`"
  11318. echo " PostgreSQL support: `if test -n "${USE_POSTGRES}" ; then echo yes ; else echo no ; fi`"
  11319. echo " Readline support: `if test -n "${USE_READLINE}" ; then echo yes ; else echo no ; fi`"
  11320. echo " Regex support: `if test -n "${USE_REGEX}" ; then echo yes ; else echo no ; fi`"
  11321. echo " SQLite support: `if test -n "${USE_SQLITE}" ; then echo yes ; else echo no ; fi`"
  11322. echo " TIFF support: `if test -n "${USE_TIFF}" ; then echo yes ; else echo no ; fi`"
  11323. echo " X11 support: `if test -n "${USE_X11}" ; then echo yes ; else echo no ; fi`"
  11324. echo ""