configure 363 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 2.13
  4. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  5. #
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. # Defaults:
  9. ac_help=
  10. ac_default_prefix=/usr/local
  11. # Any additions from configure.in:
  12. ac_default_prefix=/usr/local
  13. ac_help="$ac_help
  14. --enable-macosx-app create a MacOSX application"
  15. ac_help="$ac_help
  16. --enable-shared build and link with shared libraries [--enable-shared]"
  17. ac_help="$ac_help
  18. --enable-w11 use W11 library for Windows X11 emulation"
  19. ac_help="$ac_help
  20. --with-cxx support C++ functionality (default: yes)"
  21. ac_help="$ac_help
  22. --with-macosx-archs[=arch list]
  23. compile multiple architectures on MacOSX, ie.
  24. universal. Valid architectures are i386, ppc,
  25. x86_64 and ppc64. (default: no [native])"
  26. ac_help="$ac_help
  27. --with-macosx-sdk[=path/sdk]
  28. compile with a system SDK on MacOSX. (default: no)"
  29. ac_help="$ac_help
  30. --with-tiff support TIFF functionality (default: yes)"
  31. ac_help="$ac_help
  32. --with-png support PNG functionality (default: yes)"
  33. ac_help="$ac_help
  34. --with-postgres support PostgreSQL functionality (default: no)"
  35. ac_help="$ac_help
  36. --with-mysql support MySQL functionality (default: no)"
  37. ac_help="$ac_help
  38. --with-sqlite support SQLite functionality (default: yes)"
  39. ac_help="$ac_help
  40. --with-opengl support OpenGL functionality (default: yes)"
  41. ac_help="$ac_help
  42. --with-odbc support ODBC functionality (default: no)"
  43. ac_help="$ac_help
  44. --with-fftw support FFTW functionality (default: yes)"
  45. ac_help="$ac_help
  46. --with-blas support BLAS functionality (default: no)"
  47. ac_help="$ac_help
  48. --with-lapack support LAPACK functionality (default: no)"
  49. ac_help="$ac_help
  50. --with-cairo support Cairo functionality (default: yes)"
  51. ac_help="$ac_help
  52. --with-freetype support FreeType functionality (default: yes)"
  53. ac_help="$ac_help
  54. --with-nls support NLS functionality (default: no)"
  55. ac_help="$ac_help
  56. --with-readline support Readline functionality (default: no)"
  57. ac_help="$ac_help
  58. --with-opendwg support openDWG functionality (default: no)"
  59. ac_help="$ac_help
  60. --with-regex support regex functionality (default: yes)"
  61. ac_help="$ac_help
  62. --with-pthread support POSIX threads functionality (default: no)"
  63. ac_help="$ac_help
  64. --with-openmp support OpenMP functionality (default: no)"
  65. ac_help="$ac_help
  66. --with-opencl support OpenCL functionality (default: no)"
  67. ac_help="$ac_help
  68. --with-bzlib support BZIP2 functionality (default: no)"
  69. ac_help="$ac_help
  70. --with-gdal[=path/gdal-config]
  71. enable GDAL/OGR support (gdal-config with path,
  72. e.g. '--with-gdal=/usr/local/bin/gdal-config')"
  73. ac_help="$ac_help
  74. --with-liblas[=path/liblas-config]
  75. enable libLAS support (liblas-config with path,
  76. e.g. '--with-liblas=/usr/local/bin/liblas-config',
  77. default: no)"
  78. ac_help="$ac_help
  79. --with-pdal[=path/pdal-config]
  80. enable PDAL support (pdal-config with path,
  81. e.g. '--with-pdal=/usr/local/bin/pdal-config',
  82. default: no)"
  83. ac_help="$ac_help
  84. --with-wxwidgets[=path/wx-config]
  85. enable wxWidgets support (wx-config with path,
  86. e.g. '--with-wxwidgets=/usr/local/bin/wx-config',
  87. default: no)"
  88. ac_help="$ac_help
  89. --with-netcdf[=path/nc-config]
  90. enable NetCDF support (nc-config with path,
  91. e.g. '--with-nc=/usr/local/bin/nc-config',
  92. default: no)"
  93. ac_help="$ac_help
  94. --with-geos[=path/geos-config]
  95. enable GEOS support (geos-config with path,
  96. e.g. '--with-geos=/usr/local/bin/geos-config',
  97. default: no)"
  98. ac_help="$ac_help
  99. --with-includes=DIRS site include files are in DIRS"
  100. ac_help="$ac_help
  101. --with-libs=DIRS site library files are in DIRS"
  102. ac_help="$ac_help
  103. --with-zlib-includes=DIRS
  104. zlib include files are in DIRS"
  105. ac_help="$ac_help
  106. --with-zlib-libs=DIRS zlib library files are in DIRS"
  107. ac_help="$ac_help
  108. --with-bzlib-includes=DIRS
  109. BZIP2 include files are in DIRS"
  110. ac_help="$ac_help
  111. --with-bzlib-libs=DIRS BZIP2 library files are in DIRS"
  112. ac_help="$ac_help
  113. --with-readline-includes=DIRS
  114. Readline include files are in DIRS"
  115. ac_help="$ac_help
  116. --with-readline-libs=DIRS
  117. Readline library files are in DIRS"
  118. ac_help="$ac_help
  119. --with-tiff-includes=DIRS
  120. TIFF include files are in DIRS"
  121. ac_help="$ac_help
  122. --with-tiff-libs=DIRS TIFF library files are in DIRS"
  123. ac_help="$ac_help
  124. --with-png-includes=DIRS
  125. PNG include files are in DIRS"
  126. ac_help="$ac_help
  127. --with-png-libs=DIRS PNG library files are in DIRS"
  128. ac_help="$ac_help
  129. --with-postgres-includes=DIRS
  130. PostgreSQL include files are in DIRS"
  131. ac_help="$ac_help
  132. --with-postgres-libs=DIRS
  133. PostgreSQL library files are in DIRS"
  134. ac_help="$ac_help
  135. --with-mysql-includes=DIRS
  136. MySQL include files are in DIRS"
  137. ac_help="$ac_help
  138. --with-mysql-libs=DIRS MySQL library files are in DIRS"
  139. ac_help="$ac_help
  140. --with-sqlite-includes=DIRS
  141. SQLite include files are in DIRS"
  142. ac_help="$ac_help
  143. --with-sqlite-libs=DIRS SQLite library files are in DIRS"
  144. ac_help="$ac_help
  145. --with-opengl-includes=DIRS
  146. OpenGL include files are in DIRS"
  147. ac_help="$ac_help
  148. --with-opengl-libs=DIRS OpenGL library files are in DIRS"
  149. ac_help="$ac_help
  150. --with-opengl-framework=DIR
  151. OpenGL framework is in DIR"
  152. ac_help="$ac_help
  153. --with-odbc-includes=DIRS
  154. ODBC include files are in DIRS"
  155. ac_help="$ac_help
  156. --with-odbc-libs=DIRS ODBC library files are in DIRS"
  157. ac_help="$ac_help
  158. --with-fftw-includes=DIRS
  159. FFTW include files are in DIRS"
  160. ac_help="$ac_help
  161. --with-fftw-libs=DIRS FFTW library files are in DIRS"
  162. ac_help="$ac_help
  163. --with-blas-includes=DIRS
  164. BLAS include files are in DIRS"
  165. ac_help="$ac_help
  166. --with-blas-libs=DIRS BLAS library files are in DIRS"
  167. ac_help="$ac_help
  168. --with-lapack-includes=DIRS
  169. LAPACK include files are in DIRS"
  170. ac_help="$ac_help
  171. --with-lapack-libs=DIRS LAPACK library files are in DIRS"
  172. ac_help="$ac_help
  173. --with-cairo-includes=DIRS
  174. cairo include files are in DIRS"
  175. ac_help="$ac_help
  176. --with-cairo-libs=DIRS cairo library files are in DIRS"
  177. ac_help="$ac_help
  178. --with-cairo-ldflags=FLAGS
  179. cairo needs FLAGS when linking"
  180. ac_help="$ac_help
  181. --with-freetype-includes=DIRS
  182. FreeType include files are in DIRS"
  183. ac_help="$ac_help
  184. --with-freetype-libs=DIRS
  185. FreeType library files are in DIRS"
  186. ac_help="$ac_help
  187. --with-proj-includes=DIRS
  188. External PROJ.4 include files are in DIRS"
  189. ac_help="$ac_help
  190. --with-proj-libs=DIRS External PROJ.4 library files are in DIRS"
  191. ac_help="$ac_help
  192. --with-proj-share=DIR External PROJ.4 data files are in DIR"
  193. ac_help="$ac_help
  194. --with-opendwg-includes=DIRS
  195. openDWG include files are in DIRS"
  196. ac_help="$ac_help
  197. --with-opendwg-libs=DIRS
  198. openDWG library files are in DIRS"
  199. ac_help="$ac_help
  200. --with-regex-includes=DIRS
  201. regex include files are in DIRS"
  202. ac_help="$ac_help
  203. --with-regex-libs=DIRS regex library files are in DIRS"
  204. ac_help="$ac_help
  205. --with-pthread-includes=DIRS
  206. POSIX threads include files are in DIRS"
  207. ac_help="$ac_help
  208. --with-pthread-libs=DIRS
  209. POSIX threads library files are in DIRS"
  210. ac_help="$ac_help
  211. --with-openmp-includes=DIRS
  212. OpenMP include files are in DIRS"
  213. ac_help="$ac_help
  214. --with-openmp-libs=DIRS OpenMP library files are in DIRS"
  215. ac_help="$ac_help
  216. --with-opencl-includes=DIRS
  217. OpenCL include files are in DIRS"
  218. ac_help="$ac_help
  219. --with-opencl-libs=DIRS OpenCL library files are in DIRS"
  220. ac_help="$ac_help
  221. --with-x use the X Window System"
  222. ac_help="$ac_help
  223. --disable-largefile omit support for large files (LFS)"
  224. # Initialize some variables set by options.
  225. # The variables have the same names as the options, with
  226. # dashes changed to underlines.
  227. build=NONE
  228. cache_file=./config.cache
  229. exec_prefix=NONE
  230. host=NONE
  231. no_create=
  232. nonopt=NONE
  233. no_recursion=
  234. prefix=NONE
  235. program_prefix=NONE
  236. program_suffix=NONE
  237. program_transform_name=s,x,x,
  238. silent=
  239. site=
  240. srcdir=
  241. target=NONE
  242. verbose=
  243. x_includes=NONE
  244. x_libraries=NONE
  245. bindir='${exec_prefix}/bin'
  246. sbindir='${exec_prefix}/sbin'
  247. libexecdir='${exec_prefix}/libexec'
  248. datadir='${prefix}/share'
  249. sysconfdir='${prefix}/etc'
  250. sharedstatedir='${prefix}/com'
  251. localstatedir='${prefix}/var'
  252. libdir='${exec_prefix}/lib'
  253. includedir='${prefix}/include'
  254. oldincludedir='/usr/include'
  255. infodir='${prefix}/info'
  256. mandir='${prefix}/man'
  257. # Initialize some other variables.
  258. subdirs=
  259. MFLAGS= MAKEFLAGS=
  260. SHELL=${CONFIG_SHELL-/bin/sh}
  261. # Maximum number of lines to put in a shell here document.
  262. ac_max_here_lines=12
  263. ac_prev=
  264. for ac_option
  265. do
  266. # If the previous option needs an argument, assign it.
  267. if test -n "$ac_prev"; then
  268. eval "$ac_prev=\$ac_option"
  269. ac_prev=
  270. continue
  271. fi
  272. case "$ac_option" in
  273. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  274. *) ac_optarg= ;;
  275. esac
  276. # Accept the important Cygnus configure options, so we can diagnose typos.
  277. case "$ac_option" in
  278. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  279. ac_prev=bindir ;;
  280. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  281. bindir="$ac_optarg" ;;
  282. -build | --build | --buil | --bui | --bu)
  283. ac_prev=build ;;
  284. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  285. build="$ac_optarg" ;;
  286. -cache-file | --cache-file | --cache-fil | --cache-fi \
  287. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  288. ac_prev=cache_file ;;
  289. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  290. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  291. cache_file="$ac_optarg" ;;
  292. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  293. ac_prev=datadir ;;
  294. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  295. | --da=*)
  296. datadir="$ac_optarg" ;;
  297. -disable-* | --disable-*)
  298. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  299. # Reject names that are not valid shell variable names.
  300. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  301. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  302. fi
  303. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  304. eval "enable_${ac_feature}=no" ;;
  305. -enable-* | --enable-*)
  306. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  307. # Reject names that are not valid shell variable names.
  308. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  309. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  310. fi
  311. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  312. case "$ac_option" in
  313. *=*) ;;
  314. *) ac_optarg=yes ;;
  315. esac
  316. eval "enable_${ac_feature}='$ac_optarg'" ;;
  317. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  318. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  319. | --exec | --exe | --ex)
  320. ac_prev=exec_prefix ;;
  321. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  322. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  323. | --exec=* | --exe=* | --ex=*)
  324. exec_prefix="$ac_optarg" ;;
  325. -gas | --gas | --ga | --g)
  326. # Obsolete; use --with-gas.
  327. with_gas=yes ;;
  328. -help | --help | --hel | --he)
  329. # Omit some internal or obsolete options to make the list less imposing.
  330. # This message is too long to be a string in the A/UX 3.1 sh.
  331. cat << EOF
  332. Usage: configure [options] [host]
  333. Options: [defaults in brackets after descriptions]
  334. Configuration:
  335. --cache-file=FILE cache test results in FILE
  336. --help print this message
  337. --no-create do not create output files
  338. --quiet, --silent do not print \`checking...' messages
  339. --version print the version of autoconf that created configure
  340. Directory and file names:
  341. --prefix=PREFIX install architecture-independent files in PREFIX
  342. [$ac_default_prefix]
  343. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  344. [same as prefix]
  345. --bindir=DIR user executables in DIR [EPREFIX/bin]
  346. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  347. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  348. --datadir=DIR read-only architecture-independent data in DIR
  349. [PREFIX/share]
  350. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  351. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  352. [PREFIX/com]
  353. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  354. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  355. --includedir=DIR C header files in DIR [PREFIX/include]
  356. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  357. --infodir=DIR info documentation in DIR [PREFIX/info]
  358. --mandir=DIR man documentation in DIR [PREFIX/man]
  359. --srcdir=DIR find the sources in DIR [configure dir or ..]
  360. --program-prefix=PREFIX prepend PREFIX to installed program names
  361. --program-suffix=SUFFIX append SUFFIX to installed program names
  362. --program-transform-name=PROGRAM
  363. run sed PROGRAM on installed program names
  364. EOF
  365. cat << EOF
  366. Host type:
  367. --build=BUILD configure for building on BUILD [BUILD=HOST]
  368. --host=HOST configure for HOST [guessed]
  369. --target=TARGET configure for TARGET [TARGET=HOST]
  370. Features and packages:
  371. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  372. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  373. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  374. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  375. --x-includes=DIR X include files are in DIR
  376. --x-libraries=DIR X library files are in DIR
  377. EOF
  378. if test -n "$ac_help"; then
  379. echo "--enable and --with options recognized:$ac_help"
  380. fi
  381. exit 0 ;;
  382. -host | --host | --hos | --ho)
  383. ac_prev=host ;;
  384. -host=* | --host=* | --hos=* | --ho=*)
  385. host="$ac_optarg" ;;
  386. -includedir | --includedir | --includedi | --included | --include \
  387. | --includ | --inclu | --incl | --inc)
  388. ac_prev=includedir ;;
  389. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  390. | --includ=* | --inclu=* | --incl=* | --inc=*)
  391. includedir="$ac_optarg" ;;
  392. -infodir | --infodir | --infodi | --infod | --info | --inf)
  393. ac_prev=infodir ;;
  394. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  395. infodir="$ac_optarg" ;;
  396. -libdir | --libdir | --libdi | --libd)
  397. ac_prev=libdir ;;
  398. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  399. libdir="$ac_optarg" ;;
  400. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  401. | --libexe | --libex | --libe)
  402. ac_prev=libexecdir ;;
  403. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  404. | --libexe=* | --libex=* | --libe=*)
  405. libexecdir="$ac_optarg" ;;
  406. -localstatedir | --localstatedir | --localstatedi | --localstated \
  407. | --localstate | --localstat | --localsta | --localst \
  408. | --locals | --local | --loca | --loc | --lo)
  409. ac_prev=localstatedir ;;
  410. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  411. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  412. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  413. localstatedir="$ac_optarg" ;;
  414. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  415. ac_prev=mandir ;;
  416. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  417. mandir="$ac_optarg" ;;
  418. -nfp | --nfp | --nf)
  419. # Obsolete; use --without-fp.
  420. with_fp=no ;;
  421. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  422. | --no-cr | --no-c)
  423. no_create=yes ;;
  424. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  425. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  426. no_recursion=yes ;;
  427. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  428. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  429. | --oldin | --oldi | --old | --ol | --o)
  430. ac_prev=oldincludedir ;;
  431. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  432. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  433. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  434. oldincludedir="$ac_optarg" ;;
  435. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  436. ac_prev=prefix ;;
  437. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  438. prefix="$ac_optarg" ;;
  439. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  440. | --program-pre | --program-pr | --program-p)
  441. ac_prev=program_prefix ;;
  442. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  443. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  444. program_prefix="$ac_optarg" ;;
  445. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  446. | --program-suf | --program-su | --program-s)
  447. ac_prev=program_suffix ;;
  448. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  449. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  450. program_suffix="$ac_optarg" ;;
  451. -program-transform-name | --program-transform-name \
  452. | --program-transform-nam | --program-transform-na \
  453. | --program-transform-n | --program-transform- \
  454. | --program-transform | --program-transfor \
  455. | --program-transfo | --program-transf \
  456. | --program-trans | --program-tran \
  457. | --progr-tra | --program-tr | --program-t)
  458. ac_prev=program_transform_name ;;
  459. -program-transform-name=* | --program-transform-name=* \
  460. | --program-transform-nam=* | --program-transform-na=* \
  461. | --program-transform-n=* | --program-transform-=* \
  462. | --program-transform=* | --program-transfor=* \
  463. | --program-transfo=* | --program-transf=* \
  464. | --program-trans=* | --program-tran=* \
  465. | --progr-tra=* | --program-tr=* | --program-t=*)
  466. program_transform_name="$ac_optarg" ;;
  467. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  468. | -silent | --silent | --silen | --sile | --sil)
  469. silent=yes ;;
  470. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  471. ac_prev=sbindir ;;
  472. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  473. | --sbi=* | --sb=*)
  474. sbindir="$ac_optarg" ;;
  475. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  476. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  477. | --sharedst | --shareds | --shared | --share | --shar \
  478. | --sha | --sh)
  479. ac_prev=sharedstatedir ;;
  480. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  481. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  482. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  483. | --sha=* | --sh=*)
  484. sharedstatedir="$ac_optarg" ;;
  485. -site | --site | --sit)
  486. ac_prev=site ;;
  487. -site=* | --site=* | --sit=*)
  488. site="$ac_optarg" ;;
  489. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  490. ac_prev=srcdir ;;
  491. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  492. srcdir="$ac_optarg" ;;
  493. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  494. | --syscon | --sysco | --sysc | --sys | --sy)
  495. ac_prev=sysconfdir ;;
  496. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  497. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  498. sysconfdir="$ac_optarg" ;;
  499. -target | --target | --targe | --targ | --tar | --ta | --t)
  500. ac_prev=target ;;
  501. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  502. target="$ac_optarg" ;;
  503. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  504. verbose=yes ;;
  505. -version | --version | --versio | --versi | --vers)
  506. echo "configure generated by autoconf version 2.13"
  507. exit 0 ;;
  508. -with-* | --with-*)
  509. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  510. # Reject names that are not valid shell variable names.
  511. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  512. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  513. fi
  514. ac_package=`echo $ac_package| sed 's/-/_/g'`
  515. case "$ac_option" in
  516. *=*) ;;
  517. *) ac_optarg=yes ;;
  518. esac
  519. eval "with_${ac_package}='$ac_optarg'" ;;
  520. -without-* | --without-*)
  521. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  522. # Reject names that are not valid shell variable names.
  523. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  524. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  525. fi
  526. ac_package=`echo $ac_package| sed 's/-/_/g'`
  527. eval "with_${ac_package}=no" ;;
  528. --x)
  529. # Obsolete; use --with-x.
  530. with_x=yes ;;
  531. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  532. | --x-incl | --x-inc | --x-in | --x-i)
  533. ac_prev=x_includes ;;
  534. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  535. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  536. x_includes="$ac_optarg" ;;
  537. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  538. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  539. ac_prev=x_libraries ;;
  540. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  541. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  542. x_libraries="$ac_optarg" ;;
  543. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  544. ;;
  545. *)
  546. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  547. echo "configure: warning: $ac_option: invalid host type" 1>&2
  548. fi
  549. if test "x$nonopt" != xNONE; then
  550. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  551. fi
  552. nonopt="$ac_option"
  553. ;;
  554. esac
  555. done
  556. if test -n "$ac_prev"; then
  557. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  558. fi
  559. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  560. # File descriptor usage:
  561. # 0 standard input
  562. # 1 file creation
  563. # 2 errors and warnings
  564. # 3 some systems may open it to /dev/tty
  565. # 4 used on the Kubota Titan
  566. # 6 checking for... messages and results
  567. # 5 compiler messages saved in config.log
  568. if test "$silent" = yes; then
  569. exec 6>/dev/null
  570. else
  571. exec 6>&1
  572. fi
  573. exec 5>./config.log
  574. echo "\
  575. This file contains any messages produced by compilers while
  576. running configure, to aid debugging if configure makes a mistake.
  577. " 1>&5
  578. # Strip out --no-create and --no-recursion so they do not pile up.
  579. # Also quote any args containing shell metacharacters.
  580. ac_configure_args=
  581. for ac_arg
  582. do
  583. case "$ac_arg" in
  584. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  585. | --no-cr | --no-c) ;;
  586. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  587. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  588. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  589. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  590. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  591. esac
  592. done
  593. # NLS nuisances.
  594. # Only set these to C if already set. These must not be set unconditionally
  595. # because not all systems understand e.g. LANG=C (notably SCO).
  596. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  597. # Non-C LC_CTYPE values break the ctype check.
  598. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  599. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  600. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  601. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  602. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  603. rm -rf conftest* confdefs.h
  604. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  605. echo > confdefs.h
  606. # A filename unique to this package, relative to the directory that
  607. # configure is in, which we can look for to find out if srcdir is correct.
  608. ac_unique_file=configure.in
  609. # Find the source files, if location was not specified.
  610. if test -z "$srcdir"; then
  611. ac_srcdir_defaulted=yes
  612. # Try the directory containing this script, then its parent.
  613. ac_prog=$0
  614. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  615. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  616. srcdir=$ac_confdir
  617. if test ! -r $srcdir/$ac_unique_file; then
  618. srcdir=..
  619. fi
  620. else
  621. ac_srcdir_defaulted=no
  622. fi
  623. if test ! -r $srcdir/$ac_unique_file; then
  624. if test "$ac_srcdir_defaulted" = yes; then
  625. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  626. else
  627. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  628. fi
  629. fi
  630. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  631. # Prefer explicitly selected file to automatically selected ones.
  632. if test -z "$CONFIG_SITE"; then
  633. if test "x$prefix" != xNONE; then
  634. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  635. else
  636. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  637. fi
  638. fi
  639. for ac_site_file in $CONFIG_SITE; do
  640. if test -r "$ac_site_file"; then
  641. echo "loading site script $ac_site_file"
  642. . "$ac_site_file"
  643. fi
  644. done
  645. ac_ext=c
  646. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  647. ac_cpp='$CPP $CPPFLAGS'
  648. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  649. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  650. cross_compiling=$ac_cv_prog_cc_cross
  651. ac_exeext=
  652. ac_objext=o
  653. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  654. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  655. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  656. ac_n= ac_c='
  657. ' ac_t=' '
  658. else
  659. ac_n=-n ac_c= ac_t=
  660. fi
  661. else
  662. ac_n= ac_c='\c' ac_t=
  663. fi
  664. ac_aux_dir=
  665. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  666. if test -f $ac_dir/install-sh; then
  667. ac_aux_dir=$ac_dir
  668. ac_install_sh="$ac_aux_dir/install-sh -c"
  669. break
  670. elif test -f $ac_dir/install.sh; then
  671. ac_aux_dir=$ac_dir
  672. ac_install_sh="$ac_aux_dir/install.sh -c"
  673. break
  674. fi
  675. done
  676. if test -z "$ac_aux_dir"; then
  677. { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  678. fi
  679. ac_config_guess=$ac_aux_dir/config.guess
  680. ac_config_sub=$ac_aux_dir/config.sub
  681. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  682. # Make sure we can run config.sub.
  683. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  684. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  685. fi
  686. echo $ac_n "checking host system type""... $ac_c" 1>&6
  687. echo "configure:759: checking host system type" >&5
  688. host_alias=$host
  689. case "$host_alias" in
  690. NONE)
  691. case $nonopt in
  692. NONE)
  693. if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  694. else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  695. fi ;;
  696. *) host_alias=$nonopt ;;
  697. esac ;;
  698. esac
  699. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  700. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  701. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  702. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  703. echo "$ac_t""$host" 1>&6
  704. # Extract the first word of "gcc", so it can be a program name with args.
  705. set dummy gcc; ac_word=$2
  706. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  707. echo "configure:782: checking for $ac_word" >&5
  708. if test -n "$CC"; then
  709. ac_cv_prog_CC="$CC" # Let the user override the test.
  710. else
  711. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  712. ac_dummy="$PATH"
  713. for ac_dir in $ac_dummy; do
  714. test -z "$ac_dir" && ac_dir=.
  715. if test -f $ac_dir/$ac_word; then
  716. ac_cv_prog_CC="gcc"
  717. break
  718. fi
  719. done
  720. IFS="$ac_save_ifs"
  721. fi
  722. CC="$ac_cv_prog_CC"
  723. if test -n "$CC"; then
  724. echo "$ac_t""$CC" 1>&6
  725. else
  726. echo "$ac_t""no" 1>&6
  727. fi
  728. if test -z "$CC"; then
  729. # Extract the first word of "cc", so it can be a program name with args.
  730. set dummy cc; ac_word=$2
  731. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  732. echo "configure:809: checking for $ac_word" >&5
  733. if test -n "$CC"; then
  734. ac_cv_prog_CC="$CC" # Let the user override the test.
  735. else
  736. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  737. ac_prog_rejected=no
  738. ac_dummy="$PATH"
  739. for ac_dir in $ac_dummy; do
  740. test -z "$ac_dir" && ac_dir=.
  741. if test -f $ac_dir/$ac_word; then
  742. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  743. ac_prog_rejected=yes
  744. continue
  745. fi
  746. ac_cv_prog_CC="cc"
  747. break
  748. fi
  749. done
  750. IFS="$ac_save_ifs"
  751. if test $ac_prog_rejected = yes; then
  752. # We found a bogon in the path, so make sure we never use it.
  753. set dummy $ac_cv_prog_CC
  754. shift
  755. if test $# -gt 0; then
  756. # We chose a different compiler from the bogus one.
  757. # However, it has the same basename, so the bogon will be chosen
  758. # first if we set CC to just the basename; use the full file name.
  759. shift
  760. set dummy "$ac_dir/$ac_word" "$@"
  761. shift
  762. ac_cv_prog_CC="$@"
  763. fi
  764. fi
  765. fi
  766. CC="$ac_cv_prog_CC"
  767. if test -n "$CC"; then
  768. echo "$ac_t""$CC" 1>&6
  769. else
  770. echo "$ac_t""no" 1>&6
  771. fi
  772. if test -z "$CC"; then
  773. case "`uname -s`" in
  774. *win32* | *WIN32*)
  775. # Extract the first word of "cl", so it can be a program name with args.
  776. set dummy cl; ac_word=$2
  777. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  778. echo "configure:857: checking for $ac_word" >&5
  779. if test -n "$CC"; then
  780. ac_cv_prog_CC="$CC" # Let the user override the test.
  781. else
  782. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  783. ac_dummy="$PATH"
  784. for ac_dir in $ac_dummy; do
  785. test -z "$ac_dir" && ac_dir=.
  786. if test -f $ac_dir/$ac_word; then
  787. ac_cv_prog_CC="cl"
  788. break
  789. fi
  790. done
  791. IFS="$ac_save_ifs"
  792. fi
  793. CC="$ac_cv_prog_CC"
  794. if test -n "$CC"; then
  795. echo "$ac_t""$CC" 1>&6
  796. else
  797. echo "$ac_t""no" 1>&6
  798. fi
  799. ;;
  800. esac
  801. fi
  802. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  803. fi
  804. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  805. echo "configure:886: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  806. ac_ext=c
  807. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  808. ac_cpp='$CPP $CPPFLAGS'
  809. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  810. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  811. cross_compiling=$ac_cv_prog_cc_cross
  812. cat > conftest.$ac_ext << EOF
  813. #line 897 "configure"
  814. #include "confdefs.h"
  815. main(){return(0);}
  816. EOF
  817. if { (eval echo configure:902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  818. ac_cv_prog_cc_works=yes
  819. # If we can't run a trivial program, we are probably using a cross compiler.
  820. if (./conftest; exit) 2>/dev/null; then
  821. ac_cv_prog_cc_cross=no
  822. else
  823. ac_cv_prog_cc_cross=yes
  824. fi
  825. else
  826. echo "configure: failed program was:" >&5
  827. cat conftest.$ac_ext >&5
  828. ac_cv_prog_cc_works=no
  829. fi
  830. rm -fr conftest*
  831. ac_ext=c
  832. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  833. ac_cpp='$CPP $CPPFLAGS'
  834. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  835. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  836. cross_compiling=$ac_cv_prog_cc_cross
  837. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  838. if test $ac_cv_prog_cc_works = no; then
  839. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  840. fi
  841. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  842. echo "configure:928: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  843. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  844. cross_compiling=$ac_cv_prog_cc_cross
  845. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  846. echo "configure:933: checking whether we are using GNU C" >&5
  847. cat > conftest.c <<EOF
  848. #ifdef __GNUC__
  849. yes;
  850. #endif
  851. EOF
  852. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  853. ac_cv_prog_gcc=yes
  854. else
  855. ac_cv_prog_gcc=no
  856. fi
  857. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  858. if test $ac_cv_prog_gcc = yes; then
  859. GCC=yes
  860. else
  861. GCC=
  862. fi
  863. ac_test_CFLAGS="${CFLAGS+set}"
  864. ac_save_CFLAGS="$CFLAGS"
  865. CFLAGS=
  866. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  867. echo "configure:958: checking whether ${CC-cc} accepts -g" >&5
  868. echo 'void f(){}' > conftest.c
  869. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  870. ac_cv_prog_cc_g=yes
  871. else
  872. ac_cv_prog_cc_g=no
  873. fi
  874. rm -f conftest*
  875. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  876. if test "$ac_test_CFLAGS" = set; then
  877. CFLAGS="$ac_save_CFLAGS"
  878. elif test $ac_cv_prog_cc_g = yes; then
  879. if test "$GCC" = yes; then
  880. CFLAGS="-g -O2"
  881. else
  882. CFLAGS="-g"
  883. fi
  884. else
  885. if test "$GCC" = yes; then
  886. CFLAGS="-O2"
  887. else
  888. CFLAGS=
  889. fi
  890. fi
  891. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  892. echo "configure:987: checking for Cygwin environment" >&5
  893. cat > conftest.$ac_ext <<EOF
  894. #line 990 "configure"
  895. #include "confdefs.h"
  896. int main() {
  897. #ifndef __CYGWIN__
  898. #define __CYGWIN__ __CYGWIN32__
  899. #endif
  900. return __CYGWIN__;
  901. ; return 0; }
  902. EOF
  903. if { (eval echo configure:1001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  904. rm -rf conftest*
  905. ac_cv_cygwin=yes
  906. else
  907. echo "configure: failed program was:" >&5
  908. cat conftest.$ac_ext >&5
  909. rm -rf conftest*
  910. ac_cv_cygwin=no
  911. fi
  912. rm -f conftest*
  913. rm -f conftest*
  914. echo "$ac_t""$ac_cv_cygwin" 1>&6
  915. CYGWIN=
  916. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  917. echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
  918. echo "configure:1017: checking for mingw32 environment" >&5
  919. cat > conftest.$ac_ext <<EOF
  920. #line 1020 "configure"
  921. #include "confdefs.h"
  922. int main() {
  923. return __MINGW32__;
  924. ; return 0; }
  925. EOF
  926. if { (eval echo configure:1027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  927. rm -rf conftest*
  928. ac_cv_mingw32=yes
  929. else
  930. echo "configure: failed program was:" >&5
  931. cat conftest.$ac_ext >&5
  932. rm -rf conftest*
  933. ac_cv_mingw32=no
  934. fi
  935. rm -f conftest*
  936. rm -f conftest*
  937. echo "$ac_t""$ac_cv_mingw32" 1>&6
  938. MINGW32=
  939. test "$ac_cv_mingw32" = yes && MINGW32=yes
  940. echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
  941. echo "configure:1045: checking for executable suffix" >&5
  942. if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
  943. ac_cv_exeext=.exe
  944. else
  945. ac_cv_exeext=no
  946. fi
  947. EXEEXT=""
  948. test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
  949. echo "$ac_t""${ac_cv_exeext}" 1>&6
  950. ac_exeext=$EXEEXT
  951. # Check for full floating-point support, including Infinity and NaN
  952. IEEEFLAG=
  953. echo $ac_n "checking for full floating-point support""... $ac_c" 1>&6
  954. echo "configure:1064: checking for full floating-point support" >&5
  955. if test "$cross_compiling" = yes; then
  956. echo "$ac_t""unknown (cross-compiling)" 1>&6
  957. echo $ac_n "checking whether "cc -mieee" works""... $ac_c" 1>&6
  958. echo "configure:1069: checking whether "cc -mieee" works" >&5
  959. ac_save_cflags=${CFLAGS}
  960. CFLAGS="$CFLAGS -mieee"
  961. cat > conftest.$ac_ext <<EOF
  962. #line 1073 "configure"
  963. #include "confdefs.h"
  964. int main() {
  965. ; return 0; }
  966. EOF
  967. if { (eval echo configure:1080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  968. rm -rf conftest*
  969. echo "$ac_t""yes" 1>&6
  970. IEEEFLAG="-mieee"
  971. else
  972. echo "configure: failed program was:" >&5
  973. cat conftest.$ac_ext >&5
  974. rm -rf conftest*
  975. echo "$ac_t""no" 1>&6
  976. fi
  977. rm -f conftest*
  978. CFLAGS=${ac_save_cflags}
  979. else
  980. cat > conftest.$ac_ext <<EOF
  981. #line 1096 "configure"
  982. #include "confdefs.h"
  983. #include <float.h>
  984. int main(void) {
  985. double one = 1.0;
  986. double zero = 0.0;
  987. if (one/zero > DBL_MAX) /* infinity */
  988. if (zero/zero != zero/zero) /* NaN */
  989. return 0;
  990. return 1;
  991. }
  992. EOF
  993. if { (eval echo configure:1110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  994. then
  995. echo "$ac_t""yes" 1>&6
  996. else
  997. echo "configure: failed program was:" >&5
  998. cat conftest.$ac_ext >&5
  999. rm -fr conftest*
  1000. echo "$ac_t""no" 1>&6
  1001. ac_save_cflags=${CFLAGS}
  1002. CFLAGS=-mieee
  1003. echo $ac_n "checking for full floating-point support with -mieee""... $ac_c" 1>&6
  1004. echo "configure:1123: checking for full floating-point support with -mieee" >&5
  1005. if test "$cross_compiling" = yes; then
  1006. echo "$ac_t""unknown (cross-compiling)" 1>&6
  1007. { echo "configure: error: *** INTERNAL CONFIGURE ERROR" 1>&2; exit 1; }
  1008. else
  1009. cat > conftest.$ac_ext <<EOF
  1010. #line 1130 "configure"
  1011. #include "confdefs.h"
  1012. #include <float.h>
  1013. int main(void) {
  1014. double one = 1.0;
  1015. double zero = 0.0;
  1016. if (one/zero > DBL_MAX) /* infinity */
  1017. if (zero/zero != zero/zero) /* NaN */
  1018. return 0;
  1019. return 1;
  1020. }
  1021. EOF
  1022. if { (eval echo configure:1144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1023. then
  1024. echo "$ac_t""yes" 1>&6
  1025. IEEEFLAG="-mieee"
  1026. else
  1027. echo "configure: failed program was:" >&5
  1028. cat conftest.$ac_ext >&5
  1029. rm -fr conftest*
  1030. echo "$ac_t""no" 1>&6
  1031. echo "configure: warning: *** Incomplete floating-point support." 1>&2
  1032. fi
  1033. rm -fr conftest*
  1034. fi
  1035. CFLAGS=${ac_save_cflags}
  1036. fi
  1037. rm -fr conftest*
  1038. fi
  1039. CFLAGS="$CFLAGS $IEEEFLAG"
  1040. # Set BINDIR
  1041. if test -n "${bindir}"; then
  1042. BINDIR="${bindir}"
  1043. else
  1044. BINDIR=/usr/local/bin
  1045. fi
  1046. # Set SRCDIR and DSTDIR
  1047. # Extract the first word of "pwd", so it can be a program name with args.
  1048. set dummy pwd; ac_word=$2
  1049. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1050. echo "configure:1181: checking for $ac_word" >&5
  1051. case "$pwd" in
  1052. /*)
  1053. ac_cv_path_pwd="$pwd" # Let the user override the test with a path.
  1054. ;;
  1055. ?:/*)
  1056. ac_cv_path_pwd="$pwd" # Let the user override the test with a dos path.
  1057. ;;
  1058. *)
  1059. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1060. ac_dummy="$PATH"
  1061. for ac_dir in $ac_dummy; do
  1062. test -z "$ac_dir" && ac_dir=.
  1063. if test -f $ac_dir/$ac_word; then
  1064. ac_cv_path_pwd="$ac_dir/$ac_word"
  1065. break
  1066. fi
  1067. done
  1068. IFS="$ac_save_ifs"
  1069. test -z "$ac_cv_path_pwd" && ac_cv_path_pwd="pwd"
  1070. ;;
  1071. esac
  1072. pwd="$ac_cv_path_pwd"
  1073. if test -n "$pwd"; then
  1074. echo "$ac_t""$pwd" 1>&6
  1075. else
  1076. echo "$ac_t""no" 1>&6
  1077. fi
  1078. if test "$MINGW32" = yes ; then
  1079. winpwd="pwd -W"
  1080. else
  1081. winpwd="$pwd"
  1082. fi
  1083. echo $ac_n "checking for source directory""... $ac_c" 1>&6
  1084. echo "configure:1219: checking for source directory" >&5
  1085. if test -z "$srcdir" ; then
  1086. SRCDIR=`$pwd`
  1087. else
  1088. SRCDIR=`(cd "$srcdir" ; $pwd)`
  1089. fi
  1090. echo "$ac_t"""$SRCDIR"" 1>&6
  1091. echo $ac_n "checking for build directory""... $ac_c" 1>&6
  1092. echo "configure:1230: checking for build directory" >&5
  1093. DSTDIR=`$pwd`
  1094. WINDSTDIR=`$winpwd`
  1095. echo "$ac_t"""$DSTDIR"" 1>&6
  1096. # Set ARCH
  1097. ARCH=
  1098. if test -z "${host}"; then
  1099. ARCH="unknown"
  1100. else
  1101. ARCH="${host}"
  1102. fi
  1103. # Use absolute path for aux directory so that install-sh works
  1104. ac_aux_dir=
  1105. for ac_dir in "$SRCDIR" $srcdir/"$SRCDIR"; do
  1106. if test -f $ac_dir/install-sh; then
  1107. ac_aux_dir=$ac_dir
  1108. ac_install_sh="$ac_aux_dir/install-sh -c"
  1109. break
  1110. elif test -f $ac_dir/install.sh; then
  1111. ac_aux_dir=$ac_dir
  1112. ac_install_sh="$ac_aux_dir/install.sh -c"
  1113. break
  1114. fi
  1115. done
  1116. if test -z "$ac_aux_dir"; then
  1117. { echo "configure: error: can not find install-sh or install.sh in "$SRCDIR" $srcdir/"$SRCDIR"" 1>&2; exit 1; }
  1118. fi
  1119. ac_config_guess=$ac_aux_dir/config.guess
  1120. ac_config_sub=$ac_aux_dir/config.sub
  1121. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  1122. # Set GISBASE and GRASS_BIN
  1123. GISBASE="${WINDSTDIR}/dist.${ARCH}"
  1124. GRASS_BIN="${DSTDIR}/bin.${ARCH}"
  1125. # Set GRASS_VERSION_*
  1126. GRASS_VERSION_FILE=include/VERSION
  1127. GRASS_VERSION_MAJOR=`sed -n 1p "${GRASS_VERSION_FILE}"`
  1128. GRASS_VERSION_MINOR=`sed -n 2p "${GRASS_VERSION_FILE}"`
  1129. GRASS_VERSION_RELEASE=`sed -n 3p "${GRASS_VERSION_FILE}"`
  1130. GRASS_VERSION_DATE=`sed -n 4p "${GRASS_VERSION_FILE}"`
  1131. GRASS_VERSION_NUMBER=`echo ${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.${GRASS_VERSION_RELEASE}`
  1132. NAME_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/\..*//'`
  1133. LIB_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/^\([0-9.]*\).*$/\1/'`
  1134. GRASS_VERSION_GIT="exported"
  1135. # Extract the first word of "git", so it can be a program name with args.
  1136. set dummy git; ac_word=$2
  1137. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1138. echo "configure:1298: checking for $ac_word" >&5
  1139. case "$GIT" in
  1140. /*)
  1141. ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
  1142. ;;
  1143. ?:/*)
  1144. ac_cv_path_GIT="$GIT" # Let the user override the test with a dos path.
  1145. ;;
  1146. *)
  1147. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1148. ac_dummy="$PATH"
  1149. for ac_dir in $ac_dummy; do
  1150. test -z "$ac_dir" && ac_dir=.
  1151. if test -f $ac_dir/$ac_word; then
  1152. ac_cv_path_GIT="$ac_dir/$ac_word"
  1153. break
  1154. fi
  1155. done
  1156. IFS="$ac_save_ifs"
  1157. test -z "$ac_cv_path_GIT" && ac_cv_path_GIT="no"
  1158. ;;
  1159. esac
  1160. GIT="$ac_cv_path_GIT"
  1161. if test -n "$GIT"; then
  1162. echo "$ac_t""$GIT" 1>&6
  1163. else
  1164. echo "$ac_t""no" 1>&6
  1165. fi
  1166. if test "$GIT" != "no" ; then
  1167. GRASS_VERSION_GIT=`$GIT rev-parse --short HEAD 2>/dev/null`
  1168. if test -z "$GRASS_VERSION_GIT"; then
  1169. GRASS_VERSION_GIT="exported"
  1170. fi
  1171. fi
  1172. # Check for MacOSX App
  1173. # Check whether --enable-macosx-app or --disable-macosx-app was given.
  1174. if test "${enable_macosx_app+set}" = set; then
  1175. enableval="$enable_macosx_app"
  1176. :
  1177. else
  1178. enable_macosx_app=no
  1179. fi
  1180. echo $ac_n "checking for MacOSX App""... $ac_c" 1>&6
  1181. echo "configure:1357: checking for MacOSX App" >&5
  1182. case "$enable_macosx_app" in
  1183. yes) MACOSX_APP=1 ;;
  1184. no) MACOSX_APP= ;;
  1185. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  1186. esac
  1187. echo "$ac_t"""$enable_macosx_app"" 1>&6
  1188. # Check for MacOSX archs
  1189. echo $ac_n "checking for MacOSX architectures""... $ac_c" 1>&6
  1190. echo "configure:1369: checking for MacOSX architectures" >&5
  1191. MACOSX_ARCHS=
  1192. if test -z "$with_macosx_archs" ; then
  1193. echo "$ac_t""no" 1>&6
  1194. else
  1195. for a in $with_macosx_archs
  1196. do
  1197. # check if valid arch?
  1198. case "$a" in
  1199. i386|ppc|x86_64|ppc64)
  1200. MACOSX_ARCHS="$MACOSX_ARCHS -arch $a"
  1201. ;;
  1202. esac
  1203. done
  1204. echo "$ac_t""$MACOSX_ARCHS" 1>&6
  1205. LDFLAGS="$LDFLAGS $MACOSX_ARCHS"
  1206. CFLAGS="$CFLAGS $MACOSX_ARCHS"
  1207. CXXFLAGS="$CXXFLAGS $MACOSX_ARCHS"
  1208. fi
  1209. # Done checking MacOSX archs
  1210. # Check for MacOSX SDK
  1211. echo $ac_n "checking for MacOSX SDK""... $ac_c" 1>&6
  1212. echo "configure:1398: checking for MacOSX SDK" >&5
  1213. MACOSX_SDK=
  1214. if test -z "$with_macosx_sdk" ; then
  1215. echo "$ac_t""no" 1>&6
  1216. else
  1217. ac_safe=`echo "$with_macosx_sdk/SDKSettings.plist" | sed 'y%./+-%__p_%'`
  1218. echo $ac_n "checking for $with_macosx_sdk/SDKSettings.plist""... $ac_c" 1>&6
  1219. echo "configure:1408: checking for $with_macosx_sdk/SDKSettings.plist" >&5
  1220. if test "$cross_compiling" = yes; then
  1221. { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
  1222. else
  1223. if test -r $with_macosx_sdk/SDKSettings.plist; then
  1224. eval "ac_cv_file_$ac_safe=yes"
  1225. else
  1226. eval "ac_cv_file_$ac_safe=no"
  1227. fi
  1228. fi
  1229. if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
  1230. echo "$ac_t""yes" 1>&6
  1231. MACOSX_SDK="-isysroot $with_macosx_sdk"
  1232. else
  1233. echo "$ac_t""no" 1>&6
  1234. { echo "configure: error: *** specified SDK does not exist or is not a SDK" 1>&2; exit 1; }
  1235. fi
  1236. LDFLAGS="$LDFLAGS $MACOSX_SDK"
  1237. CFLAGS="$CFLAGS $MACOSX_SDK"
  1238. CXXFLAGS="$CXXFLAGS $MACOSX_SDK"
  1239. fi
  1240. # Done checking MacOSX SDK
  1241. # Set INST_DIR
  1242. if test -n "$MACOSX_APP" ; then
  1243. INSTDIR='${prefix}'"/GRASS-${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.app/Contents/MacOS"
  1244. else
  1245. INSTDIR='${prefix}'"/grass-${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.${GRASS_VERSION_RELEASE}"
  1246. fi
  1247. # Get flags for building shared libraries
  1248. echo $ac_n "checking how to build libraries""... $ac_c" 1>&6
  1249. echo "configure:1452: checking how to build libraries" >&5
  1250. # Check whether --enable-shared or --disable-shared was given.
  1251. if test "${enable_shared+set}" = set; then
  1252. enableval="$enable_shared"
  1253. shared_ok=$enableval
  1254. else
  1255. shared_ok=yes
  1256. fi
  1257. if test "${enable_shared+set}" = set; then
  1258. enableval="$enable_shared"
  1259. shared_ok=$enableval
  1260. else
  1261. shared_ok=yes
  1262. fi
  1263. if test "$shared_ok" = "yes" ; then
  1264. echo "$ac_t""shared" 1>&6
  1265. SHARED_BUILD=1
  1266. GRASS_LIBRARY_TYPE='shlib'
  1267. else
  1268. echo "$ac_t""static" 1>&6
  1269. SHARED_BUILD=0
  1270. cat >> confdefs.h <<\EOF
  1271. #define STATIC_BUILD 1
  1272. EOF
  1273. GRASS_LIBRARY_TYPE='stlib'
  1274. fi
  1275. ac_save_ldflags="$LDFLAGS"
  1276. SHLIB_CFLAGS=""
  1277. SHLIB_LD_FLAGS=""
  1278. SHLIB_SUFFIX=""
  1279. SHLIB_LD=""
  1280. STLIB_LD='${AR} cr'
  1281. STLIB_SUFFIX='.a'
  1282. GRASS_TRIM_DOTS='`echo ${LIB_VER} | tr -d .`'
  1283. GRASS_LIB_VERSIONS_OK=ok
  1284. LDFLAGS=""
  1285. LD_SEARCH_FLAGS=""
  1286. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1287. case $host in
  1288. *-linux-* | *-gnu* | *-kfreebsd*-gnu)
  1289. SHLIB_CFLAGS="-fPIC"
  1290. SHLIB_LD_FLAGS="-Wl,-soname,\$(notdir \$@)"
  1291. SHLIB_SUFFIX=".so"
  1292. SHLIB_LD="${CC} -shared"
  1293. LDFLAGS="-Wl,--export-dynamic"
  1294. LD_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
  1295. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1296. ;;
  1297. *-pc-cygwin)
  1298. SHLIB_SUFFIX=".dll"
  1299. SHLIB_LD="${CC} -shared"
  1300. LDFLAGS="-Wl,--export-dynamic"
  1301. LD_LIBRARY_PATH_VAR="PATH"
  1302. ;;
  1303. *-pc-mingw32 | *-w64-mingw32 | *-pc-msys)
  1304. SHLIB_SUFFIX=".dll"
  1305. SHLIB_LD="${CC} -shared"
  1306. LDFLAGS="-Wl,--export-dynamic,--enable-runtime-pseudo-reloc"
  1307. LD_LIBRARY_PATH_VAR="PATH"
  1308. ;;
  1309. *-apple-darwin*)
  1310. SHLIB_CFLAGS="-fno-common"
  1311. SHLIB_SUFFIX=".dylib"
  1312. 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}"
  1313. LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
  1314. ;;
  1315. *-sun-solaris*)
  1316. # Note: If _REENTRANT isn't defined, then Solaris
  1317. # won't define thread-safe library routines.
  1318. cat >> confdefs.h <<\EOF
  1319. #define _REENTRANT 1
  1320. EOF
  1321. cat >> confdefs.h <<\EOF
  1322. #define _POSIX_PTHREAD_SEMANTICS 1
  1323. EOF
  1324. # Note: need the LIBS below, otherwise Tk won't find Tcl's
  1325. # symbols when dynamically loaded into tclsh.
  1326. if test "$GCC" = "yes" ; then
  1327. SHLIB_CFLAGS="-fPIC"
  1328. SHLIB_LD="$CC -shared"
  1329. LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
  1330. else
  1331. SHLIB_CFLAGS="-KPIC"
  1332. SHLIB_LD="/usr/ccs/bin/ld -G -z text"
  1333. LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
  1334. fi
  1335. SHLIB_SUFFIX=".so"
  1336. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1337. ;;
  1338. *-solaris2*)
  1339. # Note: Solaris is as of 2010 Oracle Solaris, not Sun Solaris
  1340. # Oracle Solaris derives from Solaris 2
  1341. # derives from SunOS 5
  1342. # derives from UNIX System V Release 4
  1343. # Note: If _REENTRANT isn't defined, then Solaris
  1344. # won't define thread-safe library routines.
  1345. cat >> confdefs.h <<\EOF
  1346. #define _REENTRANT 1
  1347. EOF
  1348. cat >> confdefs.h <<\EOF
  1349. #define _POSIX_PTHREAD_SEMANTICS 1
  1350. EOF
  1351. # Note: need the LIBS below, otherwise Tk won't find Tcl's
  1352. # symbols when dynamically loaded into tclsh.
  1353. if test "$GCC" = "yes" ; then
  1354. SHLIB_CFLAGS="-fPIC"
  1355. SHLIB_LD="$CC -shared"
  1356. LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
  1357. else
  1358. SHLIB_CFLAGS="-KPIC"
  1359. SHLIB_LD="/usr/ccs/bin/ld -G -z text"
  1360. LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
  1361. fi
  1362. SHLIB_SUFFIX=".so"
  1363. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1364. ;;
  1365. *-freebsd*)
  1366. # NOTE: only FreeBSD 4+ is supported
  1367. # FreeBSD 3.* and greater have ELF.
  1368. SHLIB_CFLAGS="-fPIC"
  1369. #SHLIB_LD="ld -Bshareable -x"
  1370. SHLIB_LD="${CC} -shared"
  1371. SHLIB_SUFFIX=".so"
  1372. LDFLAGS="-export-dynamic"
  1373. #LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
  1374. LD_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
  1375. # TODO: add optional pthread support with any combination of:
  1376. # CFLAGS="$CFLAGS -pthread"
  1377. # LDFLAGS="$LDFLAGS -lpthread"
  1378. # AC_DEFINE(_REENTRANT)
  1379. # AC_DEFINE(_POSIX_PTHREAD_SEMANTICS)
  1380. ;;
  1381. *-netbsd*)
  1382. # NetBSD has ELF.
  1383. SHLIB_CFLAGS="-fPIC"
  1384. SHLIB_LD="${CC} -shared"
  1385. SHLIB_LD_LIBS="${LIBS}"
  1386. LDFLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -export-dynamic'
  1387. SHLIB_LD_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -export-dynamic'
  1388. LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -L${LIB_RUNTIME_DIR}'
  1389. # some older NetBSD versions do not handle version numbers with dots.
  1390. #STLIB_SUFFIX='${GRASS_TRIM_DOTS}.a'
  1391. #SHLIB_SUFFIX='${GRASS_TRIM_DOTS}.so'
  1392. #GRASS_LIB_VERSIONS_OK=nodots
  1393. # NetBSD 6 does handle version numbers with dots.
  1394. STLIB_SUFFIX=".a"
  1395. SHLIB_SUFFIX=".so"
  1396. # TODO: add optional pthread support with any combination of:
  1397. # CFLAGS="$CFLAGS -pthread"
  1398. # LDFLAGS="$LDFLAGS -lpthread"
  1399. # AC_DEFINE(_REENTRANT)
  1400. # AC_DEFINE(_POSIX_PTHREAD_SEMANTICS)
  1401. ;;
  1402. *aix*)
  1403. # NOTE: do we need to support aix < 6 ?
  1404. LIBS="$LIBS -lc"
  1405. SHLIB_CFLAGS=""
  1406. LDFLAGS=""
  1407. if test "$GCC" = "yes" ; then
  1408. SHLIB_CFLAGS="-fPIC"
  1409. SHLIB_LD="$CC -shared"
  1410. LD_SEARCH_FLAGS='-Wl,-bsvr4,-R,${LIB_RUNTIME_DIR}'
  1411. else
  1412. # assume xlc
  1413. SHLIB_CFLAGS="-qmkshrobj"
  1414. SHLIB_LD="$CC -shared"
  1415. LD_SEARCH_FLAGS='-Wl,-bsvr4,-R,${LIB_RUNTIME_DIR}'
  1416. fi
  1417. SHLIB_SUFFIX=".so"
  1418. LD_LIBRARY_PATH_VAR="LIBPATH"
  1419. GRASS_NEEDS_EXP_FILE=1
  1420. GRASS_EXPORT_FILE_SUFFIX='${LIB_VER}.exp'
  1421. ;;
  1422. *)
  1423. { echo "configure: error: ***Unknown platform: $host***" 1>&2; exit 1; }
  1424. ;;
  1425. esac
  1426. LDFLAGS="${ac_save_ldflags} $LDFLAGS"
  1427. # Enable options
  1428. # Check whether --enable-w11 or --disable-w11 was given.
  1429. if test "${enable_w11+set}" = set; then
  1430. enableval="$enable_w11"
  1431. :
  1432. else
  1433. enable_w11=no
  1434. fi
  1435. # With options
  1436. # Check whether --with-cxx or --without-cxx was given.
  1437. if test "${with_cxx+set}" = set; then
  1438. withval="$with_cxx"
  1439. :
  1440. else
  1441. with_cxx=yes
  1442. fi
  1443. #LOC_ARG_WITH(g77, GNU Fortran 77, no)
  1444. # Check whether --with-macosx-archs or --without-macosx-archs was given.
  1445. if test "${with_macosx_archs+set}" = set; then
  1446. withval="$with_macosx_archs"
  1447. :
  1448. else
  1449. with_macosx_archs="no"
  1450. fi
  1451. # Check whether --with-macosx-sdk or --without-macosx-sdk was given.
  1452. if test "${with_macosx_sdk+set}" = set; then
  1453. withval="$with_macosx_sdk"
  1454. :
  1455. else
  1456. with_macosx_sdk="no"
  1457. fi
  1458. # Check whether --with-tiff or --without-tiff was given.
  1459. if test "${with_tiff+set}" = set; then
  1460. withval="$with_tiff"
  1461. :
  1462. else
  1463. with_tiff=yes
  1464. fi
  1465. # Check whether --with-png or --without-png was given.
  1466. if test "${with_png+set}" = set; then
  1467. withval="$with_png"
  1468. :
  1469. else
  1470. with_png=yes
  1471. fi
  1472. # Check whether --with-postgres or --without-postgres was given.
  1473. if test "${with_postgres+set}" = set; then
  1474. withval="$with_postgres"
  1475. :
  1476. else
  1477. with_postgres=no
  1478. fi
  1479. # Check whether --with-mysql or --without-mysql was given.
  1480. if test "${with_mysql+set}" = set; then
  1481. withval="$with_mysql"
  1482. :
  1483. else
  1484. with_mysql=no
  1485. fi
  1486. # Check whether --with-sqlite or --without-sqlite was given.
  1487. if test "${with_sqlite+set}" = set; then
  1488. withval="$with_sqlite"
  1489. :
  1490. else
  1491. with_sqlite=yes
  1492. fi
  1493. # Check whether --with-opengl or --without-opengl was given.
  1494. if test "${with_opengl+set}" = set; then
  1495. withval="$with_opengl"
  1496. :
  1497. else
  1498. with_opengl=yes
  1499. fi
  1500. # Check whether --with-odbc or --without-odbc was given.
  1501. if test "${with_odbc+set}" = set; then
  1502. withval="$with_odbc"
  1503. :
  1504. else
  1505. with_odbc=no
  1506. fi
  1507. # Check whether --with-fftw or --without-fftw was given.
  1508. if test "${with_fftw+set}" = set; then
  1509. withval="$with_fftw"
  1510. :
  1511. else
  1512. with_fftw=yes
  1513. fi
  1514. # Check whether --with-blas or --without-blas was given.
  1515. if test "${with_blas+set}" = set; then
  1516. withval="$with_blas"
  1517. :
  1518. else
  1519. with_blas=no
  1520. fi
  1521. # Check whether --with-lapack or --without-lapack was given.
  1522. if test "${with_lapack+set}" = set; then
  1523. withval="$with_lapack"
  1524. :
  1525. else
  1526. with_lapack=no
  1527. fi
  1528. # Check whether --with-cairo or --without-cairo was given.
  1529. if test "${with_cairo+set}" = set; then
  1530. withval="$with_cairo"
  1531. :
  1532. else
  1533. with_cairo=yes
  1534. fi
  1535. # Check whether --with-freetype or --without-freetype was given.
  1536. if test "${with_freetype+set}" = set; then
  1537. withval="$with_freetype"
  1538. :
  1539. else
  1540. with_freetype=yes
  1541. fi
  1542. # Check whether --with-nls or --without-nls was given.
  1543. if test "${with_nls+set}" = set; then
  1544. withval="$with_nls"
  1545. :
  1546. else
  1547. with_nls=no
  1548. fi
  1549. # Check whether --with-readline or --without-readline was given.
  1550. if test "${with_readline+set}" = set; then
  1551. withval="$with_readline"
  1552. :
  1553. else
  1554. with_readline=no
  1555. fi
  1556. # Check whether --with-opendwg or --without-opendwg was given.
  1557. if test "${with_opendwg+set}" = set; then
  1558. withval="$with_opendwg"
  1559. :
  1560. else
  1561. with_opendwg=no
  1562. fi
  1563. # Check whether --with-regex or --without-regex was given.
  1564. if test "${with_regex+set}" = set; then
  1565. withval="$with_regex"
  1566. :
  1567. else
  1568. with_regex=yes
  1569. fi
  1570. # Check whether --with-pthread or --without-pthread was given.
  1571. if test "${with_pthread+set}" = set; then
  1572. withval="$with_pthread"
  1573. :
  1574. else
  1575. with_pthread=no
  1576. fi
  1577. # Check whether --with-openmp or --without-openmp was given.
  1578. if test "${with_openmp+set}" = set; then
  1579. withval="$with_openmp"
  1580. :
  1581. else
  1582. with_openmp=no
  1583. fi
  1584. # Check whether --with-opencl or --without-opencl was given.
  1585. if test "${with_opencl+set}" = set; then
  1586. withval="$with_opencl"
  1587. :
  1588. else
  1589. with_opencl=no
  1590. fi
  1591. # Check whether --with-bzlib or --without-bzlib was given.
  1592. if test "${with_bzlib+set}" = set; then
  1593. withval="$with_bzlib"
  1594. :
  1595. else
  1596. with_bzlib=no
  1597. fi
  1598. # Check whether --with-gdal or --without-gdal was given.
  1599. if test "${with_gdal+set}" = set; then
  1600. withval="$with_gdal"
  1601. :
  1602. fi
  1603. # Check whether --with-liblas or --without-liblas was given.
  1604. if test "${with_liblas+set}" = set; then
  1605. withval="$with_liblas"
  1606. :
  1607. else
  1608. with_liblas="no"
  1609. fi
  1610. # Check whether --with-pdal or --without-pdal was given.
  1611. if test "${with_pdal+set}" = set; then
  1612. withval="$with_pdal"
  1613. :
  1614. else
  1615. with_pdal="no"
  1616. fi
  1617. # Check whether --with-wxwidgets or --without-wxwidgets was given.
  1618. if test "${with_wxwidgets+set}" = set; then
  1619. withval="$with_wxwidgets"
  1620. :
  1621. else
  1622. with_wxwidgets="no"
  1623. fi
  1624. # Check whether --with-netcdf or --without-netcdf was given.
  1625. if test "${with_netcdf+set}" = set; then
  1626. withval="$with_netcdf"
  1627. :
  1628. else
  1629. with_netcdf="no"
  1630. fi
  1631. # With includes and libs options
  1632. # Check whether --with-geos or --without-geos was given.
  1633. if test "${with_geos+set}" = set; then
  1634. withval="$with_geos"
  1635. :
  1636. else
  1637. with_geos="no"
  1638. fi
  1639. # Check whether --with-includes or --without-includes was given.
  1640. if test "${with_includes+set}" = set; then
  1641. withval="$with_includes"
  1642. :
  1643. fi
  1644. # Check whether --with-libs or --without-libs was given.
  1645. if test "${with_libs+set}" = set; then
  1646. withval="$with_libs"
  1647. :
  1648. fi
  1649. # Check whether --with-zlib-includes or --without-zlib-includes was given.
  1650. if test "${with_zlib_includes+set}" = set; then
  1651. withval="$with_zlib_includes"
  1652. :
  1653. fi
  1654. # Check whether --with-zlib-libs or --without-zlib-libs was given.
  1655. if test "${with_zlib_libs+set}" = set; then
  1656. withval="$with_zlib_libs"
  1657. :
  1658. fi
  1659. # Check whether --with-bzlib-includes or --without-bzlib-includes was given.
  1660. if test "${with_bzlib_includes+set}" = set; then
  1661. withval="$with_bzlib_includes"
  1662. :
  1663. fi
  1664. # Check whether --with-bzlib-libs or --without-bzlib-libs was given.
  1665. if test "${with_bzlib_libs+set}" = set; then
  1666. withval="$with_bzlib_libs"
  1667. :
  1668. fi
  1669. # Check whether --with-readline-includes or --without-readline-includes was given.
  1670. if test "${with_readline_includes+set}" = set; then
  1671. withval="$with_readline_includes"
  1672. :
  1673. fi
  1674. # Check whether --with-readline-libs or --without-readline-libs was given.
  1675. if test "${with_readline_libs+set}" = set; then
  1676. withval="$with_readline_libs"
  1677. :
  1678. fi
  1679. # Check whether --with-tiff-includes or --without-tiff-includes was given.
  1680. if test "${with_tiff_includes+set}" = set; then
  1681. withval="$with_tiff_includes"
  1682. :
  1683. fi
  1684. # Check whether --with-tiff-libs or --without-tiff-libs was given.
  1685. if test "${with_tiff_libs+set}" = set; then
  1686. withval="$with_tiff_libs"
  1687. :
  1688. fi
  1689. # Check whether --with-png-includes or --without-png-includes was given.
  1690. if test "${with_png_includes+set}" = set; then
  1691. withval="$with_png_includes"
  1692. :
  1693. fi
  1694. # Check whether --with-png-libs or --without-png-libs was given.
  1695. if test "${with_png_libs+set}" = set; then
  1696. withval="$with_png_libs"
  1697. :
  1698. fi
  1699. # Check whether --with-postgres-includes or --without-postgres-includes was given.
  1700. if test "${with_postgres_includes+set}" = set; then
  1701. withval="$with_postgres_includes"
  1702. :
  1703. fi
  1704. # Check whether --with-postgres-libs or --without-postgres-libs was given.
  1705. if test "${with_postgres_libs+set}" = set; then
  1706. withval="$with_postgres_libs"
  1707. :
  1708. fi
  1709. # Check whether --with-mysql-includes or --without-mysql-includes was given.
  1710. if test "${with_mysql_includes+set}" = set; then
  1711. withval="$with_mysql_includes"
  1712. :
  1713. fi
  1714. # Check whether --with-mysql-libs or --without-mysql-libs was given.
  1715. if test "${with_mysql_libs+set}" = set; then
  1716. withval="$with_mysql_libs"
  1717. :
  1718. fi
  1719. # Check whether --with-sqlite-includes or --without-sqlite-includes was given.
  1720. if test "${with_sqlite_includes+set}" = set; then
  1721. withval="$with_sqlite_includes"
  1722. :
  1723. fi
  1724. # Check whether --with-sqlite-libs or --without-sqlite-libs was given.
  1725. if test "${with_sqlite_libs+set}" = set; then
  1726. withval="$with_sqlite_libs"
  1727. :
  1728. fi
  1729. # Check whether --with-opengl-includes or --without-opengl-includes was given.
  1730. if test "${with_opengl_includes+set}" = set; then
  1731. withval="$with_opengl_includes"
  1732. :
  1733. fi
  1734. # Check whether --with-opengl-libs or --without-opengl-libs was given.
  1735. if test "${with_opengl_libs+set}" = set; then
  1736. withval="$with_opengl_libs"
  1737. :
  1738. fi
  1739. # Check whether --with-opengl-framework or --without-opengl-framework was given.
  1740. if test "${with_opengl_framework+set}" = set; then
  1741. withval="$with_opengl_framework"
  1742. :
  1743. fi
  1744. # Check whether --with-odbc-includes or --without-odbc-includes was given.
  1745. if test "${with_odbc_includes+set}" = set; then
  1746. withval="$with_odbc_includes"
  1747. :
  1748. fi
  1749. # Check whether --with-odbc-libs or --without-odbc-libs was given.
  1750. if test "${with_odbc_libs+set}" = set; then
  1751. withval="$with_odbc_libs"
  1752. :
  1753. fi
  1754. # Check whether --with-fftw-includes or --without-fftw-includes was given.
  1755. if test "${with_fftw_includes+set}" = set; then
  1756. withval="$with_fftw_includes"
  1757. :
  1758. fi
  1759. # Check whether --with-fftw-libs or --without-fftw-libs was given.
  1760. if test "${with_fftw_libs+set}" = set; then
  1761. withval="$with_fftw_libs"
  1762. :
  1763. fi
  1764. # Check whether --with-blas-includes or --without-blas-includes was given.
  1765. if test "${with_blas_includes+set}" = set; then
  1766. withval="$with_blas_includes"
  1767. :
  1768. fi
  1769. # Check whether --with-blas-libs or --without-blas-libs was given.
  1770. if test "${with_blas_libs+set}" = set; then
  1771. withval="$with_blas_libs"
  1772. :
  1773. fi
  1774. # Check whether --with-lapack-includes or --without-lapack-includes was given.
  1775. if test "${with_lapack_includes+set}" = set; then
  1776. withval="$with_lapack_includes"
  1777. :
  1778. fi
  1779. # Check whether --with-lapack-libs or --without-lapack-libs was given.
  1780. if test "${with_lapack_libs+set}" = set; then
  1781. withval="$with_lapack_libs"
  1782. :
  1783. fi
  1784. # Check whether --with-cairo-includes or --without-cairo-includes was given.
  1785. if test "${with_cairo_includes+set}" = set; then
  1786. withval="$with_cairo_includes"
  1787. :
  1788. fi
  1789. # Check whether --with-cairo-libs or --without-cairo-libs was given.
  1790. if test "${with_cairo_libs+set}" = set; then
  1791. withval="$with_cairo_libs"
  1792. :
  1793. fi
  1794. # Check whether --with-cairo-ldflags or --without-cairo-ldflags was given.
  1795. if test "${with_cairo_ldflags+set}" = set; then
  1796. withval="$with_cairo_ldflags"
  1797. :
  1798. fi
  1799. # Check whether --with-freetype-includes or --without-freetype-includes was given.
  1800. if test "${with_freetype_includes+set}" = set; then
  1801. withval="$with_freetype_includes"
  1802. :
  1803. fi
  1804. # Check whether --with-freetype-libs or --without-freetype-libs was given.
  1805. if test "${with_freetype_libs+set}" = set; then
  1806. withval="$with_freetype_libs"
  1807. :
  1808. fi
  1809. # Check whether --with-proj-includes or --without-proj-includes was given.
  1810. if test "${with_proj_includes+set}" = set; then
  1811. withval="$with_proj_includes"
  1812. :
  1813. fi
  1814. # Check whether --with-proj-libs or --without-proj-libs was given.
  1815. if test "${with_proj_libs+set}" = set; then
  1816. withval="$with_proj_libs"
  1817. :
  1818. fi
  1819. # Check whether --with-proj-share or --without-proj-share was given.
  1820. if test "${with_proj_share+set}" = set; then
  1821. withval="$with_proj_share"
  1822. :
  1823. fi
  1824. # Check whether --with-opendwg-includes or --without-opendwg-includes was given.
  1825. if test "${with_opendwg_includes+set}" = set; then
  1826. withval="$with_opendwg_includes"
  1827. :
  1828. fi
  1829. # Check whether --with-opendwg-libs or --without-opendwg-libs was given.
  1830. if test "${with_opendwg_libs+set}" = set; then
  1831. withval="$with_opendwg_libs"
  1832. :
  1833. fi
  1834. # Check whether --with-regex-includes or --without-regex-includes was given.
  1835. if test "${with_regex_includes+set}" = set; then
  1836. withval="$with_regex_includes"
  1837. :
  1838. fi
  1839. # Check whether --with-regex-libs or --without-regex-libs was given.
  1840. if test "${with_regex_libs+set}" = set; then
  1841. withval="$with_regex_libs"
  1842. :
  1843. fi
  1844. # Check whether --with-pthread-includes or --without-pthread-includes was given.
  1845. if test "${with_pthread_includes+set}" = set; then
  1846. withval="$with_pthread_includes"
  1847. :
  1848. fi
  1849. # Check whether --with-pthread-libs or --without-pthread-libs was given.
  1850. if test "${with_pthread_libs+set}" = set; then
  1851. withval="$with_pthread_libs"
  1852. :
  1853. fi
  1854. # Check whether --with-openmp-includes or --without-openmp-includes was given.
  1855. if test "${with_openmp_includes+set}" = set; then
  1856. withval="$with_openmp_includes"
  1857. :
  1858. fi
  1859. # Check whether --with-openmp-libs or --without-openmp-libs was given.
  1860. if test "${with_openmp_libs+set}" = set; then
  1861. withval="$with_openmp_libs"
  1862. :
  1863. fi
  1864. # Check whether --with-opencl-includes or --without-opencl-includes was given.
  1865. if test "${with_opencl_includes+set}" = set; then
  1866. withval="$with_opencl_includes"
  1867. :
  1868. fi
  1869. # Check whether --with-opencl-libs or --without-opencl-libs was given.
  1870. if test "${with_opencl_libs+set}" = set; then
  1871. withval="$with_opencl_libs"
  1872. :
  1873. fi
  1874. #LOC_ARG_WITH_FRAMEWORK(opencl, OpenCL)
  1875. # Put this early on so CPPFLAGS and LDFLAGS have any additional dirs
  1876. # With includes option
  1877. # Handle Fortran compiler choice
  1878. #LOC_CHECK_USE(g77, GNU Fortran 77, USE_G77)
  1879. # Done checking fortran
  1880. echo $ac_n "checking for additional include dirs""... $ac_c" 1>&6
  1881. echo "configure:2358: checking for additional include dirs" >&5
  1882. case "$with_includes" in
  1883. y | ye | yes | n | no)
  1884. { echo "configure: error: *** You must supply a directory to list --with-includes." 1>&2; exit 1; }
  1885. ;;
  1886. esac
  1887. echo "$ac_t""$with_includes" 1>&6
  1888. if test -n "$with_includes"; then
  1889. for dir in $with_includes; do
  1890. if test -d "$dir"; then
  1891. INCLUDE_DIRS="$INCLUDE_DIRS -I$dir"
  1892. else
  1893. { echo "configure: error: *** Include directory $dir does not exist." 1>&2; exit 1; }
  1894. fi
  1895. done
  1896. CPPFLAGS="$CPPFLAGS $INCLUDE_DIRS"
  1897. fi
  1898. # With libs option
  1899. echo $ac_n "checking for additional library dirs""... $ac_c" 1>&6
  1900. echo "configure:2381: checking for additional library dirs" >&5
  1901. case "$with_libs" in
  1902. y | ye | yes | n | no)
  1903. { echo "configure: error: *** You must supply a directory list to --with-libs." 1>&2; exit 1; }
  1904. ;;
  1905. esac
  1906. echo "$ac_t""$with_libs" 1>&6
  1907. if test -n "$with_libs"; then
  1908. for dir in $with_libs; do
  1909. if test -d "$dir"; then
  1910. LIBRARY_DIRS="$LIBRARY_DIRS -L$dir"
  1911. else
  1912. { echo "configure: error: *** Library directory $dir does not exist." 1>&2; exit 1; }
  1913. fi
  1914. done
  1915. LDFLAGS="$LDFLAGS $LIBRARY_DIRS"
  1916. fi
  1917. # Programs and standard headers, libraries, functions
  1918. # Find a good install program. We prefer a C program (faster),
  1919. # so one script is as good as another. But avoid the broken or
  1920. # incompatible versions:
  1921. # SysV /etc/install, /usr/sbin/install
  1922. # SunOS /usr/etc/install
  1923. # IRIX /sbin/install
  1924. # AIX /bin/install
  1925. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1926. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1927. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1928. # ./install, which can be erroneously created by make from ./install.sh.
  1929. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1930. echo "configure:2415: checking for a BSD compatible install" >&5
  1931. if test -z "$INSTALL"; then
  1932. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  1933. for ac_dir in $PATH; do
  1934. # Account for people who put trailing slashes in PATH elements.
  1935. case "$ac_dir/" in
  1936. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1937. *)
  1938. # OSF1 and SCO ODT 3.0 have their own names for install.
  1939. # Don't use installbsd from OSF since it installs stuff as root
  1940. # by default.
  1941. for ac_prog in ginstall scoinst install; do
  1942. if test -f $ac_dir/$ac_prog; then
  1943. if test $ac_prog = install &&
  1944. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1945. # AIX install. It has an incompatible calling convention.
  1946. :
  1947. else
  1948. ac_cv_path_install="$ac_dir/$ac_prog -c"
  1949. break 2
  1950. fi
  1951. fi
  1952. done
  1953. ;;
  1954. esac
  1955. done
  1956. IFS="$ac_save_IFS"
  1957. if test "${ac_cv_path_install+set}" = set; then
  1958. INSTALL="$ac_cv_path_install"
  1959. else
  1960. # As a last resort, use the slow shell script. We don't cache a
  1961. # path for INSTALL within a source directory, because that will
  1962. # break other packages using the cache if that directory is
  1963. # removed, or if the path is relative.
  1964. INSTALL="$ac_install_sh"
  1965. fi
  1966. fi
  1967. echo "$ac_t""$INSTALL" 1>&6
  1968. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1969. # It thinks the first close brace ends the variable substitution.
  1970. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1971. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  1972. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1973. # Extract the first word of "flex", so it can be a program name with args.
  1974. set dummy flex; ac_word=$2
  1975. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1976. echo "configure:2468: checking for $ac_word" >&5
  1977. if test -n "$LEX"; then
  1978. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  1979. else
  1980. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1981. ac_dummy="$PATH"
  1982. for ac_dir in $ac_dummy; do
  1983. test -z "$ac_dir" && ac_dir=.
  1984. if test -f $ac_dir/$ac_word; then
  1985. ac_cv_prog_LEX="flex"
  1986. break
  1987. fi
  1988. done
  1989. IFS="$ac_save_ifs"
  1990. test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
  1991. fi
  1992. LEX="$ac_cv_prog_LEX"
  1993. if test -n "$LEX"; then
  1994. echo "$ac_t""$LEX" 1>&6
  1995. else
  1996. echo "$ac_t""no" 1>&6
  1997. fi
  1998. if test -z "$LEXLIB"
  1999. then
  2000. case "$LEX" in
  2001. flex*) ac_lib=fl ;;
  2002. *) ac_lib=l ;;
  2003. esac
  2004. echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
  2005. echo "configure:2499: checking for yywrap in -l$ac_lib" >&5
  2006. ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
  2007. ac_save_LIBS="$LIBS"
  2008. LIBS="-l$ac_lib $LIBS"
  2009. cat > conftest.$ac_ext <<EOF
  2010. #line 2505 "configure"
  2011. #include "confdefs.h"
  2012. /* Override any gcc2 internal prototype to avoid an error. */
  2013. /* We use char because int might match the return type of a gcc2
  2014. builtin and then its argument prototype would still apply. */
  2015. char yywrap();
  2016. int main() {
  2017. yywrap()
  2018. ; return 0; }
  2019. EOF
  2020. if { (eval echo configure:2516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2021. rm -rf conftest*
  2022. eval "ac_cv_lib_$ac_lib_var=yes"
  2023. else
  2024. echo "configure: failed program was:" >&5
  2025. cat conftest.$ac_ext >&5
  2026. rm -rf conftest*
  2027. eval "ac_cv_lib_$ac_lib_var=no"
  2028. fi
  2029. rm -f conftest*
  2030. LIBS="$ac_save_LIBS"
  2031. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2032. echo "$ac_t""yes" 1>&6
  2033. LEXLIB="-l$ac_lib"
  2034. else
  2035. echo "$ac_t""no" 1>&6
  2036. fi
  2037. fi
  2038. if test "$LEX" = "lex"; then
  2039. # Extract the first word of "lex", so it can be a program name with args.
  2040. set dummy lex; ac_word=$2
  2041. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2042. echo "configure:2541: checking for $ac_word" >&5
  2043. case "$LEXPATH" in
  2044. /*)
  2045. ac_cv_path_LEXPATH="$LEXPATH" # Let the user override the test with a path.
  2046. ;;
  2047. ?:/*)
  2048. ac_cv_path_LEXPATH="$LEXPATH" # Let the user override the test with a dos path.
  2049. ;;
  2050. *)
  2051. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2052. ac_dummy="$PATH"
  2053. for ac_dir in $ac_dummy; do
  2054. test -z "$ac_dir" && ac_dir=.
  2055. if test -f $ac_dir/$ac_word; then
  2056. ac_cv_path_LEXPATH="$ac_dir/$ac_word"
  2057. break
  2058. fi
  2059. done
  2060. IFS="$ac_save_ifs"
  2061. test -z "$ac_cv_path_LEXPATH" && ac_cv_path_LEXPATH="no"
  2062. ;;
  2063. esac
  2064. LEXPATH="$ac_cv_path_LEXPATH"
  2065. if test -n "$LEXPATH"; then
  2066. echo "$ac_t""$LEXPATH" 1>&6
  2067. else
  2068. echo "$ac_t""no" 1>&6
  2069. fi
  2070. if test "$LEXPATH" = "no"; then
  2071. { echo "configure: error: *** Unable to locate lex." 1>&2; exit 1; }
  2072. fi
  2073. fi
  2074. for ac_prog in 'bison -y' byacc
  2075. do
  2076. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2077. set dummy $ac_prog; ac_word=$2
  2078. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2079. echo "configure:2581: checking for $ac_word" >&5
  2080. if test -n "$YACC"; then
  2081. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  2082. else
  2083. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2084. ac_dummy="$PATH"
  2085. for ac_dir in $ac_dummy; do
  2086. test -z "$ac_dir" && ac_dir=.
  2087. if test -f $ac_dir/$ac_word; then
  2088. ac_cv_prog_YACC="$ac_prog"
  2089. break
  2090. fi
  2091. done
  2092. IFS="$ac_save_ifs"
  2093. fi
  2094. YACC="$ac_cv_prog_YACC"
  2095. if test -n "$YACC"; then
  2096. echo "$ac_t""$YACC" 1>&6
  2097. else
  2098. echo "$ac_t""no" 1>&6
  2099. fi
  2100. test -n "$YACC" && break
  2101. done
  2102. test -n "$YACC" || YACC="yacc"
  2103. if test "$YACC" = "yacc"; then
  2104. # Extract the first word of "yacc", so it can be a program name with args.
  2105. set dummy yacc; ac_word=$2
  2106. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2107. echo "configure:2612: checking for $ac_word" >&5
  2108. case "$YACCPATH" in
  2109. /*)
  2110. ac_cv_path_YACCPATH="$YACCPATH" # Let the user override the test with a path.
  2111. ;;
  2112. ?:/*)
  2113. ac_cv_path_YACCPATH="$YACCPATH" # Let the user override the test with a dos path.
  2114. ;;
  2115. *)
  2116. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2117. ac_dummy="$PATH"
  2118. for ac_dir in $ac_dummy; do
  2119. test -z "$ac_dir" && ac_dir=.
  2120. if test -f $ac_dir/$ac_word; then
  2121. ac_cv_path_YACCPATH="$ac_dir/$ac_word"
  2122. break
  2123. fi
  2124. done
  2125. IFS="$ac_save_ifs"
  2126. test -z "$ac_cv_path_YACCPATH" && ac_cv_path_YACCPATH="no"
  2127. ;;
  2128. esac
  2129. YACCPATH="$ac_cv_path_YACCPATH"
  2130. if test -n "$YACCPATH"; then
  2131. echo "$ac_t""$YACCPATH" 1>&6
  2132. else
  2133. echo "$ac_t""no" 1>&6
  2134. fi
  2135. if test "$YACCPATH" = "no"; then
  2136. { echo "configure: error: *** Unable to locate yacc." 1>&2; exit 1; }
  2137. fi
  2138. fi
  2139. # Extract the first word of "ranlib", so it can be a program name with args.
  2140. set dummy ranlib; ac_word=$2
  2141. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2142. echo "configure:2650: checking for $ac_word" >&5
  2143. if test -n "$RANLIB"; then
  2144. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2145. else
  2146. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2147. ac_dummy="$PATH"
  2148. for ac_dir in $ac_dummy; do
  2149. test -z "$ac_dir" && ac_dir=.
  2150. if test -f $ac_dir/$ac_word; then
  2151. ac_cv_prog_RANLIB="ranlib"
  2152. break
  2153. fi
  2154. done
  2155. IFS="$ac_save_ifs"
  2156. test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  2157. fi
  2158. RANLIB="$ac_cv_prog_RANLIB"
  2159. if test -n "$RANLIB"; then
  2160. echo "$ac_t""$RANLIB" 1>&6
  2161. else
  2162. echo "$ac_t""no" 1>&6
  2163. fi
  2164. for ac_prog in ar
  2165. do
  2166. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2167. set dummy $ac_prog; ac_word=$2
  2168. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2169. echo "configure:2679: checking for $ac_word" >&5
  2170. if test -n "$AR"; then
  2171. ac_cv_prog_AR="$AR" # Let the user override the test.
  2172. else
  2173. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2174. ac_dummy="$PATH"
  2175. for ac_dir in $ac_dummy; do
  2176. test -z "$ac_dir" && ac_dir=.
  2177. if test -f $ac_dir/$ac_word; then
  2178. ac_cv_prog_AR="$ac_prog"
  2179. break
  2180. fi
  2181. done
  2182. IFS="$ac_save_ifs"
  2183. fi
  2184. AR="$ac_cv_prog_AR"
  2185. if test -n "$AR"; then
  2186. echo "$ac_t""$AR" 1>&6
  2187. else
  2188. echo "$ac_t""no" 1>&6
  2189. fi
  2190. test -n "$AR" && break
  2191. done
  2192. for ac_prog in env
  2193. do
  2194. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2195. set dummy $ac_prog; ac_word=$2
  2196. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2197. echo "configure:2710: checking for $ac_word" >&5
  2198. if test -n "$ENV"; then
  2199. ac_cv_prog_ENV="$ENV" # Let the user override the test.
  2200. else
  2201. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2202. ac_dummy="$PATH"
  2203. for ac_dir in $ac_dummy; do
  2204. test -z "$ac_dir" && ac_dir=.
  2205. if test -f $ac_dir/$ac_word; then
  2206. ac_cv_prog_ENV="$ac_prog"
  2207. break
  2208. fi
  2209. done
  2210. IFS="$ac_save_ifs"
  2211. fi
  2212. ENV="$ac_cv_prog_ENV"
  2213. if test -n "$ENV"; then
  2214. echo "$ac_t""$ENV" 1>&6
  2215. else
  2216. echo "$ac_t""no" 1>&6
  2217. fi
  2218. test -n "$ENV" && break
  2219. done
  2220. # Extract the first word of "perl", so it can be a program name with args.
  2221. set dummy perl; ac_word=$2
  2222. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2223. echo "configure:2739: checking for $ac_word" >&5
  2224. case "$PERL" in
  2225. /*)
  2226. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  2227. ;;
  2228. ?:/*)
  2229. ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
  2230. ;;
  2231. *)
  2232. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2233. ac_dummy="$PATH"
  2234. for ac_dir in $ac_dummy; do
  2235. test -z "$ac_dir" && ac_dir=.
  2236. if test -f $ac_dir/$ac_word; then
  2237. ac_cv_path_PERL="$ac_dir/$ac_word"
  2238. break
  2239. fi
  2240. done
  2241. IFS="$ac_save_ifs"
  2242. test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
  2243. ;;
  2244. esac
  2245. PERL="$ac_cv_path_PERL"
  2246. if test -n "$PERL"; then
  2247. echo "$ac_t""$PERL" 1>&6
  2248. else
  2249. echo "$ac_t""no" 1>&6
  2250. fi
  2251. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  2252. echo "configure:2770: checking how to run the C preprocessor" >&5
  2253. # On Suns, sometimes $CPP names a directory.
  2254. if test -n "$CPP" && test -d "$CPP"; then
  2255. CPP=
  2256. fi
  2257. if test -z "$CPP"; then
  2258. # This must be in double quotes, not single quotes, because CPP may get
  2259. # substituted into the Makefile and "${CC-cc}" will confuse make.
  2260. CPP="${CC-cc} -E"
  2261. # On the NeXT, cc -E runs the code through the compiler's parser,
  2262. # not just through cpp.
  2263. cat > conftest.$ac_ext <<EOF
  2264. #line 2783 "configure"
  2265. #include "confdefs.h"
  2266. #include <assert.h>
  2267. Syntax Error
  2268. EOF
  2269. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2270. { (eval echo configure:2789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2271. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2272. if test -z "$ac_err"; then
  2273. :
  2274. else
  2275. echo "$ac_err" >&5
  2276. echo "configure: failed program was:" >&5
  2277. cat conftest.$ac_ext >&5
  2278. rm -rf conftest*
  2279. CPP="${CC-cc} -E -traditional-cpp"
  2280. cat > conftest.$ac_ext <<EOF
  2281. #line 2800 "configure"
  2282. #include "confdefs.h"
  2283. #include <assert.h>
  2284. Syntax Error
  2285. EOF
  2286. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2287. { (eval echo configure:2806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2288. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2289. if test -z "$ac_err"; then
  2290. :
  2291. else
  2292. echo "$ac_err" >&5
  2293. echo "configure: failed program was:" >&5
  2294. cat conftest.$ac_ext >&5
  2295. rm -rf conftest*
  2296. CPP="${CC-cc} -nologo -E"
  2297. cat > conftest.$ac_ext <<EOF
  2298. #line 2817 "configure"
  2299. #include "confdefs.h"
  2300. #include <assert.h>
  2301. Syntax Error
  2302. EOF
  2303. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2304. { (eval echo configure:2823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2305. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2306. if test -z "$ac_err"; then
  2307. :
  2308. else
  2309. echo "$ac_err" >&5
  2310. echo "configure: failed program was:" >&5
  2311. cat conftest.$ac_ext >&5
  2312. rm -rf conftest*
  2313. CPP=/lib/cpp
  2314. fi
  2315. rm -f conftest*
  2316. fi
  2317. rm -f conftest*
  2318. fi
  2319. rm -f conftest*
  2320. ac_cv_prog_CPP="$CPP"
  2321. CPP="$ac_cv_prog_CPP"
  2322. else
  2323. ac_cv_prog_CPP="$CPP"
  2324. fi
  2325. echo "$ac_t""$CPP" 1>&6
  2326. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  2327. echo "configure:2847: checking for ANSI C header files" >&5
  2328. cat > conftest.$ac_ext <<EOF
  2329. #line 2850 "configure"
  2330. #include "confdefs.h"
  2331. #include <stdlib.h>
  2332. #include <stdarg.h>
  2333. #include <string.h>
  2334. #include <float.h>
  2335. EOF
  2336. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2337. { (eval echo configure:2858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2338. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2339. if test -z "$ac_err"; then
  2340. rm -rf conftest*
  2341. ac_cv_header_stdc=yes
  2342. else
  2343. echo "$ac_err" >&5
  2344. echo "configure: failed program was:" >&5
  2345. cat conftest.$ac_ext >&5
  2346. rm -rf conftest*
  2347. ac_cv_header_stdc=no
  2348. fi
  2349. rm -f conftest*
  2350. if test $ac_cv_header_stdc = yes; then
  2351. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2352. cat > conftest.$ac_ext <<EOF
  2353. #line 2875 "configure"
  2354. #include "confdefs.h"
  2355. #include <string.h>
  2356. EOF
  2357. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2358. egrep "memchr" >/dev/null 2>&1; then
  2359. :
  2360. else
  2361. rm -rf conftest*
  2362. ac_cv_header_stdc=no
  2363. fi
  2364. rm -f conftest*
  2365. fi
  2366. if test $ac_cv_header_stdc = yes; then
  2367. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2368. cat > conftest.$ac_ext <<EOF
  2369. #line 2893 "configure"
  2370. #include "confdefs.h"
  2371. #include <stdlib.h>
  2372. EOF
  2373. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2374. egrep "free" >/dev/null 2>&1; then
  2375. :
  2376. else
  2377. rm -rf conftest*
  2378. ac_cv_header_stdc=no
  2379. fi
  2380. rm -f conftest*
  2381. fi
  2382. if test $ac_cv_header_stdc = yes; then
  2383. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2384. if test "$cross_compiling" = yes; then
  2385. :
  2386. else
  2387. cat > conftest.$ac_ext <<EOF
  2388. #line 2914 "configure"
  2389. #include "confdefs.h"
  2390. #include <ctype.h>
  2391. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2392. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2393. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2394. int main () { int i; for (i = 0; i < 256; i++)
  2395. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  2396. exit (0); }
  2397. EOF
  2398. if { (eval echo configure:2925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2399. then
  2400. :
  2401. else
  2402. echo "configure: failed program was:" >&5
  2403. cat conftest.$ac_ext >&5
  2404. rm -fr conftest*
  2405. ac_cv_header_stdc=no
  2406. fi
  2407. rm -fr conftest*
  2408. fi
  2409. fi
  2410. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  2411. if test $ac_cv_header_stdc = yes; then
  2412. cat >> confdefs.h <<\EOF
  2413. #define STDC_HEADERS 1
  2414. EOF
  2415. fi
  2416. #AC_CHECK_HEADERS(curses.h limits.h termio.h termios.h unistd.h values.h)
  2417. for ac_hdr in limits.h termio.h termios.h unistd.h values.h f2c.h g2c.h
  2418. do
  2419. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2420. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2421. echo "configure:2952: checking for $ac_hdr" >&5
  2422. cat > conftest.$ac_ext <<EOF
  2423. #line 2955 "configure"
  2424. #include "confdefs.h"
  2425. #include <$ac_hdr>
  2426. EOF
  2427. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2428. { (eval echo configure:2960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2429. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2430. if test -z "$ac_err"; then
  2431. rm -rf conftest*
  2432. eval "ac_cv_header_$ac_safe=yes"
  2433. else
  2434. echo "$ac_err" >&5
  2435. echo "configure: failed program was:" >&5
  2436. cat conftest.$ac_ext >&5
  2437. rm -rf conftest*
  2438. eval "ac_cv_header_$ac_safe=no"
  2439. fi
  2440. rm -f conftest*
  2441. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2442. echo "$ac_t""yes" 1>&6
  2443. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2444. cat >> confdefs.h <<EOF
  2445. #define $ac_tr_hdr 1
  2446. EOF
  2447. else
  2448. echo "$ac_t""no" 1>&6
  2449. fi
  2450. done
  2451. for ac_hdr in sys/ioctl.h sys/mtio.h sys/resource.h sys/time.h
  2452. do
  2453. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2454. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2455. echo "configure:2989: checking for $ac_hdr" >&5
  2456. cat > conftest.$ac_ext <<EOF
  2457. #line 2992 "configure"
  2458. #include "confdefs.h"
  2459. #include <$ac_hdr>
  2460. EOF
  2461. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2462. { (eval echo configure:2997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2463. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2464. if test -z "$ac_err"; then
  2465. rm -rf conftest*
  2466. eval "ac_cv_header_$ac_safe=yes"
  2467. else
  2468. echo "$ac_err" >&5
  2469. echo "configure: failed program was:" >&5
  2470. cat conftest.$ac_ext >&5
  2471. rm -rf conftest*
  2472. eval "ac_cv_header_$ac_safe=no"
  2473. fi
  2474. rm -f conftest*
  2475. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2476. echo "$ac_t""yes" 1>&6
  2477. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2478. cat >> confdefs.h <<EOF
  2479. #define $ac_tr_hdr 1
  2480. EOF
  2481. else
  2482. echo "$ac_t""no" 1>&6
  2483. fi
  2484. done
  2485. for ac_hdr in sys/timeb.h sys/types.h sys/utsname.h
  2486. do
  2487. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2488. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2489. echo "configure:3026: checking for $ac_hdr" >&5
  2490. cat > conftest.$ac_ext <<EOF
  2491. #line 3029 "configure"
  2492. #include "confdefs.h"
  2493. #include <$ac_hdr>
  2494. EOF
  2495. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2496. { (eval echo configure:3034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2497. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2498. if test -z "$ac_err"; then
  2499. rm -rf conftest*
  2500. eval "ac_cv_header_$ac_safe=yes"
  2501. else
  2502. echo "$ac_err" >&5
  2503. echo "configure: failed program was:" >&5
  2504. cat conftest.$ac_ext >&5
  2505. rm -rf conftest*
  2506. eval "ac_cv_header_$ac_safe=no"
  2507. fi
  2508. rm -f conftest*
  2509. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2510. echo "$ac_t""yes" 1>&6
  2511. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2512. cat >> confdefs.h <<EOF
  2513. #define $ac_tr_hdr 1
  2514. EOF
  2515. else
  2516. echo "$ac_t""no" 1>&6
  2517. fi
  2518. done
  2519. for ac_hdr in libintl.h iconv.h
  2520. do
  2521. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2522. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2523. echo "configure:3063: checking for $ac_hdr" >&5
  2524. cat > conftest.$ac_ext <<EOF
  2525. #line 3066 "configure"
  2526. #include "confdefs.h"
  2527. #include <$ac_hdr>
  2528. EOF
  2529. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2530. { (eval echo configure:3071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2531. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2532. if test -z "$ac_err"; then
  2533. rm -rf conftest*
  2534. eval "ac_cv_header_$ac_safe=yes"
  2535. else
  2536. echo "$ac_err" >&5
  2537. echo "configure: failed program was:" >&5
  2538. cat conftest.$ac_ext >&5
  2539. rm -rf conftest*
  2540. eval "ac_cv_header_$ac_safe=no"
  2541. fi
  2542. rm -f conftest*
  2543. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2544. echo "$ac_t""yes" 1>&6
  2545. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2546. cat >> confdefs.h <<EOF
  2547. #define $ac_tr_hdr 1
  2548. EOF
  2549. else
  2550. echo "$ac_t""no" 1>&6
  2551. fi
  2552. done
  2553. for ac_hdr in langinfo.h
  2554. do
  2555. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2556. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2557. echo "configure:3100: checking for $ac_hdr" >&5
  2558. cat > conftest.$ac_ext <<EOF
  2559. #line 3103 "configure"
  2560. #include "confdefs.h"
  2561. #include <$ac_hdr>
  2562. EOF
  2563. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2564. { (eval echo configure:3108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2565. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2566. if test -z "$ac_err"; then
  2567. rm -rf conftest*
  2568. eval "ac_cv_header_$ac_safe=yes"
  2569. else
  2570. echo "$ac_err" >&5
  2571. echo "configure: failed program was:" >&5
  2572. cat conftest.$ac_ext >&5
  2573. rm -rf conftest*
  2574. eval "ac_cv_header_$ac_safe=no"
  2575. fi
  2576. rm -f conftest*
  2577. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2578. echo "$ac_t""yes" 1>&6
  2579. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2580. cat >> confdefs.h <<EOF
  2581. #define $ac_tr_hdr 1
  2582. EOF
  2583. else
  2584. echo "$ac_t""no" 1>&6
  2585. fi
  2586. done
  2587. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  2588. echo "configure:3134: checking whether time.h and sys/time.h may both be included" >&5
  2589. cat > conftest.$ac_ext <<EOF
  2590. #line 3137 "configure"
  2591. #include "confdefs.h"
  2592. #include <sys/types.h>
  2593. #include <sys/time.h>
  2594. #include <time.h>
  2595. int main() {
  2596. struct tm *tp;
  2597. ; return 0; }
  2598. EOF
  2599. if { (eval echo configure:3146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2600. rm -rf conftest*
  2601. ac_cv_header_time=yes
  2602. else
  2603. echo "configure: failed program was:" >&5
  2604. cat conftest.$ac_ext >&5
  2605. rm -rf conftest*
  2606. ac_cv_header_time=no
  2607. fi
  2608. rm -f conftest*
  2609. echo "$ac_t""$ac_cv_header_time" 1>&6
  2610. if test $ac_cv_header_time = yes; then
  2611. cat >> confdefs.h <<\EOF
  2612. #define TIME_WITH_SYS_TIME 1
  2613. EOF
  2614. fi
  2615. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  2616. echo "configure:3166: checking for off_t" >&5
  2617. cat > conftest.$ac_ext <<EOF
  2618. #line 3169 "configure"
  2619. #include "confdefs.h"
  2620. #include <sys/types.h>
  2621. #if STDC_HEADERS
  2622. #include <stdlib.h>
  2623. #include <stddef.h>
  2624. #endif
  2625. EOF
  2626. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2627. egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2628. rm -rf conftest*
  2629. ac_cv_type_off_t=yes
  2630. else
  2631. rm -rf conftest*
  2632. ac_cv_type_off_t=no
  2633. fi
  2634. rm -f conftest*
  2635. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  2636. if test $ac_cv_type_off_t = no; then
  2637. cat >> confdefs.h <<\EOF
  2638. #define off_t long
  2639. EOF
  2640. fi
  2641. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  2642. echo "configure:3196: checking for uid_t in sys/types.h" >&5
  2643. cat > conftest.$ac_ext <<EOF
  2644. #line 3199 "configure"
  2645. #include "confdefs.h"
  2646. #include <sys/types.h>
  2647. EOF
  2648. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2649. egrep "uid_t" >/dev/null 2>&1; then
  2650. rm -rf conftest*
  2651. ac_cv_type_uid_t=yes
  2652. else
  2653. rm -rf conftest*
  2654. ac_cv_type_uid_t=no
  2655. fi
  2656. rm -f conftest*
  2657. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  2658. if test $ac_cv_type_uid_t = no; then
  2659. cat >> confdefs.h <<\EOF
  2660. #define uid_t int
  2661. EOF
  2662. cat >> confdefs.h <<\EOF
  2663. #define gid_t int
  2664. EOF
  2665. fi
  2666. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  2667. echo "configure:3227: checking return type of signal handlers" >&5
  2668. cat > conftest.$ac_ext <<EOF
  2669. #line 3230 "configure"
  2670. #include "confdefs.h"
  2671. #include <sys/types.h>
  2672. #include <signal.h>
  2673. #ifdef signal
  2674. #undef signal
  2675. #endif
  2676. #ifdef __cplusplus
  2677. extern "C" void (*signal (int, void (*)(int)))(int);
  2678. #else
  2679. void (*signal ()) ();
  2680. #endif
  2681. int main() {
  2682. int i;
  2683. ; return 0; }
  2684. EOF
  2685. if { (eval echo configure:3247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2686. rm -rf conftest*
  2687. ac_cv_type_signal=void
  2688. else
  2689. echo "configure: failed program was:" >&5
  2690. cat conftest.$ac_ext >&5
  2691. rm -rf conftest*
  2692. ac_cv_type_signal=int
  2693. fi
  2694. rm -f conftest*
  2695. echo "$ac_t""$ac_cv_type_signal" 1>&6
  2696. cat >> confdefs.h <<EOF
  2697. #define RETSIGTYPE $ac_cv_type_signal
  2698. EOF
  2699. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  2700. echo "configure:3265: checking for Cygwin environment" >&5
  2701. cat > conftest.$ac_ext <<EOF
  2702. #line 3268 "configure"
  2703. #include "confdefs.h"
  2704. int main() {
  2705. #ifndef __CYGWIN__
  2706. #define __CYGWIN__ __CYGWIN32__
  2707. #endif
  2708. return __CYGWIN__;
  2709. ; return 0; }
  2710. EOF
  2711. if { (eval echo configure:3279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2712. rm -rf conftest*
  2713. ac_cv_cygwin=yes
  2714. else
  2715. echo "configure: failed program was:" >&5
  2716. cat conftest.$ac_ext >&5
  2717. rm -rf conftest*
  2718. ac_cv_cygwin=no
  2719. fi
  2720. rm -f conftest*
  2721. rm -f conftest*
  2722. echo "$ac_t""$ac_cv_cygwin" 1>&6
  2723. CYGWIN=
  2724. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  2725. for ac_func in ftime gethostname gettimeofday lseek nice time uname
  2726. do
  2727. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2728. echo "configure:3297: checking for $ac_func" >&5
  2729. cat > conftest.$ac_ext <<EOF
  2730. #line 3300 "configure"
  2731. #include "confdefs.h"
  2732. /* System header to define __stub macros and hopefully few prototypes,
  2733. which can conflict with char $ac_func(); below. */
  2734. #include <assert.h>
  2735. /* Override any gcc2 internal prototype to avoid an error. */
  2736. /* We use char because int might match the return type of a gcc2
  2737. builtin and then its argument prototype would still apply. */
  2738. char $ac_func();
  2739. int main() {
  2740. /* The GNU C library defines this for functions which it implements
  2741. to always fail with ENOSYS. Some functions are actually named
  2742. something starting with __ and the normal name is an alias. */
  2743. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2744. choke me
  2745. #else
  2746. $ac_func();
  2747. #endif
  2748. ; return 0; }
  2749. EOF
  2750. if { (eval echo configure:3323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2751. rm -rf conftest*
  2752. eval "ac_cv_func_$ac_func=yes"
  2753. else
  2754. echo "configure: failed program was:" >&5
  2755. cat conftest.$ac_ext >&5
  2756. rm -rf conftest*
  2757. eval "ac_cv_func_$ac_func=no"
  2758. fi
  2759. rm -f conftest*
  2760. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2761. echo "$ac_t""yes" 1>&6
  2762. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2763. cat >> confdefs.h <<EOF
  2764. #define $ac_tr_func 1
  2765. EOF
  2766. else
  2767. echo "$ac_t""no" 1>&6
  2768. fi
  2769. done
  2770. for ac_func in seteuid setpriority setreuid setruid
  2771. do
  2772. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2773. echo "configure:3349: checking for $ac_func" >&5
  2774. cat > conftest.$ac_ext <<EOF
  2775. #line 3352 "configure"
  2776. #include "confdefs.h"
  2777. /* System header to define __stub macros and hopefully few prototypes,
  2778. which can conflict with char $ac_func(); below. */
  2779. #include <assert.h>
  2780. /* Override any gcc2 internal prototype to avoid an error. */
  2781. /* We use char because int might match the return type of a gcc2
  2782. builtin and then its argument prototype would still apply. */
  2783. char $ac_func();
  2784. int main() {
  2785. /* The GNU C library defines this for functions which it implements
  2786. to always fail with ENOSYS. Some functions are actually named
  2787. something starting with __ and the normal name is an alias. */
  2788. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2789. choke me
  2790. #else
  2791. $ac_func();
  2792. #endif
  2793. ; return 0; }
  2794. EOF
  2795. if { (eval echo configure:3375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2796. rm -rf conftest*
  2797. eval "ac_cv_func_$ac_func=yes"
  2798. else
  2799. echo "configure: failed program was:" >&5
  2800. cat conftest.$ac_ext >&5
  2801. rm -rf conftest*
  2802. eval "ac_cv_func_$ac_func=no"
  2803. fi
  2804. rm -f conftest*
  2805. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2806. echo "$ac_t""yes" 1>&6
  2807. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2808. cat >> confdefs.h <<EOF
  2809. #define $ac_tr_func 1
  2810. EOF
  2811. else
  2812. echo "$ac_t""no" 1>&6
  2813. fi
  2814. done
  2815. for ac_func in drand48
  2816. do
  2817. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2818. echo "configure:3401: checking for $ac_func" >&5
  2819. cat > conftest.$ac_ext <<EOF
  2820. #line 3404 "configure"
  2821. #include "confdefs.h"
  2822. /* System header to define __stub macros and hopefully few prototypes,
  2823. which can conflict with char $ac_func(); below. */
  2824. #include <assert.h>
  2825. /* Override any gcc2 internal prototype to avoid an error. */
  2826. /* We use char because int might match the return type of a gcc2
  2827. builtin and then its argument prototype would still apply. */
  2828. char $ac_func();
  2829. int main() {
  2830. /* The GNU C library defines this for functions which it implements
  2831. to always fail with ENOSYS. Some functions are actually named
  2832. something starting with __ and the normal name is an alias. */
  2833. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2834. choke me
  2835. #else
  2836. $ac_func();
  2837. #endif
  2838. ; return 0; }
  2839. EOF
  2840. if { (eval echo configure:3427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2841. rm -rf conftest*
  2842. eval "ac_cv_func_$ac_func=yes"
  2843. else
  2844. echo "configure: failed program was:" >&5
  2845. cat conftest.$ac_ext >&5
  2846. rm -rf conftest*
  2847. eval "ac_cv_func_$ac_func=no"
  2848. fi
  2849. rm -f conftest*
  2850. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2851. echo "$ac_t""yes" 1>&6
  2852. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2853. cat >> confdefs.h <<EOF
  2854. #define $ac_tr_func 1
  2855. EOF
  2856. else
  2857. echo "$ac_t""no" 1>&6
  2858. fi
  2859. done
  2860. for ac_func in putenv setenv
  2861. do
  2862. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2863. echo "configure:3453: checking for $ac_func" >&5
  2864. cat > conftest.$ac_ext <<EOF
  2865. #line 3456 "configure"
  2866. #include "confdefs.h"
  2867. /* System header to define __stub macros and hopefully few prototypes,
  2868. which can conflict with char $ac_func(); below. */
  2869. #include <assert.h>
  2870. /* Override any gcc2 internal prototype to avoid an error. */
  2871. /* We use char because int might match the return type of a gcc2
  2872. builtin and then its argument prototype would still apply. */
  2873. char $ac_func();
  2874. int main() {
  2875. /* The GNU C library defines this for functions which it implements
  2876. to always fail with ENOSYS. Some functions are actually named
  2877. something starting with __ and the normal name is an alias. */
  2878. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2879. choke me
  2880. #else
  2881. $ac_func();
  2882. #endif
  2883. ; return 0; }
  2884. EOF
  2885. if { (eval echo configure:3479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2886. rm -rf conftest*
  2887. eval "ac_cv_func_$ac_func=yes"
  2888. else
  2889. echo "configure: failed program was:" >&5
  2890. cat conftest.$ac_ext >&5
  2891. rm -rf conftest*
  2892. eval "ac_cv_func_$ac_func=no"
  2893. fi
  2894. rm -f conftest*
  2895. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2896. echo "$ac_t""yes" 1>&6
  2897. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2898. cat >> confdefs.h <<EOF
  2899. #define $ac_tr_func 1
  2900. EOF
  2901. else
  2902. echo "$ac_t""no" 1>&6
  2903. fi
  2904. done
  2905. for ac_func in nanosleep
  2906. do
  2907. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2908. echo "configure:3505: checking for $ac_func" >&5
  2909. cat > conftest.$ac_ext <<EOF
  2910. #line 3508 "configure"
  2911. #include "confdefs.h"
  2912. /* System header to define __stub macros and hopefully few prototypes,
  2913. which can conflict with char $ac_func(); below. */
  2914. #include <assert.h>
  2915. /* Override any gcc2 internal prototype to avoid an error. */
  2916. /* We use char because int might match the return type of a gcc2
  2917. builtin and then its argument prototype would still apply. */
  2918. char $ac_func();
  2919. int main() {
  2920. /* The GNU C library defines this for functions which it implements
  2921. to always fail with ENOSYS. Some functions are actually named
  2922. something starting with __ and the normal name is an alias. */
  2923. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2924. choke me
  2925. #else
  2926. $ac_func();
  2927. #endif
  2928. ; return 0; }
  2929. EOF
  2930. if { (eval echo configure:3531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2931. rm -rf conftest*
  2932. eval "ac_cv_func_$ac_func=yes"
  2933. else
  2934. echo "configure: failed program was:" >&5
  2935. cat conftest.$ac_ext >&5
  2936. rm -rf conftest*
  2937. eval "ac_cv_func_$ac_func=no"
  2938. fi
  2939. rm -f conftest*
  2940. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2941. echo "$ac_t""yes" 1>&6
  2942. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2943. cat >> confdefs.h <<EOF
  2944. #define $ac_tr_func 1
  2945. EOF
  2946. else
  2947. echo "$ac_t""no" 1>&6
  2948. fi
  2949. done
  2950. if test "$cross_compiling" != "yes" ; then
  2951. echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
  2952. echo "configure:3556: checking whether setpgrp takes no argument" >&5
  2953. if test "$cross_compiling" = yes; then
  2954. { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
  2955. else
  2956. cat > conftest.$ac_ext <<EOF
  2957. #line 3562 "configure"
  2958. #include "confdefs.h"
  2959. #ifdef HAVE_UNISTD_H
  2960. #include <unistd.h>
  2961. #endif
  2962. /*
  2963. * If this system has a BSD-style setpgrp, which takes arguments, exit
  2964. * successfully.
  2965. */
  2966. main()
  2967. {
  2968. if (setpgrp(1,1) == -1)
  2969. exit(0);
  2970. else
  2971. exit(1);
  2972. }
  2973. EOF
  2974. if { (eval echo configure:3582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2975. then
  2976. ac_cv_func_setpgrp_void=no
  2977. else
  2978. echo "configure: failed program was:" >&5
  2979. cat conftest.$ac_ext >&5
  2980. rm -fr conftest*
  2981. ac_cv_func_setpgrp_void=yes
  2982. fi
  2983. rm -fr conftest*
  2984. fi
  2985. echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
  2986. if test $ac_cv_func_setpgrp_void = yes; then
  2987. cat >> confdefs.h <<\EOF
  2988. #define SETPGRP_VOID 1
  2989. EOF
  2990. fi
  2991. else
  2992. CROSS_COMPILING=1
  2993. fi
  2994. echo $ac_n "checking for long long int""... $ac_c" 1>&6
  2995. echo "configure:3610: checking for long long int" >&5
  2996. cat > conftest.$ac_ext <<EOF
  2997. #line 3612 "configure"
  2998. #include "confdefs.h"
  2999. int main() {
  3000. long long int x;
  3001. ; return 0; }
  3002. EOF
  3003. if { (eval echo configure:3619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3004. rm -rf conftest*
  3005. echo "$ac_t""yes" 1>&6
  3006. cat >> confdefs.h <<\EOF
  3007. #define HAVE_LONG_LONG_INT 1
  3008. EOF
  3009. else
  3010. echo "configure: failed program was:" >&5
  3011. cat conftest.$ac_ext >&5
  3012. rm -rf conftest*
  3013. echo "$ac_t""no" 1>&6
  3014. fi
  3015. rm -f conftest*
  3016. echo $ac_n "checking for W11""... $ac_c" 1>&6
  3017. echo "configure:3639: checking for W11" >&5
  3018. case "$enable_w11" in
  3019. yes|no) echo "$ac_t"""$enable_w11"" 1>&6 ;;
  3020. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  3021. esac
  3022. USE_X11=
  3023. USE_W11=
  3024. XLIB=
  3025. XTLIB=
  3026. if test "$enable_w11" = "yes" ; then
  3027. X_CFLAGS=-I${SRCDIR}/display/drivers/windows/libW11
  3028. X_LIBS='-L$(LIBDIR)'
  3029. USE_W11="1"
  3030. USE_X11="1"
  3031. XLIB=-lX11
  3032. CFLAGS="$CFLAGS -D__W98__"
  3033. else
  3034. # If we find X, set shell vars x_includes and x_libraries to the
  3035. # paths, otherwise set no_x=yes.
  3036. # Uses ac_ vars as temps to allow command line to override cache and checks.
  3037. # --without-x overrides everything else, but does not touch the cache.
  3038. echo $ac_n "checking for X""... $ac_c" 1>&6
  3039. echo "configure:3667: checking for X" >&5
  3040. # Check whether --with-x or --without-x was given.
  3041. if test "${with_x+set}" = set; then
  3042. withval="$with_x"
  3043. :
  3044. fi
  3045. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  3046. if test "x$with_x" = xno; then
  3047. # The user explicitly disabled X.
  3048. have_x=disabled
  3049. else
  3050. if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  3051. # Both variables are already set.
  3052. have_x=yes
  3053. else
  3054. # One or both of the vars are not set, and there is no cached value.
  3055. ac_x_includes=NO ac_x_libraries=NO
  3056. rm -fr conftestdir
  3057. if mkdir conftestdir; then
  3058. cd conftestdir
  3059. # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  3060. cat > Imakefile <<'EOF'
  3061. acfindx:
  3062. @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  3063. EOF
  3064. if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  3065. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3066. eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  3067. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  3068. for ac_extension in a so sl; do
  3069. if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  3070. test -f $ac_im_libdir/libX11.$ac_extension; then
  3071. ac_im_usrlibdir=$ac_im_libdir; break
  3072. fi
  3073. done
  3074. # Screen out bogus values from the imake configuration. They are
  3075. # bogus both because they are the default anyway, and because
  3076. # using them would break gcc on systems where it needs fixed includes.
  3077. case "$ac_im_incroot" in
  3078. /usr/include) ;;
  3079. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
  3080. esac
  3081. case "$ac_im_usrlibdir" in
  3082. /usr/lib | /lib) ;;
  3083. *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
  3084. esac
  3085. fi
  3086. cd ..
  3087. rm -fr conftestdir
  3088. fi
  3089. if test "$ac_x_includes" = NO; then
  3090. # Guess where to find include files, by looking for this one X11 .h file.
  3091. test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  3092. # First, try using that file with no special directory specified.
  3093. cat > conftest.$ac_ext <<EOF
  3094. #line 3727 "configure"
  3095. #include "confdefs.h"
  3096. #include <$x_direct_test_include>
  3097. EOF
  3098. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3099. { (eval echo configure:3732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3100. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3101. if test -z "$ac_err"; then
  3102. rm -rf conftest*
  3103. # We can compile using X headers with no special include directory.
  3104. ac_x_includes=
  3105. else
  3106. echo "$ac_err" >&5
  3107. echo "configure: failed program was:" >&5
  3108. cat conftest.$ac_ext >&5
  3109. rm -rf conftest*
  3110. # Look for the header file in a standard set of common directories.
  3111. # Check X11 before X11Rn because it is often a symlink to the current release.
  3112. for ac_dir in \
  3113. /usr/X11/include \
  3114. /usr/X11R6/include \
  3115. /usr/X11R5/include \
  3116. /usr/X11R4/include \
  3117. \
  3118. /usr/include/X11 \
  3119. /usr/include/X11R6 \
  3120. /usr/include/X11R5 \
  3121. /usr/include/X11R4 \
  3122. \
  3123. /usr/local/X11/include \
  3124. /usr/local/X11R6/include \
  3125. /usr/local/X11R5/include \
  3126. /usr/local/X11R4/include \
  3127. \
  3128. /usr/local/include/X11 \
  3129. /usr/local/include/X11R6 \
  3130. /usr/local/include/X11R5 \
  3131. /usr/local/include/X11R4 \
  3132. \
  3133. /usr/X386/include \
  3134. /usr/x386/include \
  3135. /usr/XFree86/include/X11 \
  3136. \
  3137. /usr/include \
  3138. /usr/local/include \
  3139. /usr/unsupported/include \
  3140. /usr/athena/include \
  3141. /usr/local/x11r5/include \
  3142. /usr/lpp/Xamples/include \
  3143. \
  3144. /usr/openwin/include \
  3145. /usr/openwin/share/include \
  3146. ; \
  3147. do
  3148. if test -r "$ac_dir/$x_direct_test_include"; then
  3149. ac_x_includes=$ac_dir
  3150. break
  3151. fi
  3152. done
  3153. fi
  3154. rm -f conftest*
  3155. fi # $ac_x_includes = NO
  3156. if test "$ac_x_libraries" = NO; then
  3157. # Check for the libraries.
  3158. test -z "$x_direct_test_library" && x_direct_test_library=Xt
  3159. test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  3160. # See if we find them without any special options.
  3161. # Don't add to $LIBS permanently.
  3162. ac_save_LIBS="$LIBS"
  3163. LIBS="-l$x_direct_test_library $LIBS"
  3164. cat > conftest.$ac_ext <<EOF
  3165. #line 3801 "configure"
  3166. #include "confdefs.h"
  3167. int main() {
  3168. ${x_direct_test_function}()
  3169. ; return 0; }
  3170. EOF
  3171. if { (eval echo configure:3808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3172. rm -rf conftest*
  3173. LIBS="$ac_save_LIBS"
  3174. # We can link X programs with no special library path.
  3175. ac_x_libraries=
  3176. else
  3177. echo "configure: failed program was:" >&5
  3178. cat conftest.$ac_ext >&5
  3179. rm -rf conftest*
  3180. LIBS="$ac_save_LIBS"
  3181. # First see if replacing the include by lib works.
  3182. # Check X11 before X11Rn because it is often a symlink to the current release.
  3183. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  3184. /usr/X11/lib \
  3185. /usr/X11R6/lib \
  3186. /usr/X11R5/lib \
  3187. /usr/X11R4/lib \
  3188. \
  3189. /usr/lib/X11 \
  3190. /usr/lib/X11R6 \
  3191. /usr/lib/X11R5 \
  3192. /usr/lib/X11R4 \
  3193. \
  3194. /usr/local/X11/lib \
  3195. /usr/local/X11R6/lib \
  3196. /usr/local/X11R5/lib \
  3197. /usr/local/X11R4/lib \
  3198. \
  3199. /usr/local/lib/X11 \
  3200. /usr/local/lib/X11R6 \
  3201. /usr/local/lib/X11R5 \
  3202. /usr/local/lib/X11R4 \
  3203. \
  3204. /usr/X386/lib \
  3205. /usr/x386/lib \
  3206. /usr/XFree86/lib/X11 \
  3207. \
  3208. /usr/lib \
  3209. /usr/local/lib \
  3210. /usr/unsupported/lib \
  3211. /usr/athena/lib \
  3212. /usr/local/x11r5/lib \
  3213. /usr/lpp/Xamples/lib \
  3214. /lib/usr/lib/X11 \
  3215. \
  3216. /usr/openwin/lib \
  3217. /usr/openwin/share/lib \
  3218. ; \
  3219. do
  3220. for ac_extension in a so sl; do
  3221. if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  3222. ac_x_libraries=$ac_dir
  3223. break 2
  3224. fi
  3225. done
  3226. done
  3227. fi
  3228. rm -f conftest*
  3229. fi # $ac_x_libraries = NO
  3230. if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
  3231. # Didn't find X anywhere. Cache the known absence of X.
  3232. ac_cv_have_x="have_x=no"
  3233. else
  3234. # Record where we found X for the cache.
  3235. ac_cv_have_x="have_x=yes \
  3236. ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  3237. fi
  3238. fi
  3239. eval "$ac_cv_have_x"
  3240. fi # $with_x != no
  3241. if test "$have_x" != yes; then
  3242. echo "$ac_t""$have_x" 1>&6
  3243. no_x=yes
  3244. else
  3245. # If each of the values was on the command line, it overrides each guess.
  3246. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  3247. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  3248. # Update the cache value to reflect the command line values.
  3249. ac_cv_have_x="have_x=yes \
  3250. ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  3251. echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
  3252. fi
  3253. if test "$no_x" = yes; then
  3254. # Not all programs may use this symbol, but it does not hurt to define it.
  3255. cat >> confdefs.h <<\EOF
  3256. #define X_DISPLAY_MISSING 1
  3257. EOF
  3258. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  3259. else
  3260. if test -n "$x_includes"; then
  3261. X_CFLAGS="$X_CFLAGS -I$x_includes"
  3262. fi
  3263. # It would also be nice to do this for all -L options, not just this one.
  3264. if test -n "$x_libraries"; then
  3265. X_LIBS="$X_LIBS -L$x_libraries"
  3266. # For Solaris; some versions of Sun CC require a space after -R and
  3267. # others require no space. Words are not sufficient . . . .
  3268. case "`(uname -sr) 2>/dev/null`" in
  3269. "SunOS 5"*)
  3270. echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
  3271. echo "configure:3913: checking whether -R must be followed by a space" >&5
  3272. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
  3273. cat > conftest.$ac_ext <<EOF
  3274. #line 3916 "configure"
  3275. #include "confdefs.h"
  3276. int main() {
  3277. ; return 0; }
  3278. EOF
  3279. if { (eval echo configure:3923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3280. rm -rf conftest*
  3281. ac_R_nospace=yes
  3282. else
  3283. echo "configure: failed program was:" >&5
  3284. cat conftest.$ac_ext >&5
  3285. rm -rf conftest*
  3286. ac_R_nospace=no
  3287. fi
  3288. rm -f conftest*
  3289. if test $ac_R_nospace = yes; then
  3290. echo "$ac_t""no" 1>&6
  3291. X_LIBS="$X_LIBS -R$x_libraries"
  3292. else
  3293. LIBS="$ac_xsave_LIBS -R $x_libraries"
  3294. cat > conftest.$ac_ext <<EOF
  3295. #line 3939 "configure"
  3296. #include "confdefs.h"
  3297. int main() {
  3298. ; return 0; }
  3299. EOF
  3300. if { (eval echo configure:3946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3301. rm -rf conftest*
  3302. ac_R_space=yes
  3303. else
  3304. echo "configure: failed program was:" >&5
  3305. cat conftest.$ac_ext >&5
  3306. rm -rf conftest*
  3307. ac_R_space=no
  3308. fi
  3309. rm -f conftest*
  3310. if test $ac_R_space = yes; then
  3311. echo "$ac_t""yes" 1>&6
  3312. X_LIBS="$X_LIBS -R $x_libraries"
  3313. else
  3314. echo "$ac_t""neither works" 1>&6
  3315. fi
  3316. fi
  3317. LIBS="$ac_xsave_LIBS"
  3318. esac
  3319. fi
  3320. # Check for system-dependent libraries X programs must link with.
  3321. # Do this before checking for the system-independent R6 libraries
  3322. # (-lICE), since we may need -lsocket or whatever for X linking.
  3323. if test "$ISC" = yes; then
  3324. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  3325. else
  3326. # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  3327. # libraries were built with DECnet support. And karl@cs.umb.edu says
  3328. # the Alpha needs dnet_stub (dnet does not exist).
  3329. echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
  3330. echo "configure:3978: checking for dnet_ntoa in -ldnet" >&5
  3331. ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  3332. ac_save_LIBS="$LIBS"
  3333. LIBS="-ldnet $LIBS"
  3334. cat > conftest.$ac_ext <<EOF
  3335. #line 3984 "configure"
  3336. #include "confdefs.h"
  3337. /* Override any gcc2 internal prototype to avoid an error. */
  3338. /* We use char because int might match the return type of a gcc2
  3339. builtin and then its argument prototype would still apply. */
  3340. char dnet_ntoa();
  3341. int main() {
  3342. dnet_ntoa()
  3343. ; return 0; }
  3344. EOF
  3345. if { (eval echo configure:3995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3346. rm -rf conftest*
  3347. eval "ac_cv_lib_$ac_lib_var=yes"
  3348. else
  3349. echo "configure: failed program was:" >&5
  3350. cat conftest.$ac_ext >&5
  3351. rm -rf conftest*
  3352. eval "ac_cv_lib_$ac_lib_var=no"
  3353. fi
  3354. rm -f conftest*
  3355. LIBS="$ac_save_LIBS"
  3356. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3357. echo "$ac_t""yes" 1>&6
  3358. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  3359. else
  3360. echo "$ac_t""no" 1>&6
  3361. fi
  3362. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  3363. echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
  3364. echo "configure:4016: checking for dnet_ntoa in -ldnet_stub" >&5
  3365. ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  3366. ac_save_LIBS="$LIBS"
  3367. LIBS="-ldnet_stub $LIBS"
  3368. cat > conftest.$ac_ext <<EOF
  3369. #line 4022 "configure"
  3370. #include "confdefs.h"
  3371. /* Override any gcc2 internal prototype to avoid an error. */
  3372. /* We use char because int might match the return type of a gcc2
  3373. builtin and then its argument prototype would still apply. */
  3374. char dnet_ntoa();
  3375. int main() {
  3376. dnet_ntoa()
  3377. ; return 0; }
  3378. EOF
  3379. if { (eval echo configure:4033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3380. rm -rf conftest*
  3381. eval "ac_cv_lib_$ac_lib_var=yes"
  3382. else
  3383. echo "configure: failed program was:" >&5
  3384. cat conftest.$ac_ext >&5
  3385. rm -rf conftest*
  3386. eval "ac_cv_lib_$ac_lib_var=no"
  3387. fi
  3388. rm -f conftest*
  3389. LIBS="$ac_save_LIBS"
  3390. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3391. echo "$ac_t""yes" 1>&6
  3392. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  3393. else
  3394. echo "$ac_t""no" 1>&6
  3395. fi
  3396. fi
  3397. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  3398. # to get the SysV transport functions.
  3399. # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
  3400. # needs -lnsl.
  3401. # The nsl library prevents programs from opening the X display
  3402. # on Irix 5.2, according to dickey@clark.net.
  3403. echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
  3404. echo "configure:4061: checking for gethostbyname" >&5
  3405. cat > conftest.$ac_ext <<EOF
  3406. #line 4064 "configure"
  3407. #include "confdefs.h"
  3408. /* System header to define __stub macros and hopefully few prototypes,
  3409. which can conflict with char gethostbyname(); below. */
  3410. #include <assert.h>
  3411. /* Override any gcc2 internal prototype to avoid an error. */
  3412. /* We use char because int might match the return type of a gcc2
  3413. builtin and then its argument prototype would still apply. */
  3414. char gethostbyname();
  3415. int main() {
  3416. /* The GNU C library defines this for functions which it implements
  3417. to always fail with ENOSYS. Some functions are actually named
  3418. something starting with __ and the normal name is an alias. */
  3419. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  3420. choke me
  3421. #else
  3422. gethostbyname();
  3423. #endif
  3424. ; return 0; }
  3425. EOF
  3426. if { (eval echo configure:4087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3427. rm -rf conftest*
  3428. eval "ac_cv_func_gethostbyname=yes"
  3429. else
  3430. echo "configure: failed program was:" >&5
  3431. cat conftest.$ac_ext >&5
  3432. rm -rf conftest*
  3433. eval "ac_cv_func_gethostbyname=no"
  3434. fi
  3435. rm -f conftest*
  3436. if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  3437. echo "$ac_t""yes" 1>&6
  3438. :
  3439. else
  3440. echo "$ac_t""no" 1>&6
  3441. fi
  3442. if test $ac_cv_func_gethostbyname = no; then
  3443. echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  3444. echo "configure:4107: checking for gethostbyname in -lnsl" >&5
  3445. ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  3446. ac_save_LIBS="$LIBS"
  3447. LIBS="-lnsl $LIBS"
  3448. cat > conftest.$ac_ext <<EOF
  3449. #line 4113 "configure"
  3450. #include "confdefs.h"
  3451. /* Override any gcc2 internal prototype to avoid an error. */
  3452. /* We use char because int might match the return type of a gcc2
  3453. builtin and then its argument prototype would still apply. */
  3454. char gethostbyname();
  3455. int main() {
  3456. gethostbyname()
  3457. ; return 0; }
  3458. EOF
  3459. if { (eval echo configure:4124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3460. rm -rf conftest*
  3461. eval "ac_cv_lib_$ac_lib_var=yes"
  3462. else
  3463. echo "configure: failed program was:" >&5
  3464. cat conftest.$ac_ext >&5
  3465. rm -rf conftest*
  3466. eval "ac_cv_lib_$ac_lib_var=no"
  3467. fi
  3468. rm -f conftest*
  3469. LIBS="$ac_save_LIBS"
  3470. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3471. echo "$ac_t""yes" 1>&6
  3472. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  3473. else
  3474. echo "$ac_t""no" 1>&6
  3475. fi
  3476. fi
  3477. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  3478. # socket/setsockopt and other routines are undefined under SCO ODT
  3479. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  3480. # on later versions), says simon@lia.di.epfl.ch: it contains
  3481. # gethostby* variants that don't use the nameserver (or something).
  3482. # -lsocket must be given before -lnsl if both are needed.
  3483. # We assume that if connect needs -lnsl, so does gethostbyname.
  3484. echo $ac_n "checking for connect""... $ac_c" 1>&6
  3485. echo "configure:4153: checking for connect" >&5
  3486. cat > conftest.$ac_ext <<EOF
  3487. #line 4156 "configure"
  3488. #include "confdefs.h"
  3489. /* System header to define __stub macros and hopefully few prototypes,
  3490. which can conflict with char connect(); below. */
  3491. #include <assert.h>
  3492. /* Override any gcc2 internal prototype to avoid an error. */
  3493. /* We use char because int might match the return type of a gcc2
  3494. builtin and then its argument prototype would still apply. */
  3495. char connect();
  3496. int main() {
  3497. /* The GNU C library defines this for functions which it implements
  3498. to always fail with ENOSYS. Some functions are actually named
  3499. something starting with __ and the normal name is an alias. */
  3500. #if defined (__stub_connect) || defined (__stub___connect)
  3501. choke me
  3502. #else
  3503. connect();
  3504. #endif
  3505. ; return 0; }
  3506. EOF
  3507. if { (eval echo configure:4179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3508. rm -rf conftest*
  3509. eval "ac_cv_func_connect=yes"
  3510. else
  3511. echo "configure: failed program was:" >&5
  3512. cat conftest.$ac_ext >&5
  3513. rm -rf conftest*
  3514. eval "ac_cv_func_connect=no"
  3515. fi
  3516. rm -f conftest*
  3517. if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  3518. echo "$ac_t""yes" 1>&6
  3519. :
  3520. else
  3521. echo "$ac_t""no" 1>&6
  3522. fi
  3523. if test $ac_cv_func_connect = no; then
  3524. echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
  3525. echo "configure:4199: checking for connect in -lsocket" >&5
  3526. ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
  3527. ac_save_LIBS="$LIBS"
  3528. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  3529. cat > conftest.$ac_ext <<EOF
  3530. #line 4205 "configure"
  3531. #include "confdefs.h"
  3532. /* Override any gcc2 internal prototype to avoid an error. */
  3533. /* We use char because int might match the return type of a gcc2
  3534. builtin and then its argument prototype would still apply. */
  3535. char connect();
  3536. int main() {
  3537. connect()
  3538. ; return 0; }
  3539. EOF
  3540. if { (eval echo configure:4216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3541. rm -rf conftest*
  3542. eval "ac_cv_lib_$ac_lib_var=yes"
  3543. else
  3544. echo "configure: failed program was:" >&5
  3545. cat conftest.$ac_ext >&5
  3546. rm -rf conftest*
  3547. eval "ac_cv_lib_$ac_lib_var=no"
  3548. fi
  3549. rm -f conftest*
  3550. LIBS="$ac_save_LIBS"
  3551. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3552. echo "$ac_t""yes" 1>&6
  3553. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  3554. else
  3555. echo "$ac_t""no" 1>&6
  3556. fi
  3557. fi
  3558. # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
  3559. echo $ac_n "checking for remove""... $ac_c" 1>&6
  3560. echo "configure:4239: checking for remove" >&5
  3561. cat > conftest.$ac_ext <<EOF
  3562. #line 4242 "configure"
  3563. #include "confdefs.h"
  3564. /* System header to define __stub macros and hopefully few prototypes,
  3565. which can conflict with char remove(); below. */
  3566. #include <assert.h>
  3567. /* Override any gcc2 internal prototype to avoid an error. */
  3568. /* We use char because int might match the return type of a gcc2
  3569. builtin and then its argument prototype would still apply. */
  3570. char remove();
  3571. int main() {
  3572. /* The GNU C library defines this for functions which it implements
  3573. to always fail with ENOSYS. Some functions are actually named
  3574. something starting with __ and the normal name is an alias. */
  3575. #if defined (__stub_remove) || defined (__stub___remove)
  3576. choke me
  3577. #else
  3578. remove();
  3579. #endif
  3580. ; return 0; }
  3581. EOF
  3582. if { (eval echo configure:4265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3583. rm -rf conftest*
  3584. eval "ac_cv_func_remove=yes"
  3585. else
  3586. echo "configure: failed program was:" >&5
  3587. cat conftest.$ac_ext >&5
  3588. rm -rf conftest*
  3589. eval "ac_cv_func_remove=no"
  3590. fi
  3591. rm -f conftest*
  3592. if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
  3593. echo "$ac_t""yes" 1>&6
  3594. :
  3595. else
  3596. echo "$ac_t""no" 1>&6
  3597. fi
  3598. if test $ac_cv_func_remove = no; then
  3599. echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
  3600. echo "configure:4285: checking for remove in -lposix" >&5
  3601. ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
  3602. ac_save_LIBS="$LIBS"
  3603. LIBS="-lposix $LIBS"
  3604. cat > conftest.$ac_ext <<EOF
  3605. #line 4291 "configure"
  3606. #include "confdefs.h"
  3607. /* Override any gcc2 internal prototype to avoid an error. */
  3608. /* We use char because int might match the return type of a gcc2
  3609. builtin and then its argument prototype would still apply. */
  3610. char remove();
  3611. int main() {
  3612. remove()
  3613. ; return 0; }
  3614. EOF
  3615. if { (eval echo configure:4302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3616. rm -rf conftest*
  3617. eval "ac_cv_lib_$ac_lib_var=yes"
  3618. else
  3619. echo "configure: failed program was:" >&5
  3620. cat conftest.$ac_ext >&5
  3621. rm -rf conftest*
  3622. eval "ac_cv_lib_$ac_lib_var=no"
  3623. fi
  3624. rm -f conftest*
  3625. LIBS="$ac_save_LIBS"
  3626. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3627. echo "$ac_t""yes" 1>&6
  3628. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  3629. else
  3630. echo "$ac_t""no" 1>&6
  3631. fi
  3632. fi
  3633. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  3634. echo $ac_n "checking for shmat""... $ac_c" 1>&6
  3635. echo "configure:4325: checking for shmat" >&5
  3636. cat > conftest.$ac_ext <<EOF
  3637. #line 4328 "configure"
  3638. #include "confdefs.h"
  3639. /* System header to define __stub macros and hopefully few prototypes,
  3640. which can conflict with char shmat(); below. */
  3641. #include <assert.h>
  3642. /* Override any gcc2 internal prototype to avoid an error. */
  3643. /* We use char because int might match the return type of a gcc2
  3644. builtin and then its argument prototype would still apply. */
  3645. char shmat();
  3646. int main() {
  3647. /* The GNU C library defines this for functions which it implements
  3648. to always fail with ENOSYS. Some functions are actually named
  3649. something starting with __ and the normal name is an alias. */
  3650. #if defined (__stub_shmat) || defined (__stub___shmat)
  3651. choke me
  3652. #else
  3653. shmat();
  3654. #endif
  3655. ; return 0; }
  3656. EOF
  3657. if { (eval echo configure:4351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3658. rm -rf conftest*
  3659. eval "ac_cv_func_shmat=yes"
  3660. else
  3661. echo "configure: failed program was:" >&5
  3662. cat conftest.$ac_ext >&5
  3663. rm -rf conftest*
  3664. eval "ac_cv_func_shmat=no"
  3665. fi
  3666. rm -f conftest*
  3667. if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
  3668. echo "$ac_t""yes" 1>&6
  3669. :
  3670. else
  3671. echo "$ac_t""no" 1>&6
  3672. fi
  3673. if test $ac_cv_func_shmat = no; then
  3674. echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
  3675. echo "configure:4371: checking for shmat in -lipc" >&5
  3676. ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
  3677. ac_save_LIBS="$LIBS"
  3678. LIBS="-lipc $LIBS"
  3679. cat > conftest.$ac_ext <<EOF
  3680. #line 4377 "configure"
  3681. #include "confdefs.h"
  3682. /* Override any gcc2 internal prototype to avoid an error. */
  3683. /* We use char because int might match the return type of a gcc2
  3684. builtin and then its argument prototype would still apply. */
  3685. char shmat();
  3686. int main() {
  3687. shmat()
  3688. ; return 0; }
  3689. EOF
  3690. if { (eval echo configure:4388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3691. rm -rf conftest*
  3692. eval "ac_cv_lib_$ac_lib_var=yes"
  3693. else
  3694. echo "configure: failed program was:" >&5
  3695. cat conftest.$ac_ext >&5
  3696. rm -rf conftest*
  3697. eval "ac_cv_lib_$ac_lib_var=no"
  3698. fi
  3699. rm -f conftest*
  3700. LIBS="$ac_save_LIBS"
  3701. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3702. echo "$ac_t""yes" 1>&6
  3703. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  3704. else
  3705. echo "$ac_t""no" 1>&6
  3706. fi
  3707. fi
  3708. fi
  3709. # Check for libraries that X11R6 Xt/Xaw programs need.
  3710. ac_save_LDFLAGS="$LDFLAGS"
  3711. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  3712. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  3713. # check for ICE first), but we must link in the order -lSM -lICE or
  3714. # we get undefined symbols. So assume we have SM if we have ICE.
  3715. # These have to be linked with before -lX11, unlike the other
  3716. # libraries we check for below, so use a different variable.
  3717. # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  3718. echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
  3719. echo "configure:4420: checking for IceConnectionNumber in -lICE" >&5
  3720. ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
  3721. ac_save_LIBS="$LIBS"
  3722. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  3723. cat > conftest.$ac_ext <<EOF
  3724. #line 4426 "configure"
  3725. #include "confdefs.h"
  3726. /* Override any gcc2 internal prototype to avoid an error. */
  3727. /* We use char because int might match the return type of a gcc2
  3728. builtin and then its argument prototype would still apply. */
  3729. char IceConnectionNumber();
  3730. int main() {
  3731. IceConnectionNumber()
  3732. ; return 0; }
  3733. EOF
  3734. if { (eval echo configure:4437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3735. rm -rf conftest*
  3736. eval "ac_cv_lib_$ac_lib_var=yes"
  3737. else
  3738. echo "configure: failed program was:" >&5
  3739. cat conftest.$ac_ext >&5
  3740. rm -rf conftest*
  3741. eval "ac_cv_lib_$ac_lib_var=no"
  3742. fi
  3743. rm -f conftest*
  3744. LIBS="$ac_save_LIBS"
  3745. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3746. echo "$ac_t""yes" 1>&6
  3747. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  3748. else
  3749. echo "$ac_t""no" 1>&6
  3750. fi
  3751. LDFLAGS="$ac_save_LDFLAGS"
  3752. fi
  3753. if test "$no_x" != "yes"; then
  3754. USE_X11="1"
  3755. XLIB=-lX11
  3756. XTLIB=-lXt
  3757. fi
  3758. fi
  3759. # Note that some systems (FreeBSD for example) need an extra library for
  3760. # cuserid
  3761. ac_save_libs="$LIBS"
  3762. LIBS=""
  3763. echo $ac_n "checking for library containing cuserid""... $ac_c" 1>&6
  3764. echo "configure:4477: checking for library containing cuserid" >&5
  3765. ac_func_search_save_LIBS="$LIBS"
  3766. ac_cv_search_cuserid="no"
  3767. cat > conftest.$ac_ext <<EOF
  3768. #line 4482 "configure"
  3769. #include "confdefs.h"
  3770. /* Override any gcc2 internal prototype to avoid an error. */
  3771. /* We use char because int might match the return type of a gcc2
  3772. builtin and then its argument prototype would still apply. */
  3773. char cuserid();
  3774. int main() {
  3775. cuserid()
  3776. ; return 0; }
  3777. EOF
  3778. if { (eval echo configure:4493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3779. rm -rf conftest*
  3780. ac_cv_search_cuserid="none required"
  3781. else
  3782. echo "configure: failed program was:" >&5
  3783. cat conftest.$ac_ext >&5
  3784. fi
  3785. rm -f conftest*
  3786. test "$ac_cv_search_cuserid" = "no" && for i in compat; do
  3787. LIBS="-l$i $ac_func_search_save_LIBS"
  3788. cat > conftest.$ac_ext <<EOF
  3789. #line 4504 "configure"
  3790. #include "confdefs.h"
  3791. /* Override any gcc2 internal prototype to avoid an error. */
  3792. /* We use char because int might match the return type of a gcc2
  3793. builtin and then its argument prototype would still apply. */
  3794. char cuserid();
  3795. int main() {
  3796. cuserid()
  3797. ; return 0; }
  3798. EOF
  3799. if { (eval echo configure:4515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3800. rm -rf conftest*
  3801. ac_cv_search_cuserid="-l$i"
  3802. break
  3803. else
  3804. echo "configure: failed program was:" >&5
  3805. cat conftest.$ac_ext >&5
  3806. fi
  3807. rm -f conftest*
  3808. done
  3809. LIBS="$ac_func_search_save_LIBS"
  3810. echo "$ac_t""$ac_cv_search_cuserid" 1>&6
  3811. if test "$ac_cv_search_cuserid" != "no"; then
  3812. test "$ac_cv_search_cuserid" = "none required" || LIBS="$ac_cv_search_cuserid $LIBS"
  3813. else :
  3814. fi
  3815. DBMIEXTRALIB="$LIBS"
  3816. LIBS="$ac_save_libs"
  3817. for ac_func in asprintf
  3818. do
  3819. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3820. echo "configure:4541: checking for $ac_func" >&5
  3821. cat > conftest.$ac_ext <<EOF
  3822. #line 4544 "configure"
  3823. #include "confdefs.h"
  3824. /* System header to define __stub macros and hopefully few prototypes,
  3825. which can conflict with char $ac_func(); below. */
  3826. #include <assert.h>
  3827. /* Override any gcc2 internal prototype to avoid an error. */
  3828. /* We use char because int might match the return type of a gcc2
  3829. builtin and then its argument prototype would still apply. */
  3830. char $ac_func();
  3831. int main() {
  3832. /* The GNU C library defines this for functions which it implements
  3833. to always fail with ENOSYS. Some functions are actually named
  3834. something starting with __ and the normal name is an alias. */
  3835. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3836. choke me
  3837. #else
  3838. $ac_func();
  3839. #endif
  3840. ; return 0; }
  3841. EOF
  3842. if { (eval echo configure:4567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3843. rm -rf conftest*
  3844. eval "ac_cv_func_$ac_func=yes"
  3845. else
  3846. echo "configure: failed program was:" >&5
  3847. cat conftest.$ac_ext >&5
  3848. rm -rf conftest*
  3849. eval "ac_cv_func_$ac_func=no"
  3850. fi
  3851. rm -f conftest*
  3852. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3853. echo "$ac_t""yes" 1>&6
  3854. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3855. cat >> confdefs.h <<EOF
  3856. #define $ac_tr_func 1
  3857. EOF
  3858. else
  3859. echo "$ac_t""no" 1>&6
  3860. fi
  3861. done
  3862. # Test if mathlib needs -lm flag or is included with libc
  3863. echo $ac_n "checking for atan""... $ac_c" 1>&6
  3864. echo "configure:4594: checking for atan" >&5
  3865. cat > conftest.$ac_ext <<EOF
  3866. #line 4597 "configure"
  3867. #include "confdefs.h"
  3868. /* System header to define __stub macros and hopefully few prototypes,
  3869. which can conflict with char atan(); below. */
  3870. #include <assert.h>
  3871. /* Override any gcc2 internal prototype to avoid an error. */
  3872. /* We use char because int might match the return type of a gcc2
  3873. builtin and then its argument prototype would still apply. */
  3874. char atan();
  3875. int main() {
  3876. /* The GNU C library defines this for functions which it implements
  3877. to always fail with ENOSYS. Some functions are actually named
  3878. something starting with __ and the normal name is an alias. */
  3879. #if defined (__stub_atan) || defined (__stub___atan)
  3880. choke me
  3881. #else
  3882. atan();
  3883. #endif
  3884. ; return 0; }
  3885. EOF
  3886. if { (eval echo configure:4620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3887. rm -rf conftest*
  3888. eval "ac_cv_func_atan=yes"
  3889. else
  3890. echo "configure: failed program was:" >&5
  3891. cat conftest.$ac_ext >&5
  3892. rm -rf conftest*
  3893. eval "ac_cv_func_atan=no"
  3894. fi
  3895. rm -f conftest*
  3896. if eval "test \"`echo '$ac_cv_func_'atan`\" = yes"; then
  3897. echo "$ac_t""yes" 1>&6
  3898. MATHLIB=
  3899. else
  3900. echo "$ac_t""no" 1>&6
  3901. echo $ac_n "checking for atan in -lm""... $ac_c" 1>&6
  3902. echo "configure:4638: checking for atan in -lm" >&5
  3903. ac_lib_var=`echo m'_'atan | sed 'y%./+-%__p_%'`
  3904. ac_save_LIBS="$LIBS"
  3905. LIBS="-lm $LIBS"
  3906. cat > conftest.$ac_ext <<EOF
  3907. #line 4644 "configure"
  3908. #include "confdefs.h"
  3909. /* Override any gcc2 internal prototype to avoid an error. */
  3910. /* We use char because int might match the return type of a gcc2
  3911. builtin and then its argument prototype would still apply. */
  3912. char atan();
  3913. int main() {
  3914. atan()
  3915. ; return 0; }
  3916. EOF
  3917. if { (eval echo configure:4655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3918. rm -rf conftest*
  3919. eval "ac_cv_lib_$ac_lib_var=yes"
  3920. else
  3921. echo "configure: failed program was:" >&5
  3922. cat conftest.$ac_ext >&5
  3923. rm -rf conftest*
  3924. eval "ac_cv_lib_$ac_lib_var=no"
  3925. fi
  3926. rm -f conftest*
  3927. LIBS="$ac_save_LIBS"
  3928. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3929. echo "$ac_t""yes" 1>&6
  3930. MATHLIB=-lm
  3931. else
  3932. echo "$ac_t""no" 1>&6
  3933. { echo "configure: error: *** Failed check for math library." 1>&2; exit 1; }
  3934. fi
  3935. fi
  3936. echo $ac_n "checking for dlsym""... $ac_c" 1>&6
  3937. echo "configure:4682: checking for dlsym" >&5
  3938. cat > conftest.$ac_ext <<EOF
  3939. #line 4685 "configure"
  3940. #include "confdefs.h"
  3941. /* System header to define __stub macros and hopefully few prototypes,
  3942. which can conflict with char dlsym(); below. */
  3943. #include <assert.h>
  3944. /* Override any gcc2 internal prototype to avoid an error. */
  3945. /* We use char because int might match the return type of a gcc2
  3946. builtin and then its argument prototype would still apply. */
  3947. char dlsym();
  3948. int main() {
  3949. /* The GNU C library defines this for functions which it implements
  3950. to always fail with ENOSYS. Some functions are actually named
  3951. something starting with __ and the normal name is an alias. */
  3952. #if defined (__stub_dlsym) || defined (__stub___dlsym)
  3953. choke me
  3954. #else
  3955. dlsym();
  3956. #endif
  3957. ; return 0; }
  3958. EOF
  3959. if { (eval echo configure:4708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3960. rm -rf conftest*
  3961. eval "ac_cv_func_dlsym=yes"
  3962. else
  3963. echo "configure: failed program was:" >&5
  3964. cat conftest.$ac_ext >&5
  3965. rm -rf conftest*
  3966. eval "ac_cv_func_dlsym=no"
  3967. fi
  3968. rm -f conftest*
  3969. if eval "test \"`echo '$ac_cv_func_'dlsym`\" = yes"; then
  3970. echo "$ac_t""yes" 1>&6
  3971. DLLIB=
  3972. else
  3973. echo "$ac_t""no" 1>&6
  3974. echo $ac_n "checking for dlsym in -ldl""... $ac_c" 1>&6
  3975. echo "configure:4726: checking for dlsym in -ldl" >&5
  3976. ac_lib_var=`echo dl'_'dlsym | sed 'y%./+-%__p_%'`
  3977. ac_save_LIBS="$LIBS"
  3978. LIBS="-ldl $LIBS"
  3979. cat > conftest.$ac_ext <<EOF
  3980. #line 4732 "configure"
  3981. #include "confdefs.h"
  3982. /* Override any gcc2 internal prototype to avoid an error. */
  3983. /* We use char because int might match the return type of a gcc2
  3984. builtin and then its argument prototype would still apply. */
  3985. char dlsym();
  3986. int main() {
  3987. dlsym()
  3988. ; return 0; }
  3989. EOF
  3990. if { (eval echo configure:4743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3991. rm -rf conftest*
  3992. eval "ac_cv_lib_$ac_lib_var=yes"
  3993. else
  3994. echo "configure: failed program was:" >&5
  3995. cat conftest.$ac_ext >&5
  3996. rm -rf conftest*
  3997. eval "ac_cv_lib_$ac_lib_var=no"
  3998. fi
  3999. rm -f conftest*
  4000. LIBS="$ac_save_LIBS"
  4001. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4002. echo "$ac_t""yes" 1>&6
  4003. DLLIB=-ldl
  4004. else
  4005. echo "$ac_t""no" 1>&6
  4006. DLLIB=
  4007. fi
  4008. fi
  4009. echo $ac_n "checking for iconv""... $ac_c" 1>&6
  4010. echo "configure:4770: checking for iconv" >&5
  4011. cat > conftest.$ac_ext <<EOF
  4012. #line 4773 "configure"
  4013. #include "confdefs.h"
  4014. /* System header to define __stub macros and hopefully few prototypes,
  4015. which can conflict with char iconv(); below. */
  4016. #include <assert.h>
  4017. /* Override any gcc2 internal prototype to avoid an error. */
  4018. /* We use char because int might match the return type of a gcc2
  4019. builtin and then its argument prototype would still apply. */
  4020. char iconv();
  4021. int main() {
  4022. /* The GNU C library defines this for functions which it implements
  4023. to always fail with ENOSYS. Some functions are actually named
  4024. something starting with __ and the normal name is an alias. */
  4025. #if defined (__stub_iconv) || defined (__stub___iconv)
  4026. choke me
  4027. #else
  4028. iconv();
  4029. #endif
  4030. ; return 0; }
  4031. EOF
  4032. if { (eval echo configure:4796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4033. rm -rf conftest*
  4034. eval "ac_cv_func_iconv=yes"
  4035. else
  4036. echo "configure: failed program was:" >&5
  4037. cat conftest.$ac_ext >&5
  4038. rm -rf conftest*
  4039. eval "ac_cv_func_iconv=no"
  4040. fi
  4041. rm -f conftest*
  4042. if eval "test \"`echo '$ac_cv_func_'iconv`\" = yes"; then
  4043. echo "$ac_t""yes" 1>&6
  4044. ICONVLIB=
  4045. else
  4046. echo "$ac_t""no" 1>&6
  4047. echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
  4048. echo "configure:4814: checking for iconv in -liconv" >&5
  4049. ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
  4050. ac_save_LIBS="$LIBS"
  4051. LIBS="-liconv $LIBS"
  4052. cat > conftest.$ac_ext <<EOF
  4053. #line 4820 "configure"
  4054. #include "confdefs.h"
  4055. /* Override any gcc2 internal prototype to avoid an error. */
  4056. /* We use char because int might match the return type of a gcc2
  4057. builtin and then its argument prototype would still apply. */
  4058. char iconv();
  4059. int main() {
  4060. iconv()
  4061. ; return 0; }
  4062. EOF
  4063. if { (eval echo configure:4831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4064. rm -rf conftest*
  4065. eval "ac_cv_lib_$ac_lib_var=yes"
  4066. else
  4067. echo "configure: failed program was:" >&5
  4068. cat conftest.$ac_ext >&5
  4069. rm -rf conftest*
  4070. eval "ac_cv_lib_$ac_lib_var=no"
  4071. fi
  4072. rm -f conftest*
  4073. LIBS="$ac_save_LIBS"
  4074. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4075. echo "$ac_t""yes" 1>&6
  4076. ICONVLIB=-liconv
  4077. else
  4078. echo "$ac_t""no" 1>&6
  4079. echo $ac_n "checking for iconv in -lgiconv""... $ac_c" 1>&6
  4080. echo "configure:4850: checking for iconv in -lgiconv" >&5
  4081. ac_lib_var=`echo giconv'_'iconv | sed 'y%./+-%__p_%'`
  4082. ac_save_LIBS="$LIBS"
  4083. LIBS="-lgiconv $LIBS"
  4084. cat > conftest.$ac_ext <<EOF
  4085. #line 4856 "configure"
  4086. #include "confdefs.h"
  4087. /* Override any gcc2 internal prototype to avoid an error. */
  4088. /* We use char because int might match the return type of a gcc2
  4089. builtin and then its argument prototype would still apply. */
  4090. char iconv();
  4091. int main() {
  4092. iconv()
  4093. ; return 0; }
  4094. EOF
  4095. if { (eval echo configure:4867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4096. rm -rf conftest*
  4097. eval "ac_cv_lib_$ac_lib_var=yes"
  4098. else
  4099. echo "configure: failed program was:" >&5
  4100. cat conftest.$ac_ext >&5
  4101. rm -rf conftest*
  4102. eval "ac_cv_lib_$ac_lib_var=no"
  4103. fi
  4104. rm -f conftest*
  4105. LIBS="$ac_save_LIBS"
  4106. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4107. echo "$ac_t""yes" 1>&6
  4108. ICONVLIB=-lgiconv
  4109. else
  4110. echo "$ac_t""no" 1>&6
  4111. echo $ac_n "checking for libiconv""... $ac_c" 1>&6
  4112. echo "configure:4886: checking for libiconv" >&5
  4113. cat > conftest.$ac_ext <<EOF
  4114. #line 4889 "configure"
  4115. #include "confdefs.h"
  4116. /* System header to define __stub macros and hopefully few prototypes,
  4117. which can conflict with char libiconv(); below. */
  4118. #include <assert.h>
  4119. /* Override any gcc2 internal prototype to avoid an error. */
  4120. /* We use char because int might match the return type of a gcc2
  4121. builtin and then its argument prototype would still apply. */
  4122. char libiconv();
  4123. int main() {
  4124. /* The GNU C library defines this for functions which it implements
  4125. to always fail with ENOSYS. Some functions are actually named
  4126. something starting with __ and the normal name is an alias. */
  4127. #if defined (__stub_libiconv) || defined (__stub___libiconv)
  4128. choke me
  4129. #else
  4130. libiconv();
  4131. #endif
  4132. ; return 0; }
  4133. EOF
  4134. if { (eval echo configure:4912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4135. rm -rf conftest*
  4136. eval "ac_cv_func_libiconv=yes"
  4137. else
  4138. echo "configure: failed program was:" >&5
  4139. cat conftest.$ac_ext >&5
  4140. rm -rf conftest*
  4141. eval "ac_cv_func_libiconv=no"
  4142. fi
  4143. rm -f conftest*
  4144. if eval "test \"`echo '$ac_cv_func_'libiconv`\" = yes"; then
  4145. echo "$ac_t""yes" 1>&6
  4146. ICONVLIB=
  4147. else
  4148. echo "$ac_t""no" 1>&6
  4149. echo $ac_n "checking for libiconv in -liconv""... $ac_c" 1>&6
  4150. echo "configure:4930: checking for libiconv in -liconv" >&5
  4151. ac_lib_var=`echo iconv'_'libiconv | sed 'y%./+-%__p_%'`
  4152. ac_save_LIBS="$LIBS"
  4153. LIBS="-liconv $LIBS"
  4154. cat > conftest.$ac_ext <<EOF
  4155. #line 4936 "configure"
  4156. #include "confdefs.h"
  4157. /* Override any gcc2 internal prototype to avoid an error. */
  4158. /* We use char because int might match the return type of a gcc2
  4159. builtin and then its argument prototype would still apply. */
  4160. char libiconv();
  4161. int main() {
  4162. libiconv()
  4163. ; return 0; }
  4164. EOF
  4165. if { (eval echo configure:4947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4166. rm -rf conftest*
  4167. eval "ac_cv_lib_$ac_lib_var=yes"
  4168. else
  4169. echo "configure: failed program was:" >&5
  4170. cat conftest.$ac_ext >&5
  4171. rm -rf conftest*
  4172. eval "ac_cv_lib_$ac_lib_var=no"
  4173. fi
  4174. rm -f conftest*
  4175. LIBS="$ac_save_LIBS"
  4176. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4177. echo "$ac_t""yes" 1>&6
  4178. ICONVLIB=-liconv
  4179. else
  4180. echo "$ac_t""no" 1>&6
  4181. echo $ac_n "checking for libiconv in -lgiconv""... $ac_c" 1>&6
  4182. echo "configure:4966: checking for libiconv in -lgiconv" >&5
  4183. ac_lib_var=`echo giconv'_'libiconv | sed 'y%./+-%__p_%'`
  4184. ac_save_LIBS="$LIBS"
  4185. LIBS="-lgiconv $LIBS"
  4186. cat > conftest.$ac_ext <<EOF
  4187. #line 4972 "configure"
  4188. #include "confdefs.h"
  4189. /* Override any gcc2 internal prototype to avoid an error. */
  4190. /* We use char because int might match the return type of a gcc2
  4191. builtin and then its argument prototype would still apply. */
  4192. char libiconv();
  4193. int main() {
  4194. libiconv()
  4195. ; return 0; }
  4196. EOF
  4197. if { (eval echo configure:4983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4198. rm -rf conftest*
  4199. eval "ac_cv_lib_$ac_lib_var=yes"
  4200. else
  4201. echo "configure: failed program was:" >&5
  4202. cat conftest.$ac_ext >&5
  4203. rm -rf conftest*
  4204. eval "ac_cv_lib_$ac_lib_var=no"
  4205. fi
  4206. rm -f conftest*
  4207. LIBS="$ac_save_LIBS"
  4208. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4209. echo "$ac_t""yes" 1>&6
  4210. ICONVLIB=-lgiconv
  4211. else
  4212. echo "$ac_t""no" 1>&6
  4213. echo "configure: warning: *** Unable to locate iconv() function." 1>&2
  4214. ICONVLIB=
  4215. fi
  4216. fi
  4217. fi
  4218. fi
  4219. fi
  4220. fi
  4221. have_socket=1
  4222. echo $ac_n "checking for socket""... $ac_c" 1>&6
  4223. echo "configure:5020: checking for socket" >&5
  4224. cat > conftest.$ac_ext <<EOF
  4225. #line 5023 "configure"
  4226. #include "confdefs.h"
  4227. /* System header to define __stub macros and hopefully few prototypes,
  4228. which can conflict with char socket(); below. */
  4229. #include <assert.h>
  4230. /* Override any gcc2 internal prototype to avoid an error. */
  4231. /* We use char because int might match the return type of a gcc2
  4232. builtin and then its argument prototype would still apply. */
  4233. char socket();
  4234. int main() {
  4235. /* The GNU C library defines this for functions which it implements
  4236. to always fail with ENOSYS. Some functions are actually named
  4237. something starting with __ and the normal name is an alias. */
  4238. #if defined (__stub_socket) || defined (__stub___socket)
  4239. choke me
  4240. #else
  4241. socket();
  4242. #endif
  4243. ; return 0; }
  4244. EOF
  4245. if { (eval echo configure:5046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4246. rm -rf conftest*
  4247. eval "ac_cv_func_socket=yes"
  4248. else
  4249. echo "configure: failed program was:" >&5
  4250. cat conftest.$ac_ext >&5
  4251. rm -rf conftest*
  4252. eval "ac_cv_func_socket=no"
  4253. fi
  4254. rm -f conftest*
  4255. if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
  4256. echo "$ac_t""yes" 1>&6
  4257. SOCKLIB=
  4258. else
  4259. echo "$ac_t""no" 1>&6
  4260. echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
  4261. echo "configure:5064: checking for socket in -lsocket" >&5
  4262. ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
  4263. ac_save_LIBS="$LIBS"
  4264. LIBS="-lsocket $LIBS"
  4265. cat > conftest.$ac_ext <<EOF
  4266. #line 5070 "configure"
  4267. #include "confdefs.h"
  4268. /* Override any gcc2 internal prototype to avoid an error. */
  4269. /* We use char because int might match the return type of a gcc2
  4270. builtin and then its argument prototype would still apply. */
  4271. char socket();
  4272. int main() {
  4273. socket()
  4274. ; return 0; }
  4275. EOF
  4276. if { (eval echo configure:5081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4277. rm -rf conftest*
  4278. eval "ac_cv_lib_$ac_lib_var=yes"
  4279. else
  4280. echo "configure: failed program was:" >&5
  4281. cat conftest.$ac_ext >&5
  4282. rm -rf conftest*
  4283. eval "ac_cv_lib_$ac_lib_var=no"
  4284. fi
  4285. rm -f conftest*
  4286. LIBS="$ac_save_LIBS"
  4287. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4288. echo "$ac_t""yes" 1>&6
  4289. SOCKLIB=-lsocket
  4290. else
  4291. echo "$ac_t""no" 1>&6
  4292. have_socket=0
  4293. echo "configure: warning: *** Unable to locate socket() function." 1>&2
  4294. fi
  4295. fi
  4296. if test "$have_socket" = 1 ; then
  4297. HAVE_SOCKET=1
  4298. cat >> confdefs.h <<\EOF
  4299. #define HAVE_SOCKET 1
  4300. EOF
  4301. else
  4302. HAVE_SOCKET=
  4303. fi
  4304. # Mandatory zlib dependency
  4305. ZLIBLIBPATH=
  4306. ZLIBINCPATH=
  4307. ZLIB=
  4308. # With zlib includes directory
  4309. echo $ac_n "checking for location of zlib includes""... $ac_c" 1>&6
  4310. echo "configure:5129: checking for location of zlib includes" >&5
  4311. case "$with_zlib_includes" in
  4312. y | ye | yes | n | no)
  4313. { echo "configure: error: *** You must supply a directory to --with-zlib-includes." 1>&2; exit 1; }
  4314. ;;
  4315. esac
  4316. echo "$ac_t""$with_zlib_includes" 1>&6
  4317. if test -n "$with_zlib_includes" ; then
  4318. for dir in $with_zlib_includes; do
  4319. if test -d "$dir"; then
  4320. ZLIBINCPATH="$ZLIBINCPATH -I$dir"
  4321. else
  4322. { echo "configure: error: *** zlib includes directory $dir does not exist." 1>&2; exit 1; }
  4323. fi
  4324. done
  4325. fi
  4326. ac_save_cppflags="$CPPFLAGS"
  4327. CPPFLAGS="$ZLIBINCPATH $CPPFLAGS"
  4328. for ac_hdr in zlib.h
  4329. do
  4330. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4331. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4332. echo "configure:5155: checking for $ac_hdr" >&5
  4333. cat > conftest.$ac_ext <<EOF
  4334. #line 5158 "configure"
  4335. #include "confdefs.h"
  4336. #include <$ac_hdr>
  4337. EOF
  4338. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4339. { (eval echo configure:5163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4340. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4341. if test -z "$ac_err"; then
  4342. rm -rf conftest*
  4343. eval "ac_cv_header_$ac_safe=yes"
  4344. else
  4345. echo "$ac_err" >&5
  4346. echo "configure: failed program was:" >&5
  4347. cat conftest.$ac_ext >&5
  4348. rm -rf conftest*
  4349. eval "ac_cv_header_$ac_safe=no"
  4350. fi
  4351. rm -f conftest*
  4352. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4353. echo "$ac_t""yes" 1>&6
  4354. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4355. cat >> confdefs.h <<EOF
  4356. #define $ac_tr_hdr 1
  4357. EOF
  4358. else
  4359. echo "$ac_t""no" 1>&6
  4360. { echo "configure: error: *** Unable to locate zlib includes." 1>&2; exit 1; }
  4361. fi
  4362. done
  4363. CPPFLAGS=$ac_save_cppflags
  4364. # With zlib library directory
  4365. echo $ac_n "checking for location of zlib library""... $ac_c" 1>&6
  4366. echo "configure:5197: checking for location of zlib library" >&5
  4367. case "$with_zlib_libs" in
  4368. y | ye | yes | n | no)
  4369. { echo "configure: error: *** You must supply a directory to --with-zlib-libs." 1>&2; exit 1; }
  4370. ;;
  4371. esac
  4372. echo "$ac_t""$with_zlib_libs" 1>&6
  4373. if test -n "$with_zlib_libs"; then
  4374. for dir in $with_zlib_libs; do
  4375. if test -d "$dir"; then
  4376. ZLIBLIBPATH="$ZLIBLIBPATH -L$dir"
  4377. else
  4378. { echo "configure: error: *** zlib library directory $dir does not exist." 1>&2; exit 1; }
  4379. fi
  4380. done
  4381. fi
  4382. ac_save_ldflags="$LDFLAGS"
  4383. LDFLAGS="$ZLIBLIBPATH $LDFLAGS"
  4384. echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
  4385. echo "configure:5222: checking for deflate in -lz" >&5
  4386. ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
  4387. ac_save_LIBS="$LIBS"
  4388. LIBS="-lz $LIBS"
  4389. cat > conftest.$ac_ext <<EOF
  4390. #line 5228 "configure"
  4391. #include "confdefs.h"
  4392. /* Override any gcc2 internal prototype to avoid an error. */
  4393. /* We use char because int might match the return type of a gcc2
  4394. builtin and then its argument prototype would still apply. */
  4395. char deflate();
  4396. int main() {
  4397. deflate()
  4398. ; return 0; }
  4399. EOF
  4400. if { (eval echo configure:5239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4401. rm -rf conftest*
  4402. eval "ac_cv_lib_$ac_lib_var=yes"
  4403. else
  4404. echo "configure: failed program was:" >&5
  4405. cat conftest.$ac_ext >&5
  4406. rm -rf conftest*
  4407. eval "ac_cv_lib_$ac_lib_var=no"
  4408. fi
  4409. rm -f conftest*
  4410. LIBS="$ac_save_LIBS"
  4411. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4412. echo "$ac_t""yes" 1>&6
  4413. ZLIB="$ZLIB -lz "
  4414. else
  4415. echo "$ac_t""no" 1>&6
  4416. LDFLAGS=${ac_save_ldflags}
  4417. { echo "configure: error: *** Unable to locate zlib library." 1>&2; exit 1; }
  4418. fi
  4419. LDFLAGS=${ac_save_ldflags}
  4420. #
  4421. # Done checking zlib
  4422. # bzip2 support
  4423. echo $ac_n "checking whether to use bzlib""... $ac_c" 1>&6
  4424. echo "configure:5281: checking whether to use bzlib" >&5
  4425. echo "$ac_t"""$with_bzlib"" 1>&6
  4426. case "$with_bzlib" in
  4427. "no") USE_BZIP2= ;;
  4428. "yes") USE_BZIP2="1" ;;
  4429. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  4430. esac
  4431. if test -n "$USE_BZIP2"; then
  4432. BZLIBLIBPATH=
  4433. BZLIBINCPATH=
  4434. BZLIB=
  4435. # With bzip2 includes directory
  4436. echo $ac_n "checking for location of bzlib includes""... $ac_c" 1>&6
  4437. echo "configure:5301: checking for location of bzlib includes" >&5
  4438. case "$with_bzlib_includes" in
  4439. y | ye | yes | n | no)
  4440. { echo "configure: error: *** You must supply a directory to --with-bzlib-includes." 1>&2; exit 1; }
  4441. ;;
  4442. esac
  4443. echo "$ac_t""$with_bzlib_includes" 1>&6
  4444. if test -n "$with_bzlib_includes" ; then
  4445. for dir in $with_bzlib_includes; do
  4446. if test -d "$dir"; then
  4447. BZLIBINCPATH="$BZLIBINCPATH -I$dir"
  4448. else
  4449. { echo "configure: error: *** bzlib includes directory $dir does not exist." 1>&2; exit 1; }
  4450. fi
  4451. done
  4452. fi
  4453. ac_save_cppflags="$CPPFLAGS"
  4454. CPPFLAGS="$BZLIBINCPATH $CPPFLAGS"
  4455. for ac_hdr in bzlib.h
  4456. do
  4457. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4458. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4459. echo "configure:5327: checking for $ac_hdr" >&5
  4460. cat > conftest.$ac_ext <<EOF
  4461. #line 5330 "configure"
  4462. #include "confdefs.h"
  4463. #include <$ac_hdr>
  4464. EOF
  4465. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4466. { (eval echo configure:5335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4467. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4468. if test -z "$ac_err"; then
  4469. rm -rf conftest*
  4470. eval "ac_cv_header_$ac_safe=yes"
  4471. else
  4472. echo "$ac_err" >&5
  4473. echo "configure: failed program was:" >&5
  4474. cat conftest.$ac_ext >&5
  4475. rm -rf conftest*
  4476. eval "ac_cv_header_$ac_safe=no"
  4477. fi
  4478. rm -f conftest*
  4479. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4480. echo "$ac_t""yes" 1>&6
  4481. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4482. cat >> confdefs.h <<EOF
  4483. #define $ac_tr_hdr 1
  4484. EOF
  4485. else
  4486. echo "$ac_t""no" 1>&6
  4487. { echo "configure: error: *** Unable to locate bzlib includes." 1>&2; exit 1; }
  4488. fi
  4489. done
  4490. CPPFLAGS=$ac_save_cppflags
  4491. # With bzip2 library directory
  4492. echo $ac_n "checking for location of bzlib library""... $ac_c" 1>&6
  4493. echo "configure:5369: checking for location of bzlib library" >&5
  4494. case "$with_bzlib_libs" in
  4495. y | ye | yes | n | no)
  4496. { echo "configure: error: *** You must supply a directory to --with-bzlib-libs." 1>&2; exit 1; }
  4497. ;;
  4498. esac
  4499. echo "$ac_t""$with_bzlib_libs" 1>&6
  4500. if test -n "$with_bzlib_libs"; then
  4501. for dir in $with_bzlib_libs; do
  4502. if test -d "$dir"; then
  4503. BZLIBLIBPATH="$BZLIBLIBPATH -L$dir"
  4504. else
  4505. { echo "configure: error: *** bzlib library directory $dir does not exist." 1>&2; exit 1; }
  4506. fi
  4507. done
  4508. fi
  4509. ac_save_ldflags="$LDFLAGS"
  4510. LDFLAGS="$BZLIBLIBPATH $LDFLAGS"
  4511. echo $ac_n "checking for BZ2_bzBuffToBuffCompress in -lbz2""... $ac_c" 1>&6
  4512. echo "configure:5394: checking for BZ2_bzBuffToBuffCompress in -lbz2" >&5
  4513. ac_lib_var=`echo bz2'_'BZ2_bzBuffToBuffCompress | sed 'y%./+-%__p_%'`
  4514. ac_save_LIBS="$LIBS"
  4515. LIBS="-lbz2 $LIBS"
  4516. cat > conftest.$ac_ext <<EOF
  4517. #line 5400 "configure"
  4518. #include "confdefs.h"
  4519. /* Override any gcc2 internal prototype to avoid an error. */
  4520. /* We use char because int might match the return type of a gcc2
  4521. builtin and then its argument prototype would still apply. */
  4522. char BZ2_bzBuffToBuffCompress();
  4523. int main() {
  4524. BZ2_bzBuffToBuffCompress()
  4525. ; return 0; }
  4526. EOF
  4527. if { (eval echo configure:5411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4528. rm -rf conftest*
  4529. eval "ac_cv_lib_$ac_lib_var=yes"
  4530. else
  4531. echo "configure: failed program was:" >&5
  4532. cat conftest.$ac_ext >&5
  4533. rm -rf conftest*
  4534. eval "ac_cv_lib_$ac_lib_var=no"
  4535. fi
  4536. rm -f conftest*
  4537. LIBS="$ac_save_LIBS"
  4538. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4539. echo "$ac_t""yes" 1>&6
  4540. BZLIB="$BZLIB -lbz2 "
  4541. else
  4542. echo "$ac_t""no" 1>&6
  4543. LDFLAGS=${ac_save_ldflags}
  4544. { echo "configure: error: *** Unable to locate bzlib library." 1>&2; exit 1; }
  4545. fi
  4546. LDFLAGS=${ac_save_ldflags}
  4547. #
  4548. fi # $USE_BZIP2
  4549. # Done checking bzip2
  4550. # Mandatory PROJ dependency
  4551. PROJINC=
  4552. PROJLIB=
  4553. PROJSHARE=
  4554. # With PROJ includes directory
  4555. echo $ac_n "checking for location of External PROJ.4 includes""... $ac_c" 1>&6
  4556. echo "configure:5461: checking for location of External PROJ.4 includes" >&5
  4557. case "$with_proj_includes" in
  4558. y | ye | yes | n | no)
  4559. { echo "configure: error: *** You must supply a directory to --with-proj-includes." 1>&2; exit 1; }
  4560. ;;
  4561. esac
  4562. echo "$ac_t""$with_proj_includes" 1>&6
  4563. if test -n "$with_proj_includes" ; then
  4564. for dir in $with_proj_includes; do
  4565. if test -d "$dir"; then
  4566. PROJINC="$PROJINC -I$dir"
  4567. else
  4568. { echo "configure: error: *** External PROJ.4 includes directory $dir does not exist." 1>&2; exit 1; }
  4569. fi
  4570. done
  4571. fi
  4572. ac_save_cppflags="$CPPFLAGS"
  4573. CPPFLAGS="$PROJINC $CPPFLAGS"
  4574. for ac_hdr in proj_api.h
  4575. do
  4576. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4577. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4578. echo "configure:5487: checking for $ac_hdr" >&5
  4579. cat > conftest.$ac_ext <<EOF
  4580. #line 5490 "configure"
  4581. #include "confdefs.h"
  4582. #include <$ac_hdr>
  4583. EOF
  4584. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4585. { (eval echo configure:5495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4586. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4587. if test -z "$ac_err"; then
  4588. rm -rf conftest*
  4589. eval "ac_cv_header_$ac_safe=yes"
  4590. else
  4591. echo "$ac_err" >&5
  4592. echo "configure: failed program was:" >&5
  4593. cat conftest.$ac_ext >&5
  4594. rm -rf conftest*
  4595. eval "ac_cv_header_$ac_safe=no"
  4596. fi
  4597. rm -f conftest*
  4598. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4599. echo "$ac_t""yes" 1>&6
  4600. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4601. cat >> confdefs.h <<EOF
  4602. #define $ac_tr_hdr 1
  4603. EOF
  4604. else
  4605. echo "$ac_t""no" 1>&6
  4606. { echo "configure: error: *** Unable to locate External PROJ.4 includes." 1>&2; exit 1; }
  4607. fi
  4608. done
  4609. CPPFLAGS=$ac_save_cppflags
  4610. # PROJ version check
  4611. if test "$cross_compiling" = yes; then
  4612. echo "configure: warning: *** Cannot check PROJ.4 version (cross-compiling)." 1>&2
  4613. else
  4614. echo $ac_n "checking External PROJ.4 version""... $ac_c" 1>&6
  4615. echo "configure:5532: checking External PROJ.4 version" >&5
  4616. ac_save_cppflags="$CPPFLAGS"
  4617. CPPFLAGS="$PROJINC $CPPFLAGS"
  4618. if test "$cross_compiling" = yes; then
  4619. proj_ver=0
  4620. echo "$ac_t""unknown (cross-compiling)" 1>&6
  4621. else
  4622. cat > conftest.$ac_ext <<EOF
  4623. #line 5540 "configure"
  4624. #include "confdefs.h"
  4625. #include <stdio.h>
  4626. #include <proj_api.h>
  4627. int main(void) {
  4628. FILE *fp = fopen("conftestdata","w");
  4629. fprintf(fp, "%d", PJ_VERSION);
  4630. return 0;
  4631. }
  4632. EOF
  4633. if { (eval echo configure:5552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4634. then
  4635. proj_ver=`cat conftestdata`
  4636. echo "$ac_t""$proj_ver" 1>&6
  4637. else
  4638. echo "configure: failed program was:" >&5
  4639. cat conftest.$ac_ext >&5
  4640. rm -fr conftest*
  4641. { echo "configure: error: *** Could not determine External PROJ.4 version." 1>&2; exit 1; }
  4642. fi
  4643. rm -fr conftest*
  4644. fi
  4645. CPPFLAGS=$ac_save_cppflags
  4646. if test `expr "$proj_ver" \< 446` = 1 ; then
  4647. { echo "configure: error: *** PROJ.4.4.6 or later is required." 1>&2; exit 1; }
  4648. fi
  4649. fi
  4650. # With PROJ library directory
  4651. echo $ac_n "checking for location of External PROJ.4 library""... $ac_c" 1>&6
  4652. echo "configure:5577: checking for location of External PROJ.4 library" >&5
  4653. case "$with_proj_libs" in
  4654. y | ye | yes | n | no)
  4655. { echo "configure: error: *** You must supply a directory to --with-proj-libs." 1>&2; exit 1; }
  4656. ;;
  4657. esac
  4658. echo "$ac_t""$with_proj_libs" 1>&6
  4659. if test -n "$with_proj_libs"; then
  4660. for dir in $with_proj_libs; do
  4661. if test -d "$dir"; then
  4662. PROJLIB="$PROJLIB -L$dir"
  4663. else
  4664. { echo "configure: error: *** External PROJ.4 library directory $dir does not exist." 1>&2; exit 1; }
  4665. fi
  4666. done
  4667. fi
  4668. ac_save_ldflags="$LDFLAGS"
  4669. LDFLAGS="$PROJLIB $LDFLAGS"
  4670. echo $ac_n "checking for pj_get_def in -lproj""... $ac_c" 1>&6
  4671. echo "configure:5602: checking for pj_get_def in -lproj" >&5
  4672. ac_lib_var=`echo proj'_'pj_get_def | sed 'y%./+-%__p_%'`
  4673. ac_save_LIBS="$LIBS"
  4674. LIBS="-lproj $LIBS"
  4675. cat > conftest.$ac_ext <<EOF
  4676. #line 5608 "configure"
  4677. #include "confdefs.h"
  4678. /* Override any gcc2 internal prototype to avoid an error. */
  4679. /* We use char because int might match the return type of a gcc2
  4680. builtin and then its argument prototype would still apply. */
  4681. char pj_get_def();
  4682. int main() {
  4683. pj_get_def()
  4684. ; return 0; }
  4685. EOF
  4686. if { (eval echo configure:5619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4687. rm -rf conftest*
  4688. eval "ac_cv_lib_$ac_lib_var=yes"
  4689. else
  4690. echo "configure: failed program was:" >&5
  4691. cat conftest.$ac_ext >&5
  4692. rm -rf conftest*
  4693. eval "ac_cv_lib_$ac_lib_var=no"
  4694. fi
  4695. rm -f conftest*
  4696. LIBS="$ac_save_LIBS"
  4697. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4698. echo "$ac_t""yes" 1>&6
  4699. PROJLIB="$PROJLIB -lproj "
  4700. else
  4701. echo "$ac_t""no" 1>&6
  4702. LDFLAGS=${ac_save_ldflags}
  4703. { echo "configure: error: *** Unable to locate External PROJ.4 library." 1>&2; exit 1; }
  4704. fi
  4705. LDFLAGS=${ac_save_ldflags}
  4706. # With PROJ share directory
  4707. echo $ac_n "checking for location of External PROJ.4 data files""... $ac_c" 1>&6
  4708. echo "configure:5653: checking for location of External PROJ.4 data files" >&5
  4709. case "$with_proj_share" in
  4710. y | ye | yes | n | no)
  4711. { echo "configure: error: *** You must supply a directory to --with-proj-share." 1>&2; exit 1; }
  4712. ;;
  4713. esac
  4714. echo "$ac_t""$with_proj_share" 1>&6
  4715. if test -n "$with_proj_share" ; then
  4716. if test -d "$with_proj_share"; then
  4717. PROJSHARE="$with_proj_share"
  4718. else
  4719. { echo "configure: error: *** External PROJ.4 data directory $dir does not exist." 1>&2; exit 1; }
  4720. fi
  4721. fi
  4722. if test -z "$PROJSHARE" ; then
  4723. echo "configure: warning: *** External PROJ.4 directory not specified; default will be used" 1>&2
  4724. PROJSHARE=/usr/share/proj
  4725. fi
  4726. # LOC_CHECK_SHARE does not work when cross compiling
  4727. if test "$cross_compiling" = "yes" ; then
  4728. echo $ac_n "checking for epsg""... $ac_c" 1>&6
  4729. echo "configure:5677: checking for epsg" >&5
  4730. echo "$ac_t""unknown (cross-compiling)" 1>&6
  4731. else
  4732. ac_safe=`echo "$PROJSHARE/epsg" | sed 'y%./+-%__p_%'`
  4733. echo $ac_n "checking for $PROJSHARE/epsg""... $ac_c" 1>&6
  4734. echo "configure:5684: checking for $PROJSHARE/epsg" >&5
  4735. if test "$cross_compiling" = yes; then
  4736. { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
  4737. else
  4738. if test -r $PROJSHARE/epsg; then
  4739. eval "ac_cv_file_$ac_safe=yes"
  4740. else
  4741. eval "ac_cv_file_$ac_safe=no"
  4742. fi
  4743. fi
  4744. if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
  4745. echo "$ac_t""yes" 1>&6
  4746. :
  4747. else
  4748. echo "$ac_t""no" 1>&6
  4749. echo "configure: warning: *** Unable to locate PROJ data files." 1>&2
  4750. fi
  4751. fi
  4752. # Done checking PROJ
  4753. # Enable regex option
  4754. echo $ac_n "checking whether to use regex""... $ac_c" 1>&6
  4755. echo "configure:5717: checking whether to use regex" >&5
  4756. echo "$ac_t"""$with_regex"" 1>&6
  4757. case "$with_regex" in
  4758. "no") USE_REGEX= ;;
  4759. "yes") USE_REGEX="1" ;;
  4760. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  4761. esac
  4762. REGEXINCPATH=
  4763. REGEXLIBPATH=
  4764. REGEXLIB=
  4765. if test -n "$USE_REGEX"; then
  4766. # With regex includes directory
  4767. echo $ac_n "checking for location of regex includes""... $ac_c" 1>&6
  4768. echo "configure:5737: checking for location of regex includes" >&5
  4769. case "$with_regex_includes" in
  4770. y | ye | yes | n | no)
  4771. { echo "configure: error: *** You must supply a directory to --with-regex-includes." 1>&2; exit 1; }
  4772. ;;
  4773. esac
  4774. echo "$ac_t""$with_regex_includes" 1>&6
  4775. if test -n "$with_regex_includes" ; then
  4776. for dir in $with_regex_includes; do
  4777. if test -d "$dir"; then
  4778. REGEXINCPATH="$REGEXINCPATH -I$dir"
  4779. else
  4780. { echo "configure: error: *** regex includes directory $dir does not exist." 1>&2; exit 1; }
  4781. fi
  4782. done
  4783. fi
  4784. ac_save_cppflags="$CPPFLAGS"
  4785. CPPFLAGS="$REGEXINCPATH $CPPFLAGS"
  4786. for ac_hdr in regex.h
  4787. do
  4788. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4789. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4790. echo "configure:5763: checking for $ac_hdr" >&5
  4791. cat > conftest.$ac_ext <<EOF
  4792. #line 5766 "configure"
  4793. #include "confdefs.h"
  4794. #include <$ac_hdr>
  4795. EOF
  4796. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4797. { (eval echo configure:5771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4798. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4799. if test -z "$ac_err"; then
  4800. rm -rf conftest*
  4801. eval "ac_cv_header_$ac_safe=yes"
  4802. else
  4803. echo "$ac_err" >&5
  4804. echo "configure: failed program was:" >&5
  4805. cat conftest.$ac_ext >&5
  4806. rm -rf conftest*
  4807. eval "ac_cv_header_$ac_safe=no"
  4808. fi
  4809. rm -f conftest*
  4810. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4811. echo "$ac_t""yes" 1>&6
  4812. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4813. cat >> confdefs.h <<EOF
  4814. #define $ac_tr_hdr 1
  4815. EOF
  4816. else
  4817. echo "$ac_t""no" 1>&6
  4818. { echo "configure: error: *** Unable to locate regex includes." 1>&2; exit 1; }
  4819. fi
  4820. done
  4821. CPPFLAGS=$ac_save_cppflags
  4822. # With regex library directory
  4823. echo $ac_n "checking for location of regex library""... $ac_c" 1>&6
  4824. echo "configure:5805: checking for location of regex library" >&5
  4825. case "$with_regex_libs" in
  4826. y | ye | yes | n | no)
  4827. { echo "configure: error: *** You must supply a directory to --with-regex-libs." 1>&2; exit 1; }
  4828. ;;
  4829. esac
  4830. echo "$ac_t""$with_regex_libs" 1>&6
  4831. if test -n "$with_regex_libs"; then
  4832. for dir in $with_regex_libs; do
  4833. if test -d "$dir"; then
  4834. REGEXLIBPATH="$REGEXLIBPATH -L$dir"
  4835. else
  4836. { echo "configure: error: *** regex library directory $dir does not exist." 1>&2; exit 1; }
  4837. fi
  4838. done
  4839. fi
  4840. ac_save_libs="$LIBS"
  4841. ac_save_ldflags="$LDFLAGS"
  4842. LIBS=" $LIBS"
  4843. LDFLAGS=" $LDFLAGS"
  4844. echo $ac_n "checking for regcomp""... $ac_c" 1>&6
  4845. echo "configure:5830: checking for regcomp" >&5
  4846. cat > conftest.$ac_ext <<EOF
  4847. #line 5833 "configure"
  4848. #include "confdefs.h"
  4849. /* System header to define __stub macros and hopefully few prototypes,
  4850. which can conflict with char regcomp(); below. */
  4851. #include <assert.h>
  4852. /* Override any gcc2 internal prototype to avoid an error. */
  4853. /* We use char because int might match the return type of a gcc2
  4854. builtin and then its argument prototype would still apply. */
  4855. char regcomp();
  4856. int main() {
  4857. /* The GNU C library defines this for functions which it implements
  4858. to always fail with ENOSYS. Some functions are actually named
  4859. something starting with __ and the normal name is an alias. */
  4860. #if defined (__stub_regcomp) || defined (__stub___regcomp)
  4861. choke me
  4862. #else
  4863. regcomp();
  4864. #endif
  4865. ; return 0; }
  4866. EOF
  4867. if { (eval echo configure:5856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4868. rm -rf conftest*
  4869. eval "ac_cv_func_regcomp=yes"
  4870. else
  4871. echo "configure: failed program was:" >&5
  4872. cat conftest.$ac_ext >&5
  4873. rm -rf conftest*
  4874. eval "ac_cv_func_regcomp=no"
  4875. fi
  4876. rm -f conftest*
  4877. if eval "test \"`echo '$ac_cv_func_'regcomp`\" = yes"; then
  4878. echo "$ac_t""yes" 1>&6
  4879. REGEXLIB="$REGEXLIB "
  4880. else
  4881. echo "$ac_t""no" 1>&6
  4882. ac_save_ldflags="$LDFLAGS"
  4883. LDFLAGS="$REGEXLIBPATH $LDFLAGS"
  4884. echo $ac_n "checking for regcomp in -lregex""... $ac_c" 1>&6
  4885. echo "configure:5883: checking for regcomp in -lregex" >&5
  4886. ac_lib_var=`echo regex'_'regcomp | sed 'y%./+-%__p_%'`
  4887. ac_save_LIBS="$LIBS"
  4888. LIBS="-lregex $LIBS"
  4889. cat > conftest.$ac_ext <<EOF
  4890. #line 5889 "configure"
  4891. #include "confdefs.h"
  4892. /* Override any gcc2 internal prototype to avoid an error. */
  4893. /* We use char because int might match the return type of a gcc2
  4894. builtin and then its argument prototype would still apply. */
  4895. char regcomp();
  4896. int main() {
  4897. regcomp()
  4898. ; return 0; }
  4899. EOF
  4900. if { (eval echo configure:5900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4901. rm -rf conftest*
  4902. eval "ac_cv_lib_$ac_lib_var=yes"
  4903. else
  4904. echo "configure: failed program was:" >&5
  4905. cat conftest.$ac_ext >&5
  4906. rm -rf conftest*
  4907. eval "ac_cv_lib_$ac_lib_var=no"
  4908. fi
  4909. rm -f conftest*
  4910. LIBS="$ac_save_LIBS"
  4911. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4912. echo "$ac_t""yes" 1>&6
  4913. REGEXLIB="$REGEXLIB -lregex "
  4914. else
  4915. echo "$ac_t""no" 1>&6
  4916. LDFLAGS=${ac_save_ldflags}
  4917. { echo "configure: error: *** Unable to locate regex library." 1>&2; exit 1; }
  4918. fi
  4919. LDFLAGS=${ac_save_ldflags}
  4920. fi
  4921. LIBS=${ac_save_libs}
  4922. LDFLAGS=${ac_save_ldflags}
  4923. fi # $USE_REGEX
  4924. # Done checking regex
  4925. # Enable Readline option
  4926. echo $ac_n "checking whether to use Readline""... $ac_c" 1>&6
  4927. echo "configure:5950: checking whether to use Readline" >&5
  4928. echo "$ac_t"""$with_readline"" 1>&6
  4929. case "$with_readline" in
  4930. "no") USE_READLINE= ;;
  4931. "yes") USE_READLINE="1" ;;
  4932. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  4933. esac
  4934. READLINEINCPATH=
  4935. READLINELIBPATH=
  4936. READLINELIB=
  4937. HISTORYLIB=
  4938. if test -n "$USE_READLINE"; then
  4939. # With Readline includes directory
  4940. echo $ac_n "checking for location of Readline includes""... $ac_c" 1>&6
  4941. echo "configure:5971: checking for location of Readline includes" >&5
  4942. case "$with_readline_includes" in
  4943. y | ye | yes | n | no)
  4944. { echo "configure: error: *** You must supply a directory to --with-readline-includes." 1>&2; exit 1; }
  4945. ;;
  4946. esac
  4947. echo "$ac_t""$with_readline_includes" 1>&6
  4948. if test -n "$with_readline_includes" ; then
  4949. for dir in $with_readline_includes; do
  4950. if test -d "$dir"; then
  4951. READLINEINCPATH="$READLINEINCPATH -I$dir"
  4952. else
  4953. { echo "configure: error: *** Readline includes directory $dir does not exist." 1>&2; exit 1; }
  4954. fi
  4955. done
  4956. fi
  4957. ac_save_cppflags="$CPPFLAGS"
  4958. CPPFLAGS="$READLINEINCPATH $CPPFLAGS"
  4959. for ac_hdr in readline/readline.h
  4960. do
  4961. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4962. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4963. echo "configure:5997: checking for $ac_hdr" >&5
  4964. cat > conftest.$ac_ext <<EOF
  4965. #line 6000 "configure"
  4966. #include "confdefs.h"
  4967. #include <$ac_hdr>
  4968. EOF
  4969. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4970. { (eval echo configure:6005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4971. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4972. if test -z "$ac_err"; then
  4973. rm -rf conftest*
  4974. eval "ac_cv_header_$ac_safe=yes"
  4975. else
  4976. echo "$ac_err" >&5
  4977. echo "configure: failed program was:" >&5
  4978. cat conftest.$ac_ext >&5
  4979. rm -rf conftest*
  4980. eval "ac_cv_header_$ac_safe=no"
  4981. fi
  4982. rm -f conftest*
  4983. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4984. echo "$ac_t""yes" 1>&6
  4985. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4986. cat >> confdefs.h <<EOF
  4987. #define $ac_tr_hdr 1
  4988. EOF
  4989. else
  4990. echo "$ac_t""no" 1>&6
  4991. { echo "configure: error: *** Unable to locate Readline includes." 1>&2; exit 1; }
  4992. fi
  4993. done
  4994. CPPFLAGS=$ac_save_cppflags
  4995. ac_save_cppflags="$CPPFLAGS"
  4996. CPPFLAGS="$READLINEINCPATH $CPPFLAGS"
  4997. for ac_hdr in readline/history.h
  4998. do
  4999. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5000. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5001. echo "configure:6041: checking for $ac_hdr" >&5
  5002. cat > conftest.$ac_ext <<EOF
  5003. #line 6044 "configure"
  5004. #include "confdefs.h"
  5005. #include <$ac_hdr>
  5006. EOF
  5007. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5008. { (eval echo configure:6049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5009. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5010. if test -z "$ac_err"; then
  5011. rm -rf conftest*
  5012. eval "ac_cv_header_$ac_safe=yes"
  5013. else
  5014. echo "$ac_err" >&5
  5015. echo "configure: failed program was:" >&5
  5016. cat conftest.$ac_ext >&5
  5017. rm -rf conftest*
  5018. eval "ac_cv_header_$ac_safe=no"
  5019. fi
  5020. rm -f conftest*
  5021. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5022. echo "$ac_t""yes" 1>&6
  5023. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5024. cat >> confdefs.h <<EOF
  5025. #define $ac_tr_hdr 1
  5026. EOF
  5027. else
  5028. echo "$ac_t""no" 1>&6
  5029. { echo "configure: error: *** Unable to locate Readline includes." 1>&2; exit 1; }
  5030. fi
  5031. done
  5032. CPPFLAGS=$ac_save_cppflags
  5033. # With Readline library directory
  5034. echo $ac_n "checking for location of Readline library""... $ac_c" 1>&6
  5035. echo "configure:6083: checking for location of Readline library" >&5
  5036. case "$with_readline_libs" in
  5037. y | ye | yes | n | no)
  5038. { echo "configure: error: *** You must supply a directory to --with-readline-libs." 1>&2; exit 1; }
  5039. ;;
  5040. esac
  5041. echo "$ac_t""$with_readline_libs" 1>&6
  5042. if test -n "$with_readline_libs"; then
  5043. for dir in $with_readline_libs; do
  5044. if test -d "$dir"; then
  5045. READLINELIBPATH="$READLINELIBPATH -L$dir"
  5046. else
  5047. { echo "configure: error: *** Readline library directory $dir does not exist." 1>&2; exit 1; }
  5048. fi
  5049. done
  5050. fi
  5051. ac_save_ldflags="$LDFLAGS"
  5052. LDFLAGS="$READLINELIBPATH $LDFLAGS"
  5053. echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
  5054. echo "configure:6108: checking for readline in -lreadline" >&5
  5055. ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
  5056. ac_save_LIBS="$LIBS"
  5057. LIBS="-lreadline $LIBS"
  5058. cat > conftest.$ac_ext <<EOF
  5059. #line 6114 "configure"
  5060. #include "confdefs.h"
  5061. /* Override any gcc2 internal prototype to avoid an error. */
  5062. /* We use char because int might match the return type of a gcc2
  5063. builtin and then its argument prototype would still apply. */
  5064. char readline();
  5065. int main() {
  5066. readline()
  5067. ; return 0; }
  5068. EOF
  5069. if { (eval echo configure:6125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5070. rm -rf conftest*
  5071. eval "ac_cv_lib_$ac_lib_var=yes"
  5072. else
  5073. echo "configure: failed program was:" >&5
  5074. cat conftest.$ac_ext >&5
  5075. rm -rf conftest*
  5076. eval "ac_cv_lib_$ac_lib_var=no"
  5077. fi
  5078. rm -f conftest*
  5079. LIBS="$ac_save_LIBS"
  5080. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5081. echo "$ac_t""yes" 1>&6
  5082. READLINELIB="$READLINELIB -lreadline "
  5083. else
  5084. echo "$ac_t""no" 1>&6
  5085. LDFLAGS=${ac_save_ldflags}
  5086. { echo "configure: error: *** Unable to locate Readline library." 1>&2; exit 1; }
  5087. fi
  5088. LDFLAGS=${ac_save_ldflags}
  5089. ac_save_ldflags="$LDFLAGS"
  5090. LDFLAGS="$READLINELIBPATH $LDFLAGS"
  5091. echo $ac_n "checking for add_history in -lhistory""... $ac_c" 1>&6
  5092. echo "configure:6160: checking for add_history in -lhistory" >&5
  5093. ac_lib_var=`echo history'_'add_history | sed 'y%./+-%__p_%'`
  5094. ac_save_LIBS="$LIBS"
  5095. LIBS="-lhistory $LIBS"
  5096. cat > conftest.$ac_ext <<EOF
  5097. #line 6166 "configure"
  5098. #include "confdefs.h"
  5099. /* Override any gcc2 internal prototype to avoid an error. */
  5100. /* We use char because int might match the return type of a gcc2
  5101. builtin and then its argument prototype would still apply. */
  5102. char add_history();
  5103. int main() {
  5104. add_history()
  5105. ; return 0; }
  5106. EOF
  5107. if { (eval echo configure:6177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5108. rm -rf conftest*
  5109. eval "ac_cv_lib_$ac_lib_var=yes"
  5110. else
  5111. echo "configure: failed program was:" >&5
  5112. cat conftest.$ac_ext >&5
  5113. rm -rf conftest*
  5114. eval "ac_cv_lib_$ac_lib_var=no"
  5115. fi
  5116. rm -f conftest*
  5117. LIBS="$ac_save_LIBS"
  5118. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5119. echo "$ac_t""yes" 1>&6
  5120. HISTORYLIB="$HISTORYLIB -lhistory "
  5121. else
  5122. echo "$ac_t""no" 1>&6
  5123. LDFLAGS=${ac_save_ldflags}
  5124. { echo "configure: error: *** Unable to locate History library." 1>&2; exit 1; }
  5125. fi
  5126. LDFLAGS=${ac_save_ldflags}
  5127. fi # $USE_READLINE
  5128. # Done checking Readline
  5129. # GDAL option
  5130. echo $ac_n "checking whether to use GDAL""... $ac_c" 1>&6
  5131. echo "configure:6219: checking whether to use GDAL" >&5
  5132. GDAL_LIBS=
  5133. GDAL_CFLAGS=
  5134. USE_GDAL=
  5135. USE_OGR=
  5136. if test "`basename xx/$with_gdal`" = "gdal-config" ; then
  5137. GDAL_CONFIG="$with_gdal"
  5138. fi
  5139. if test "$with_gdal" = "no" ; then
  5140. echo "$ac_t""no" 1>&6
  5141. else
  5142. echo "$ac_t""yes" 1>&6
  5143. # Extract the first word of "gdal-config", so it can be a program name with args.
  5144. set dummy gdal-config; ac_word=$2
  5145. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5146. echo "configure:6237: checking for $ac_word" >&5
  5147. case "$GDAL_CONFIG" in
  5148. /*)
  5149. ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a path.
  5150. ;;
  5151. ?:/*)
  5152. ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a dos path.
  5153. ;;
  5154. *)
  5155. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5156. ac_dummy="$PATH"
  5157. for ac_dir in $ac_dummy; do
  5158. test -z "$ac_dir" && ac_dir=.
  5159. if test -f $ac_dir/$ac_word; then
  5160. ac_cv_path_GDAL_CONFIG="$ac_dir/$ac_word"
  5161. break
  5162. fi
  5163. done
  5164. IFS="$ac_save_ifs"
  5165. test -z "$ac_cv_path_GDAL_CONFIG" && ac_cv_path_GDAL_CONFIG="no"
  5166. ;;
  5167. esac
  5168. GDAL_CONFIG="$ac_cv_path_GDAL_CONFIG"
  5169. if test -n "$GDAL_CONFIG"; then
  5170. echo "$ac_t""$GDAL_CONFIG" 1>&6
  5171. else
  5172. echo "$ac_t""no" 1>&6
  5173. fi
  5174. if test "$GDAL_CONFIG" = "no" ; then
  5175. { echo "configure: error: *** couldn't find gdal-config" 1>&2; exit 1; }
  5176. fi
  5177. if test "$GDAL_CONFIG" != "" ; then
  5178. GDAL_LIBS=`"$GDAL_CONFIG" --libs`
  5179. GDAL_DEP_LIBS=`"$GDAL_CONFIG" --dep-libs`
  5180. GDAL_CFLAGS=`"$GDAL_CONFIG" --cflags`
  5181. USE_GDAL=1
  5182. if test `"$GDAL_CONFIG" --ogr-enabled` = "yes" ; then
  5183. cat >> confdefs.h <<\EOF
  5184. #define HAVE_OGR 1
  5185. EOF
  5186. USE_OGR=1
  5187. fi
  5188. fi
  5189. GDAL=
  5190. ac_save_libs="$LIBS"
  5191. ac_save_cflags="$CFLAGS"
  5192. LIBS="$LIBS $GDAL_LIBS"
  5193. CFLAGS="$CFLAGS $GDAL_CFLAGS"
  5194. cat > conftest.$ac_ext <<EOF
  5195. #line 6292 "configure"
  5196. #include "confdefs.h"
  5197. #include <gdal.h>
  5198. int main() {
  5199. GDALOpen("foo", GA_ReadOnly);
  5200. ; return 0; }
  5201. EOF
  5202. if { (eval echo configure:6299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5203. :
  5204. else
  5205. echo "configure: failed program was:" >&5
  5206. cat conftest.$ac_ext >&5
  5207. rm -rf conftest*
  5208. LIBS="$LIBS $GDAL_DEP_LIBS"
  5209. cat > conftest.$ac_ext <<EOF
  5210. #line 6308 "configure"
  5211. #include "confdefs.h"
  5212. #include <gdal.h>
  5213. int main() {
  5214. GDALOpen("foo", GA_ReadOnly);
  5215. ; return 0; }
  5216. EOF
  5217. if { (eval echo configure:6315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5218. rm -rf conftest*
  5219. GDAL_LIBS="$GDAL_LIBS $GDAL_DEP_LIBS"
  5220. else
  5221. echo "configure: failed program was:" >&5
  5222. cat conftest.$ac_ext >&5
  5223. rm -rf conftest*
  5224. { echo "configure: error: *** Unable to locate GDAL library." 1>&2; exit 1; }
  5225. fi
  5226. rm -f conftest*
  5227. fi
  5228. rm -f conftest*
  5229. LIBS=${ac_save_libs}
  5230. CFLAGS=${ac_save_cflags}
  5231. cat >> confdefs.h <<\EOF
  5232. #define HAVE_GDAL 1
  5233. EOF
  5234. fi
  5235. # libLAS option
  5236. echo $ac_n "checking whether to use libLAS""... $ac_c" 1>&6
  5237. echo "configure:6347: checking whether to use libLAS" >&5
  5238. LIBLAS_LIBS=
  5239. LIBLAS_CFLAGS=
  5240. USE_LIBLAS=
  5241. if test "`basename xx/$with_liblas`" = "liblas-config" ; then
  5242. LIBLAS_CONFIG="$with_liblas"
  5243. fi
  5244. if test "$with_liblas" = "no" ; then
  5245. echo "$ac_t""no" 1>&6
  5246. else
  5247. echo "$ac_t""yes" 1>&6
  5248. # Extract the first word of "liblas-config", so it can be a program name with args.
  5249. set dummy liblas-config; ac_word=$2
  5250. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5251. echo "configure:6364: checking for $ac_word" >&5
  5252. case "$LIBLAS_CONFIG" in
  5253. /*)
  5254. ac_cv_path_LIBLAS_CONFIG="$LIBLAS_CONFIG" # Let the user override the test with a path.
  5255. ;;
  5256. ?:/*)
  5257. ac_cv_path_LIBLAS_CONFIG="$LIBLAS_CONFIG" # Let the user override the test with a dos path.
  5258. ;;
  5259. *)
  5260. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5261. ac_dummy="$PATH"
  5262. for ac_dir in $ac_dummy; do
  5263. test -z "$ac_dir" && ac_dir=.
  5264. if test -f $ac_dir/$ac_word; then
  5265. ac_cv_path_LIBLAS_CONFIG="$ac_dir/$ac_word"
  5266. break
  5267. fi
  5268. done
  5269. IFS="$ac_save_ifs"
  5270. test -z "$ac_cv_path_LIBLAS_CONFIG" && ac_cv_path_LIBLAS_CONFIG="no"
  5271. ;;
  5272. esac
  5273. LIBLAS_CONFIG="$ac_cv_path_LIBLAS_CONFIG"
  5274. if test -n "$LIBLAS_CONFIG"; then
  5275. echo "$ac_t""$LIBLAS_CONFIG" 1>&6
  5276. else
  5277. echo "$ac_t""no" 1>&6
  5278. fi
  5279. if test "$LIBLAS_CONFIG" = "no" ; then
  5280. { echo "configure: error: *** couldn't find liblas-config" 1>&2; exit 1; }
  5281. fi
  5282. if test "$LIBLAS_CONFIG" != "" ; then
  5283. LIBLAS_LIBS=`"$LIBLAS_CONFIG" --libs`
  5284. LIBLAS_CFLAGS=`"$LIBLAS_CONFIG" --cflags`
  5285. LIBLAS_INC=`"$LIBLAS_CONFIG" --includes`
  5286. USE_LIBLAS=1
  5287. fi
  5288. LIBLAS=
  5289. ac_save_libs="$LIBS"
  5290. ac_save_cflags="$CFLAGS"
  5291. ac_save_cppflags="$CPPFLAGS"
  5292. LIBS="$LIBS $LIBLAS_LIBS"
  5293. CFLAGS="$CFLAGS $LIBLAS_CFLAGS"
  5294. CPPFLAGS="$CPPFLAGS $LIBLAS_INC"
  5295. for ac_hdr in liblas/capi/liblas.h
  5296. do
  5297. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5298. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5299. echo "configure:6417: checking for $ac_hdr" >&5
  5300. cat > conftest.$ac_ext <<EOF
  5301. #line 6420 "configure"
  5302. #include "confdefs.h"
  5303. #include <$ac_hdr>
  5304. EOF
  5305. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5306. { (eval echo configure:6425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5307. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5308. if test -z "$ac_err"; then
  5309. rm -rf conftest*
  5310. eval "ac_cv_header_$ac_safe=yes"
  5311. else
  5312. echo "$ac_err" >&5
  5313. echo "configure: failed program was:" >&5
  5314. cat conftest.$ac_ext >&5
  5315. rm -rf conftest*
  5316. eval "ac_cv_header_$ac_safe=no"
  5317. fi
  5318. rm -f conftest*
  5319. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5320. echo "$ac_t""yes" 1>&6
  5321. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5322. cat >> confdefs.h <<EOF
  5323. #define $ac_tr_hdr 1
  5324. EOF
  5325. else
  5326. echo "$ac_t""no" 1>&6
  5327. fi
  5328. done
  5329. cat > conftest.$ac_ext <<EOF
  5330. #line 6451 "configure"
  5331. #include "confdefs.h"
  5332. #include <liblas/capi/liblas.h>
  5333. int main() {
  5334. LASReader_Create("foo");
  5335. ; return 0; }
  5336. EOF
  5337. if { (eval echo configure:6458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5338. :
  5339. else
  5340. echo "configure: failed program was:" >&5
  5341. cat conftest.$ac_ext >&5
  5342. rm -rf conftest*
  5343. cat > conftest.$ac_ext <<EOF
  5344. #line 6466 "configure"
  5345. #include "confdefs.h"
  5346. #include <liblas/capi/liblas.h>
  5347. int main() {
  5348. LASReader_Create("foo");
  5349. ; return 0; }
  5350. EOF
  5351. if { (eval echo configure:6473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5352. rm -rf conftest*
  5353. LAS_LIBS="$LAS_LIBS"
  5354. else
  5355. echo "configure: failed program was:" >&5
  5356. cat conftest.$ac_ext >&5
  5357. rm -rf conftest*
  5358. { echo "configure: error: *** Unable to locate libLAS library." 1>&2; exit 1; }
  5359. fi
  5360. rm -f conftest*
  5361. fi
  5362. rm -f conftest*
  5363. LIBS=${ac_save_libs}
  5364. CFLAGS=${ac_save_cflags}
  5365. CPPFLAGS=${ac_save_cppflags}
  5366. cat >> confdefs.h <<\EOF
  5367. #define HAVE_LIBLAS 1
  5368. EOF
  5369. fi
  5370. # PDAL option
  5371. echo $ac_n "checking whether to use PDAL""... $ac_c" 1>&6
  5372. echo "configure:6506: checking whether to use PDAL" >&5
  5373. # new and currently used way to switch language to C++
  5374. # AC_LANG_PUSH(C++)
  5375. ac_ext=C
  5376. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  5377. ac_cpp='$CXXCPP $CPPFLAGS'
  5378. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  5379. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5380. cross_compiling=$ac_cv_prog_cxx_cross
  5381. PDAL_LIBS=
  5382. PDAL_CPPFLAGS=
  5383. USE_PDAL=
  5384. if test "`basename xx/$with_pdal`" = "pdal-config" ; then
  5385. PDAL_CONFIG="$with_pdal"
  5386. fi
  5387. if test "$with_pdal" = "no" ; then
  5388. echo "$ac_t""no" 1>&6
  5389. else
  5390. echo "$ac_t""yes" 1>&6
  5391. # Extract the first word of "pdal-config", so it can be a program name with args.
  5392. set dummy pdal-config; ac_word=$2
  5393. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5394. echo "configure:6534: checking for $ac_word" >&5
  5395. case "$PDAL_CONFIG" in
  5396. /*)
  5397. ac_cv_path_PDAL_CONFIG="$PDAL_CONFIG" # Let the user override the test with a path.
  5398. ;;
  5399. ?:/*)
  5400. ac_cv_path_PDAL_CONFIG="$PDAL_CONFIG" # Let the user override the test with a dos path.
  5401. ;;
  5402. *)
  5403. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5404. ac_dummy="$PATH"
  5405. for ac_dir in $ac_dummy; do
  5406. test -z "$ac_dir" && ac_dir=.
  5407. if test -f $ac_dir/$ac_word; then
  5408. ac_cv_path_PDAL_CONFIG="$ac_dir/$ac_word"
  5409. break
  5410. fi
  5411. done
  5412. IFS="$ac_save_ifs"
  5413. test -z "$ac_cv_path_PDAL_CONFIG" && ac_cv_path_PDAL_CONFIG="no"
  5414. ;;
  5415. esac
  5416. PDAL_CONFIG="$ac_cv_path_PDAL_CONFIG"
  5417. if test -n "$PDAL_CONFIG"; then
  5418. echo "$ac_t""$PDAL_CONFIG" 1>&6
  5419. else
  5420. echo "$ac_t""no" 1>&6
  5421. fi
  5422. if test "$PDAL_CONFIG" = "no" ; then
  5423. { echo "configure: error: *** could not find pdal-config" 1>&2; exit 1; }
  5424. fi
  5425. if test "$PDAL_CONFIG" != "" ; then
  5426. PDAL_LIBS=`"$PDAL_CONFIG" --libs`
  5427. PDAL_CPPFLAGS=`"$PDAL_CONFIG" --cxxflags`
  5428. PDAL_INC=`"$PDAL_CONFIG" --includes`
  5429. USE_PDAL=1
  5430. fi
  5431. PDAL=
  5432. ac_save_libs="$LIBS"
  5433. ac_save_cflags="$CFLAGS"
  5434. ac_save_cppflags="$CPPFLAGS"
  5435. LIBS="$LIBS $PDAL_LIBS"
  5436. CFLAGS="$CFLAGS $PDAL_CFLAGS"
  5437. CPPFLAGS="$CPPFLAGS $PDAL_CPPFLAGS $PDAL_INC"
  5438. cat > conftest.$ac_ext <<EOF
  5439. #line 6584 "configure"
  5440. #include "confdefs.h"
  5441. #include <pdal/PointTable.hpp>
  5442. int main() {
  5443. pdal::PointTable table;
  5444. ; return 0; }
  5445. EOF
  5446. if { (eval echo configure:6591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5447. :
  5448. else
  5449. echo "configure: failed program was:" >&5
  5450. cat conftest.$ac_ext >&5
  5451. rm -rf conftest*
  5452. cat > conftest.$ac_ext <<EOF
  5453. #line 6599 "configure"
  5454. #include "confdefs.h"
  5455. #include <pdal/PointTable.hpp>
  5456. int main() {
  5457. pdal::PointTable table;
  5458. ; return 0; }
  5459. EOF
  5460. if { (eval echo configure:6606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5461. rm -rf conftest*
  5462. PDAL_LIBS="$PDAL_LIBS"
  5463. else
  5464. echo "configure: failed program was:" >&5
  5465. cat conftest.$ac_ext >&5
  5466. rm -rf conftest*
  5467. { echo "configure: error: *** Unable to locate PDAL library." 1>&2; exit 1; }
  5468. fi
  5469. rm -f conftest*
  5470. fi
  5471. rm -f conftest*
  5472. LIBS=${ac_save_libs}
  5473. CFLAGS=${ac_save_cflags}
  5474. CPPFLAGS=${ac_save_cppflags}
  5475. cat >> confdefs.h <<\EOF
  5476. #define HAVE_PDAL 1
  5477. EOF
  5478. fi
  5479. # new and currently used way to switch language back to C
  5480. # AC_LANG_POP(C++)
  5481. ac_ext=c
  5482. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  5483. ac_cpp='$CPP $CPPFLAGS'
  5484. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  5485. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5486. cross_compiling=$ac_cv_prog_cc_cross
  5487. ac_ext=c
  5488. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  5489. ac_cpp='$CPP $CPPFLAGS'
  5490. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  5491. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5492. cross_compiling=$ac_cv_prog_cc_cross
  5493. # NetCDF option
  5494. echo $ac_n "checking whether to use NetCDF""... $ac_c" 1>&6
  5495. echo "configure:6656: checking whether to use NetCDF" >&5
  5496. NETCDF_LIBS=
  5497. NETCDF_CFLAGS=
  5498. USE_NETCDF=
  5499. if test "`basename xx/$with_netcdf`" = "nc-config" ; then
  5500. NETCDF_CONFIG="$with_netcdf"
  5501. fi
  5502. if test "$with_netcdf" = "no" ; then
  5503. echo "$ac_t""no" 1>&6
  5504. else
  5505. echo "$ac_t""yes" 1>&6
  5506. # Extract the first word of "nc-config", so it can be a program name with args.
  5507. set dummy nc-config; ac_word=$2
  5508. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5509. echo "configure:6673: checking for $ac_word" >&5
  5510. case "$NETCDF_CONFIG" in
  5511. /*)
  5512. ac_cv_path_NETCDF_CONFIG="$NETCDF_CONFIG" # Let the user override the test with a path.
  5513. ;;
  5514. ?:/*)
  5515. ac_cv_path_NETCDF_CONFIG="$NETCDF_CONFIG" # Let the user override the test with a dos path.
  5516. ;;
  5517. *)
  5518. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5519. ac_dummy="$PATH"
  5520. for ac_dir in $ac_dummy; do
  5521. test -z "$ac_dir" && ac_dir=.
  5522. if test -f $ac_dir/$ac_word; then
  5523. ac_cv_path_NETCDF_CONFIG="$ac_dir/$ac_word"
  5524. break
  5525. fi
  5526. done
  5527. IFS="$ac_save_ifs"
  5528. test -z "$ac_cv_path_NETCDF_CONFIG" && ac_cv_path_NETCDF_CONFIG="no"
  5529. ;;
  5530. esac
  5531. NETCDF_CONFIG="$ac_cv_path_NETCDF_CONFIG"
  5532. if test -n "$NETCDF_CONFIG"; then
  5533. echo "$ac_t""$NETCDF_CONFIG" 1>&6
  5534. else
  5535. echo "$ac_t""no" 1>&6
  5536. fi
  5537. if test "$NETCDF_CONFIG" = "no" ; then
  5538. { echo "configure: error: *** couldn't find nc-config" 1>&2; exit 1; }
  5539. fi
  5540. if test "$NETCDF_CONFIG" != "" ; then
  5541. NETCDF_LIBS=`"$NETCDF_CONFIG" --libs`
  5542. NETCDF_CFLAGS=`"$NETCDF_CONFIG" --cflags`
  5543. USE_NETCDF=1
  5544. fi
  5545. NETCDF=
  5546. ac_save_libs="$LIBS"
  5547. ac_save_cflags="$CFLAGS"
  5548. LIBS="$LIBS $NETCDF_LIBS"
  5549. CFLAGS="$CFLAGS $NETCDF_CFLAGS"
  5550. cat > conftest.$ac_ext <<EOF
  5551. #line 6720 "configure"
  5552. #include "confdefs.h"
  5553. #include <netcdf.h>
  5554. int main() {
  5555. nc_create("foo", NC_CLOBBER, NULL);
  5556. ; return 0; }
  5557. EOF
  5558. if { (eval echo configure:6727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5559. :
  5560. else
  5561. echo "configure: failed program was:" >&5
  5562. cat conftest.$ac_ext >&5
  5563. rm -rf conftest*
  5564. cat > conftest.$ac_ext <<EOF
  5565. #line 6735 "configure"
  5566. #include "confdefs.h"
  5567. #include <netcdf.h>
  5568. int main() {
  5569. nc_create("foo", NC_CLOBBER, NULL);
  5570. ; return 0; }
  5571. EOF
  5572. if { (eval echo configure:6742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5573. rm -rf conftest*
  5574. NETCDF_LIBS="$NETCDF_LIBS"
  5575. else
  5576. echo "configure: failed program was:" >&5
  5577. cat conftest.$ac_ext >&5
  5578. rm -rf conftest*
  5579. { echo "configure: error: *** Unable to locate NetCDF library." 1>&2; exit 1; }
  5580. fi
  5581. rm -f conftest*
  5582. fi
  5583. rm -f conftest*
  5584. LIBS=${ac_save_libs}
  5585. CFLAGS=${ac_save_cflags}
  5586. cat >> confdefs.h <<\EOF
  5587. #define HAVE_NETCDF 1
  5588. EOF
  5589. fi
  5590. # GEOS option
  5591. echo $ac_n "checking whether to use GEOS""... $ac_c" 1>&6
  5592. echo "configure:6773: checking whether to use GEOS" >&5
  5593. GEOS_LIBS=
  5594. GEOS_CFLAGS=
  5595. USE_GEOS=
  5596. # FIXME: "quote" $with_geos ?
  5597. if test "`basename xx/$with_geos`" = "geos-config" ; then
  5598. GEOS_CONFIG="$with_geos"
  5599. fi
  5600. if test "$with_geos" = "no" ; then
  5601. echo "$ac_t""no" 1>&6
  5602. else
  5603. echo "$ac_t""yes" 1>&6
  5604. # Extract the first word of "geos-config", so it can be a program name with args.
  5605. set dummy geos-config; ac_word=$2
  5606. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5607. echo "configure:6791: checking for $ac_word" >&5
  5608. case "$GEOS_CONFIG" in
  5609. /*)
  5610. ac_cv_path_GEOS_CONFIG="$GEOS_CONFIG" # Let the user override the test with a path.
  5611. ;;
  5612. ?:/*)
  5613. ac_cv_path_GEOS_CONFIG="$GEOS_CONFIG" # Let the user override the test with a dos path.
  5614. ;;
  5615. *)
  5616. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5617. ac_dummy="$PATH"
  5618. for ac_dir in $ac_dummy; do
  5619. test -z "$ac_dir" && ac_dir=.
  5620. if test -f $ac_dir/$ac_word; then
  5621. ac_cv_path_GEOS_CONFIG="$ac_dir/$ac_word"
  5622. break
  5623. fi
  5624. done
  5625. IFS="$ac_save_ifs"
  5626. test -z "$ac_cv_path_GEOS_CONFIG" && ac_cv_path_GEOS_CONFIG="no"
  5627. ;;
  5628. esac
  5629. GEOS_CONFIG="$ac_cv_path_GEOS_CONFIG"
  5630. if test -n "$GEOS_CONFIG"; then
  5631. echo "$ac_t""$GEOS_CONFIG" 1>&6
  5632. else
  5633. echo "$ac_t""no" 1>&6
  5634. fi
  5635. if test "$GEOS_CONFIG" = "no" ; then
  5636. { echo "configure: error: *** couldn't find geos-config" 1>&2; exit 1; }
  5637. fi
  5638. if test "$GEOS_CONFIG" != "" ; then
  5639. GEOS_LIBS=`"$GEOS_CONFIG" --clibs`
  5640. GEOS_CFLAGS=`"$GEOS_CONFIG" --cflags`
  5641. USE_GEOS=1
  5642. fi
  5643. ac_save_cppflags="$CPPFLAGS"
  5644. CPPFLAGS="$GEOS_CFLAGS $CPPFLAGS"
  5645. for ac_hdr in geos_c.h
  5646. do
  5647. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5648. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5649. echo "configure:6839: checking for $ac_hdr" >&5
  5650. cat > conftest.$ac_ext <<EOF
  5651. #line 6842 "configure"
  5652. #include "confdefs.h"
  5653. #include <$ac_hdr>
  5654. EOF
  5655. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5656. { (eval echo configure:6847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5657. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5658. if test -z "$ac_err"; then
  5659. rm -rf conftest*
  5660. eval "ac_cv_header_$ac_safe=yes"
  5661. else
  5662. echo "$ac_err" >&5
  5663. echo "configure: failed program was:" >&5
  5664. cat conftest.$ac_ext >&5
  5665. rm -rf conftest*
  5666. eval "ac_cv_header_$ac_safe=no"
  5667. fi
  5668. rm -f conftest*
  5669. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5670. echo "$ac_t""yes" 1>&6
  5671. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5672. cat >> confdefs.h <<EOF
  5673. #define $ac_tr_hdr 1
  5674. EOF
  5675. else
  5676. echo "$ac_t""no" 1>&6
  5677. { echo "configure: error: *** Unable to locate GEOS includes." 1>&2; exit 1; }
  5678. fi
  5679. done
  5680. CPPFLAGS=$ac_save_cppflags
  5681. ### 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
  5682. # if test "$MINGW32" = yes ; then
  5683. # LOC_CHECK_LIBS(geos_c_i,initGEOS,GEOS,$GEOS_LIBS,GEOS_LIBS)
  5684. # else
  5685. ac_save_ldflags="$LDFLAGS"
  5686. LDFLAGS="$GEOS_LIBS $LDFLAGS"
  5687. echo $ac_n "checking for initGEOS in -lgeos_c""... $ac_c" 1>&6
  5688. echo "configure:6886: checking for initGEOS in -lgeos_c" >&5
  5689. ac_lib_var=`echo geos_c'_'initGEOS | sed 'y%./+-%__p_%'`
  5690. ac_save_LIBS="$LIBS"
  5691. LIBS="-lgeos_c $LIBS"
  5692. cat > conftest.$ac_ext <<EOF
  5693. #line 6892 "configure"
  5694. #include "confdefs.h"
  5695. /* Override any gcc2 internal prototype to avoid an error. */
  5696. /* We use char because int might match the return type of a gcc2
  5697. builtin and then its argument prototype would still apply. */
  5698. char initGEOS();
  5699. int main() {
  5700. initGEOS()
  5701. ; return 0; }
  5702. EOF
  5703. if { (eval echo configure:6903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5704. rm -rf conftest*
  5705. eval "ac_cv_lib_$ac_lib_var=yes"
  5706. else
  5707. echo "configure: failed program was:" >&5
  5708. cat conftest.$ac_ext >&5
  5709. rm -rf conftest*
  5710. eval "ac_cv_lib_$ac_lib_var=no"
  5711. fi
  5712. rm -f conftest*
  5713. LIBS="$ac_save_LIBS"
  5714. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5715. echo "$ac_t""yes" 1>&6
  5716. GEOS_LIBS="$GEOS_LIBS -lgeos_c "
  5717. else
  5718. echo "$ac_t""no" 1>&6
  5719. LDFLAGS=${ac_save_ldflags}
  5720. { echo "configure: error: *** Unable to locate GEOS library." 1>&2; exit 1; }
  5721. fi
  5722. LDFLAGS=${ac_save_ldflags}
  5723. # fi
  5724. cat >> confdefs.h <<\EOF
  5725. #define HAVE_GEOS 1
  5726. EOF
  5727. fi
  5728. # Enable TIFF option
  5729. echo $ac_n "checking whether to use TIFF""... $ac_c" 1>&6
  5730. echo "configure:6947: checking whether to use TIFF" >&5
  5731. echo "$ac_t"""$with_tiff"" 1>&6
  5732. case "$with_tiff" in
  5733. "no") USE_TIFF= ;;
  5734. "yes") USE_TIFF="1" ;;
  5735. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  5736. esac
  5737. TIFF_INCLUDE_DIRS=
  5738. TIFF_LIBRARY_DIRS=
  5739. TIFFLIB=
  5740. if test -n "$USE_TIFF"; then
  5741. # With TIFF includes directory
  5742. echo $ac_n "checking for location of TIFF includes""... $ac_c" 1>&6
  5743. echo "configure:6967: checking for location of TIFF includes" >&5
  5744. case "$with_tiff_includes" in
  5745. y | ye | yes | n | no)
  5746. { echo "configure: error: *** You must supply a directory to --with-tiff-includes." 1>&2; exit 1; }
  5747. ;;
  5748. esac
  5749. echo "$ac_t""$with_tiff_includes" 1>&6
  5750. if test -n "$with_tiff_includes" ; then
  5751. for dir in $with_tiff_includes; do
  5752. if test -d "$dir"; then
  5753. TIFF_INCLUDE_DIRS="$TIFF_INCLUDE_DIRS -I$dir"
  5754. else
  5755. { echo "configure: error: *** TIFF includes directory $dir does not exist." 1>&2; exit 1; }
  5756. fi
  5757. done
  5758. fi
  5759. ac_save_cppflags="$CPPFLAGS"
  5760. CPPFLAGS="$TIFF_INCLUDE_DIRS $CPPFLAGS"
  5761. for ac_hdr in tiffio.h
  5762. do
  5763. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5764. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5765. echo "configure:6993: checking for $ac_hdr" >&5
  5766. cat > conftest.$ac_ext <<EOF
  5767. #line 6996 "configure"
  5768. #include "confdefs.h"
  5769. #include <$ac_hdr>
  5770. EOF
  5771. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5772. { (eval echo configure:7001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5773. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5774. if test -z "$ac_err"; then
  5775. rm -rf conftest*
  5776. eval "ac_cv_header_$ac_safe=yes"
  5777. else
  5778. echo "$ac_err" >&5
  5779. echo "configure: failed program was:" >&5
  5780. cat conftest.$ac_ext >&5
  5781. rm -rf conftest*
  5782. eval "ac_cv_header_$ac_safe=no"
  5783. fi
  5784. rm -f conftest*
  5785. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5786. echo "$ac_t""yes" 1>&6
  5787. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5788. cat >> confdefs.h <<EOF
  5789. #define $ac_tr_hdr 1
  5790. EOF
  5791. else
  5792. echo "$ac_t""no" 1>&6
  5793. { echo "configure: error: *** Unable to locate TIFF includes." 1>&2; exit 1; }
  5794. fi
  5795. done
  5796. CPPFLAGS=$ac_save_cppflags
  5797. # With TIFF library directory
  5798. echo $ac_n "checking for location of TIFF library""... $ac_c" 1>&6
  5799. echo "configure:7035: checking for location of TIFF library" >&5
  5800. case "$with_tiff_libs" in
  5801. y | ye | yes | n | no)
  5802. { echo "configure: error: *** You must supply a directory to --with-tiff-libs." 1>&2; exit 1; }
  5803. ;;
  5804. esac
  5805. echo "$ac_t""$with_tiff_libs" 1>&6
  5806. if test -n "$with_tiff_libs"; then
  5807. for dir in $with_tiff_libs; do
  5808. if test -d "$dir"; then
  5809. TIFF_LIBRARY_DIRS="$TIFF_LIBRARY_DIRS -L$dir"
  5810. else
  5811. { echo "configure: error: *** TIFF library directory $dir does not exist." 1>&2; exit 1; }
  5812. fi
  5813. done
  5814. fi
  5815. ac_save_ldflags="$LDFLAGS"
  5816. LDFLAGS="$TIFF_LIBRARY_DIRS $LDFLAGS"
  5817. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5818. echo "configure:7066: checking for TIFFOpen in -ltiff" >&5
  5819. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5820. ac_save_LIBS="$LIBS"
  5821. LIBS="-ltiff $LIBS"
  5822. cat > conftest.$ac_ext <<EOF
  5823. #line 7072 "configure"
  5824. #include "confdefs.h"
  5825. /* Override any gcc2 internal prototype to avoid an error. */
  5826. /* We use char because int might match the return type of a gcc2
  5827. builtin and then its argument prototype would still apply. */
  5828. char TIFFOpen();
  5829. int main() {
  5830. TIFFOpen()
  5831. ; return 0; }
  5832. EOF
  5833. if { (eval echo configure:7083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5834. rm -rf conftest*
  5835. eval "ac_cv_lib_$ac_lib_var=yes"
  5836. else
  5837. echo "configure: failed program was:" >&5
  5838. cat conftest.$ac_ext >&5
  5839. rm -rf conftest*
  5840. eval "ac_cv_lib_$ac_lib_var=no"
  5841. fi
  5842. rm -f conftest*
  5843. LIBS="$ac_save_LIBS"
  5844. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5845. echo "$ac_t""yes" 1>&6
  5846. TIFFLIB="$TIFFLIB -ltiff "
  5847. else
  5848. echo "$ac_t""no" 1>&6
  5849. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5850. echo "configure:7102: checking for TIFFOpen in -ltiff" >&5
  5851. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5852. ac_save_LIBS="$LIBS"
  5853. LIBS="-ltiff $MATHLIB $LIBS"
  5854. cat > conftest.$ac_ext <<EOF
  5855. #line 7108 "configure"
  5856. #include "confdefs.h"
  5857. /* Override any gcc2 internal prototype to avoid an error. */
  5858. /* We use char because int might match the return type of a gcc2
  5859. builtin and then its argument prototype would still apply. */
  5860. char TIFFOpen();
  5861. int main() {
  5862. TIFFOpen()
  5863. ; return 0; }
  5864. EOF
  5865. if { (eval echo configure:7119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5866. rm -rf conftest*
  5867. eval "ac_cv_lib_$ac_lib_var=yes"
  5868. else
  5869. echo "configure: failed program was:" >&5
  5870. cat conftest.$ac_ext >&5
  5871. rm -rf conftest*
  5872. eval "ac_cv_lib_$ac_lib_var=no"
  5873. fi
  5874. rm -f conftest*
  5875. LIBS="$ac_save_LIBS"
  5876. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5877. echo "$ac_t""yes" 1>&6
  5878. TIFFLIB="$TIFFLIB -ltiff $MATHLIB"
  5879. else
  5880. echo "$ac_t""no" 1>&6
  5881. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5882. echo "configure:7138: checking for TIFFOpen in -ltiff" >&5
  5883. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5884. ac_save_LIBS="$LIBS"
  5885. LIBS="-ltiff $ZLIB $LIBS"
  5886. cat > conftest.$ac_ext <<EOF
  5887. #line 7144 "configure"
  5888. #include "confdefs.h"
  5889. /* Override any gcc2 internal prototype to avoid an error. */
  5890. /* We use char because int might match the return type of a gcc2
  5891. builtin and then its argument prototype would still apply. */
  5892. char TIFFOpen();
  5893. int main() {
  5894. TIFFOpen()
  5895. ; return 0; }
  5896. EOF
  5897. if { (eval echo configure:7155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5898. rm -rf conftest*
  5899. eval "ac_cv_lib_$ac_lib_var=yes"
  5900. else
  5901. echo "configure: failed program was:" >&5
  5902. cat conftest.$ac_ext >&5
  5903. rm -rf conftest*
  5904. eval "ac_cv_lib_$ac_lib_var=no"
  5905. fi
  5906. rm -f conftest*
  5907. LIBS="$ac_save_LIBS"
  5908. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5909. echo "$ac_t""yes" 1>&6
  5910. TIFFLIB="$TIFFLIB -ltiff $ZLIB"
  5911. else
  5912. echo "$ac_t""no" 1>&6
  5913. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5914. echo "configure:7174: checking for TIFFOpen in -ltiff" >&5
  5915. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5916. ac_save_LIBS="$LIBS"
  5917. LIBS="-ltiff $ZLIB $MATHLIB $LIBS"
  5918. cat > conftest.$ac_ext <<EOF
  5919. #line 7180 "configure"
  5920. #include "confdefs.h"
  5921. /* Override any gcc2 internal prototype to avoid an error. */
  5922. /* We use char because int might match the return type of a gcc2
  5923. builtin and then its argument prototype would still apply. */
  5924. char TIFFOpen();
  5925. int main() {
  5926. TIFFOpen()
  5927. ; return 0; }
  5928. EOF
  5929. if { (eval echo configure:7191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5930. rm -rf conftest*
  5931. eval "ac_cv_lib_$ac_lib_var=yes"
  5932. else
  5933. echo "configure: failed program was:" >&5
  5934. cat conftest.$ac_ext >&5
  5935. rm -rf conftest*
  5936. eval "ac_cv_lib_$ac_lib_var=no"
  5937. fi
  5938. rm -f conftest*
  5939. LIBS="$ac_save_LIBS"
  5940. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5941. echo "$ac_t""yes" 1>&6
  5942. TIFFLIB="$TIFFLIB -ltiff $ZLIB $MATHLIB"
  5943. else
  5944. echo "$ac_t""no" 1>&6
  5945. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5946. echo "configure:7210: checking for TIFFOpen in -ltiff" >&5
  5947. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5948. ac_save_LIBS="$LIBS"
  5949. LIBS="-ltiff -ljpeg $LIBS"
  5950. cat > conftest.$ac_ext <<EOF
  5951. #line 7216 "configure"
  5952. #include "confdefs.h"
  5953. /* Override any gcc2 internal prototype to avoid an error. */
  5954. /* We use char because int might match the return type of a gcc2
  5955. builtin and then its argument prototype would still apply. */
  5956. char TIFFOpen();
  5957. int main() {
  5958. TIFFOpen()
  5959. ; return 0; }
  5960. EOF
  5961. if { (eval echo configure:7227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5962. rm -rf conftest*
  5963. eval "ac_cv_lib_$ac_lib_var=yes"
  5964. else
  5965. echo "configure: failed program was:" >&5
  5966. cat conftest.$ac_ext >&5
  5967. rm -rf conftest*
  5968. eval "ac_cv_lib_$ac_lib_var=no"
  5969. fi
  5970. rm -f conftest*
  5971. LIBS="$ac_save_LIBS"
  5972. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5973. echo "$ac_t""yes" 1>&6
  5974. TIFFLIB="$TIFFLIB -ltiff -ljpeg"
  5975. else
  5976. echo "$ac_t""no" 1>&6
  5977. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5978. echo "configure:7246: checking for TIFFOpen in -ltiff" >&5
  5979. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5980. ac_save_LIBS="$LIBS"
  5981. LIBS="-ltiff -ljpeg $MATHLIB $LIBS"
  5982. cat > conftest.$ac_ext <<EOF
  5983. #line 7252 "configure"
  5984. #include "confdefs.h"
  5985. /* Override any gcc2 internal prototype to avoid an error. */
  5986. /* We use char because int might match the return type of a gcc2
  5987. builtin and then its argument prototype would still apply. */
  5988. char TIFFOpen();
  5989. int main() {
  5990. TIFFOpen()
  5991. ; return 0; }
  5992. EOF
  5993. if { (eval echo configure:7263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5994. rm -rf conftest*
  5995. eval "ac_cv_lib_$ac_lib_var=yes"
  5996. else
  5997. echo "configure: failed program was:" >&5
  5998. cat conftest.$ac_ext >&5
  5999. rm -rf conftest*
  6000. eval "ac_cv_lib_$ac_lib_var=no"
  6001. fi
  6002. rm -f conftest*
  6003. LIBS="$ac_save_LIBS"
  6004. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6005. echo "$ac_t""yes" 1>&6
  6006. TIFFLIB="$TIFFLIB -ltiff -ljpeg $MATHLIB"
  6007. else
  6008. echo "$ac_t""no" 1>&6
  6009. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  6010. echo "configure:7282: checking for TIFFOpen in -ltiff" >&5
  6011. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  6012. ac_save_LIBS="$LIBS"
  6013. LIBS="-ltiff -ljpeg $ZLIB $LIBS"
  6014. cat > conftest.$ac_ext <<EOF
  6015. #line 7288 "configure"
  6016. #include "confdefs.h"
  6017. /* Override any gcc2 internal prototype to avoid an error. */
  6018. /* We use char because int might match the return type of a gcc2
  6019. builtin and then its argument prototype would still apply. */
  6020. char TIFFOpen();
  6021. int main() {
  6022. TIFFOpen()
  6023. ; return 0; }
  6024. EOF
  6025. if { (eval echo configure:7299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6026. rm -rf conftest*
  6027. eval "ac_cv_lib_$ac_lib_var=yes"
  6028. else
  6029. echo "configure: failed program was:" >&5
  6030. cat conftest.$ac_ext >&5
  6031. rm -rf conftest*
  6032. eval "ac_cv_lib_$ac_lib_var=no"
  6033. fi
  6034. rm -f conftest*
  6035. LIBS="$ac_save_LIBS"
  6036. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6037. echo "$ac_t""yes" 1>&6
  6038. TIFFLIB="$TIFFLIB -ltiff -ljpeg $ZLIB"
  6039. else
  6040. echo "$ac_t""no" 1>&6
  6041. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  6042. echo "configure:7318: checking for TIFFOpen in -ltiff" >&5
  6043. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  6044. ac_save_LIBS="$LIBS"
  6045. LIBS="-ltiff -ljpeg $ZLIB $MATHLIB $LIBS"
  6046. cat > conftest.$ac_ext <<EOF
  6047. #line 7324 "configure"
  6048. #include "confdefs.h"
  6049. /* Override any gcc2 internal prototype to avoid an error. */
  6050. /* We use char because int might match the return type of a gcc2
  6051. builtin and then its argument prototype would still apply. */
  6052. char TIFFOpen();
  6053. int main() {
  6054. TIFFOpen()
  6055. ; return 0; }
  6056. EOF
  6057. if { (eval echo configure:7335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6058. rm -rf conftest*
  6059. eval "ac_cv_lib_$ac_lib_var=yes"
  6060. else
  6061. echo "configure: failed program was:" >&5
  6062. cat conftest.$ac_ext >&5
  6063. rm -rf conftest*
  6064. eval "ac_cv_lib_$ac_lib_var=no"
  6065. fi
  6066. rm -f conftest*
  6067. LIBS="$ac_save_LIBS"
  6068. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6069. echo "$ac_t""yes" 1>&6
  6070. TIFFLIB="$TIFFLIB -ltiff -ljpeg $ZLIB $MATHLIB"
  6071. else
  6072. echo "$ac_t""no" 1>&6
  6073. LDFLAGS=${ac_save_ldflags}
  6074. { echo "configure: error: *** Unable to locate TIFF library." 1>&2; exit 1; }
  6075. fi
  6076. fi
  6077. fi
  6078. fi
  6079. fi
  6080. fi
  6081. fi
  6082. fi
  6083. LDFLAGS=${ac_save_ldflags}
  6084. fi # $USE_TIFF
  6085. # Done checking TIFF
  6086. # Enable PNG option
  6087. echo $ac_n "checking whether to use PNG""... $ac_c" 1>&6
  6088. echo "configure:7433: checking whether to use PNG" >&5
  6089. echo "$ac_t"""$with_png"" 1>&6
  6090. case "$with_png" in
  6091. "no") USE_PNG= ;;
  6092. "yes") USE_PNG="1" ;;
  6093. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6094. esac
  6095. PNGINC=
  6096. PNGLIB=
  6097. if test -n "$USE_PNG"; then
  6098. # With PNG includes directory
  6099. echo $ac_n "checking for location of PNG includes""... $ac_c" 1>&6
  6100. echo "configure:7452: checking for location of PNG includes" >&5
  6101. case "$with_png_includes" in
  6102. y | ye | yes | n | no)
  6103. { echo "configure: error: *** You must supply a directory to --with-png-includes." 1>&2; exit 1; }
  6104. ;;
  6105. esac
  6106. echo "$ac_t""$with_png_includes" 1>&6
  6107. if test -n "$with_png_includes" ; then
  6108. for dir in $with_png_includes; do
  6109. if test -d "$dir"; then
  6110. PNGINC="$PNGINC -I$dir"
  6111. else
  6112. { echo "configure: error: *** PNG includes directory $dir does not exist." 1>&2; exit 1; }
  6113. fi
  6114. done
  6115. fi
  6116. ac_save_cppflags="$CPPFLAGS"
  6117. CPPFLAGS="$PNGINC $CPPFLAGS"
  6118. for ac_hdr in png.h
  6119. do
  6120. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6121. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6122. echo "configure:7478: checking for $ac_hdr" >&5
  6123. cat > conftest.$ac_ext <<EOF
  6124. #line 7481 "configure"
  6125. #include "confdefs.h"
  6126. #include <$ac_hdr>
  6127. EOF
  6128. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6129. { (eval echo configure:7486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6130. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6131. if test -z "$ac_err"; then
  6132. rm -rf conftest*
  6133. eval "ac_cv_header_$ac_safe=yes"
  6134. else
  6135. echo "$ac_err" >&5
  6136. echo "configure: failed program was:" >&5
  6137. cat conftest.$ac_ext >&5
  6138. rm -rf conftest*
  6139. eval "ac_cv_header_$ac_safe=no"
  6140. fi
  6141. rm -f conftest*
  6142. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6143. echo "$ac_t""yes" 1>&6
  6144. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6145. cat >> confdefs.h <<EOF
  6146. #define $ac_tr_hdr 1
  6147. EOF
  6148. else
  6149. echo "$ac_t""no" 1>&6
  6150. { echo "configure: error: *** Unable to locate PNG includes." 1>&2; exit 1; }
  6151. fi
  6152. done
  6153. CPPFLAGS=$ac_save_cppflags
  6154. # With PNG library directory
  6155. echo $ac_n "checking for location of PNG library""... $ac_c" 1>&6
  6156. echo "configure:7520: checking for location of PNG library" >&5
  6157. case "$with_png_libs" in
  6158. y | ye | yes | n | no)
  6159. { echo "configure: error: *** You must supply a directory to --with-png-libs." 1>&2; exit 1; }
  6160. ;;
  6161. esac
  6162. echo "$ac_t""$with_png_libs" 1>&6
  6163. if test -n "$with_png_libs"; then
  6164. for dir in $with_png_libs; do
  6165. if test -d "$dir"; then
  6166. PNGLIB="$PNGLIB -L$dir"
  6167. else
  6168. { echo "configure: error: *** PNG library directory $dir does not exist." 1>&2; exit 1; }
  6169. fi
  6170. done
  6171. fi
  6172. ac_save_ldflags="$LDFLAGS"
  6173. LDFLAGS="$PNGLIB $LDFLAGS"
  6174. echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
  6175. echo "configure:7545: checking for png_read_image in -lpng" >&5
  6176. ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
  6177. ac_save_LIBS="$LIBS"
  6178. LIBS="-lpng $ZLIB $MATHLIB $LIBS"
  6179. cat > conftest.$ac_ext <<EOF
  6180. #line 7551 "configure"
  6181. #include "confdefs.h"
  6182. /* Override any gcc2 internal prototype to avoid an error. */
  6183. /* We use char because int might match the return type of a gcc2
  6184. builtin and then its argument prototype would still apply. */
  6185. char png_read_image();
  6186. int main() {
  6187. png_read_image()
  6188. ; return 0; }
  6189. EOF
  6190. if { (eval echo configure:7562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6191. rm -rf conftest*
  6192. eval "ac_cv_lib_$ac_lib_var=yes"
  6193. else
  6194. echo "configure: failed program was:" >&5
  6195. cat conftest.$ac_ext >&5
  6196. rm -rf conftest*
  6197. eval "ac_cv_lib_$ac_lib_var=no"
  6198. fi
  6199. rm -f conftest*
  6200. LIBS="$ac_save_LIBS"
  6201. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6202. echo "$ac_t""yes" 1>&6
  6203. PNGLIB="$PNGLIB -lpng $ZLIB $MATHLIB"
  6204. else
  6205. echo "$ac_t""no" 1>&6
  6206. LDFLAGS=${ac_save_ldflags}
  6207. { echo "configure: error: *** Unable to locate PNG library." 1>&2; exit 1; }
  6208. fi
  6209. LDFLAGS=${ac_save_ldflags}
  6210. fi # $USE_PNG
  6211. # Done checking PNG
  6212. # Enable PostgreSQL option
  6213. echo $ac_n "checking whether to use PostgreSQL""... $ac_c" 1>&6
  6214. echo "configure:7604: checking whether to use PostgreSQL" >&5
  6215. echo "$ac_t"""$with_postgres"" 1>&6
  6216. case "$with_postgres" in
  6217. "no") USE_POSTGRES= ;;
  6218. "yes") USE_POSTGRES="1" ;;
  6219. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6220. esac
  6221. if test -n "$USE_POSTGRES"; then
  6222. cat >> confdefs.h <<\EOF
  6223. #define HAVE_POSTGRES 1
  6224. EOF
  6225. fi # $USE_POSTGRES
  6226. PQINCPATH=
  6227. PQLIBPATH=
  6228. PQLIB=
  6229. if test -n "$USE_POSTGRES"; then
  6230. # With PostgreSQL includes directory
  6231. echo $ac_n "checking for location of PostgreSQL includes""... $ac_c" 1>&6
  6232. echo "configure:7631: checking for location of PostgreSQL includes" >&5
  6233. case "$with_postgres_includes" in
  6234. y | ye | yes | n | no)
  6235. { echo "configure: error: *** You must supply a directory to --with-postgres-includes." 1>&2; exit 1; }
  6236. ;;
  6237. esac
  6238. echo "$ac_t""$with_postgres_includes" 1>&6
  6239. if test -n "$with_postgres_includes" ; then
  6240. for dir in $with_postgres_includes; do
  6241. if test -d "$dir"; then
  6242. PQINCPATH="$PQINCPATH -I$dir"
  6243. else
  6244. { echo "configure: error: *** PostgreSQL includes directory $dir does not exist." 1>&2; exit 1; }
  6245. fi
  6246. done
  6247. fi
  6248. ac_save_cppflags="$CPPFLAGS"
  6249. CPPFLAGS="$PQINCPATH $CPPFLAGS"
  6250. for ac_hdr in libpq-fe.h
  6251. do
  6252. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6253. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6254. echo "configure:7657: checking for $ac_hdr" >&5
  6255. cat > conftest.$ac_ext <<EOF
  6256. #line 7660 "configure"
  6257. #include "confdefs.h"
  6258. #include <$ac_hdr>
  6259. EOF
  6260. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6261. { (eval echo configure:7665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6262. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6263. if test -z "$ac_err"; then
  6264. rm -rf conftest*
  6265. eval "ac_cv_header_$ac_safe=yes"
  6266. else
  6267. echo "$ac_err" >&5
  6268. echo "configure: failed program was:" >&5
  6269. cat conftest.$ac_ext >&5
  6270. rm -rf conftest*
  6271. eval "ac_cv_header_$ac_safe=no"
  6272. fi
  6273. rm -f conftest*
  6274. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6275. echo "$ac_t""yes" 1>&6
  6276. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6277. cat >> confdefs.h <<EOF
  6278. #define $ac_tr_hdr 1
  6279. EOF
  6280. else
  6281. echo "$ac_t""no" 1>&6
  6282. { echo "configure: error: *** Unable to locate PostgreSQL includes." 1>&2; exit 1; }
  6283. fi
  6284. done
  6285. CPPFLAGS=$ac_save_cppflags
  6286. fi # $USE_POSTGRES
  6287. if test -n "$USE_POSTGRES"; then
  6288. # With PostgreSQL library directory
  6289. echo $ac_n "checking for location of PostgreSQL library""... $ac_c" 1>&6
  6290. echo "configure:7703: checking for location of PostgreSQL library" >&5
  6291. case "$with_postgres_libs" in
  6292. y | ye | yes | n | no)
  6293. { echo "configure: error: *** You must supply a directory to --with-postgres-libs." 1>&2; exit 1; }
  6294. ;;
  6295. esac
  6296. echo "$ac_t""$with_postgres_libs" 1>&6
  6297. if test -n "$with_postgres_libs"; then
  6298. for dir in $with_postgres_libs; do
  6299. if test -d "$dir"; then
  6300. PQLIBPATH="$PQLIBPATH -L$dir"
  6301. else
  6302. { echo "configure: error: *** PostgreSQL library directory $dir does not exist." 1>&2; exit 1; }
  6303. fi
  6304. done
  6305. fi
  6306. ac_save_ldflags="$LDFLAGS"
  6307. LDFLAGS="$PQLIBPATH $LDFLAGS"
  6308. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6309. echo "configure:7732: checking for PQsetdbLogin in -lpq" >&5
  6310. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6311. ac_save_LIBS="$LIBS"
  6312. LIBS="-lpq $LIBS"
  6313. cat > conftest.$ac_ext <<EOF
  6314. #line 7738 "configure"
  6315. #include "confdefs.h"
  6316. /* Override any gcc2 internal prototype to avoid an error. */
  6317. /* We use char because int might match the return type of a gcc2
  6318. builtin and then its argument prototype would still apply. */
  6319. char PQsetdbLogin();
  6320. int main() {
  6321. PQsetdbLogin()
  6322. ; return 0; }
  6323. EOF
  6324. if { (eval echo configure:7749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6325. rm -rf conftest*
  6326. eval "ac_cv_lib_$ac_lib_var=yes"
  6327. else
  6328. echo "configure: failed program was:" >&5
  6329. cat conftest.$ac_ext >&5
  6330. rm -rf conftest*
  6331. eval "ac_cv_lib_$ac_lib_var=no"
  6332. fi
  6333. rm -f conftest*
  6334. LIBS="$ac_save_LIBS"
  6335. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6336. echo "$ac_t""yes" 1>&6
  6337. PQLIB="$PQLIB -lpq "
  6338. else
  6339. echo "$ac_t""no" 1>&6
  6340. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6341. echo "configure:7768: checking for PQsetdbLogin in -lpq" >&5
  6342. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6343. ac_save_LIBS="$LIBS"
  6344. LIBS="-lpq -lssl -lcrypto $LIBS"
  6345. cat > conftest.$ac_ext <<EOF
  6346. #line 7774 "configure"
  6347. #include "confdefs.h"
  6348. /* Override any gcc2 internal prototype to avoid an error. */
  6349. /* We use char because int might match the return type of a gcc2
  6350. builtin and then its argument prototype would still apply. */
  6351. char PQsetdbLogin();
  6352. int main() {
  6353. PQsetdbLogin()
  6354. ; return 0; }
  6355. EOF
  6356. if { (eval echo configure:7785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6357. rm -rf conftest*
  6358. eval "ac_cv_lib_$ac_lib_var=yes"
  6359. else
  6360. echo "configure: failed program was:" >&5
  6361. cat conftest.$ac_ext >&5
  6362. rm -rf conftest*
  6363. eval "ac_cv_lib_$ac_lib_var=no"
  6364. fi
  6365. rm -f conftest*
  6366. LIBS="$ac_save_LIBS"
  6367. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6368. echo "$ac_t""yes" 1>&6
  6369. PQLIB="$PQLIB -lpq -lssl -lcrypto"
  6370. else
  6371. echo "$ac_t""no" 1>&6
  6372. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6373. echo "configure:7804: checking for PQsetdbLogin in -lpq" >&5
  6374. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6375. ac_save_LIBS="$LIBS"
  6376. LIBS="-lpq -lcrypt $LIBS"
  6377. cat > conftest.$ac_ext <<EOF
  6378. #line 7810 "configure"
  6379. #include "confdefs.h"
  6380. /* Override any gcc2 internal prototype to avoid an error. */
  6381. /* We use char because int might match the return type of a gcc2
  6382. builtin and then its argument prototype would still apply. */
  6383. char PQsetdbLogin();
  6384. int main() {
  6385. PQsetdbLogin()
  6386. ; return 0; }
  6387. EOF
  6388. if { (eval echo configure:7821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6389. rm -rf conftest*
  6390. eval "ac_cv_lib_$ac_lib_var=yes"
  6391. else
  6392. echo "configure: failed program was:" >&5
  6393. cat conftest.$ac_ext >&5
  6394. rm -rf conftest*
  6395. eval "ac_cv_lib_$ac_lib_var=no"
  6396. fi
  6397. rm -f conftest*
  6398. LIBS="$ac_save_LIBS"
  6399. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6400. echo "$ac_t""yes" 1>&6
  6401. PQLIB="$PQLIB -lpq -lcrypt"
  6402. else
  6403. echo "$ac_t""no" 1>&6
  6404. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6405. echo "configure:7840: checking for PQsetdbLogin in -lpq" >&5
  6406. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6407. ac_save_LIBS="$LIBS"
  6408. LIBS="-lpq -lcrypt -lssl -lcrypto $LIBS"
  6409. cat > conftest.$ac_ext <<EOF
  6410. #line 7846 "configure"
  6411. #include "confdefs.h"
  6412. /* Override any gcc2 internal prototype to avoid an error. */
  6413. /* We use char because int might match the return type of a gcc2
  6414. builtin and then its argument prototype would still apply. */
  6415. char PQsetdbLogin();
  6416. int main() {
  6417. PQsetdbLogin()
  6418. ; return 0; }
  6419. EOF
  6420. if { (eval echo configure:7857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6421. rm -rf conftest*
  6422. eval "ac_cv_lib_$ac_lib_var=yes"
  6423. else
  6424. echo "configure: failed program was:" >&5
  6425. cat conftest.$ac_ext >&5
  6426. rm -rf conftest*
  6427. eval "ac_cv_lib_$ac_lib_var=no"
  6428. fi
  6429. rm -f conftest*
  6430. LIBS="$ac_save_LIBS"
  6431. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6432. echo "$ac_t""yes" 1>&6
  6433. PQLIB="$PQLIB -lpq -lcrypt -lssl -lcrypto"
  6434. else
  6435. echo "$ac_t""no" 1>&6
  6436. LDFLAGS=${ac_save_ldflags}
  6437. { echo "configure: error: *** Unable to locate PostgreSQL library." 1>&2; exit 1; }
  6438. fi
  6439. fi
  6440. fi
  6441. fi
  6442. LDFLAGS=${ac_save_ldflags}
  6443. ac_save_ldflags="$LDFLAGS"
  6444. LDFLAGS="$LDFLAGS $PQLIBPATH"
  6445. echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
  6446. echo "configure:7914: checking for PQcmdTuples in -lpq" >&5
  6447. ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
  6448. ac_save_LIBS="$LIBS"
  6449. LIBS="-lpq $LIBS"
  6450. cat > conftest.$ac_ext <<EOF
  6451. #line 7920 "configure"
  6452. #include "confdefs.h"
  6453. /* Override any gcc2 internal prototype to avoid an error. */
  6454. /* We use char because int might match the return type of a gcc2
  6455. builtin and then its argument prototype would still apply. */
  6456. char PQcmdTuples();
  6457. int main() {
  6458. PQcmdTuples()
  6459. ; return 0; }
  6460. EOF
  6461. if { (eval echo configure:7931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6462. rm -rf conftest*
  6463. eval "ac_cv_lib_$ac_lib_var=yes"
  6464. else
  6465. echo "configure: failed program was:" >&5
  6466. cat conftest.$ac_ext >&5
  6467. rm -rf conftest*
  6468. eval "ac_cv_lib_$ac_lib_var=no"
  6469. fi
  6470. rm -f conftest*
  6471. LIBS="$ac_save_LIBS"
  6472. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6473. echo "$ac_t""yes" 1>&6
  6474. cat >> confdefs.h <<\EOF
  6475. #define HAVE_PQCMDTUPLES 1
  6476. EOF
  6477. else
  6478. echo "$ac_t""no" 1>&6
  6479. echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
  6480. echo "configure:7953: checking for PQcmdTuples in -lpq" >&5
  6481. ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
  6482. ac_save_LIBS="$LIBS"
  6483. LIBS="-lpq -lcrypt $LIBS"
  6484. cat > conftest.$ac_ext <<EOF
  6485. #line 7959 "configure"
  6486. #include "confdefs.h"
  6487. /* Override any gcc2 internal prototype to avoid an error. */
  6488. /* We use char because int might match the return type of a gcc2
  6489. builtin and then its argument prototype would still apply. */
  6490. char PQcmdTuples();
  6491. int main() {
  6492. PQcmdTuples()
  6493. ; return 0; }
  6494. EOF
  6495. if { (eval echo configure:7970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6496. rm -rf conftest*
  6497. eval "ac_cv_lib_$ac_lib_var=yes"
  6498. else
  6499. echo "configure: failed program was:" >&5
  6500. cat conftest.$ac_ext >&5
  6501. rm -rf conftest*
  6502. eval "ac_cv_lib_$ac_lib_var=no"
  6503. fi
  6504. rm -f conftest*
  6505. LIBS="$ac_save_LIBS"
  6506. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6507. echo "$ac_t""yes" 1>&6
  6508. cat >> confdefs.h <<\EOF
  6509. #define HAVE_PQCMDTUPLES 1
  6510. EOF
  6511. else
  6512. echo "$ac_t""no" 1>&6
  6513. fi
  6514. fi
  6515. LDFLAGS="${ac_save_ldflags}"
  6516. fi # $USE_POSTGRES
  6517. # Done checking PostgreSQL
  6518. # Enable MySQL option
  6519. echo $ac_n "checking whether to use MySQL""... $ac_c" 1>&6
  6520. echo "configure:8013: checking whether to use MySQL" >&5
  6521. echo "$ac_t"""$with_mysql"" 1>&6
  6522. case "$with_mysql" in
  6523. "no") USE_MYSQL= ;;
  6524. "yes") USE_MYSQL="1" ;;
  6525. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6526. esac
  6527. MYSQLINCPATH=
  6528. MYSQLLIBPATH=
  6529. MYSQLLIB=
  6530. if test -n "$USE_MYSQL"; then
  6531. # With MySQL includes directory
  6532. echo $ac_n "checking for location of MySQL includes""... $ac_c" 1>&6
  6533. echo "configure:8033: checking for location of MySQL includes" >&5
  6534. case "$with_mysql_includes" in
  6535. y | ye | yes | n | no)
  6536. { echo "configure: error: *** You must supply a directory to --with-mysql-includes." 1>&2; exit 1; }
  6537. ;;
  6538. esac
  6539. echo "$ac_t""$with_mysql_includes" 1>&6
  6540. if test -n "$with_mysql_includes" ; then
  6541. for dir in $with_mysql_includes; do
  6542. if test -d "$dir"; then
  6543. MYSQLINCPATH="$MYSQLINCPATH -I$dir"
  6544. else
  6545. { echo "configure: error: *** MySQL includes directory $dir does not exist." 1>&2; exit 1; }
  6546. fi
  6547. done
  6548. fi
  6549. ac_save_cppflags="$CPPFLAGS"
  6550. CPPFLAGS="$MYSQLINCPATH $CPPFLAGS"
  6551. for ac_hdr in mysql.h
  6552. do
  6553. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6554. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6555. echo "configure:8059: checking for $ac_hdr" >&5
  6556. cat > conftest.$ac_ext <<EOF
  6557. #line 8062 "configure"
  6558. #include "confdefs.h"
  6559. #include <$ac_hdr>
  6560. EOF
  6561. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6562. { (eval echo configure:8067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6563. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6564. if test -z "$ac_err"; then
  6565. rm -rf conftest*
  6566. eval "ac_cv_header_$ac_safe=yes"
  6567. else
  6568. echo "$ac_err" >&5
  6569. echo "configure: failed program was:" >&5
  6570. cat conftest.$ac_ext >&5
  6571. rm -rf conftest*
  6572. eval "ac_cv_header_$ac_safe=no"
  6573. fi
  6574. rm -f conftest*
  6575. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6576. echo "$ac_t""yes" 1>&6
  6577. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6578. cat >> confdefs.h <<EOF
  6579. #define $ac_tr_hdr 1
  6580. EOF
  6581. else
  6582. echo "$ac_t""no" 1>&6
  6583. { echo "configure: error: *** Unable to locate MySQL includes." 1>&2; exit 1; }
  6584. fi
  6585. done
  6586. CPPFLAGS=$ac_save_cppflags
  6587. fi # $USE_MYSQL
  6588. if test -n "$USE_MYSQL"; then
  6589. # With MySQL library directory
  6590. echo $ac_n "checking for location of MySQL library""... $ac_c" 1>&6
  6591. echo "configure:8104: checking for location of MySQL library" >&5
  6592. case "$with_mysql_libs" in
  6593. y | ye | yes | n | no)
  6594. { echo "configure: error: *** You must supply a directory to --with-mysql-libs." 1>&2; exit 1; }
  6595. ;;
  6596. esac
  6597. echo "$ac_t""$with_mysql_libs" 1>&6
  6598. if test -n "$with_mysql_libs"; then
  6599. for dir in $with_mysql_libs; do
  6600. if test -d "$dir"; then
  6601. MYSQLLIBPATH="$MYSQLLIBPATH -L$dir"
  6602. else
  6603. { echo "configure: error: *** MySQL library directory $dir does not exist." 1>&2; exit 1; }
  6604. fi
  6605. done
  6606. fi
  6607. ac_save_ldflags="$LDFLAGS"
  6608. LDFLAGS="$MYSQLLIBPATH $LDFLAGS"
  6609. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6610. echo "configure:8135: checking for mysql_query in -lmysqlclient" >&5
  6611. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6612. ac_save_LIBS="$LIBS"
  6613. LIBS="-lmysqlclient $LIBS"
  6614. cat > conftest.$ac_ext <<EOF
  6615. #line 8141 "configure"
  6616. #include "confdefs.h"
  6617. /* Override any gcc2 internal prototype to avoid an error. */
  6618. /* We use char because int might match the return type of a gcc2
  6619. builtin and then its argument prototype would still apply. */
  6620. char mysql_query();
  6621. int main() {
  6622. mysql_query()
  6623. ; return 0; }
  6624. EOF
  6625. if { (eval echo configure:8152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6626. rm -rf conftest*
  6627. eval "ac_cv_lib_$ac_lib_var=yes"
  6628. else
  6629. echo "configure: failed program was:" >&5
  6630. cat conftest.$ac_ext >&5
  6631. rm -rf conftest*
  6632. eval "ac_cv_lib_$ac_lib_var=no"
  6633. fi
  6634. rm -f conftest*
  6635. LIBS="$ac_save_LIBS"
  6636. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6637. echo "$ac_t""yes" 1>&6
  6638. MYSQLLIB="$MYSQLLIB -lmysqlclient "
  6639. else
  6640. echo "$ac_t""no" 1>&6
  6641. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6642. echo "configure:8171: checking for mysql_query in -lmysqlclient" >&5
  6643. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6644. ac_save_LIBS="$LIBS"
  6645. LIBS="-lmysqlclient $MATHLIB $LIBS"
  6646. cat > conftest.$ac_ext <<EOF
  6647. #line 8177 "configure"
  6648. #include "confdefs.h"
  6649. /* Override any gcc2 internal prototype to avoid an error. */
  6650. /* We use char because int might match the return type of a gcc2
  6651. builtin and then its argument prototype would still apply. */
  6652. char mysql_query();
  6653. int main() {
  6654. mysql_query()
  6655. ; return 0; }
  6656. EOF
  6657. if { (eval echo configure:8188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6658. rm -rf conftest*
  6659. eval "ac_cv_lib_$ac_lib_var=yes"
  6660. else
  6661. echo "configure: failed program was:" >&5
  6662. cat conftest.$ac_ext >&5
  6663. rm -rf conftest*
  6664. eval "ac_cv_lib_$ac_lib_var=no"
  6665. fi
  6666. rm -f conftest*
  6667. LIBS="$ac_save_LIBS"
  6668. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6669. echo "$ac_t""yes" 1>&6
  6670. MYSQLLIB="$MYSQLLIB -lmysqlclient $MATHLIB"
  6671. else
  6672. echo "$ac_t""no" 1>&6
  6673. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6674. echo "configure:8207: checking for mysql_query in -lmysqlclient" >&5
  6675. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6676. ac_save_LIBS="$LIBS"
  6677. LIBS="-lmysqlclient $SOCKLIB $LIBS"
  6678. cat > conftest.$ac_ext <<EOF
  6679. #line 8213 "configure"
  6680. #include "confdefs.h"
  6681. /* Override any gcc2 internal prototype to avoid an error. */
  6682. /* We use char because int might match the return type of a gcc2
  6683. builtin and then its argument prototype would still apply. */
  6684. char mysql_query();
  6685. int main() {
  6686. mysql_query()
  6687. ; return 0; }
  6688. EOF
  6689. if { (eval echo configure:8224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6690. rm -rf conftest*
  6691. eval "ac_cv_lib_$ac_lib_var=yes"
  6692. else
  6693. echo "configure: failed program was:" >&5
  6694. cat conftest.$ac_ext >&5
  6695. rm -rf conftest*
  6696. eval "ac_cv_lib_$ac_lib_var=no"
  6697. fi
  6698. rm -f conftest*
  6699. LIBS="$ac_save_LIBS"
  6700. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6701. echo "$ac_t""yes" 1>&6
  6702. MYSQLLIB="$MYSQLLIB -lmysqlclient $SOCKLIB"
  6703. else
  6704. echo "$ac_t""no" 1>&6
  6705. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6706. echo "configure:8243: checking for mysql_query in -lmysqlclient" >&5
  6707. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6708. ac_save_LIBS="$LIBS"
  6709. LIBS="-lmysqlclient $SOCKLIB $MATHLIB $LIBS"
  6710. cat > conftest.$ac_ext <<EOF
  6711. #line 8249 "configure"
  6712. #include "confdefs.h"
  6713. /* Override any gcc2 internal prototype to avoid an error. */
  6714. /* We use char because int might match the return type of a gcc2
  6715. builtin and then its argument prototype would still apply. */
  6716. char mysql_query();
  6717. int main() {
  6718. mysql_query()
  6719. ; return 0; }
  6720. EOF
  6721. if { (eval echo configure:8260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6722. rm -rf conftest*
  6723. eval "ac_cv_lib_$ac_lib_var=yes"
  6724. else
  6725. echo "configure: failed program was:" >&5
  6726. cat conftest.$ac_ext >&5
  6727. rm -rf conftest*
  6728. eval "ac_cv_lib_$ac_lib_var=no"
  6729. fi
  6730. rm -f conftest*
  6731. LIBS="$ac_save_LIBS"
  6732. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6733. echo "$ac_t""yes" 1>&6
  6734. MYSQLLIB="$MYSQLLIB -lmysqlclient $SOCKLIB $MATHLIB"
  6735. else
  6736. echo "$ac_t""no" 1>&6
  6737. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6738. echo "configure:8279: checking for mysql_query in -lmysqlclient" >&5
  6739. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6740. ac_save_LIBS="$LIBS"
  6741. LIBS="-lmysqlclient $ZLIB $LIBS"
  6742. cat > conftest.$ac_ext <<EOF
  6743. #line 8285 "configure"
  6744. #include "confdefs.h"
  6745. /* Override any gcc2 internal prototype to avoid an error. */
  6746. /* We use char because int might match the return type of a gcc2
  6747. builtin and then its argument prototype would still apply. */
  6748. char mysql_query();
  6749. int main() {
  6750. mysql_query()
  6751. ; return 0; }
  6752. EOF
  6753. if { (eval echo configure:8296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6754. rm -rf conftest*
  6755. eval "ac_cv_lib_$ac_lib_var=yes"
  6756. else
  6757. echo "configure: failed program was:" >&5
  6758. cat conftest.$ac_ext >&5
  6759. rm -rf conftest*
  6760. eval "ac_cv_lib_$ac_lib_var=no"
  6761. fi
  6762. rm -f conftest*
  6763. LIBS="$ac_save_LIBS"
  6764. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6765. echo "$ac_t""yes" 1>&6
  6766. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB"
  6767. else
  6768. echo "$ac_t""no" 1>&6
  6769. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6770. echo "configure:8315: checking for mysql_query in -lmysqlclient" >&5
  6771. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6772. ac_save_LIBS="$LIBS"
  6773. LIBS="-lmysqlclient $ZLIB $MATHLIB $LIBS"
  6774. cat > conftest.$ac_ext <<EOF
  6775. #line 8321 "configure"
  6776. #include "confdefs.h"
  6777. /* Override any gcc2 internal prototype to avoid an error. */
  6778. /* We use char because int might match the return type of a gcc2
  6779. builtin and then its argument prototype would still apply. */
  6780. char mysql_query();
  6781. int main() {
  6782. mysql_query()
  6783. ; return 0; }
  6784. EOF
  6785. if { (eval echo configure:8332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6786. rm -rf conftest*
  6787. eval "ac_cv_lib_$ac_lib_var=yes"
  6788. else
  6789. echo "configure: failed program was:" >&5
  6790. cat conftest.$ac_ext >&5
  6791. rm -rf conftest*
  6792. eval "ac_cv_lib_$ac_lib_var=no"
  6793. fi
  6794. rm -f conftest*
  6795. LIBS="$ac_save_LIBS"
  6796. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6797. echo "$ac_t""yes" 1>&6
  6798. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $MATHLIB"
  6799. else
  6800. echo "$ac_t""no" 1>&6
  6801. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6802. echo "configure:8351: checking for mysql_query in -lmysqlclient" >&5
  6803. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6804. ac_save_LIBS="$LIBS"
  6805. LIBS="-lmysqlclient $ZLIB $SOCKLIB $LIBS"
  6806. cat > conftest.$ac_ext <<EOF
  6807. #line 8357 "configure"
  6808. #include "confdefs.h"
  6809. /* Override any gcc2 internal prototype to avoid an error. */
  6810. /* We use char because int might match the return type of a gcc2
  6811. builtin and then its argument prototype would still apply. */
  6812. char mysql_query();
  6813. int main() {
  6814. mysql_query()
  6815. ; return 0; }
  6816. EOF
  6817. if { (eval echo configure:8368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6818. rm -rf conftest*
  6819. eval "ac_cv_lib_$ac_lib_var=yes"
  6820. else
  6821. echo "configure: failed program was:" >&5
  6822. cat conftest.$ac_ext >&5
  6823. rm -rf conftest*
  6824. eval "ac_cv_lib_$ac_lib_var=no"
  6825. fi
  6826. rm -f conftest*
  6827. LIBS="$ac_save_LIBS"
  6828. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6829. echo "$ac_t""yes" 1>&6
  6830. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $SOCKLIB"
  6831. else
  6832. echo "$ac_t""no" 1>&6
  6833. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6834. echo "configure:8387: checking for mysql_query in -lmysqlclient" >&5
  6835. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6836. ac_save_LIBS="$LIBS"
  6837. LIBS="-lmysqlclient $ZLIB $SOCKLIB $MATHLIB $LIBS"
  6838. cat > conftest.$ac_ext <<EOF
  6839. #line 8393 "configure"
  6840. #include "confdefs.h"
  6841. /* Override any gcc2 internal prototype to avoid an error. */
  6842. /* We use char because int might match the return type of a gcc2
  6843. builtin and then its argument prototype would still apply. */
  6844. char mysql_query();
  6845. int main() {
  6846. mysql_query()
  6847. ; return 0; }
  6848. EOF
  6849. if { (eval echo configure:8404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6850. rm -rf conftest*
  6851. eval "ac_cv_lib_$ac_lib_var=yes"
  6852. else
  6853. echo "configure: failed program was:" >&5
  6854. cat conftest.$ac_ext >&5
  6855. rm -rf conftest*
  6856. eval "ac_cv_lib_$ac_lib_var=no"
  6857. fi
  6858. rm -f conftest*
  6859. LIBS="$ac_save_LIBS"
  6860. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6861. echo "$ac_t""yes" 1>&6
  6862. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $SOCKLIB $MATHLIB"
  6863. else
  6864. echo "$ac_t""no" 1>&6
  6865. LDFLAGS=${ac_save_ldflags}
  6866. { echo "configure: error: *** Unable to locate MySQL library." 1>&2; exit 1; }
  6867. fi
  6868. fi
  6869. fi
  6870. fi
  6871. fi
  6872. fi
  6873. fi
  6874. fi
  6875. LDFLAGS=${ac_save_ldflags}
  6876. # Check for libmysqld (for embedded version of the driver)
  6877. # Extract the first word of "mysql_config", so it can be a program name with args.
  6878. set dummy mysql_config; ac_word=$2
  6879. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  6880. echo "configure:8494: checking for $ac_word" >&5
  6881. case "$MYSQLD_CONFIG" in
  6882. /*)
  6883. ac_cv_path_MYSQLD_CONFIG="$MYSQLD_CONFIG" # Let the user override the test with a path.
  6884. ;;
  6885. ?:/*)
  6886. ac_cv_path_MYSQLD_CONFIG="$MYSQLD_CONFIG" # Let the user override the test with a dos path.
  6887. ;;
  6888. *)
  6889. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  6890. ac_dummy="$PATH"
  6891. for ac_dir in $ac_dummy; do
  6892. test -z "$ac_dir" && ac_dir=.
  6893. if test -f $ac_dir/$ac_word; then
  6894. ac_cv_path_MYSQLD_CONFIG="$ac_dir/$ac_word"
  6895. break
  6896. fi
  6897. done
  6898. IFS="$ac_save_ifs"
  6899. test -z "$ac_cv_path_MYSQLD_CONFIG" && ac_cv_path_MYSQLD_CONFIG="no"
  6900. ;;
  6901. esac
  6902. MYSQLD_CONFIG="$ac_cv_path_MYSQLD_CONFIG"
  6903. if test -n "$MYSQLD_CONFIG"; then
  6904. echo "$ac_t""$MYSQLD_CONFIG" 1>&6
  6905. else
  6906. echo "$ac_t""no" 1>&6
  6907. fi
  6908. if test "$MYSQLD_CONFIG" = "no" ; then
  6909. { echo "configure: error: *** couldn't find mysql_config" 1>&2; exit 1; }
  6910. fi
  6911. if test "$MYSQLD_CONFIG" != "" ; then
  6912. ac_ext=C
  6913. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6914. ac_cpp='$CXXCPP $CPPFLAGS'
  6915. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6916. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6917. cross_compiling=$ac_cv_prog_cxx_cross
  6918. ac_save_libs="$LIBS"
  6919. MYSQLDLIB=`"$MYSQLD_CONFIG" --libmysqld-libs`
  6920. LIBS="$MYSQLDLIB $LIBS"
  6921. echo $ac_n "checking for mysql_server_init""... $ac_c" 1>&6
  6922. echo "configure:8543: checking for mysql_server_init" >&5
  6923. cat > conftest.$ac_ext <<EOF
  6924. #line 8546 "configure"
  6925. #include "confdefs.h"
  6926. /* System header to define __stub macros and hopefully few prototypes,
  6927. which can conflict with char mysql_server_init(); below. */
  6928. #include <assert.h>
  6929. /* Override any gcc2 internal prototype to avoid an error. */
  6930. #ifdef __cplusplus
  6931. extern "C"
  6932. #endif
  6933. /* We use char because int might match the return type of a gcc2
  6934. builtin and then its argument prototype would still apply. */
  6935. char mysql_server_init();
  6936. int main() {
  6937. /* The GNU C library defines this for functions which it implements
  6938. to always fail with ENOSYS. Some functions are actually named
  6939. something starting with __ and the normal name is an alias. */
  6940. #if defined (__stub_mysql_server_init) || defined (__stub___mysql_server_init)
  6941. choke me
  6942. #else
  6943. mysql_server_init();
  6944. #endif
  6945. ; return 0; }
  6946. EOF
  6947. if { (eval echo configure:8572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6948. rm -rf conftest*
  6949. eval "ac_cv_func_mysql_server_init=yes"
  6950. else
  6951. echo "configure: failed program was:" >&5
  6952. cat conftest.$ac_ext >&5
  6953. rm -rf conftest*
  6954. eval "ac_cv_func_mysql_server_init=no"
  6955. fi
  6956. rm -f conftest*
  6957. if eval "test \"`echo '$ac_cv_func_'mysql_server_init`\" = yes"; then
  6958. echo "$ac_t""yes" 1>&6
  6959. :
  6960. else
  6961. echo "$ac_t""no" 1>&6
  6962. MYSQLDLIB="";
  6963. echo "configure: warning: libmysqld not found" 1>&2
  6964. fi
  6965. LIBS=$ac_save_libs
  6966. ac_ext=c
  6967. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6968. ac_cpp='$CPP $CPPFLAGS'
  6969. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6970. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6971. cross_compiling=$ac_cv_prog_cc_cross
  6972. ac_ext=c
  6973. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6974. ac_cpp='$CPP $CPPFLAGS'
  6975. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6976. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6977. cross_compiling=$ac_cv_prog_cc_cross
  6978. fi
  6979. fi # $USE_MYSQL
  6980. # Done checking MySQL
  6981. # Enable SQLite option
  6982. echo $ac_n "checking whether to use SQLite""... $ac_c" 1>&6
  6983. echo "configure:8624: checking whether to use SQLite" >&5
  6984. echo "$ac_t"""$with_sqlite"" 1>&6
  6985. case "$with_sqlite" in
  6986. "no") USE_SQLITE= ;;
  6987. "yes") USE_SQLITE="1" ;;
  6988. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6989. esac
  6990. SQLITEINCPATH=
  6991. SQLITELIBPATH=
  6992. SQLITELIB=
  6993. if test -n "$USE_SQLITE"; then
  6994. # With SQLite includes directory
  6995. echo $ac_n "checking for location of SQLite includes""... $ac_c" 1>&6
  6996. echo "configure:8644: checking for location of SQLite includes" >&5
  6997. case "$with_sqlite_includes" in
  6998. y | ye | yes | n | no)
  6999. { echo "configure: error: *** You must supply a directory to --with-sqlite-includes." 1>&2; exit 1; }
  7000. ;;
  7001. esac
  7002. echo "$ac_t""$with_sqlite_includes" 1>&6
  7003. if test -n "$with_sqlite_includes" ; then
  7004. for dir in $with_sqlite_includes; do
  7005. if test -d "$dir"; then
  7006. SQLITEINCPATH="$SQLITEINCPATH -I$dir"
  7007. else
  7008. { echo "configure: error: *** SQLite includes directory $dir does not exist." 1>&2; exit 1; }
  7009. fi
  7010. done
  7011. fi
  7012. ac_save_cppflags="$CPPFLAGS"
  7013. CPPFLAGS="$SQLITEINCPATH $CPPFLAGS"
  7014. for ac_hdr in sqlite3.h
  7015. do
  7016. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7017. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7018. echo "configure:8670: checking for $ac_hdr" >&5
  7019. cat > conftest.$ac_ext <<EOF
  7020. #line 8673 "configure"
  7021. #include "confdefs.h"
  7022. #include <$ac_hdr>
  7023. EOF
  7024. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7025. { (eval echo configure:8678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7026. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7027. if test -z "$ac_err"; then
  7028. rm -rf conftest*
  7029. eval "ac_cv_header_$ac_safe=yes"
  7030. else
  7031. echo "$ac_err" >&5
  7032. echo "configure: failed program was:" >&5
  7033. cat conftest.$ac_ext >&5
  7034. rm -rf conftest*
  7035. eval "ac_cv_header_$ac_safe=no"
  7036. fi
  7037. rm -f conftest*
  7038. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7039. echo "$ac_t""yes" 1>&6
  7040. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7041. cat >> confdefs.h <<EOF
  7042. #define $ac_tr_hdr 1
  7043. EOF
  7044. else
  7045. echo "$ac_t""no" 1>&6
  7046. { echo "configure: error: *** Unable to locate SQLite includes." 1>&2; exit 1; }
  7047. fi
  7048. done
  7049. CPPFLAGS=$ac_save_cppflags
  7050. cat >> confdefs.h <<\EOF
  7051. #define HAVE_SQLITE 1
  7052. EOF
  7053. fi # $USE_SQLITE
  7054. if test -n "$USE_SQLITE"; then
  7055. # With SQLite library directory
  7056. echo $ac_n "checking for location of SQLite library""... $ac_c" 1>&6
  7057. echo "configure:8721: checking for location of SQLite library" >&5
  7058. case "$with_sqlite_libs" in
  7059. y | ye | yes | n | no)
  7060. { echo "configure: error: *** You must supply a directory to --with-sqlite-libs." 1>&2; exit 1; }
  7061. ;;
  7062. esac
  7063. echo "$ac_t""$with_sqlite_libs" 1>&6
  7064. if test -n "$with_sqlite_libs"; then
  7065. for dir in $with_sqlite_libs; do
  7066. if test -d "$dir"; then
  7067. SQLITELIBPATH="$SQLITELIBPATH -L$dir"
  7068. else
  7069. { echo "configure: error: *** SQLite library directory $dir does not exist." 1>&2; exit 1; }
  7070. fi
  7071. done
  7072. fi
  7073. ac_save_ldflags="$LDFLAGS"
  7074. LDFLAGS="$SQLITELIBPATH $LDFLAGS"
  7075. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  7076. echo "configure:8750: checking for sqlite3_open in -lsqlite3" >&5
  7077. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  7078. ac_save_LIBS="$LIBS"
  7079. LIBS="-lsqlite3 $LIBS"
  7080. cat > conftest.$ac_ext <<EOF
  7081. #line 8756 "configure"
  7082. #include "confdefs.h"
  7083. /* Override any gcc2 internal prototype to avoid an error. */
  7084. /* We use char because int might match the return type of a gcc2
  7085. builtin and then its argument prototype would still apply. */
  7086. char sqlite3_open();
  7087. int main() {
  7088. sqlite3_open()
  7089. ; return 0; }
  7090. EOF
  7091. if { (eval echo configure:8767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7092. rm -rf conftest*
  7093. eval "ac_cv_lib_$ac_lib_var=yes"
  7094. else
  7095. echo "configure: failed program was:" >&5
  7096. cat conftest.$ac_ext >&5
  7097. rm -rf conftest*
  7098. eval "ac_cv_lib_$ac_lib_var=no"
  7099. fi
  7100. rm -f conftest*
  7101. LIBS="$ac_save_LIBS"
  7102. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7103. echo "$ac_t""yes" 1>&6
  7104. SQLITELIB="$SQLITELIB -lsqlite3 "
  7105. else
  7106. echo "$ac_t""no" 1>&6
  7107. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  7108. echo "configure:8786: checking for sqlite3_open in -lsqlite3" >&5
  7109. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  7110. ac_save_LIBS="$LIBS"
  7111. LIBS="-lsqlite3 $DLLIB $LIBS"
  7112. cat > conftest.$ac_ext <<EOF
  7113. #line 8792 "configure"
  7114. #include "confdefs.h"
  7115. /* Override any gcc2 internal prototype to avoid an error. */
  7116. /* We use char because int might match the return type of a gcc2
  7117. builtin and then its argument prototype would still apply. */
  7118. char sqlite3_open();
  7119. int main() {
  7120. sqlite3_open()
  7121. ; return 0; }
  7122. EOF
  7123. if { (eval echo configure:8803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7124. rm -rf conftest*
  7125. eval "ac_cv_lib_$ac_lib_var=yes"
  7126. else
  7127. echo "configure: failed program was:" >&5
  7128. cat conftest.$ac_ext >&5
  7129. rm -rf conftest*
  7130. eval "ac_cv_lib_$ac_lib_var=no"
  7131. fi
  7132. rm -f conftest*
  7133. LIBS="$ac_save_LIBS"
  7134. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7135. echo "$ac_t""yes" 1>&6
  7136. SQLITELIB="$SQLITELIB -lsqlite3 $DLLIB"
  7137. else
  7138. echo "$ac_t""no" 1>&6
  7139. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  7140. echo "configure:8822: checking for sqlite3_open in -lsqlite3" >&5
  7141. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  7142. ac_save_LIBS="$LIBS"
  7143. LIBS="-lsqlite3 $MATHLIB $LIBS"
  7144. cat > conftest.$ac_ext <<EOF
  7145. #line 8828 "configure"
  7146. #include "confdefs.h"
  7147. /* Override any gcc2 internal prototype to avoid an error. */
  7148. /* We use char because int might match the return type of a gcc2
  7149. builtin and then its argument prototype would still apply. */
  7150. char sqlite3_open();
  7151. int main() {
  7152. sqlite3_open()
  7153. ; return 0; }
  7154. EOF
  7155. if { (eval echo configure:8839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7156. rm -rf conftest*
  7157. eval "ac_cv_lib_$ac_lib_var=yes"
  7158. else
  7159. echo "configure: failed program was:" >&5
  7160. cat conftest.$ac_ext >&5
  7161. rm -rf conftest*
  7162. eval "ac_cv_lib_$ac_lib_var=no"
  7163. fi
  7164. rm -f conftest*
  7165. LIBS="$ac_save_LIBS"
  7166. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7167. echo "$ac_t""yes" 1>&6
  7168. SQLITELIB="$SQLITELIB -lsqlite3 $MATHLIB"
  7169. else
  7170. echo "$ac_t""no" 1>&6
  7171. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  7172. echo "configure:8858: checking for sqlite3_open in -lsqlite3" >&5
  7173. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  7174. ac_save_LIBS="$LIBS"
  7175. LIBS="-lsqlite3 $MATHLIB $DLLIB $LIBS"
  7176. cat > conftest.$ac_ext <<EOF
  7177. #line 8864 "configure"
  7178. #include "confdefs.h"
  7179. /* Override any gcc2 internal prototype to avoid an error. */
  7180. /* We use char because int might match the return type of a gcc2
  7181. builtin and then its argument prototype would still apply. */
  7182. char sqlite3_open();
  7183. int main() {
  7184. sqlite3_open()
  7185. ; return 0; }
  7186. EOF
  7187. if { (eval echo configure:8875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7188. rm -rf conftest*
  7189. eval "ac_cv_lib_$ac_lib_var=yes"
  7190. else
  7191. echo "configure: failed program was:" >&5
  7192. cat conftest.$ac_ext >&5
  7193. rm -rf conftest*
  7194. eval "ac_cv_lib_$ac_lib_var=no"
  7195. fi
  7196. rm -f conftest*
  7197. LIBS="$ac_save_LIBS"
  7198. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7199. echo "$ac_t""yes" 1>&6
  7200. SQLITELIB="$SQLITELIB -lsqlite3 $MATHLIB $DLLIB"
  7201. else
  7202. echo "$ac_t""no" 1>&6
  7203. LDFLAGS=${ac_save_ldflags}
  7204. { echo "configure: error: *** Unable to locate SQLite library." 1>&2; exit 1; }
  7205. fi
  7206. fi
  7207. fi
  7208. fi
  7209. LDFLAGS=${ac_save_ldflags}
  7210. fi # $USE_SQLITE
  7211. # Done checking SQLite
  7212. # Enable OpenGL option
  7213. OPENGLINC=
  7214. OPENGLLIB=
  7215. OPENGLULIB=
  7216. USE_OPENGL=
  7217. OPENGL_X11=
  7218. OPENGL_AQUA=
  7219. OPENGL_WINDOWS=
  7220. echo $ac_n "checking whether to use OpenGL""... $ac_c" 1>&6
  7221. echo "configure:8950: checking whether to use OpenGL" >&5
  7222. echo "$ac_t"""$with_opengl"" 1>&6
  7223. case "$with_opengl" in
  7224. n|no)
  7225. OPENGL_TYPE=none
  7226. ;;
  7227. y|yes|x|x11|glx)
  7228. OPENGL_TYPE=X11
  7229. USE_OPENGL=1
  7230. OPENGL_X11=1
  7231. ;;
  7232. aqua|mac|osx|macosx|agl)
  7233. OPENGL_TYPE=Aqua
  7234. USE_OPENGL=1
  7235. OPENGL_AQUA=1
  7236. ;;
  7237. win|windows|mswin|wgl)
  7238. OPENGL_TYPE=Windows
  7239. USE_OPENGL=1
  7240. OPENGL_WINDOWS=1
  7241. ;;
  7242. *)
  7243. { echo "configure: error: *** Valid arguments for --with-opengl= are yes,no,x11,aqua,windows." 1>&2; exit 1; }
  7244. ;;
  7245. esac
  7246. if test -n "$USE_OPENGL" ; then
  7247. if test "$OPENGL_X11" = 1 ; then
  7248. # With OpenGL includes directory
  7249. echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
  7250. echo "configure:8984: checking for location of OpenGL includes" >&5
  7251. case "$with_opengl_includes" in
  7252. y | ye | yes | n | no)
  7253. { echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
  7254. ;;
  7255. esac
  7256. echo "$ac_t""$with_opengl_includes" 1>&6
  7257. if test -n "$with_opengl_includes" ; then
  7258. for dir in $with_opengl_includes; do
  7259. if test -d "$dir"; then
  7260. OPENGLINC="$OPENGLINC -I$dir"
  7261. else
  7262. { echo "configure: error: *** OpenGL includes directory $dir does not exist." 1>&2; exit 1; }
  7263. fi
  7264. done
  7265. fi
  7266. ac_save_cppflags="$CPPFLAGS"
  7267. CPPFLAGS="$OPENGLINC $X_CFLAGS $CPPFLAGS"
  7268. for ac_hdr in GL/gl.h GL/glu.h
  7269. do
  7270. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7271. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7272. echo "configure:9010: checking for $ac_hdr" >&5
  7273. cat > conftest.$ac_ext <<EOF
  7274. #line 9013 "configure"
  7275. #include "confdefs.h"
  7276. #include <$ac_hdr>
  7277. EOF
  7278. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7279. { (eval echo configure:9018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7280. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7281. if test -z "$ac_err"; then
  7282. rm -rf conftest*
  7283. eval "ac_cv_header_$ac_safe=yes"
  7284. else
  7285. echo "$ac_err" >&5
  7286. echo "configure: failed program was:" >&5
  7287. cat conftest.$ac_ext >&5
  7288. rm -rf conftest*
  7289. eval "ac_cv_header_$ac_safe=no"
  7290. fi
  7291. rm -f conftest*
  7292. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7293. echo "$ac_t""yes" 1>&6
  7294. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7295. cat >> confdefs.h <<EOF
  7296. #define $ac_tr_hdr 1
  7297. EOF
  7298. else
  7299. echo "$ac_t""no" 1>&6
  7300. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  7301. fi
  7302. done
  7303. CPPFLAGS=$ac_save_cppflags
  7304. # With OpenGL library directory
  7305. echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
  7306. echo "configure:9052: checking for location of OpenGL library" >&5
  7307. case "$with_opengl_libs" in
  7308. y | ye | yes | n | no)
  7309. { echo "configure: error: *** You must supply a directory to --with-opengl-libs." 1>&2; exit 1; }
  7310. ;;
  7311. esac
  7312. echo "$ac_t""$with_opengl_libs" 1>&6
  7313. if test -n "$with_opengl_libs"; then
  7314. for dir in $with_opengl_libs; do
  7315. if test -d "$dir"; then
  7316. OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
  7317. else
  7318. { echo "configure: error: *** OpenGL library directory $dir does not exist." 1>&2; exit 1; }
  7319. fi
  7320. done
  7321. fi
  7322. ac_save_ldflags="$LDFLAGS"
  7323. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7324. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7325. echo "configure:9081: checking for glBegin in -lGL" >&5
  7326. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7327. ac_save_LIBS="$LIBS"
  7328. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
  7329. cat > conftest.$ac_ext <<EOF
  7330. #line 9087 "configure"
  7331. #include "confdefs.h"
  7332. /* Override any gcc2 internal prototype to avoid an error. */
  7333. /* We use char because int might match the return type of a gcc2
  7334. builtin and then its argument prototype would still apply. */
  7335. char glBegin();
  7336. int main() {
  7337. glBegin()
  7338. ; return 0; }
  7339. EOF
  7340. if { (eval echo configure:9098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7341. rm -rf conftest*
  7342. eval "ac_cv_lib_$ac_lib_var=yes"
  7343. else
  7344. echo "configure: failed program was:" >&5
  7345. cat conftest.$ac_ext >&5
  7346. rm -rf conftest*
  7347. eval "ac_cv_lib_$ac_lib_var=no"
  7348. fi
  7349. rm -f conftest*
  7350. LIBS="$ac_save_LIBS"
  7351. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7352. echo "$ac_t""yes" 1>&6
  7353. OPENGLLIB="$OPENGLLIB -lGL "
  7354. else
  7355. echo "$ac_t""no" 1>&6
  7356. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7357. echo "configure:9117: checking for glBegin in -lGL" >&5
  7358. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7359. ac_save_LIBS="$LIBS"
  7360. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lXext $LIBS"
  7361. cat > conftest.$ac_ext <<EOF
  7362. #line 9123 "configure"
  7363. #include "confdefs.h"
  7364. /* Override any gcc2 internal prototype to avoid an error. */
  7365. /* We use char because int might match the return type of a gcc2
  7366. builtin and then its argument prototype would still apply. */
  7367. char glBegin();
  7368. int main() {
  7369. glBegin()
  7370. ; return 0; }
  7371. EOF
  7372. if { (eval echo configure:9134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7373. rm -rf conftest*
  7374. eval "ac_cv_lib_$ac_lib_var=yes"
  7375. else
  7376. echo "configure: failed program was:" >&5
  7377. cat conftest.$ac_ext >&5
  7378. rm -rf conftest*
  7379. eval "ac_cv_lib_$ac_lib_var=no"
  7380. fi
  7381. rm -f conftest*
  7382. LIBS="$ac_save_LIBS"
  7383. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7384. echo "$ac_t""yes" 1>&6
  7385. OPENGLLIB="$OPENGLLIB -lGL -lXext"
  7386. else
  7387. echo "$ac_t""no" 1>&6
  7388. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7389. echo "configure:9153: checking for glBegin in -lGL" >&5
  7390. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7391. ac_save_LIBS="$LIBS"
  7392. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread $LIBS"
  7393. cat > conftest.$ac_ext <<EOF
  7394. #line 9159 "configure"
  7395. #include "confdefs.h"
  7396. /* Override any gcc2 internal prototype to avoid an error. */
  7397. /* We use char because int might match the return type of a gcc2
  7398. builtin and then its argument prototype would still apply. */
  7399. char glBegin();
  7400. int main() {
  7401. glBegin()
  7402. ; return 0; }
  7403. EOF
  7404. if { (eval echo configure:9170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7405. rm -rf conftest*
  7406. eval "ac_cv_lib_$ac_lib_var=yes"
  7407. else
  7408. echo "configure: failed program was:" >&5
  7409. cat conftest.$ac_ext >&5
  7410. rm -rf conftest*
  7411. eval "ac_cv_lib_$ac_lib_var=no"
  7412. fi
  7413. rm -f conftest*
  7414. LIBS="$ac_save_LIBS"
  7415. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7416. echo "$ac_t""yes" 1>&6
  7417. OPENGLLIB="$OPENGLLIB -lGL -lpthread"
  7418. else
  7419. echo "$ac_t""no" 1>&6
  7420. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7421. echo "configure:9189: checking for glBegin in -lGL" >&5
  7422. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7423. ac_save_LIBS="$LIBS"
  7424. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread -lXext $LIBS"
  7425. cat > conftest.$ac_ext <<EOF
  7426. #line 9195 "configure"
  7427. #include "confdefs.h"
  7428. /* Override any gcc2 internal prototype to avoid an error. */
  7429. /* We use char because int might match the return type of a gcc2
  7430. builtin and then its argument prototype would still apply. */
  7431. char glBegin();
  7432. int main() {
  7433. glBegin()
  7434. ; return 0; }
  7435. EOF
  7436. if { (eval echo configure:9206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7437. rm -rf conftest*
  7438. eval "ac_cv_lib_$ac_lib_var=yes"
  7439. else
  7440. echo "configure: failed program was:" >&5
  7441. cat conftest.$ac_ext >&5
  7442. rm -rf conftest*
  7443. eval "ac_cv_lib_$ac_lib_var=no"
  7444. fi
  7445. rm -f conftest*
  7446. LIBS="$ac_save_LIBS"
  7447. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7448. echo "$ac_t""yes" 1>&6
  7449. OPENGLLIB="$OPENGLLIB -lGL -lpthread -lXext"
  7450. else
  7451. echo "$ac_t""no" 1>&6
  7452. LDFLAGS=${ac_save_ldflags}
  7453. { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
  7454. fi
  7455. fi
  7456. fi
  7457. fi
  7458. LDFLAGS=${ac_save_ldflags}
  7459. ac_save_ldflags="$LDFLAGS"
  7460. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7461. echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
  7462. echo "configure:9268: checking for gluBeginCurve in -lGLU" >&5
  7463. ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
  7464. ac_save_LIBS="$LIBS"
  7465. LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
  7466. cat > conftest.$ac_ext <<EOF
  7467. #line 9274 "configure"
  7468. #include "confdefs.h"
  7469. /* Override any gcc2 internal prototype to avoid an error. */
  7470. /* We use char because int might match the return type of a gcc2
  7471. builtin and then its argument prototype would still apply. */
  7472. char gluBeginCurve();
  7473. int main() {
  7474. gluBeginCurve()
  7475. ; return 0; }
  7476. EOF
  7477. if { (eval echo configure:9285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7478. rm -rf conftest*
  7479. eval "ac_cv_lib_$ac_lib_var=yes"
  7480. else
  7481. echo "configure: failed program was:" >&5
  7482. cat conftest.$ac_ext >&5
  7483. rm -rf conftest*
  7484. eval "ac_cv_lib_$ac_lib_var=no"
  7485. fi
  7486. rm -f conftest*
  7487. LIBS="$ac_save_LIBS"
  7488. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7489. echo "$ac_t""yes" 1>&6
  7490. OPENGLULIB="$OPENGLULIB -lGLU "
  7491. else
  7492. echo "$ac_t""no" 1>&6
  7493. echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
  7494. echo "configure:9304: checking for gluBeginCurve in -lGLU" >&5
  7495. ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
  7496. ac_save_LIBS="$LIBS"
  7497. LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lstdc++ $LIBS"
  7498. cat > conftest.$ac_ext <<EOF
  7499. #line 9310 "configure"
  7500. #include "confdefs.h"
  7501. /* Override any gcc2 internal prototype to avoid an error. */
  7502. /* We use char because int might match the return type of a gcc2
  7503. builtin and then its argument prototype would still apply. */
  7504. char gluBeginCurve();
  7505. int main() {
  7506. gluBeginCurve()
  7507. ; return 0; }
  7508. EOF
  7509. if { (eval echo configure:9321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7510. rm -rf conftest*
  7511. eval "ac_cv_lib_$ac_lib_var=yes"
  7512. else
  7513. echo "configure: failed program was:" >&5
  7514. cat conftest.$ac_ext >&5
  7515. rm -rf conftest*
  7516. eval "ac_cv_lib_$ac_lib_var=no"
  7517. fi
  7518. rm -f conftest*
  7519. LIBS="$ac_save_LIBS"
  7520. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7521. echo "$ac_t""yes" 1>&6
  7522. OPENGLULIB="$OPENGLULIB -lGLU -lstdc++"
  7523. else
  7524. echo "$ac_t""no" 1>&6
  7525. LDFLAGS=${ac_save_ldflags}
  7526. { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
  7527. fi
  7528. fi
  7529. LDFLAGS=${ac_save_ldflags}
  7530. OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
  7531. OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
  7532. ac_save_libs="$LIBS"
  7533. ac_save_ldflags="$LDFLAGS"
  7534. LIBS=" $OPENGLLIB $LIBS"
  7535. LDFLAGS=" $LDFLAGS"
  7536. echo $ac_n "checking for glXCreatePbuffer""... $ac_c" 1>&6
  7537. echo "configure:9368: checking for glXCreatePbuffer" >&5
  7538. cat > conftest.$ac_ext <<EOF
  7539. #line 9371 "configure"
  7540. #include "confdefs.h"
  7541. /* System header to define __stub macros and hopefully few prototypes,
  7542. which can conflict with char glXCreatePbuffer(); below. */
  7543. #include <assert.h>
  7544. /* Override any gcc2 internal prototype to avoid an error. */
  7545. /* We use char because int might match the return type of a gcc2
  7546. builtin and then its argument prototype would still apply. */
  7547. char glXCreatePbuffer();
  7548. int main() {
  7549. /* The GNU C library defines this for functions which it implements
  7550. to always fail with ENOSYS. Some functions are actually named
  7551. something starting with __ and the normal name is an alias. */
  7552. #if defined (__stub_glXCreatePbuffer) || defined (__stub___glXCreatePbuffer)
  7553. choke me
  7554. #else
  7555. glXCreatePbuffer();
  7556. #endif
  7557. ; return 0; }
  7558. EOF
  7559. if { (eval echo configure:9394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7560. rm -rf conftest*
  7561. eval "ac_cv_func_glXCreatePbuffer=yes"
  7562. else
  7563. echo "configure: failed program was:" >&5
  7564. cat conftest.$ac_ext >&5
  7565. rm -rf conftest*
  7566. eval "ac_cv_func_glXCreatePbuffer=no"
  7567. fi
  7568. rm -f conftest*
  7569. if eval "test \"`echo '$ac_cv_func_'glXCreatePbuffer`\" = yes"; then
  7570. echo "$ac_t""yes" 1>&6
  7571. cat >> confdefs.h <<\EOF
  7572. #define HAVE_PBUFFERS 1
  7573. EOF
  7574. else
  7575. echo "$ac_t""no" 1>&6
  7576. { echo "configure: error: *** Unable to locate glXCreatePbuffer." 1>&2; exit 1; }
  7577. fi
  7578. LIBS=${ac_save_libs}
  7579. LDFLAGS=${ac_save_ldflags}
  7580. ac_save_libs="$LIBS"
  7581. ac_save_ldflags="$LDFLAGS"
  7582. LIBS=" $OPENGLLIB $LIBS"
  7583. LDFLAGS=" $LDFLAGS"
  7584. echo $ac_n "checking for glXCreateGLXPixmap""... $ac_c" 1>&6
  7585. echo "configure:9431: checking for glXCreateGLXPixmap" >&5
  7586. cat > conftest.$ac_ext <<EOF
  7587. #line 9434 "configure"
  7588. #include "confdefs.h"
  7589. /* System header to define __stub macros and hopefully few prototypes,
  7590. which can conflict with char glXCreateGLXPixmap(); below. */
  7591. #include <assert.h>
  7592. /* Override any gcc2 internal prototype to avoid an error. */
  7593. /* We use char because int might match the return type of a gcc2
  7594. builtin and then its argument prototype would still apply. */
  7595. char glXCreateGLXPixmap();
  7596. int main() {
  7597. /* The GNU C library defines this for functions which it implements
  7598. to always fail with ENOSYS. Some functions are actually named
  7599. something starting with __ and the normal name is an alias. */
  7600. #if defined (__stub_glXCreateGLXPixmap) || defined (__stub___glXCreateGLXPixmap)
  7601. choke me
  7602. #else
  7603. glXCreateGLXPixmap();
  7604. #endif
  7605. ; return 0; }
  7606. EOF
  7607. if { (eval echo configure:9457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7608. rm -rf conftest*
  7609. eval "ac_cv_func_glXCreateGLXPixmap=yes"
  7610. else
  7611. echo "configure: failed program was:" >&5
  7612. cat conftest.$ac_ext >&5
  7613. rm -rf conftest*
  7614. eval "ac_cv_func_glXCreateGLXPixmap=no"
  7615. fi
  7616. rm -f conftest*
  7617. if eval "test \"`echo '$ac_cv_func_'glXCreateGLXPixmap`\" = yes"; then
  7618. echo "$ac_t""yes" 1>&6
  7619. cat >> confdefs.h <<\EOF
  7620. #define HAVE_PIXMAPS 1
  7621. EOF
  7622. else
  7623. echo "$ac_t""no" 1>&6
  7624. { echo "configure: error: *** Unable to locate glXCreateGLXPixmap." 1>&2; exit 1; }
  7625. fi
  7626. LIBS=${ac_save_libs}
  7627. LDFLAGS=${ac_save_ldflags}
  7628. cat >> confdefs.h <<\EOF
  7629. #define OPENGL_X11 1
  7630. EOF
  7631. fi # $OPENGL_X11
  7632. if test "$OPENGL_AQUA" = 1 ; then
  7633. echo $ac_n "checking for location of OpenGL framework""... $ac_c" 1>&6
  7634. echo "configure:9500: checking for location of OpenGL framework" >&5
  7635. case "$with_opengl_framework" in
  7636. y | ye | yes | n | no)
  7637. { echo "configure: error: *** You must supply a directory to --with-opengl-framework." 1>&2; exit 1; }
  7638. ;;
  7639. esac
  7640. echo "$ac_t""$with_opengl_framework" 1>&6
  7641. if test -n "$with_opengl_framework"; then
  7642. if test -d $with_opengl_framework; then
  7643. OPENGLPATH="$OPENGLPATH -F$with_opengl_framework"
  7644. else
  7645. { echo "configure: error: *** OpenGL framework directory $dir does not exist." 1>&2; exit 1; }
  7646. fi
  7647. fi
  7648. ac_save_cppflags="$CPPFLAGS"
  7649. CPPFLAGS="$OPENGLPATH $CPPFLAGS"
  7650. for ac_hdr in OpenGL/gl.h OpenGL/glu.h
  7651. do
  7652. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7653. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7654. echo "configure:9524: checking for $ac_hdr" >&5
  7655. cat > conftest.$ac_ext <<EOF
  7656. #line 9527 "configure"
  7657. #include "confdefs.h"
  7658. #include <$ac_hdr>
  7659. EOF
  7660. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7661. { (eval echo configure:9532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7662. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7663. if test -z "$ac_err"; then
  7664. rm -rf conftest*
  7665. eval "ac_cv_header_$ac_safe=yes"
  7666. else
  7667. echo "$ac_err" >&5
  7668. echo "configure: failed program was:" >&5
  7669. cat conftest.$ac_ext >&5
  7670. rm -rf conftest*
  7671. eval "ac_cv_header_$ac_safe=no"
  7672. fi
  7673. rm -f conftest*
  7674. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7675. echo "$ac_t""yes" 1>&6
  7676. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7677. cat >> confdefs.h <<EOF
  7678. #define $ac_tr_hdr 1
  7679. EOF
  7680. else
  7681. echo "$ac_t""no" 1>&6
  7682. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  7683. fi
  7684. done
  7685. CPPFLAGS=$ac_save_cppflags
  7686. ac_save_libs="$LIBS"
  7687. ac_save_ldflags="$LDFLAGS"
  7688. LIBS="-framework OpenGL -framework AGL -framework ApplicationServices $LIBS"
  7689. LDFLAGS="$OPENGLPATH $LDFLAGS"
  7690. echo $ac_n "checking for glBegin""... $ac_c" 1>&6
  7691. echo "configure:9568: checking for glBegin" >&5
  7692. cat > conftest.$ac_ext <<EOF
  7693. #line 9571 "configure"
  7694. #include "confdefs.h"
  7695. /* System header to define __stub macros and hopefully few prototypes,
  7696. which can conflict with char glBegin(); below. */
  7697. #include <assert.h>
  7698. /* Override any gcc2 internal prototype to avoid an error. */
  7699. /* We use char because int might match the return type of a gcc2
  7700. builtin and then its argument prototype would still apply. */
  7701. char glBegin();
  7702. int main() {
  7703. /* The GNU C library defines this for functions which it implements
  7704. to always fail with ENOSYS. Some functions are actually named
  7705. something starting with __ and the normal name is an alias. */
  7706. #if defined (__stub_glBegin) || defined (__stub___glBegin)
  7707. choke me
  7708. #else
  7709. glBegin();
  7710. #endif
  7711. ; return 0; }
  7712. EOF
  7713. if { (eval echo configure:9594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7714. rm -rf conftest*
  7715. eval "ac_cv_func_glBegin=yes"
  7716. else
  7717. echo "configure: failed program was:" >&5
  7718. cat conftest.$ac_ext >&5
  7719. rm -rf conftest*
  7720. eval "ac_cv_func_glBegin=no"
  7721. fi
  7722. rm -f conftest*
  7723. if eval "test \"`echo '$ac_cv_func_'glBegin`\" = yes"; then
  7724. echo "$ac_t""yes" 1>&6
  7725. OPENGLLIB="$OPENGLLIB -framework OpenGL -framework AGL -framework ApplicationServices"
  7726. else
  7727. echo "$ac_t""no" 1>&6
  7728. { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
  7729. fi
  7730. LIBS=${ac_save_libs}
  7731. LDFLAGS=${ac_save_ldflags}
  7732. ac_save_libs="$LIBS"
  7733. ac_save_ldflags="$LDFLAGS"
  7734. LIBS=" $OPENGLLIB $LIBS"
  7735. LDFLAGS="$OPENGLPATH $LDFLAGS"
  7736. echo $ac_n "checking for gluBeginCurve""... $ac_c" 1>&6
  7737. echo "configure:9631: checking for gluBeginCurve" >&5
  7738. cat > conftest.$ac_ext <<EOF
  7739. #line 9634 "configure"
  7740. #include "confdefs.h"
  7741. /* System header to define __stub macros and hopefully few prototypes,
  7742. which can conflict with char gluBeginCurve(); below. */
  7743. #include <assert.h>
  7744. /* Override any gcc2 internal prototype to avoid an error. */
  7745. /* We use char because int might match the return type of a gcc2
  7746. builtin and then its argument prototype would still apply. */
  7747. char gluBeginCurve();
  7748. int main() {
  7749. /* The GNU C library defines this for functions which it implements
  7750. to always fail with ENOSYS. Some functions are actually named
  7751. something starting with __ and the normal name is an alias. */
  7752. #if defined (__stub_gluBeginCurve) || defined (__stub___gluBeginCurve)
  7753. choke me
  7754. #else
  7755. gluBeginCurve();
  7756. #endif
  7757. ; return 0; }
  7758. EOF
  7759. if { (eval echo configure:9657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7760. rm -rf conftest*
  7761. eval "ac_cv_func_gluBeginCurve=yes"
  7762. else
  7763. echo "configure: failed program was:" >&5
  7764. cat conftest.$ac_ext >&5
  7765. rm -rf conftest*
  7766. eval "ac_cv_func_gluBeginCurve=no"
  7767. fi
  7768. rm -f conftest*
  7769. if eval "test \"`echo '$ac_cv_func_'gluBeginCurve`\" = yes"; then
  7770. echo "$ac_t""yes" 1>&6
  7771. OPENGLLIB="$OPENGLLIB "
  7772. else
  7773. echo "$ac_t""no" 1>&6
  7774. { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
  7775. fi
  7776. LIBS=${ac_save_libs}
  7777. LDFLAGS=${ac_save_ldflags}
  7778. OPENGLINC="$OPENGLPATH"
  7779. OPENGLLIBPATH="$OPENGLPATH"
  7780. cat >> confdefs.h <<\EOF
  7781. #define OPENGL_AQUA 1
  7782. EOF
  7783. fi # $OPENGL_AQUA
  7784. if test "$OPENGL_WINDOWS" = 1 ; then
  7785. # With OpenGL includes directory
  7786. echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
  7787. echo "configure:9705: checking for location of OpenGL includes" >&5
  7788. case "$with_opengl_includes" in
  7789. y | ye | yes | n | no)
  7790. { echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
  7791. ;;
  7792. esac
  7793. echo "$ac_t""$with_opengl_includes" 1>&6
  7794. if test -n "$with_opengl_includes" ; then
  7795. for dir in $with_opengl_includes; do
  7796. if test -d "$dir"; then
  7797. OPENGLINC="$OPENGLINC -I$dir"
  7798. else
  7799. { echo "configure: error: *** OpenGL includes directory $dir does not exist." 1>&2; exit 1; }
  7800. fi
  7801. done
  7802. fi
  7803. ac_save_cppflags="$CPPFLAGS"
  7804. CPPFLAGS="$OPENGLINC $CPPFLAGS"
  7805. for ac_hdr in GL/gl.h GL/glu.h
  7806. do
  7807. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7808. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7809. echo "configure:9731: checking for $ac_hdr" >&5
  7810. cat > conftest.$ac_ext <<EOF
  7811. #line 9734 "configure"
  7812. #include "confdefs.h"
  7813. #include <$ac_hdr>
  7814. EOF
  7815. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7816. { (eval echo configure:9739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7817. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7818. if test -z "$ac_err"; then
  7819. rm -rf conftest*
  7820. eval "ac_cv_header_$ac_safe=yes"
  7821. else
  7822. echo "$ac_err" >&5
  7823. echo "configure: failed program was:" >&5
  7824. cat conftest.$ac_ext >&5
  7825. rm -rf conftest*
  7826. eval "ac_cv_header_$ac_safe=no"
  7827. fi
  7828. rm -f conftest*
  7829. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7830. echo "$ac_t""yes" 1>&6
  7831. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7832. cat >> confdefs.h <<EOF
  7833. #define $ac_tr_hdr 1
  7834. EOF
  7835. else
  7836. echo "$ac_t""no" 1>&6
  7837. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  7838. fi
  7839. done
  7840. CPPFLAGS=$ac_save_cppflags
  7841. # With OpenGL library directory
  7842. echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
  7843. echo "configure:9773: checking for location of OpenGL library" >&5
  7844. case "$with_opengl_libs" in
  7845. y | ye | yes | n | no)
  7846. { echo "configure: error: *** You must supply a directory to --with-opengl-libs." 1>&2; exit 1; }
  7847. ;;
  7848. esac
  7849. echo "$ac_t""$with_opengl_libs" 1>&6
  7850. if test -n "$with_opengl_libs"; then
  7851. for dir in $with_opengl_libs; do
  7852. if test -d "$dir"; then
  7853. OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
  7854. else
  7855. { echo "configure: error: *** OpenGL library directory $dir does not exist." 1>&2; exit 1; }
  7856. fi
  7857. done
  7858. fi
  7859. ac_save_cflags="$CFLAGS"
  7860. CFLAGS="$CFLAGS $OPENGLINC"
  7861. ac_save_ldflags="$LDFLAGS"
  7862. ac_save_libs="$LIBS"
  7863. echo $ac_n "checking for OpenGL library""... $ac_c" 1>&6
  7864. echo "configure:9798: checking for OpenGL library" >&5
  7865. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7866. LIBS="-lopengl32 "
  7867. cat > conftest.$ac_ext <<EOF
  7868. #line 9802 "configure"
  7869. #include "confdefs.h"
  7870. #include <GL/gl.h>
  7871. int main() {
  7872. glEnd();
  7873. ; return 0; }
  7874. EOF
  7875. if { (eval echo configure:9809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7876. rm -rf conftest*
  7877. echo "$ac_t""found" 1>&6
  7878. OPENGLLIB="$OPENGLLIB -lopengl32 "
  7879. else
  7880. echo "configure: failed program was:" >&5
  7881. cat conftest.$ac_ext >&5
  7882. rm -rf conftest*
  7883. { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
  7884. fi
  7885. rm -f conftest*
  7886. LIBS=${ac_save_libs}
  7887. LDFLAGS=${ac_save_ldflags}
  7888. ac_save_ldflags="$LDFLAGS"
  7889. ac_save_libs="$LIBS"
  7890. echo $ac_n "checking for GLU library""... $ac_c" 1>&6
  7891. echo "configure:9833: checking for GLU library" >&5
  7892. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7893. LIBS="-lglu32 $OPENGLLIB "
  7894. cat > conftest.$ac_ext <<EOF
  7895. #line 9837 "configure"
  7896. #include "confdefs.h"
  7897. #include <GL/glu.h>
  7898. int main() {
  7899. gluNewQuadric();
  7900. ; return 0; }
  7901. EOF
  7902. if { (eval echo configure:9844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7903. rm -rf conftest*
  7904. echo "$ac_t""found" 1>&6
  7905. OPENGLULIB="$OPENGLULIB -lglu32 "
  7906. else
  7907. echo "configure: failed program was:" >&5
  7908. cat conftest.$ac_ext >&5
  7909. rm -rf conftest*
  7910. { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
  7911. fi
  7912. rm -f conftest*
  7913. LIBS=${ac_save_libs}
  7914. LDFLAGS=${ac_save_ldflags}
  7915. CFLAGS="${ac_save_cflags}"
  7916. OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
  7917. OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
  7918. cat >> confdefs.h <<\EOF
  7919. #define OPENGL_WINDOWS 1
  7920. EOF
  7921. fi # $OPENGL_WINDOWS
  7922. fi # $USE_OPENGL
  7923. # Done checking OpenGL
  7924. # Enable ODBC option
  7925. echo $ac_n "checking whether to use ODBC""... $ac_c" 1>&6
  7926. echo "configure:9893: checking whether to use ODBC" >&5
  7927. echo "$ac_t"""$with_odbc"" 1>&6
  7928. case "$with_odbc" in
  7929. "no") USE_ODBC= ;;
  7930. "yes") USE_ODBC="1" ;;
  7931. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  7932. esac
  7933. ODBCINC=
  7934. ODBCLIB=
  7935. if test -n "$USE_ODBC"; then
  7936. # With ODBC includes directory
  7937. echo $ac_n "checking for location of ODBC includes""... $ac_c" 1>&6
  7938. echo "configure:9912: checking for location of ODBC includes" >&5
  7939. case "$with_odbc_includes" in
  7940. y | ye | yes | n | no)
  7941. { echo "configure: error: *** You must supply a directory to --with-odbc-includes." 1>&2; exit 1; }
  7942. ;;
  7943. esac
  7944. echo "$ac_t""$with_odbc_includes" 1>&6
  7945. if test -n "$with_odbc_includes" ; then
  7946. for dir in $with_odbc_includes; do
  7947. if test -d "$dir"; then
  7948. ODBCINC="$ODBCINC -I$dir"
  7949. else
  7950. { echo "configure: error: *** ODBC includes directory $dir does not exist." 1>&2; exit 1; }
  7951. fi
  7952. done
  7953. fi
  7954. ac_save_cppflags="$CPPFLAGS"
  7955. CPPFLAGS="$ODBCINC $CPPFLAGS"
  7956. for ac_hdr in sql.h
  7957. do
  7958. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7959. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7960. echo "configure:9938: checking for $ac_hdr" >&5
  7961. cat > conftest.$ac_ext <<EOF
  7962. #line 9941 "configure"
  7963. #include "confdefs.h"
  7964. #include <$ac_hdr>
  7965. EOF
  7966. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7967. { (eval echo configure:9946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7968. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7969. if test -z "$ac_err"; then
  7970. rm -rf conftest*
  7971. eval "ac_cv_header_$ac_safe=yes"
  7972. else
  7973. echo "$ac_err" >&5
  7974. echo "configure: failed program was:" >&5
  7975. cat conftest.$ac_ext >&5
  7976. rm -rf conftest*
  7977. eval "ac_cv_header_$ac_safe=no"
  7978. fi
  7979. rm -f conftest*
  7980. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7981. echo "$ac_t""yes" 1>&6
  7982. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7983. cat >> confdefs.h <<EOF
  7984. #define $ac_tr_hdr 1
  7985. EOF
  7986. else
  7987. echo "$ac_t""no" 1>&6
  7988. { echo "configure: error: *** Unable to locate ODBC includes." 1>&2; exit 1; }
  7989. fi
  7990. done
  7991. CPPFLAGS=$ac_save_cppflags
  7992. # With ODBC library directory
  7993. echo $ac_n "checking for location of ODBC library""... $ac_c" 1>&6
  7994. echo "configure:9980: checking for location of ODBC library" >&5
  7995. case "$with_odbc_libs" in
  7996. y | ye | yes | n | no)
  7997. { echo "configure: error: *** You must supply a directory to --with-odbc-libs." 1>&2; exit 1; }
  7998. ;;
  7999. esac
  8000. echo "$ac_t""$with_odbc_libs" 1>&6
  8001. if test -n "$with_odbc_libs"; then
  8002. for dir in $with_odbc_libs; do
  8003. if test -d "$dir"; then
  8004. ODBCLIB="$ODBCLIB -L$dir"
  8005. else
  8006. { echo "configure: error: *** ODBC library directory $dir does not exist." 1>&2; exit 1; }
  8007. fi
  8008. done
  8009. fi
  8010. ac_save_ldflags="$LDFLAGS"
  8011. LDFLAGS="$ODBCLIB $LDFLAGS"
  8012. echo $ac_n "checking for SQLConnect in -lodbc""... $ac_c" 1>&6
  8013. echo "configure:10005: checking for SQLConnect in -lodbc" >&5
  8014. ac_lib_var=`echo odbc'_'SQLConnect | sed 'y%./+-%__p_%'`
  8015. ac_save_LIBS="$LIBS"
  8016. LIBS="-lodbc $ICONVLIB $LIBS"
  8017. cat > conftest.$ac_ext <<EOF
  8018. #line 10011 "configure"
  8019. #include "confdefs.h"
  8020. /* Override any gcc2 internal prototype to avoid an error. */
  8021. /* We use char because int might match the return type of a gcc2
  8022. builtin and then its argument prototype would still apply. */
  8023. char SQLConnect();
  8024. int main() {
  8025. SQLConnect()
  8026. ; return 0; }
  8027. EOF
  8028. if { (eval echo configure:10022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8029. rm -rf conftest*
  8030. eval "ac_cv_lib_$ac_lib_var=yes"
  8031. else
  8032. echo "configure: failed program was:" >&5
  8033. cat conftest.$ac_ext >&5
  8034. rm -rf conftest*
  8035. eval "ac_cv_lib_$ac_lib_var=no"
  8036. fi
  8037. rm -f conftest*
  8038. LIBS="$ac_save_LIBS"
  8039. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8040. echo "$ac_t""yes" 1>&6
  8041. ODBCLIB="$ODBCLIB -lodbc "
  8042. else
  8043. echo "$ac_t""no" 1>&6
  8044. LDFLAGS=${ac_save_ldflags}
  8045. ac_save_ldflags="$LDFLAGS"
  8046. LDFLAGS="$ODBCLIB $LDFLAGS"
  8047. echo $ac_n "checking for SQLConnect in -liodbc""... $ac_c" 1>&6
  8048. echo "configure:10047: checking for SQLConnect in -liodbc" >&5
  8049. ac_lib_var=`echo iodbc'_'SQLConnect | sed 'y%./+-%__p_%'`
  8050. ac_save_LIBS="$LIBS"
  8051. LIBS="-liodbc $LIBS"
  8052. cat > conftest.$ac_ext <<EOF
  8053. #line 10053 "configure"
  8054. #include "confdefs.h"
  8055. /* Override any gcc2 internal prototype to avoid an error. */
  8056. /* We use char because int might match the return type of a gcc2
  8057. builtin and then its argument prototype would still apply. */
  8058. char SQLConnect();
  8059. int main() {
  8060. SQLConnect()
  8061. ; return 0; }
  8062. EOF
  8063. if { (eval echo configure:10064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8064. rm -rf conftest*
  8065. eval "ac_cv_lib_$ac_lib_var=yes"
  8066. else
  8067. echo "configure: failed program was:" >&5
  8068. cat conftest.$ac_ext >&5
  8069. rm -rf conftest*
  8070. eval "ac_cv_lib_$ac_lib_var=no"
  8071. fi
  8072. rm -f conftest*
  8073. LIBS="$ac_save_LIBS"
  8074. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8075. echo "$ac_t""yes" 1>&6
  8076. ODBCLIB="$ODBCLIB -liodbc "
  8077. else
  8078. echo "$ac_t""no" 1>&6
  8079. LDFLAGS=${ac_save_ldflags}
  8080. ac_save_cflags="$CFLAGS"
  8081. CFLAGS="$CFLAGS $ODBCINC"
  8082. ac_save_ldflags="$LDFLAGS"
  8083. ac_save_libs="$LIBS"
  8084. echo $ac_n "checking for ODBC library""... $ac_c" 1>&6
  8085. echo "configure:10089: checking for ODBC library" >&5
  8086. LDFLAGS="$ODBCLIB $LDFLAGS"
  8087. LIBS="-lodbc32 "
  8088. cat > conftest.$ac_ext <<EOF
  8089. #line 10093 "configure"
  8090. #include "confdefs.h"
  8091. #include <windows.h>
  8092. #include <sql.h>
  8093. int main() {
  8094. SQLAllocEnv((SQLHENV *)0);
  8095. ; return 0; }
  8096. EOF
  8097. if { (eval echo configure:10101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8098. rm -rf conftest*
  8099. echo "$ac_t""found" 1>&6
  8100. ODBCLIB="$ODBCLIB -lodbc32 "
  8101. else
  8102. echo "configure: failed program was:" >&5
  8103. cat conftest.$ac_ext >&5
  8104. rm -rf conftest*
  8105. { echo "configure: error: *** Unable to locate ODBC library." 1>&2; exit 1; }
  8106. fi
  8107. rm -f conftest*
  8108. LIBS=${ac_save_libs}
  8109. LDFLAGS=${ac_save_ldflags}
  8110. CFLAGS="${ac_save_cflags}"
  8111. fi
  8112. LDFLAGS=${ac_save_ldflags}
  8113. fi
  8114. LDFLAGS=${ac_save_ldflags}
  8115. fi # $USE_ODBC
  8116. # Done checking ODBC
  8117. # Enable FFTW option
  8118. echo $ac_n "checking whether to use FFTW""... $ac_c" 1>&6
  8119. echo "configure:10150: checking whether to use FFTW" >&5
  8120. echo "$ac_t"""$with_fftw"" 1>&6
  8121. case "$with_fftw" in
  8122. "no") USE_FFTW= ;;
  8123. "yes") USE_FFTW="1" ;;
  8124. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8125. esac
  8126. FFTWINC=
  8127. FFTWLIB=
  8128. if test -n "$USE_FFTW"; then
  8129. # With FFTW includes directory
  8130. echo $ac_n "checking for location of FFTW includes""... $ac_c" 1>&6
  8131. echo "configure:10169: checking for location of FFTW includes" >&5
  8132. case "$with_fftw_includes" in
  8133. y | ye | yes | n | no)
  8134. { echo "configure: error: *** You must supply a directory to --with-fftw-includes." 1>&2; exit 1; }
  8135. ;;
  8136. esac
  8137. echo "$ac_t""$with_fftw_includes" 1>&6
  8138. if test -n "$with_fftw_includes" ; then
  8139. for dir in $with_fftw_includes; do
  8140. if test -d "$dir"; then
  8141. FFTWINC="$FFTWINC -I$dir"
  8142. else
  8143. { echo "configure: error: *** FFTW includes directory $dir does not exist." 1>&2; exit 1; }
  8144. fi
  8145. done
  8146. fi
  8147. ac_save_cppflags="$CPPFLAGS"
  8148. CPPFLAGS="$FFTWINC $CPPFLAGS"
  8149. for ac_hdr in fftw3.h
  8150. do
  8151. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8152. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8153. echo "configure:10195: checking for $ac_hdr" >&5
  8154. cat > conftest.$ac_ext <<EOF
  8155. #line 10198 "configure"
  8156. #include "confdefs.h"
  8157. #include <$ac_hdr>
  8158. EOF
  8159. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8160. { (eval echo configure:10203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8161. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8162. if test -z "$ac_err"; then
  8163. rm -rf conftest*
  8164. eval "ac_cv_header_$ac_safe=yes"
  8165. else
  8166. echo "$ac_err" >&5
  8167. echo "configure: failed program was:" >&5
  8168. cat conftest.$ac_ext >&5
  8169. rm -rf conftest*
  8170. eval "ac_cv_header_$ac_safe=no"
  8171. fi
  8172. rm -f conftest*
  8173. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8174. echo "$ac_t""yes" 1>&6
  8175. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8176. cat >> confdefs.h <<EOF
  8177. #define $ac_tr_hdr 1
  8178. EOF
  8179. else
  8180. echo "$ac_t""no" 1>&6
  8181. ac_save_cppflags="$CPPFLAGS"
  8182. CPPFLAGS=" $CPPFLAGS"
  8183. for ac_hdr in fftw.h
  8184. do
  8185. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8186. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8187. echo "configure:10231: checking for $ac_hdr" >&5
  8188. cat > conftest.$ac_ext <<EOF
  8189. #line 10234 "configure"
  8190. #include "confdefs.h"
  8191. #include <$ac_hdr>
  8192. EOF
  8193. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8194. { (eval echo configure:10239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8195. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8196. if test -z "$ac_err"; then
  8197. rm -rf conftest*
  8198. eval "ac_cv_header_$ac_safe=yes"
  8199. else
  8200. echo "$ac_err" >&5
  8201. echo "configure: failed program was:" >&5
  8202. cat conftest.$ac_ext >&5
  8203. rm -rf conftest*
  8204. eval "ac_cv_header_$ac_safe=no"
  8205. fi
  8206. rm -f conftest*
  8207. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8208. echo "$ac_t""yes" 1>&6
  8209. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8210. cat >> confdefs.h <<EOF
  8211. #define $ac_tr_hdr 1
  8212. EOF
  8213. else
  8214. echo "$ac_t""no" 1>&6
  8215. ac_save_cppflags="$CPPFLAGS"
  8216. CPPFLAGS=" $CPPFLAGS"
  8217. for ac_hdr in dfftw.h
  8218. do
  8219. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8220. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8221. echo "configure:10267: checking for $ac_hdr" >&5
  8222. cat > conftest.$ac_ext <<EOF
  8223. #line 10270 "configure"
  8224. #include "confdefs.h"
  8225. #include <$ac_hdr>
  8226. EOF
  8227. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8228. { (eval echo configure:10275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8229. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8230. if test -z "$ac_err"; then
  8231. rm -rf conftest*
  8232. eval "ac_cv_header_$ac_safe=yes"
  8233. else
  8234. echo "$ac_err" >&5
  8235. echo "configure: failed program was:" >&5
  8236. cat conftest.$ac_ext >&5
  8237. rm -rf conftest*
  8238. eval "ac_cv_header_$ac_safe=no"
  8239. fi
  8240. rm -f conftest*
  8241. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8242. echo "$ac_t""yes" 1>&6
  8243. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8244. cat >> confdefs.h <<EOF
  8245. #define $ac_tr_hdr 1
  8246. EOF
  8247. else
  8248. echo "$ac_t""no" 1>&6
  8249. { echo "configure: error: *** Unable to locate FFTW includes." 1>&2; exit 1; }
  8250. fi
  8251. done
  8252. CPPFLAGS=$ac_save_cppflags
  8253. fi
  8254. done
  8255. CPPFLAGS=$ac_save_cppflags
  8256. fi
  8257. done
  8258. CPPFLAGS=$ac_save_cppflags
  8259. # With FFTW library directory
  8260. echo $ac_n "checking for location of FFTW library""... $ac_c" 1>&6
  8261. echo "configure:10321: checking for location of FFTW library" >&5
  8262. case "$with_fftw_libs" in
  8263. y | ye | yes | n | no)
  8264. { echo "configure: error: *** You must supply a directory to --with-fftw-libs." 1>&2; exit 1; }
  8265. ;;
  8266. esac
  8267. echo "$ac_t""$with_fftw_libs" 1>&6
  8268. if test -n "$with_fftw_libs"; then
  8269. for dir in $with_fftw_libs; do
  8270. if test -d "$dir"; then
  8271. FFTWLIB="$FFTWLIB -L$dir"
  8272. else
  8273. { echo "configure: error: *** FFTW library directory $dir does not exist." 1>&2; exit 1; }
  8274. fi
  8275. done
  8276. fi
  8277. ac_save_ldflags="$LDFLAGS"
  8278. LDFLAGS="$FFTWLIB $LDFLAGS"
  8279. echo $ac_n "checking for fftw_execute in -lfftw3""... $ac_c" 1>&6
  8280. echo "configure:10346: checking for fftw_execute in -lfftw3" >&5
  8281. ac_lib_var=`echo fftw3'_'fftw_execute | sed 'y%./+-%__p_%'`
  8282. ac_save_LIBS="$LIBS"
  8283. LIBS="-lfftw3 $MATHLIB $LIBS"
  8284. cat > conftest.$ac_ext <<EOF
  8285. #line 10352 "configure"
  8286. #include "confdefs.h"
  8287. /* Override any gcc2 internal prototype to avoid an error. */
  8288. /* We use char because int might match the return type of a gcc2
  8289. builtin and then its argument prototype would still apply. */
  8290. char fftw_execute();
  8291. int main() {
  8292. fftw_execute()
  8293. ; return 0; }
  8294. EOF
  8295. if { (eval echo configure:10363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8296. rm -rf conftest*
  8297. eval "ac_cv_lib_$ac_lib_var=yes"
  8298. else
  8299. echo "configure: failed program was:" >&5
  8300. cat conftest.$ac_ext >&5
  8301. rm -rf conftest*
  8302. eval "ac_cv_lib_$ac_lib_var=no"
  8303. fi
  8304. rm -f conftest*
  8305. LIBS="$ac_save_LIBS"
  8306. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8307. echo "$ac_t""yes" 1>&6
  8308. FFTWLIB="$FFTWLIB -lfftw3 $MATHLIB"
  8309. else
  8310. echo "$ac_t""no" 1>&6
  8311. LDFLAGS=${ac_save_ldflags}
  8312. ac_save_ldflags="$LDFLAGS"
  8313. LDFLAGS="$FFTWLIB $LDFLAGS"
  8314. echo $ac_n "checking for fftwnd_one in -lfftw""... $ac_c" 1>&6
  8315. echo "configure:10388: checking for fftwnd_one in -lfftw" >&5
  8316. ac_lib_var=`echo fftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
  8317. ac_save_LIBS="$LIBS"
  8318. LIBS="-lfftw $MATHLIB $LIBS"
  8319. cat > conftest.$ac_ext <<EOF
  8320. #line 10394 "configure"
  8321. #include "confdefs.h"
  8322. /* Override any gcc2 internal prototype to avoid an error. */
  8323. /* We use char because int might match the return type of a gcc2
  8324. builtin and then its argument prototype would still apply. */
  8325. char fftwnd_one();
  8326. int main() {
  8327. fftwnd_one()
  8328. ; return 0; }
  8329. EOF
  8330. if { (eval echo configure:10405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8331. rm -rf conftest*
  8332. eval "ac_cv_lib_$ac_lib_var=yes"
  8333. else
  8334. echo "configure: failed program was:" >&5
  8335. cat conftest.$ac_ext >&5
  8336. rm -rf conftest*
  8337. eval "ac_cv_lib_$ac_lib_var=no"
  8338. fi
  8339. rm -f conftest*
  8340. LIBS="$ac_save_LIBS"
  8341. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8342. echo "$ac_t""yes" 1>&6
  8343. FFTWLIB="$FFTWLIB -lfftw $MATHLIB"
  8344. else
  8345. echo "$ac_t""no" 1>&6
  8346. LDFLAGS=${ac_save_ldflags}
  8347. ac_save_ldflags="$LDFLAGS"
  8348. LDFLAGS="$FFTWLIB $LDFLAGS"
  8349. echo $ac_n "checking for fftwnd_one in -ldfftw""... $ac_c" 1>&6
  8350. echo "configure:10430: checking for fftwnd_one in -ldfftw" >&5
  8351. ac_lib_var=`echo dfftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
  8352. ac_save_LIBS="$LIBS"
  8353. LIBS="-ldfftw $MATHLIB $LIBS"
  8354. cat > conftest.$ac_ext <<EOF
  8355. #line 10436 "configure"
  8356. #include "confdefs.h"
  8357. /* Override any gcc2 internal prototype to avoid an error. */
  8358. /* We use char because int might match the return type of a gcc2
  8359. builtin and then its argument prototype would still apply. */
  8360. char fftwnd_one();
  8361. int main() {
  8362. fftwnd_one()
  8363. ; return 0; }
  8364. EOF
  8365. if { (eval echo configure:10447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8366. rm -rf conftest*
  8367. eval "ac_cv_lib_$ac_lib_var=yes"
  8368. else
  8369. echo "configure: failed program was:" >&5
  8370. cat conftest.$ac_ext >&5
  8371. rm -rf conftest*
  8372. eval "ac_cv_lib_$ac_lib_var=no"
  8373. fi
  8374. rm -f conftest*
  8375. LIBS="$ac_save_LIBS"
  8376. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8377. echo "$ac_t""yes" 1>&6
  8378. FFTWLIB="$FFTWLIB -ldfftw $MATHLIB"
  8379. else
  8380. echo "$ac_t""no" 1>&6
  8381. LDFLAGS=${ac_save_ldflags}
  8382. { echo "configure: error: *** Unable to locate FFTW library." 1>&2; exit 1; }
  8383. fi
  8384. LDFLAGS=${ac_save_ldflags}
  8385. fi
  8386. LDFLAGS=${ac_save_ldflags}
  8387. fi
  8388. LDFLAGS=${ac_save_ldflags}
  8389. fi # $USE_FFTW
  8390. # Done checking FFTW
  8391. # Enable BLAS option
  8392. echo $ac_n "checking whether to use BLAS""... $ac_c" 1>&6
  8393. echo "configure:10504: checking whether to use BLAS" >&5
  8394. echo "$ac_t"""$with_blas"" 1>&6
  8395. case "$with_blas" in
  8396. "no") USE_BLAS= ;;
  8397. "yes") USE_BLAS="1" ;;
  8398. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8399. esac
  8400. BLASLIB=
  8401. BLASINC=
  8402. if test -n "$USE_BLAS"; then
  8403. # With BLAS includes directory
  8404. # BLAS doesn't have includes (FORTRAN library)
  8405. # With BLAS library directory
  8406. echo $ac_n "checking for location of BLAS includes""... $ac_c" 1>&6
  8407. echo "configure:10525: checking for location of BLAS includes" >&5
  8408. case "$with_blas_includes" in
  8409. y | ye | yes | n | no)
  8410. { echo "configure: error: *** You must supply a directory to --with-blas-includes." 1>&2; exit 1; }
  8411. ;;
  8412. esac
  8413. echo "$ac_t""$with_blas_includes" 1>&6
  8414. if test -n "$with_blas_includes" ; then
  8415. for dir in $with_blas_includes; do
  8416. if test -d "$dir"; then
  8417. BLASINC="$BLASINC -I$dir"
  8418. else
  8419. { echo "configure: error: *** BLAS includes directory $dir does not exist." 1>&2; exit 1; }
  8420. fi
  8421. done
  8422. fi
  8423. echo $ac_n "checking for location of BLAS library""... $ac_c" 1>&6
  8424. echo "configure:10545: checking for location of BLAS library" >&5
  8425. case "$with_blas_libs" in
  8426. y | ye | yes | n | no)
  8427. { echo "configure: error: *** You must supply a directory to --with-blas-libs." 1>&2; exit 1; }
  8428. ;;
  8429. esac
  8430. echo "$ac_t""$with_blas_libs" 1>&6
  8431. if test -n "$with_blas_libs"; then
  8432. for dir in $with_blas_libs; do
  8433. if test -d "$dir"; then
  8434. BLASLIB="$BLASLIB -L$dir"
  8435. else
  8436. { echo "configure: error: *** BLAS library directory $dir does not exist." 1>&2; exit 1; }
  8437. fi
  8438. done
  8439. fi
  8440. # See if cblas.h exists (CBLAS,ATLAS,others)
  8441. save_CPPFLAGS="$CPPFLAGS"
  8442. CPPFLAGS="$BLASINC $CPPFLAGS"
  8443. for ac_hdr in cblas.h
  8444. do
  8445. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8446. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8447. echo "configure:10571: checking for $ac_hdr" >&5
  8448. cat > conftest.$ac_ext <<EOF
  8449. #line 10574 "configure"
  8450. #include "confdefs.h"
  8451. #include <$ac_hdr>
  8452. EOF
  8453. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8454. { (eval echo configure:10579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8455. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8456. if test -z "$ac_err"; then
  8457. rm -rf conftest*
  8458. eval "ac_cv_header_$ac_safe=yes"
  8459. else
  8460. echo "$ac_err" >&5
  8461. echo "configure: failed program was:" >&5
  8462. cat conftest.$ac_ext >&5
  8463. rm -rf conftest*
  8464. eval "ac_cv_header_$ac_safe=no"
  8465. fi
  8466. rm -f conftest*
  8467. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8468. echo "$ac_t""yes" 1>&6
  8469. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8470. cat >> confdefs.h <<EOF
  8471. #define $ac_tr_hdr 1
  8472. EOF
  8473. else
  8474. echo "$ac_t""no" 1>&6
  8475. fi
  8476. done
  8477. CPPFLAGS="$save_CPPFLAGS"
  8478. ac_save_ldflags="$LDFLAGS"
  8479. LDFLAGS="$BLASLIB $LDFLAGS"
  8480. echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
  8481. echo "configure:10614: checking for dnrm2_ in -lblas" >&5
  8482. ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
  8483. ac_save_LIBS="$LIBS"
  8484. LIBS="-lblas $MATHLIB $LIBS"
  8485. cat > conftest.$ac_ext <<EOF
  8486. #line 10620 "configure"
  8487. #include "confdefs.h"
  8488. /* Override any gcc2 internal prototype to avoid an error. */
  8489. /* We use char because int might match the return type of a gcc2
  8490. builtin and then its argument prototype would still apply. */
  8491. char dnrm2_();
  8492. int main() {
  8493. dnrm2_()
  8494. ; return 0; }
  8495. EOF
  8496. if { (eval echo configure:10631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8497. rm -rf conftest*
  8498. eval "ac_cv_lib_$ac_lib_var=yes"
  8499. else
  8500. echo "configure: failed program was:" >&5
  8501. cat conftest.$ac_ext >&5
  8502. rm -rf conftest*
  8503. eval "ac_cv_lib_$ac_lib_var=no"
  8504. fi
  8505. rm -f conftest*
  8506. LIBS="$ac_save_LIBS"
  8507. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8508. echo "$ac_t""yes" 1>&6
  8509. BLASLIB="$BLASLIB -lblas "
  8510. else
  8511. echo "$ac_t""no" 1>&6
  8512. echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
  8513. echo "configure:10650: checking for dnrm2_ in -lblas" >&5
  8514. ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
  8515. ac_save_LIBS="$LIBS"
  8516. LIBS="-lblas $MATHLIB -lg2c $LIBS"
  8517. cat > conftest.$ac_ext <<EOF
  8518. #line 10656 "configure"
  8519. #include "confdefs.h"
  8520. /* Override any gcc2 internal prototype to avoid an error. */
  8521. /* We use char because int might match the return type of a gcc2
  8522. builtin and then its argument prototype would still apply. */
  8523. char dnrm2_();
  8524. int main() {
  8525. dnrm2_()
  8526. ; return 0; }
  8527. EOF
  8528. if { (eval echo configure:10667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8529. rm -rf conftest*
  8530. eval "ac_cv_lib_$ac_lib_var=yes"
  8531. else
  8532. echo "configure: failed program was:" >&5
  8533. cat conftest.$ac_ext >&5
  8534. rm -rf conftest*
  8535. eval "ac_cv_lib_$ac_lib_var=no"
  8536. fi
  8537. rm -f conftest*
  8538. LIBS="$ac_save_LIBS"
  8539. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8540. echo "$ac_t""yes" 1>&6
  8541. BLASLIB="$BLASLIB -lblas -lg2c"
  8542. else
  8543. echo "$ac_t""no" 1>&6
  8544. LDFLAGS=${ac_save_ldflags}
  8545. { echo "configure: error: *** Unable to locate BLAS library." 1>&2; exit 1; }
  8546. fi
  8547. fi
  8548. LDFLAGS=${ac_save_ldflags}
  8549. blas_ok=no
  8550. # Check for ATLAS
  8551. save_LDFLAGS="$LDFLAGS"
  8552. LDFLAGS="$BLASLIB $LDFLAGS"
  8553. echo $ac_n "checking for ATL_xerbla in -latlas""... $ac_c" 1>&6
  8554. echo "configure:10711: checking for ATL_xerbla in -latlas" >&5
  8555. ac_lib_var=`echo atlas'_'ATL_xerbla | sed 'y%./+-%__p_%'`
  8556. ac_save_LIBS="$LIBS"
  8557. LIBS="-latlas $LIBS"
  8558. cat > conftest.$ac_ext <<EOF
  8559. #line 10717 "configure"
  8560. #include "confdefs.h"
  8561. /* Override any gcc2 internal prototype to avoid an error. */
  8562. /* We use char because int might match the return type of a gcc2
  8563. builtin and then its argument prototype would still apply. */
  8564. char ATL_xerbla();
  8565. int main() {
  8566. ATL_xerbla()
  8567. ; return 0; }
  8568. EOF
  8569. if { (eval echo configure:10728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8570. rm -rf conftest*
  8571. eval "ac_cv_lib_$ac_lib_var=yes"
  8572. else
  8573. echo "configure: failed program was:" >&5
  8574. cat conftest.$ac_ext >&5
  8575. rm -rf conftest*
  8576. eval "ac_cv_lib_$ac_lib_var=no"
  8577. fi
  8578. rm -f conftest*
  8579. LIBS="$ac_save_LIBS"
  8580. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8581. echo "$ac_t""yes" 1>&6
  8582. echo $ac_n "checking for sgemm_ in -lf77blas""... $ac_c" 1>&6
  8583. echo "configure:10743: checking for sgemm_ in -lf77blas" >&5
  8584. ac_lib_var=`echo f77blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  8585. ac_save_LIBS="$LIBS"
  8586. LIBS="-lf77blas -latlas $LIBS"
  8587. cat > conftest.$ac_ext <<EOF
  8588. #line 10749 "configure"
  8589. #include "confdefs.h"
  8590. /* Override any gcc2 internal prototype to avoid an error. */
  8591. /* We use char because int might match the return type of a gcc2
  8592. builtin and then its argument prototype would still apply. */
  8593. char sgemm_();
  8594. int main() {
  8595. sgemm_()
  8596. ; return 0; }
  8597. EOF
  8598. if { (eval echo configure:10760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8599. rm -rf conftest*
  8600. eval "ac_cv_lib_$ac_lib_var=yes"
  8601. else
  8602. echo "configure: failed program was:" >&5
  8603. cat conftest.$ac_ext >&5
  8604. rm -rf conftest*
  8605. eval "ac_cv_lib_$ac_lib_var=no"
  8606. fi
  8607. rm -f conftest*
  8608. LIBS="$ac_save_LIBS"
  8609. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8610. echo "$ac_t""yes" 1>&6
  8611. echo $ac_n "checking for cblas_dgemm in -lcblas""... $ac_c" 1>&6
  8612. echo "configure:10775: checking for cblas_dgemm in -lcblas" >&5
  8613. ac_lib_var=`echo cblas'_'cblas_dgemm | sed 'y%./+-%__p_%'`
  8614. ac_save_LIBS="$LIBS"
  8615. LIBS="-lcblas -lf77blas -latlas $LIBS"
  8616. cat > conftest.$ac_ext <<EOF
  8617. #line 10781 "configure"
  8618. #include "confdefs.h"
  8619. /* Override any gcc2 internal prototype to avoid an error. */
  8620. /* We use char because int might match the return type of a gcc2
  8621. builtin and then its argument prototype would still apply. */
  8622. char cblas_dgemm();
  8623. int main() {
  8624. cblas_dgemm()
  8625. ; return 0; }
  8626. EOF
  8627. if { (eval echo configure:10792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8628. rm -rf conftest*
  8629. eval "ac_cv_lib_$ac_lib_var=yes"
  8630. else
  8631. echo "configure: failed program was:" >&5
  8632. cat conftest.$ac_ext >&5
  8633. rm -rf conftest*
  8634. eval "ac_cv_lib_$ac_lib_var=no"
  8635. fi
  8636. rm -f conftest*
  8637. LIBS="$ac_save_LIBS"
  8638. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8639. echo "$ac_t""yes" 1>&6
  8640. blas_ok=yes; BLASLIB="-lcblas -lf77blas -latlas"
  8641. else
  8642. echo "$ac_t""no" 1>&6
  8643. fi
  8644. else
  8645. echo "$ac_t""no" 1>&6
  8646. fi
  8647. else
  8648. echo "$ac_t""no" 1>&6
  8649. fi
  8650. LDFLAGS="$save_LDFLAGS"
  8651. # Do we have ATLAS?
  8652. if test $blas_ok = yes; then
  8653. cat >> confdefs.h <<\EOF
  8654. #define HAVE_LIBATLAS 1
  8655. EOF
  8656. fi
  8657. # BLAS in Apple vecLib framework? (Mac OS-X)
  8658. # not dependent on APP build
  8659. #if test -n "$MACOSX_APP"; then
  8660. if test $blas_ok = no; then
  8661. vlib_flags="-framework vecLib"
  8662. save_LIBS="$LIBS"
  8663. LIBS="$vlib_flags $LIBS"
  8664. echo $ac_n "checking for sgemm in $vlib_flags""... $ac_c" 1>&6
  8665. echo "configure:10838: checking for sgemm in $vlib_flags" >&5
  8666. cat > conftest.$ac_ext <<EOF
  8667. #line 10840 "configure"
  8668. #include "confdefs.h"
  8669. int main() {
  8670. sgemm
  8671. ; return 0; }
  8672. EOF
  8673. if { (eval echo configure:10847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8674. rm -rf conftest*
  8675. blas_ok=yes; BLASLIB="$vlib_flags"
  8676. else
  8677. echo "configure: failed program was:" >&5
  8678. cat conftest.$ac_ext >&5
  8679. rm -rf conftest*
  8680. BLASLIB=""
  8681. fi
  8682. rm -f conftest*
  8683. echo "$ac_t""$blas_ok" 1>&6
  8684. LIBS="$save_LIBS"
  8685. fi
  8686. #fi # $MACOSX_APP
  8687. # BLAS in PhiPACK libraries? (requires generic BLAS, too)
  8688. if test $blas_ok = no; then
  8689. echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
  8690. echo "configure:10865: checking for sgemm_ in -lblas" >&5
  8691. ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  8692. ac_save_LIBS="$LIBS"
  8693. LIBS="-lblas $LIBS"
  8694. cat > conftest.$ac_ext <<EOF
  8695. #line 10871 "configure"
  8696. #include "confdefs.h"
  8697. /* Override any gcc2 internal prototype to avoid an error. */
  8698. /* We use char because int might match the return type of a gcc2
  8699. builtin and then its argument prototype would still apply. */
  8700. char sgemm_();
  8701. int main() {
  8702. sgemm_()
  8703. ; return 0; }
  8704. EOF
  8705. if { (eval echo configure:10882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8706. rm -rf conftest*
  8707. eval "ac_cv_lib_$ac_lib_var=yes"
  8708. else
  8709. echo "configure: failed program was:" >&5
  8710. cat conftest.$ac_ext >&5
  8711. rm -rf conftest*
  8712. eval "ac_cv_lib_$ac_lib_var=no"
  8713. fi
  8714. rm -f conftest*
  8715. LIBS="$ac_save_LIBS"
  8716. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8717. echo "$ac_t""yes" 1>&6
  8718. echo $ac_n "checking for dgemm_ in -ldgemm""... $ac_c" 1>&6
  8719. echo "configure:10897: checking for dgemm_ in -ldgemm" >&5
  8720. ac_lib_var=`echo dgemm'_'dgemm_ | sed 'y%./+-%__p_%'`
  8721. ac_save_LIBS="$LIBS"
  8722. LIBS="-ldgemm -lblas $LIBS"
  8723. cat > conftest.$ac_ext <<EOF
  8724. #line 10903 "configure"
  8725. #include "confdefs.h"
  8726. /* Override any gcc2 internal prototype to avoid an error. */
  8727. /* We use char because int might match the return type of a gcc2
  8728. builtin and then its argument prototype would still apply. */
  8729. char dgemm_();
  8730. int main() {
  8731. dgemm_()
  8732. ; return 0; }
  8733. EOF
  8734. if { (eval echo configure:10914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8735. rm -rf conftest*
  8736. eval "ac_cv_lib_$ac_lib_var=yes"
  8737. else
  8738. echo "configure: failed program was:" >&5
  8739. cat conftest.$ac_ext >&5
  8740. rm -rf conftest*
  8741. eval "ac_cv_lib_$ac_lib_var=no"
  8742. fi
  8743. rm -f conftest*
  8744. LIBS="$ac_save_LIBS"
  8745. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8746. echo "$ac_t""yes" 1>&6
  8747. echo $ac_n "checking for sgemm_ in -lsgemm""... $ac_c" 1>&6
  8748. echo "configure:10929: checking for sgemm_ in -lsgemm" >&5
  8749. ac_lib_var=`echo sgemm'_'sgemm_ | sed 'y%./+-%__p_%'`
  8750. ac_save_LIBS="$LIBS"
  8751. LIBS="-lsgemm -lblas $LIBS"
  8752. cat > conftest.$ac_ext <<EOF
  8753. #line 10935 "configure"
  8754. #include "confdefs.h"
  8755. /* Override any gcc2 internal prototype to avoid an error. */
  8756. /* We use char because int might match the return type of a gcc2
  8757. builtin and then its argument prototype would still apply. */
  8758. char sgemm_();
  8759. int main() {
  8760. sgemm_()
  8761. ; return 0; }
  8762. EOF
  8763. if { (eval echo configure:10946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8764. rm -rf conftest*
  8765. eval "ac_cv_lib_$ac_lib_var=yes"
  8766. else
  8767. echo "configure: failed program was:" >&5
  8768. cat conftest.$ac_ext >&5
  8769. rm -rf conftest*
  8770. eval "ac_cv_lib_$ac_lib_var=no"
  8771. fi
  8772. rm -f conftest*
  8773. LIBS="$ac_save_LIBS"
  8774. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8775. echo "$ac_t""yes" 1>&6
  8776. blas_ok=yes; BLASLIB="-lsgemm -ldgemm -lblas"
  8777. else
  8778. echo "$ac_t""no" 1>&6
  8779. fi
  8780. else
  8781. echo "$ac_t""no" 1>&6
  8782. fi
  8783. else
  8784. echo "$ac_t""no" 1>&6
  8785. fi
  8786. fi
  8787. # BLAS in Sun Performance library?
  8788. if test $blas_ok = no; then
  8789. if test "x$GCC" != xyes; then # only works with Sun CC
  8790. echo $ac_n "checking for acosp in -lsunmath""... $ac_c" 1>&6
  8791. echo "configure:10980: checking for acosp in -lsunmath" >&5
  8792. ac_lib_var=`echo sunmath'_'acosp | sed 'y%./+-%__p_%'`
  8793. ac_save_LIBS="$LIBS"
  8794. LIBS="-lsunmath $LIBS"
  8795. cat > conftest.$ac_ext <<EOF
  8796. #line 10986 "configure"
  8797. #include "confdefs.h"
  8798. /* Override any gcc2 internal prototype to avoid an error. */
  8799. /* We use char because int might match the return type of a gcc2
  8800. builtin and then its argument prototype would still apply. */
  8801. char acosp();
  8802. int main() {
  8803. acosp()
  8804. ; return 0; }
  8805. EOF
  8806. if { (eval echo configure:10997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8807. rm -rf conftest*
  8808. eval "ac_cv_lib_$ac_lib_var=yes"
  8809. else
  8810. echo "configure: failed program was:" >&5
  8811. cat conftest.$ac_ext >&5
  8812. rm -rf conftest*
  8813. eval "ac_cv_lib_$ac_lib_var=no"
  8814. fi
  8815. rm -f conftest*
  8816. LIBS="$ac_save_LIBS"
  8817. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8818. echo "$ac_t""yes" 1>&6
  8819. echo $ac_n "checking for sgemm_ in -lsunperf""... $ac_c" 1>&6
  8820. echo "configure:11012: checking for sgemm_ in -lsunperf" >&5
  8821. ac_lib_var=`echo sunperf'_'sgemm_ | sed 'y%./+-%__p_%'`
  8822. ac_save_LIBS="$LIBS"
  8823. LIBS="-lsunperf -lsunmath $LIBS"
  8824. cat > conftest.$ac_ext <<EOF
  8825. #line 11018 "configure"
  8826. #include "confdefs.h"
  8827. /* Override any gcc2 internal prototype to avoid an error. */
  8828. /* We use char because int might match the return type of a gcc2
  8829. builtin and then its argument prototype would still apply. */
  8830. char sgemm_();
  8831. int main() {
  8832. sgemm_()
  8833. ; return 0; }
  8834. EOF
  8835. if { (eval echo configure:11029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8836. rm -rf conftest*
  8837. eval "ac_cv_lib_$ac_lib_var=yes"
  8838. else
  8839. echo "configure: failed program was:" >&5
  8840. cat conftest.$ac_ext >&5
  8841. rm -rf conftest*
  8842. eval "ac_cv_lib_$ac_lib_var=no"
  8843. fi
  8844. rm -f conftest*
  8845. LIBS="$ac_save_LIBS"
  8846. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8847. echo "$ac_t""yes" 1>&6
  8848. blas_ok=yes; BLASLIB="-xlic_lib=sunperf -lsunmath"
  8849. else
  8850. echo "$ac_t""no" 1>&6
  8851. fi
  8852. else
  8853. echo "$ac_t""no" 1>&6
  8854. fi
  8855. fi
  8856. fi
  8857. # Generic BLAS library
  8858. if test $blas_ok = no; then
  8859. echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
  8860. echo "configure:11059: checking for sgemm_ in -lblas" >&5
  8861. ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  8862. ac_save_LIBS="$LIBS"
  8863. LIBS="-lblas $LIBS"
  8864. cat > conftest.$ac_ext <<EOF
  8865. #line 11065 "configure"
  8866. #include "confdefs.h"
  8867. /* Override any gcc2 internal prototype to avoid an error. */
  8868. /* We use char because int might match the return type of a gcc2
  8869. builtin and then its argument prototype would still apply. */
  8870. char sgemm_();
  8871. int main() {
  8872. sgemm_()
  8873. ; return 0; }
  8874. EOF
  8875. if { (eval echo configure:11076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8876. rm -rf conftest*
  8877. eval "ac_cv_lib_$ac_lib_var=yes"
  8878. else
  8879. echo "configure: failed program was:" >&5
  8880. cat conftest.$ac_ext >&5
  8881. rm -rf conftest*
  8882. eval "ac_cv_lib_$ac_lib_var=no"
  8883. fi
  8884. rm -f conftest*
  8885. LIBS="$ac_save_LIBS"
  8886. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8887. echo "$ac_t""yes" 1>&6
  8888. blas_ok=yes; BLASLIB="-lblas"
  8889. else
  8890. echo "$ac_t""no" 1>&6
  8891. fi
  8892. fi
  8893. if test $blas_ok = yes; then
  8894. cat >> confdefs.h <<\EOF
  8895. #define HAVE_LIBBLAS 1
  8896. EOF
  8897. fi
  8898. fi # $USE_BLAS
  8899. # Done checking BLAS
  8900. # Enable LAPACK option
  8901. echo $ac_n "checking whether to use LAPACK""... $ac_c" 1>&6
  8902. echo "configure:11115: checking whether to use LAPACK" >&5
  8903. echo "$ac_t"""$with_lapack"" 1>&6
  8904. case "$with_lapack" in
  8905. "no") USE_LAPACK= ;;
  8906. "yes") USE_LAPACK="1" ;;
  8907. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8908. esac
  8909. LAPACKLIB=
  8910. LAPACKINC=
  8911. # LAPACK is useless without BLAS
  8912. if test -n "$USE_BLAS"; then
  8913. if test -n "$USE_LAPACK"; then
  8914. # With LAPACK includes directory
  8915. # LAPACK doesn't have includes (FORTRAN library)
  8916. # With LAPACK library directory
  8917. lapack_ok=no
  8918. echo $ac_n "checking for location of LAPACK includes""... $ac_c" 1>&6
  8919. echo "configure:11140: checking for location of LAPACK includes" >&5
  8920. case "$with_lapack_includes" in
  8921. y | ye | yes | n | no)
  8922. { echo "configure: error: *** You must supply a directory to --with-lapack-includes." 1>&2; exit 1; }
  8923. ;;
  8924. esac
  8925. echo "$ac_t""$with_lapack_includes" 1>&6
  8926. if test -n "$with_lapack_includes" ; then
  8927. for dir in $with_lapack_includes; do
  8928. if test -d "$dir"; then
  8929. LAPACKINC="$LAPACKINC -I$dir"
  8930. else
  8931. { echo "configure: error: *** LAPACK includes directory $dir does not exist." 1>&2; exit 1; }
  8932. fi
  8933. done
  8934. fi
  8935. echo $ac_n "checking for location of LAPACK library""... $ac_c" 1>&6
  8936. echo "configure:11160: checking for location of LAPACK library" >&5
  8937. case "$with_lapack_libs" in
  8938. y | ye | yes | n | no)
  8939. { echo "configure: error: *** You must supply a directory to --with-lapack-libs." 1>&2; exit 1; }
  8940. ;;
  8941. esac
  8942. echo "$ac_t""$with_lapack_libs" 1>&6
  8943. if test -n "$with_lapack_libs"; then
  8944. for dir in $with_lapack_libs; do
  8945. if test -d "$dir"; then
  8946. LAPACKLIB="$LAPACKLIB -L$dir"
  8947. else
  8948. { echo "configure: error: *** LAPACK library directory $dir does not exist." 1>&2; exit 1; }
  8949. fi
  8950. done
  8951. fi
  8952. # See if clapack.h exists (ATLAS)
  8953. save_CPPFLAGS="$CPPFLAGS"
  8954. CPPFLAGS="$LAPACKINC $CPPFLAGS"
  8955. for ac_hdr in clapack.h
  8956. do
  8957. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8958. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8959. echo "configure:11186: checking for $ac_hdr" >&5
  8960. cat > conftest.$ac_ext <<EOF
  8961. #line 11189 "configure"
  8962. #include "confdefs.h"
  8963. #include <$ac_hdr>
  8964. EOF
  8965. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8966. { (eval echo configure:11194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8967. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8968. if test -z "$ac_err"; then
  8969. rm -rf conftest*
  8970. eval "ac_cv_header_$ac_safe=yes"
  8971. else
  8972. echo "$ac_err" >&5
  8973. echo "configure: failed program was:" >&5
  8974. cat conftest.$ac_ext >&5
  8975. rm -rf conftest*
  8976. eval "ac_cv_header_$ac_safe=no"
  8977. fi
  8978. rm -f conftest*
  8979. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8980. echo "$ac_t""yes" 1>&6
  8981. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8982. cat >> confdefs.h <<EOF
  8983. #define $ac_tr_hdr 1
  8984. EOF
  8985. else
  8986. echo "$ac_t""no" 1>&6
  8987. fi
  8988. done
  8989. CPPFLAGS="$save_CPPFLAGS"
  8990. # LAPACK linked to by default?
  8991. if test lapack_ok=no; then
  8992. save_LIBS="$LIBS"; LIBS="$LIBS $BLASLIB $MATHLIB $FLIBS"
  8993. save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
  8994. echo $ac_n "checking for dsegv_""... $ac_c" 1>&6
  8995. echo "configure:11226: checking for dsegv_" >&5
  8996. cat > conftest.$ac_ext <<EOF
  8997. #line 11229 "configure"
  8998. #include "confdefs.h"
  8999. /* System header to define __stub macros and hopefully few prototypes,
  9000. which can conflict with char dsegv_(); below. */
  9001. #include <assert.h>
  9002. /* Override any gcc2 internal prototype to avoid an error. */
  9003. /* We use char because int might match the return type of a gcc2
  9004. builtin and then its argument prototype would still apply. */
  9005. char dsegv_();
  9006. int main() {
  9007. /* The GNU C library defines this for functions which it implements
  9008. to always fail with ENOSYS. Some functions are actually named
  9009. something starting with __ and the normal name is an alias. */
  9010. #if defined (__stub_dsegv_) || defined (__stub___dsegv_)
  9011. choke me
  9012. #else
  9013. dsegv_();
  9014. #endif
  9015. ; return 0; }
  9016. EOF
  9017. if { (eval echo configure:11252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9018. rm -rf conftest*
  9019. eval "ac_cv_func_dsegv_=yes"
  9020. else
  9021. echo "configure: failed program was:" >&5
  9022. cat conftest.$ac_ext >&5
  9023. rm -rf conftest*
  9024. eval "ac_cv_func_dsegv_=no"
  9025. fi
  9026. rm -f conftest*
  9027. if eval "test \"`echo '$ac_cv_func_'dsegv_`\" = yes"; then
  9028. echo "$ac_t""yes" 1>&6
  9029. lapack_ok=yes
  9030. else
  9031. echo "$ac_t""no" 1>&6
  9032. fi
  9033. LIBS="$save_LIBS"
  9034. LDFLAGS="$save_LDFLAGS"
  9035. fi
  9036. # Generic LAPACK library?
  9037. if test $lapack_ok = no; then
  9038. save_libs="$LIBS"; LIBS="$BLASLIB $MATHLIB $LIBS"
  9039. save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
  9040. echo $ac_n "checking for desgv_ in -llapack""... $ac_c" 1>&6
  9041. echo "configure:11279: checking for desgv_ in -llapack" >&5
  9042. ac_lib_var=`echo lapack'_'desgv_ | sed 'y%./+-%__p_%'`
  9043. ac_save_LIBS="$LIBS"
  9044. LIBS="-llapack $FLIBS $LIBS"
  9045. cat > conftest.$ac_ext <<EOF
  9046. #line 11285 "configure"
  9047. #include "confdefs.h"
  9048. /* Override any gcc2 internal prototype to avoid an error. */
  9049. /* We use char because int might match the return type of a gcc2
  9050. builtin and then its argument prototype would still apply. */
  9051. char desgv_();
  9052. int main() {
  9053. desgv_()
  9054. ; return 0; }
  9055. EOF
  9056. if { (eval echo configure:11296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9057. rm -rf conftest*
  9058. eval "ac_cv_lib_$ac_lib_var=yes"
  9059. else
  9060. echo "configure: failed program was:" >&5
  9061. cat conftest.$ac_ext >&5
  9062. rm -rf conftest*
  9063. eval "ac_cv_lib_$ac_lib_var=no"
  9064. fi
  9065. rm -f conftest*
  9066. LIBS="$ac_save_LIBS"
  9067. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9068. echo "$ac_t""yes" 1>&6
  9069. lapack_ok=yes; LAPACKLIB="-llapack"
  9070. else
  9071. echo "$ac_t""no" 1>&6
  9072. fi
  9073. LIBS="$save_LIBS"
  9074. LDFLAGS="$save_LDFLAGS"
  9075. fi
  9076. if test $lapack_ok = no; then
  9077. ac_save_ldflags="$LDFLAGS"
  9078. LDFLAGS="$LAPACKLIB $LDFLAGS"
  9079. echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
  9080. echo "configure:11328: checking for dgesv_ in -llapack" >&5
  9081. ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
  9082. ac_save_LIBS="$LIBS"
  9083. LIBS="-llapack $BLASLIB $MATHLIB $LIBS"
  9084. cat > conftest.$ac_ext <<EOF
  9085. #line 11334 "configure"
  9086. #include "confdefs.h"
  9087. /* Override any gcc2 internal prototype to avoid an error. */
  9088. /* We use char because int might match the return type of a gcc2
  9089. builtin and then its argument prototype would still apply. */
  9090. char dgesv_();
  9091. int main() {
  9092. dgesv_()
  9093. ; return 0; }
  9094. EOF
  9095. if { (eval echo configure:11345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9096. rm -rf conftest*
  9097. eval "ac_cv_lib_$ac_lib_var=yes"
  9098. else
  9099. echo "configure: failed program was:" >&5
  9100. cat conftest.$ac_ext >&5
  9101. rm -rf conftest*
  9102. eval "ac_cv_lib_$ac_lib_var=no"
  9103. fi
  9104. rm -f conftest*
  9105. LIBS="$ac_save_LIBS"
  9106. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9107. echo "$ac_t""yes" 1>&6
  9108. LAPACKLIB="$LAPACKLIB -llapack "
  9109. else
  9110. echo "$ac_t""no" 1>&6
  9111. echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
  9112. echo "configure:11364: checking for dgesv_ in -llapack" >&5
  9113. ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
  9114. ac_save_LIBS="$LIBS"
  9115. LIBS="-llapack $BLASLIB $MATHLIB -lg2c $LIBS"
  9116. cat > conftest.$ac_ext <<EOF
  9117. #line 11370 "configure"
  9118. #include "confdefs.h"
  9119. /* Override any gcc2 internal prototype to avoid an error. */
  9120. /* We use char because int might match the return type of a gcc2
  9121. builtin and then its argument prototype would still apply. */
  9122. char dgesv_();
  9123. int main() {
  9124. dgesv_()
  9125. ; return 0; }
  9126. EOF
  9127. if { (eval echo configure:11381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9128. rm -rf conftest*
  9129. eval "ac_cv_lib_$ac_lib_var=yes"
  9130. else
  9131. echo "configure: failed program was:" >&5
  9132. cat conftest.$ac_ext >&5
  9133. rm -rf conftest*
  9134. eval "ac_cv_lib_$ac_lib_var=no"
  9135. fi
  9136. rm -f conftest*
  9137. LIBS="$ac_save_LIBS"
  9138. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9139. echo "$ac_t""yes" 1>&6
  9140. LAPACKLIB="$LAPACKLIB -llapack -lg2c"
  9141. else
  9142. echo "$ac_t""no" 1>&6
  9143. LDFLAGS=${ac_save_ldflags}
  9144. { echo "configure: error: *** Unable to locate LAPACK library." 1>&2; exit 1; }
  9145. fi
  9146. fi
  9147. LDFLAGS=${ac_save_ldflags}
  9148. fi
  9149. cat >> confdefs.h <<\EOF
  9150. #define HAVE_LIBLAPACK 1
  9151. EOF
  9152. fi # $USE_LAPACK
  9153. fi # $USE_BLAS
  9154. # Done checking LAPACK
  9155. # Enable Cairo display driver option
  9156. echo $ac_n "checking whether to use Cairo""... $ac_c" 1>&6
  9157. echo "configure:11437: checking whether to use Cairo" >&5
  9158. echo "$ac_t"""$with_cairo"" 1>&6
  9159. case "$with_cairo" in
  9160. "no") USE_CAIRO= ;;
  9161. "yes") USE_CAIRO="1" ;;
  9162. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9163. esac
  9164. CAIROINC=
  9165. CAIROLIB=
  9166. if test -n "$USE_CAIRO"; then
  9167. cairo="cairo"
  9168. pkgs="cairo-ft cairo-fc cairo-pdf cairo-ps cairo-svg fontconfig"
  9169. if test -n "$USE_X11"; then
  9170. pkgs="$pkgs cairo-xlib cairo-xlib-xrender"
  9171. fi
  9172. for pkg in $pkgs ; do
  9173. if pkg-config --exists $pkg ; then
  9174. cairo="$cairo $pkg"
  9175. fi
  9176. done
  9177. # With Cairo includes directory
  9178. #FIXME: somehow quote dirs with spaces in $cairo ?
  9179. CAIROINC=`pkg-config --cflags $cairo`
  9180. echo $ac_n "checking for location of cairo includes""... $ac_c" 1>&6
  9181. echo "configure:11469: checking for location of cairo includes" >&5
  9182. case "$with_cairo_includes" in
  9183. y | ye | yes | n | no)
  9184. { echo "configure: error: *** You must supply a directory to --with-cairo-includes." 1>&2; exit 1; }
  9185. ;;
  9186. esac
  9187. echo "$ac_t""$with_cairo_includes" 1>&6
  9188. if test -n "$with_cairo_includes" ; then
  9189. for dir in $with_cairo_includes; do
  9190. if test -d "$dir"; then
  9191. CAIROINC="$CAIROINC -I$dir"
  9192. else
  9193. { echo "configure: error: *** cairo includes directory $dir does not exist." 1>&2; exit 1; }
  9194. fi
  9195. done
  9196. fi
  9197. ac_save_cppflags="$CPPFLAGS"
  9198. CPPFLAGS="$CAIROINC $CPPFLAGS"
  9199. for ac_hdr in cairo.h
  9200. do
  9201. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9202. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9203. echo "configure:11495: checking for $ac_hdr" >&5
  9204. cat > conftest.$ac_ext <<EOF
  9205. #line 11498 "configure"
  9206. #include "confdefs.h"
  9207. #include <$ac_hdr>
  9208. EOF
  9209. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9210. { (eval echo configure:11503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9211. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9212. if test -z "$ac_err"; then
  9213. rm -rf conftest*
  9214. eval "ac_cv_header_$ac_safe=yes"
  9215. else
  9216. echo "$ac_err" >&5
  9217. echo "configure: failed program was:" >&5
  9218. cat conftest.$ac_ext >&5
  9219. rm -rf conftest*
  9220. eval "ac_cv_header_$ac_safe=no"
  9221. fi
  9222. rm -f conftest*
  9223. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9224. echo "$ac_t""yes" 1>&6
  9225. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9226. cat >> confdefs.h <<EOF
  9227. #define $ac_tr_hdr 1
  9228. EOF
  9229. else
  9230. echo "$ac_t""no" 1>&6
  9231. { echo "configure: error: *** Unable to locate Cairo includes." 1>&2; exit 1; }
  9232. fi
  9233. done
  9234. CPPFLAGS=$ac_save_cppflags
  9235. # With Cairo library directory
  9236. CAIROLIB=`pkg-config --libs $cairo`
  9237. echo $ac_n "checking for location of cairo library""... $ac_c" 1>&6
  9238. echo "configure:11539: checking for location of cairo library" >&5
  9239. case "$with_cairo_libs" in
  9240. y | ye | yes | n | no)
  9241. { echo "configure: error: *** You must supply a directory to --with-cairo-libs." 1>&2; exit 1; }
  9242. ;;
  9243. esac
  9244. echo "$ac_t""$with_cairo_libs" 1>&6
  9245. if test -n "$with_cairo_libs"; then
  9246. for dir in $with_cairo_libs; do
  9247. if test -d "$dir"; then
  9248. CAIROLIB="$CAIROLIB -L$dir"
  9249. else
  9250. { echo "configure: error: *** cairo library directory $dir does not exist." 1>&2; exit 1; }
  9251. fi
  9252. done
  9253. fi
  9254. echo $ac_n "checking for cairo linking flags""... $ac_c" 1>&6
  9255. echo "configure:11559: checking for cairo linking flags" >&5
  9256. case "$with_cairo_ldflags" in
  9257. y | ye | yes | n | no)
  9258. { echo "configure: error: *** You must supply a directory to --with-cairo-ldflags." 1>&2; exit 1; }
  9259. ;;
  9260. esac
  9261. echo "$ac_t""$with_cairo_ldflags" 1>&6
  9262. CAIROLIB="$CAIROLIB $with_cairo_ldflags"
  9263. ac_save_libs="$LIBS"
  9264. ac_save_ldflags="$LDFLAGS"
  9265. LIBS=" $CAIROLIB $LIBS"
  9266. LDFLAGS=" $LDFLAGS"
  9267. echo $ac_n "checking for cairo_create""... $ac_c" 1>&6
  9268. echo "configure:11575: checking for cairo_create" >&5
  9269. cat > conftest.$ac_ext <<EOF
  9270. #line 11578 "configure"
  9271. #include "confdefs.h"
  9272. /* System header to define __stub macros and hopefully few prototypes,
  9273. which can conflict with char cairo_create(); below. */
  9274. #include <assert.h>
  9275. /* Override any gcc2 internal prototype to avoid an error. */
  9276. /* We use char because int might match the return type of a gcc2
  9277. builtin and then its argument prototype would still apply. */
  9278. char cairo_create();
  9279. int main() {
  9280. /* The GNU C library defines this for functions which it implements
  9281. to always fail with ENOSYS. Some functions are actually named
  9282. something starting with __ and the normal name is an alias. */
  9283. #if defined (__stub_cairo_create) || defined (__stub___cairo_create)
  9284. choke me
  9285. #else
  9286. cairo_create();
  9287. #endif
  9288. ; return 0; }
  9289. EOF
  9290. if { (eval echo configure:11601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9291. rm -rf conftest*
  9292. eval "ac_cv_func_cairo_create=yes"
  9293. else
  9294. echo "configure: failed program was:" >&5
  9295. cat conftest.$ac_ext >&5
  9296. rm -rf conftest*
  9297. eval "ac_cv_func_cairo_create=no"
  9298. fi
  9299. rm -f conftest*
  9300. if eval "test \"`echo '$ac_cv_func_'cairo_create`\" = yes"; then
  9301. echo "$ac_t""yes" 1>&6
  9302. :
  9303. else
  9304. echo "$ac_t""no" 1>&6
  9305. { echo "configure: error: *** Unable to locate cairo_create." 1>&2; exit 1; }
  9306. fi
  9307. LIBS=${ac_save_libs}
  9308. LDFLAGS=${ac_save_ldflags}
  9309. ac_save_libs="$LIBS"
  9310. ac_save_ldflags="$LDFLAGS"
  9311. LIBS=" $CAIROLIB $LIBS"
  9312. LDFLAGS=" $LDFLAGS"
  9313. echo $ac_n "checking for cairo_xlib_surface_create_with_xrender_format""... $ac_c" 1>&6
  9314. echo "configure:11635: checking for cairo_xlib_surface_create_with_xrender_format" >&5
  9315. cat > conftest.$ac_ext <<EOF
  9316. #line 11638 "configure"
  9317. #include "confdefs.h"
  9318. /* System header to define __stub macros and hopefully few prototypes,
  9319. which can conflict with char cairo_xlib_surface_create_with_xrender_format(); below. */
  9320. #include <assert.h>
  9321. /* Override any gcc2 internal prototype to avoid an error. */
  9322. /* We use char because int might match the return type of a gcc2
  9323. builtin and then its argument prototype would still apply. */
  9324. char cairo_xlib_surface_create_with_xrender_format();
  9325. int main() {
  9326. /* The GNU C library defines this for functions which it implements
  9327. to always fail with ENOSYS. Some functions are actually named
  9328. something starting with __ and the normal name is an alias. */
  9329. #if defined (__stub_cairo_xlib_surface_create_with_xrender_format) || defined (__stub___cairo_xlib_surface_create_with_xrender_format)
  9330. choke me
  9331. #else
  9332. cairo_xlib_surface_create_with_xrender_format();
  9333. #endif
  9334. ; return 0; }
  9335. EOF
  9336. if { (eval echo configure:11661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9337. rm -rf conftest*
  9338. eval "ac_cv_func_cairo_xlib_surface_create_with_xrender_format=yes"
  9339. else
  9340. echo "configure: failed program was:" >&5
  9341. cat conftest.$ac_ext >&5
  9342. rm -rf conftest*
  9343. eval "ac_cv_func_cairo_xlib_surface_create_with_xrender_format=no"
  9344. fi
  9345. rm -f conftest*
  9346. if eval "test \"`echo '$ac_cv_func_'cairo_xlib_surface_create_with_xrender_format`\" = yes"; then
  9347. echo "$ac_t""yes" 1>&6
  9348. CAIRO_HAS_XRENDER=1
  9349. else
  9350. echo "$ac_t""no" 1>&6
  9351. CAIRO_HAS_XRENDER=
  9352. fi
  9353. LIBS=${ac_save_libs}
  9354. LDFLAGS=${ac_save_ldflags}
  9355. ac_save_libs="$LIBS"
  9356. ac_save_ldflags="$LDFLAGS"
  9357. LIBS=" $CAIROLIB $LIBS"
  9358. LDFLAGS=" $LDFLAGS"
  9359. echo $ac_n "checking for cairo_xlib_surface_get_xrender_format""... $ac_c" 1>&6
  9360. echo "configure:11694: checking for cairo_xlib_surface_get_xrender_format" >&5
  9361. cat > conftest.$ac_ext <<EOF
  9362. #line 11697 "configure"
  9363. #include "confdefs.h"
  9364. /* System header to define __stub macros and hopefully few prototypes,
  9365. which can conflict with char cairo_xlib_surface_get_xrender_format(); below. */
  9366. #include <assert.h>
  9367. /* Override any gcc2 internal prototype to avoid an error. */
  9368. /* We use char because int might match the return type of a gcc2
  9369. builtin and then its argument prototype would still apply. */
  9370. char cairo_xlib_surface_get_xrender_format();
  9371. int main() {
  9372. /* The GNU C library defines this for functions which it implements
  9373. to always fail with ENOSYS. Some functions are actually named
  9374. something starting with __ and the normal name is an alias. */
  9375. #if defined (__stub_cairo_xlib_surface_get_xrender_format) || defined (__stub___cairo_xlib_surface_get_xrender_format)
  9376. choke me
  9377. #else
  9378. cairo_xlib_surface_get_xrender_format();
  9379. #endif
  9380. ; return 0; }
  9381. EOF
  9382. if { (eval echo configure:11720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9383. rm -rf conftest*
  9384. eval "ac_cv_func_cairo_xlib_surface_get_xrender_format=yes"
  9385. else
  9386. echo "configure: failed program was:" >&5
  9387. cat conftest.$ac_ext >&5
  9388. rm -rf conftest*
  9389. eval "ac_cv_func_cairo_xlib_surface_get_xrender_format=no"
  9390. fi
  9391. rm -f conftest*
  9392. if eval "test \"`echo '$ac_cv_func_'cairo_xlib_surface_get_xrender_format`\" = yes"; then
  9393. echo "$ac_t""yes" 1>&6
  9394. CAIRO_HAS_XRENDER_SURFACE=1
  9395. else
  9396. echo "$ac_t""no" 1>&6
  9397. CAIRO_HAS_XRENDER_SURFACE=
  9398. fi
  9399. LIBS=${ac_save_libs}
  9400. LDFLAGS=${ac_save_ldflags}
  9401. CAIROLIB="$CAIROLIB $CAIROLDFLAGS"
  9402. fi # $USE_CAIRO
  9403. # Done checking Cairo
  9404. # Enable FreeType option
  9405. echo $ac_n "checking whether to use FreeType""... $ac_c" 1>&6
  9406. echo "configure:11762: checking whether to use FreeType" >&5
  9407. echo "$ac_t"""$with_freetype"" 1>&6
  9408. case "$with_freetype" in
  9409. "no") USE_FREETYPE= ;;
  9410. "yes") USE_FREETYPE="1" ;;
  9411. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9412. esac
  9413. FTINC=
  9414. FTLIB=
  9415. if test -n "$USE_FREETYPE"; then
  9416. # With FreeType includes directory
  9417. echo $ac_n "checking for location of FreeType includes""... $ac_c" 1>&6
  9418. echo "configure:11781: checking for location of FreeType includes" >&5
  9419. case "$with_freetype_includes" in
  9420. y | ye | yes | n | no)
  9421. { echo "configure: error: *** You must supply a directory to --with-freetype-includes." 1>&2; exit 1; }
  9422. ;;
  9423. esac
  9424. echo "$ac_t""$with_freetype_includes" 1>&6
  9425. if test -n "$with_freetype_includes" ; then
  9426. for dir in $with_freetype_includes; do
  9427. if test -d "$dir"; then
  9428. FTINC="$FTINC -I$dir"
  9429. else
  9430. { echo "configure: error: *** FreeType includes directory $dir does not exist." 1>&2; exit 1; }
  9431. fi
  9432. done
  9433. fi
  9434. ac_save_cppflags="$CPPFLAGS"
  9435. CPPFLAGS="$FTINC $CPPFLAGS"
  9436. for ac_hdr in ft2build.h
  9437. do
  9438. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9439. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9440. echo "configure:11807: checking for $ac_hdr" >&5
  9441. cat > conftest.$ac_ext <<EOF
  9442. #line 11810 "configure"
  9443. #include "confdefs.h"
  9444. #include <$ac_hdr>
  9445. EOF
  9446. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9447. { (eval echo configure:11815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9448. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9449. if test -z "$ac_err"; then
  9450. rm -rf conftest*
  9451. eval "ac_cv_header_$ac_safe=yes"
  9452. else
  9453. echo "$ac_err" >&5
  9454. echo "configure: failed program was:" >&5
  9455. cat conftest.$ac_ext >&5
  9456. rm -rf conftest*
  9457. eval "ac_cv_header_$ac_safe=no"
  9458. fi
  9459. rm -f conftest*
  9460. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9461. echo "$ac_t""yes" 1>&6
  9462. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9463. cat >> confdefs.h <<EOF
  9464. #define $ac_tr_hdr 1
  9465. EOF
  9466. else
  9467. echo "$ac_t""no" 1>&6
  9468. { echo "configure: error: *** Unable to locate FreeType includes." 1>&2; exit 1; }
  9469. fi
  9470. done
  9471. CPPFLAGS=$ac_save_cppflags
  9472. # With FreeType library directory
  9473. echo $ac_n "checking for location of FreeType library""... $ac_c" 1>&6
  9474. echo "configure:11849: checking for location of FreeType library" >&5
  9475. case "$with_freetype_libs" in
  9476. y | ye | yes | n | no)
  9477. { echo "configure: error: *** You must supply a directory to --with-freetype-libs." 1>&2; exit 1; }
  9478. ;;
  9479. esac
  9480. echo "$ac_t""$with_freetype_libs" 1>&6
  9481. if test -n "$with_freetype_libs"; then
  9482. for dir in $with_freetype_libs; do
  9483. if test -d "$dir"; then
  9484. FTLIB="$FTLIB -L$dir"
  9485. else
  9486. { echo "configure: error: *** FreeType library directory $dir does not exist." 1>&2; exit 1; }
  9487. fi
  9488. done
  9489. fi
  9490. ac_save_ldflags="$LDFLAGS"
  9491. LDFLAGS="$FTLIB $LDFLAGS"
  9492. echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
  9493. echo "configure:11874: checking for FT_Init_FreeType in -lfreetype" >&5
  9494. ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
  9495. ac_save_LIBS="$LIBS"
  9496. LIBS="-lfreetype $LIBS"
  9497. cat > conftest.$ac_ext <<EOF
  9498. #line 11880 "configure"
  9499. #include "confdefs.h"
  9500. /* Override any gcc2 internal prototype to avoid an error. */
  9501. /* We use char because int might match the return type of a gcc2
  9502. builtin and then its argument prototype would still apply. */
  9503. char FT_Init_FreeType();
  9504. int main() {
  9505. FT_Init_FreeType()
  9506. ; return 0; }
  9507. EOF
  9508. if { (eval echo configure:11891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9509. rm -rf conftest*
  9510. eval "ac_cv_lib_$ac_lib_var=yes"
  9511. else
  9512. echo "configure: failed program was:" >&5
  9513. cat conftest.$ac_ext >&5
  9514. rm -rf conftest*
  9515. eval "ac_cv_lib_$ac_lib_var=no"
  9516. fi
  9517. rm -f conftest*
  9518. LIBS="$ac_save_LIBS"
  9519. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9520. echo "$ac_t""yes" 1>&6
  9521. FTLIB="$FTLIB -lfreetype "
  9522. else
  9523. echo "$ac_t""no" 1>&6
  9524. LDFLAGS=${ac_save_ldflags}
  9525. { echo "configure: error: *** Unable to locate FreeType library." 1>&2; exit 1; }
  9526. fi
  9527. LDFLAGS=${ac_save_ldflags}
  9528. fi # $USE_FREETYPE
  9529. # Done checking FreeType
  9530. # Enable NLS option
  9531. echo $ac_n "checking whether to use NLS""... $ac_c" 1>&6
  9532. echo "configure:11932: checking whether to use NLS" >&5
  9533. echo "$ac_t"""$with_nls"" 1>&6
  9534. case "$with_nls" in
  9535. "no") USE_NLS= ;;
  9536. "yes") USE_NLS="1" ;;
  9537. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9538. esac
  9539. INTLLIB=
  9540. HAVE_NLS=
  9541. if test -n "${USE_NLS}" ; then
  9542. cat >> confdefs.h <<\EOF
  9543. #define USE_NLS 1
  9544. EOF
  9545. echo $ac_n "checking for gettext""... $ac_c" 1>&6
  9546. echo "configure:11952: checking for gettext" >&5
  9547. cat > conftest.$ac_ext <<EOF
  9548. #line 11955 "configure"
  9549. #include "confdefs.h"
  9550. /* System header to define __stub macros and hopefully few prototypes,
  9551. which can conflict with char gettext(); below. */
  9552. #include <assert.h>
  9553. /* Override any gcc2 internal prototype to avoid an error. */
  9554. /* We use char because int might match the return type of a gcc2
  9555. builtin and then its argument prototype would still apply. */
  9556. char gettext();
  9557. int main() {
  9558. /* The GNU C library defines this for functions which it implements
  9559. to always fail with ENOSYS. Some functions are actually named
  9560. something starting with __ and the normal name is an alias. */
  9561. #if defined (__stub_gettext) || defined (__stub___gettext)
  9562. choke me
  9563. #else
  9564. gettext();
  9565. #endif
  9566. ; return 0; }
  9567. EOF
  9568. if { (eval echo configure:11978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9569. rm -rf conftest*
  9570. eval "ac_cv_func_gettext=yes"
  9571. else
  9572. echo "configure: failed program was:" >&5
  9573. cat conftest.$ac_ext >&5
  9574. rm -rf conftest*
  9575. eval "ac_cv_func_gettext=no"
  9576. fi
  9577. rm -f conftest*
  9578. if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
  9579. echo "$ac_t""yes" 1>&6
  9580. INTLLIB=
  9581. else
  9582. echo "$ac_t""no" 1>&6
  9583. echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
  9584. echo "configure:11996: checking for gettext in -lintl" >&5
  9585. ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
  9586. ac_save_LIBS="$LIBS"
  9587. LIBS="-lintl $LIBS"
  9588. cat > conftest.$ac_ext <<EOF
  9589. #line 12002 "configure"
  9590. #include "confdefs.h"
  9591. /* Override any gcc2 internal prototype to avoid an error. */
  9592. /* We use char because int might match the return type of a gcc2
  9593. builtin and then its argument prototype would still apply. */
  9594. char gettext();
  9595. int main() {
  9596. gettext()
  9597. ; return 0; }
  9598. EOF
  9599. if { (eval echo configure:12013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9600. rm -rf conftest*
  9601. eval "ac_cv_lib_$ac_lib_var=yes"
  9602. else
  9603. echo "configure: failed program was:" >&5
  9604. cat conftest.$ac_ext >&5
  9605. rm -rf conftest*
  9606. eval "ac_cv_lib_$ac_lib_var=no"
  9607. fi
  9608. rm -f conftest*
  9609. LIBS="$ac_save_LIBS"
  9610. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9611. echo "$ac_t""yes" 1>&6
  9612. INTLLIB=-lintl
  9613. else
  9614. echo "$ac_t""no" 1>&6
  9615. { echo "configure: error: *** Unable to locate gettext() function." 1>&2; exit 1; }
  9616. fi
  9617. fi
  9618. HAVE_NLS=1
  9619. fi
  9620. # Enable C++ option
  9621. echo $ac_n "checking whether to use C++""... $ac_c" 1>&6
  9622. echo "configure:12048: checking whether to use C++" >&5
  9623. echo "$ac_t"""$with_cxx"" 1>&6
  9624. case "$with_cxx" in
  9625. "no") USE_CXX= ;;
  9626. "yes") USE_CXX="1" ;;
  9627. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9628. esac
  9629. if test -n "$USE_CXX"; then
  9630. for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
  9631. do
  9632. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9633. set dummy $ac_prog; ac_word=$2
  9634. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  9635. echo "configure:12064: checking for $ac_word" >&5
  9636. if test -n "$CXX"; then
  9637. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  9638. else
  9639. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  9640. ac_dummy="$PATH"
  9641. for ac_dir in $ac_dummy; do
  9642. test -z "$ac_dir" && ac_dir=.
  9643. if test -f $ac_dir/$ac_word; then
  9644. ac_cv_prog_CXX="$ac_prog"
  9645. break
  9646. fi
  9647. done
  9648. IFS="$ac_save_ifs"
  9649. fi
  9650. CXX="$ac_cv_prog_CXX"
  9651. if test -n "$CXX"; then
  9652. echo "$ac_t""$CXX" 1>&6
  9653. else
  9654. echo "$ac_t""no" 1>&6
  9655. fi
  9656. test -n "$CXX" && break
  9657. done
  9658. test -n "$CXX" || CXX="gcc"
  9659. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  9660. echo "configure:12093: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  9661. ac_ext=C
  9662. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  9663. ac_cpp='$CXXCPP $CPPFLAGS'
  9664. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  9665. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  9666. cross_compiling=$ac_cv_prog_cxx_cross
  9667. cat > conftest.$ac_ext << EOF
  9668. #line 12104 "configure"
  9669. #include "confdefs.h"
  9670. int main(){return(0);}
  9671. EOF
  9672. if { (eval echo configure:12109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9673. ac_cv_prog_cxx_works=yes
  9674. # If we can't run a trivial program, we are probably using a cross compiler.
  9675. if (./conftest; exit) 2>/dev/null; then
  9676. ac_cv_prog_cxx_cross=no
  9677. else
  9678. ac_cv_prog_cxx_cross=yes
  9679. fi
  9680. else
  9681. echo "configure: failed program was:" >&5
  9682. cat conftest.$ac_ext >&5
  9683. ac_cv_prog_cxx_works=no
  9684. fi
  9685. rm -fr conftest*
  9686. ac_ext=c
  9687. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  9688. ac_cpp='$CPP $CPPFLAGS'
  9689. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  9690. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  9691. cross_compiling=$ac_cv_prog_cc_cross
  9692. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  9693. if test $ac_cv_prog_cxx_works = no; then
  9694. { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  9695. fi
  9696. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  9697. echo "configure:12135: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  9698. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  9699. cross_compiling=$ac_cv_prog_cxx_cross
  9700. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  9701. echo "configure:12140: checking whether we are using GNU C++" >&5
  9702. cat > conftest.C <<EOF
  9703. #ifdef __GNUC__
  9704. yes;
  9705. #endif
  9706. EOF
  9707. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:12147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  9708. ac_cv_prog_gxx=yes
  9709. else
  9710. ac_cv_prog_gxx=no
  9711. fi
  9712. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  9713. if test $ac_cv_prog_gxx = yes; then
  9714. GXX=yes
  9715. else
  9716. GXX=
  9717. fi
  9718. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  9719. ac_save_CXXFLAGS="$CXXFLAGS"
  9720. CXXFLAGS=
  9721. echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  9722. echo "configure:12165: checking whether ${CXX-g++} accepts -g" >&5
  9723. echo 'void f(){}' > conftest.cc
  9724. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  9725. ac_cv_prog_cxx_g=yes
  9726. else
  9727. ac_cv_prog_cxx_g=no
  9728. fi
  9729. rm -f conftest*
  9730. echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  9731. if test "$ac_test_CXXFLAGS" = set; then
  9732. CXXFLAGS="$ac_save_CXXFLAGS"
  9733. elif test $ac_cv_prog_cxx_g = yes; then
  9734. if test "$GXX" = yes; then
  9735. CXXFLAGS="-g -O2"
  9736. else
  9737. CXXFLAGS="-g"
  9738. fi
  9739. else
  9740. if test "$GXX" = yes; then
  9741. CXXFLAGS="-O2"
  9742. else
  9743. CXXFLAGS=
  9744. fi
  9745. fi
  9746. else
  9747. CXX=
  9748. CXXFLAGS=
  9749. fi
  9750. # Done checking C++
  9751. # Enable openDWG option
  9752. echo $ac_n "checking whether to use openDWG""... $ac_c" 1>&6
  9753. echo "configure:12206: checking whether to use openDWG" >&5
  9754. echo "$ac_t"""$with_opendwg"" 1>&6
  9755. case "$with_opendwg" in
  9756. "no") USE_OPENDWG= ;;
  9757. "yes") USE_OPENDWG="1" ;;
  9758. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9759. esac
  9760. OPENDWGINCPATH=
  9761. OPENDWGLIBPATH=
  9762. OPENDWGLIB=
  9763. if test -n "${USE_OPENDWG}"; then
  9764. # With OPENDWG includes directory
  9765. echo $ac_n "checking for location of openDGW includes""... $ac_c" 1>&6
  9766. echo "configure:12226: checking for location of openDGW includes" >&5
  9767. case "$with_opendwg_includes" in
  9768. y | ye | yes | n | no)
  9769. { echo "configure: error: *** You must supply a directory to --with-opendwg-includes." 1>&2; exit 1; }
  9770. ;;
  9771. esac
  9772. echo "$ac_t""$with_opendwg_includes" 1>&6
  9773. if test -n "$with_opendwg_includes" ; then
  9774. for dir in $with_opendwg_includes; do
  9775. if test -d "$dir"; then
  9776. OPENDWGINCPATH="$OPENDWGINCPATH -I$dir"
  9777. else
  9778. { echo "configure: error: *** openDGW includes directory $dir does not exist." 1>&2; exit 1; }
  9779. fi
  9780. done
  9781. fi
  9782. ac_save_cppflags="$CPPFLAGS"
  9783. CPPFLAGS="$OPENDWGINCPATH $CPPFLAGS"
  9784. for ac_hdr in ad2.h
  9785. do
  9786. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9787. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9788. echo "configure:12252: checking for $ac_hdr" >&5
  9789. cat > conftest.$ac_ext <<EOF
  9790. #line 12255 "configure"
  9791. #include "confdefs.h"
  9792. #include <$ac_hdr>
  9793. EOF
  9794. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9795. { (eval echo configure:12260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9796. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9797. if test -z "$ac_err"; then
  9798. rm -rf conftest*
  9799. eval "ac_cv_header_$ac_safe=yes"
  9800. else
  9801. echo "$ac_err" >&5
  9802. echo "configure: failed program was:" >&5
  9803. cat conftest.$ac_ext >&5
  9804. rm -rf conftest*
  9805. eval "ac_cv_header_$ac_safe=no"
  9806. fi
  9807. rm -f conftest*
  9808. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9809. echo "$ac_t""yes" 1>&6
  9810. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9811. cat >> confdefs.h <<EOF
  9812. #define $ac_tr_hdr 1
  9813. EOF
  9814. else
  9815. echo "$ac_t""no" 1>&6
  9816. { echo "configure: error: *** Unable to locate openDWG includes." 1>&2; exit 1; }
  9817. fi
  9818. done
  9819. CPPFLAGS=$ac_save_cppflags
  9820. # With OPENDWG library directory
  9821. echo $ac_n "checking for location of openDWG library""... $ac_c" 1>&6
  9822. echo "configure:12294: checking for location of openDWG library" >&5
  9823. case "$with_opendwg_libs" in
  9824. y | ye | yes | n | no)
  9825. { echo "configure: error: *** You must supply a directory to --with-opendwg-libs." 1>&2; exit 1; }
  9826. ;;
  9827. esac
  9828. echo "$ac_t""$with_opendwg_libs" 1>&6
  9829. if test -n "$with_opendwg_libs"; then
  9830. for dir in $with_opendwg_libs; do
  9831. if test -d "$dir"; then
  9832. OPENDWGLIBPATH="$OPENDWGLIBPATH -L$dir"
  9833. else
  9834. { echo "configure: error: *** openDWG library directory $dir does not exist." 1>&2; exit 1; }
  9835. fi
  9836. done
  9837. fi
  9838. #search for ad2.a, ad3.a ... in openDWG toolkit directory:
  9839. #FIX ME how to program this test??
  9840. #LOC_CHECK_LIBS(ad?.a,adSeekLayer,openDWG,$OPENDWGLIBPATH,OPENDWGLIB,,)
  9841. #
  9842. #for now hack (but working):
  9843. TRUEOPENDWGLIBPATH=`echo "$OPENDWGLIBPATH" | cut -b3-`
  9844. adlib=`ls -1 "$TRUEOPENDWGLIBPATH"/ad?.a | tail -1`
  9845. OPENDWGLIB="$adlib"
  9846. fi # $USE_OPENDWG
  9847. # Done checking OPENDWG
  9848. # Enable pthread option
  9849. echo $ac_n "checking whether to use POSIX threads""... $ac_c" 1>&6
  9850. echo "configure:12335: checking whether to use POSIX threads" >&5
  9851. echo "$ac_t"""$with_pthread"" 1>&6
  9852. case "$with_pthread" in
  9853. "no") USE_PTHREAD= ;;
  9854. "yes") USE_PTHREAD="1" ;;
  9855. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9856. esac
  9857. PTHREADINCPATH=
  9858. PTHREADLIBPATH=
  9859. PTHREADLIB=
  9860. if test -n "$USE_PTHREAD"; then
  9861. # With pthread includes directory
  9862. echo $ac_n "checking for location of POSIX threads includes""... $ac_c" 1>&6
  9863. echo "configure:12355: checking for location of POSIX threads includes" >&5
  9864. case "$with_pthread_includes" in
  9865. y | ye | yes | n | no)
  9866. { echo "configure: error: *** You must supply a directory to --with-pthread-includes." 1>&2; exit 1; }
  9867. ;;
  9868. esac
  9869. echo "$ac_t""$with_pthread_includes" 1>&6
  9870. if test -n "$with_pthread_includes" ; then
  9871. for dir in $with_pthread_includes; do
  9872. if test -d "$dir"; then
  9873. PTHREADINCPATH="$PTHREADINCPATH -I$dir"
  9874. else
  9875. { echo "configure: error: *** POSIX threads includes directory $dir does not exist." 1>&2; exit 1; }
  9876. fi
  9877. done
  9878. fi
  9879. ac_save_cppflags="$CPPFLAGS"
  9880. CPPFLAGS="$PTHREADINCPATH $CPPFLAGS"
  9881. for ac_hdr in pthread.h
  9882. do
  9883. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9884. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9885. echo "configure:12381: checking for $ac_hdr" >&5
  9886. cat > conftest.$ac_ext <<EOF
  9887. #line 12384 "configure"
  9888. #include "confdefs.h"
  9889. #include <$ac_hdr>
  9890. EOF
  9891. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9892. { (eval echo configure:12389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9893. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9894. if test -z "$ac_err"; then
  9895. rm -rf conftest*
  9896. eval "ac_cv_header_$ac_safe=yes"
  9897. else
  9898. echo "$ac_err" >&5
  9899. echo "configure: failed program was:" >&5
  9900. cat conftest.$ac_ext >&5
  9901. rm -rf conftest*
  9902. eval "ac_cv_header_$ac_safe=no"
  9903. fi
  9904. rm -f conftest*
  9905. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9906. echo "$ac_t""yes" 1>&6
  9907. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9908. cat >> confdefs.h <<EOF
  9909. #define $ac_tr_hdr 1
  9910. EOF
  9911. else
  9912. echo "$ac_t""no" 1>&6
  9913. { echo "configure: error: *** Unable to locate POSIX threads includes." 1>&2; exit 1; }
  9914. fi
  9915. done
  9916. CPPFLAGS=$ac_save_cppflags
  9917. # With pthread library directory
  9918. echo $ac_n "checking for location of POSIX threads library""... $ac_c" 1>&6
  9919. echo "configure:12423: checking for location of POSIX threads library" >&5
  9920. case "$with_pthread_libs" in
  9921. y | ye | yes | n | no)
  9922. { echo "configure: error: *** You must supply a directory to --with-pthread-libs." 1>&2; exit 1; }
  9923. ;;
  9924. esac
  9925. echo "$ac_t""$with_pthread_libs" 1>&6
  9926. if test -n "$with_pthread_libs"; then
  9927. for dir in $with_pthread_libs; do
  9928. if test -d "$dir"; then
  9929. PTHREADLIBPATH="$PTHREADLIBPATH -L$dir"
  9930. else
  9931. { echo "configure: error: *** POSIX threads library directory $dir does not exist." 1>&2; exit 1; }
  9932. fi
  9933. done
  9934. fi
  9935. ac_save_libs="$LIBS"
  9936. ac_save_ldflags="$LDFLAGS"
  9937. LIBS=" $LIBS"
  9938. LDFLAGS=" $LDFLAGS"
  9939. echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
  9940. echo "configure:12448: checking for pthread_create" >&5
  9941. cat > conftest.$ac_ext <<EOF
  9942. #line 12451 "configure"
  9943. #include "confdefs.h"
  9944. /* System header to define __stub macros and hopefully few prototypes,
  9945. which can conflict with char pthread_create(); below. */
  9946. #include <assert.h>
  9947. /* Override any gcc2 internal prototype to avoid an error. */
  9948. /* We use char because int might match the return type of a gcc2
  9949. builtin and then its argument prototype would still apply. */
  9950. char pthread_create();
  9951. int main() {
  9952. /* The GNU C library defines this for functions which it implements
  9953. to always fail with ENOSYS. Some functions are actually named
  9954. something starting with __ and the normal name is an alias. */
  9955. #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
  9956. choke me
  9957. #else
  9958. pthread_create();
  9959. #endif
  9960. ; return 0; }
  9961. EOF
  9962. if { (eval echo configure:12474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9963. rm -rf conftest*
  9964. eval "ac_cv_func_pthread_create=yes"
  9965. else
  9966. echo "configure: failed program was:" >&5
  9967. cat conftest.$ac_ext >&5
  9968. rm -rf conftest*
  9969. eval "ac_cv_func_pthread_create=no"
  9970. fi
  9971. rm -f conftest*
  9972. if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
  9973. echo "$ac_t""yes" 1>&6
  9974. PTHREADLIB="$PTHREADLIB "
  9975. else
  9976. echo "$ac_t""no" 1>&6
  9977. ac_save_ldflags="$LDFLAGS"
  9978. LDFLAGS="$PTHREADLIBPATH $LDFLAGS"
  9979. echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
  9980. echo "configure:12501: checking for pthread_create in -lpthread" >&5
  9981. ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
  9982. ac_save_LIBS="$LIBS"
  9983. LIBS="-lpthread $LIBS"
  9984. cat > conftest.$ac_ext <<EOF
  9985. #line 12507 "configure"
  9986. #include "confdefs.h"
  9987. /* Override any gcc2 internal prototype to avoid an error. */
  9988. /* We use char because int might match the return type of a gcc2
  9989. builtin and then its argument prototype would still apply. */
  9990. char pthread_create();
  9991. int main() {
  9992. pthread_create()
  9993. ; return 0; }
  9994. EOF
  9995. if { (eval echo configure:12518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9996. rm -rf conftest*
  9997. eval "ac_cv_lib_$ac_lib_var=yes"
  9998. else
  9999. echo "configure: failed program was:" >&5
  10000. cat conftest.$ac_ext >&5
  10001. rm -rf conftest*
  10002. eval "ac_cv_lib_$ac_lib_var=no"
  10003. fi
  10004. rm -f conftest*
  10005. LIBS="$ac_save_LIBS"
  10006. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10007. echo "$ac_t""yes" 1>&6
  10008. PTHREADLIB="$PTHREADLIB -lpthread "
  10009. else
  10010. echo "$ac_t""no" 1>&6
  10011. LDFLAGS=${ac_save_ldflags}
  10012. { echo "configure: error: *** Unable to locate POSIX threads library." 1>&2; exit 1; }
  10013. fi
  10014. LDFLAGS=${ac_save_ldflags}
  10015. fi
  10016. LIBS=${ac_save_libs}
  10017. LDFLAGS=${ac_save_ldflags}
  10018. fi # $USE_PTHREAD
  10019. # Done checking pthread
  10020. # Enable OpenMP option
  10021. echo $ac_n "checking whether to use OpenMP""... $ac_c" 1>&6
  10022. echo "configure:12568: checking whether to use OpenMP" >&5
  10023. echo "$ac_t"""$with_openmp"" 1>&6
  10024. case "$with_openmp" in
  10025. "no") USE_OPENMP= ;;
  10026. "yes") USE_OPENMP="1" ;;
  10027. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10028. esac
  10029. OMPINCPATH=
  10030. OMPLIBPATH=
  10031. OMPLIB=
  10032. OMPCFLAGS=
  10033. if test -n "$USE_OPENMP"; then
  10034. # With OpenMP includes directory
  10035. echo $ac_n "checking for location of OpenMP includes""... $ac_c" 1>&6
  10036. echo "configure:12589: checking for location of OpenMP includes" >&5
  10037. case "$with_openmp_includes" in
  10038. y | ye | yes | n | no)
  10039. { echo "configure: error: *** You must supply a directory to --with-openmp-includes." 1>&2; exit 1; }
  10040. ;;
  10041. esac
  10042. echo "$ac_t""$with_openmp_includes" 1>&6
  10043. if test -n "$with_openmp_includes" ; then
  10044. for dir in $with_openmp_includes; do
  10045. if test -d "$dir"; then
  10046. OMPINCPATH="$OMPINCPATH -I$dir"
  10047. else
  10048. { echo "configure: error: *** OpenMP includes directory $dir does not exist." 1>&2; exit 1; }
  10049. fi
  10050. done
  10051. fi
  10052. ac_save_cppflags="$CPPFLAGS"
  10053. CPPFLAGS="$OMPINCPATH $CPPFLAGS"
  10054. for ac_hdr in omp.h
  10055. do
  10056. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10057. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10058. echo "configure:12615: checking for $ac_hdr" >&5
  10059. cat > conftest.$ac_ext <<EOF
  10060. #line 12618 "configure"
  10061. #include "confdefs.h"
  10062. #include <$ac_hdr>
  10063. EOF
  10064. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10065. { (eval echo configure:12623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10066. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10067. if test -z "$ac_err"; then
  10068. rm -rf conftest*
  10069. eval "ac_cv_header_$ac_safe=yes"
  10070. else
  10071. echo "$ac_err" >&5
  10072. echo "configure: failed program was:" >&5
  10073. cat conftest.$ac_ext >&5
  10074. rm -rf conftest*
  10075. eval "ac_cv_header_$ac_safe=no"
  10076. fi
  10077. rm -f conftest*
  10078. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10079. echo "$ac_t""yes" 1>&6
  10080. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10081. cat >> confdefs.h <<EOF
  10082. #define $ac_tr_hdr 1
  10083. EOF
  10084. else
  10085. echo "$ac_t""no" 1>&6
  10086. { echo "configure: error: *** Unable to locate OpenMP includes." 1>&2; exit 1; }
  10087. fi
  10088. done
  10089. CPPFLAGS=$ac_save_cppflags
  10090. # With OpenMP library directory
  10091. # GCC et al.: -lgomp
  10092. # Solaris cc: -lmtsk
  10093. # AIX xlc: -lxlsmp
  10094. # SGI IRIX 6.5 MIPSpro C/C++: -lmp
  10095. echo $ac_n "checking for location of OpenMP library""... $ac_c" 1>&6
  10096. echo "configure:12661: checking for location of OpenMP library" >&5
  10097. case "$with_openmp_libs" in
  10098. y | ye | yes | n | no)
  10099. { echo "configure: error: *** You must supply a directory to --with-openmp-libs." 1>&2; exit 1; }
  10100. ;;
  10101. esac
  10102. echo "$ac_t""$with_openmp_libs" 1>&6
  10103. if test -n "$with_openmp_libs"; then
  10104. for dir in $with_openmp_libs; do
  10105. if test -d "$dir"; then
  10106. OMPLIBPATH="$OMPLIBPATH -L$dir"
  10107. else
  10108. { echo "configure: error: *** OpenMP library directory $dir does not exist." 1>&2; exit 1; }
  10109. fi
  10110. done
  10111. fi
  10112. ac_save_libs="$LIBS"
  10113. ac_save_ldflags="$LDFLAGS"
  10114. LIBS=" $LIBS"
  10115. LDFLAGS=" $LDFLAGS"
  10116. echo $ac_n "checking for GOMP_parallel_start""... $ac_c" 1>&6
  10117. echo "configure:12686: checking for GOMP_parallel_start" >&5
  10118. cat > conftest.$ac_ext <<EOF
  10119. #line 12689 "configure"
  10120. #include "confdefs.h"
  10121. /* System header to define __stub macros and hopefully few prototypes,
  10122. which can conflict with char GOMP_parallel_start(); below. */
  10123. #include <assert.h>
  10124. /* Override any gcc2 internal prototype to avoid an error. */
  10125. /* We use char because int might match the return type of a gcc2
  10126. builtin and then its argument prototype would still apply. */
  10127. char GOMP_parallel_start();
  10128. int main() {
  10129. /* The GNU C library defines this for functions which it implements
  10130. to always fail with ENOSYS. Some functions are actually named
  10131. something starting with __ and the normal name is an alias. */
  10132. #if defined (__stub_GOMP_parallel_start) || defined (__stub___GOMP_parallel_start)
  10133. choke me
  10134. #else
  10135. GOMP_parallel_start();
  10136. #endif
  10137. ; return 0; }
  10138. EOF
  10139. if { (eval echo configure:12712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10140. rm -rf conftest*
  10141. eval "ac_cv_func_GOMP_parallel_start=yes"
  10142. else
  10143. echo "configure: failed program was:" >&5
  10144. cat conftest.$ac_ext >&5
  10145. rm -rf conftest*
  10146. eval "ac_cv_func_GOMP_parallel_start=no"
  10147. fi
  10148. rm -f conftest*
  10149. if eval "test \"`echo '$ac_cv_func_'GOMP_parallel_start`\" = yes"; then
  10150. echo "$ac_t""yes" 1>&6
  10151. OMPLIB="$OMPLIB "
  10152. else
  10153. echo "$ac_t""no" 1>&6
  10154. ac_save_ldflags="$LDFLAGS"
  10155. LDFLAGS="$OMPLIBPATH $LDFLAGS"
  10156. echo $ac_n "checking for GOMP_parallel_start in -lgomp""... $ac_c" 1>&6
  10157. echo "configure:12739: checking for GOMP_parallel_start in -lgomp" >&5
  10158. ac_lib_var=`echo gomp'_'GOMP_parallel_start | sed 'y%./+-%__p_%'`
  10159. ac_save_LIBS="$LIBS"
  10160. LIBS="-lgomp $LIBS"
  10161. cat > conftest.$ac_ext <<EOF
  10162. #line 12745 "configure"
  10163. #include "confdefs.h"
  10164. /* Override any gcc2 internal prototype to avoid an error. */
  10165. /* We use char because int might match the return type of a gcc2
  10166. builtin and then its argument prototype would still apply. */
  10167. char GOMP_parallel_start();
  10168. int main() {
  10169. GOMP_parallel_start()
  10170. ; return 0; }
  10171. EOF
  10172. if { (eval echo configure:12756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10173. rm -rf conftest*
  10174. eval "ac_cv_lib_$ac_lib_var=yes"
  10175. else
  10176. echo "configure: failed program was:" >&5
  10177. cat conftest.$ac_ext >&5
  10178. rm -rf conftest*
  10179. eval "ac_cv_lib_$ac_lib_var=no"
  10180. fi
  10181. rm -f conftest*
  10182. LIBS="$ac_save_LIBS"
  10183. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10184. echo "$ac_t""yes" 1>&6
  10185. OMPLIB="$OMPLIB -lgomp "
  10186. else
  10187. echo "$ac_t""no" 1>&6
  10188. LDFLAGS=${ac_save_ldflags}
  10189. { echo "configure: error: *** Unable to locate OpenMP library." 1>&2; exit 1; }
  10190. fi
  10191. LDFLAGS=${ac_save_ldflags}
  10192. fi
  10193. LIBS=${ac_save_libs}
  10194. LDFLAGS=${ac_save_ldflags}
  10195. # compiler dependent
  10196. #if test ${CC} = "gcc" ; then
  10197. if test x$GCC = xyes ; then
  10198. # GNU C compiler (>= 4.2.1)
  10199. OMPCFLAGS=-fopenmp
  10200. elif test ${CC} = "icc" ; then
  10201. # Intel compiler
  10202. OMPCFLAGS=-openmp
  10203. elif test ${CC} = "opencc" ; then
  10204. # AMD's x86 Open64 compiler
  10205. OMPCFLAGS=-mp
  10206. elif test ${CC} = "pgcc" ; then
  10207. # Portland Group's compiler
  10208. OMPCFLAGS=-mp
  10209. # ... anybody else?
  10210. fi
  10211. # try to build a test program with "$CC $OMPCLFAGS" to confirm it works
  10212. #...how?
  10213. #echo "int main() {return 0;}" > test.c
  10214. #$CC $OMPCLFAGS test.c -o test
  10215. fi # $USE_OPENMP
  10216. # Done checking OpenMP
  10217. # Enable OpenCL option
  10218. echo $ac_n "checking whether to use OpenCL""... $ac_c" 1>&6
  10219. echo "configure:12829: checking whether to use OpenCL" >&5
  10220. echo "$ac_t"""$with_opencl"" 1>&6
  10221. case "$with_opencl" in
  10222. "no") USE_OPENCL= ;;
  10223. "yes") USE_OPENCL="1" ;;
  10224. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10225. esac
  10226. OCLINCPATH=
  10227. OCLLIBPATH=
  10228. OCLLIB=
  10229. if test -n "$USE_OPENCL"; then
  10230. # With OpenCL includes directory
  10231. echo $ac_n "checking for location of OpenCL includes""... $ac_c" 1>&6
  10232. echo "configure:12849: checking for location of OpenCL includes" >&5
  10233. case "$with_opencl_includes" in
  10234. y | ye | yes | n | no)
  10235. { echo "configure: error: *** You must supply a directory to --with-opencl-includes." 1>&2; exit 1; }
  10236. ;;
  10237. esac
  10238. echo "$ac_t""$with_opencl_includes" 1>&6
  10239. if test -n "$with_opencl_includes" ; then
  10240. for dir in $with_opencl_includes; do
  10241. if test -d "$dir"; then
  10242. OCLINCPATH="$OCLINCPATH -I$dir"
  10243. else
  10244. { echo "configure: error: *** OpenCL includes directory $dir does not exist." 1>&2; exit 1; }
  10245. fi
  10246. done
  10247. fi
  10248. if test -n "$MACOSX_APP" ; then
  10249. ac_save_cppflags="$CPPFLAGS"
  10250. CPPFLAGS="$OCLINCPATH $CPPFLAGS"
  10251. for ac_hdr in OpenCL/opencl.h
  10252. do
  10253. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10254. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10255. echo "configure:12876: checking for $ac_hdr" >&5
  10256. cat > conftest.$ac_ext <<EOF
  10257. #line 12879 "configure"
  10258. #include "confdefs.h"
  10259. #include <$ac_hdr>
  10260. EOF
  10261. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10262. { (eval echo configure:12884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10263. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10264. if test -z "$ac_err"; then
  10265. rm -rf conftest*
  10266. eval "ac_cv_header_$ac_safe=yes"
  10267. else
  10268. echo "$ac_err" >&5
  10269. echo "configure: failed program was:" >&5
  10270. cat conftest.$ac_ext >&5
  10271. rm -rf conftest*
  10272. eval "ac_cv_header_$ac_safe=no"
  10273. fi
  10274. rm -f conftest*
  10275. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10276. echo "$ac_t""yes" 1>&6
  10277. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10278. cat >> confdefs.h <<EOF
  10279. #define $ac_tr_hdr 1
  10280. EOF
  10281. else
  10282. echo "$ac_t""no" 1>&6
  10283. { echo "configure: error: *** Unable to locate OpenCL includes." 1>&2; exit 1; }
  10284. fi
  10285. done
  10286. CPPFLAGS=$ac_save_cppflags
  10287. # With OpenCL library directory
  10288. ### FIXME: ###
  10289. #LOC_CHECK_FRAMEWORK_PATH(opencl,OpenCL,OPENCLPATH)
  10290. # last term in following would become ',$OPENCLPATH)' if above is uncommented
  10291. ac_save_libs="$LIBS"
  10292. ac_save_ldflags="$LDFLAGS"
  10293. LIBS="-framework OpenCL $LIBS"
  10294. LDFLAGS=" $LDFLAGS"
  10295. echo $ac_n "checking for clGetPlatformInfo""... $ac_c" 1>&6
  10296. echo "configure:12924: checking for clGetPlatformInfo" >&5
  10297. cat > conftest.$ac_ext <<EOF
  10298. #line 12927 "configure"
  10299. #include "confdefs.h"
  10300. /* System header to define __stub macros and hopefully few prototypes,
  10301. which can conflict with char clGetPlatformInfo(); below. */
  10302. #include <assert.h>
  10303. /* Override any gcc2 internal prototype to avoid an error. */
  10304. /* We use char because int might match the return type of a gcc2
  10305. builtin and then its argument prototype would still apply. */
  10306. char clGetPlatformInfo();
  10307. int main() {
  10308. /* The GNU C library defines this for functions which it implements
  10309. to always fail with ENOSYS. Some functions are actually named
  10310. something starting with __ and the normal name is an alias. */
  10311. #if defined (__stub_clGetPlatformInfo) || defined (__stub___clGetPlatformInfo)
  10312. choke me
  10313. #else
  10314. clGetPlatformInfo();
  10315. #endif
  10316. ; return 0; }
  10317. EOF
  10318. if { (eval echo configure:12950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10319. rm -rf conftest*
  10320. eval "ac_cv_func_clGetPlatformInfo=yes"
  10321. else
  10322. echo "configure: failed program was:" >&5
  10323. cat conftest.$ac_ext >&5
  10324. rm -rf conftest*
  10325. eval "ac_cv_func_clGetPlatformInfo=no"
  10326. fi
  10327. rm -f conftest*
  10328. if eval "test \"`echo '$ac_cv_func_'clGetPlatformInfo`\" = yes"; then
  10329. echo "$ac_t""yes" 1>&6
  10330. OCLLIB="$OCLLIB -framework OpenCL"
  10331. else
  10332. echo "$ac_t""no" 1>&6
  10333. { echo "configure: error: *** Unable to locate OpenCL library." 1>&2; exit 1; }
  10334. fi
  10335. LIBS=${ac_save_libs}
  10336. LDFLAGS=${ac_save_ldflags}
  10337. else
  10338. ac_save_cppflags="$CPPFLAGS"
  10339. CPPFLAGS="$OCLINCPATH $CPPFLAGS"
  10340. for ac_hdr in CL/cl.h
  10341. do
  10342. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10343. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10344. echo "configure:12989: checking for $ac_hdr" >&5
  10345. cat > conftest.$ac_ext <<EOF
  10346. #line 12992 "configure"
  10347. #include "confdefs.h"
  10348. #include <$ac_hdr>
  10349. EOF
  10350. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10351. { (eval echo configure:12997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10352. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10353. if test -z "$ac_err"; then
  10354. rm -rf conftest*
  10355. eval "ac_cv_header_$ac_safe=yes"
  10356. else
  10357. echo "$ac_err" >&5
  10358. echo "configure: failed program was:" >&5
  10359. cat conftest.$ac_ext >&5
  10360. rm -rf conftest*
  10361. eval "ac_cv_header_$ac_safe=no"
  10362. fi
  10363. rm -f conftest*
  10364. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10365. echo "$ac_t""yes" 1>&6
  10366. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10367. cat >> confdefs.h <<EOF
  10368. #define $ac_tr_hdr 1
  10369. EOF
  10370. else
  10371. echo "$ac_t""no" 1>&6
  10372. { echo "configure: error: *** Unable to locate OpenCL includes." 1>&2; exit 1; }
  10373. fi
  10374. done
  10375. CPPFLAGS=$ac_save_cppflags
  10376. # With OpenCL library directory
  10377. echo $ac_n "checking for location of OpenCL library""... $ac_c" 1>&6
  10378. echo "configure:13030: checking for location of OpenCL library" >&5
  10379. case "$with_opencl_libs" in
  10380. y | ye | yes | n | no)
  10381. { echo "configure: error: *** You must supply a directory to --with-opencl-libs." 1>&2; exit 1; }
  10382. ;;
  10383. esac
  10384. echo "$ac_t""$with_opencl_libs" 1>&6
  10385. if test -n "$with_opencl_libs"; then
  10386. for dir in $with_opencl_libs; do
  10387. if test -d "$dir"; then
  10388. OCLLIBPATH="$OCLLIBPATH -L$dir"
  10389. else
  10390. { echo "configure: error: *** OpenCL library directory $dir does not exist." 1>&2; exit 1; }
  10391. fi
  10392. done
  10393. fi
  10394. ac_save_ldflags="$LDFLAGS"
  10395. LDFLAGS="$OCLLIBPATH $LDFLAGS"
  10396. echo $ac_n "checking for clGetPlatformInfo in -lOpenCL""... $ac_c" 1>&6
  10397. echo "configure:13054: checking for clGetPlatformInfo in -lOpenCL" >&5
  10398. ac_lib_var=`echo OpenCL'_'clGetPlatformInfo | sed 'y%./+-%__p_%'`
  10399. ac_save_LIBS="$LIBS"
  10400. LIBS="-lOpenCL $LIBS"
  10401. cat > conftest.$ac_ext <<EOF
  10402. #line 13060 "configure"
  10403. #include "confdefs.h"
  10404. /* Override any gcc2 internal prototype to avoid an error. */
  10405. /* We use char because int might match the return type of a gcc2
  10406. builtin and then its argument prototype would still apply. */
  10407. char clGetPlatformInfo();
  10408. int main() {
  10409. clGetPlatformInfo()
  10410. ; return 0; }
  10411. EOF
  10412. if { (eval echo configure:13071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10413. rm -rf conftest*
  10414. eval "ac_cv_lib_$ac_lib_var=yes"
  10415. else
  10416. echo "configure: failed program was:" >&5
  10417. cat conftest.$ac_ext >&5
  10418. rm -rf conftest*
  10419. eval "ac_cv_lib_$ac_lib_var=no"
  10420. fi
  10421. rm -f conftest*
  10422. LIBS="$ac_save_LIBS"
  10423. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10424. echo "$ac_t""yes" 1>&6
  10425. OCLLIB="$OCLLIB -lOpenCL "
  10426. else
  10427. echo "$ac_t""no" 1>&6
  10428. LDFLAGS=${ac_save_ldflags}
  10429. { echo "configure: error: *** Unable to locate OpenCL library." 1>&2; exit 1; }
  10430. fi
  10431. LDFLAGS=${ac_save_ldflags}
  10432. # expanded symbol check: yes? no?
  10433. #LOC_CHECK_FUNC(clGetPlatformInfo,OpenCL functions,OCLLIB,,,,,[
  10434. #LOC_CHECK_LIBS(OpenCL,clGetPlatformInfo,OpenCL,$OCLLIBPATH,OCLLIB,,,)
  10435. #])
  10436. fi
  10437. fi # $USE_OPENCL
  10438. # Done checking OpenCL
  10439. # Enable LFS (from cdr-tools, tar, and autoconf 2.68)
  10440. # Check whether --enable-largefile or --disable-largefile was given.
  10441. if test "${enable_largefile+set}" = set; then
  10442. enableval="$enable_largefile"
  10443. :
  10444. fi
  10445. LFS_CFLAGS=
  10446. if test "$enable_largefile" != no; then
  10447. ac_save_cflags=$CFLAGS
  10448. if test "`which getconf 2>&5`" ; then
  10449. LFS_CFLAGS=`getconf LFS_CFLAGS 2>&5`
  10450. CFLAGS="$LFS_CFLAGS $ac_save_cflags"
  10451. fi
  10452. echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
  10453. echo "configure:13131: checking for special C compiler options needed for large files" >&5
  10454. ac_cv_sys_largefile_CC=no
  10455. largefile_cc_opt=""
  10456. if test "$GCC" != yes; then
  10457. # IRIX 6.2 and later do not support large files by default,
  10458. # so use the C compiler's -n32 option if that helps.
  10459. cat > conftest.$ac_ext <<EOF
  10460. #line 13139 "configure"
  10461. #include "confdefs.h"
  10462. #include <sys/types.h>
  10463. /* Check that off_t can represent 2**63 - 1 correctly.
  10464. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10465. since some C++ compilers masquerading as C compilers
  10466. incorrectly reject 9223372036854775807. */
  10467. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10468. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10469. && LARGE_OFF_T % 2147483647 == 1)
  10470. ? 1 : -1];
  10471. int main() {
  10472. ; return 0; }
  10473. EOF
  10474. if { (eval echo configure:13155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10475. :
  10476. else
  10477. echo "configure: failed program was:" >&5
  10478. cat conftest.$ac_ext >&5
  10479. rm -rf conftest*
  10480. ac_save_CC="${CC-cc}"
  10481. CC="$CC -n32"
  10482. cat > conftest.$ac_ext <<EOF
  10483. #line 13164 "configure"
  10484. #include "confdefs.h"
  10485. #include <sys/types.h>
  10486. /* Check that off_t can represent 2**63 - 1 correctly.
  10487. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10488. since some C++ compilers masquerading as C compilers
  10489. incorrectly reject 9223372036854775807. */
  10490. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10491. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10492. && LARGE_OFF_T % 2147483647 == 1)
  10493. ? 1 : -1];
  10494. int main() {
  10495. ; return 0; }
  10496. EOF
  10497. if { (eval echo configure:13180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10498. rm -rf conftest*
  10499. ac_cv_sys_largefile_CC=' -n32'
  10500. else
  10501. echo "configure: failed program was:" >&5
  10502. cat conftest.$ac_ext >&5
  10503. fi
  10504. rm -f conftest*
  10505. CC="$ac_save_CC"
  10506. fi
  10507. rm -f conftest*
  10508. fi
  10509. echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6
  10510. if test "$ac_cv_sys_largefile_CC" != no; then
  10511. CC="$CC$ac_cv_sys_largefile_CC"
  10512. largefile_cc_opt="$ac_cv_sys_largefile_CC"
  10513. if test "$LFS_CFLAGS" ; then
  10514. LFS_CFLAGS="$LFS_CFLAGS $ac_cv_sys_largefile_CC"
  10515. else
  10516. LFS_CFLAGS="$ac_cv_sys_largefile_CC"
  10517. CFLAGS="$LFS_CFLAGS $ac_save_cflags"
  10518. fi
  10519. fi
  10520. echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
  10521. echo "configure:13207: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  10522. ac_cv_sys_file_offset_bits=no
  10523. cat > conftest.$ac_ext <<EOF
  10524. #line 13211 "configure"
  10525. #include "confdefs.h"
  10526. #include <sys/types.h>
  10527. /* Check that off_t can represent 2**63 - 1 correctly.
  10528. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10529. since some C++ compilers masquerading as C compilers
  10530. incorrectly reject 9223372036854775807. */
  10531. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10532. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10533. && LARGE_OFF_T % 2147483647 == 1)
  10534. ? 1 : -1];
  10535. int main() {
  10536. ; return 0; }
  10537. EOF
  10538. if { (eval echo configure:13227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10539. :
  10540. else
  10541. echo "configure: failed program was:" >&5
  10542. cat conftest.$ac_ext >&5
  10543. rm -rf conftest*
  10544. cat > conftest.$ac_ext <<EOF
  10545. #line 13234 "configure"
  10546. #include "confdefs.h"
  10547. #define _FILE_OFFSET_BITS 64
  10548. #include <sys/types.h>
  10549. /* Check that off_t can represent 2**63 - 1 correctly.
  10550. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10551. since some C++ compilers masquerading as C compilers
  10552. incorrectly reject 9223372036854775807. */
  10553. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10554. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10555. && LARGE_OFF_T % 2147483647 == 1)
  10556. ? 1 : -1];
  10557. int main() {
  10558. ; return 0; }
  10559. EOF
  10560. if { (eval echo configure:13252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10561. rm -rf conftest*
  10562. ac_cv_sys_file_offset_bits=64
  10563. else
  10564. echo "configure: failed program was:" >&5
  10565. cat conftest.$ac_ext >&5
  10566. fi
  10567. rm -f conftest*
  10568. fi
  10569. rm -f conftest*
  10570. echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
  10571. if test "$ac_cv_sys_file_offset_bits" != no; then
  10572. cat >> confdefs.h <<EOF
  10573. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  10574. EOF
  10575. if test "$LFS_CFLAGS" ; then
  10576. LFS_CFLAGS="$LFS_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
  10577. else
  10578. LFS_CFLAGS="-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
  10579. fi
  10580. fi
  10581. echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
  10582. echo "configure:13278: checking for _LARGE_FILES value needed for large files" >&5
  10583. ac_cv_sys_large_files=no
  10584. cat > conftest.$ac_ext <<EOF
  10585. #line 13282 "configure"
  10586. #include "confdefs.h"
  10587. #include <sys/types.h>
  10588. /* Check that off_t can represent 2**63 - 1 correctly.
  10589. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10590. since some C++ compilers masquerading as C compilers
  10591. incorrectly reject 9223372036854775807. */
  10592. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10593. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10594. && LARGE_OFF_T % 2147483647 == 1)
  10595. ? 1 : -1];
  10596. int main() {
  10597. ; return 0; }
  10598. EOF
  10599. if { (eval echo configure:13298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10600. :
  10601. else
  10602. echo "configure: failed program was:" >&5
  10603. cat conftest.$ac_ext >&5
  10604. rm -rf conftest*
  10605. cat > conftest.$ac_ext <<EOF
  10606. #line 13305 "configure"
  10607. #include "confdefs.h"
  10608. #define _LARGE_FILES 1
  10609. #include <sys/types.h>
  10610. /* Check that off_t can represent 2**63 - 1 correctly.
  10611. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10612. since some C++ compilers masquerading as C compilers
  10613. incorrectly reject 9223372036854775807. */
  10614. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10615. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10616. && LARGE_OFF_T % 2147483647 == 1)
  10617. ? 1 : -1];
  10618. int main() {
  10619. ; return 0; }
  10620. EOF
  10621. if { (eval echo configure:13323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10622. rm -rf conftest*
  10623. ac_cv_sys_large_files=1
  10624. else
  10625. echo "configure: failed program was:" >&5
  10626. cat conftest.$ac_ext >&5
  10627. fi
  10628. rm -f conftest*
  10629. fi
  10630. rm -f conftest*
  10631. echo "$ac_t""$ac_cv_sys_large_files" 1>&6
  10632. if test "$ac_cv_sys_large_files" != no; then
  10633. cat >> confdefs.h <<EOF
  10634. #define _LARGE_FILES $ac_cv_sys_large_files
  10635. EOF
  10636. if test "$LFS_CFLAGS" ; then
  10637. LFS_CFLAGS="$LFS_CFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files"
  10638. else
  10639. LFS_CFLAGS="-D_LARGE_FILES=$ac_cv_sys_large_files"
  10640. fi
  10641. fi
  10642. echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
  10643. echo "configure:13349: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  10644. ac_cv_sys_largefile_source=no
  10645. cat > conftest.$ac_ext <<EOF
  10646. #line 13353 "configure"
  10647. #include "confdefs.h"
  10648. #include <stdio.h>
  10649. int main() {
  10650. return !fseeko;
  10651. ; return 0; }
  10652. EOF
  10653. if { (eval echo configure:13360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10654. :
  10655. else
  10656. echo "configure: failed program was:" >&5
  10657. cat conftest.$ac_ext >&5
  10658. rm -rf conftest*
  10659. cat > conftest.$ac_ext <<EOF
  10660. #line 13367 "configure"
  10661. #include "confdefs.h"
  10662. #define _LARGEFILE_SOURCE 1
  10663. #include <stdio.h>
  10664. int main() {
  10665. return !fseeko;
  10666. ; return 0; }
  10667. EOF
  10668. if { (eval echo configure:13376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10669. rm -rf conftest*
  10670. ac_cv_sys_largefile_source=1
  10671. else
  10672. echo "configure: failed program was:" >&5
  10673. cat conftest.$ac_ext >&5
  10674. fi
  10675. rm -f conftest*
  10676. fi
  10677. rm -f conftest*
  10678. echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
  10679. if test "$ac_cv_sys_largefile_source" != no; then
  10680. cat >> confdefs.h <<EOF
  10681. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  10682. EOF
  10683. if test "$LFS_CFLAGS" ; then
  10684. LFS_CFLAGS="$LFS_CFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
  10685. else
  10686. LFS_CFLAGS="-D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
  10687. fi
  10688. fi
  10689. CFLAGS=$ac_save_cflags
  10690. fi
  10691. ac_save_cflags=${CFLAGS}
  10692. CFLAGS="$LFS_CFLAGS ${ac_save_cflags}"
  10693. echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
  10694. echo "configure:13408: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  10695. ac_cv_sys_largefile_source=no
  10696. cat > conftest.$ac_ext <<EOF
  10697. #line 13412 "configure"
  10698. #include "confdefs.h"
  10699. #include <stdio.h>
  10700. int main() {
  10701. return !fseeko;
  10702. ; return 0; }
  10703. EOF
  10704. if { (eval echo configure:13419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10705. :
  10706. else
  10707. echo "configure: failed program was:" >&5
  10708. cat conftest.$ac_ext >&5
  10709. rm -rf conftest*
  10710. cat > conftest.$ac_ext <<EOF
  10711. #line 13426 "configure"
  10712. #include "confdefs.h"
  10713. #define _LARGEFILE_SOURCE 1
  10714. #include <stdio.h>
  10715. int main() {
  10716. return !fseeko;
  10717. ; return 0; }
  10718. EOF
  10719. if { (eval echo configure:13435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10720. rm -rf conftest*
  10721. ac_cv_sys_largefile_source=1
  10722. else
  10723. echo "configure: failed program was:" >&5
  10724. cat conftest.$ac_ext >&5
  10725. fi
  10726. rm -f conftest*
  10727. fi
  10728. rm -f conftest*
  10729. echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
  10730. if test "$ac_cv_sys_largefile_source" != no; then
  10731. cat >> confdefs.h <<EOF
  10732. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  10733. EOF
  10734. if test "$LFS_CFLAGS" ; then
  10735. LFS_CFLAGS="$LFS_CFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
  10736. else
  10737. LFS_CFLAGS="-D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
  10738. fi
  10739. fi
  10740. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  10741. # in glibc 2.1.3, but that breaks too many other things.
  10742. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  10743. echo $ac_n "checking for fseeko""... $ac_c" 1>&6
  10744. echo "configure:13465: checking for fseeko" >&5
  10745. ac_cv_func_fseeko=no
  10746. cat > conftest.$ac_ext <<EOF
  10747. #line 13469 "configure"
  10748. #include "confdefs.h"
  10749. #include <stdio.h>
  10750. int main() {
  10751. return fseeko && fseeko (stdin, 0, 0);
  10752. ; return 0; }
  10753. EOF
  10754. if { (eval echo configure:13476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10755. rm -rf conftest*
  10756. ac_cv_func_fseeko=yes
  10757. else
  10758. echo "configure: failed program was:" >&5
  10759. cat conftest.$ac_ext >&5
  10760. fi
  10761. rm -f conftest*
  10762. echo "$ac_t""$ac_cv_func_fseeko" 1>&6
  10763. if test $ac_cv_func_fseeko != no; then
  10764. cat >> confdefs.h <<\EOF
  10765. #define HAVE_FSEEKO 1
  10766. EOF
  10767. fi
  10768. echo $ac_n "checking if system supports Large Files at all""... $ac_c" 1>&6
  10769. echo "configure:13493: checking if system supports Large Files at all" >&5
  10770. cat > conftest.$ac_ext <<EOF
  10771. #line 13496 "configure"
  10772. #include "confdefs.h"
  10773. #include <stdio.h>
  10774. #include <sys/types.h>
  10775. int main() {
  10776. /*
  10777. * Check that off_t can represent 2**63 - 1 correctly.
  10778. * We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10779. * since some C++ compilers masquerading as C compilers
  10780. * incorrectly reject 9223372036854775807.
  10781. *
  10782. * For MinGW, off64_t should be used and __MSVCRT_VERSION__ >= 0x0601
  10783. * (msvcrt.dll version 6.10 or higher) is needed for _fstat64 and _stat64.
  10784. */
  10785. #ifdef __MINGW32__
  10786. # define LARGE_OFF_T (((off64_t) 1 << 62) - 1 + ((off64_t) 1 << 62))
  10787. #else
  10788. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10789. #endif
  10790. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10791. && LARGE_OFF_T % 2147483647 == 1)
  10792. ? 1 : -1];
  10793. #ifdef __MINGW32__
  10794. return !fseeko64;
  10795. return !ftello64;
  10796. #else
  10797. return !fseeko;
  10798. return !ftello;
  10799. #endif
  10800. ; return 0; }
  10801. EOF
  10802. if { (eval echo configure:13528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10803. rm -rf conftest*
  10804. ac_cv_largefiles=yes
  10805. else
  10806. echo "configure: failed program was:" >&5
  10807. cat conftest.$ac_ext >&5
  10808. rm -rf conftest*
  10809. ac_cv_largefiles=no
  10810. fi
  10811. rm -f conftest*
  10812. echo "$ac_t""$ac_cv_largefiles" 1>&6
  10813. if test $ac_cv_largefiles = yes; then
  10814. cat >> confdefs.h <<\EOF
  10815. #define HAVE_LARGEFILES 1
  10816. EOF
  10817. USE_LARGEFILES=1
  10818. else
  10819. USE_LARGEFILES=
  10820. LFS_CFLAGS=
  10821. fi
  10822. CFLAGS=${ac_save_cflags}
  10823. # Done large file support
  10824. USE_TERMIO=
  10825. STRIPFLAG=
  10826. GRASS_HOME="${DSTDIR}"
  10827. trap '' 1 2 15
  10828. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  10829. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10830. # Let make expand exec_prefix.
  10831. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10832. # Any assignment to VPATH causes Sun make to only execute
  10833. # the first set of double-colon rules, so remove it if not needed.
  10834. # If there is a colon in the path, we need to keep it.
  10835. if test "x$srcdir" = x.; then
  10836. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  10837. fi
  10838. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  10839. DEFS=-DHAVE_CONFIG_H
  10840. # Without the "./", some shells look in PATH for config.status.
  10841. : ${CONFIG_STATUS=./config.status}
  10842. echo creating $CONFIG_STATUS
  10843. rm -f $CONFIG_STATUS
  10844. cat > $CONFIG_STATUS <<EOF
  10845. #! /bin/sh
  10846. # Generated automatically by configure.
  10847. # Run this file to recreate the current configuration.
  10848. # This directory was configured as follows,
  10849. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  10850. #
  10851. # $0 $ac_configure_args
  10852. #
  10853. # Compiler output produced by configure, useful for debugging
  10854. # configure, is in ./config.log if it exists.
  10855. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  10856. for ac_option
  10857. do
  10858. case "\$ac_option" in
  10859. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10860. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  10861. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  10862. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  10863. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  10864. exit 0 ;;
  10865. -help | --help | --hel | --he | --h)
  10866. echo "\$ac_cs_usage"; exit 0 ;;
  10867. *) echo "\$ac_cs_usage"; exit 1 ;;
  10868. esac
  10869. done
  10870. ac_given_srcdir=$srcdir
  10871. ac_given_INSTALL="$INSTALL"
  10872. 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
  10873. EOF
  10874. cat >> $CONFIG_STATUS <<EOF
  10875. # Protect against being on the right side of a sed subst in config.status.
  10876. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  10877. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  10878. $ac_vpsub
  10879. $extrasub
  10880. s%@SHELL@%$SHELL%g
  10881. s%@CFLAGS@%$CFLAGS%g
  10882. s%@CPPFLAGS@%$CPPFLAGS%g
  10883. s%@CXXFLAGS@%$CXXFLAGS%g
  10884. s%@FFLAGS@%$FFLAGS%g
  10885. s%@DEFS@%$DEFS%g
  10886. s%@LDFLAGS@%$LDFLAGS%g
  10887. s%@LIBS@%$LIBS%g
  10888. s%@exec_prefix@%$exec_prefix%g
  10889. s%@prefix@%$prefix%g
  10890. s%@program_transform_name@%$program_transform_name%g
  10891. s%@bindir@%$bindir%g
  10892. s%@sbindir@%$sbindir%g
  10893. s%@libexecdir@%$libexecdir%g
  10894. s%@datadir@%$datadir%g
  10895. s%@sysconfdir@%$sysconfdir%g
  10896. s%@sharedstatedir@%$sharedstatedir%g
  10897. s%@localstatedir@%$localstatedir%g
  10898. s%@libdir@%$libdir%g
  10899. s%@includedir@%$includedir%g
  10900. s%@oldincludedir@%$oldincludedir%g
  10901. s%@infodir@%$infodir%g
  10902. s%@mandir@%$mandir%g
  10903. s%@host@%$host%g
  10904. s%@host_alias@%$host_alias%g
  10905. s%@host_cpu@%$host_cpu%g
  10906. s%@host_vendor@%$host_vendor%g
  10907. s%@host_os@%$host_os%g
  10908. s%@CC@%$CC%g
  10909. s%@EXEEXT@%$EXEEXT%g
  10910. s%@MINGW32@%$MINGW32%g
  10911. s%@BINDIR@%$BINDIR%g
  10912. s%@pwd@%$pwd%g
  10913. s%@SRCDIR@%$SRCDIR%g
  10914. s%@DSTDIR@%$DSTDIR%g
  10915. s%@ARCH@%$ARCH%g
  10916. s%@GISBASE@%$GISBASE%g
  10917. s%@GRASS_BIN@%$GRASS_BIN%g
  10918. s%@GIT@%$GIT%g
  10919. s%@GRASS_VERSION_FILE@%$GRASS_VERSION_FILE%g
  10920. s%@GRASS_VERSION_MAJOR@%$GRASS_VERSION_MAJOR%g
  10921. s%@GRASS_VERSION_MINOR@%$GRASS_VERSION_MINOR%g
  10922. s%@GRASS_VERSION_RELEASE@%$GRASS_VERSION_RELEASE%g
  10923. s%@GRASS_VERSION_NUMBER@%$GRASS_VERSION_NUMBER%g
  10924. s%@GRASS_VERSION_DATE@%$GRASS_VERSION_DATE%g
  10925. s%@GRASS_VERSION_GIT@%$GRASS_VERSION_GIT%g
  10926. s%@NAME_VER@%$NAME_VER%g
  10927. s%@LIB_VER@%$LIB_VER%g
  10928. s%@MACOSX_APP@%$MACOSX_APP%g
  10929. s%@MACOSX_ARCHS@%$MACOSX_ARCHS%g
  10930. s%@MACOSX_SDK@%$MACOSX_SDK%g
  10931. s%@INSTDIR@%$INSTDIR%g
  10932. s%@GRASS_LIBRARY_TYPE@%$GRASS_LIBRARY_TYPE%g
  10933. s%@LD_SEARCH_FLAGS@%$LD_SEARCH_FLAGS%g
  10934. s%@LD_LIBRARY_PATH_VAR@%$LD_LIBRARY_PATH_VAR%g
  10935. s%@SHLIB_LD@%$SHLIB_LD%g
  10936. s%@SHLIB_LD_FLAGS@%$SHLIB_LD_FLAGS%g
  10937. s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
  10938. s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
  10939. s%@STLIB_LD@%$STLIB_LD%g
  10940. s%@STLIB_SUFFIX@%$STLIB_SUFFIX%g
  10941. s%@INCLUDE_DIRS@%$INCLUDE_DIRS%g
  10942. s%@LIBRARY_DIRS@%$LIBRARY_DIRS%g
  10943. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  10944. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  10945. s%@INSTALL_DATA@%$INSTALL_DATA%g
  10946. s%@LEX@%$LEX%g
  10947. s%@LEXLIB@%$LEXLIB%g
  10948. s%@LEXPATH@%$LEXPATH%g
  10949. s%@YACC@%$YACC%g
  10950. s%@YACCPATH@%$YACCPATH%g
  10951. s%@RANLIB@%$RANLIB%g
  10952. s%@AR@%$AR%g
  10953. s%@ENV@%$ENV%g
  10954. s%@PERL@%$PERL%g
  10955. s%@CPP@%$CPP%g
  10956. s%@CROSS_COMPILING@%$CROSS_COMPILING%g
  10957. s%@X_CFLAGS@%$X_CFLAGS%g
  10958. s%@X_LIBS@%$X_LIBS%g
  10959. s%@X_PRE_LIBS@%$X_PRE_LIBS%g
  10960. s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  10961. s%@XLIB@%$XLIB%g
  10962. s%@XTLIB@%$XTLIB%g
  10963. s%@USE_X11@%$USE_X11%g
  10964. s%@DBMIEXTRALIB@%$DBMIEXTRALIB%g
  10965. s%@HAVE_ASPRINTF@%$HAVE_ASPRINTF%g
  10966. s%@MATHLIB@%$MATHLIB%g
  10967. s%@DLLIB@%$DLLIB%g
  10968. s%@ICONVLIB@%$ICONVLIB%g
  10969. s%@SOCKLIB@%$SOCKLIB%g
  10970. s%@HAVE_SOCKET@%$HAVE_SOCKET%g
  10971. s%@ZLIBINCPATH@%$ZLIBINCPATH%g
  10972. s%@ZLIBLIBPATH@%$ZLIBLIBPATH%g
  10973. s%@ZLIB@%$ZLIB%g
  10974. s%@BZLIBINCPATH@%$BZLIBINCPATH%g
  10975. s%@BZLIBLIBPATH@%$BZLIBLIBPATH%g
  10976. s%@BZLIB@%$BZLIB%g
  10977. s%@PROJINC@%$PROJINC%g
  10978. s%@PROJLIB@%$PROJLIB%g
  10979. s%@PROJSHARE@%$PROJSHARE%g
  10980. s%@REGEXINCPATH@%$REGEXINCPATH%g
  10981. s%@REGEXLIBPATH@%$REGEXLIBPATH%g
  10982. s%@REGEXLIB@%$REGEXLIB%g
  10983. s%@USE_REGEX@%$USE_REGEX%g
  10984. s%@READLINEINCPATH@%$READLINEINCPATH%g
  10985. s%@READLINELIBPATH@%$READLINELIBPATH%g
  10986. s%@READLINELIB@%$READLINELIB%g
  10987. s%@HISTORYLIB@%$HISTORYLIB%g
  10988. s%@GDAL_CONFIG@%$GDAL_CONFIG%g
  10989. s%@GDAL_LIBS@%$GDAL_LIBS%g
  10990. s%@GDAL_CFLAGS@%$GDAL_CFLAGS%g
  10991. s%@USE_GDAL@%$USE_GDAL%g
  10992. s%@USE_OGR@%$USE_OGR%g
  10993. s%@LIBLAS_CONFIG@%$LIBLAS_CONFIG%g
  10994. s%@LIBLAS_LIBS@%$LIBLAS_LIBS%g
  10995. s%@LIBLAS_CFLAGS@%$LIBLAS_CFLAGS%g
  10996. s%@LIBLAS_INC@%$LIBLAS_INC%g
  10997. s%@USE_LIBLAS@%$USE_LIBLAS%g
  10998. s%@PDAL_CONFIG@%$PDAL_CONFIG%g
  10999. s%@PDAL_LIBS@%$PDAL_LIBS%g
  11000. s%@PDAL_CPPFLAGS@%$PDAL_CPPFLAGS%g
  11001. s%@PDAL_INC@%$PDAL_INC%g
  11002. s%@USE_PDAL@%$USE_PDAL%g
  11003. s%@NETCDF_CONFIG@%$NETCDF_CONFIG%g
  11004. s%@NETCDF_LIBS@%$NETCDF_LIBS%g
  11005. s%@NETCDF_CFLAGS@%$NETCDF_CFLAGS%g
  11006. s%@USE_NETCDF@%$USE_NETCDF%g
  11007. s%@GEOS_CONFIG@%$GEOS_CONFIG%g
  11008. s%@GEOS_LIBS@%$GEOS_LIBS%g
  11009. s%@GEOS_CFLAGS@%$GEOS_CFLAGS%g
  11010. s%@USE_GEOS@%$USE_GEOS%g
  11011. s%@TIFF_INCLUDE_DIRS@%$TIFF_INCLUDE_DIRS%g
  11012. s%@TIFF_LIBRARY_DIRS@%$TIFF_LIBRARY_DIRS%g
  11013. s%@TIFFLIB@%$TIFFLIB%g
  11014. s%@PNGINC@%$PNGINC%g
  11015. s%@PNGLIB@%$PNGLIB%g
  11016. s%@USE_PNG@%$USE_PNG%g
  11017. s%@USE_POSTGRES@%$USE_POSTGRES%g
  11018. s%@PQINCPATH@%$PQINCPATH%g
  11019. s%@PQLIBPATH@%$PQLIBPATH%g
  11020. s%@PQLIB@%$PQLIB%g
  11021. s%@MYSQLD_CONFIG@%$MYSQLD_CONFIG%g
  11022. s%@USE_MYSQL@%$USE_MYSQL%g
  11023. s%@MYSQLINCPATH@%$MYSQLINCPATH%g
  11024. s%@MYSQLLIBPATH@%$MYSQLLIBPATH%g
  11025. s%@MYSQLLIB@%$MYSQLLIB%g
  11026. s%@MYSQLDLIB@%$MYSQLDLIB%g
  11027. s%@USE_SQLITE@%$USE_SQLITE%g
  11028. s%@SQLITEINCPATH@%$SQLITEINCPATH%g
  11029. s%@SQLITELIBPATH@%$SQLITELIBPATH%g
  11030. s%@SQLITELIB@%$SQLITELIB%g
  11031. s%@USE_OPENGL@%$USE_OPENGL%g
  11032. s%@OPENGL_X11@%$OPENGL_X11%g
  11033. s%@OPENGL_AQUA@%$OPENGL_AQUA%g
  11034. s%@OPENGL_WINDOWS@%$OPENGL_WINDOWS%g
  11035. s%@OPENGLINC@%$OPENGLINC%g
  11036. s%@OPENGLLIB@%$OPENGLLIB%g
  11037. s%@OPENGLULIB@%$OPENGLULIB%g
  11038. s%@ODBCINC@%$ODBCINC%g
  11039. s%@ODBCLIB@%$ODBCLIB%g
  11040. s%@FFTWINC@%$FFTWINC%g
  11041. s%@FFTWLIB@%$FFTWLIB%g
  11042. s%@BLASLIB@%$BLASLIB%g
  11043. s%@BLASINC@%$BLASINC%g
  11044. s%@LAPACKLIB@%$LAPACKLIB%g
  11045. s%@LAPACKINC@%$LAPACKINC%g
  11046. s%@CAIRO_HAS_XRENDER@%$CAIRO_HAS_XRENDER%g
  11047. s%@CAIRO_HAS_XRENDER_SURFACE@%$CAIRO_HAS_XRENDER_SURFACE%g
  11048. s%@CAIROINC@%$CAIROINC%g
  11049. s%@CAIROLIB@%$CAIROLIB%g
  11050. s%@USE_CAIRO@%$USE_CAIRO%g
  11051. s%@FTINC@%$FTINC%g
  11052. s%@FTLIB@%$FTLIB%g
  11053. s%@INTLLIB@%$INTLLIB%g
  11054. s%@HAVE_NLS@%$HAVE_NLS%g
  11055. s%@CXX@%$CXX%g
  11056. s%@OPENDWGINCPATH@%$OPENDWGINCPATH%g
  11057. s%@OPENDWGLIBPATH@%$OPENDWGLIBPATH%g
  11058. s%@OPENDWGLIB@%$OPENDWGLIB%g
  11059. s%@USE_OPENDWG@%$USE_OPENDWG%g
  11060. s%@PTHREADINCPATH@%$PTHREADINCPATH%g
  11061. s%@PTHREADLIBPATH@%$PTHREADLIBPATH%g
  11062. s%@PTHREADLIB@%$PTHREADLIB%g
  11063. s%@USE_PTHREAD@%$USE_PTHREAD%g
  11064. s%@OMPINCPATH@%$OMPINCPATH%g
  11065. s%@OMPLIBPATH@%$OMPLIBPATH%g
  11066. s%@OMPLIB@%$OMPLIB%g
  11067. s%@OMPCFLAGS@%$OMPCFLAGS%g
  11068. s%@USE_OPENMP@%$USE_OPENMP%g
  11069. s%@OCLINCPATH@%$OCLINCPATH%g
  11070. s%@OCLLIBPATH@%$OCLLIBPATH%g
  11071. s%@OCLLIB@%$OCLLIB%g
  11072. s%@USE_OPENCL@%$USE_OPENCL%g
  11073. s%@USE_LARGEFILES@%$USE_LARGEFILES%g
  11074. s%@LFS_CFLAGS@%$LFS_CFLAGS%g
  11075. s%@USE_TERMIO@%$USE_TERMIO%g
  11076. s%@STRIPFLAG@%$STRIPFLAG%g
  11077. s%@GRASS_HOME@%$GRASS_HOME%g
  11078. CEOF
  11079. EOF
  11080. cat >> $CONFIG_STATUS <<\EOF
  11081. # Split the substitutions into bite-sized pieces for seds with
  11082. # small command number limits, like on Digital OSF/1 and HP-UX.
  11083. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  11084. ac_file=1 # Number of current file.
  11085. ac_beg=1 # First line for current file.
  11086. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  11087. ac_more_lines=:
  11088. ac_sed_cmds=""
  11089. while $ac_more_lines; do
  11090. if test $ac_beg -gt 1; then
  11091. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  11092. else
  11093. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  11094. fi
  11095. if test ! -s conftest.s$ac_file; then
  11096. ac_more_lines=false
  11097. rm -f conftest.s$ac_file
  11098. else
  11099. if test -z "$ac_sed_cmds"; then
  11100. ac_sed_cmds="sed -f conftest.s$ac_file"
  11101. else
  11102. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  11103. fi
  11104. ac_file=`expr $ac_file + 1`
  11105. ac_beg=$ac_end
  11106. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  11107. fi
  11108. done
  11109. if test -z "$ac_sed_cmds"; then
  11110. ac_sed_cmds=cat
  11111. fi
  11112. EOF
  11113. cat >> $CONFIG_STATUS <<EOF
  11114. CONFIG_FILES=\${CONFIG_FILES-"include/Make/Platform.make include/Make/Doxyfile_arch_html include/Make/Doxyfile_arch_latex include/version.h grass.pc"}
  11115. EOF
  11116. cat >> $CONFIG_STATUS <<\EOF
  11117. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  11118. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11119. case "$ac_file" in
  11120. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  11121. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11122. *) ac_file_in="${ac_file}.in" ;;
  11123. esac
  11124. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  11125. # Remove last slash and all that follows it. Not all systems have dirname.
  11126. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  11127. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  11128. # The file is in a subdirectory.
  11129. test ! -d "$ac_dir" && mkdir "$ac_dir"
  11130. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  11131. # A "../" for each directory in $ac_dir_suffix.
  11132. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  11133. else
  11134. ac_dir_suffix= ac_dots=
  11135. fi
  11136. case "$ac_given_srcdir" in
  11137. .) srcdir=.
  11138. if test -z "$ac_dots"; then top_srcdir=.
  11139. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  11140. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  11141. *) # Relative path.
  11142. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  11143. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  11144. esac
  11145. case "$ac_given_INSTALL" in
  11146. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  11147. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  11148. esac
  11149. echo creating "$ac_file"
  11150. rm -f "$ac_file"
  11151. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  11152. case "$ac_file" in
  11153. *Makefile*) ac_comsub="1i\\
  11154. # $configure_input" ;;
  11155. *) ac_comsub= ;;
  11156. esac
  11157. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  11158. sed -e "$ac_comsub
  11159. s%@configure_input@%$configure_input%g
  11160. s%@srcdir@%$srcdir%g
  11161. s%@top_srcdir@%$top_srcdir%g
  11162. s%@INSTALL@%$INSTALL%g
  11163. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  11164. fi; done
  11165. rm -f conftest.s*
  11166. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11167. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11168. #
  11169. # ac_d sets the value in "#define NAME VALUE" lines.
  11170. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11171. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  11172. ac_dC='\3'
  11173. ac_dD='%g'
  11174. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  11175. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11176. ac_uB='\([ ]\)%\1#\2define\3'
  11177. ac_uC=' '
  11178. ac_uD='\4%g'
  11179. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11180. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11181. ac_eB='$%\1#\2define\3'
  11182. ac_eC=' '
  11183. ac_eD='%g'
  11184. if test "${CONFIG_HEADERS+set}" != set; then
  11185. EOF
  11186. cat >> $CONFIG_STATUS <<EOF
  11187. CONFIG_HEADERS="include/config.h"
  11188. EOF
  11189. cat >> $CONFIG_STATUS <<\EOF
  11190. fi
  11191. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  11192. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11193. case "$ac_file" in
  11194. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  11195. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11196. *) ac_file_in="${ac_file}.in" ;;
  11197. esac
  11198. echo creating $ac_file
  11199. rm -f conftest.frag conftest.in conftest.out
  11200. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  11201. cat $ac_file_inputs > conftest.in
  11202. EOF
  11203. # Transform confdefs.h into a sed script conftest.vals that substitutes
  11204. # the proper values into config.h.in to produce config.h. And first:
  11205. # Protect against being on the right side of a sed subst in config.status.
  11206. # Protect against being in an unquoted here document in config.status.
  11207. rm -f conftest.vals
  11208. cat > conftest.hdr <<\EOF
  11209. s/[\\&%]/\\&/g
  11210. s%[\\$`]%\\&%g
  11211. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  11212. s%ac_d%ac_u%gp
  11213. s%ac_u%ac_e%gp
  11214. EOF
  11215. sed -n -f conftest.hdr confdefs.h > conftest.vals
  11216. rm -f conftest.hdr
  11217. # This sed command replaces #undef with comments. This is necessary, for
  11218. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11219. # on some systems where configure will not decide to define it.
  11220. cat >> conftest.vals <<\EOF
  11221. s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  11222. EOF
  11223. # Break up conftest.vals because some shells have a limit on
  11224. # the size of here documents, and old seds have small limits too.
  11225. rm -f conftest.tail
  11226. while :
  11227. do
  11228. ac_lines=`grep -c . conftest.vals`
  11229. # grep -c gives empty output for an empty file on some AIX systems.
  11230. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  11231. # Write a limited-size here document to conftest.frag.
  11232. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  11233. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  11234. echo 'CEOF
  11235. sed -f conftest.frag conftest.in > conftest.out
  11236. rm -f conftest.in
  11237. mv conftest.out conftest.in
  11238. ' >> $CONFIG_STATUS
  11239. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  11240. rm -f conftest.vals
  11241. mv conftest.tail conftest.vals
  11242. done
  11243. rm -f conftest.vals
  11244. cat >> $CONFIG_STATUS <<\EOF
  11245. rm -f conftest.frag conftest.h
  11246. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  11247. cat conftest.in >> conftest.h
  11248. rm -f conftest.in
  11249. if cmp -s $ac_file conftest.h 2>/dev/null; then
  11250. echo "$ac_file is unchanged"
  11251. rm -f conftest.h
  11252. else
  11253. # Remove last slash and all that follows it. Not all systems have dirname.
  11254. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  11255. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  11256. # The file is in a subdirectory.
  11257. test ! -d "$ac_dir" && mkdir "$ac_dir"
  11258. fi
  11259. rm -f $ac_file
  11260. mv conftest.h $ac_file
  11261. fi
  11262. fi; done
  11263. EOF
  11264. cat >> $CONFIG_STATUS <<EOF
  11265. EOF
  11266. cat >> $CONFIG_STATUS <<\EOF
  11267. exit 0
  11268. EOF
  11269. chmod +x $CONFIG_STATUS
  11270. rm -fr confdefs* $ac_clean_files
  11271. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  11272. echo "Copying config.status to config.status.${ARCH}"
  11273. cp -f config.status config.status.${ARCH}
  11274. # Display configuration status
  11275. echo ""
  11276. echo "GRASS is now configured for: ${host}"
  11277. echo ""
  11278. echo " Source directory: ${SRCDIR}"
  11279. echo " Build directory: ${DSTDIR}"
  11280. echo " Installation directory: ${INSTDIR}"
  11281. echo " Startup script in directory:${bindir}"
  11282. echo " C compiler: ${CC} ${CFLAGS}"
  11283. echo " C++ compiler: ${CXX} ${CXXFLAGS}"
  11284. echo " Building shared libraries: ${shared_ok}"
  11285. echo " OpenGL platform: ${OPENGL_TYPE}"
  11286. echo ""
  11287. echo " MacOSX application: `if test -n "${MACOSX_APP}" ; then echo yes ; else echo no ; fi`"
  11288. echo " MacOSX architectures: ${MACOSX_ARCHS}"
  11289. echo " MacOSX SDK: ${MACOSX_SDK}"
  11290. echo ""
  11291. echo " BLAS support: `if test -n "${USE_BLAS}" ; then echo yes ; else echo no ; fi`"
  11292. echo " BZIP2 support: `if test -n "${USE_BZIP2}" ; then echo yes ; else echo no ; fi`"
  11293. echo " C++ support: `if test -n "${USE_CXX}" ; then echo yes ; else echo no ; fi`"
  11294. echo " Cairo support: `if test -n "${USE_CAIRO}" ; then echo yes ; else echo no ; fi`"
  11295. echo " DWG support: `if test -n "${USE_OPENDWG}" ; then echo yes ; else echo no ; fi`"
  11296. echo " FFTW support: `if test -n "${USE_FFTW}" ; then echo yes ; else echo no ; fi`"
  11297. echo " FreeType support: `if test -n "${USE_FREETYPE}" ; then echo yes ; else echo no ; fi`"
  11298. echo " GDAL support: `if test -n "${USE_GDAL}" ; then echo yes ; else echo no ; fi`"
  11299. echo " GEOS support: `if test -n "${USE_GEOS}" ; then echo yes ; else echo no ; fi`"
  11300. echo " LAPACK support: `if test -n "${USE_LAPACK}" ; then echo yes ; else echo no ; fi`"
  11301. echo " Large File support (LFS): `if test -n "${USE_LARGEFILES}" ; then echo yes ; else echo no ; fi`"
  11302. echo " libLAS support: `if test -n "${USE_LIBLAS}" ; then echo yes ; else echo no ; fi`"
  11303. echo " MySQL support: `if test -n "${USE_MYSQL}" ; then echo yes ; else echo no ; fi`"
  11304. echo " NetCDF support: `if test -n "${USE_NETCDF}" ; then echo yes ; else echo no ; fi`"
  11305. echo " NLS support: `if test -n "${USE_NLS}" ; then echo yes ; else echo no ; fi`"
  11306. echo " ODBC support: `if test -n "${USE_ODBC}" ; then echo yes ; else echo no ; fi`"
  11307. echo " OGR support: `if test -n "${USE_OGR}" ; then echo yes ; else echo no ; fi`"
  11308. echo " OpenCL support: `if test -n "${USE_OPENCL}" ; then echo yes ; else echo no ; fi`"
  11309. echo " OpenGL support: `if test -n "${USE_OPENGL}" ; then echo yes ; else echo no ; fi`"
  11310. echo " OpenMP support: `if test -n "${USE_OPENMP}" ; then echo yes ; else echo no ; fi`"
  11311. echo " PDAL support: `if test -n "${USE_PDAL}" ; then echo yes ; else echo no ; fi`"
  11312. echo " PNG support: `if test -n "${USE_PNG}" ; then echo yes ; else echo no ; fi`"
  11313. echo " POSIX thread support: `if test -n "${USE_PTHREAD}" ; then echo yes ; else echo no ; fi`"
  11314. echo " PostgreSQL support: `if test -n "${USE_POSTGRES}" ; then echo yes ; else echo no ; fi`"
  11315. echo " Readline support: `if test -n "${USE_READLINE}" ; then echo yes ; else echo no ; fi`"
  11316. echo " Regex support: `if test -n "${USE_REGEX}" ; then echo yes ; else echo no ; fi`"
  11317. echo " SQLite support: `if test -n "${USE_SQLITE}" ; then echo yes ; else echo no ; fi`"
  11318. echo " TIFF support: `if test -n "${USE_TIFF}" ; then echo yes ; else echo no ; fi`"
  11319. echo " X11 support: `if test -n "${USE_X11}" ; then echo yes ; else echo no ; fi`"
  11320. echo ""