123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166 |
- #! /bin/sh
- # Guess values for system-dependent variables and create Makefiles.
- # Generated automatically using autoconf version 2.13
- # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
- #
- # This configure script is free software; the Free Software Foundation
- # gives unlimited permission to copy, distribute and modify it.
- # Defaults:
- ac_help=
- ac_default_prefix=/usr/local
- # Any additions from configure.in:
- ac_default_prefix=/usr/local
- ac_help="$ac_help
- --enable-macosx-app create a MacOSX application"
- ac_help="$ac_help
- --enable-shared build and link with shared libraries [--enable-shared]"
- ac_help="$ac_help
- --enable-w11 use W11 library for Windows X11 emulation"
- ac_help="$ac_help
- --with-cxx support C++ functionality (default: yes)"
- ac_help="$ac_help
- --with-macosx-archs[=arch list]
- compile multiple architectures on MacOSX, ie.
- universal. Valid architectures are i386, ppc,
- x86_64 and ppc64. (default: no [native])"
- ac_help="$ac_help
- --with-macosx-sdk[=path/sdk]
- compile with a system SDK on MacOSX. (default: no)"
- ac_help="$ac_help
- --with-tiff support TIFF functionality (default: yes)"
- ac_help="$ac_help
- --with-png support PNG functionality (default: yes)"
- ac_help="$ac_help
- --with-postgres support PostgreSQL functionality (default: no)"
- ac_help="$ac_help
- --with-mysql support MySQL functionality (default: no)"
- ac_help="$ac_help
- --with-sqlite support SQLite functionality (default: yes)"
- ac_help="$ac_help
- --with-opengl support OpenGL functionality (default: yes)"
- ac_help="$ac_help
- --with-odbc support ODBC functionality (default: no)"
- ac_help="$ac_help
- --with-fftw support FFTW functionality (default: yes)"
- ac_help="$ac_help
- --with-blas support BLAS functionality (default: no)"
- ac_help="$ac_help
- --with-lapack support LAPACK functionality (default: no)"
- ac_help="$ac_help
- --with-cairo support Cairo functionality (default: yes)"
- ac_help="$ac_help
- --with-freetype support FreeType functionality (default: yes)"
- ac_help="$ac_help
- --with-nls support NLS functionality (default: no)"
- ac_help="$ac_help
- --with-readline support Readline functionality (default: no)"
- ac_help="$ac_help
- --with-opendwg support openDWG functionality (default: no)"
- ac_help="$ac_help
- --with-regex support regex functionality (default: yes)"
- ac_help="$ac_help
- --with-pthread support POSIX threads functionality (default: no)"
- ac_help="$ac_help
- --with-openmp support OpenMP functionality (default: no)"
- ac_help="$ac_help
- --with-opencl support OpenCL functionality (default: no)"
- ac_help="$ac_help
- --with-bzlib support BZIP2 functionality (default: no)"
- ac_help="$ac_help
- --with-gdal[=path/gdal-config]
- enable GDAL/OGR support (gdal-config with path,
- e.g. '--with-gdal=/usr/local/bin/gdal-config')"
- ac_help="$ac_help
- --with-liblas[=path/liblas-config]
- enable libLAS support (liblas-config with path,
- e.g. '--with-liblas=/usr/local/bin/liblas-config',
- default: no)"
- ac_help="$ac_help
- --with-pdal[=path/pdal-config]
- enable PDAL support (pdal-config with path,
- e.g. '--with-pdal=/usr/local/bin/pdal-config',
- default: no)"
- ac_help="$ac_help
- --with-wxwidgets[=path/wx-config]
- enable wxWidgets support (wx-config with path,
- e.g. '--with-wxwidgets=/usr/local/bin/wx-config',
- default: no)"
- ac_help="$ac_help
- --with-netcdf[=path/nc-config]
- enable NetCDF support (nc-config with path,
- e.g. '--with-nc=/usr/local/bin/nc-config',
- default: no)"
- ac_help="$ac_help
- --with-geos[=path/geos-config]
- enable GEOS support (geos-config with path,
- e.g. '--with-geos=/usr/local/bin/geos-config',
- default: no)"
- ac_help="$ac_help
- --with-includes=DIRS site include files are in DIRS"
- ac_help="$ac_help
- --with-libs=DIRS site library files are in DIRS"
- ac_help="$ac_help
- --with-zlib-includes=DIRS
- zlib include files are in DIRS"
- ac_help="$ac_help
- --with-zlib-libs=DIRS zlib library files are in DIRS"
- ac_help="$ac_help
- --with-bzlib-includes=DIRS
- BZIP2 include files are in DIRS"
- ac_help="$ac_help
- --with-bzlib-libs=DIRS BZIP2 library files are in DIRS"
- ac_help="$ac_help
- --with-readline-includes=DIRS
- Readline include files are in DIRS"
- ac_help="$ac_help
- --with-readline-libs=DIRS
- Readline library files are in DIRS"
- ac_help="$ac_help
- --with-tiff-includes=DIRS
- TIFF include files are in DIRS"
- ac_help="$ac_help
- --with-tiff-libs=DIRS TIFF library files are in DIRS"
- ac_help="$ac_help
- --with-png-includes=DIRS
- PNG include files are in DIRS"
- ac_help="$ac_help
- --with-png-libs=DIRS PNG library files are in DIRS"
- ac_help="$ac_help
- --with-postgres-includes=DIRS
- PostgreSQL include files are in DIRS"
- ac_help="$ac_help
- --with-postgres-libs=DIRS
- PostgreSQL library files are in DIRS"
- ac_help="$ac_help
- --with-mysql-includes=DIRS
- MySQL include files are in DIRS"
- ac_help="$ac_help
- --with-mysql-libs=DIRS MySQL library files are in DIRS"
- ac_help="$ac_help
- --with-sqlite-includes=DIRS
- SQLite include files are in DIRS"
- ac_help="$ac_help
- --with-sqlite-libs=DIRS SQLite library files are in DIRS"
- ac_help="$ac_help
- --with-opengl-includes=DIRS
- OpenGL include files are in DIRS"
- ac_help="$ac_help
- --with-opengl-libs=DIRS OpenGL library files are in DIRS"
- ac_help="$ac_help
- --with-opengl-framework=DIR
- OpenGL framework is in DIR"
- ac_help="$ac_help
- --with-odbc-includes=DIRS
- ODBC include files are in DIRS"
- ac_help="$ac_help
- --with-odbc-libs=DIRS ODBC library files are in DIRS"
- ac_help="$ac_help
- --with-fftw-includes=DIRS
- FFTW include files are in DIRS"
- ac_help="$ac_help
- --with-fftw-libs=DIRS FFTW library files are in DIRS"
- ac_help="$ac_help
- --with-blas-includes=DIRS
- BLAS include files are in DIRS"
- ac_help="$ac_help
- --with-blas-libs=DIRS BLAS library files are in DIRS"
- ac_help="$ac_help
- --with-lapack-includes=DIRS
- LAPACK include files are in DIRS"
- ac_help="$ac_help
- --with-lapack-libs=DIRS LAPACK library files are in DIRS"
- ac_help="$ac_help
- --with-cairo-includes=DIRS
- cairo include files are in DIRS"
- ac_help="$ac_help
- --with-cairo-libs=DIRS cairo library files are in DIRS"
- ac_help="$ac_help
- --with-cairo-ldflags=FLAGS
- cairo needs FLAGS when linking"
- ac_help="$ac_help
- --with-freetype-includes=DIRS
- FreeType include files are in DIRS"
- ac_help="$ac_help
- --with-freetype-libs=DIRS
- FreeType library files are in DIRS"
- ac_help="$ac_help
- --with-proj-includes=DIRS
- External PROJ.4 include files are in DIRS"
- ac_help="$ac_help
- --with-proj-libs=DIRS External PROJ.4 library files are in DIRS"
- ac_help="$ac_help
- --with-proj-share=DIR External PROJ.4 data files are in DIR"
- ac_help="$ac_help
- --with-opendwg-includes=DIRS
- openDWG include files are in DIRS"
- ac_help="$ac_help
- --with-opendwg-libs=DIRS
- openDWG library files are in DIRS"
- ac_help="$ac_help
- --with-regex-includes=DIRS
- regex include files are in DIRS"
- ac_help="$ac_help
- --with-regex-libs=DIRS regex library files are in DIRS"
- ac_help="$ac_help
- --with-pthread-includes=DIRS
- POSIX threads include files are in DIRS"
- ac_help="$ac_help
- --with-pthread-libs=DIRS
- POSIX threads library files are in DIRS"
- ac_help="$ac_help
- --with-openmp-includes=DIRS
- OpenMP include files are in DIRS"
- ac_help="$ac_help
- --with-openmp-libs=DIRS OpenMP library files are in DIRS"
- ac_help="$ac_help
- --with-opencl-includes=DIRS
- OpenCL include files are in DIRS"
- ac_help="$ac_help
- --with-opencl-libs=DIRS OpenCL library files are in DIRS"
- ac_help="$ac_help
- --with-x use the X Window System"
- ac_help="$ac_help
- --disable-largefile omit support for large files (LFS)"
- # Initialize some variables set by options.
- # The variables have the same names as the options, with
- # dashes changed to underlines.
- build=NONE
- cache_file=./config.cache
- exec_prefix=NONE
- host=NONE
- no_create=
- nonopt=NONE
- no_recursion=
- prefix=NONE
- program_prefix=NONE
- program_suffix=NONE
- program_transform_name=s,x,x,
- silent=
- site=
- srcdir=
- target=NONE
- verbose=
- x_includes=NONE
- x_libraries=NONE
- bindir='${exec_prefix}/bin'
- sbindir='${exec_prefix}/sbin'
- libexecdir='${exec_prefix}/libexec'
- datadir='${prefix}/share'
- sysconfdir='${prefix}/etc'
- sharedstatedir='${prefix}/com'
- localstatedir='${prefix}/var'
- libdir='${exec_prefix}/lib'
- includedir='${prefix}/include'
- oldincludedir='/usr/include'
- infodir='${prefix}/info'
- mandir='${prefix}/man'
- # Initialize some other variables.
- subdirs=
- MFLAGS= MAKEFLAGS=
- SHELL=${CONFIG_SHELL-/bin/sh}
- # Maximum number of lines to put in a shell here document.
- ac_max_here_lines=12
- ac_prev=
- for ac_option
- do
- # If the previous option needs an argument, assign it.
- if test -n "$ac_prev"; then
- eval "$ac_prev=\$ac_option"
- ac_prev=
- continue
- fi
- case "$ac_option" in
- -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
- *) ac_optarg= ;;
- esac
- # Accept the important Cygnus configure options, so we can diagnose typos.
- case "$ac_option" in
- -bindir | --bindir | --bindi | --bind | --bin | --bi)
- ac_prev=bindir ;;
- -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
- bindir="$ac_optarg" ;;
- -build | --build | --buil | --bui | --bu)
- ac_prev=build ;;
- -build=* | --build=* | --buil=* | --bui=* | --bu=*)
- build="$ac_optarg" ;;
- -cache-file | --cache-file | --cache-fil | --cache-fi \
- | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
- ac_prev=cache_file ;;
- -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
- | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
- cache_file="$ac_optarg" ;;
- -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
- ac_prev=datadir ;;
- -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
- | --da=*)
- datadir="$ac_optarg" ;;
- -disable-* | --disable-*)
- ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
- # Reject names that are not valid shell variable names.
- if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
- { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
- fi
- ac_feature=`echo $ac_feature| sed 's/-/_/g'`
- eval "enable_${ac_feature}=no" ;;
- -enable-* | --enable-*)
- ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
- # Reject names that are not valid shell variable names.
- if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
- { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
- fi
- ac_feature=`echo $ac_feature| sed 's/-/_/g'`
- case "$ac_option" in
- *=*) ;;
- *) ac_optarg=yes ;;
- esac
- eval "enable_${ac_feature}='$ac_optarg'" ;;
- -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
- | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
- | --exec | --exe | --ex)
- ac_prev=exec_prefix ;;
- -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
- | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
- | --exec=* | --exe=* | --ex=*)
- exec_prefix="$ac_optarg" ;;
- -gas | --gas | --ga | --g)
- # Obsolete; use --with-gas.
- with_gas=yes ;;
- -help | --help | --hel | --he)
- # Omit some internal or obsolete options to make the list less imposing.
- # This message is too long to be a string in the A/UX 3.1 sh.
- cat << EOF
- Usage: configure [options] [host]
- Options: [defaults in brackets after descriptions]
- Configuration:
- --cache-file=FILE cache test results in FILE
- --help print this message
- --no-create do not create output files
- --quiet, --silent do not print \`checking...' messages
- --version print the version of autoconf that created configure
- Directory and file names:
- --prefix=PREFIX install architecture-independent files in PREFIX
- [$ac_default_prefix]
- --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
- [same as prefix]
- --bindir=DIR user executables in DIR [EPREFIX/bin]
- --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
- --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
- --datadir=DIR read-only architecture-independent data in DIR
- [PREFIX/share]
- --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
- --sharedstatedir=DIR modifiable architecture-independent data in DIR
- [PREFIX/com]
- --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
- --libdir=DIR object code libraries in DIR [EPREFIX/lib]
- --includedir=DIR C header files in DIR [PREFIX/include]
- --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
- --infodir=DIR info documentation in DIR [PREFIX/info]
- --mandir=DIR man documentation in DIR [PREFIX/man]
- --srcdir=DIR find the sources in DIR [configure dir or ..]
- --program-prefix=PREFIX prepend PREFIX to installed program names
- --program-suffix=SUFFIX append SUFFIX to installed program names
- --program-transform-name=PROGRAM
- run sed PROGRAM on installed program names
- EOF
- cat << EOF
- Host type:
- --build=BUILD configure for building on BUILD [BUILD=HOST]
- --host=HOST configure for HOST [guessed]
- --target=TARGET configure for TARGET [TARGET=HOST]
- Features and packages:
- --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
- --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
- --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
- --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
- --x-includes=DIR X include files are in DIR
- --x-libraries=DIR X library files are in DIR
- EOF
- if test -n "$ac_help"; then
- echo "--enable and --with options recognized:$ac_help"
- fi
- exit 0 ;;
- -host | --host | --hos | --ho)
- ac_prev=host ;;
- -host=* | --host=* | --hos=* | --ho=*)
- host="$ac_optarg" ;;
- -includedir | --includedir | --includedi | --included | --include \
- | --includ | --inclu | --incl | --inc)
- ac_prev=includedir ;;
- -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
- | --includ=* | --inclu=* | --incl=* | --inc=*)
- includedir="$ac_optarg" ;;
- -infodir | --infodir | --infodi | --infod | --info | --inf)
- ac_prev=infodir ;;
- -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
- infodir="$ac_optarg" ;;
- -libdir | --libdir | --libdi | --libd)
- ac_prev=libdir ;;
- -libdir=* | --libdir=* | --libdi=* | --libd=*)
- libdir="$ac_optarg" ;;
- -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
- | --libexe | --libex | --libe)
- ac_prev=libexecdir ;;
- -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
- | --libexe=* | --libex=* | --libe=*)
- libexecdir="$ac_optarg" ;;
- -localstatedir | --localstatedir | --localstatedi | --localstated \
- | --localstate | --localstat | --localsta | --localst \
- | --locals | --local | --loca | --loc | --lo)
- ac_prev=localstatedir ;;
- -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
- | --localstate=* | --localstat=* | --localsta=* | --localst=* \
- | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
- localstatedir="$ac_optarg" ;;
- -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
- ac_prev=mandir ;;
- -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
- mandir="$ac_optarg" ;;
- -nfp | --nfp | --nf)
- # Obsolete; use --without-fp.
- with_fp=no ;;
- -no-create | --no-create | --no-creat | --no-crea | --no-cre \
- | --no-cr | --no-c)
- no_create=yes ;;
- -no-recursion | --no-recursion | --no-recursio | --no-recursi \
- | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
- no_recursion=yes ;;
- -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
- | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
- | --oldin | --oldi | --old | --ol | --o)
- ac_prev=oldincludedir ;;
- -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
- | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
- | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
- oldincludedir="$ac_optarg" ;;
- -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
- ac_prev=prefix ;;
- -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
- prefix="$ac_optarg" ;;
- -program-prefix | --program-prefix | --program-prefi | --program-pref \
- | --program-pre | --program-pr | --program-p)
- ac_prev=program_prefix ;;
- -program-prefix=* | --program-prefix=* | --program-prefi=* \
- | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
- program_prefix="$ac_optarg" ;;
- -program-suffix | --program-suffix | --program-suffi | --program-suff \
- | --program-suf | --program-su | --program-s)
- ac_prev=program_suffix ;;
- -program-suffix=* | --program-suffix=* | --program-suffi=* \
- | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
- program_suffix="$ac_optarg" ;;
- -program-transform-name | --program-transform-name \
- | --program-transform-nam | --program-transform-na \
- | --program-transform-n | --program-transform- \
- | --program-transform | --program-transfor \
- | --program-transfo | --program-transf \
- | --program-trans | --program-tran \
- | --progr-tra | --program-tr | --program-t)
- ac_prev=program_transform_name ;;
- -program-transform-name=* | --program-transform-name=* \
- | --program-transform-nam=* | --program-transform-na=* \
- | --program-transform-n=* | --program-transform-=* \
- | --program-transform=* | --program-transfor=* \
- | --program-transfo=* | --program-transf=* \
- | --program-trans=* | --program-tran=* \
- | --progr-tra=* | --program-tr=* | --program-t=*)
- program_transform_name="$ac_optarg" ;;
- -q | -quiet | --quiet | --quie | --qui | --qu | --q \
- | -silent | --silent | --silen | --sile | --sil)
- silent=yes ;;
- -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
- ac_prev=sbindir ;;
- -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
- | --sbi=* | --sb=*)
- sbindir="$ac_optarg" ;;
- -sharedstatedir | --sharedstatedir | --sharedstatedi \
- | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
- | --sharedst | --shareds | --shared | --share | --shar \
- | --sha | --sh)
- ac_prev=sharedstatedir ;;
- -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
- | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
- | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
- | --sha=* | --sh=*)
- sharedstatedir="$ac_optarg" ;;
- -site | --site | --sit)
- ac_prev=site ;;
- -site=* | --site=* | --sit=*)
- site="$ac_optarg" ;;
- -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
- ac_prev=srcdir ;;
- -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
- srcdir="$ac_optarg" ;;
- -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
- | --syscon | --sysco | --sysc | --sys | --sy)
- ac_prev=sysconfdir ;;
- -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
- | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
- sysconfdir="$ac_optarg" ;;
- -target | --target | --targe | --targ | --tar | --ta | --t)
- ac_prev=target ;;
- -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
- target="$ac_optarg" ;;
- -v | -verbose | --verbose | --verbos | --verbo | --verb)
- verbose=yes ;;
- -version | --version | --versio | --versi | --vers)
- echo "configure generated by autoconf version 2.13"
- exit 0 ;;
- -with-* | --with-*)
- ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
- # Reject names that are not valid shell variable names.
- if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
- { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
- fi
- ac_package=`echo $ac_package| sed 's/-/_/g'`
- case "$ac_option" in
- *=*) ;;
- *) ac_optarg=yes ;;
- esac
- eval "with_${ac_package}='$ac_optarg'" ;;
- -without-* | --without-*)
- ac_package=`echo $ac_option|sed -e 's/-*without-//'`
- # Reject names that are not valid shell variable names.
- if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
- { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
- fi
- ac_package=`echo $ac_package| sed 's/-/_/g'`
- eval "with_${ac_package}=no" ;;
- --x)
- # Obsolete; use --with-x.
- with_x=yes ;;
- -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
- | --x-incl | --x-inc | --x-in | --x-i)
- ac_prev=x_includes ;;
- -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
- | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
- x_includes="$ac_optarg" ;;
- -x-libraries | --x-libraries | --x-librarie | --x-librari \
- | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
- ac_prev=x_libraries ;;
- -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
- | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
- x_libraries="$ac_optarg" ;;
- -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
- ;;
- *)
- if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
- echo "configure: warning: $ac_option: invalid host type" 1>&2
- fi
- if test "x$nonopt" != xNONE; then
- { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
- fi
- nonopt="$ac_option"
- ;;
- esac
- done
- if test -n "$ac_prev"; then
- { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
- fi
- trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
- # File descriptor usage:
- # 0 standard input
- # 1 file creation
- # 2 errors and warnings
- # 3 some systems may open it to /dev/tty
- # 4 used on the Kubota Titan
- # 6 checking for... messages and results
- # 5 compiler messages saved in config.log
- if test "$silent" = yes; then
- exec 6>/dev/null
- else
- exec 6>&1
- fi
- exec 5>./config.log
- echo "\
- This file contains any messages produced by compilers while
- running configure, to aid debugging if configure makes a mistake.
- " 1>&5
- # Strip out --no-create and --no-recursion so they do not pile up.
- # Also quote any args containing shell metacharacters.
- ac_configure_args=
- for ac_arg
- do
- case "$ac_arg" in
- -no-create | --no-create | --no-creat | --no-crea | --no-cre \
- | --no-cr | --no-c) ;;
- -no-recursion | --no-recursion | --no-recursio | --no-recursi \
- | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
- *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
- ac_configure_args="$ac_configure_args '$ac_arg'" ;;
- *) ac_configure_args="$ac_configure_args $ac_arg" ;;
- esac
- done
- # NLS nuisances.
- # Only set these to C if already set. These must not be set unconditionally
- # because not all systems understand e.g. LANG=C (notably SCO).
- # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
- # Non-C LC_CTYPE values break the ctype check.
- if test "${LANG+set}" = set; then LANG=C; export LANG; fi
- if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
- if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
- if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
- # confdefs.h avoids OS command line length limits that DEFS can exceed.
- rm -rf conftest* confdefs.h
- # AIX cpp loses on an empty file, so make sure it contains at least a newline.
- echo > confdefs.h
- # A filename unique to this package, relative to the directory that
- # configure is in, which we can look for to find out if srcdir is correct.
- ac_unique_file=configure.in
- # Find the source files, if location was not specified.
- if test -z "$srcdir"; then
- ac_srcdir_defaulted=yes
- # Try the directory containing this script, then its parent.
- ac_prog=$0
- ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
- test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
- srcdir=$ac_confdir
- if test ! -r $srcdir/$ac_unique_file; then
- srcdir=..
- fi
- else
- ac_srcdir_defaulted=no
- fi
- if test ! -r $srcdir/$ac_unique_file; then
- if test "$ac_srcdir_defaulted" = yes; then
- { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
- else
- { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
- fi
- fi
- srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
- # Prefer explicitly selected file to automatically selected ones.
- if test -z "$CONFIG_SITE"; then
- if test "x$prefix" != xNONE; then
- CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
- else
- CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
- fi
- fi
- for ac_site_file in $CONFIG_SITE; do
- if test -r "$ac_site_file"; then
- echo "loading site script $ac_site_file"
- . "$ac_site_file"
- fi
- done
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
- ac_exeext=
- ac_objext=o
- if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
- # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
- if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
- ac_n= ac_c='
- ' ac_t=' '
- else
- ac_n=-n ac_c= ac_t=
- fi
- else
- ac_n= ac_c='\c' ac_t=
- fi
- ac_aux_dir=
- for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
- if test -f $ac_dir/install-sh; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/install-sh -c"
- break
- elif test -f $ac_dir/install.sh; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/install.sh -c"
- break
- fi
- done
- if test -z "$ac_aux_dir"; then
- { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
- fi
- ac_config_guess=$ac_aux_dir/config.guess
- ac_config_sub=$ac_aux_dir/config.sub
- ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
- # Make sure we can run config.sub.
- if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
- else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
- fi
- echo $ac_n "checking host system type""... $ac_c" 1>&6
- echo "configure:759: checking host system type" >&5
- host_alias=$host
- case "$host_alias" in
- NONE)
- case $nonopt in
- NONE)
- if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
- else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
- fi ;;
- *) host_alias=$nonopt ;;
- esac ;;
- esac
- host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
- host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
- host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
- host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
- echo "$ac_t""$host" 1>&6
- # Extract the first word of "gcc", so it can be a program name with args.
- set dummy gcc; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:782: checking for $ac_word" >&5
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_CC="gcc"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- CC="$ac_cv_prog_CC"
- if test -n "$CC"; then
- echo "$ac_t""$CC" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test -z "$CC"; then
- # Extract the first word of "cc", so it can be a program name with args.
- set dummy cc; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:809: checking for $ac_word" >&5
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_prog_rejected=no
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
- ac_prog_rejected=yes
- continue
- fi
- ac_cv_prog_CC="cc"
- break
- fi
- done
- IFS="$ac_save_ifs"
- if test $ac_prog_rejected = yes; then
- # We found a bogon in the path, so make sure we never use it.
- set dummy $ac_cv_prog_CC
- shift
- if test $# -gt 0; then
- # We chose a different compiler from the bogus one.
- # However, it has the same basename, so the bogon will be chosen
- # first if we set CC to just the basename; use the full file name.
- shift
- set dummy "$ac_dir/$ac_word" "$@"
- shift
- ac_cv_prog_CC="$@"
- fi
- fi
- fi
- CC="$ac_cv_prog_CC"
- if test -n "$CC"; then
- echo "$ac_t""$CC" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test -z "$CC"; then
- case "`uname -s`" in
- *win32* | *WIN32*)
- # Extract the first word of "cl", so it can be a program name with args.
- set dummy cl; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:857: checking for $ac_word" >&5
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_CC="cl"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- CC="$ac_cv_prog_CC"
- if test -n "$CC"; then
- echo "$ac_t""$CC" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- ;;
- esac
- fi
- test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
- fi
- echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
- echo "configure:886: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
- cat > conftest.$ac_ext << EOF
- #line 897 "configure"
- #include "confdefs.h"
- main(){return(0);}
- EOF
- if { (eval echo configure:902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- ac_cv_prog_cc_works=yes
- # If we can't run a trivial program, we are probably using a cross compiler.
- if (./conftest; exit) 2>/dev/null; then
- ac_cv_prog_cc_cross=no
- else
- ac_cv_prog_cc_cross=yes
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- ac_cv_prog_cc_works=no
- fi
- rm -fr conftest*
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
- echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
- if test $ac_cv_prog_cc_works = no; then
- { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
- fi
- echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
- echo "configure:928: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
- echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
- cross_compiling=$ac_cv_prog_cc_cross
- echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
- echo "configure:933: checking whether we are using GNU C" >&5
- cat > conftest.c <<EOF
- #ifdef __GNUC__
- yes;
- #endif
- EOF
- 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
- ac_cv_prog_gcc=yes
- else
- ac_cv_prog_gcc=no
- fi
- echo "$ac_t""$ac_cv_prog_gcc" 1>&6
- if test $ac_cv_prog_gcc = yes; then
- GCC=yes
- else
- GCC=
- fi
- ac_test_CFLAGS="${CFLAGS+set}"
- ac_save_CFLAGS="$CFLAGS"
- CFLAGS=
- echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
- echo "configure:958: checking whether ${CC-cc} accepts -g" >&5
- echo 'void f(){}' > conftest.c
- if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
- ac_cv_prog_cc_g=yes
- else
- ac_cv_prog_cc_g=no
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
- if test "$ac_test_CFLAGS" = set; then
- CFLAGS="$ac_save_CFLAGS"
- elif test $ac_cv_prog_cc_g = yes; then
- if test "$GCC" = yes; then
- CFLAGS="-g -O2"
- else
- CFLAGS="-g"
- fi
- else
- if test "$GCC" = yes; then
- CFLAGS="-O2"
- else
- CFLAGS=
- fi
- fi
- echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
- echo "configure:987: checking for Cygwin environment" >&5
- cat > conftest.$ac_ext <<EOF
- #line 990 "configure"
- #include "confdefs.h"
- int main() {
- #ifndef __CYGWIN__
- #define __CYGWIN__ __CYGWIN32__
- #endif
- return __CYGWIN__;
- ; return 0; }
- EOF
- if { (eval echo configure:1001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_cygwin=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_cygwin=no
- fi
- rm -f conftest*
- rm -f conftest*
- echo "$ac_t""$ac_cv_cygwin" 1>&6
- CYGWIN=
- test "$ac_cv_cygwin" = yes && CYGWIN=yes
- echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
- echo "configure:1017: checking for mingw32 environment" >&5
- cat > conftest.$ac_ext <<EOF
- #line 1020 "configure"
- #include "confdefs.h"
- int main() {
- return __MINGW32__;
- ; return 0; }
- EOF
- if { (eval echo configure:1027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_mingw32=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_mingw32=no
- fi
- rm -f conftest*
- rm -f conftest*
- echo "$ac_t""$ac_cv_mingw32" 1>&6
- MINGW32=
- test "$ac_cv_mingw32" = yes && MINGW32=yes
- echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
- echo "configure:1045: checking for executable suffix" >&5
- if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
- ac_cv_exeext=.exe
- else
- ac_cv_exeext=no
- fi
- EXEEXT=""
- test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
- echo "$ac_t""${ac_cv_exeext}" 1>&6
- ac_exeext=$EXEEXT
- # Check for full floating-point support, including Infinity and NaN
- IEEEFLAG=
- echo $ac_n "checking for full floating-point support""... $ac_c" 1>&6
- echo "configure:1064: checking for full floating-point support" >&5
- if test "$cross_compiling" = yes; then
- echo "$ac_t""unknown (cross-compiling)" 1>&6
-
- echo $ac_n "checking whether "cc -mieee" works""... $ac_c" 1>&6
- echo "configure:1069: checking whether "cc -mieee" works" >&5
- ac_save_cflags=${CFLAGS}
- CFLAGS="$CFLAGS -mieee"
- cat > conftest.$ac_ext <<EOF
- #line 1073 "configure"
- #include "confdefs.h"
- int main() {
- ; return 0; }
- EOF
- if { (eval echo configure:1080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- echo "$ac_t""yes" 1>&6
- IEEEFLAG="-mieee"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
- fi
- rm -f conftest*
- CFLAGS=${ac_save_cflags}
-
- else
- cat > conftest.$ac_ext <<EOF
- #line 1096 "configure"
- #include "confdefs.h"
- #include <float.h>
- int main(void) {
- double one = 1.0;
- double zero = 0.0;
- if (one/zero > DBL_MAX) /* infinity */
- if (zero/zero != zero/zero) /* NaN */
- return 0;
- return 1;
- }
- EOF
- if { (eval echo configure:1110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- echo "$ac_t""yes" 1>&6
-
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- echo "$ac_t""no" 1>&6
- ac_save_cflags=${CFLAGS}
- CFLAGS=-mieee
-
- echo $ac_n "checking for full floating-point support with -mieee""... $ac_c" 1>&6
- echo "configure:1123: checking for full floating-point support with -mieee" >&5
- if test "$cross_compiling" = yes; then
- echo "$ac_t""unknown (cross-compiling)" 1>&6
- { echo "configure: error: *** INTERNAL CONFIGURE ERROR" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 1130 "configure"
- #include "confdefs.h"
- #include <float.h>
- int main(void) {
- double one = 1.0;
- double zero = 0.0;
- if (one/zero > DBL_MAX) /* infinity */
- if (zero/zero != zero/zero) /* NaN */
- return 0;
- return 1;
- }
- EOF
- if { (eval echo configure:1144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- echo "$ac_t""yes" 1>&6
- IEEEFLAG="-mieee"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- echo "$ac_t""no" 1>&6
- echo "configure: warning: *** Incomplete floating-point support." 1>&2
- fi
- rm -fr conftest*
- fi
- CFLAGS=${ac_save_cflags}
- fi
- rm -fr conftest*
- fi
- CFLAGS="$CFLAGS $IEEEFLAG"
- # Set BINDIR
- if test -n "${bindir}"; then
- BINDIR="${bindir}"
- else
- BINDIR=/usr/local/bin
- fi
- # Set SRCDIR and DSTDIR
- # Extract the first word of "pwd", so it can be a program name with args.
- set dummy pwd; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:1181: checking for $ac_word" >&5
- case "$pwd" in
- /*)
- ac_cv_path_pwd="$pwd" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_pwd="$pwd" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_pwd="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_pwd" && ac_cv_path_pwd="pwd"
- ;;
- esac
- pwd="$ac_cv_path_pwd"
- if test -n "$pwd"; then
- echo "$ac_t""$pwd" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$MINGW32" = yes ; then
- winpwd="pwd -W"
- else
- winpwd="$pwd"
- fi
- echo $ac_n "checking for source directory""... $ac_c" 1>&6
- echo "configure:1219: checking for source directory" >&5
- if test -z "$srcdir" ; then
- SRCDIR=`$pwd`
- else
- SRCDIR=`(cd "$srcdir" ; $pwd)`
- fi
- echo "$ac_t"""$SRCDIR"" 1>&6
- echo $ac_n "checking for build directory""... $ac_c" 1>&6
- echo "configure:1230: checking for build directory" >&5
- DSTDIR=`$pwd`
- WINDSTDIR=`$winpwd`
- echo "$ac_t"""$DSTDIR"" 1>&6
- # Set ARCH
- ARCH=
- if test -z "${host}"; then
- ARCH="unknown"
- else
- ARCH="${host}"
- fi
- # Use absolute path for aux directory so that install-sh works
- ac_aux_dir=
- for ac_dir in "$SRCDIR" $srcdir/"$SRCDIR"; do
- if test -f $ac_dir/install-sh; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/install-sh -c"
- break
- elif test -f $ac_dir/install.sh; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/install.sh -c"
- break
- fi
- done
- if test -z "$ac_aux_dir"; then
- { echo "configure: error: can not find install-sh or install.sh in "$SRCDIR" $srcdir/"$SRCDIR"" 1>&2; exit 1; }
- fi
- ac_config_guess=$ac_aux_dir/config.guess
- ac_config_sub=$ac_aux_dir/config.sub
- ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
- # Set GISBASE and GRASS_BIN
- GISBASE="${WINDSTDIR}/dist.${ARCH}"
- GRASS_BIN="${DSTDIR}/bin.${ARCH}"
- # Set GRASS_VERSION_*
- GRASS_VERSION_FILE=include/VERSION
- GRASS_VERSION_MAJOR=`sed -n 1p "${GRASS_VERSION_FILE}"`
- GRASS_VERSION_MINOR=`sed -n 2p "${GRASS_VERSION_FILE}"`
- GRASS_VERSION_RELEASE=`sed -n 3p "${GRASS_VERSION_FILE}"`
- GRASS_VERSION_DATE=`sed -n 4p "${GRASS_VERSION_FILE}"`
- GRASS_VERSION_NUMBER=`echo ${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.${GRASS_VERSION_RELEASE}`
- NAME_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/\..*//'`
- LIB_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/^\([0-9.]*\).*$/\1/'`
- GRASS_VERSION_SVN="exported"
- # Extract the first word of "svnversion", so it can be a program name with args.
- set dummy svnversion; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:1298: checking for $ac_word" >&5
- case "$SVN_VERSION" in
- /*)
- ac_cv_path_SVN_VERSION="$SVN_VERSION" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_SVN_VERSION="$SVN_VERSION" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_SVN_VERSION="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_SVN_VERSION" && ac_cv_path_SVN_VERSION="no"
- ;;
- esac
- SVN_VERSION="$ac_cv_path_SVN_VERSION"
- if test -n "$SVN_VERSION"; then
- echo "$ac_t""$SVN_VERSION" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$SVN_VERSION" != "no" ; then
- GRASS_VERSION_SVN=`$SVN_VERSION -c | cut -f2 -d:`
- if test "$GRASS_VERSION_SVN" = "exported" -o "$GRASS_VERSION_SVN" = "Unversioned directory" ; then
- GRASS_VERSION_SVN="exported"
- else
- GRASS_VERSION_SVN="r$GRASS_VERSION_SVN"
- fi
- fi
- # Check for MacOSX App
- # Check whether --enable-macosx-app or --disable-macosx-app was given.
- if test "${enable_macosx_app+set}" = set; then
- enableval="$enable_macosx_app"
- :
- else
- enable_macosx_app=no
- fi
- echo $ac_n "checking for MacOSX App""... $ac_c" 1>&6
- echo "configure:1359: checking for MacOSX App" >&5
- case "$enable_macosx_app" in
- yes) MACOSX_APP=1 ;;
- no) MACOSX_APP= ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- echo "$ac_t"""$enable_macosx_app"" 1>&6
- # Check for MacOSX archs
- echo $ac_n "checking for MacOSX architectures""... $ac_c" 1>&6
- echo "configure:1371: checking for MacOSX architectures" >&5
- MACOSX_ARCHS=
- if test -z "$with_macosx_archs" ; then
- echo "$ac_t""no" 1>&6
- else
- for a in $with_macosx_archs
- do
- # check if valid arch?
- case "$a" in
- i386|ppc|x86_64|ppc64)
- MACOSX_ARCHS="$MACOSX_ARCHS -arch $a"
- ;;
- esac
- done
- echo "$ac_t""$MACOSX_ARCHS" 1>&6
- LDFLAGS="$LDFLAGS $MACOSX_ARCHS"
- CFLAGS="$CFLAGS $MACOSX_ARCHS"
- CXXFLAGS="$CXXFLAGS $MACOSX_ARCHS"
- fi
- # Done checking MacOSX archs
- # Check for MacOSX SDK
- echo $ac_n "checking for MacOSX SDK""... $ac_c" 1>&6
- echo "configure:1400: checking for MacOSX SDK" >&5
- MACOSX_SDK=
- if test -z "$with_macosx_sdk" ; then
- echo "$ac_t""no" 1>&6
- else
-
- ac_safe=`echo "$with_macosx_sdk/SDKSettings.plist" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $with_macosx_sdk/SDKSettings.plist""... $ac_c" 1>&6
- echo "configure:1410: checking for $with_macosx_sdk/SDKSettings.plist" >&5
- if test "$cross_compiling" = yes; then
- { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
- else
- if test -r $with_macosx_sdk/SDKSettings.plist; then
- eval "ac_cv_file_$ac_safe=yes"
- else
- eval "ac_cv_file_$ac_safe=no"
- fi
- fi
- if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- MACOSX_SDK="-isysroot $with_macosx_sdk"
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** specified SDK does not exist or is not a SDK" 1>&2; exit 1; }
- fi
- LDFLAGS="$LDFLAGS $MACOSX_SDK"
- CFLAGS="$CFLAGS $MACOSX_SDK"
- CXXFLAGS="$CXXFLAGS $MACOSX_SDK"
- fi
- # Done checking MacOSX SDK
- # Set INST_DIR
- if test -n "$MACOSX_APP" ; then
- INSTDIR='${prefix}'"/GRASS-${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.app/Contents/MacOS"
- else
- INSTDIR='${prefix}'"/grass-${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.${GRASS_VERSION_RELEASE}"
- fi
- # Get flags for building shared libraries
- echo $ac_n "checking how to build libraries""... $ac_c" 1>&6
- echo "configure:1454: checking how to build libraries" >&5
- # Check whether --enable-shared or --disable-shared was given.
- if test "${enable_shared+set}" = set; then
- enableval="$enable_shared"
- shared_ok=$enableval
- else
- shared_ok=yes
- fi
- if test "${enable_shared+set}" = set; then
- enableval="$enable_shared"
- shared_ok=$enableval
- else
- shared_ok=yes
- fi
- if test "$shared_ok" = "yes" ; then
- echo "$ac_t""shared" 1>&6
- SHARED_BUILD=1
- GRASS_LIBRARY_TYPE='shlib'
- else
- echo "$ac_t""static" 1>&6
- SHARED_BUILD=0
- cat >> confdefs.h <<\EOF
- #define STATIC_BUILD 1
- EOF
- GRASS_LIBRARY_TYPE='stlib'
- fi
-
- ac_save_ldflags="$LDFLAGS"
- SHLIB_CFLAGS=""
- SHLIB_LD_FLAGS=""
- SHLIB_SUFFIX=""
- SHLIB_LD=""
- STLIB_LD='${AR} cr'
- STLIB_SUFFIX='.a'
- GRASS_TRIM_DOTS='`echo ${LIB_VER} | tr -d .`'
- GRASS_LIB_VERSIONS_OK=ok
- LDFLAGS=""
- LD_SEARCH_FLAGS=""
- LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
- case $host in
- *-linux-* | *-gnu* | *-kfreebsd*-gnu)
- SHLIB_CFLAGS="-fPIC"
- SHLIB_LD_FLAGS="-Wl,-soname,\$(notdir \$@)"
- SHLIB_SUFFIX=".so"
- SHLIB_LD="${CC} -shared"
- LDFLAGS="-Wl,--export-dynamic"
- LD_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
- LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
- ;;
- *-pc-cygwin)
- SHLIB_SUFFIX=".dll"
- SHLIB_LD="${CC} -shared"
- LDFLAGS="-Wl,--export-dynamic"
- LD_LIBRARY_PATH_VAR="PATH"
- ;;
- *-pc-mingw32 | *-w64-mingw32 | *-pc-msys)
- SHLIB_SUFFIX=".dll"
- SHLIB_LD="${CC} -shared"
- LDFLAGS="-Wl,--export-dynamic,--enable-runtime-pseudo-reloc"
- LD_LIBRARY_PATH_VAR="PATH"
- ;;
- *-apple-darwin*)
- SHLIB_CFLAGS="-fno-common"
- SHLIB_SUFFIX=".dylib"
- 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}"
- LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
- ;;
- *-sun-solaris*)
- # Note: If _REENTRANT isn't defined, then Solaris
- # won't define thread-safe library routines.
- cat >> confdefs.h <<\EOF
- #define _REENTRANT 1
- EOF
- cat >> confdefs.h <<\EOF
- #define _POSIX_PTHREAD_SEMANTICS 1
- EOF
- # Note: need the LIBS below, otherwise Tk won't find Tcl's
- # symbols when dynamically loaded into tclsh.
- if test "$GCC" = "yes" ; then
- SHLIB_CFLAGS="-fPIC"
- SHLIB_LD="$CC -shared"
- LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
- else
- SHLIB_CFLAGS="-KPIC"
- SHLIB_LD="/usr/ccs/bin/ld -G -z text"
- LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
- fi
- SHLIB_SUFFIX=".so"
- LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
- ;;
- *-solaris2*)
- # Note: Solaris is as of 2010 Oracle Solaris, not Sun Solaris
- # Oracle Solaris derives from Solaris 2
- # derives from SunOS 5
- # derives from UNIX System V Release 4
- # Note: If _REENTRANT isn't defined, then Solaris
- # won't define thread-safe library routines.
- cat >> confdefs.h <<\EOF
- #define _REENTRANT 1
- EOF
- cat >> confdefs.h <<\EOF
- #define _POSIX_PTHREAD_SEMANTICS 1
- EOF
- # Note: need the LIBS below, otherwise Tk won't find Tcl's
- # symbols when dynamically loaded into tclsh.
- if test "$GCC" = "yes" ; then
- SHLIB_CFLAGS="-fPIC"
- SHLIB_LD="$CC -shared"
- LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
- else
- SHLIB_CFLAGS="-KPIC"
- SHLIB_LD="/usr/ccs/bin/ld -G -z text"
- LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
- fi
- SHLIB_SUFFIX=".so"
- LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
- ;;
- *-freebsd*)
- # NOTE: only FreeBSD 4+ is supported
- # FreeBSD 3.* and greater have ELF.
- SHLIB_CFLAGS="-fPIC"
- #SHLIB_LD="ld -Bshareable -x"
- SHLIB_LD="${CC} -shared"
- SHLIB_SUFFIX=".so"
- LDFLAGS="-export-dynamic"
- #LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
- LD_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
- # TODO: add optional pthread support with any combination of:
- # CFLAGS="$CFLAGS -pthread"
- # LDFLAGS="$LDFLAGS -lpthread"
- # AC_DEFINE(_REENTRANT)
- # AC_DEFINE(_POSIX_PTHREAD_SEMANTICS)
- ;;
- *-netbsd*)
- # NetBSD has ELF.
- SHLIB_CFLAGS="-fPIC"
- SHLIB_LD="${CC} -shared"
- SHLIB_LD_LIBS="${LIBS}"
- LDFLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -export-dynamic'
- SHLIB_LD_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -export-dynamic'
- LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -L${LIB_RUNTIME_DIR}'
- # some older NetBSD versions do not handle version numbers with dots.
- #STLIB_SUFFIX='${GRASS_TRIM_DOTS}.a'
- #SHLIB_SUFFIX='${GRASS_TRIM_DOTS}.so'
- #GRASS_LIB_VERSIONS_OK=nodots
- # NetBSD 6 does handle version numbers with dots.
- STLIB_SUFFIX=".a"
- SHLIB_SUFFIX=".so"
- # TODO: add optional pthread support with any combination of:
- # CFLAGS="$CFLAGS -pthread"
- # LDFLAGS="$LDFLAGS -lpthread"
- # AC_DEFINE(_REENTRANT)
- # AC_DEFINE(_POSIX_PTHREAD_SEMANTICS)
- ;;
- *aix*)
- # NOTE: do we need to support aix < 6 ?
- LIBS="$LIBS -lc"
- SHLIB_CFLAGS=""
- LDFLAGS=""
- if test "$GCC" = "yes" ; then
- SHLIB_CFLAGS="-fPIC"
- SHLIB_LD="$CC -shared"
- LD_SEARCH_FLAGS='-Wl,-bsvr4,-R,${LIB_RUNTIME_DIR}'
- else
- # assume xlc
- SHLIB_CFLAGS="-qmkshrobj"
- SHLIB_LD="$CC -shared"
- LD_SEARCH_FLAGS='-Wl,-bsvr4,-R,${LIB_RUNTIME_DIR}'
- fi
- SHLIB_SUFFIX=".so"
- LD_LIBRARY_PATH_VAR="LIBPATH"
- GRASS_NEEDS_EXP_FILE=1
- GRASS_EXPORT_FILE_SUFFIX='${LIB_VER}.exp'
- ;;
- *)
- { echo "configure: error: ***Unknown platform: $host***" 1>&2; exit 1; }
- ;;
- esac
-
-
-
-
-
-
-
-
-
- LDFLAGS="${ac_save_ldflags} $LDFLAGS"
- # Enable options
- # Check whether --enable-w11 or --disable-w11 was given.
- if test "${enable_w11+set}" = set; then
- enableval="$enable_w11"
- :
- else
- enable_w11=no
- fi
- # With options
- # Check whether --with-cxx or --without-cxx was given.
- if test "${with_cxx+set}" = set; then
- withval="$with_cxx"
- :
- else
- with_cxx=yes
- fi
- #LOC_ARG_WITH(g77, GNU Fortran 77, no)
- # Check whether --with-macosx-archs or --without-macosx-archs was given.
- if test "${with_macosx_archs+set}" = set; then
- withval="$with_macosx_archs"
- :
- else
- with_macosx_archs="no"
- fi
- # Check whether --with-macosx-sdk or --without-macosx-sdk was given.
- if test "${with_macosx_sdk+set}" = set; then
- withval="$with_macosx_sdk"
- :
- else
- with_macosx_sdk="no"
- fi
- # Check whether --with-tiff or --without-tiff was given.
- if test "${with_tiff+set}" = set; then
- withval="$with_tiff"
- :
- else
- with_tiff=yes
- fi
- # Check whether --with-png or --without-png was given.
- if test "${with_png+set}" = set; then
- withval="$with_png"
- :
- else
- with_png=yes
- fi
- # Check whether --with-postgres or --without-postgres was given.
- if test "${with_postgres+set}" = set; then
- withval="$with_postgres"
- :
- else
- with_postgres=no
- fi
- # Check whether --with-mysql or --without-mysql was given.
- if test "${with_mysql+set}" = set; then
- withval="$with_mysql"
- :
- else
- with_mysql=no
- fi
- # Check whether --with-sqlite or --without-sqlite was given.
- if test "${with_sqlite+set}" = set; then
- withval="$with_sqlite"
- :
- else
- with_sqlite=yes
- fi
- # Check whether --with-opengl or --without-opengl was given.
- if test "${with_opengl+set}" = set; then
- withval="$with_opengl"
- :
- else
- with_opengl=yes
- fi
- # Check whether --with-odbc or --without-odbc was given.
- if test "${with_odbc+set}" = set; then
- withval="$with_odbc"
- :
- else
- with_odbc=no
- fi
- # Check whether --with-fftw or --without-fftw was given.
- if test "${with_fftw+set}" = set; then
- withval="$with_fftw"
- :
- else
- with_fftw=yes
- fi
- # Check whether --with-blas or --without-blas was given.
- if test "${with_blas+set}" = set; then
- withval="$with_blas"
- :
- else
- with_blas=no
- fi
- # Check whether --with-lapack or --without-lapack was given.
- if test "${with_lapack+set}" = set; then
- withval="$with_lapack"
- :
- else
- with_lapack=no
- fi
- # Check whether --with-cairo or --without-cairo was given.
- if test "${with_cairo+set}" = set; then
- withval="$with_cairo"
- :
- else
- with_cairo=yes
- fi
- # Check whether --with-freetype or --without-freetype was given.
- if test "${with_freetype+set}" = set; then
- withval="$with_freetype"
- :
- else
- with_freetype=yes
- fi
- # Check whether --with-nls or --without-nls was given.
- if test "${with_nls+set}" = set; then
- withval="$with_nls"
- :
- else
- with_nls=no
- fi
- # Check whether --with-readline or --without-readline was given.
- if test "${with_readline+set}" = set; then
- withval="$with_readline"
- :
- else
- with_readline=no
- fi
- # Check whether --with-opendwg or --without-opendwg was given.
- if test "${with_opendwg+set}" = set; then
- withval="$with_opendwg"
- :
- else
- with_opendwg=no
- fi
- # Check whether --with-regex or --without-regex was given.
- if test "${with_regex+set}" = set; then
- withval="$with_regex"
- :
- else
- with_regex=yes
- fi
- # Check whether --with-pthread or --without-pthread was given.
- if test "${with_pthread+set}" = set; then
- withval="$with_pthread"
- :
- else
- with_pthread=no
- fi
- # Check whether --with-openmp or --without-openmp was given.
- if test "${with_openmp+set}" = set; then
- withval="$with_openmp"
- :
- else
- with_openmp=no
- fi
- # Check whether --with-opencl or --without-opencl was given.
- if test "${with_opencl+set}" = set; then
- withval="$with_opencl"
- :
- else
- with_opencl=no
- fi
- # Check whether --with-bzlib or --without-bzlib was given.
- if test "${with_bzlib+set}" = set; then
- withval="$with_bzlib"
- :
- else
- with_bzlib=no
- fi
- # Check whether --with-gdal or --without-gdal was given.
- if test "${with_gdal+set}" = set; then
- withval="$with_gdal"
- :
- fi
- # Check whether --with-liblas or --without-liblas was given.
- if test "${with_liblas+set}" = set; then
- withval="$with_liblas"
- :
- else
- with_liblas="no"
- fi
- # Check whether --with-pdal or --without-pdal was given.
- if test "${with_pdal+set}" = set; then
- withval="$with_pdal"
- :
- else
- with_pdal="no"
- fi
- # Check whether --with-wxwidgets or --without-wxwidgets was given.
- if test "${with_wxwidgets+set}" = set; then
- withval="$with_wxwidgets"
- :
- else
- with_wxwidgets="no"
- fi
- # Check whether --with-netcdf or --without-netcdf was given.
- if test "${with_netcdf+set}" = set; then
- withval="$with_netcdf"
- :
- else
- with_netcdf="no"
- fi
- # With includes and libs options
- # Check whether --with-geos or --without-geos was given.
- if test "${with_geos+set}" = set; then
- withval="$with_geos"
- :
- else
- with_geos="no"
- fi
- # Check whether --with-includes or --without-includes was given.
- if test "${with_includes+set}" = set; then
- withval="$with_includes"
- :
- fi
- # Check whether --with-libs or --without-libs was given.
- if test "${with_libs+set}" = set; then
- withval="$with_libs"
- :
- fi
- # Check whether --with-zlib-includes or --without-zlib-includes was given.
- if test "${with_zlib_includes+set}" = set; then
- withval="$with_zlib_includes"
- :
- fi
- # Check whether --with-zlib-libs or --without-zlib-libs was given.
- if test "${with_zlib_libs+set}" = set; then
- withval="$with_zlib_libs"
- :
- fi
- # Check whether --with-bzlib-includes or --without-bzlib-includes was given.
- if test "${with_bzlib_includes+set}" = set; then
- withval="$with_bzlib_includes"
- :
- fi
- # Check whether --with-bzlib-libs or --without-bzlib-libs was given.
- if test "${with_bzlib_libs+set}" = set; then
- withval="$with_bzlib_libs"
- :
- fi
- # Check whether --with-readline-includes or --without-readline-includes was given.
- if test "${with_readline_includes+set}" = set; then
- withval="$with_readline_includes"
- :
- fi
- # Check whether --with-readline-libs or --without-readline-libs was given.
- if test "${with_readline_libs+set}" = set; then
- withval="$with_readline_libs"
- :
- fi
- # Check whether --with-tiff-includes or --without-tiff-includes was given.
- if test "${with_tiff_includes+set}" = set; then
- withval="$with_tiff_includes"
- :
- fi
- # Check whether --with-tiff-libs or --without-tiff-libs was given.
- if test "${with_tiff_libs+set}" = set; then
- withval="$with_tiff_libs"
- :
- fi
- # Check whether --with-png-includes or --without-png-includes was given.
- if test "${with_png_includes+set}" = set; then
- withval="$with_png_includes"
- :
- fi
- # Check whether --with-png-libs or --without-png-libs was given.
- if test "${with_png_libs+set}" = set; then
- withval="$with_png_libs"
- :
- fi
- # Check whether --with-postgres-includes or --without-postgres-includes was given.
- if test "${with_postgres_includes+set}" = set; then
- withval="$with_postgres_includes"
- :
- fi
- # Check whether --with-postgres-libs or --without-postgres-libs was given.
- if test "${with_postgres_libs+set}" = set; then
- withval="$with_postgres_libs"
- :
- fi
- # Check whether --with-mysql-includes or --without-mysql-includes was given.
- if test "${with_mysql_includes+set}" = set; then
- withval="$with_mysql_includes"
- :
- fi
- # Check whether --with-mysql-libs or --without-mysql-libs was given.
- if test "${with_mysql_libs+set}" = set; then
- withval="$with_mysql_libs"
- :
- fi
- # Check whether --with-sqlite-includes or --without-sqlite-includes was given.
- if test "${with_sqlite_includes+set}" = set; then
- withval="$with_sqlite_includes"
- :
- fi
- # Check whether --with-sqlite-libs or --without-sqlite-libs was given.
- if test "${with_sqlite_libs+set}" = set; then
- withval="$with_sqlite_libs"
- :
- fi
- # Check whether --with-opengl-includes or --without-opengl-includes was given.
- if test "${with_opengl_includes+set}" = set; then
- withval="$with_opengl_includes"
- :
- fi
- # Check whether --with-opengl-libs or --without-opengl-libs was given.
- if test "${with_opengl_libs+set}" = set; then
- withval="$with_opengl_libs"
- :
- fi
- # Check whether --with-opengl-framework or --without-opengl-framework was given.
- if test "${with_opengl_framework+set}" = set; then
- withval="$with_opengl_framework"
- :
- fi
- # Check whether --with-odbc-includes or --without-odbc-includes was given.
- if test "${with_odbc_includes+set}" = set; then
- withval="$with_odbc_includes"
- :
- fi
- # Check whether --with-odbc-libs or --without-odbc-libs was given.
- if test "${with_odbc_libs+set}" = set; then
- withval="$with_odbc_libs"
- :
- fi
- # Check whether --with-fftw-includes or --without-fftw-includes was given.
- if test "${with_fftw_includes+set}" = set; then
- withval="$with_fftw_includes"
- :
- fi
- # Check whether --with-fftw-libs or --without-fftw-libs was given.
- if test "${with_fftw_libs+set}" = set; then
- withval="$with_fftw_libs"
- :
- fi
- # Check whether --with-blas-includes or --without-blas-includes was given.
- if test "${with_blas_includes+set}" = set; then
- withval="$with_blas_includes"
- :
- fi
- # Check whether --with-blas-libs or --without-blas-libs was given.
- if test "${with_blas_libs+set}" = set; then
- withval="$with_blas_libs"
- :
- fi
- # Check whether --with-lapack-includes or --without-lapack-includes was given.
- if test "${with_lapack_includes+set}" = set; then
- withval="$with_lapack_includes"
- :
- fi
- # Check whether --with-lapack-libs or --without-lapack-libs was given.
- if test "${with_lapack_libs+set}" = set; then
- withval="$with_lapack_libs"
- :
- fi
- # Check whether --with-cairo-includes or --without-cairo-includes was given.
- if test "${with_cairo_includes+set}" = set; then
- withval="$with_cairo_includes"
- :
- fi
- # Check whether --with-cairo-libs or --without-cairo-libs was given.
- if test "${with_cairo_libs+set}" = set; then
- withval="$with_cairo_libs"
- :
- fi
- # Check whether --with-cairo-ldflags or --without-cairo-ldflags was given.
- if test "${with_cairo_ldflags+set}" = set; then
- withval="$with_cairo_ldflags"
- :
- fi
- # Check whether --with-freetype-includes or --without-freetype-includes was given.
- if test "${with_freetype_includes+set}" = set; then
- withval="$with_freetype_includes"
- :
- fi
- # Check whether --with-freetype-libs or --without-freetype-libs was given.
- if test "${with_freetype_libs+set}" = set; then
- withval="$with_freetype_libs"
- :
- fi
- # Check whether --with-proj-includes or --without-proj-includes was given.
- if test "${with_proj_includes+set}" = set; then
- withval="$with_proj_includes"
- :
- fi
- # Check whether --with-proj-libs or --without-proj-libs was given.
- if test "${with_proj_libs+set}" = set; then
- withval="$with_proj_libs"
- :
- fi
- # Check whether --with-proj-share or --without-proj-share was given.
- if test "${with_proj_share+set}" = set; then
- withval="$with_proj_share"
- :
- fi
- # Check whether --with-opendwg-includes or --without-opendwg-includes was given.
- if test "${with_opendwg_includes+set}" = set; then
- withval="$with_opendwg_includes"
- :
- fi
- # Check whether --with-opendwg-libs or --without-opendwg-libs was given.
- if test "${with_opendwg_libs+set}" = set; then
- withval="$with_opendwg_libs"
- :
- fi
- # Check whether --with-regex-includes or --without-regex-includes was given.
- if test "${with_regex_includes+set}" = set; then
- withval="$with_regex_includes"
- :
- fi
- # Check whether --with-regex-libs or --without-regex-libs was given.
- if test "${with_regex_libs+set}" = set; then
- withval="$with_regex_libs"
- :
- fi
- # Check whether --with-pthread-includes or --without-pthread-includes was given.
- if test "${with_pthread_includes+set}" = set; then
- withval="$with_pthread_includes"
- :
- fi
- # Check whether --with-pthread-libs or --without-pthread-libs was given.
- if test "${with_pthread_libs+set}" = set; then
- withval="$with_pthread_libs"
- :
- fi
- # Check whether --with-openmp-includes or --without-openmp-includes was given.
- if test "${with_openmp_includes+set}" = set; then
- withval="$with_openmp_includes"
- :
- fi
- # Check whether --with-openmp-libs or --without-openmp-libs was given.
- if test "${with_openmp_libs+set}" = set; then
- withval="$with_openmp_libs"
- :
- fi
- # Check whether --with-opencl-includes or --without-opencl-includes was given.
- if test "${with_opencl_includes+set}" = set; then
- withval="$with_opencl_includes"
- :
- fi
- # Check whether --with-opencl-libs or --without-opencl-libs was given.
- if test "${with_opencl_libs+set}" = set; then
- withval="$with_opencl_libs"
- :
- fi
- #LOC_ARG_WITH_FRAMEWORK(opencl, OpenCL)
- # Put this early on so CPPFLAGS and LDFLAGS have any additional dirs
- # With includes option
- # Handle Fortran compiler choice
- #LOC_CHECK_USE(g77, GNU Fortran 77, USE_G77)
- # Done checking fortran
- echo $ac_n "checking for additional include dirs""... $ac_c" 1>&6
- echo "configure:2360: checking for additional include dirs" >&5
- case "$with_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to list --with-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_includes" 1>&6
- if test -n "$with_includes"; then
- for dir in $with_includes; do
- if test -d "$dir"; then
- INCLUDE_DIRS="$INCLUDE_DIRS -I$dir"
- else
- { echo "configure: error: *** Include directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS="$CPPFLAGS $INCLUDE_DIRS"
- fi
- # With libs option
- echo $ac_n "checking for additional library dirs""... $ac_c" 1>&6
- echo "configure:2383: checking for additional library dirs" >&5
- case "$with_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory list to --with-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_libs" 1>&6
- if test -n "$with_libs"; then
- for dir in $with_libs; do
- if test -d "$dir"; then
- LIBRARY_DIRS="$LIBRARY_DIRS -L$dir"
- else
- { echo "configure: error: *** Library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- LDFLAGS="$LDFLAGS $LIBRARY_DIRS"
- fi
- # Programs and standard headers, libraries, functions
- # Find a good install program. We prefer a C program (faster),
- # so one script is as good as another. But avoid the broken or
- # incompatible versions:
- # SysV /etc/install, /usr/sbin/install
- # SunOS /usr/etc/install
- # IRIX /sbin/install
- # AIX /bin/install
- # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
- # AFS /usr/afsws/bin/install, which mishandles nonexistent args
- # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
- # ./install, which can be erroneously created by make from ./install.sh.
- echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
- echo "configure:2417: checking for a BSD compatible install" >&5
- if test -z "$INSTALL"; then
- IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
- for ac_dir in $PATH; do
- # Account for people who put trailing slashes in PATH elements.
- case "$ac_dir/" in
- /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
- *)
- # OSF1 and SCO ODT 3.0 have their own names for install.
- # Don't use installbsd from OSF since it installs stuff as root
- # by default.
- for ac_prog in ginstall scoinst install; do
- if test -f $ac_dir/$ac_prog; then
- if test $ac_prog = install &&
- grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
- # AIX install. It has an incompatible calling convention.
- :
- else
- ac_cv_path_install="$ac_dir/$ac_prog -c"
- break 2
- fi
- fi
- done
- ;;
- esac
- done
- IFS="$ac_save_IFS"
- if test "${ac_cv_path_install+set}" = set; then
- INSTALL="$ac_cv_path_install"
- else
- # As a last resort, use the slow shell script. We don't cache a
- # path for INSTALL within a source directory, because that will
- # break other packages using the cache if that directory is
- # removed, or if the path is relative.
- INSTALL="$ac_install_sh"
- fi
- fi
- echo "$ac_t""$INSTALL" 1>&6
- # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
- # It thinks the first close brace ends the variable substitution.
- test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
- test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
- test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
- # Extract the first word of "flex", so it can be a program name with args.
- set dummy flex; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:2470: checking for $ac_word" >&5
- if test -n "$LEX"; then
- ac_cv_prog_LEX="$LEX" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_LEX="flex"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
- fi
- LEX="$ac_cv_prog_LEX"
- if test -n "$LEX"; then
- echo "$ac_t""$LEX" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test -z "$LEXLIB"
- then
- case "$LEX" in
- flex*) ac_lib=fl ;;
- *) ac_lib=l ;;
- esac
- echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
- echo "configure:2501: checking for yywrap in -l$ac_lib" >&5
- ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-l$ac_lib $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 2507 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char yywrap();
- int main() {
- yywrap()
- ; return 0; }
- EOF
- if { (eval echo configure:2518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- LEXLIB="-l$ac_lib"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- if test "$LEX" = "lex"; then
- # Extract the first word of "lex", so it can be a program name with args.
- set dummy lex; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:2543: checking for $ac_word" >&5
- case "$LEXPATH" in
- /*)
- ac_cv_path_LEXPATH="$LEXPATH" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_LEXPATH="$LEXPATH" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_LEXPATH="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_LEXPATH" && ac_cv_path_LEXPATH="no"
- ;;
- esac
- LEXPATH="$ac_cv_path_LEXPATH"
- if test -n "$LEXPATH"; then
- echo "$ac_t""$LEXPATH" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$LEXPATH" = "no"; then
- { echo "configure: error: *** Unable to locate lex." 1>&2; exit 1; }
- fi
- fi
- for ac_prog in 'bison -y' byacc
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:2583: checking for $ac_word" >&5
- if test -n "$YACC"; then
- ac_cv_prog_YACC="$YACC" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_YACC="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- YACC="$ac_cv_prog_YACC"
- if test -n "$YACC"; then
- echo "$ac_t""$YACC" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- test -n "$YACC" && break
- done
- test -n "$YACC" || YACC="yacc"
- if test "$YACC" = "yacc"; then
- # Extract the first word of "yacc", so it can be a program name with args.
- set dummy yacc; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:2614: checking for $ac_word" >&5
- case "$YACCPATH" in
- /*)
- ac_cv_path_YACCPATH="$YACCPATH" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_YACCPATH="$YACCPATH" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_YACCPATH="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_YACCPATH" && ac_cv_path_YACCPATH="no"
- ;;
- esac
- YACCPATH="$ac_cv_path_YACCPATH"
- if test -n "$YACCPATH"; then
- echo "$ac_t""$YACCPATH" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$YACCPATH" = "no"; then
- { echo "configure: error: *** Unable to locate yacc." 1>&2; exit 1; }
- fi
- fi
- # Extract the first word of "ranlib", so it can be a program name with args.
- set dummy ranlib; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:2652: checking for $ac_word" >&5
- if test -n "$RANLIB"; then
- ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_RANLIB="ranlib"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
- fi
- RANLIB="$ac_cv_prog_RANLIB"
- if test -n "$RANLIB"; then
- echo "$ac_t""$RANLIB" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- for ac_prog in ar
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:2681: checking for $ac_word" >&5
- if test -n "$AR"; then
- ac_cv_prog_AR="$AR" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_AR="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- AR="$ac_cv_prog_AR"
- if test -n "$AR"; then
- echo "$ac_t""$AR" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- test -n "$AR" && break
- done
- for ac_prog in env
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:2712: checking for $ac_word" >&5
- if test -n "$ENV"; then
- ac_cv_prog_ENV="$ENV" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_ENV="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- ENV="$ac_cv_prog_ENV"
- if test -n "$ENV"; then
- echo "$ac_t""$ENV" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- test -n "$ENV" && break
- done
- # Extract the first word of "perl", so it can be a program name with args.
- set dummy perl; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:2741: checking for $ac_word" >&5
- case "$PERL" in
- /*)
- ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_PERL="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
- ;;
- esac
- PERL="$ac_cv_path_PERL"
- if test -n "$PERL"; then
- echo "$ac_t""$PERL" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
-
- echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
- echo "configure:2772: checking how to run the C preprocessor" >&5
- # On Suns, sometimes $CPP names a directory.
- if test -n "$CPP" && test -d "$CPP"; then
- CPP=
- fi
- if test -z "$CPP"; then
- # This must be in double quotes, not single quotes, because CPP may get
- # substituted into the Makefile and "${CC-cc}" will confuse make.
- CPP="${CC-cc} -E"
- # On the NeXT, cc -E runs the code through the compiler's parser,
- # not just through cpp.
- cat > conftest.$ac_ext <<EOF
- #line 2785 "configure"
- #include "confdefs.h"
- #include <assert.h>
- Syntax Error
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:2791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- :
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- CPP="${CC-cc} -E -traditional-cpp"
- cat > conftest.$ac_ext <<EOF
- #line 2802 "configure"
- #include "confdefs.h"
- #include <assert.h>
- Syntax Error
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:2808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- :
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- CPP="${CC-cc} -nologo -E"
- cat > conftest.$ac_ext <<EOF
- #line 2819 "configure"
- #include "confdefs.h"
- #include <assert.h>
- Syntax Error
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:2825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- :
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- CPP=/lib/cpp
- fi
- rm -f conftest*
- fi
- rm -f conftest*
- fi
- rm -f conftest*
- ac_cv_prog_CPP="$CPP"
- CPP="$ac_cv_prog_CPP"
- else
- ac_cv_prog_CPP="$CPP"
- fi
- echo "$ac_t""$CPP" 1>&6
- echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
- echo "configure:2849: checking for ANSI C header files" >&5
- cat > conftest.$ac_ext <<EOF
- #line 2852 "configure"
- #include "confdefs.h"
- #include <stdlib.h>
- #include <stdarg.h>
- #include <string.h>
- #include <float.h>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:2860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- ac_cv_header_stdc=yes
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_header_stdc=no
- fi
- rm -f conftest*
- if test $ac_cv_header_stdc = yes; then
- # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
- cat > conftest.$ac_ext <<EOF
- #line 2877 "configure"
- #include "confdefs.h"
- #include <string.h>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "memchr" >/dev/null 2>&1; then
- :
- else
- rm -rf conftest*
- ac_cv_header_stdc=no
- fi
- rm -f conftest*
- fi
- if test $ac_cv_header_stdc = yes; then
- # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
- cat > conftest.$ac_ext <<EOF
- #line 2895 "configure"
- #include "confdefs.h"
- #include <stdlib.h>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "free" >/dev/null 2>&1; then
- :
- else
- rm -rf conftest*
- ac_cv_header_stdc=no
- fi
- rm -f conftest*
- fi
- if test $ac_cv_header_stdc = yes; then
- # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
- if test "$cross_compiling" = yes; then
- :
- else
- cat > conftest.$ac_ext <<EOF
- #line 2916 "configure"
- #include "confdefs.h"
- #include <ctype.h>
- #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
- #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
- #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
- int main () { int i; for (i = 0; i < 256; i++)
- if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
- exit (0); }
- EOF
- if { (eval echo configure:2927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- :
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_header_stdc=no
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$ac_cv_header_stdc" 1>&6
- if test $ac_cv_header_stdc = yes; then
- cat >> confdefs.h <<\EOF
- #define STDC_HEADERS 1
- EOF
- fi
- #AC_CHECK_HEADERS(curses.h limits.h termio.h termios.h unistd.h values.h)
- for ac_hdr in limits.h termio.h termios.h unistd.h values.h f2c.h g2c.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:2954: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 2957 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:2962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_hdr in sys/ioctl.h sys/mtio.h sys/resource.h sys/time.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:2991: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 2994 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:2999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_hdr in sys/timeb.h sys/types.h sys/utsname.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:3028: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3031 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:3036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_hdr in libintl.h iconv.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:3065: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3068 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:3073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_hdr in langinfo.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:3102: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3105 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:3110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
- echo "configure:3136: checking whether time.h and sys/time.h may both be included" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3139 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <sys/time.h>
- #include <time.h>
- int main() {
- struct tm *tp;
- ; return 0; }
- EOF
- if { (eval echo configure:3148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_header_time=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_header_time=no
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_header_time" 1>&6
- if test $ac_cv_header_time = yes; then
- cat >> confdefs.h <<\EOF
- #define TIME_WITH_SYS_TIME 1
- EOF
- fi
- echo $ac_n "checking for off_t""... $ac_c" 1>&6
- echo "configure:3168: checking for off_t" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3171 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #if STDC_HEADERS
- #include <stdlib.h>
- #include <stddef.h>
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_type_off_t=yes
- else
- rm -rf conftest*
- ac_cv_type_off_t=no
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_type_off_t" 1>&6
- if test $ac_cv_type_off_t = no; then
- cat >> confdefs.h <<\EOF
- #define off_t long
- EOF
- fi
- echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
- echo "configure:3198: checking for uid_t in sys/types.h" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3201 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "uid_t" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_type_uid_t=yes
- else
- rm -rf conftest*
- ac_cv_type_uid_t=no
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_type_uid_t" 1>&6
- if test $ac_cv_type_uid_t = no; then
- cat >> confdefs.h <<\EOF
- #define uid_t int
- EOF
- cat >> confdefs.h <<\EOF
- #define gid_t int
- EOF
- fi
- echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
- echo "configure:3229: checking return type of signal handlers" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3232 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <signal.h>
- #ifdef signal
- #undef signal
- #endif
- #ifdef __cplusplus
- extern "C" void (*signal (int, void (*)(int)))(int);
- #else
- void (*signal ()) ();
- #endif
- int main() {
- int i;
- ; return 0; }
- EOF
- if { (eval echo configure:3249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_type_signal=void
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_type_signal=int
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_type_signal" 1>&6
- cat >> confdefs.h <<EOF
- #define RETSIGTYPE $ac_cv_type_signal
- EOF
- echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
- echo "configure:3267: checking for Cygwin environment" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3270 "configure"
- #include "confdefs.h"
- int main() {
- #ifndef __CYGWIN__
- #define __CYGWIN__ __CYGWIN32__
- #endif
- return __CYGWIN__;
- ; return 0; }
- EOF
- if { (eval echo configure:3281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_cygwin=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_cygwin=no
- fi
- rm -f conftest*
- rm -f conftest*
- echo "$ac_t""$ac_cv_cygwin" 1>&6
- CYGWIN=
- test "$ac_cv_cygwin" = yes && CYGWIN=yes
- for ac_func in ftime gethostname gettimeofday lseek nice time uname
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:3299: checking for $ac_func" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3302 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:3325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_func in seteuid setpriority setreuid setruid
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:3351: checking for $ac_func" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3354 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:3377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_func in drand48
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:3403: checking for $ac_func" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3406 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:3429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_func in putenv setenv
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:3455: checking for $ac_func" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3458 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:3481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_func in nanosleep
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:3507: checking for $ac_func" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3510 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:3533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- if test "$cross_compiling" != "yes" ; then
- echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
- echo "configure:3558: checking whether setpgrp takes no argument" >&5
- if test "$cross_compiling" = yes; then
- { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 3564 "configure"
- #include "confdefs.h"
- #ifdef HAVE_UNISTD_H
- #include <unistd.h>
- #endif
- /*
- * If this system has a BSD-style setpgrp, which takes arguments, exit
- * successfully.
- */
- main()
- {
- if (setpgrp(1,1) == -1)
- exit(0);
- else
- exit(1);
- }
- EOF
- if { (eval echo configure:3584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_func_setpgrp_void=no
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_func_setpgrp_void=yes
- fi
- rm -fr conftest*
- fi
- echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
- if test $ac_cv_func_setpgrp_void = yes; then
- cat >> confdefs.h <<\EOF
- #define SETPGRP_VOID 1
- EOF
- fi
- else
- CROSS_COMPILING=1
- fi
- echo $ac_n "checking for long long int""... $ac_c" 1>&6
- echo "configure:3612: checking for long long int" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3614 "configure"
- #include "confdefs.h"
- int main() {
- long long int x;
- ; return 0; }
- EOF
- if { (eval echo configure:3621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
-
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<\EOF
- #define HAVE_LONG_LONG_INT 1
- EOF
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- echo "$ac_t""no" 1>&6
- fi
- rm -f conftest*
- echo $ac_n "checking for W11""... $ac_c" 1>&6
- echo "configure:3641: checking for W11" >&5
- case "$enable_w11" in
- yes|no) echo "$ac_t"""$enable_w11"" 1>&6 ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- USE_X11=
- USE_W11=
- XLIB=
- XTLIB=
- if test "$enable_w11" = "yes" ; then
- X_CFLAGS=-I${SRCDIR}/display/drivers/windows/libW11
- X_LIBS='-L$(LIBDIR)'
-
-
- USE_W11="1"
- USE_X11="1"
- XLIB=-lX11
- CFLAGS="$CFLAGS -D__W98__"
- else
- # If we find X, set shell vars x_includes and x_libraries to the
- # paths, otherwise set no_x=yes.
- # Uses ac_ vars as temps to allow command line to override cache and checks.
- # --without-x overrides everything else, but does not touch the cache.
- echo $ac_n "checking for X""... $ac_c" 1>&6
- echo "configure:3669: checking for X" >&5
- # Check whether --with-x or --without-x was given.
- if test "${with_x+set}" = set; then
- withval="$with_x"
- :
- fi
- # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
- if test "x$with_x" = xno; then
- # The user explicitly disabled X.
- have_x=disabled
- else
- if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
- # Both variables are already set.
- have_x=yes
- else
- # One or both of the vars are not set, and there is no cached value.
- ac_x_includes=NO ac_x_libraries=NO
- rm -fr conftestdir
- if mkdir conftestdir; then
- cd conftestdir
- # Make sure to not put "make" in the Imakefile rules, since we grep it out.
- cat > Imakefile <<'EOF'
- acfindx:
- @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
- EOF
- if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
- # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
- eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
- # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
- for ac_extension in a so sl; do
- if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
- test -f $ac_im_libdir/libX11.$ac_extension; then
- ac_im_usrlibdir=$ac_im_libdir; break
- fi
- done
- # Screen out bogus values from the imake configuration. They are
- # bogus both because they are the default anyway, and because
- # using them would break gcc on systems where it needs fixed includes.
- case "$ac_im_incroot" in
- /usr/include) ;;
- *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
- esac
- case "$ac_im_usrlibdir" in
- /usr/lib | /lib) ;;
- *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
- esac
- fi
- cd ..
- rm -fr conftestdir
- fi
- if test "$ac_x_includes" = NO; then
- # Guess where to find include files, by looking for this one X11 .h file.
- test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
- # First, try using that file with no special directory specified.
- cat > conftest.$ac_ext <<EOF
- #line 3729 "configure"
- #include "confdefs.h"
- #include <$x_direct_test_include>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:3734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- # We can compile using X headers with no special include directory.
- ac_x_includes=
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- # Look for the header file in a standard set of common directories.
- # Check X11 before X11Rn because it is often a symlink to the current release.
- for ac_dir in \
- /usr/X11/include \
- /usr/X11R6/include \
- /usr/X11R5/include \
- /usr/X11R4/include \
- \
- /usr/include/X11 \
- /usr/include/X11R6 \
- /usr/include/X11R5 \
- /usr/include/X11R4 \
- \
- /usr/local/X11/include \
- /usr/local/X11R6/include \
- /usr/local/X11R5/include \
- /usr/local/X11R4/include \
- \
- /usr/local/include/X11 \
- /usr/local/include/X11R6 \
- /usr/local/include/X11R5 \
- /usr/local/include/X11R4 \
- \
- /usr/X386/include \
- /usr/x386/include \
- /usr/XFree86/include/X11 \
- \
- /usr/include \
- /usr/local/include \
- /usr/unsupported/include \
- /usr/athena/include \
- /usr/local/x11r5/include \
- /usr/lpp/Xamples/include \
- \
- /usr/openwin/include \
- /usr/openwin/share/include \
- ; \
- do
- if test -r "$ac_dir/$x_direct_test_include"; then
- ac_x_includes=$ac_dir
- break
- fi
- done
- fi
- rm -f conftest*
- fi # $ac_x_includes = NO
- if test "$ac_x_libraries" = NO; then
- # Check for the libraries.
- test -z "$x_direct_test_library" && x_direct_test_library=Xt
- test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
- # See if we find them without any special options.
- # Don't add to $LIBS permanently.
- ac_save_LIBS="$LIBS"
- LIBS="-l$x_direct_test_library $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3803 "configure"
- #include "confdefs.h"
- int main() {
- ${x_direct_test_function}()
- ; return 0; }
- EOF
- if { (eval echo configure:3810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- LIBS="$ac_save_LIBS"
- # We can link X programs with no special library path.
- ac_x_libraries=
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- LIBS="$ac_save_LIBS"
- # First see if replacing the include by lib works.
- # Check X11 before X11Rn because it is often a symlink to the current release.
- for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
- /usr/X11/lib \
- /usr/X11R6/lib \
- /usr/X11R5/lib \
- /usr/X11R4/lib \
- \
- /usr/lib/X11 \
- /usr/lib/X11R6 \
- /usr/lib/X11R5 \
- /usr/lib/X11R4 \
- \
- /usr/local/X11/lib \
- /usr/local/X11R6/lib \
- /usr/local/X11R5/lib \
- /usr/local/X11R4/lib \
- \
- /usr/local/lib/X11 \
- /usr/local/lib/X11R6 \
- /usr/local/lib/X11R5 \
- /usr/local/lib/X11R4 \
- \
- /usr/X386/lib \
- /usr/x386/lib \
- /usr/XFree86/lib/X11 \
- \
- /usr/lib \
- /usr/local/lib \
- /usr/unsupported/lib \
- /usr/athena/lib \
- /usr/local/x11r5/lib \
- /usr/lpp/Xamples/lib \
- /lib/usr/lib/X11 \
- \
- /usr/openwin/lib \
- /usr/openwin/share/lib \
- ; \
- do
- for ac_extension in a so sl; do
- if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
- ac_x_libraries=$ac_dir
- break 2
- fi
- done
- done
- fi
- rm -f conftest*
- fi # $ac_x_libraries = NO
- if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
- # Didn't find X anywhere. Cache the known absence of X.
- ac_cv_have_x="have_x=no"
- else
- # Record where we found X for the cache.
- ac_cv_have_x="have_x=yes \
- ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
- fi
- fi
- eval "$ac_cv_have_x"
- fi # $with_x != no
- if test "$have_x" != yes; then
- echo "$ac_t""$have_x" 1>&6
- no_x=yes
- else
- # If each of the values was on the command line, it overrides each guess.
- test "x$x_includes" = xNONE && x_includes=$ac_x_includes
- test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
- # Update the cache value to reflect the command line values.
- ac_cv_have_x="have_x=yes \
- ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
- echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
- fi
- if test "$no_x" = yes; then
- # Not all programs may use this symbol, but it does not hurt to define it.
- cat >> confdefs.h <<\EOF
- #define X_DISPLAY_MISSING 1
- EOF
- X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
- else
- if test -n "$x_includes"; then
- X_CFLAGS="$X_CFLAGS -I$x_includes"
- fi
- # It would also be nice to do this for all -L options, not just this one.
- if test -n "$x_libraries"; then
- X_LIBS="$X_LIBS -L$x_libraries"
- # For Solaris; some versions of Sun CC require a space after -R and
- # others require no space. Words are not sufficient . . . .
- case "`(uname -sr) 2>/dev/null`" in
- "SunOS 5"*)
- echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
- echo "configure:3915: checking whether -R must be followed by a space" >&5
- ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
- cat > conftest.$ac_ext <<EOF
- #line 3918 "configure"
- #include "confdefs.h"
- int main() {
- ; return 0; }
- EOF
- if { (eval echo configure:3925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- ac_R_nospace=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_R_nospace=no
- fi
- rm -f conftest*
- if test $ac_R_nospace = yes; then
- echo "$ac_t""no" 1>&6
- X_LIBS="$X_LIBS -R$x_libraries"
- else
- LIBS="$ac_xsave_LIBS -R $x_libraries"
- cat > conftest.$ac_ext <<EOF
- #line 3941 "configure"
- #include "confdefs.h"
- int main() {
- ; return 0; }
- EOF
- if { (eval echo configure:3948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- ac_R_space=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_R_space=no
- fi
- rm -f conftest*
- if test $ac_R_space = yes; then
- echo "$ac_t""yes" 1>&6
- X_LIBS="$X_LIBS -R $x_libraries"
- else
- echo "$ac_t""neither works" 1>&6
- fi
- fi
- LIBS="$ac_xsave_LIBS"
- esac
- fi
- # Check for system-dependent libraries X programs must link with.
- # Do this before checking for the system-independent R6 libraries
- # (-lICE), since we may need -lsocket or whatever for X linking.
- if test "$ISC" = yes; then
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
- else
- # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
- # libraries were built with DECnet support. And karl@cs.umb.edu says
- # the Alpha needs dnet_stub (dnet does not exist).
- echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
- echo "configure:3980: checking for dnet_ntoa in -ldnet" >&5
- ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ldnet $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3986 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dnet_ntoa();
- int main() {
- dnet_ntoa()
- ; return 0; }
- EOF
- if { (eval echo configure:3997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
- else
- echo "$ac_t""no" 1>&6
- fi
- if test $ac_cv_lib_dnet_dnet_ntoa = no; then
- echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
- echo "configure:4018: checking for dnet_ntoa in -ldnet_stub" >&5
- ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ldnet_stub $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4024 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dnet_ntoa();
- int main() {
- dnet_ntoa()
- ; return 0; }
- EOF
- if { (eval echo configure:4035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
- # to get the SysV transport functions.
- # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
- # needs -lnsl.
- # The nsl library prevents programs from opening the X display
- # on Irix 5.2, according to dickey@clark.net.
- echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
- echo "configure:4063: checking for gethostbyname" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4066 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char gethostbyname(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gethostbyname();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
- choke me
- #else
- gethostbyname();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_gethostbyname=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_gethostbyname=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- fi
- if test $ac_cv_func_gethostbyname = no; then
- echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
- echo "configure:4109: checking for gethostbyname in -lnsl" >&5
- ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lnsl $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4115 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gethostbyname();
- int main() {
- gethostbyname()
- ; return 0; }
- EOF
- if { (eval echo configure:4126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- # lieder@skyler.mavd.honeywell.com says without -lsocket,
- # socket/setsockopt and other routines are undefined under SCO ODT
- # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
- # on later versions), says simon@lia.di.epfl.ch: it contains
- # gethostby* variants that don't use the nameserver (or something).
- # -lsocket must be given before -lnsl if both are needed.
- # We assume that if connect needs -lnsl, so does gethostbyname.
- echo $ac_n "checking for connect""... $ac_c" 1>&6
- echo "configure:4155: checking for connect" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4158 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char connect(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char connect();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_connect) || defined (__stub___connect)
- choke me
- #else
- connect();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_connect=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_connect=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- fi
- if test $ac_cv_func_connect = no; then
- echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
- echo "configure:4201: checking for connect in -lsocket" >&5
- ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4207 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char connect();
- int main() {
- connect()
- ; return 0; }
- EOF
- if { (eval echo configure:4218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
- echo $ac_n "checking for remove""... $ac_c" 1>&6
- echo "configure:4241: checking for remove" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4244 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char remove(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char remove();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_remove) || defined (__stub___remove)
- choke me
- #else
- remove();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_remove=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_remove=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- fi
- if test $ac_cv_func_remove = no; then
- echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
- echo "configure:4287: checking for remove in -lposix" >&5
- ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lposix $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4293 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char remove();
- int main() {
- remove()
- ; return 0; }
- EOF
- if { (eval echo configure:4304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
- echo $ac_n "checking for shmat""... $ac_c" 1>&6
- echo "configure:4327: checking for shmat" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4330 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char shmat(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char shmat();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_shmat) || defined (__stub___shmat)
- choke me
- #else
- shmat();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_shmat=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_shmat=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- fi
- if test $ac_cv_func_shmat = no; then
- echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
- echo "configure:4373: checking for shmat in -lipc" >&5
- ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lipc $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4379 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char shmat();
- int main() {
- shmat()
- ; return 0; }
- EOF
- if { (eval echo configure:4390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- fi
- # Check for libraries that X11R6 Xt/Xaw programs need.
- ac_save_LDFLAGS="$LDFLAGS"
- test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
- # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
- # check for ICE first), but we must link in the order -lSM -lICE or
- # we get undefined symbols. So assume we have SM if we have ICE.
- # These have to be linked with before -lX11, unlike the other
- # libraries we check for below, so use a different variable.
- # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
- echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
- echo "configure:4422: checking for IceConnectionNumber in -lICE" >&5
- ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lICE $X_EXTRA_LIBS $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4428 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char IceConnectionNumber();
- int main() {
- IceConnectionNumber()
- ; return 0; }
- EOF
- if { (eval echo configure:4439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
- else
- echo "$ac_t""no" 1>&6
- fi
- LDFLAGS="$ac_save_LDFLAGS"
- fi
- if test "$no_x" != "yes"; then
- USE_X11="1"
- XLIB=-lX11
- XTLIB=-lXt
- fi
- fi
- # Note that some systems (FreeBSD for example) need an extra library for
- # cuserid
- ac_save_libs="$LIBS"
- LIBS=""
- echo $ac_n "checking for library containing cuserid""... $ac_c" 1>&6
- echo "configure:4479: checking for library containing cuserid" >&5
- ac_func_search_save_LIBS="$LIBS"
- ac_cv_search_cuserid="no"
- cat > conftest.$ac_ext <<EOF
- #line 4484 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char cuserid();
- int main() {
- cuserid()
- ; return 0; }
- EOF
- if { (eval echo configure:4495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- ac_cv_search_cuserid="none required"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- test "$ac_cv_search_cuserid" = "no" && for i in compat; do
- LIBS="-l$i $ac_func_search_save_LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4506 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char cuserid();
- int main() {
- cuserid()
- ; return 0; }
- EOF
- if { (eval echo configure:4517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- ac_cv_search_cuserid="-l$i"
- break
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- done
- LIBS="$ac_func_search_save_LIBS"
- echo "$ac_t""$ac_cv_search_cuserid" 1>&6
- if test "$ac_cv_search_cuserid" != "no"; then
- test "$ac_cv_search_cuserid" = "none required" || LIBS="$ac_cv_search_cuserid $LIBS"
-
- else :
-
- fi
- DBMIEXTRALIB="$LIBS"
- LIBS="$ac_save_libs"
- for ac_func in asprintf
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:4543: checking for $ac_func" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4546 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- # Test if mathlib needs -lm flag or is included with libc
- echo $ac_n "checking for atan""... $ac_c" 1>&6
- echo "configure:4596: checking for atan" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4599 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char atan(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char atan();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_atan) || defined (__stub___atan)
- choke me
- #else
- atan();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_atan=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_atan=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'atan`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- MATHLIB=
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for atan in -lm""... $ac_c" 1>&6
- echo "configure:4640: checking for atan in -lm" >&5
- ac_lib_var=`echo m'_'atan | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lm $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4646 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char atan();
- int main() {
- atan()
- ; return 0; }
- EOF
- if { (eval echo configure:4657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- MATHLIB=-lm
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Failed check for math library." 1>&2; exit 1; }
- fi
- fi
- echo $ac_n "checking for dlsym""... $ac_c" 1>&6
- echo "configure:4684: checking for dlsym" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4687 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char dlsym(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dlsym();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_dlsym) || defined (__stub___dlsym)
- choke me
- #else
- dlsym();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_dlsym=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_dlsym=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'dlsym`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- DLLIB=
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for dlsym in -ldl""... $ac_c" 1>&6
- echo "configure:4728: checking for dlsym in -ldl" >&5
- ac_lib_var=`echo dl'_'dlsym | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ldl $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4734 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dlsym();
- int main() {
- dlsym()
- ; return 0; }
- EOF
- if { (eval echo configure:4745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- DLLIB=-ldl
- else
- echo "$ac_t""no" 1>&6
- DLLIB=
- fi
- fi
- echo $ac_n "checking for iconv""... $ac_c" 1>&6
- echo "configure:4772: checking for iconv" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4775 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char iconv(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char iconv();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_iconv) || defined (__stub___iconv)
- choke me
- #else
- iconv();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_iconv=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_iconv=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'iconv`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ICONVLIB=
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
- echo "configure:4816: checking for iconv in -liconv" >&5
- ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-liconv $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4822 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char iconv();
- int main() {
- iconv()
- ; return 0; }
- EOF
- if { (eval echo configure:4833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ICONVLIB=-liconv
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for iconv in -lgiconv""... $ac_c" 1>&6
- echo "configure:4852: checking for iconv in -lgiconv" >&5
- ac_lib_var=`echo giconv'_'iconv | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lgiconv $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4858 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char iconv();
- int main() {
- iconv()
- ; return 0; }
- EOF
- if { (eval echo configure:4869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ICONVLIB=-lgiconv
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for libiconv""... $ac_c" 1>&6
- echo "configure:4888: checking for libiconv" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4891 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char libiconv(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char libiconv();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_libiconv) || defined (__stub___libiconv)
- choke me
- #else
- libiconv();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_libiconv=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_libiconv=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'libiconv`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ICONVLIB=
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for libiconv in -liconv""... $ac_c" 1>&6
- echo "configure:4932: checking for libiconv in -liconv" >&5
- ac_lib_var=`echo iconv'_'libiconv | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-liconv $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4938 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char libiconv();
- int main() {
- libiconv()
- ; return 0; }
- EOF
- if { (eval echo configure:4949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ICONVLIB=-liconv
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for libiconv in -lgiconv""... $ac_c" 1>&6
- echo "configure:4968: checking for libiconv in -lgiconv" >&5
- ac_lib_var=`echo giconv'_'libiconv | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lgiconv $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4974 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char libiconv();
- int main() {
- libiconv()
- ; return 0; }
- EOF
- if { (eval echo configure:4985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ICONVLIB=-lgiconv
- else
- echo "$ac_t""no" 1>&6
- echo "configure: warning: *** Unable to locate iconv() function." 1>&2
- ICONVLIB=
- fi
- fi
- fi
- fi
- fi
- fi
- have_socket=1
- echo $ac_n "checking for socket""... $ac_c" 1>&6
- echo "configure:5022: checking for socket" >&5
- cat > conftest.$ac_ext <<EOF
- #line 5025 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char socket(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char socket();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_socket) || defined (__stub___socket)
- choke me
- #else
- socket();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_socket=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_socket=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- SOCKLIB=
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
- echo "configure:5066: checking for socket in -lsocket" >&5
- ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lsocket $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5072 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char socket();
- int main() {
- socket()
- ; return 0; }
- EOF
- if { (eval echo configure:5083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- SOCKLIB=-lsocket
- else
- echo "$ac_t""no" 1>&6
- have_socket=0
- echo "configure: warning: *** Unable to locate socket() function." 1>&2
- fi
- fi
- if test "$have_socket" = 1 ; then
- HAVE_SOCKET=1
- cat >> confdefs.h <<\EOF
- #define HAVE_SOCKET 1
- EOF
- else
- HAVE_SOCKET=
- fi
- # Mandatory zlib dependency
- ZLIBLIBPATH=
- ZLIBINCPATH=
- ZLIB=
- # With zlib includes directory
- echo $ac_n "checking for location of zlib includes""... $ac_c" 1>&6
- echo "configure:5131: checking for location of zlib includes" >&5
- case "$with_zlib_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-zlib-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_zlib_includes" 1>&6
- if test -n "$with_zlib_includes" ; then
- for dir in $with_zlib_includes; do
- if test -d "$dir"; then
- ZLIBINCPATH="$ZLIBINCPATH -I$dir"
- else
- { echo "configure: error: *** zlib includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$ZLIBINCPATH $CPPFLAGS"
- for ac_hdr in zlib.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:5157: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 5160 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:5165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate zlib includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With zlib library directory
- echo $ac_n "checking for location of zlib library""... $ac_c" 1>&6
- echo "configure:5199: checking for location of zlib library" >&5
- case "$with_zlib_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-zlib-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_zlib_libs" 1>&6
- if test -n "$with_zlib_libs"; then
- for dir in $with_zlib_libs; do
- if test -d "$dir"; then
- ZLIBLIBPATH="$ZLIBLIBPATH -L$dir"
- else
- { echo "configure: error: *** zlib library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$ZLIBLIBPATH $LDFLAGS"
- echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
- echo "configure:5224: checking for deflate in -lz" >&5
- ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lz $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5230 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char deflate();
- int main() {
- deflate()
- ; return 0; }
- EOF
- if { (eval echo configure:5241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ZLIB="$ZLIB -lz "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate zlib library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- #
- # Done checking zlib
- # bzip2 support
- echo $ac_n "checking whether to use bzlib""... $ac_c" 1>&6
- echo "configure:5283: checking whether to use bzlib" >&5
- echo "$ac_t"""$with_bzlib"" 1>&6
- case "$with_bzlib" in
- "no") USE_BZIP2= ;;
- "yes") USE_BZIP2="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- if test -n "$USE_BZIP2"; then
- BZLIBLIBPATH=
- BZLIBINCPATH=
- BZLIB=
- # With bzip2 includes directory
- echo $ac_n "checking for location of bzlib includes""... $ac_c" 1>&6
- echo "configure:5303: checking for location of bzlib includes" >&5
- case "$with_bzlib_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-bzlib-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_bzlib_includes" 1>&6
- if test -n "$with_bzlib_includes" ; then
- for dir in $with_bzlib_includes; do
- if test -d "$dir"; then
- BZLIBINCPATH="$BZLIBINCPATH -I$dir"
- else
- { echo "configure: error: *** bzlib includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$BZLIBINCPATH $CPPFLAGS"
- for ac_hdr in bzlib.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:5329: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 5332 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:5337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate bzlib includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With bzip2 library directory
- echo $ac_n "checking for location of bzlib library""... $ac_c" 1>&6
- echo "configure:5371: checking for location of bzlib library" >&5
- case "$with_bzlib_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-bzlib-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_bzlib_libs" 1>&6
- if test -n "$with_bzlib_libs"; then
- for dir in $with_bzlib_libs; do
- if test -d "$dir"; then
- BZLIBLIBPATH="$BZLIBLIBPATH -L$dir"
- else
- { echo "configure: error: *** bzlib library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$BZLIBLIBPATH $LDFLAGS"
- echo $ac_n "checking for BZ2_bzBuffToBuffCompress in -lbz2""... $ac_c" 1>&6
- echo "configure:5396: checking for BZ2_bzBuffToBuffCompress in -lbz2" >&5
- ac_lib_var=`echo bz2'_'BZ2_bzBuffToBuffCompress | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lbz2 $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5402 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char BZ2_bzBuffToBuffCompress();
- int main() {
- BZ2_bzBuffToBuffCompress()
- ; return 0; }
- EOF
- if { (eval echo configure:5413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- BZLIB="$BZLIB -lbz2 "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate bzlib library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- #
- fi # $USE_BZIP2
- # Done checking bzip2
- # Mandatory PROJ dependency
- PROJINC=
- PROJLIB=
- PROJSHARE=
- # With PROJ includes directory
- echo $ac_n "checking for location of External PROJ.4 includes""... $ac_c" 1>&6
- echo "configure:5463: checking for location of External PROJ.4 includes" >&5
- case "$with_proj_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-proj-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_proj_includes" 1>&6
- if test -n "$with_proj_includes" ; then
- for dir in $with_proj_includes; do
- if test -d "$dir"; then
- PROJINC="$PROJINC -I$dir"
- else
- { echo "configure: error: *** External PROJ.4 includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$PROJINC $CPPFLAGS"
- for ac_hdr in proj_api.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:5489: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 5492 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:5497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate External PROJ.4 includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # PROJ version check
- if test "$cross_compiling" = yes; then
- echo "configure: warning: *** Cannot check PROJ.4 version (cross-compiling)." 1>&2
- else
-
- echo $ac_n "checking External PROJ.4 version""... $ac_c" 1>&6
- echo "configure:5534: checking External PROJ.4 version" >&5
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$PROJINC $CPPFLAGS"
- if test "$cross_compiling" = yes; then
- proj_ver=0
- echo "$ac_t""unknown (cross-compiling)" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5542 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- #include <proj_api.h>
- int main(void) {
- FILE *fp = fopen("conftestdata","w");
- fprintf(fp, "%d", PJ_VERSION);
- return 0;
- }
-
- EOF
- if { (eval echo configure:5554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- proj_ver=`cat conftestdata`
- echo "$ac_t""$proj_ver" 1>&6
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- { echo "configure: error: *** Could not determine External PROJ.4 version." 1>&2; exit 1; }
- fi
- rm -fr conftest*
- fi
- CPPFLAGS=$ac_save_cppflags
- if test `expr "$proj_ver" \< 446` = 1 ; then
- { echo "configure: error: *** PROJ.4.4.6 or later is required." 1>&2; exit 1; }
- fi
- fi
- # With PROJ library directory
- echo $ac_n "checking for location of External PROJ.4 library""... $ac_c" 1>&6
- echo "configure:5579: checking for location of External PROJ.4 library" >&5
- case "$with_proj_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-proj-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_proj_libs" 1>&6
- if test -n "$with_proj_libs"; then
- for dir in $with_proj_libs; do
- if test -d "$dir"; then
- PROJLIB="$PROJLIB -L$dir"
- else
- { echo "configure: error: *** External PROJ.4 library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$PROJLIB $LDFLAGS"
- echo $ac_n "checking for pj_get_def in -lproj""... $ac_c" 1>&6
- echo "configure:5604: checking for pj_get_def in -lproj" >&5
- ac_lib_var=`echo proj'_'pj_get_def | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lproj $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5610 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char pj_get_def();
- int main() {
- pj_get_def()
- ; return 0; }
- EOF
- if { (eval echo configure:5621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- PROJLIB="$PROJLIB -lproj "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate External PROJ.4 library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- # With PROJ share directory
- echo $ac_n "checking for location of External PROJ.4 data files""... $ac_c" 1>&6
- echo "configure:5655: checking for location of External PROJ.4 data files" >&5
- case "$with_proj_share" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-proj-share." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_proj_share" 1>&6
- if test -n "$with_proj_share" ; then
- if test -d "$with_proj_share"; then
- PROJSHARE="$with_proj_share"
- else
- { echo "configure: error: *** External PROJ.4 data directory $dir does not exist." 1>&2; exit 1; }
- fi
- fi
- if test -z "$PROJSHARE" ; then
- echo "configure: warning: *** External PROJ.4 directory not specified; default will be used" 1>&2
- PROJSHARE=/usr/share/proj
- fi
- # LOC_CHECK_SHARE does not work when cross compiling
- if test "$cross_compiling" = "yes" ; then
- echo $ac_n "checking for epsg""... $ac_c" 1>&6
- echo "configure:5679: checking for epsg" >&5
- echo "$ac_t""unknown (cross-compiling)" 1>&6
- else
-
- ac_safe=`echo "$PROJSHARE/epsg" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $PROJSHARE/epsg""... $ac_c" 1>&6
- echo "configure:5686: checking for $PROJSHARE/epsg" >&5
- if test "$cross_compiling" = yes; then
- { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
- else
- if test -r $PROJSHARE/epsg; then
- eval "ac_cv_file_$ac_safe=yes"
- else
- eval "ac_cv_file_$ac_safe=no"
- fi
- fi
- if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- echo "configure: warning: *** Unable to locate PROJ data files." 1>&2
-
- fi
- fi
- # nad2bin needs to be in path for installing datum gridshift files
- # Extract the first word of "nad2bin", so it can be a program name with args.
- set dummy nad2bin; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:5718: checking for $ac_word" >&5
- case "$NAD2BIN" in
- /*)
- ac_cv_path_NAD2BIN="$NAD2BIN" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_NAD2BIN="$NAD2BIN" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_NAD2BIN="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_NAD2BIN" && ac_cv_path_NAD2BIN="no"
- ;;
- esac
- NAD2BIN="$ac_cv_path_NAD2BIN"
- if test -n "$NAD2BIN"; then
- echo "$ac_t""$NAD2BIN" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$NAD2BIN" = "no"; then
- { echo "configure: error: *** Unable to locate nad2bin (needs to be in PATH)." 1>&2; exit 1; }
- fi
- # Done checking PROJ
- # Enable regex option
- echo $ac_n "checking whether to use regex""... $ac_c" 1>&6
- echo "configure:5758: checking whether to use regex" >&5
- echo "$ac_t"""$with_regex"" 1>&6
- case "$with_regex" in
- "no") USE_REGEX= ;;
- "yes") USE_REGEX="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- REGEXINCPATH=
- REGEXLIBPATH=
- REGEXLIB=
- if test -n "$USE_REGEX"; then
- # With regex includes directory
- echo $ac_n "checking for location of regex includes""... $ac_c" 1>&6
- echo "configure:5778: checking for location of regex includes" >&5
- case "$with_regex_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-regex-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_regex_includes" 1>&6
- if test -n "$with_regex_includes" ; then
- for dir in $with_regex_includes; do
- if test -d "$dir"; then
- REGEXINCPATH="$REGEXINCPATH -I$dir"
- else
- { echo "configure: error: *** regex includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$REGEXINCPATH $CPPFLAGS"
- for ac_hdr in regex.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:5804: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 5807 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:5812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate regex includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With regex library directory
- echo $ac_n "checking for location of regex library""... $ac_c" 1>&6
- echo "configure:5846: checking for location of regex library" >&5
- case "$with_regex_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-regex-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_regex_libs" 1>&6
- if test -n "$with_regex_libs"; then
- for dir in $with_regex_libs; do
- if test -d "$dir"; then
- REGEXLIBPATH="$REGEXLIBPATH -L$dir"
- else
- { echo "configure: error: *** regex library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_libs="$LIBS"
- ac_save_ldflags="$LDFLAGS"
- LIBS=" $LIBS"
- LDFLAGS=" $LDFLAGS"
- echo $ac_n "checking for regcomp""... $ac_c" 1>&6
- echo "configure:5871: checking for regcomp" >&5
- cat > conftest.$ac_ext <<EOF
- #line 5874 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char regcomp(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char regcomp();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_regcomp) || defined (__stub___regcomp)
- choke me
- #else
- regcomp();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_regcomp=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_regcomp=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'regcomp`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- REGEXLIB="$REGEXLIB "
- else
- echo "$ac_t""no" 1>&6
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$REGEXLIBPATH $LDFLAGS"
- echo $ac_n "checking for regcomp in -lregex""... $ac_c" 1>&6
- echo "configure:5924: checking for regcomp in -lregex" >&5
- ac_lib_var=`echo regex'_'regcomp | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lregex $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5930 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char regcomp();
- int main() {
- regcomp()
- ; return 0; }
- EOF
- if { (eval echo configure:5941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- REGEXLIB="$REGEXLIB -lregex "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate regex library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- fi
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- fi # $USE_REGEX
- # Done checking regex
- # Enable Readline option
- echo $ac_n "checking whether to use Readline""... $ac_c" 1>&6
- echo "configure:5991: checking whether to use Readline" >&5
- echo "$ac_t"""$with_readline"" 1>&6
- case "$with_readline" in
- "no") USE_READLINE= ;;
- "yes") USE_READLINE="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- READLINEINCPATH=
- READLINELIBPATH=
- READLINELIB=
- HISTORYLIB=
- if test -n "$USE_READLINE"; then
- # With Readline includes directory
- echo $ac_n "checking for location of Readline includes""... $ac_c" 1>&6
- echo "configure:6012: checking for location of Readline includes" >&5
- case "$with_readline_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-readline-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_readline_includes" 1>&6
- if test -n "$with_readline_includes" ; then
- for dir in $with_readline_includes; do
- if test -d "$dir"; then
- READLINEINCPATH="$READLINEINCPATH -I$dir"
- else
- { echo "configure: error: *** Readline includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$READLINEINCPATH $CPPFLAGS"
- for ac_hdr in readline/readline.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:6038: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 6041 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:6046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate Readline includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$READLINEINCPATH $CPPFLAGS"
- for ac_hdr in readline/history.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:6082: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 6085 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:6090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate Readline includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With Readline library directory
- echo $ac_n "checking for location of Readline library""... $ac_c" 1>&6
- echo "configure:6124: checking for location of Readline library" >&5
- case "$with_readline_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-readline-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_readline_libs" 1>&6
- if test -n "$with_readline_libs"; then
- for dir in $with_readline_libs; do
- if test -d "$dir"; then
- READLINELIBPATH="$READLINELIBPATH -L$dir"
- else
- { echo "configure: error: *** Readline library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$READLINELIBPATH $LDFLAGS"
- echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
- echo "configure:6149: checking for readline in -lreadline" >&5
- ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lreadline $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 6155 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char readline();
- int main() {
- readline()
- ; return 0; }
- EOF
- if { (eval echo configure:6166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- READLINELIB="$READLINELIB -lreadline "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate Readline library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$READLINELIBPATH $LDFLAGS"
- echo $ac_n "checking for add_history in -lhistory""... $ac_c" 1>&6
- echo "configure:6201: checking for add_history in -lhistory" >&5
- ac_lib_var=`echo history'_'add_history | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lhistory $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 6207 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char add_history();
- int main() {
- add_history()
- ; return 0; }
- EOF
- if { (eval echo configure:6218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- HISTORYLIB="$HISTORYLIB -lhistory "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate History library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- fi # $USE_READLINE
- # Done checking Readline
- # GDAL option
- echo $ac_n "checking whether to use GDAL""... $ac_c" 1>&6
- echo "configure:6260: checking whether to use GDAL" >&5
- GDAL_LIBS=
- GDAL_CFLAGS=
- USE_GDAL=
- USE_OGR=
- if test "`basename xx/$with_gdal`" = "gdal-config" ; then
- GDAL_CONFIG="$with_gdal"
- fi
- if test "$with_gdal" = "no" ; then
- echo "$ac_t""no" 1>&6
- else
- echo "$ac_t""yes" 1>&6
- # Extract the first word of "gdal-config", so it can be a program name with args.
- set dummy gdal-config; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:6278: checking for $ac_word" >&5
- case "$GDAL_CONFIG" in
- /*)
- ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_GDAL_CONFIG="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_GDAL_CONFIG" && ac_cv_path_GDAL_CONFIG="no"
- ;;
- esac
- GDAL_CONFIG="$ac_cv_path_GDAL_CONFIG"
- if test -n "$GDAL_CONFIG"; then
- echo "$ac_t""$GDAL_CONFIG" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$GDAL_CONFIG" = "no" ; then
- { echo "configure: error: *** couldn't find gdal-config" 1>&2; exit 1; }
- fi
- if test "$GDAL_CONFIG" != "" ; then
- GDAL_LIBS=`"$GDAL_CONFIG" --libs`
- GDAL_DEP_LIBS=`"$GDAL_CONFIG" --dep-libs`
- GDAL_CFLAGS=`"$GDAL_CONFIG" --cflags`
- USE_GDAL=1
- if test `"$GDAL_CONFIG" --ogr-enabled` = "yes" ; then
- cat >> confdefs.h <<\EOF
- #define HAVE_OGR 1
- EOF
- USE_OGR=1
- fi
- fi
- GDAL=
- ac_save_libs="$LIBS"
- ac_save_cflags="$CFLAGS"
- LIBS="$LIBS $GDAL_LIBS"
- CFLAGS="$CFLAGS $GDAL_CFLAGS"
- cat > conftest.$ac_ext <<EOF
- #line 6333 "configure"
- #include "confdefs.h"
- #include <gdal.h>
- int main() {
- GDALOpen("foo", GA_ReadOnly);
- ; return 0; }
- EOF
- if { (eval echo configure:6340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- :
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- LIBS="$LIBS $GDAL_DEP_LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 6349 "configure"
- #include "confdefs.h"
- #include <gdal.h>
- int main() {
- GDALOpen("foo", GA_ReadOnly);
- ; return 0; }
- EOF
- if { (eval echo configure:6356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- GDAL_LIBS="$GDAL_LIBS $GDAL_DEP_LIBS"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- { echo "configure: error: *** Unable to locate GDAL library." 1>&2; exit 1; }
-
- fi
- rm -f conftest*
-
- fi
- rm -f conftest*
- LIBS=${ac_save_libs}
- CFLAGS=${ac_save_cflags}
- cat >> confdefs.h <<\EOF
- #define HAVE_GDAL 1
- EOF
- fi
- # libLAS option
- echo $ac_n "checking whether to use libLAS""... $ac_c" 1>&6
- echo "configure:6388: checking whether to use libLAS" >&5
- LIBLAS_LIBS=
- LIBLAS_CFLAGS=
- USE_LIBLAS=
- if test "`basename xx/$with_liblas`" = "liblas-config" ; then
- LIBLAS_CONFIG="$with_liblas"
- fi
- if test "$with_liblas" = "no" ; then
- echo "$ac_t""no" 1>&6
- else
- echo "$ac_t""yes" 1>&6
- # Extract the first word of "liblas-config", so it can be a program name with args.
- set dummy liblas-config; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:6405: checking for $ac_word" >&5
- case "$LIBLAS_CONFIG" in
- /*)
- ac_cv_path_LIBLAS_CONFIG="$LIBLAS_CONFIG" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_LIBLAS_CONFIG="$LIBLAS_CONFIG" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_LIBLAS_CONFIG="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_LIBLAS_CONFIG" && ac_cv_path_LIBLAS_CONFIG="no"
- ;;
- esac
- LIBLAS_CONFIG="$ac_cv_path_LIBLAS_CONFIG"
- if test -n "$LIBLAS_CONFIG"; then
- echo "$ac_t""$LIBLAS_CONFIG" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$LIBLAS_CONFIG" = "no" ; then
- { echo "configure: error: *** couldn't find liblas-config" 1>&2; exit 1; }
- fi
- if test "$LIBLAS_CONFIG" != "" ; then
- LIBLAS_LIBS=`"$LIBLAS_CONFIG" --libs`
- LIBLAS_CFLAGS=`"$LIBLAS_CONFIG" --cflags`
- LIBLAS_INC=`"$LIBLAS_CONFIG" --includes`
- USE_LIBLAS=1
- fi
- LIBLAS=
- ac_save_libs="$LIBS"
- ac_save_cflags="$CFLAGS"
- ac_save_cppflags="$CPPFLAGS"
- LIBS="$LIBS $LIBLAS_LIBS"
- CFLAGS="$CFLAGS $LIBLAS_CFLAGS"
- CPPFLAGS="$CPPFLAGS $LIBLAS_INC"
- cat > conftest.$ac_ext <<EOF
- #line 6455 "configure"
- #include "confdefs.h"
- #include <liblas/capi/liblas.h>
- int main() {
- LASReader_Create("foo");
- ; return 0; }
- EOF
- if { (eval echo configure:6462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- :
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- cat > conftest.$ac_ext <<EOF
- #line 6470 "configure"
- #include "confdefs.h"
- #include <liblas/capi/liblas.h>
- int main() {
- LASReader_Create("foo");
- ; return 0; }
- EOF
- if { (eval echo configure:6477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- LAS_LIBS="$LAS_LIBS"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- { echo "configure: error: *** Unable to locate libLAS library." 1>&2; exit 1; }
-
- fi
- rm -f conftest*
-
- fi
- rm -f conftest*
- LIBS=${ac_save_libs}
- CFLAGS=${ac_save_cflags}
- CPPFLAGS=${ac_save_cppflags}
- cat >> confdefs.h <<\EOF
- #define HAVE_LIBLAS 1
- EOF
- fi
- # PDAL option
- echo $ac_n "checking whether to use PDAL""... $ac_c" 1>&6
- echo "configure:6510: checking whether to use PDAL" >&5
- # new and currently used way to switch language to C++
- # AC_LANG_PUSH(C++)
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
- PDAL_LIBS=
- PDAL_CPPFLAGS=
- USE_PDAL=
- if test "`basename xx/$with_pdal`" = "pdal-config" ; then
- PDAL_CONFIG="$with_pdal"
- fi
- if test "$with_pdal" = "no" ; then
- echo "$ac_t""no" 1>&6
- else
- echo "$ac_t""yes" 1>&6
- # Extract the first word of "pdal-config", so it can be a program name with args.
- set dummy pdal-config; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:6538: checking for $ac_word" >&5
- case "$PDAL_CONFIG" in
- /*)
- ac_cv_path_PDAL_CONFIG="$PDAL_CONFIG" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_PDAL_CONFIG="$PDAL_CONFIG" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_PDAL_CONFIG="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_PDAL_CONFIG" && ac_cv_path_PDAL_CONFIG="no"
- ;;
- esac
- PDAL_CONFIG="$ac_cv_path_PDAL_CONFIG"
- if test -n "$PDAL_CONFIG"; then
- echo "$ac_t""$PDAL_CONFIG" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$PDAL_CONFIG" = "no" ; then
- { echo "configure: error: *** could not find pdal-config" 1>&2; exit 1; }
- fi
- if test "$PDAL_CONFIG" != "" ; then
- PDAL_LIBS=`"$PDAL_CONFIG" --libs`
- PDAL_CPPFLAGS=`"$PDAL_CONFIG" --cxxflags`
- PDAL_INC=`"$PDAL_CONFIG" --includes`
- USE_PDAL=1
- fi
- PDAL=
- ac_save_libs="$LIBS"
- ac_save_cflags="$CFLAGS"
- ac_save_cppflags="$CPPFLAGS"
- LIBS="$LIBS $PDAL_LIBS"
- CFLAGS="$CFLAGS $PDAL_CFLAGS"
- CPPFLAGS="$CPPFLAGS $PDAL_CPPFLAGS $PDAL_INC"
- cat > conftest.$ac_ext <<EOF
- #line 6588 "configure"
- #include "confdefs.h"
- #include <pdal/PointTable.hpp>
- int main() {
- pdal::PointTable table;
- ; return 0; }
- EOF
- if { (eval echo configure:6595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- :
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- cat > conftest.$ac_ext <<EOF
- #line 6603 "configure"
- #include "confdefs.h"
- #include <pdal/PointTable.hpp>
- int main() {
- pdal::PointTable table;
- ; return 0; }
- EOF
- if { (eval echo configure:6610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- PDAL_LIBS="$PDAL_LIBS"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- { echo "configure: error: *** Unable to locate PDAL library." 1>&2; exit 1; }
-
- fi
- rm -f conftest*
-
- fi
- rm -f conftest*
- LIBS=${ac_save_libs}
- CFLAGS=${ac_save_cflags}
- CPPFLAGS=${ac_save_cppflags}
- cat >> confdefs.h <<\EOF
- #define HAVE_PDAL 1
- EOF
- fi
- # new and currently used way to switch language back to C
- # AC_LANG_POP(C++)
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
- # NetCDF option
- echo $ac_n "checking whether to use NetCDF""... $ac_c" 1>&6
- echo "configure:6660: checking whether to use NetCDF" >&5
- NETCDF_LIBS=
- NETCDF_CFLAGS=
- USE_NETCDF=
- if test "`basename xx/$with_netcdf`" = "nc-config" ; then
- NETCDF_CONFIG="$with_netcdf"
- fi
- if test "$with_netcdf" = "no" ; then
- echo "$ac_t""no" 1>&6
- else
- echo "$ac_t""yes" 1>&6
- # Extract the first word of "nc-config", so it can be a program name with args.
- set dummy nc-config; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:6677: checking for $ac_word" >&5
- case "$NETCDF_CONFIG" in
- /*)
- ac_cv_path_NETCDF_CONFIG="$NETCDF_CONFIG" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_NETCDF_CONFIG="$NETCDF_CONFIG" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_NETCDF_CONFIG="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_NETCDF_CONFIG" && ac_cv_path_NETCDF_CONFIG="no"
- ;;
- esac
- NETCDF_CONFIG="$ac_cv_path_NETCDF_CONFIG"
- if test -n "$NETCDF_CONFIG"; then
- echo "$ac_t""$NETCDF_CONFIG" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$NETCDF_CONFIG" = "no" ; then
- { echo "configure: error: *** couldn't find nc-config" 1>&2; exit 1; }
- fi
- if test "$NETCDF_CONFIG" != "" ; then
- NETCDF_LIBS=`"$NETCDF_CONFIG" --libs`
- NETCDF_CFLAGS=`"$NETCDF_CONFIG" --cflags`
- USE_NETCDF=1
- fi
- NETCDF=
- ac_save_libs="$LIBS"
- ac_save_cflags="$CFLAGS"
- LIBS="$LIBS $NETCDF_LIBS"
- CFLAGS="$CFLAGS $NETCDF_CFLAGS"
- cat > conftest.$ac_ext <<EOF
- #line 6724 "configure"
- #include "confdefs.h"
- #include <netcdf.h>
- int main() {
- nc_create("foo", NC_CLOBBER, NULL);
- ; return 0; }
- EOF
- if { (eval echo configure:6731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- :
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- cat > conftest.$ac_ext <<EOF
- #line 6739 "configure"
- #include "confdefs.h"
- #include <netcdf.h>
- int main() {
- nc_create("foo", NC_CLOBBER, NULL);
- ; return 0; }
- EOF
- if { (eval echo configure:6746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- NETCDF_LIBS="$NETCDF_LIBS"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- { echo "configure: error: *** Unable to locate NetCDF library." 1>&2; exit 1; }
-
- fi
- rm -f conftest*
-
- fi
- rm -f conftest*
- LIBS=${ac_save_libs}
- CFLAGS=${ac_save_cflags}
- cat >> confdefs.h <<\EOF
- #define HAVE_NETCDF 1
- EOF
- fi
- # GEOS option
- echo $ac_n "checking whether to use GEOS""... $ac_c" 1>&6
- echo "configure:6777: checking whether to use GEOS" >&5
- GEOS_LIBS=
- GEOS_CFLAGS=
- USE_GEOS=
- # FIXME: "quote" $with_geos ?
- if test "`basename xx/$with_geos`" = "geos-config" ; then
- GEOS_CONFIG="$with_geos"
- fi
- if test "$with_geos" = "no" ; then
- echo "$ac_t""no" 1>&6
- else
- echo "$ac_t""yes" 1>&6
- # Extract the first word of "geos-config", so it can be a program name with args.
- set dummy geos-config; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:6795: checking for $ac_word" >&5
- case "$GEOS_CONFIG" in
- /*)
- ac_cv_path_GEOS_CONFIG="$GEOS_CONFIG" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_GEOS_CONFIG="$GEOS_CONFIG" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_GEOS_CONFIG="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_GEOS_CONFIG" && ac_cv_path_GEOS_CONFIG="no"
- ;;
- esac
- GEOS_CONFIG="$ac_cv_path_GEOS_CONFIG"
- if test -n "$GEOS_CONFIG"; then
- echo "$ac_t""$GEOS_CONFIG" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$GEOS_CONFIG" = "no" ; then
- { echo "configure: error: *** couldn't find geos-config" 1>&2; exit 1; }
- fi
-
- if test "$GEOS_CONFIG" != "" ; then
- GEOS_LIBS=`"$GEOS_CONFIG" --libs`
- GEOS_CFLAGS=`"$GEOS_CONFIG" --cflags`
- USE_GEOS=1
- fi
-
-
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$GEOS_CFLAGS $CPPFLAGS"
- for ac_hdr in geos_c.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:6843: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 6846 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:6851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate GEOS includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- ### 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
- # if test "$MINGW32" = yes ; then
- # LOC_CHECK_LIBS(geos_c_i,initGEOS,GEOS,$GEOS_LIBS,GEOS_LIBS)
- # else
-
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$GEOS_LIBS $LDFLAGS"
- echo $ac_n "checking for initGEOS in -lgeos_c""... $ac_c" 1>&6
- echo "configure:6890: checking for initGEOS in -lgeos_c" >&5
- ac_lib_var=`echo geos_c'_'initGEOS | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lgeos_c $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 6896 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char initGEOS();
- int main() {
- initGEOS()
- ; return 0; }
- EOF
- if { (eval echo configure:6907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- GEOS_LIBS="$GEOS_LIBS -lgeos_c "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate GEOS library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- # fi
- cat >> confdefs.h <<\EOF
- #define HAVE_GEOS 1
- EOF
- fi
- # Enable TIFF option
- echo $ac_n "checking whether to use TIFF""... $ac_c" 1>&6
- echo "configure:6951: checking whether to use TIFF" >&5
- echo "$ac_t"""$with_tiff"" 1>&6
- case "$with_tiff" in
- "no") USE_TIFF= ;;
- "yes") USE_TIFF="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- TIFF_INCLUDE_DIRS=
- TIFF_LIBRARY_DIRS=
- TIFFLIB=
- if test -n "$USE_TIFF"; then
- # With TIFF includes directory
- echo $ac_n "checking for location of TIFF includes""... $ac_c" 1>&6
- echo "configure:6971: checking for location of TIFF includes" >&5
- case "$with_tiff_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-tiff-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_tiff_includes" 1>&6
- if test -n "$with_tiff_includes" ; then
- for dir in $with_tiff_includes; do
- if test -d "$dir"; then
- TIFF_INCLUDE_DIRS="$TIFF_INCLUDE_DIRS -I$dir"
- else
- { echo "configure: error: *** TIFF includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$TIFF_INCLUDE_DIRS $CPPFLAGS"
- for ac_hdr in tiffio.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:6997: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 7000 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:7005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate TIFF includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With TIFF library directory
- echo $ac_n "checking for location of TIFF library""... $ac_c" 1>&6
- echo "configure:7039: checking for location of TIFF library" >&5
- case "$with_tiff_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-tiff-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_tiff_libs" 1>&6
- if test -n "$with_tiff_libs"; then
- for dir in $with_tiff_libs; do
- if test -d "$dir"; then
- TIFF_LIBRARY_DIRS="$TIFF_LIBRARY_DIRS -L$dir"
- else
- { echo "configure: error: *** TIFF library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$TIFF_LIBRARY_DIRS $LDFLAGS"
- echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
- echo "configure:7070: checking for TIFFOpen in -ltiff" >&5
- ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltiff $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7076 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char TIFFOpen();
- int main() {
- TIFFOpen()
- ; return 0; }
- EOF
- if { (eval echo configure:7087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TIFFLIB="$TIFFLIB -ltiff "
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
- echo "configure:7106: checking for TIFFOpen in -ltiff" >&5
- ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltiff $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7112 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char TIFFOpen();
- int main() {
- TIFFOpen()
- ; return 0; }
- EOF
- if { (eval echo configure:7123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TIFFLIB="$TIFFLIB -ltiff $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
- echo "configure:7142: checking for TIFFOpen in -ltiff" >&5
- ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltiff $ZLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7148 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char TIFFOpen();
- int main() {
- TIFFOpen()
- ; return 0; }
- EOF
- if { (eval echo configure:7159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TIFFLIB="$TIFFLIB -ltiff $ZLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
- echo "configure:7178: checking for TIFFOpen in -ltiff" >&5
- ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltiff $ZLIB $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7184 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char TIFFOpen();
- int main() {
- TIFFOpen()
- ; return 0; }
- EOF
- if { (eval echo configure:7195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TIFFLIB="$TIFFLIB -ltiff $ZLIB $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
- echo "configure:7214: checking for TIFFOpen in -ltiff" >&5
- ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltiff -ljpeg $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7220 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char TIFFOpen();
- int main() {
- TIFFOpen()
- ; return 0; }
- EOF
- if { (eval echo configure:7231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TIFFLIB="$TIFFLIB -ltiff -ljpeg"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
- echo "configure:7250: checking for TIFFOpen in -ltiff" >&5
- ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltiff -ljpeg $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7256 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char TIFFOpen();
- int main() {
- TIFFOpen()
- ; return 0; }
- EOF
- if { (eval echo configure:7267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TIFFLIB="$TIFFLIB -ltiff -ljpeg $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
- echo "configure:7286: checking for TIFFOpen in -ltiff" >&5
- ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltiff -ljpeg $ZLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7292 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char TIFFOpen();
- int main() {
- TIFFOpen()
- ; return 0; }
- EOF
- if { (eval echo configure:7303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TIFFLIB="$TIFFLIB -ltiff -ljpeg $ZLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
- echo "configure:7322: checking for TIFFOpen in -ltiff" >&5
- ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltiff -ljpeg $ZLIB $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7328 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char TIFFOpen();
- int main() {
- TIFFOpen()
- ; return 0; }
- EOF
- if { (eval echo configure:7339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TIFFLIB="$TIFFLIB -ltiff -ljpeg $ZLIB $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate TIFF library." 1>&2; exit 1; }
- fi
- fi
- fi
- fi
- fi
- fi
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- fi # $USE_TIFF
- # Done checking TIFF
- # Enable PNG option
- echo $ac_n "checking whether to use PNG""... $ac_c" 1>&6
- echo "configure:7437: checking whether to use PNG" >&5
- echo "$ac_t"""$with_png"" 1>&6
- case "$with_png" in
- "no") USE_PNG= ;;
- "yes") USE_PNG="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- PNGINC=
- PNGLIB=
- if test -n "$USE_PNG"; then
- # With PNG includes directory
- echo $ac_n "checking for location of PNG includes""... $ac_c" 1>&6
- echo "configure:7456: checking for location of PNG includes" >&5
- case "$with_png_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-png-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_png_includes" 1>&6
- if test -n "$with_png_includes" ; then
- for dir in $with_png_includes; do
- if test -d "$dir"; then
- PNGINC="$PNGINC -I$dir"
- else
- { echo "configure: error: *** PNG includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$PNGINC $CPPFLAGS"
- for ac_hdr in png.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:7482: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 7485 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:7490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate PNG includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With PNG library directory
- echo $ac_n "checking for location of PNG library""... $ac_c" 1>&6
- echo "configure:7524: checking for location of PNG library" >&5
- case "$with_png_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-png-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_png_libs" 1>&6
- if test -n "$with_png_libs"; then
- for dir in $with_png_libs; do
- if test -d "$dir"; then
- PNGLIB="$PNGLIB -L$dir"
- else
- { echo "configure: error: *** PNG library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$PNGLIB $LDFLAGS"
- echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
- echo "configure:7549: checking for png_read_image in -lpng" >&5
- ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lpng $ZLIB $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7555 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char png_read_image();
- int main() {
- png_read_image()
- ; return 0; }
- EOF
- if { (eval echo configure:7566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- PNGLIB="$PNGLIB -lpng $ZLIB $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate PNG library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- fi # $USE_PNG
- # Done checking PNG
- # Enable PostgreSQL option
- echo $ac_n "checking whether to use PostgreSQL""... $ac_c" 1>&6
- echo "configure:7608: checking whether to use PostgreSQL" >&5
- echo "$ac_t"""$with_postgres"" 1>&6
- case "$with_postgres" in
- "no") USE_POSTGRES= ;;
- "yes") USE_POSTGRES="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- if test -n "$USE_POSTGRES"; then
- cat >> confdefs.h <<\EOF
- #define HAVE_POSTGRES 1
- EOF
- fi # $USE_POSTGRES
- PQINCPATH=
- PQLIBPATH=
- PQLIB=
- if test -n "$USE_POSTGRES"; then
- # With PostgreSQL includes directory
- echo $ac_n "checking for location of PostgreSQL includes""... $ac_c" 1>&6
- echo "configure:7635: checking for location of PostgreSQL includes" >&5
- case "$with_postgres_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-postgres-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_postgres_includes" 1>&6
- if test -n "$with_postgres_includes" ; then
- for dir in $with_postgres_includes; do
- if test -d "$dir"; then
- PQINCPATH="$PQINCPATH -I$dir"
- else
- { echo "configure: error: *** PostgreSQL includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$PQINCPATH $CPPFLAGS"
- for ac_hdr in libpq-fe.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:7661: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 7664 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:7669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate PostgreSQL includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- fi # $USE_POSTGRES
- if test -n "$USE_POSTGRES"; then
- # With PostgreSQL library directory
- echo $ac_n "checking for location of PostgreSQL library""... $ac_c" 1>&6
- echo "configure:7707: checking for location of PostgreSQL library" >&5
- case "$with_postgres_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-postgres-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_postgres_libs" 1>&6
- if test -n "$with_postgres_libs"; then
- for dir in $with_postgres_libs; do
- if test -d "$dir"; then
- PQLIBPATH="$PQLIBPATH -L$dir"
- else
- { echo "configure: error: *** PostgreSQL library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$PQLIBPATH $LDFLAGS"
- echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
- echo "configure:7736: checking for PQsetdbLogin in -lpq" >&5
- ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lpq $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7742 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char PQsetdbLogin();
- int main() {
- PQsetdbLogin()
- ; return 0; }
- EOF
- if { (eval echo configure:7753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- PQLIB="$PQLIB -lpq "
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
- echo "configure:7772: checking for PQsetdbLogin in -lpq" >&5
- ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lpq -lssl -lcrypto $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7778 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char PQsetdbLogin();
- int main() {
- PQsetdbLogin()
- ; return 0; }
- EOF
- if { (eval echo configure:7789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- PQLIB="$PQLIB -lpq -lssl -lcrypto"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
- echo "configure:7808: checking for PQsetdbLogin in -lpq" >&5
- ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lpq -lcrypt $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7814 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char PQsetdbLogin();
- int main() {
- PQsetdbLogin()
- ; return 0; }
- EOF
- if { (eval echo configure:7825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- PQLIB="$PQLIB -lpq -lcrypt"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
- echo "configure:7844: checking for PQsetdbLogin in -lpq" >&5
- ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lpq -lcrypt -lssl -lcrypto $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7850 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char PQsetdbLogin();
- int main() {
- PQsetdbLogin()
- ; return 0; }
- EOF
- if { (eval echo configure:7861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- PQLIB="$PQLIB -lpq -lcrypt -lssl -lcrypto"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate PostgreSQL library." 1>&2; exit 1; }
- fi
- fi
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$LDFLAGS $PQLIBPATH"
- echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
- echo "configure:7918: checking for PQcmdTuples in -lpq" >&5
- ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lpq $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7924 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char PQcmdTuples();
- int main() {
- PQcmdTuples()
- ; return 0; }
- EOF
- if { (eval echo configure:7935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<\EOF
- #define HAVE_PQCMDTUPLES 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
- echo "configure:7957: checking for PQcmdTuples in -lpq" >&5
- ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lpq -lcrypt $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7963 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char PQcmdTuples();
- int main() {
- PQcmdTuples()
- ; return 0; }
- EOF
- if { (eval echo configure:7974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<\EOF
- #define HAVE_PQCMDTUPLES 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- LDFLAGS="${ac_save_ldflags}"
- fi # $USE_POSTGRES
- # Done checking PostgreSQL
- # Enable MySQL option
- echo $ac_n "checking whether to use MySQL""... $ac_c" 1>&6
- echo "configure:8017: checking whether to use MySQL" >&5
- echo "$ac_t"""$with_mysql"" 1>&6
- case "$with_mysql" in
- "no") USE_MYSQL= ;;
- "yes") USE_MYSQL="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- MYSQLINCPATH=
- MYSQLLIBPATH=
- MYSQLLIB=
- if test -n "$USE_MYSQL"; then
- # With MySQL includes directory
- echo $ac_n "checking for location of MySQL includes""... $ac_c" 1>&6
- echo "configure:8037: checking for location of MySQL includes" >&5
- case "$with_mysql_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-mysql-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_mysql_includes" 1>&6
- if test -n "$with_mysql_includes" ; then
- for dir in $with_mysql_includes; do
- if test -d "$dir"; then
- MYSQLINCPATH="$MYSQLINCPATH -I$dir"
- else
- { echo "configure: error: *** MySQL includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$MYSQLINCPATH $CPPFLAGS"
- for ac_hdr in mysql.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:8063: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 8066 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:8071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate MySQL includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- fi # $USE_MYSQL
- if test -n "$USE_MYSQL"; then
- # With MySQL library directory
-
- echo $ac_n "checking for location of MySQL library""... $ac_c" 1>&6
- echo "configure:8108: checking for location of MySQL library" >&5
- case "$with_mysql_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-mysql-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_mysql_libs" 1>&6
- if test -n "$with_mysql_libs"; then
- for dir in $with_mysql_libs; do
- if test -d "$dir"; then
- MYSQLLIBPATH="$MYSQLLIBPATH -L$dir"
- else
- { echo "configure: error: *** MySQL library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
-
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$MYSQLLIBPATH $LDFLAGS"
- echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
- echo "configure:8139: checking for mysql_query in -lmysqlclient" >&5
- ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lmysqlclient $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8145 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char mysql_query();
- int main() {
- mysql_query()
- ; return 0; }
- EOF
- if { (eval echo configure:8156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- MYSQLLIB="$MYSQLLIB -lmysqlclient "
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
- echo "configure:8175: checking for mysql_query in -lmysqlclient" >&5
- ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lmysqlclient $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8181 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char mysql_query();
- int main() {
- mysql_query()
- ; return 0; }
- EOF
- if { (eval echo configure:8192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- MYSQLLIB="$MYSQLLIB -lmysqlclient $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
- echo "configure:8211: checking for mysql_query in -lmysqlclient" >&5
- ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lmysqlclient $SOCKLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8217 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char mysql_query();
- int main() {
- mysql_query()
- ; return 0; }
- EOF
- if { (eval echo configure:8228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- MYSQLLIB="$MYSQLLIB -lmysqlclient $SOCKLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
- echo "configure:8247: checking for mysql_query in -lmysqlclient" >&5
- ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lmysqlclient $SOCKLIB $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8253 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char mysql_query();
- int main() {
- mysql_query()
- ; return 0; }
- EOF
- if { (eval echo configure:8264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- MYSQLLIB="$MYSQLLIB -lmysqlclient $SOCKLIB $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
- echo "configure:8283: checking for mysql_query in -lmysqlclient" >&5
- ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lmysqlclient $ZLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8289 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char mysql_query();
- int main() {
- mysql_query()
- ; return 0; }
- EOF
- if { (eval echo configure:8300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
- echo "configure:8319: checking for mysql_query in -lmysqlclient" >&5
- ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lmysqlclient $ZLIB $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8325 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char mysql_query();
- int main() {
- mysql_query()
- ; return 0; }
- EOF
- if { (eval echo configure:8336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
- echo "configure:8355: checking for mysql_query in -lmysqlclient" >&5
- ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lmysqlclient $ZLIB $SOCKLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8361 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char mysql_query();
- int main() {
- mysql_query()
- ; return 0; }
- EOF
- if { (eval echo configure:8372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $SOCKLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
- echo "configure:8391: checking for mysql_query in -lmysqlclient" >&5
- ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lmysqlclient $ZLIB $SOCKLIB $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8397 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char mysql_query();
- int main() {
- mysql_query()
- ; return 0; }
- EOF
- if { (eval echo configure:8408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $SOCKLIB $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate MySQL library." 1>&2; exit 1; }
- fi
- fi
- fi
- fi
- fi
- fi
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- # Check for libmysqld (for embeded version of the driver)
- # Extract the first word of "mysql_config", so it can be a program name with args.
- set dummy mysql_config; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:8498: checking for $ac_word" >&5
- case "$MYSQLD_CONFIG" in
- /*)
- ac_cv_path_MYSQLD_CONFIG="$MYSQLD_CONFIG" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_MYSQLD_CONFIG="$MYSQLD_CONFIG" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_MYSQLD_CONFIG="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_MYSQLD_CONFIG" && ac_cv_path_MYSQLD_CONFIG="no"
- ;;
- esac
- MYSQLD_CONFIG="$ac_cv_path_MYSQLD_CONFIG"
- if test -n "$MYSQLD_CONFIG"; then
- echo "$ac_t""$MYSQLD_CONFIG" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$MYSQLD_CONFIG" = "no" ; then
- { echo "configure: error: *** couldn't find mysql_config" 1>&2; exit 1; }
- fi
- if test "$MYSQLD_CONFIG" != "" ; then
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
- ac_save_libs="$LIBS"
- MYSQLDLIB=`"$MYSQLD_CONFIG" --libmysqld-libs`
- LIBS="$MYSQLDLIB $LIBS"
- echo $ac_n "checking for mysql_server_init""... $ac_c" 1>&6
- echo "configure:8547: checking for mysql_server_init" >&5
- cat > conftest.$ac_ext <<EOF
- #line 8550 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char mysql_server_init(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char mysql_server_init();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_mysql_server_init) || defined (__stub___mysql_server_init)
- choke me
- #else
- mysql_server_init();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:8576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_mysql_server_init=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_mysql_server_init=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'mysql_server_init`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- MYSQLDLIB="";
- echo "configure: warning: libmysqld not found" 1>&2
- fi
- LIBS=$ac_save_libs
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
- fi
- fi # $USE_MYSQL
- # Done checking MySQL
- # Enable SQLite option
- echo $ac_n "checking whether to use SQLite""... $ac_c" 1>&6
- echo "configure:8628: checking whether to use SQLite" >&5
- echo "$ac_t"""$with_sqlite"" 1>&6
- case "$with_sqlite" in
- "no") USE_SQLITE= ;;
- "yes") USE_SQLITE="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- SQLITEINCPATH=
- SQLITELIBPATH=
- SQLITELIB=
- if test -n "$USE_SQLITE"; then
- # With SQLite includes directory
- echo $ac_n "checking for location of SQLite includes""... $ac_c" 1>&6
- echo "configure:8648: checking for location of SQLite includes" >&5
- case "$with_sqlite_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-sqlite-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_sqlite_includes" 1>&6
- if test -n "$with_sqlite_includes" ; then
- for dir in $with_sqlite_includes; do
- if test -d "$dir"; then
- SQLITEINCPATH="$SQLITEINCPATH -I$dir"
- else
- { echo "configure: error: *** SQLite includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$SQLITEINCPATH $CPPFLAGS"
- for ac_hdr in sqlite3.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:8674: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 8677 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:8682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate SQLite includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- cat >> confdefs.h <<\EOF
- #define HAVE_SQLITE 1
- EOF
- fi # $USE_SQLITE
- if test -n "$USE_SQLITE"; then
- # With SQLite library directory
- echo $ac_n "checking for location of SQLite library""... $ac_c" 1>&6
- echo "configure:8725: checking for location of SQLite library" >&5
- case "$with_sqlite_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-sqlite-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_sqlite_libs" 1>&6
- if test -n "$with_sqlite_libs"; then
- for dir in $with_sqlite_libs; do
- if test -d "$dir"; then
- SQLITELIBPATH="$SQLITELIBPATH -L$dir"
- else
- { echo "configure: error: *** SQLite library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$SQLITELIBPATH $LDFLAGS"
- echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
- echo "configure:8754: checking for sqlite3_open in -lsqlite3" >&5
- ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lsqlite3 $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8760 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char sqlite3_open();
- int main() {
- sqlite3_open()
- ; return 0; }
- EOF
- if { (eval echo configure:8771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- SQLITELIB="$SQLITELIB -lsqlite3 "
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
- echo "configure:8790: checking for sqlite3_open in -lsqlite3" >&5
- ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lsqlite3 $DLLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8796 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char sqlite3_open();
- int main() {
- sqlite3_open()
- ; return 0; }
- EOF
- if { (eval echo configure:8807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- SQLITELIB="$SQLITELIB -lsqlite3 $DLLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
- echo "configure:8826: checking for sqlite3_open in -lsqlite3" >&5
- ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lsqlite3 $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8832 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char sqlite3_open();
- int main() {
- sqlite3_open()
- ; return 0; }
- EOF
- if { (eval echo configure:8843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- SQLITELIB="$SQLITELIB -lsqlite3 $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
- echo "configure:8862: checking for sqlite3_open in -lsqlite3" >&5
- ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lsqlite3 $MATHLIB $DLLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8868 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char sqlite3_open();
- int main() {
- sqlite3_open()
- ; return 0; }
- EOF
- if { (eval echo configure:8879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- SQLITELIB="$SQLITELIB -lsqlite3 $MATHLIB $DLLIB"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate SQLite library." 1>&2; exit 1; }
- fi
- fi
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- fi # $USE_SQLITE
- # Done checking SQLite
- # Enable OpenGL option
- OPENGLINC=
- OPENGLLIB=
- OPENGLULIB=
- USE_OPENGL=
- OPENGL_X11=
- OPENGL_AQUA=
- OPENGL_WINDOWS=
- echo $ac_n "checking whether to use OpenGL""... $ac_c" 1>&6
- echo "configure:8954: checking whether to use OpenGL" >&5
- echo "$ac_t"""$with_opengl"" 1>&6
- case "$with_opengl" in
- n|no)
- OPENGL_TYPE=none
- ;;
- y|yes|x|x11|glx)
- OPENGL_TYPE=X11
- USE_OPENGL=1
- OPENGL_X11=1
- ;;
- aqua|mac|osx|macosx|agl)
- OPENGL_TYPE=Aqua
- USE_OPENGL=1
- OPENGL_AQUA=1
- ;;
- win|windows|mswin|wgl)
- OPENGL_TYPE=Windows
- USE_OPENGL=1
- OPENGL_WINDOWS=1
- ;;
- *)
- { echo "configure: error: *** Valid arguments for --with-opengl= are yes,no,x11,aqua,windows." 1>&2; exit 1; }
- ;;
- esac
- if test -n "$USE_OPENGL" ; then
- if test "$OPENGL_X11" = 1 ; then
- # With OpenGL includes directory
- echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
- echo "configure:8988: checking for location of OpenGL includes" >&5
- case "$with_opengl_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_opengl_includes" 1>&6
- if test -n "$with_opengl_includes" ; then
- for dir in $with_opengl_includes; do
- if test -d "$dir"; then
- OPENGLINC="$OPENGLINC -I$dir"
- else
- { echo "configure: error: *** OpenGL includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$OPENGLINC $X_CFLAGS $CPPFLAGS"
- for ac_hdr in GL/gl.h GL/glu.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:9014: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 9017 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:9022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With OpenGL library directory
- echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
- echo "configure:9056: checking for location of OpenGL library" >&5
- case "$with_opengl_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-opengl-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_opengl_libs" 1>&6
- if test -n "$with_opengl_libs"; then
- for dir in $with_opengl_libs; do
- if test -d "$dir"; then
- OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
- else
- { echo "configure: error: *** OpenGL library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
- echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
- echo "configure:9085: checking for glBegin in -lGL" >&5
- ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 9091 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char glBegin();
- int main() {
- glBegin()
- ; return 0; }
- EOF
- if { (eval echo configure:9102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- OPENGLLIB="$OPENGLLIB -lGL "
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
- echo "configure:9121: checking for glBegin in -lGL" >&5
- ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lXext $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 9127 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char glBegin();
- int main() {
- glBegin()
- ; return 0; }
- EOF
- if { (eval echo configure:9138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- OPENGLLIB="$OPENGLLIB -lGL -lXext"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
- echo "configure:9157: checking for glBegin in -lGL" >&5
- ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 9163 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char glBegin();
- int main() {
- glBegin()
- ; return 0; }
- EOF
- if { (eval echo configure:9174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- OPENGLLIB="$OPENGLLIB -lGL -lpthread"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
- echo "configure:9193: checking for glBegin in -lGL" >&5
- ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread -lXext $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 9199 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char glBegin();
- int main() {
- glBegin()
- ; return 0; }
- EOF
- if { (eval echo configure:9210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- OPENGLLIB="$OPENGLLIB -lGL -lpthread -lXext"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
- fi
- fi
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
- echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
- echo "configure:9272: checking for gluBeginCurve in -lGLU" >&5
- ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 9278 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gluBeginCurve();
- int main() {
- gluBeginCurve()
- ; return 0; }
- EOF
- if { (eval echo configure:9289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- OPENGLULIB="$OPENGLULIB -lGLU "
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
- echo "configure:9308: checking for gluBeginCurve in -lGLU" >&5
- ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lstdc++ $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 9314 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gluBeginCurve();
- int main() {
- gluBeginCurve()
- ; return 0; }
- EOF
- if { (eval echo configure:9325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- OPENGLULIB="$OPENGLULIB -lGLU -lstdc++"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
- OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
- ac_save_libs="$LIBS"
- ac_save_ldflags="$LDFLAGS"
- LIBS=" $OPENGLLIB $LIBS"
- LDFLAGS=" $LDFLAGS"
- echo $ac_n "checking for glXCreatePbuffer""... $ac_c" 1>&6
- echo "configure:9372: checking for glXCreatePbuffer" >&5
- cat > conftest.$ac_ext <<EOF
- #line 9375 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char glXCreatePbuffer(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char glXCreatePbuffer();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_glXCreatePbuffer) || defined (__stub___glXCreatePbuffer)
- choke me
- #else
- glXCreatePbuffer();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:9398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_glXCreatePbuffer=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_glXCreatePbuffer=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'glXCreatePbuffer`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- cat >> confdefs.h <<\EOF
- #define HAVE_PBUFFERS 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate glXCreatePbuffer." 1>&2; exit 1; }
- fi
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- ac_save_libs="$LIBS"
- ac_save_ldflags="$LDFLAGS"
- LIBS=" $OPENGLLIB $LIBS"
- LDFLAGS=" $LDFLAGS"
- echo $ac_n "checking for glXCreateGLXPixmap""... $ac_c" 1>&6
- echo "configure:9435: checking for glXCreateGLXPixmap" >&5
- cat > conftest.$ac_ext <<EOF
- #line 9438 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char glXCreateGLXPixmap(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char glXCreateGLXPixmap();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_glXCreateGLXPixmap) || defined (__stub___glXCreateGLXPixmap)
- choke me
- #else
- glXCreateGLXPixmap();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:9461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_glXCreateGLXPixmap=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_glXCreateGLXPixmap=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'glXCreateGLXPixmap`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- cat >> confdefs.h <<\EOF
- #define HAVE_PIXMAPS 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate glXCreateGLXPixmap." 1>&2; exit 1; }
- fi
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- cat >> confdefs.h <<\EOF
- #define OPENGL_X11 1
- EOF
- fi # $OPENGL_X11
- if test "$OPENGL_AQUA" = 1 ; then
- echo $ac_n "checking for location of OpenGL framework""... $ac_c" 1>&6
- echo "configure:9504: checking for location of OpenGL framework" >&5
- case "$with_opengl_framework" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-opengl-framework." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_opengl_framework" 1>&6
- if test -n "$with_opengl_framework"; then
- if test -d $with_opengl_framework; then
- OPENGLPATH="$OPENGLPATH -F$with_opengl_framework"
- else
- { echo "configure: error: *** OpenGL framework directory $dir does not exist." 1>&2; exit 1; }
- fi
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$OPENGLPATH $CPPFLAGS"
- for ac_hdr in OpenGL/gl.h OpenGL/glu.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:9528: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 9531 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:9536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- ac_save_libs="$LIBS"
- ac_save_ldflags="$LDFLAGS"
- LIBS="-framework OpenGL -framework AGL -framework ApplicationServices $LIBS"
- LDFLAGS="$OPENGLPATH $LDFLAGS"
- echo $ac_n "checking for glBegin""... $ac_c" 1>&6
- echo "configure:9572: checking for glBegin" >&5
- cat > conftest.$ac_ext <<EOF
- #line 9575 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char glBegin(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char glBegin();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_glBegin) || defined (__stub___glBegin)
- choke me
- #else
- glBegin();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:9598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_glBegin=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_glBegin=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'glBegin`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- OPENGLLIB="$OPENGLLIB -framework OpenGL -framework AGL -framework ApplicationServices"
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
- fi
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- ac_save_libs="$LIBS"
- ac_save_ldflags="$LDFLAGS"
- LIBS=" $OPENGLLIB $LIBS"
- LDFLAGS="$OPENGLPATH $LDFLAGS"
- echo $ac_n "checking for gluBeginCurve""... $ac_c" 1>&6
- echo "configure:9635: checking for gluBeginCurve" >&5
- cat > conftest.$ac_ext <<EOF
- #line 9638 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char gluBeginCurve(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gluBeginCurve();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_gluBeginCurve) || defined (__stub___gluBeginCurve)
- choke me
- #else
- gluBeginCurve();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:9661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_gluBeginCurve=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_gluBeginCurve=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'gluBeginCurve`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- OPENGLLIB="$OPENGLLIB "
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
- fi
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- OPENGLINC="$OPENGLPATH"
- OPENGLLIBPATH="$OPENGLPATH"
- cat >> confdefs.h <<\EOF
- #define OPENGL_AQUA 1
- EOF
- fi # $OPENGL_AQUA
- if test "$OPENGL_WINDOWS" = 1 ; then
- # With OpenGL includes directory
- echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
- echo "configure:9709: checking for location of OpenGL includes" >&5
- case "$with_opengl_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_opengl_includes" 1>&6
- if test -n "$with_opengl_includes" ; then
- for dir in $with_opengl_includes; do
- if test -d "$dir"; then
- OPENGLINC="$OPENGLINC -I$dir"
- else
- { echo "configure: error: *** OpenGL includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$OPENGLINC $CPPFLAGS"
- for ac_hdr in GL/gl.h GL/glu.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:9735: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 9738 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:9743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With OpenGL library directory
- echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
- echo "configure:9777: checking for location of OpenGL library" >&5
- case "$with_opengl_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-opengl-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_opengl_libs" 1>&6
- if test -n "$with_opengl_libs"; then
- for dir in $with_opengl_libs; do
- if test -d "$dir"; then
- OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
- else
- { echo "configure: error: *** OpenGL library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cflags="$CFLAGS"
- CFLAGS="$CFLAGS $OPENGLINC"
- ac_save_ldflags="$LDFLAGS"
- ac_save_libs="$LIBS"
- echo $ac_n "checking for OpenGL library""... $ac_c" 1>&6
- echo "configure:9802: checking for OpenGL library" >&5
- LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
- LIBS="-lopengl32 "
- cat > conftest.$ac_ext <<EOF
- #line 9806 "configure"
- #include "confdefs.h"
- #include <GL/gl.h>
- int main() {
- glEnd();
- ; return 0; }
- EOF
- if { (eval echo configure:9813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
-
- echo "$ac_t""found" 1>&6
- OPENGLLIB="$OPENGLLIB -lopengl32 "
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
- fi
- rm -f conftest*
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- ac_save_ldflags="$LDFLAGS"
- ac_save_libs="$LIBS"
- echo $ac_n "checking for GLU library""... $ac_c" 1>&6
- echo "configure:9837: checking for GLU library" >&5
- LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
- LIBS="-lglu32 $OPENGLLIB "
- cat > conftest.$ac_ext <<EOF
- #line 9841 "configure"
- #include "confdefs.h"
- #include <GL/glu.h>
- int main() {
- gluNewQuadric();
- ; return 0; }
- EOF
- if { (eval echo configure:9848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
-
- echo "$ac_t""found" 1>&6
- OPENGLULIB="$OPENGLULIB -lglu32 "
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
- fi
- rm -f conftest*
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- CFLAGS="${ac_save_cflags}"
- OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
- OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
- cat >> confdefs.h <<\EOF
- #define OPENGL_WINDOWS 1
- EOF
- fi # $OPENGL_WINDOWS
- fi # $USE_OPENGL
- # Done checking OpenGL
- # Enable ODBC option
- echo $ac_n "checking whether to use ODBC""... $ac_c" 1>&6
- echo "configure:9897: checking whether to use ODBC" >&5
- echo "$ac_t"""$with_odbc"" 1>&6
- case "$with_odbc" in
- "no") USE_ODBC= ;;
- "yes") USE_ODBC="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- ODBCINC=
- ODBCLIB=
- if test -n "$USE_ODBC"; then
- # With ODBC includes directory
- echo $ac_n "checking for location of ODBC includes""... $ac_c" 1>&6
- echo "configure:9916: checking for location of ODBC includes" >&5
- case "$with_odbc_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-odbc-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_odbc_includes" 1>&6
- if test -n "$with_odbc_includes" ; then
- for dir in $with_odbc_includes; do
- if test -d "$dir"; then
- ODBCINC="$ODBCINC -I$dir"
- else
- { echo "configure: error: *** ODBC includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$ODBCINC $CPPFLAGS"
- for ac_hdr in sql.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:9942: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 9945 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:9950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate ODBC includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With ODBC library directory
- echo $ac_n "checking for location of ODBC library""... $ac_c" 1>&6
- echo "configure:9984: checking for location of ODBC library" >&5
- case "$with_odbc_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-odbc-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_odbc_libs" 1>&6
- if test -n "$with_odbc_libs"; then
- for dir in $with_odbc_libs; do
- if test -d "$dir"; then
- ODBCLIB="$ODBCLIB -L$dir"
- else
- { echo "configure: error: *** ODBC library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$ODBCLIB $LDFLAGS"
- echo $ac_n "checking for SQLConnect in -lodbc""... $ac_c" 1>&6
- echo "configure:10009: checking for SQLConnect in -lodbc" >&5
- ac_lib_var=`echo odbc'_'SQLConnect | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lodbc $ICONVLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 10015 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char SQLConnect();
- int main() {
- SQLConnect()
- ; return 0; }
- EOF
- if { (eval echo configure:10026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ODBCLIB="$ODBCLIB -lodbc "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$ODBCLIB $LDFLAGS"
- echo $ac_n "checking for SQLConnect in -liodbc""... $ac_c" 1>&6
- echo "configure:10051: checking for SQLConnect in -liodbc" >&5
- ac_lib_var=`echo iodbc'_'SQLConnect | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-liodbc $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 10057 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char SQLConnect();
- int main() {
- SQLConnect()
- ; return 0; }
- EOF
- if { (eval echo configure:10068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ODBCLIB="$ODBCLIB -liodbc "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- ac_save_cflags="$CFLAGS"
- CFLAGS="$CFLAGS $ODBCINC"
- ac_save_ldflags="$LDFLAGS"
- ac_save_libs="$LIBS"
- echo $ac_n "checking for ODBC library""... $ac_c" 1>&6
- echo "configure:10093: checking for ODBC library" >&5
- LDFLAGS="$ODBCLIB $LDFLAGS"
- LIBS="-lodbc32 "
- cat > conftest.$ac_ext <<EOF
- #line 10097 "configure"
- #include "confdefs.h"
- #include <windows.h>
- #include <sql.h>
- int main() {
- SQLAllocEnv((SQLHENV *)0);
- ; return 0; }
- EOF
- if { (eval echo configure:10105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
-
- echo "$ac_t""found" 1>&6
- ODBCLIB="$ODBCLIB -lodbc32 "
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- { echo "configure: error: *** Unable to locate ODBC library." 1>&2; exit 1; }
- fi
- rm -f conftest*
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- CFLAGS="${ac_save_cflags}"
- fi
- LDFLAGS=${ac_save_ldflags}
- fi
- LDFLAGS=${ac_save_ldflags}
- fi # $USE_ODBC
- # Done checking ODBC
- # Enable FFTW option
- echo $ac_n "checking whether to use FFTW""... $ac_c" 1>&6
- echo "configure:10154: checking whether to use FFTW" >&5
- echo "$ac_t"""$with_fftw"" 1>&6
- case "$with_fftw" in
- "no") USE_FFTW= ;;
- "yes") USE_FFTW="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- FFTWINC=
- FFTWLIB=
- if test -n "$USE_FFTW"; then
- # With FFTW includes directory
- echo $ac_n "checking for location of FFTW includes""... $ac_c" 1>&6
- echo "configure:10173: checking for location of FFTW includes" >&5
- case "$with_fftw_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-fftw-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_fftw_includes" 1>&6
- if test -n "$with_fftw_includes" ; then
- for dir in $with_fftw_includes; do
- if test -d "$dir"; then
- FFTWINC="$FFTWINC -I$dir"
- else
- { echo "configure: error: *** FFTW includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$FFTWINC $CPPFLAGS"
- for ac_hdr in fftw3.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:10199: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 10202 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:10207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS=" $CPPFLAGS"
- for ac_hdr in fftw.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:10235: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 10238 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:10243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS=" $CPPFLAGS"
- for ac_hdr in dfftw.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:10271: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 10274 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:10279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate FFTW includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With FFTW library directory
- echo $ac_n "checking for location of FFTW library""... $ac_c" 1>&6
- echo "configure:10325: checking for location of FFTW library" >&5
- case "$with_fftw_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-fftw-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_fftw_libs" 1>&6
- if test -n "$with_fftw_libs"; then
- for dir in $with_fftw_libs; do
- if test -d "$dir"; then
- FFTWLIB="$FFTWLIB -L$dir"
- else
- { echo "configure: error: *** FFTW library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$FFTWLIB $LDFLAGS"
- echo $ac_n "checking for fftw_execute in -lfftw3""... $ac_c" 1>&6
- echo "configure:10350: checking for fftw_execute in -lfftw3" >&5
- ac_lib_var=`echo fftw3'_'fftw_execute | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lfftw3 $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 10356 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char fftw_execute();
- int main() {
- fftw_execute()
- ; return 0; }
- EOF
- if { (eval echo configure:10367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- FFTWLIB="$FFTWLIB -lfftw3 $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$FFTWLIB $LDFLAGS"
- echo $ac_n "checking for fftwnd_one in -lfftw""... $ac_c" 1>&6
- echo "configure:10392: checking for fftwnd_one in -lfftw" >&5
- ac_lib_var=`echo fftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lfftw $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 10398 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char fftwnd_one();
- int main() {
- fftwnd_one()
- ; return 0; }
- EOF
- if { (eval echo configure:10409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- FFTWLIB="$FFTWLIB -lfftw $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$FFTWLIB $LDFLAGS"
- echo $ac_n "checking for fftwnd_one in -ldfftw""... $ac_c" 1>&6
- echo "configure:10434: checking for fftwnd_one in -ldfftw" >&5
- ac_lib_var=`echo dfftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ldfftw $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 10440 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char fftwnd_one();
- int main() {
- fftwnd_one()
- ; return 0; }
- EOF
- if { (eval echo configure:10451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- FFTWLIB="$FFTWLIB -ldfftw $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate FFTW library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- fi
- LDFLAGS=${ac_save_ldflags}
- fi
- LDFLAGS=${ac_save_ldflags}
- fi # $USE_FFTW
- # Done checking FFTW
- # Enable BLAS option
- echo $ac_n "checking whether to use BLAS""... $ac_c" 1>&6
- echo "configure:10508: checking whether to use BLAS" >&5
- echo "$ac_t"""$with_blas"" 1>&6
- case "$with_blas" in
- "no") USE_BLAS= ;;
- "yes") USE_BLAS="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- BLASLIB=
- BLASINC=
- if test -n "$USE_BLAS"; then
- # With BLAS includes directory
- # BLAS doesn't have includes (FORTRAN library)
- # With BLAS library directory
- echo $ac_n "checking for location of BLAS includes""... $ac_c" 1>&6
- echo "configure:10529: checking for location of BLAS includes" >&5
- case "$with_blas_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-blas-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_blas_includes" 1>&6
- if test -n "$with_blas_includes" ; then
- for dir in $with_blas_includes; do
- if test -d "$dir"; then
- BLASINC="$BLASINC -I$dir"
- else
- { echo "configure: error: *** BLAS includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- echo $ac_n "checking for location of BLAS library""... $ac_c" 1>&6
- echo "configure:10549: checking for location of BLAS library" >&5
- case "$with_blas_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-blas-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_blas_libs" 1>&6
- if test -n "$with_blas_libs"; then
- for dir in $with_blas_libs; do
- if test -d "$dir"; then
- BLASLIB="$BLASLIB -L$dir"
- else
- { echo "configure: error: *** BLAS library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- # See if cblas.h exists (CBLAS,ATLAS,others)
- save_CPPFLAGS="$CPPFLAGS"
- CPPFLAGS="$BLASINC $CPPFLAGS"
- for ac_hdr in cblas.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:10575: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 10578 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:10583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- CPPFLAGS="$save_CPPFLAGS"
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$BLASLIB $LDFLAGS"
- echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
- echo "configure:10618: checking for dnrm2_ in -lblas" >&5
- ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lblas $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 10624 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dnrm2_();
- int main() {
- dnrm2_()
- ; return 0; }
- EOF
- if { (eval echo configure:10635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- BLASLIB="$BLASLIB -lblas "
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
- echo "configure:10654: checking for dnrm2_ in -lblas" >&5
- ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lblas $MATHLIB -lg2c $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 10660 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dnrm2_();
- int main() {
- dnrm2_()
- ; return 0; }
- EOF
- if { (eval echo configure:10671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- BLASLIB="$BLASLIB -lblas -lg2c"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate BLAS library." 1>&2; exit 1; }
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- blas_ok=no
- # Check for ATLAS
- save_LDFLAGS="$LDFLAGS"
- LDFLAGS="$BLASLIB $LDFLAGS"
- echo $ac_n "checking for ATL_xerbla in -latlas""... $ac_c" 1>&6
- echo "configure:10715: checking for ATL_xerbla in -latlas" >&5
- ac_lib_var=`echo atlas'_'ATL_xerbla | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-latlas $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 10721 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char ATL_xerbla();
- int main() {
- ATL_xerbla()
- ; return 0; }
- EOF
- if { (eval echo configure:10732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- echo $ac_n "checking for sgemm_ in -lf77blas""... $ac_c" 1>&6
- echo "configure:10747: checking for sgemm_ in -lf77blas" >&5
- ac_lib_var=`echo f77blas'_'sgemm_ | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lf77blas -latlas $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 10753 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char sgemm_();
- int main() {
- sgemm_()
- ; return 0; }
- EOF
- if { (eval echo configure:10764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- echo $ac_n "checking for cblas_dgemm in -lcblas""... $ac_c" 1>&6
- echo "configure:10779: checking for cblas_dgemm in -lcblas" >&5
- ac_lib_var=`echo cblas'_'cblas_dgemm | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lcblas -lf77blas -latlas $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 10785 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char cblas_dgemm();
- int main() {
- cblas_dgemm()
- ; return 0; }
- EOF
- if { (eval echo configure:10796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- blas_ok=yes; BLASLIB="-lcblas -lf77blas -latlas"
- else
- echo "$ac_t""no" 1>&6
- fi
- else
- echo "$ac_t""no" 1>&6
- fi
- else
- echo "$ac_t""no" 1>&6
- fi
- LDFLAGS="$save_LDFLAGS"
- # Do we have ATLAS?
- if test $blas_ok = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_LIBATLAS 1
- EOF
- fi
- # BLAS in Apple vecLib framework? (Mac OS-X)
- # not dependent on APP build
- #if test -n "$MACOSX_APP"; then
- if test $blas_ok = no; then
- vlib_flags="-framework vecLib"
- save_LIBS="$LIBS"
- LIBS="$vlib_flags $LIBS"
- echo $ac_n "checking for sgemm in $vlib_flags""... $ac_c" 1>&6
- echo "configure:10842: checking for sgemm in $vlib_flags" >&5
- cat > conftest.$ac_ext <<EOF
- #line 10844 "configure"
- #include "confdefs.h"
- int main() {
- sgemm
- ; return 0; }
- EOF
- if { (eval echo configure:10851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- blas_ok=yes; BLASLIB="$vlib_flags"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- BLASLIB=""
- fi
- rm -f conftest*
- echo "$ac_t""$blas_ok" 1>&6
- LIBS="$save_LIBS"
- fi
- #fi # $MACOSX_APP
- # BLAS in PhiPACK libraries? (requires generic BLAS, too)
- if test $blas_ok = no; then
- echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
- echo "configure:10869: checking for sgemm_ in -lblas" >&5
- ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lblas $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 10875 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char sgemm_();
- int main() {
- sgemm_()
- ; return 0; }
- EOF
- if { (eval echo configure:10886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- echo $ac_n "checking for dgemm_ in -ldgemm""... $ac_c" 1>&6
- echo "configure:10901: checking for dgemm_ in -ldgemm" >&5
- ac_lib_var=`echo dgemm'_'dgemm_ | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ldgemm -lblas $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 10907 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dgemm_();
- int main() {
- dgemm_()
- ; return 0; }
- EOF
- if { (eval echo configure:10918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- echo $ac_n "checking for sgemm_ in -lsgemm""... $ac_c" 1>&6
- echo "configure:10933: checking for sgemm_ in -lsgemm" >&5
- ac_lib_var=`echo sgemm'_'sgemm_ | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lsgemm -lblas $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 10939 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char sgemm_();
- int main() {
- sgemm_()
- ; return 0; }
- EOF
- if { (eval echo configure:10950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- blas_ok=yes; BLASLIB="-lsgemm -ldgemm -lblas"
- else
- echo "$ac_t""no" 1>&6
- fi
- else
- echo "$ac_t""no" 1>&6
- fi
-
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- # BLAS in Sun Performance library?
- if test $blas_ok = no; then
- if test "x$GCC" != xyes; then # only works with Sun CC
- echo $ac_n "checking for acosp in -lsunmath""... $ac_c" 1>&6
- echo "configure:10984: checking for acosp in -lsunmath" >&5
- ac_lib_var=`echo sunmath'_'acosp | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lsunmath $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 10990 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char acosp();
- int main() {
- acosp()
- ; return 0; }
- EOF
- if { (eval echo configure:11001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- echo $ac_n "checking for sgemm_ in -lsunperf""... $ac_c" 1>&6
- echo "configure:11016: checking for sgemm_ in -lsunperf" >&5
- ac_lib_var=`echo sunperf'_'sgemm_ | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lsunperf -lsunmath $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 11022 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char sgemm_();
- int main() {
- sgemm_()
- ; return 0; }
- EOF
- if { (eval echo configure:11033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- blas_ok=yes; BLASLIB="-xlic_lib=sunperf -lsunmath"
- else
- echo "$ac_t""no" 1>&6
- fi
-
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- fi
- # Generic BLAS library
- if test $blas_ok = no; then
- echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
- echo "configure:11063: checking for sgemm_ in -lblas" >&5
- ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lblas $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 11069 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char sgemm_();
- int main() {
- sgemm_()
- ; return 0; }
- EOF
- if { (eval echo configure:11080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- blas_ok=yes; BLASLIB="-lblas"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- if test $blas_ok = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_LIBBLAS 1
- EOF
- fi
- fi # $USE_BLAS
- # Done checking BLAS
- # Enable LAPACK option
- echo $ac_n "checking whether to use LAPACK""... $ac_c" 1>&6
- echo "configure:11119: checking whether to use LAPACK" >&5
- echo "$ac_t"""$with_lapack"" 1>&6
- case "$with_lapack" in
- "no") USE_LAPACK= ;;
- "yes") USE_LAPACK="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- LAPACKLIB=
- LAPACKINC=
- # LAPACK is useless without BLAS
- if test -n "$USE_BLAS"; then
- if test -n "$USE_LAPACK"; then
- # With LAPACK includes directory
- # LAPACK doesn't have includes (FORTRAN library)
- # With LAPACK library directory
- lapack_ok=no
- echo $ac_n "checking for location of LAPACK includes""... $ac_c" 1>&6
- echo "configure:11144: checking for location of LAPACK includes" >&5
- case "$with_lapack_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-lapack-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_lapack_includes" 1>&6
- if test -n "$with_lapack_includes" ; then
- for dir in $with_lapack_includes; do
- if test -d "$dir"; then
- LAPACKINC="$LAPACKINC -I$dir"
- else
- { echo "configure: error: *** LAPACK includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- echo $ac_n "checking for location of LAPACK library""... $ac_c" 1>&6
- echo "configure:11164: checking for location of LAPACK library" >&5
- case "$with_lapack_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-lapack-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_lapack_libs" 1>&6
- if test -n "$with_lapack_libs"; then
- for dir in $with_lapack_libs; do
- if test -d "$dir"; then
- LAPACKLIB="$LAPACKLIB -L$dir"
- else
- { echo "configure: error: *** LAPACK library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- # See if clapack.h exists (ATLAS)
- save_CPPFLAGS="$CPPFLAGS"
- CPPFLAGS="$LAPACKINC $CPPFLAGS"
- for ac_hdr in clapack.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:11190: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 11193 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:11198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- CPPFLAGS="$save_CPPFLAGS"
- # LAPACK linked to by default?
- if test lapack_ok=no; then
- save_LIBS="$LIBS"; LIBS="$LIBS $BLASLIB $MATHLIB $FLIBS"
- save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
- echo $ac_n "checking for dsegv_""... $ac_c" 1>&6
- echo "configure:11230: checking for dsegv_" >&5
- cat > conftest.$ac_ext <<EOF
- #line 11233 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char dsegv_(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dsegv_();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_dsegv_) || defined (__stub___dsegv_)
- choke me
- #else
- dsegv_();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:11256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_dsegv_=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_dsegv_=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'dsegv_`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- lapack_ok=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- LIBS="$save_LIBS"
- LDFLAGS="$save_LDFLAGS"
- fi
- # Generic LAPACK library?
- if test $lapack_ok = no; then
- save_libs="$LIBS"; LIBS="$BLASLIB $MATHLIB $LIBS"
- save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
- echo $ac_n "checking for desgv_ in -llapack""... $ac_c" 1>&6
- echo "configure:11283: checking for desgv_ in -llapack" >&5
- ac_lib_var=`echo lapack'_'desgv_ | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-llapack $FLIBS $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 11289 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char desgv_();
- int main() {
- desgv_()
- ; return 0; }
- EOF
- if { (eval echo configure:11300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- lapack_ok=yes; LAPACKLIB="-llapack"
- else
- echo "$ac_t""no" 1>&6
- fi
- LIBS="$save_LIBS"
- LDFLAGS="$save_LDFLAGS"
- fi
- if test $lapack_ok = no; then
-
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$LAPACKLIB $LDFLAGS"
- echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
- echo "configure:11332: checking for dgesv_ in -llapack" >&5
- ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-llapack $BLASLIB $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 11338 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dgesv_();
- int main() {
- dgesv_()
- ; return 0; }
- EOF
- if { (eval echo configure:11349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- LAPACKLIB="$LAPACKLIB -llapack "
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
- echo "configure:11368: checking for dgesv_ in -llapack" >&5
- ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-llapack $BLASLIB $MATHLIB -lg2c $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 11374 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dgesv_();
- int main() {
- dgesv_()
- ; return 0; }
- EOF
- if { (eval echo configure:11385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- LAPACKLIB="$LAPACKLIB -llapack -lg2c"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate LAPACK library." 1>&2; exit 1; }
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- fi
- cat >> confdefs.h <<\EOF
- #define HAVE_LIBLAPACK 1
- EOF
- fi # $USE_LAPACK
- fi # $USE_BLAS
- # Done checking LAPACK
- # Enable Cairo display driver option
- echo $ac_n "checking whether to use Cairo""... $ac_c" 1>&6
- echo "configure:11441: checking whether to use Cairo" >&5
- echo "$ac_t"""$with_cairo"" 1>&6
- case "$with_cairo" in
- "no") USE_CAIRO= ;;
- "yes") USE_CAIRO="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- CAIROINC=
- CAIROLIB=
- if test -n "$USE_CAIRO"; then
- cairo="cairo"
- pkgs="cairo-ft cairo-fc cairo-pdf cairo-ps cairo-svg fontconfig"
- if test -n "$USE_X11"; then
- pkgs="$pkgs cairo-xlib cairo-xlib-xrender"
- fi
- for pkg in $pkgs ; do
- if pkg-config --exists $pkg ; then
- cairo="$cairo $pkg"
- fi
- done
- # With Cairo includes directory
- #FIXME: somehow quote dirs with spaces in $cairo ?
- CAIROINC=`pkg-config --cflags $cairo`
- echo $ac_n "checking for location of cairo includes""... $ac_c" 1>&6
- echo "configure:11473: checking for location of cairo includes" >&5
- case "$with_cairo_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-cairo-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_cairo_includes" 1>&6
- if test -n "$with_cairo_includes" ; then
- for dir in $with_cairo_includes; do
- if test -d "$dir"; then
- CAIROINC="$CAIROINC -I$dir"
- else
- { echo "configure: error: *** cairo includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$CAIROINC $CPPFLAGS"
- for ac_hdr in cairo.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:11499: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 11502 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:11507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate Cairo includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With Cairo library directory
- CAIROLIB=`pkg-config --libs $cairo`
- echo $ac_n "checking for location of cairo library""... $ac_c" 1>&6
- echo "configure:11543: checking for location of cairo library" >&5
- case "$with_cairo_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-cairo-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_cairo_libs" 1>&6
- if test -n "$with_cairo_libs"; then
- for dir in $with_cairo_libs; do
- if test -d "$dir"; then
- CAIROLIB="$CAIROLIB -L$dir"
- else
- { echo "configure: error: *** cairo library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- echo $ac_n "checking for cairo linking flags""... $ac_c" 1>&6
- echo "configure:11563: checking for cairo linking flags" >&5
- case "$with_cairo_ldflags" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-cairo-ldflags." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_cairo_ldflags" 1>&6
- CAIROLIB="$CAIROLIB $with_cairo_ldflags"
- ac_save_libs="$LIBS"
- ac_save_ldflags="$LDFLAGS"
- LIBS=" $CAIROLIB $LIBS"
- LDFLAGS=" $LDFLAGS"
- echo $ac_n "checking for cairo_create""... $ac_c" 1>&6
- echo "configure:11579: checking for cairo_create" >&5
- cat > conftest.$ac_ext <<EOF
- #line 11582 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char cairo_create(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char cairo_create();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_cairo_create) || defined (__stub___cairo_create)
- choke me
- #else
- cairo_create();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:11605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_cairo_create=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_cairo_create=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'cairo_create`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- :
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate cairo_create." 1>&2; exit 1; }
- fi
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- ac_save_libs="$LIBS"
- ac_save_ldflags="$LDFLAGS"
- LIBS=" $CAIROLIB $LIBS"
- LDFLAGS=" $LDFLAGS"
- echo $ac_n "checking for cairo_xlib_surface_create_with_xrender_format""... $ac_c" 1>&6
- echo "configure:11639: checking for cairo_xlib_surface_create_with_xrender_format" >&5
- cat > conftest.$ac_ext <<EOF
- #line 11642 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char cairo_xlib_surface_create_with_xrender_format(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char cairo_xlib_surface_create_with_xrender_format();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_cairo_xlib_surface_create_with_xrender_format) || defined (__stub___cairo_xlib_surface_create_with_xrender_format)
- choke me
- #else
- cairo_xlib_surface_create_with_xrender_format();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:11665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_cairo_xlib_surface_create_with_xrender_format=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_cairo_xlib_surface_create_with_xrender_format=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'cairo_xlib_surface_create_with_xrender_format`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- CAIRO_HAS_XRENDER=1
- else
- echo "$ac_t""no" 1>&6
- CAIRO_HAS_XRENDER=
- fi
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- ac_save_libs="$LIBS"
- ac_save_ldflags="$LDFLAGS"
- LIBS=" $CAIROLIB $LIBS"
- LDFLAGS=" $LDFLAGS"
- echo $ac_n "checking for cairo_xlib_surface_get_xrender_format""... $ac_c" 1>&6
- echo "configure:11698: checking for cairo_xlib_surface_get_xrender_format" >&5
- cat > conftest.$ac_ext <<EOF
- #line 11701 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char cairo_xlib_surface_get_xrender_format(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char cairo_xlib_surface_get_xrender_format();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_cairo_xlib_surface_get_xrender_format) || defined (__stub___cairo_xlib_surface_get_xrender_format)
- choke me
- #else
- cairo_xlib_surface_get_xrender_format();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:11724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_cairo_xlib_surface_get_xrender_format=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_cairo_xlib_surface_get_xrender_format=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'cairo_xlib_surface_get_xrender_format`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- CAIRO_HAS_XRENDER_SURFACE=1
- else
- echo "$ac_t""no" 1>&6
- CAIRO_HAS_XRENDER_SURFACE=
- fi
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- CAIROLIB="$CAIROLIB $CAIROLDFLAGS"
- fi # $USE_CAIRO
- # Done checking Cairo
- # Enable FreeType option
- echo $ac_n "checking whether to use FreeType""... $ac_c" 1>&6
- echo "configure:11766: checking whether to use FreeType" >&5
- echo "$ac_t"""$with_freetype"" 1>&6
- case "$with_freetype" in
- "no") USE_FREETYPE= ;;
- "yes") USE_FREETYPE="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- FTINC=
- FTLIB=
- if test -n "$USE_FREETYPE"; then
- # With FreeType includes directory
- echo $ac_n "checking for location of FreeType includes""... $ac_c" 1>&6
- echo "configure:11785: checking for location of FreeType includes" >&5
- case "$with_freetype_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-freetype-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_freetype_includes" 1>&6
- if test -n "$with_freetype_includes" ; then
- for dir in $with_freetype_includes; do
- if test -d "$dir"; then
- FTINC="$FTINC -I$dir"
- else
- { echo "configure: error: *** FreeType includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$FTINC $CPPFLAGS"
- for ac_hdr in ft2build.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:11811: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 11814 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:11819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate FreeType includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With FreeType library directory
- echo $ac_n "checking for location of FreeType library""... $ac_c" 1>&6
- echo "configure:11853: checking for location of FreeType library" >&5
- case "$with_freetype_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-freetype-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_freetype_libs" 1>&6
- if test -n "$with_freetype_libs"; then
- for dir in $with_freetype_libs; do
- if test -d "$dir"; then
- FTLIB="$FTLIB -L$dir"
- else
- { echo "configure: error: *** FreeType library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$FTLIB $LDFLAGS"
- echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
- echo "configure:11878: checking for FT_Init_FreeType in -lfreetype" >&5
- ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lfreetype $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 11884 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char FT_Init_FreeType();
- int main() {
- FT_Init_FreeType()
- ; return 0; }
- EOF
- if { (eval echo configure:11895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- FTLIB="$FTLIB -lfreetype "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate FreeType library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- fi # $USE_FREETYPE
- # Done checking FreeType
- # Enable NLS option
- echo $ac_n "checking whether to use NLS""... $ac_c" 1>&6
- echo "configure:11936: checking whether to use NLS" >&5
- echo "$ac_t"""$with_nls"" 1>&6
- case "$with_nls" in
- "no") USE_NLS= ;;
- "yes") USE_NLS="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- INTLLIB=
- HAVE_NLS=
- if test -n "${USE_NLS}" ; then
- cat >> confdefs.h <<\EOF
- #define USE_NLS 1
- EOF
- echo $ac_n "checking for gettext""... $ac_c" 1>&6
- echo "configure:11956: checking for gettext" >&5
- cat > conftest.$ac_ext <<EOF
- #line 11959 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char gettext(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gettext();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_gettext) || defined (__stub___gettext)
- choke me
- #else
- gettext();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:11982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_gettext=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_gettext=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- INTLLIB=
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
- echo "configure:12000: checking for gettext in -lintl" >&5
- ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lintl $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 12006 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gettext();
- int main() {
- gettext()
- ; return 0; }
- EOF
- if { (eval echo configure:12017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- INTLLIB=-lintl
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate gettext() function." 1>&2; exit 1; }
- fi
- fi
- HAVE_NLS=1
- fi
- # Enable C++ option
-
- echo $ac_n "checking whether to use C++""... $ac_c" 1>&6
- echo "configure:12052: checking whether to use C++" >&5
- echo "$ac_t"""$with_cxx"" 1>&6
- case "$with_cxx" in
- "no") USE_CXX= ;;
- "yes") USE_CXX="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- if test -n "$USE_CXX"; then
- for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:12068: checking for $ac_word" >&5
- if test -n "$CXX"; then
- ac_cv_prog_CXX="$CXX" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_CXX="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- CXX="$ac_cv_prog_CXX"
- if test -n "$CXX"; then
- echo "$ac_t""$CXX" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- test -n "$CXX" && break
- done
- test -n "$CXX" || CXX="gcc"
- echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
- echo "configure:12097: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
- cat > conftest.$ac_ext << EOF
- #line 12108 "configure"
- #include "confdefs.h"
- int main(){return(0);}
- EOF
- if { (eval echo configure:12113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- ac_cv_prog_cxx_works=yes
- # If we can't run a trivial program, we are probably using a cross compiler.
- if (./conftest; exit) 2>/dev/null; then
- ac_cv_prog_cxx_cross=no
- else
- ac_cv_prog_cxx_cross=yes
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- ac_cv_prog_cxx_works=no
- fi
- rm -fr conftest*
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
- echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
- if test $ac_cv_prog_cxx_works = no; then
- { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
- fi
- echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
- echo "configure:12139: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
- echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
- cross_compiling=$ac_cv_prog_cxx_cross
- echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
- echo "configure:12144: checking whether we are using GNU C++" >&5
- cat > conftest.C <<EOF
- #ifdef __GNUC__
- yes;
- #endif
- EOF
- 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
- ac_cv_prog_gxx=yes
- else
- ac_cv_prog_gxx=no
- fi
- echo "$ac_t""$ac_cv_prog_gxx" 1>&6
- if test $ac_cv_prog_gxx = yes; then
- GXX=yes
- else
- GXX=
- fi
- ac_test_CXXFLAGS="${CXXFLAGS+set}"
- ac_save_CXXFLAGS="$CXXFLAGS"
- CXXFLAGS=
- echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
- echo "configure:12169: checking whether ${CXX-g++} accepts -g" >&5
- echo 'void f(){}' > conftest.cc
- if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
- ac_cv_prog_cxx_g=yes
- else
- ac_cv_prog_cxx_g=no
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
- if test "$ac_test_CXXFLAGS" = set; then
- CXXFLAGS="$ac_save_CXXFLAGS"
- elif test $ac_cv_prog_cxx_g = yes; then
- if test "$GXX" = yes; then
- CXXFLAGS="-g -O2"
- else
- CXXFLAGS="-g"
- fi
- else
- if test "$GXX" = yes; then
- CXXFLAGS="-O2"
- else
- CXXFLAGS=
- fi
- fi
- else
- CXX=
- CXXFLAGS=
-
-
- fi
- # Done checking C++
- # Enable openDWG option
- echo $ac_n "checking whether to use openDWG""... $ac_c" 1>&6
- echo "configure:12210: checking whether to use openDWG" >&5
- echo "$ac_t"""$with_opendwg"" 1>&6
- case "$with_opendwg" in
- "no") USE_OPENDWG= ;;
- "yes") USE_OPENDWG="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- OPENDWGINCPATH=
- OPENDWGLIBPATH=
- OPENDWGLIB=
- if test -n "${USE_OPENDWG}"; then
- # With OPENDWG includes directory
- echo $ac_n "checking for location of openDGW includes""... $ac_c" 1>&6
- echo "configure:12230: checking for location of openDGW includes" >&5
- case "$with_opendwg_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-opendwg-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_opendwg_includes" 1>&6
- if test -n "$with_opendwg_includes" ; then
- for dir in $with_opendwg_includes; do
- if test -d "$dir"; then
- OPENDWGINCPATH="$OPENDWGINCPATH -I$dir"
- else
- { echo "configure: error: *** openDGW includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$OPENDWGINCPATH $CPPFLAGS"
- for ac_hdr in ad2.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:12256: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 12259 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:12264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate openDWG includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With OPENDWG library directory
- echo $ac_n "checking for location of openDWG library""... $ac_c" 1>&6
- echo "configure:12298: checking for location of openDWG library" >&5
- case "$with_opendwg_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-opendwg-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_opendwg_libs" 1>&6
- if test -n "$with_opendwg_libs"; then
- for dir in $with_opendwg_libs; do
- if test -d "$dir"; then
- OPENDWGLIBPATH="$OPENDWGLIBPATH -L$dir"
- else
- { echo "configure: error: *** openDWG library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- #search for ad2.a, ad3.a ... in openDWG toolkit directory:
- #FIX ME how to program this test??
- #LOC_CHECK_LIBS(ad?.a,adSeekLayer,openDWG,$OPENDWGLIBPATH,OPENDWGLIB,,)
- #
- #for now hack (but working):
- TRUEOPENDWGLIBPATH=`echo "$OPENDWGLIBPATH" | cut -b3-`
- adlib=`ls -1 "$TRUEOPENDWGLIBPATH"/ad?.a | tail -1`
- OPENDWGLIB="$adlib"
- fi # $USE_OPENDWG
- # Done checking OPENDWG
- # Enable pthread option
- echo $ac_n "checking whether to use POSIX threads""... $ac_c" 1>&6
- echo "configure:12339: checking whether to use POSIX threads" >&5
- echo "$ac_t"""$with_pthread"" 1>&6
- case "$with_pthread" in
- "no") USE_PTHREAD= ;;
- "yes") USE_PTHREAD="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- PTHREADINCPATH=
- PTHREADLIBPATH=
- PTHREADLIB=
- if test -n "$USE_PTHREAD"; then
- # With pthread includes directory
- echo $ac_n "checking for location of POSIX threads includes""... $ac_c" 1>&6
- echo "configure:12359: checking for location of POSIX threads includes" >&5
- case "$with_pthread_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-pthread-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_pthread_includes" 1>&6
- if test -n "$with_pthread_includes" ; then
- for dir in $with_pthread_includes; do
- if test -d "$dir"; then
- PTHREADINCPATH="$PTHREADINCPATH -I$dir"
- else
- { echo "configure: error: *** POSIX threads includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$PTHREADINCPATH $CPPFLAGS"
- for ac_hdr in pthread.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:12385: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 12388 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:12393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate POSIX threads includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With pthread library directory
- echo $ac_n "checking for location of POSIX threads library""... $ac_c" 1>&6
- echo "configure:12427: checking for location of POSIX threads library" >&5
- case "$with_pthread_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-pthread-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_pthread_libs" 1>&6
- if test -n "$with_pthread_libs"; then
- for dir in $with_pthread_libs; do
- if test -d "$dir"; then
- PTHREADLIBPATH="$PTHREADLIBPATH -L$dir"
- else
- { echo "configure: error: *** POSIX threads library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_libs="$LIBS"
- ac_save_ldflags="$LDFLAGS"
- LIBS=" $LIBS"
- LDFLAGS=" $LDFLAGS"
- echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
- echo "configure:12452: checking for pthread_create" >&5
- cat > conftest.$ac_ext <<EOF
- #line 12455 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char pthread_create(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char pthread_create();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
- choke me
- #else
- pthread_create();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:12478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_pthread_create=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_pthread_create=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- PTHREADLIB="$PTHREADLIB "
- else
- echo "$ac_t""no" 1>&6
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$PTHREADLIBPATH $LDFLAGS"
- echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
- echo "configure:12505: checking for pthread_create in -lpthread" >&5
- ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lpthread $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 12511 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char pthread_create();
- int main() {
- pthread_create()
- ; return 0; }
- EOF
- if { (eval echo configure:12522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- PTHREADLIB="$PTHREADLIB -lpthread "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate POSIX threads library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- fi
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- fi # $USE_PTHREAD
- # Done checking pthread
- # Enable OpenMP option
- echo $ac_n "checking whether to use OpenMP""... $ac_c" 1>&6
- echo "configure:12572: checking whether to use OpenMP" >&5
- echo "$ac_t"""$with_openmp"" 1>&6
- case "$with_openmp" in
- "no") USE_OPENMP= ;;
- "yes") USE_OPENMP="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- OMPINCPATH=
- OMPLIBPATH=
- OMPLIB=
- OMPCFLAGS=
- if test -n "$USE_OPENMP"; then
- # With OpenMP includes directory
- echo $ac_n "checking for location of OpenMP includes""... $ac_c" 1>&6
- echo "configure:12593: checking for location of OpenMP includes" >&5
- case "$with_openmp_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-openmp-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_openmp_includes" 1>&6
- if test -n "$with_openmp_includes" ; then
- for dir in $with_openmp_includes; do
- if test -d "$dir"; then
- OMPINCPATH="$OMPINCPATH -I$dir"
- else
- { echo "configure: error: *** OpenMP includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$OMPINCPATH $CPPFLAGS"
- for ac_hdr in omp.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:12619: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 12622 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:12627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate OpenMP includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With OpenMP library directory
- # GCC et al.: -lgomp
- # Solaris cc: -lmtsk
- # AIX xlc: -lxlsmp
- # SGI IRIX 6.5 MIPSpro C/C++: -lmp
- echo $ac_n "checking for location of OpenMP library""... $ac_c" 1>&6
- echo "configure:12665: checking for location of OpenMP library" >&5
- case "$with_openmp_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-openmp-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_openmp_libs" 1>&6
- if test -n "$with_openmp_libs"; then
- for dir in $with_openmp_libs; do
- if test -d "$dir"; then
- OMPLIBPATH="$OMPLIBPATH -L$dir"
- else
- { echo "configure: error: *** OpenMP library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_libs="$LIBS"
- ac_save_ldflags="$LDFLAGS"
- LIBS=" $LIBS"
- LDFLAGS=" $LDFLAGS"
- echo $ac_n "checking for GOMP_parallel_start""... $ac_c" 1>&6
- echo "configure:12690: checking for GOMP_parallel_start" >&5
- cat > conftest.$ac_ext <<EOF
- #line 12693 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char GOMP_parallel_start(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char GOMP_parallel_start();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_GOMP_parallel_start) || defined (__stub___GOMP_parallel_start)
- choke me
- #else
- GOMP_parallel_start();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:12716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_GOMP_parallel_start=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_GOMP_parallel_start=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'GOMP_parallel_start`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- OMPLIB="$OMPLIB "
- else
- echo "$ac_t""no" 1>&6
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$OMPLIBPATH $LDFLAGS"
- echo $ac_n "checking for GOMP_parallel_start in -lgomp""... $ac_c" 1>&6
- echo "configure:12743: checking for GOMP_parallel_start in -lgomp" >&5
- ac_lib_var=`echo gomp'_'GOMP_parallel_start | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lgomp $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 12749 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char GOMP_parallel_start();
- int main() {
- GOMP_parallel_start()
- ; return 0; }
- EOF
- if { (eval echo configure:12760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- OMPLIB="$OMPLIB -lgomp "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate OpenMP library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- fi
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- # compiler dependent
- #if test ${CC} = "gcc" ; then
- if test x$GCC = xyes ; then
- # GNU C compiler (>= 4.2.1)
- OMPCFLAGS=-fopenmp
- elif test ${CC} = "icc" ; then
- # Intel compiler
- OMPCFLAGS=-openmp
- elif test ${CC} = "opencc" ; then
- # AMD's x86 Open64 compiler
- OMPCFLAGS=-mp
- elif test ${CC} = "pgcc" ; then
- # Portland Group's compiler
- OMPCFLAGS=-mp
- # ... anybody else?
- fi
- # try to build a test program with "$CC $OMPCLFAGS" to confirm it works
- #...how?
- #echo "int main() {return 0;}" > test.c
- #$CC $OMPCLFAGS test.c -o test
- fi # $USE_OPENMP
- # Done checking OpenMP
- # Enable OpenCL option
- echo $ac_n "checking whether to use OpenCL""... $ac_c" 1>&6
- echo "configure:12833: checking whether to use OpenCL" >&5
- echo "$ac_t"""$with_opencl"" 1>&6
- case "$with_opencl" in
- "no") USE_OPENCL= ;;
- "yes") USE_OPENCL="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- OCLINCPATH=
- OCLLIBPATH=
- OCLLIB=
- if test -n "$USE_OPENCL"; then
- # With OpenCL includes directory
- echo $ac_n "checking for location of OpenCL includes""... $ac_c" 1>&6
- echo "configure:12853: checking for location of OpenCL includes" >&5
- case "$with_opencl_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-opencl-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_opencl_includes" 1>&6
- if test -n "$with_opencl_includes" ; then
- for dir in $with_opencl_includes; do
- if test -d "$dir"; then
- OCLINCPATH="$OCLINCPATH -I$dir"
- else
- { echo "configure: error: *** OpenCL includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- if test -n "$MACOSX_APP" ; then
-
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$OCLINCPATH $CPPFLAGS"
- for ac_hdr in OpenCL/opencl.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:12880: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 12883 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:12888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate OpenCL includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With OpenCL library directory
- ### FIXME: ###
- #LOC_CHECK_FRAMEWORK_PATH(opencl,OpenCL,OPENCLPATH)
- # last term in following would become ',$OPENCLPATH)' if above is uncommented
-
- ac_save_libs="$LIBS"
- ac_save_ldflags="$LDFLAGS"
- LIBS="-framework OpenCL $LIBS"
- LDFLAGS=" $LDFLAGS"
- echo $ac_n "checking for clGetPlatformInfo""... $ac_c" 1>&6
- echo "configure:12928: checking for clGetPlatformInfo" >&5
- cat > conftest.$ac_ext <<EOF
- #line 12931 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char clGetPlatformInfo(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char clGetPlatformInfo();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_clGetPlatformInfo) || defined (__stub___clGetPlatformInfo)
- choke me
- #else
- clGetPlatformInfo();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:12954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_clGetPlatformInfo=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_clGetPlatformInfo=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'clGetPlatformInfo`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- OCLLIB="$OCLLIB -framework OpenCL"
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate OpenCL library." 1>&2; exit 1; }
- fi
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- else
-
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$OCLINCPATH $CPPFLAGS"
- for ac_hdr in CL/cl.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:12993: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 12996 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:13001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate OpenCL includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With OpenCL library directory
-
- echo $ac_n "checking for location of OpenCL library""... $ac_c" 1>&6
- echo "configure:13034: checking for location of OpenCL library" >&5
- case "$with_opencl_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-opencl-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_opencl_libs" 1>&6
- if test -n "$with_opencl_libs"; then
- for dir in $with_opencl_libs; do
- if test -d "$dir"; then
- OCLLIBPATH="$OCLLIBPATH -L$dir"
- else
- { echo "configure: error: *** OpenCL library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
-
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$OCLLIBPATH $LDFLAGS"
- echo $ac_n "checking for clGetPlatformInfo in -lOpenCL""... $ac_c" 1>&6
- echo "configure:13058: checking for clGetPlatformInfo in -lOpenCL" >&5
- ac_lib_var=`echo OpenCL'_'clGetPlatformInfo | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lOpenCL $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 13064 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char clGetPlatformInfo();
- int main() {
- clGetPlatformInfo()
- ; return 0; }
- EOF
- if { (eval echo configure:13075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- OCLLIB="$OCLLIB -lOpenCL "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate OpenCL library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- # expanded symbol check: yes? no?
- #LOC_CHECK_FUNC(clGetPlatformInfo,OpenCL functions,OCLLIB,,,,,[
- #LOC_CHECK_LIBS(OpenCL,clGetPlatformInfo,OpenCL,$OCLLIBPATH,OCLLIB,,,)
- #])
- fi
- fi # $USE_OPENCL
- # Done checking OpenCL
- # Enable LFS (from cdr-tools, tar, and autoconf 2.68)
- # Check whether --enable-largefile or --disable-largefile was given.
- if test "${enable_largefile+set}" = set; then
- enableval="$enable_largefile"
- :
- fi
- LFS_CFLAGS=
- if test "$enable_largefile" != no; then
- ac_save_cflags=$CFLAGS
- if test "`which getconf 2>&5`" ; then
- LFS_CFLAGS=`getconf LFS_CFLAGS 2>&5`
- CFLAGS="$LFS_CFLAGS $ac_save_cflags"
- fi
- echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
- echo "configure:13135: checking for special C compiler options needed for large files" >&5
- ac_cv_sys_largefile_CC=no
- largefile_cc_opt=""
- if test "$GCC" != yes; then
- # IRIX 6.2 and later do not support large files by default,
- # so use the C compiler's -n32 option if that helps.
- cat > conftest.$ac_ext <<EOF
- #line 13143 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply "#define LARGE_OFF_T 9223372036854775807",
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
- # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
-
- int main() {
- ; return 0; }
- EOF
- if { (eval echo configure:13159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- :
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_save_CC="${CC-cc}"
- CC="$CC -n32"
- cat > conftest.$ac_ext <<EOF
- #line 13168 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply "#define LARGE_OFF_T 9223372036854775807",
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
- # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
-
- int main() {
- ; return 0; }
- EOF
- if { (eval echo configure:13184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_sys_largefile_CC=' -n32'
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- CC="$ac_save_CC"
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6
- if test "$ac_cv_sys_largefile_CC" != no; then
- CC="$CC$ac_cv_sys_largefile_CC"
- largefile_cc_opt="$ac_cv_sys_largefile_CC"
- if test "$LFS_CFLAGS" ; then
- LFS_CFLAGS="$LFS_CFLAGS $ac_cv_sys_largefile_CC"
- else
- LFS_CFLAGS="$ac_cv_sys_largefile_CC"
- CFLAGS="$LFS_CFLAGS $ac_save_cflags"
- fi
- fi
- echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
- echo "configure:13211: checking for _FILE_OFFSET_BITS value needed for large files" >&5
- ac_cv_sys_file_offset_bits=no
- cat > conftest.$ac_ext <<EOF
- #line 13215 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply "#define LARGE_OFF_T 9223372036854775807",
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
- # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
-
- int main() {
- ; return 0; }
- EOF
- if { (eval echo configure:13231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- :
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- cat > conftest.$ac_ext <<EOF
- #line 13238 "configure"
- #include "confdefs.h"
- #define _FILE_OFFSET_BITS 64
- #include <sys/types.h>
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply "#define LARGE_OFF_T 9223372036854775807",
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
- # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
-
-
- int main() {
- ; return 0; }
- EOF
- if { (eval echo configure:13256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_sys_file_offset_bits=64
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
- if test "$ac_cv_sys_file_offset_bits" != no; then
- cat >> confdefs.h <<EOF
- #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
- EOF
- if test "$LFS_CFLAGS" ; then
- LFS_CFLAGS="$LFS_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
- else
- LFS_CFLAGS="-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
- fi
- fi
- echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
- echo "configure:13282: checking for _LARGE_FILES value needed for large files" >&5
- ac_cv_sys_large_files=no
- cat > conftest.$ac_ext <<EOF
- #line 13286 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply "#define LARGE_OFF_T 9223372036854775807",
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
- # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
-
- int main() {
- ; return 0; }
- EOF
- if { (eval echo configure:13302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- :
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- cat > conftest.$ac_ext <<EOF
- #line 13309 "configure"
- #include "confdefs.h"
- #define _LARGE_FILES 1
- #include <sys/types.h>
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply "#define LARGE_OFF_T 9223372036854775807",
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
- # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
-
-
- int main() {
- ; return 0; }
- EOF
- if { (eval echo configure:13327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_sys_large_files=1
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_sys_large_files" 1>&6
- if test "$ac_cv_sys_large_files" != no; then
- cat >> confdefs.h <<EOF
- #define _LARGE_FILES $ac_cv_sys_large_files
- EOF
- if test "$LFS_CFLAGS" ; then
- LFS_CFLAGS="$LFS_CFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files"
- else
- LFS_CFLAGS="-D_LARGE_FILES=$ac_cv_sys_large_files"
- fi
- fi
- echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
- echo "configure:13353: checking for _LARGEFILE_SOURCE value needed for large files" >&5
- ac_cv_sys_largefile_source=no
- cat > conftest.$ac_ext <<EOF
- #line 13357 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- int main() {
- return !fseeko;
- ; return 0; }
- EOF
- if { (eval echo configure:13364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- :
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- cat > conftest.$ac_ext <<EOF
- #line 13371 "configure"
- #include "confdefs.h"
- #define _LARGEFILE_SOURCE 1
- #include <stdio.h>
-
- int main() {
- return !fseeko;
- ; return 0; }
- EOF
- if { (eval echo configure:13380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_sys_largefile_source=1
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
- if test "$ac_cv_sys_largefile_source" != no; then
- cat >> confdefs.h <<EOF
- #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
- EOF
- if test "$LFS_CFLAGS" ; then
- LFS_CFLAGS="$LFS_CFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
- else
- LFS_CFLAGS="-D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
- fi
- fi
- CFLAGS=$ac_save_cflags
- fi
-
- ac_save_cflags=${CFLAGS}
- CFLAGS="$LFS_CFLAGS ${ac_save_cflags}"
- echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
- echo "configure:13412: checking for _LARGEFILE_SOURCE value needed for large files" >&5
- ac_cv_sys_largefile_source=no
- cat > conftest.$ac_ext <<EOF
- #line 13416 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- int main() {
- return !fseeko;
- ; return 0; }
- EOF
- if { (eval echo configure:13423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- :
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- cat > conftest.$ac_ext <<EOF
- #line 13430 "configure"
- #include "confdefs.h"
- #define _LARGEFILE_SOURCE 1
- #include <stdio.h>
-
- int main() {
- return !fseeko;
- ; return 0; }
- EOF
- if { (eval echo configure:13439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_sys_largefile_source=1
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
- if test "$ac_cv_sys_largefile_source" != no; then
- cat >> confdefs.h <<EOF
- #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
- EOF
- if test "$LFS_CFLAGS" ; then
- LFS_CFLAGS="$LFS_CFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
- else
- LFS_CFLAGS="-D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
- fi
- fi
- # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
- # in glibc 2.1.3, but that breaks too many other things.
- # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
- echo $ac_n "checking for fseeko""... $ac_c" 1>&6
- echo "configure:13469: checking for fseeko" >&5
- ac_cv_func_fseeko=no
- cat > conftest.$ac_ext <<EOF
- #line 13473 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- int main() {
- return fseeko && fseeko (stdin, 0, 0);
- ; return 0; }
- EOF
- if { (eval echo configure:13480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- ac_cv_func_fseeko=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_func_fseeko" 1>&6
- if test $ac_cv_func_fseeko != no; then
- cat >> confdefs.h <<\EOF
- #define HAVE_FSEEKO 1
- EOF
- fi
- echo $ac_n "checking if system supports Large Files at all""... $ac_c" 1>&6
- echo "configure:13497: checking if system supports Large Files at all" >&5
- cat > conftest.$ac_ext <<EOF
- #line 13500 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- #include <sys/types.h>
- int main() {
- /*
- * Check that off_t can represent 2**63 - 1 correctly.
- * We can't simply "#define LARGE_OFF_T 9223372036854775807",
- * since some C++ compilers masquerading as C compilers
- * incorrectly reject 9223372036854775807.
- *
- * For MinGW, off64_t should be used and __MSVCRT_VERSION__ >= 0x0601
- * (msvcrt.dll version 6.10 or higher) is needed for _fstat64 and _stat64.
- */
- #ifdef __MINGW32__
- # define LARGE_OFF_T (((off64_t) 1 << 62) - 1 + ((off64_t) 1 << 62))
- #else
- # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- #endif
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
- #ifdef __MINGW32__
- return !fseeko64;
- return !ftello64;
- #else
- return !fseeko;
- return !ftello;
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:13532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_largefiles=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_largefiles=no
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_largefiles" 1>&6
- if test $ac_cv_largefiles = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_LARGEFILES 1
- EOF
- USE_LARGEFILES=1
- else
- USE_LARGEFILES=
- LFS_CFLAGS=
- fi
-
-
-
- CFLAGS=${ac_save_cflags}
- # Done large file support
- USE_TERMIO=
- STRIPFLAG=
- GRASS_HOME="${DSTDIR}"
- trap '' 1 2 15
- trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
- test "x$prefix" = xNONE && prefix=$ac_default_prefix
- # Let make expand exec_prefix.
- test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
- # Any assignment to VPATH causes Sun make to only execute
- # the first set of double-colon rules, so remove it if not needed.
- # If there is a colon in the path, we need to keep it.
- if test "x$srcdir" = x.; then
- ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
- fi
- trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
- DEFS=-DHAVE_CONFIG_H
- # Without the "./", some shells look in PATH for config.status.
- : ${CONFIG_STATUS=./config.status}
- echo creating $CONFIG_STATUS
- rm -f $CONFIG_STATUS
- cat > $CONFIG_STATUS <<EOF
- #! /bin/sh
- # Generated automatically by configure.
- # Run this file to recreate the current configuration.
- # This directory was configured as follows,
- # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
- #
- # $0 $ac_configure_args
- #
- # Compiler output produced by configure, useful for debugging
- # configure, is in ./config.log if it exists.
- ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
- for ac_option
- do
- case "\$ac_option" in
- -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
- echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
- exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
- -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
- echo "$CONFIG_STATUS generated by autoconf version 2.13"
- exit 0 ;;
- -help | --help | --hel | --he | --h)
- echo "\$ac_cs_usage"; exit 0 ;;
- *) echo "\$ac_cs_usage"; exit 1 ;;
- esac
- done
- ac_given_srcdir=$srcdir
- ac_given_INSTALL="$INSTALL"
- 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
- EOF
- cat >> $CONFIG_STATUS <<EOF
- # Protect against being on the right side of a sed subst in config.status.
- sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
- s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
- $ac_vpsub
- $extrasub
- s%@SHELL@%$SHELL%g
- s%@CFLAGS@%$CFLAGS%g
- s%@CPPFLAGS@%$CPPFLAGS%g
- s%@CXXFLAGS@%$CXXFLAGS%g
- s%@FFLAGS@%$FFLAGS%g
- s%@DEFS@%$DEFS%g
- s%@LDFLAGS@%$LDFLAGS%g
- s%@LIBS@%$LIBS%g
- s%@exec_prefix@%$exec_prefix%g
- s%@prefix@%$prefix%g
- s%@program_transform_name@%$program_transform_name%g
- s%@bindir@%$bindir%g
- s%@sbindir@%$sbindir%g
- s%@libexecdir@%$libexecdir%g
- s%@datadir@%$datadir%g
- s%@sysconfdir@%$sysconfdir%g
- s%@sharedstatedir@%$sharedstatedir%g
- s%@localstatedir@%$localstatedir%g
- s%@libdir@%$libdir%g
- s%@includedir@%$includedir%g
- s%@oldincludedir@%$oldincludedir%g
- s%@infodir@%$infodir%g
- s%@mandir@%$mandir%g
- s%@host@%$host%g
- s%@host_alias@%$host_alias%g
- s%@host_cpu@%$host_cpu%g
- s%@host_vendor@%$host_vendor%g
- s%@host_os@%$host_os%g
- s%@CC@%$CC%g
- s%@EXEEXT@%$EXEEXT%g
- s%@MINGW32@%$MINGW32%g
- s%@BINDIR@%$BINDIR%g
- s%@pwd@%$pwd%g
- s%@SRCDIR@%$SRCDIR%g
- s%@DSTDIR@%$DSTDIR%g
- s%@ARCH@%$ARCH%g
- s%@GISBASE@%$GISBASE%g
- s%@GRASS_BIN@%$GRASS_BIN%g
- s%@SVN_VERSION@%$SVN_VERSION%g
- s%@GRASS_VERSION_FILE@%$GRASS_VERSION_FILE%g
- s%@GRASS_VERSION_MAJOR@%$GRASS_VERSION_MAJOR%g
- s%@GRASS_VERSION_MINOR@%$GRASS_VERSION_MINOR%g
- s%@GRASS_VERSION_RELEASE@%$GRASS_VERSION_RELEASE%g
- s%@GRASS_VERSION_NUMBER@%$GRASS_VERSION_NUMBER%g
- s%@GRASS_VERSION_DATE@%$GRASS_VERSION_DATE%g
- s%@GRASS_VERSION_SVN@%$GRASS_VERSION_SVN%g
- s%@NAME_VER@%$NAME_VER%g
- s%@LIB_VER@%$LIB_VER%g
- s%@MACOSX_APP@%$MACOSX_APP%g
- s%@MACOSX_ARCHS@%$MACOSX_ARCHS%g
- s%@MACOSX_SDK@%$MACOSX_SDK%g
- s%@INSTDIR@%$INSTDIR%g
- s%@GRASS_LIBRARY_TYPE@%$GRASS_LIBRARY_TYPE%g
- s%@LD_SEARCH_FLAGS@%$LD_SEARCH_FLAGS%g
- s%@LD_LIBRARY_PATH_VAR@%$LD_LIBRARY_PATH_VAR%g
- s%@SHLIB_LD@%$SHLIB_LD%g
- s%@SHLIB_LD_FLAGS@%$SHLIB_LD_FLAGS%g
- s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
- s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
- s%@STLIB_LD@%$STLIB_LD%g
- s%@STLIB_SUFFIX@%$STLIB_SUFFIX%g
- s%@INCLUDE_DIRS@%$INCLUDE_DIRS%g
- s%@LIBRARY_DIRS@%$LIBRARY_DIRS%g
- s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
- s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
- s%@INSTALL_DATA@%$INSTALL_DATA%g
- s%@LEX@%$LEX%g
- s%@LEXLIB@%$LEXLIB%g
- s%@LEXPATH@%$LEXPATH%g
- s%@YACC@%$YACC%g
- s%@YACCPATH@%$YACCPATH%g
- s%@RANLIB@%$RANLIB%g
- s%@AR@%$AR%g
- s%@ENV@%$ENV%g
- s%@PERL@%$PERL%g
- s%@CPP@%$CPP%g
- s%@CROSS_COMPILING@%$CROSS_COMPILING%g
- s%@X_CFLAGS@%$X_CFLAGS%g
- s%@X_LIBS@%$X_LIBS%g
- s%@X_PRE_LIBS@%$X_PRE_LIBS%g
- s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
- s%@XLIB@%$XLIB%g
- s%@XTLIB@%$XTLIB%g
- s%@USE_X11@%$USE_X11%g
- s%@DBMIEXTRALIB@%$DBMIEXTRALIB%g
- s%@HAVE_ASPRINTF@%$HAVE_ASPRINTF%g
- s%@MATHLIB@%$MATHLIB%g
- s%@DLLIB@%$DLLIB%g
- s%@ICONVLIB@%$ICONVLIB%g
- s%@SOCKLIB@%$SOCKLIB%g
- s%@HAVE_SOCKET@%$HAVE_SOCKET%g
- s%@ZLIBINCPATH@%$ZLIBINCPATH%g
- s%@ZLIBLIBPATH@%$ZLIBLIBPATH%g
- s%@ZLIB@%$ZLIB%g
- s%@BZLIBINCPATH@%$BZLIBINCPATH%g
- s%@BZLIBLIBPATH@%$BZLIBLIBPATH%g
- s%@BZLIB@%$BZLIB%g
- s%@PROJINC@%$PROJINC%g
- s%@PROJLIB@%$PROJLIB%g
- s%@PROJSHARE@%$PROJSHARE%g
- s%@NAD2BIN@%$NAD2BIN%g
- s%@REGEXINCPATH@%$REGEXINCPATH%g
- s%@REGEXLIBPATH@%$REGEXLIBPATH%g
- s%@REGEXLIB@%$REGEXLIB%g
- s%@USE_REGEX@%$USE_REGEX%g
- s%@READLINEINCPATH@%$READLINEINCPATH%g
- s%@READLINELIBPATH@%$READLINELIBPATH%g
- s%@READLINELIB@%$READLINELIB%g
- s%@HISTORYLIB@%$HISTORYLIB%g
- s%@GDAL_CONFIG@%$GDAL_CONFIG%g
- s%@GDAL_LIBS@%$GDAL_LIBS%g
- s%@GDAL_CFLAGS@%$GDAL_CFLAGS%g
- s%@USE_GDAL@%$USE_GDAL%g
- s%@USE_OGR@%$USE_OGR%g
- s%@LIBLAS_CONFIG@%$LIBLAS_CONFIG%g
- s%@LIBLAS_LIBS@%$LIBLAS_LIBS%g
- s%@LIBLAS_CFLAGS@%$LIBLAS_CFLAGS%g
- s%@LIBLAS_INC@%$LIBLAS_INC%g
- s%@USE_LIBLAS@%$USE_LIBLAS%g
- s%@PDAL_CONFIG@%$PDAL_CONFIG%g
- s%@PDAL_LIBS@%$PDAL_LIBS%g
- s%@PDAL_CPPFLAGS@%$PDAL_CPPFLAGS%g
- s%@PDAL_INC@%$PDAL_INC%g
- s%@USE_PDAL@%$USE_PDAL%g
- s%@NETCDF_CONFIG@%$NETCDF_CONFIG%g
- s%@NETCDF_LIBS@%$NETCDF_LIBS%g
- s%@NETCDF_CFLAGS@%$NETCDF_CFLAGS%g
- s%@USE_NETCDF@%$USE_NETCDF%g
- s%@GEOS_CONFIG@%$GEOS_CONFIG%g
- s%@GEOS_LIBS@%$GEOS_LIBS%g
- s%@GEOS_CFLAGS@%$GEOS_CFLAGS%g
- s%@USE_GEOS@%$USE_GEOS%g
- s%@TIFF_INCLUDE_DIRS@%$TIFF_INCLUDE_DIRS%g
- s%@TIFF_LIBRARY_DIRS@%$TIFF_LIBRARY_DIRS%g
- s%@TIFFLIB@%$TIFFLIB%g
- s%@PNGINC@%$PNGINC%g
- s%@PNGLIB@%$PNGLIB%g
- s%@USE_PNG@%$USE_PNG%g
- s%@USE_POSTGRES@%$USE_POSTGRES%g
- s%@PQINCPATH@%$PQINCPATH%g
- s%@PQLIBPATH@%$PQLIBPATH%g
- s%@PQLIB@%$PQLIB%g
- s%@MYSQLD_CONFIG@%$MYSQLD_CONFIG%g
- s%@USE_MYSQL@%$USE_MYSQL%g
- s%@MYSQLINCPATH@%$MYSQLINCPATH%g
- s%@MYSQLLIBPATH@%$MYSQLLIBPATH%g
- s%@MYSQLLIB@%$MYSQLLIB%g
- s%@MYSQLDLIB@%$MYSQLDLIB%g
- s%@USE_SQLITE@%$USE_SQLITE%g
- s%@SQLITEINCPATH@%$SQLITEINCPATH%g
- s%@SQLITELIBPATH@%$SQLITELIBPATH%g
- s%@SQLITELIB@%$SQLITELIB%g
- s%@USE_OPENGL@%$USE_OPENGL%g
- s%@OPENGL_X11@%$OPENGL_X11%g
- s%@OPENGL_AQUA@%$OPENGL_AQUA%g
- s%@OPENGL_WINDOWS@%$OPENGL_WINDOWS%g
- s%@OPENGLINC@%$OPENGLINC%g
- s%@OPENGLLIB@%$OPENGLLIB%g
- s%@OPENGLULIB@%$OPENGLULIB%g
- s%@ODBCINC@%$ODBCINC%g
- s%@ODBCLIB@%$ODBCLIB%g
- s%@FFTWINC@%$FFTWINC%g
- s%@FFTWLIB@%$FFTWLIB%g
- s%@BLASLIB@%$BLASLIB%g
- s%@BLASINC@%$BLASINC%g
- s%@LAPACKLIB@%$LAPACKLIB%g
- s%@LAPACKINC@%$LAPACKINC%g
- s%@CAIRO_HAS_XRENDER@%$CAIRO_HAS_XRENDER%g
- s%@CAIRO_HAS_XRENDER_SURFACE@%$CAIRO_HAS_XRENDER_SURFACE%g
- s%@CAIROINC@%$CAIROINC%g
- s%@CAIROLIB@%$CAIROLIB%g
- s%@USE_CAIRO@%$USE_CAIRO%g
- s%@FTINC@%$FTINC%g
- s%@FTLIB@%$FTLIB%g
- s%@INTLLIB@%$INTLLIB%g
- s%@HAVE_NLS@%$HAVE_NLS%g
- s%@CXX@%$CXX%g
- s%@OPENDWGINCPATH@%$OPENDWGINCPATH%g
- s%@OPENDWGLIBPATH@%$OPENDWGLIBPATH%g
- s%@OPENDWGLIB@%$OPENDWGLIB%g
- s%@USE_OPENDWG@%$USE_OPENDWG%g
- s%@PTHREADINCPATH@%$PTHREADINCPATH%g
- s%@PTHREADLIBPATH@%$PTHREADLIBPATH%g
- s%@PTHREADLIB@%$PTHREADLIB%g
- s%@USE_PTHREAD@%$USE_PTHREAD%g
- s%@OMPINCPATH@%$OMPINCPATH%g
- s%@OMPLIBPATH@%$OMPLIBPATH%g
- s%@OMPLIB@%$OMPLIB%g
- s%@OMPCFLAGS@%$OMPCFLAGS%g
- s%@USE_OPENMP@%$USE_OPENMP%g
- s%@OCLINCPATH@%$OCLINCPATH%g
- s%@OCLLIBPATH@%$OCLLIBPATH%g
- s%@OCLLIB@%$OCLLIB%g
- s%@USE_OPENCL@%$USE_OPENCL%g
- s%@USE_LARGEFILES@%$USE_LARGEFILES%g
- s%@LFS_CFLAGS@%$LFS_CFLAGS%g
- s%@USE_TERMIO@%$USE_TERMIO%g
- s%@STRIPFLAG@%$STRIPFLAG%g
- s%@GRASS_HOME@%$GRASS_HOME%g
- CEOF
- EOF
- cat >> $CONFIG_STATUS <<\EOF
- # Split the substitutions into bite-sized pieces for seds with
- # small command number limits, like on Digital OSF/1 and HP-UX.
- ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
- ac_file=1 # Number of current file.
- ac_beg=1 # First line for current file.
- ac_end=$ac_max_sed_cmds # Line after last line for current file.
- ac_more_lines=:
- ac_sed_cmds=""
- while $ac_more_lines; do
- if test $ac_beg -gt 1; then
- sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
- else
- sed "${ac_end}q" conftest.subs > conftest.s$ac_file
- fi
- if test ! -s conftest.s$ac_file; then
- ac_more_lines=false
- rm -f conftest.s$ac_file
- else
- if test -z "$ac_sed_cmds"; then
- ac_sed_cmds="sed -f conftest.s$ac_file"
- else
- ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
- fi
- ac_file=`expr $ac_file + 1`
- ac_beg=$ac_end
- ac_end=`expr $ac_end + $ac_max_sed_cmds`
- fi
- done
- if test -z "$ac_sed_cmds"; then
- ac_sed_cmds=cat
- fi
- EOF
- cat >> $CONFIG_STATUS <<EOF
- CONFIG_FILES=\${CONFIG_FILES-"include/Make/Platform.make include/Make/Doxyfile_arch_html include/Make/Doxyfile_arch_latex include/version.h grass.pc"}
- EOF
- cat >> $CONFIG_STATUS <<\EOF
- for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
- # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
- case "$ac_file" in
- *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
- ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
- *) ac_file_in="${ac_file}.in" ;;
- esac
- # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
- # Remove last slash and all that follows it. Not all systems have dirname.
- ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
- if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
- # The file is in a subdirectory.
- test ! -d "$ac_dir" && mkdir "$ac_dir"
- ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
- # A "../" for each directory in $ac_dir_suffix.
- ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
- else
- ac_dir_suffix= ac_dots=
- fi
- case "$ac_given_srcdir" in
- .) srcdir=.
- if test -z "$ac_dots"; then top_srcdir=.
- else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
- /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
- *) # Relative path.
- srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
- top_srcdir="$ac_dots$ac_given_srcdir" ;;
- esac
- case "$ac_given_INSTALL" in
- [/$]*) INSTALL="$ac_given_INSTALL" ;;
- *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
- esac
- echo creating "$ac_file"
- rm -f "$ac_file"
- configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
- case "$ac_file" in
- *Makefile*) ac_comsub="1i\\
- # $configure_input" ;;
- *) ac_comsub= ;;
- esac
- ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
- sed -e "$ac_comsub
- s%@configure_input@%$configure_input%g
- s%@srcdir@%$srcdir%g
- s%@top_srcdir@%$top_srcdir%g
- s%@INSTALL@%$INSTALL%g
- " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
- fi; done
- rm -f conftest.s*
- # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
- # NAME is the cpp macro being defined and VALUE is the value it is being given.
- #
- # ac_d sets the value in "#define NAME VALUE" lines.
- ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
- ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
- ac_dC='\3'
- ac_dD='%g'
- # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
- ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
- ac_uB='\([ ]\)%\1#\2define\3'
- ac_uC=' '
- ac_uD='\4%g'
- # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
- ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
- ac_eB='$%\1#\2define\3'
- ac_eC=' '
- ac_eD='%g'
- if test "${CONFIG_HEADERS+set}" != set; then
- EOF
- cat >> $CONFIG_STATUS <<EOF
- CONFIG_HEADERS="include/config.h"
- EOF
- cat >> $CONFIG_STATUS <<\EOF
- fi
- for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
- # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
- case "$ac_file" in
- *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
- ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
- *) ac_file_in="${ac_file}.in" ;;
- esac
- echo creating $ac_file
- rm -f conftest.frag conftest.in conftest.out
- ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
- cat $ac_file_inputs > conftest.in
- EOF
- # Transform confdefs.h into a sed script conftest.vals that substitutes
- # the proper values into config.h.in to produce config.h. And first:
- # Protect against being on the right side of a sed subst in config.status.
- # Protect against being in an unquoted here document in config.status.
- rm -f conftest.vals
- cat > conftest.hdr <<\EOF
- s/[\\&%]/\\&/g
- s%[\\$`]%\\&%g
- s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
- s%ac_d%ac_u%gp
- s%ac_u%ac_e%gp
- EOF
- sed -n -f conftest.hdr confdefs.h > conftest.vals
- rm -f conftest.hdr
- # This sed command replaces #undef with comments. This is necessary, for
- # example, in the case of _POSIX_SOURCE, which is predefined and required
- # on some systems where configure will not decide to define it.
- cat >> conftest.vals <<\EOF
- s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
- EOF
- # Break up conftest.vals because some shells have a limit on
- # the size of here documents, and old seds have small limits too.
- rm -f conftest.tail
- while :
- do
- ac_lines=`grep -c . conftest.vals`
- # grep -c gives empty output for an empty file on some AIX systems.
- if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
- # Write a limited-size here document to conftest.frag.
- echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
- sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
- echo 'CEOF
- sed -f conftest.frag conftest.in > conftest.out
- rm -f conftest.in
- mv conftest.out conftest.in
- ' >> $CONFIG_STATUS
- sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
- rm -f conftest.vals
- mv conftest.tail conftest.vals
- done
- rm -f conftest.vals
- cat >> $CONFIG_STATUS <<\EOF
- rm -f conftest.frag conftest.h
- echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
- cat conftest.in >> conftest.h
- rm -f conftest.in
- if cmp -s $ac_file conftest.h 2>/dev/null; then
- echo "$ac_file is unchanged"
- rm -f conftest.h
- else
- # Remove last slash and all that follows it. Not all systems have dirname.
- ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
- if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
- # The file is in a subdirectory.
- test ! -d "$ac_dir" && mkdir "$ac_dir"
- fi
- rm -f $ac_file
- mv conftest.h $ac_file
- fi
- fi; done
- EOF
- cat >> $CONFIG_STATUS <<EOF
- EOF
- cat >> $CONFIG_STATUS <<\EOF
- exit 0
- EOF
- chmod +x $CONFIG_STATUS
- rm -fr confdefs* $ac_clean_files
- test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
- echo "Copying config.status to config.status.${ARCH}"
- cp -f config.status config.status.${ARCH}
- # Display configuration status
- echo ""
- echo "GRASS is now configured for: ${host}"
- echo ""
- echo " Source directory: ${SRCDIR}"
- echo " Build directory: ${DSTDIR}"
- echo " Installation directory: ${INSTDIR}"
- echo " Startup script in directory:${bindir}"
- echo " C compiler: ${CC} ${CFLAGS}"
- echo " C++ compiler: ${CXX} ${CXXFLAGS}"
- echo " Building shared libraries: ${shared_ok}"
- echo " OpenGL platform: ${OPENGL_TYPE}"
- echo ""
- echo " MacOSX application: `if test -n "${MACOSX_APP}" ; then echo yes ; else echo no ; fi`"
- echo " MacOSX architectures: ${MACOSX_ARCHS}"
- echo " MacOSX SDK: ${MACOSX_SDK}"
- echo ""
- echo " BLAS support: `if test -n "${USE_BLAS}" ; then echo yes ; else echo no ; fi`"
- echo " BZIP2 support: `if test -n "${USE_BZIP2}" ; then echo yes ; else echo no ; fi`"
- echo " C++ support: `if test -n "${USE_CXX}" ; then echo yes ; else echo no ; fi`"
- echo " Cairo support: `if test -n "${USE_CAIRO}" ; then echo yes ; else echo no ; fi`"
- echo " DWG support: `if test -n "${USE_OPENDWG}" ; then echo yes ; else echo no ; fi`"
- echo " FFTW support: `if test -n "${USE_FFTW}" ; then echo yes ; else echo no ; fi`"
- echo " FreeType support: `if test -n "${USE_FREETYPE}" ; then echo yes ; else echo no ; fi`"
- echo " GDAL support: `if test -n "${USE_GDAL}" ; then echo yes ; else echo no ; fi`"
- echo " GEOS support: `if test -n "${USE_GEOS}" ; then echo yes ; else echo no ; fi`"
- echo " LAPACK support: `if test -n "${USE_LAPACK}" ; then echo yes ; else echo no ; fi`"
- echo " Large File support (LFS): `if test -n "${USE_LARGEFILES}" ; then echo yes ; else echo no ; fi`"
- echo " libLAS support: `if test -n "${USE_LIBLAS}" ; then echo yes ; else echo no ; fi`"
- echo " MySQL support: `if test -n "${USE_MYSQL}" ; then echo yes ; else echo no ; fi`"
- echo " NetCDF support: `if test -n "${USE_NETCDF}" ; then echo yes ; else echo no ; fi`"
- echo " NLS support: `if test -n "${USE_NLS}" ; then echo yes ; else echo no ; fi`"
- echo " ODBC support: `if test -n "${USE_ODBC}" ; then echo yes ; else echo no ; fi`"
- echo " OGR support: `if test -n "${USE_OGR}" ; then echo yes ; else echo no ; fi`"
- echo " OpenCL support: `if test -n "${USE_OPENCL}" ; then echo yes ; else echo no ; fi`"
- echo " OpenGL support: `if test -n "${USE_OPENGL}" ; then echo yes ; else echo no ; fi`"
- echo " OpenMP support: `if test -n "${USE_OPENMP}" ; then echo yes ; else echo no ; fi`"
- echo " PDAL support: `if test -n "${USE_PDAL}" ; then echo yes ; else echo no ; fi`"
- echo " PNG support: `if test -n "${USE_PNG}" ; then echo yes ; else echo no ; fi`"
- echo " POSIX thread support: `if test -n "${USE_PTHREAD}" ; then echo yes ; else echo no ; fi`"
- echo " PostgreSQL support: `if test -n "${USE_POSTGRES}" ; then echo yes ; else echo no ; fi`"
- echo " Readline support: `if test -n "${USE_READLINE}" ; then echo yes ; else echo no ; fi`"
- echo " Regex support: `if test -n "${USE_REGEX}" ; then echo yes ; else echo no ; fi`"
- echo " SQLite support: `if test -n "${USE_SQLITE}" ; then echo yes ; else echo no ; fi`"
- echo " TIFF support: `if test -n "${USE_TIFF}" ; then echo yes ; else echo no ; fi`"
- echo " X11 support: `if test -n "${USE_X11}" ; then echo yes ; else echo no ; fi`"
- echo ""
|