configure 363 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174
  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: no)"
  39. ac_help="$ac_help
  40. --with-ffmpeg support FFMPEG functionality (default: no)"
  41. ac_help="$ac_help
  42. --with-opengl support OpenGL functionality (default: yes)"
  43. ac_help="$ac_help
  44. --with-odbc support ODBC functionality (default: no)"
  45. ac_help="$ac_help
  46. --with-fftw support FFTW functionality (default: yes)"
  47. ac_help="$ac_help
  48. --with-blas support BLAS functionality (default: no)"
  49. ac_help="$ac_help
  50. --with-lapack support LAPACK functionality (default: no)"
  51. ac_help="$ac_help
  52. --with-cairo support Cairo functionality (default: yes)"
  53. ac_help="$ac_help
  54. --with-freetype support FreeType functionality (default: yes)"
  55. ac_help="$ac_help
  56. --with-nls support NLS functionality (default: no)"
  57. ac_help="$ac_help
  58. --with-readline support Readline functionality (default: no)"
  59. ac_help="$ac_help
  60. --with-opendwg support openDWG functionality (default: no)"
  61. ac_help="$ac_help
  62. --with-regex support regex functionality (default: yes)"
  63. ac_help="$ac_help
  64. --with-pthread support POSIX threads functionality (default: no)"
  65. ac_help="$ac_help
  66. --with-openmp support OpenMP functionality (default: no)"
  67. ac_help="$ac_help
  68. --with-gdal[=path/gdal-config]
  69. enable GDAL/OGR support (gdal-config with path,
  70. e.g. '--with-gdal=/usr/local/bin/gdal-config')"
  71. ac_help="$ac_help
  72. --with-liblas[=path/liblas-config]
  73. enable libLAS support (liblas-config with path,
  74. e.g. '--with-liblas=/usr/local/bin/liblas-config',
  75. default: no)"
  76. ac_help="$ac_help
  77. --with-wxwidgets[=path/wx-config]
  78. enable wxWidgets support (wx-config with path,
  79. e.g. '--with-wxwidgets=/usr/local/bin/wx-config',
  80. default: no)"
  81. ac_help="$ac_help
  82. --with-netcdf[=path/nc-config]
  83. enable NetCDF support (nc-config with path,
  84. e.g. '--with-nc=/usr/local/bin/nc-config',
  85. default: no)"
  86. ac_help="$ac_help
  87. --with-geos[=path/geos-config]
  88. enable GEOS support (geos-config with path,
  89. e.g. '--with-geos=/usr/local/bin/geos-config',
  90. default: no)"
  91. ac_help="$ac_help
  92. --with-includes=DIRS site include files are in DIRS"
  93. ac_help="$ac_help
  94. --with-libs=DIRS site library files are in DIRS"
  95. ac_help="$ac_help
  96. --with-zlib-includes=DIRS
  97. zlib include files are in DIRS"
  98. ac_help="$ac_help
  99. --with-zlib-libs=DIRS zlib library files are in DIRS"
  100. ac_help="$ac_help
  101. --with-readline-includes=DIRS
  102. Readline include files are in DIRS"
  103. ac_help="$ac_help
  104. --with-readline-libs=DIRS
  105. Readline library files are in DIRS"
  106. ac_help="$ac_help
  107. --with-tiff-includes=DIRS
  108. TIFF include files are in DIRS"
  109. ac_help="$ac_help
  110. --with-tiff-libs=DIRS TIFF library files are in DIRS"
  111. ac_help="$ac_help
  112. --with-png-includes=DIRS
  113. PNG include files are in DIRS"
  114. ac_help="$ac_help
  115. --with-png-libs=DIRS PNG library files are in DIRS"
  116. ac_help="$ac_help
  117. --with-postgres-includes=DIRS
  118. PostgreSQL include files are in DIRS"
  119. ac_help="$ac_help
  120. --with-postgres-libs=DIRS
  121. PostgreSQL library files are in DIRS"
  122. ac_help="$ac_help
  123. --with-mysql-includes=DIRS
  124. MySQL include files are in DIRS"
  125. ac_help="$ac_help
  126. --with-mysql-libs=DIRS MySQL library files are in DIRS"
  127. ac_help="$ac_help
  128. --with-sqlite-includes=DIRS
  129. SQLite include files are in DIRS"
  130. ac_help="$ac_help
  131. --with-sqlite-libs=DIRS SQLite library files are in DIRS"
  132. ac_help="$ac_help
  133. --with-ffmpeg-includes=DIRS
  134. FFMPEG include files are in DIRS"
  135. ac_help="$ac_help
  136. --with-ffmpeg-libs=DIRS FFMPEG library files are in DIRS"
  137. ac_help="$ac_help
  138. --with-opengl-includes=DIRS
  139. OpenGL include files are in DIRS"
  140. ac_help="$ac_help
  141. --with-opengl-libs=DIRS OpenGL library files are in DIRS"
  142. ac_help="$ac_help
  143. --with-opengl-framework=DIR
  144. OpenGL framework is in DIR"
  145. ac_help="$ac_help
  146. --with-odbc-includes=DIRS
  147. ODBC include files are in DIRS"
  148. ac_help="$ac_help
  149. --with-odbc-libs=DIRS ODBC library files are in DIRS"
  150. ac_help="$ac_help
  151. --with-fftw-includes=DIRS
  152. FFTW include files are in DIRS"
  153. ac_help="$ac_help
  154. --with-fftw-libs=DIRS FFTW library files are in DIRS"
  155. ac_help="$ac_help
  156. --with-blas-includes=DIRS
  157. BLAS include files are in DIRS"
  158. ac_help="$ac_help
  159. --with-blas-libs=DIRS BLAS library files are in DIRS"
  160. ac_help="$ac_help
  161. --with-lapack-includes=DIRS
  162. LAPACK include files are in DIRS"
  163. ac_help="$ac_help
  164. --with-lapack-libs=DIRS LAPACK library files are in DIRS"
  165. ac_help="$ac_help
  166. --with-cairo-includes=DIRS
  167. cairo include files are in DIRS"
  168. ac_help="$ac_help
  169. --with-cairo-libs=DIRS cairo library files are in DIRS"
  170. ac_help="$ac_help
  171. --with-cairo-ldflags=FLAGS
  172. cairo needs FLAGS when linking"
  173. ac_help="$ac_help
  174. --with-freetype-includes=DIRS
  175. FreeType include files are in DIRS"
  176. ac_help="$ac_help
  177. --with-freetype-libs=DIRS
  178. FreeType library files are in DIRS"
  179. ac_help="$ac_help
  180. --with-proj-includes=DIRS
  181. External PROJ.4 include files are in DIRS"
  182. ac_help="$ac_help
  183. --with-proj-libs=DIRS External PROJ.4 library files are in DIRS"
  184. ac_help="$ac_help
  185. --with-proj-share=DIR External PROJ.4 data files are in DIR"
  186. ac_help="$ac_help
  187. --with-opendwg-includes=DIRS
  188. openDWG include files are in DIRS"
  189. ac_help="$ac_help
  190. --with-opendwg-libs=DIRS
  191. openDWG library files are in DIRS"
  192. ac_help="$ac_help
  193. --with-regex-includes=DIRS
  194. regex include files are in DIRS"
  195. ac_help="$ac_help
  196. --with-regex-libs=DIRS regex library files are in DIRS"
  197. ac_help="$ac_help
  198. --with-pthread-includes=DIRS
  199. POSIX threads include files are in DIRS"
  200. ac_help="$ac_help
  201. --with-pthread-libs=DIRS
  202. POSIX threads library files are in DIRS"
  203. ac_help="$ac_help
  204. --with-openmp-includes=DIRS
  205. OpenMP include files are in DIRS"
  206. ac_help="$ac_help
  207. --with-openmp-libs=DIRS OpenMP library files are in DIRS"
  208. ac_help="$ac_help
  209. --with-x use the X Window System"
  210. ac_help="$ac_help
  211. --enable-largefile enable support for large files (LFS)"
  212. # Initialize some variables set by options.
  213. # The variables have the same names as the options, with
  214. # dashes changed to underlines.
  215. build=NONE
  216. cache_file=./config.cache
  217. exec_prefix=NONE
  218. host=NONE
  219. no_create=
  220. nonopt=NONE
  221. no_recursion=
  222. prefix=NONE
  223. program_prefix=NONE
  224. program_suffix=NONE
  225. program_transform_name=s,x,x,
  226. silent=
  227. site=
  228. srcdir=
  229. target=NONE
  230. verbose=
  231. x_includes=NONE
  232. x_libraries=NONE
  233. bindir='${exec_prefix}/bin'
  234. sbindir='${exec_prefix}/sbin'
  235. libexecdir='${exec_prefix}/libexec'
  236. datadir='${prefix}/share'
  237. sysconfdir='${prefix}/etc'
  238. sharedstatedir='${prefix}/com'
  239. localstatedir='${prefix}/var'
  240. libdir='${exec_prefix}/lib'
  241. includedir='${prefix}/include'
  242. oldincludedir='/usr/include'
  243. infodir='${prefix}/info'
  244. mandir='${prefix}/man'
  245. # Initialize some other variables.
  246. subdirs=
  247. MFLAGS= MAKEFLAGS=
  248. SHELL=${CONFIG_SHELL-/bin/sh}
  249. # Maximum number of lines to put in a shell here document.
  250. ac_max_here_lines=12
  251. ac_prev=
  252. for ac_option
  253. do
  254. # If the previous option needs an argument, assign it.
  255. if test -n "$ac_prev"; then
  256. eval "$ac_prev=\$ac_option"
  257. ac_prev=
  258. continue
  259. fi
  260. case "$ac_option" in
  261. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  262. *) ac_optarg= ;;
  263. esac
  264. # Accept the important Cygnus configure options, so we can diagnose typos.
  265. case "$ac_option" in
  266. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  267. ac_prev=bindir ;;
  268. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  269. bindir="$ac_optarg" ;;
  270. -build | --build | --buil | --bui | --bu)
  271. ac_prev=build ;;
  272. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  273. build="$ac_optarg" ;;
  274. -cache-file | --cache-file | --cache-fil | --cache-fi \
  275. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  276. ac_prev=cache_file ;;
  277. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  278. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  279. cache_file="$ac_optarg" ;;
  280. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  281. ac_prev=datadir ;;
  282. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  283. | --da=*)
  284. datadir="$ac_optarg" ;;
  285. -disable-* | --disable-*)
  286. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  287. # Reject names that are not valid shell variable names.
  288. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  289. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  290. fi
  291. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  292. eval "enable_${ac_feature}=no" ;;
  293. -enable-* | --enable-*)
  294. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  295. # Reject names that are not valid shell variable names.
  296. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  297. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  298. fi
  299. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  300. case "$ac_option" in
  301. *=*) ;;
  302. *) ac_optarg=yes ;;
  303. esac
  304. eval "enable_${ac_feature}='$ac_optarg'" ;;
  305. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  306. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  307. | --exec | --exe | --ex)
  308. ac_prev=exec_prefix ;;
  309. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  310. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  311. | --exec=* | --exe=* | --ex=*)
  312. exec_prefix="$ac_optarg" ;;
  313. -gas | --gas | --ga | --g)
  314. # Obsolete; use --with-gas.
  315. with_gas=yes ;;
  316. -help | --help | --hel | --he)
  317. # Omit some internal or obsolete options to make the list less imposing.
  318. # This message is too long to be a string in the A/UX 3.1 sh.
  319. cat << EOF
  320. Usage: configure [options] [host]
  321. Options: [defaults in brackets after descriptions]
  322. Configuration:
  323. --cache-file=FILE cache test results in FILE
  324. --help print this message
  325. --no-create do not create output files
  326. --quiet, --silent do not print \`checking...' messages
  327. --version print the version of autoconf that created configure
  328. Directory and file names:
  329. --prefix=PREFIX install architecture-independent files in PREFIX
  330. [$ac_default_prefix]
  331. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  332. [same as prefix]
  333. --bindir=DIR user executables in DIR [EPREFIX/bin]
  334. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  335. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  336. --datadir=DIR read-only architecture-independent data in DIR
  337. [PREFIX/share]
  338. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  339. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  340. [PREFIX/com]
  341. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  342. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  343. --includedir=DIR C header files in DIR [PREFIX/include]
  344. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  345. --infodir=DIR info documentation in DIR [PREFIX/info]
  346. --mandir=DIR man documentation in DIR [PREFIX/man]
  347. --srcdir=DIR find the sources in DIR [configure dir or ..]
  348. --program-prefix=PREFIX prepend PREFIX to installed program names
  349. --program-suffix=SUFFIX append SUFFIX to installed program names
  350. --program-transform-name=PROGRAM
  351. run sed PROGRAM on installed program names
  352. EOF
  353. cat << EOF
  354. Host type:
  355. --build=BUILD configure for building on BUILD [BUILD=HOST]
  356. --host=HOST configure for HOST [guessed]
  357. --target=TARGET configure for TARGET [TARGET=HOST]
  358. Features and packages:
  359. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  360. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  361. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  362. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  363. --x-includes=DIR X include files are in DIR
  364. --x-libraries=DIR X library files are in DIR
  365. EOF
  366. if test -n "$ac_help"; then
  367. echo "--enable and --with options recognized:$ac_help"
  368. fi
  369. exit 0 ;;
  370. -host | --host | --hos | --ho)
  371. ac_prev=host ;;
  372. -host=* | --host=* | --hos=* | --ho=*)
  373. host="$ac_optarg" ;;
  374. -includedir | --includedir | --includedi | --included | --include \
  375. | --includ | --inclu | --incl | --inc)
  376. ac_prev=includedir ;;
  377. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  378. | --includ=* | --inclu=* | --incl=* | --inc=*)
  379. includedir="$ac_optarg" ;;
  380. -infodir | --infodir | --infodi | --infod | --info | --inf)
  381. ac_prev=infodir ;;
  382. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  383. infodir="$ac_optarg" ;;
  384. -libdir | --libdir | --libdi | --libd)
  385. ac_prev=libdir ;;
  386. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  387. libdir="$ac_optarg" ;;
  388. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  389. | --libexe | --libex | --libe)
  390. ac_prev=libexecdir ;;
  391. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  392. | --libexe=* | --libex=* | --libe=*)
  393. libexecdir="$ac_optarg" ;;
  394. -localstatedir | --localstatedir | --localstatedi | --localstated \
  395. | --localstate | --localstat | --localsta | --localst \
  396. | --locals | --local | --loca | --loc | --lo)
  397. ac_prev=localstatedir ;;
  398. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  399. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  400. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  401. localstatedir="$ac_optarg" ;;
  402. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  403. ac_prev=mandir ;;
  404. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  405. mandir="$ac_optarg" ;;
  406. -nfp | --nfp | --nf)
  407. # Obsolete; use --without-fp.
  408. with_fp=no ;;
  409. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  410. | --no-cr | --no-c)
  411. no_create=yes ;;
  412. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  413. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  414. no_recursion=yes ;;
  415. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  416. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  417. | --oldin | --oldi | --old | --ol | --o)
  418. ac_prev=oldincludedir ;;
  419. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  420. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  421. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  422. oldincludedir="$ac_optarg" ;;
  423. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  424. ac_prev=prefix ;;
  425. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  426. prefix="$ac_optarg" ;;
  427. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  428. | --program-pre | --program-pr | --program-p)
  429. ac_prev=program_prefix ;;
  430. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  431. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  432. program_prefix="$ac_optarg" ;;
  433. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  434. | --program-suf | --program-su | --program-s)
  435. ac_prev=program_suffix ;;
  436. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  437. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  438. program_suffix="$ac_optarg" ;;
  439. -program-transform-name | --program-transform-name \
  440. | --program-transform-nam | --program-transform-na \
  441. | --program-transform-n | --program-transform- \
  442. | --program-transform | --program-transfor \
  443. | --program-transfo | --program-transf \
  444. | --program-trans | --program-tran \
  445. | --progr-tra | --program-tr | --program-t)
  446. ac_prev=program_transform_name ;;
  447. -program-transform-name=* | --program-transform-name=* \
  448. | --program-transform-nam=* | --program-transform-na=* \
  449. | --program-transform-n=* | --program-transform-=* \
  450. | --program-transform=* | --program-transfor=* \
  451. | --program-transfo=* | --program-transf=* \
  452. | --program-trans=* | --program-tran=* \
  453. | --progr-tra=* | --program-tr=* | --program-t=*)
  454. program_transform_name="$ac_optarg" ;;
  455. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  456. | -silent | --silent | --silen | --sile | --sil)
  457. silent=yes ;;
  458. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  459. ac_prev=sbindir ;;
  460. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  461. | --sbi=* | --sb=*)
  462. sbindir="$ac_optarg" ;;
  463. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  464. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  465. | --sharedst | --shareds | --shared | --share | --shar \
  466. | --sha | --sh)
  467. ac_prev=sharedstatedir ;;
  468. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  469. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  470. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  471. | --sha=* | --sh=*)
  472. sharedstatedir="$ac_optarg" ;;
  473. -site | --site | --sit)
  474. ac_prev=site ;;
  475. -site=* | --site=* | --sit=*)
  476. site="$ac_optarg" ;;
  477. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  478. ac_prev=srcdir ;;
  479. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  480. srcdir="$ac_optarg" ;;
  481. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  482. | --syscon | --sysco | --sysc | --sys | --sy)
  483. ac_prev=sysconfdir ;;
  484. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  485. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  486. sysconfdir="$ac_optarg" ;;
  487. -target | --target | --targe | --targ | --tar | --ta | --t)
  488. ac_prev=target ;;
  489. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  490. target="$ac_optarg" ;;
  491. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  492. verbose=yes ;;
  493. -version | --version | --versio | --versi | --vers)
  494. echo "configure generated by autoconf version 2.13"
  495. exit 0 ;;
  496. -with-* | --with-*)
  497. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  498. # Reject names that are not valid shell variable names.
  499. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  500. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  501. fi
  502. ac_package=`echo $ac_package| sed 's/-/_/g'`
  503. case "$ac_option" in
  504. *=*) ;;
  505. *) ac_optarg=yes ;;
  506. esac
  507. eval "with_${ac_package}='$ac_optarg'" ;;
  508. -without-* | --without-*)
  509. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  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. eval "with_${ac_package}=no" ;;
  516. --x)
  517. # Obsolete; use --with-x.
  518. with_x=yes ;;
  519. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  520. | --x-incl | --x-inc | --x-in | --x-i)
  521. ac_prev=x_includes ;;
  522. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  523. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  524. x_includes="$ac_optarg" ;;
  525. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  526. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  527. ac_prev=x_libraries ;;
  528. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  529. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  530. x_libraries="$ac_optarg" ;;
  531. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  532. ;;
  533. *)
  534. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  535. echo "configure: warning: $ac_option: invalid host type" 1>&2
  536. fi
  537. if test "x$nonopt" != xNONE; then
  538. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  539. fi
  540. nonopt="$ac_option"
  541. ;;
  542. esac
  543. done
  544. if test -n "$ac_prev"; then
  545. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  546. fi
  547. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  548. # File descriptor usage:
  549. # 0 standard input
  550. # 1 file creation
  551. # 2 errors and warnings
  552. # 3 some systems may open it to /dev/tty
  553. # 4 used on the Kubota Titan
  554. # 6 checking for... messages and results
  555. # 5 compiler messages saved in config.log
  556. if test "$silent" = yes; then
  557. exec 6>/dev/null
  558. else
  559. exec 6>&1
  560. fi
  561. exec 5>./config.log
  562. echo "\
  563. This file contains any messages produced by compilers while
  564. running configure, to aid debugging if configure makes a mistake.
  565. " 1>&5
  566. # Strip out --no-create and --no-recursion so they do not pile up.
  567. # Also quote any args containing shell metacharacters.
  568. ac_configure_args=
  569. for ac_arg
  570. do
  571. case "$ac_arg" in
  572. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  573. | --no-cr | --no-c) ;;
  574. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  575. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  576. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  577. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  578. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  579. esac
  580. done
  581. # NLS nuisances.
  582. # Only set these to C if already set. These must not be set unconditionally
  583. # because not all systems understand e.g. LANG=C (notably SCO).
  584. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  585. # Non-C LC_CTYPE values break the ctype check.
  586. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  587. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  588. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  589. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  590. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  591. rm -rf conftest* confdefs.h
  592. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  593. echo > confdefs.h
  594. # A filename unique to this package, relative to the directory that
  595. # configure is in, which we can look for to find out if srcdir is correct.
  596. ac_unique_file=configure.in
  597. # Find the source files, if location was not specified.
  598. if test -z "$srcdir"; then
  599. ac_srcdir_defaulted=yes
  600. # Try the directory containing this script, then its parent.
  601. ac_prog=$0
  602. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  603. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  604. srcdir=$ac_confdir
  605. if test ! -r $srcdir/$ac_unique_file; then
  606. srcdir=..
  607. fi
  608. else
  609. ac_srcdir_defaulted=no
  610. fi
  611. if test ! -r $srcdir/$ac_unique_file; then
  612. if test "$ac_srcdir_defaulted" = yes; then
  613. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  614. else
  615. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  616. fi
  617. fi
  618. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  619. # Prefer explicitly selected file to automatically selected ones.
  620. if test -z "$CONFIG_SITE"; then
  621. if test "x$prefix" != xNONE; then
  622. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  623. else
  624. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  625. fi
  626. fi
  627. for ac_site_file in $CONFIG_SITE; do
  628. if test -r "$ac_site_file"; then
  629. echo "loading site script $ac_site_file"
  630. . "$ac_site_file"
  631. fi
  632. done
  633. ac_ext=c
  634. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  635. ac_cpp='$CPP $CPPFLAGS'
  636. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  637. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  638. cross_compiling=$ac_cv_prog_cc_cross
  639. ac_exeext=
  640. ac_objext=o
  641. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  642. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  643. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  644. ac_n= ac_c='
  645. ' ac_t=' '
  646. else
  647. ac_n=-n ac_c= ac_t=
  648. fi
  649. else
  650. ac_n= ac_c='\c' ac_t=
  651. fi
  652. ac_aux_dir=
  653. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  654. if test -f $ac_dir/install-sh; then
  655. ac_aux_dir=$ac_dir
  656. ac_install_sh="$ac_aux_dir/install-sh -c"
  657. break
  658. elif test -f $ac_dir/install.sh; then
  659. ac_aux_dir=$ac_dir
  660. ac_install_sh="$ac_aux_dir/install.sh -c"
  661. break
  662. fi
  663. done
  664. if test -z "$ac_aux_dir"; then
  665. { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  666. fi
  667. ac_config_guess=$ac_aux_dir/config.guess
  668. ac_config_sub=$ac_aux_dir/config.sub
  669. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  670. # Make sure we can run config.sub.
  671. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  672. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  673. fi
  674. echo $ac_n "checking host system type""... $ac_c" 1>&6
  675. echo "configure:747: checking host system type" >&5
  676. host_alias=$host
  677. case "$host_alias" in
  678. NONE)
  679. case $nonopt in
  680. NONE)
  681. if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  682. else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  683. fi ;;
  684. *) host_alias=$nonopt ;;
  685. esac ;;
  686. esac
  687. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  688. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  689. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  690. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  691. echo "$ac_t""$host" 1>&6
  692. # Extract the first word of "gcc", so it can be a program name with args.
  693. set dummy gcc; ac_word=$2
  694. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  695. echo "configure:770: checking for $ac_word" >&5
  696. if test -n "$CC"; then
  697. ac_cv_prog_CC="$CC" # Let the user override the test.
  698. else
  699. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  700. ac_dummy="$PATH"
  701. for ac_dir in $ac_dummy; do
  702. test -z "$ac_dir" && ac_dir=.
  703. if test -f $ac_dir/$ac_word; then
  704. ac_cv_prog_CC="gcc"
  705. break
  706. fi
  707. done
  708. IFS="$ac_save_ifs"
  709. fi
  710. CC="$ac_cv_prog_CC"
  711. if test -n "$CC"; then
  712. echo "$ac_t""$CC" 1>&6
  713. else
  714. echo "$ac_t""no" 1>&6
  715. fi
  716. if test -z "$CC"; then
  717. # Extract the first word of "cc", so it can be a program name with args.
  718. set dummy cc; ac_word=$2
  719. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  720. echo "configure:797: checking for $ac_word" >&5
  721. if test -n "$CC"; then
  722. ac_cv_prog_CC="$CC" # Let the user override the test.
  723. else
  724. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  725. ac_prog_rejected=no
  726. ac_dummy="$PATH"
  727. for ac_dir in $ac_dummy; do
  728. test -z "$ac_dir" && ac_dir=.
  729. if test -f $ac_dir/$ac_word; then
  730. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  731. ac_prog_rejected=yes
  732. continue
  733. fi
  734. ac_cv_prog_CC="cc"
  735. break
  736. fi
  737. done
  738. IFS="$ac_save_ifs"
  739. if test $ac_prog_rejected = yes; then
  740. # We found a bogon in the path, so make sure we never use it.
  741. set dummy $ac_cv_prog_CC
  742. shift
  743. if test $# -gt 0; then
  744. # We chose a different compiler from the bogus one.
  745. # However, it has the same basename, so the bogon will be chosen
  746. # first if we set CC to just the basename; use the full file name.
  747. shift
  748. set dummy "$ac_dir/$ac_word" "$@"
  749. shift
  750. ac_cv_prog_CC="$@"
  751. fi
  752. fi
  753. fi
  754. CC="$ac_cv_prog_CC"
  755. if test -n "$CC"; then
  756. echo "$ac_t""$CC" 1>&6
  757. else
  758. echo "$ac_t""no" 1>&6
  759. fi
  760. if test -z "$CC"; then
  761. case "`uname -s`" in
  762. *win32* | *WIN32*)
  763. # Extract the first word of "cl", so it can be a program name with args.
  764. set dummy cl; ac_word=$2
  765. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  766. echo "configure:845: checking for $ac_word" >&5
  767. if test -n "$CC"; then
  768. ac_cv_prog_CC="$CC" # Let the user override the test.
  769. else
  770. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  771. ac_dummy="$PATH"
  772. for ac_dir in $ac_dummy; do
  773. test -z "$ac_dir" && ac_dir=.
  774. if test -f $ac_dir/$ac_word; then
  775. ac_cv_prog_CC="cl"
  776. break
  777. fi
  778. done
  779. IFS="$ac_save_ifs"
  780. fi
  781. CC="$ac_cv_prog_CC"
  782. if test -n "$CC"; then
  783. echo "$ac_t""$CC" 1>&6
  784. else
  785. echo "$ac_t""no" 1>&6
  786. fi
  787. ;;
  788. esac
  789. fi
  790. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  791. fi
  792. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  793. echo "configure:874: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  794. ac_ext=c
  795. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  796. ac_cpp='$CPP $CPPFLAGS'
  797. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  798. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  799. cross_compiling=$ac_cv_prog_cc_cross
  800. cat > conftest.$ac_ext << EOF
  801. #line 885 "configure"
  802. #include "confdefs.h"
  803. main(){return(0);}
  804. EOF
  805. if { (eval echo configure:890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  806. ac_cv_prog_cc_works=yes
  807. # If we can't run a trivial program, we are probably using a cross compiler.
  808. if (./conftest; exit) 2>/dev/null; then
  809. ac_cv_prog_cc_cross=no
  810. else
  811. ac_cv_prog_cc_cross=yes
  812. fi
  813. else
  814. echo "configure: failed program was:" >&5
  815. cat conftest.$ac_ext >&5
  816. ac_cv_prog_cc_works=no
  817. fi
  818. rm -fr conftest*
  819. ac_ext=c
  820. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  821. ac_cpp='$CPP $CPPFLAGS'
  822. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  823. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  824. cross_compiling=$ac_cv_prog_cc_cross
  825. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  826. if test $ac_cv_prog_cc_works = no; then
  827. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  828. fi
  829. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  830. echo "configure:916: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  831. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  832. cross_compiling=$ac_cv_prog_cc_cross
  833. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  834. echo "configure:921: checking whether we are using GNU C" >&5
  835. cat > conftest.c <<EOF
  836. #ifdef __GNUC__
  837. yes;
  838. #endif
  839. EOF
  840. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  841. ac_cv_prog_gcc=yes
  842. else
  843. ac_cv_prog_gcc=no
  844. fi
  845. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  846. if test $ac_cv_prog_gcc = yes; then
  847. GCC=yes
  848. else
  849. GCC=
  850. fi
  851. ac_test_CFLAGS="${CFLAGS+set}"
  852. ac_save_CFLAGS="$CFLAGS"
  853. CFLAGS=
  854. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  855. echo "configure:946: checking whether ${CC-cc} accepts -g" >&5
  856. echo 'void f(){}' > conftest.c
  857. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  858. ac_cv_prog_cc_g=yes
  859. else
  860. ac_cv_prog_cc_g=no
  861. fi
  862. rm -f conftest*
  863. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  864. if test "$ac_test_CFLAGS" = set; then
  865. CFLAGS="$ac_save_CFLAGS"
  866. elif test $ac_cv_prog_cc_g = yes; then
  867. if test "$GCC" = yes; then
  868. CFLAGS="-g -O2"
  869. else
  870. CFLAGS="-g"
  871. fi
  872. else
  873. if test "$GCC" = yes; then
  874. CFLAGS="-O2"
  875. else
  876. CFLAGS=
  877. fi
  878. fi
  879. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  880. echo "configure:975: checking for Cygwin environment" >&5
  881. cat > conftest.$ac_ext <<EOF
  882. #line 978 "configure"
  883. #include "confdefs.h"
  884. int main() {
  885. #ifndef __CYGWIN__
  886. #define __CYGWIN__ __CYGWIN32__
  887. #endif
  888. return __CYGWIN__;
  889. ; return 0; }
  890. EOF
  891. if { (eval echo configure:989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  892. rm -rf conftest*
  893. ac_cv_cygwin=yes
  894. else
  895. echo "configure: failed program was:" >&5
  896. cat conftest.$ac_ext >&5
  897. rm -rf conftest*
  898. ac_cv_cygwin=no
  899. fi
  900. rm -f conftest*
  901. rm -f conftest*
  902. echo "$ac_t""$ac_cv_cygwin" 1>&6
  903. CYGWIN=
  904. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  905. echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
  906. echo "configure:1005: checking for mingw32 environment" >&5
  907. cat > conftest.$ac_ext <<EOF
  908. #line 1008 "configure"
  909. #include "confdefs.h"
  910. int main() {
  911. return __MINGW32__;
  912. ; return 0; }
  913. EOF
  914. if { (eval echo configure:1015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  915. rm -rf conftest*
  916. ac_cv_mingw32=yes
  917. else
  918. echo "configure: failed program was:" >&5
  919. cat conftest.$ac_ext >&5
  920. rm -rf conftest*
  921. ac_cv_mingw32=no
  922. fi
  923. rm -f conftest*
  924. rm -f conftest*
  925. echo "$ac_t""$ac_cv_mingw32" 1>&6
  926. MINGW32=
  927. test "$ac_cv_mingw32" = yes && MINGW32=yes
  928. echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
  929. echo "configure:1033: checking for executable suffix" >&5
  930. if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
  931. ac_cv_exeext=.exe
  932. else
  933. ac_cv_exeext=no
  934. fi
  935. EXEEXT=""
  936. test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
  937. echo "$ac_t""${ac_cv_exeext}" 1>&6
  938. ac_exeext=$EXEEXT
  939. # Check for full floating-point support, including Infinity and NaN
  940. IEEEFLAG=
  941. echo $ac_n "checking for full floating-point support""... $ac_c" 1>&6
  942. echo "configure:1052: checking for full floating-point support" >&5
  943. if test "$cross_compiling" = yes; then
  944. echo "$ac_t""unknown (cross-compiling)" 1>&6
  945. echo $ac_n "checking whether "cc -mieee" works""... $ac_c" 1>&6
  946. echo "configure:1057: checking whether "cc -mieee" works" >&5
  947. ac_save_cflags=${CFLAGS}
  948. CFLAGS="$CFLAGS -mieee"
  949. cat > conftest.$ac_ext <<EOF
  950. #line 1061 "configure"
  951. #include "confdefs.h"
  952. int main() {
  953. ; return 0; }
  954. EOF
  955. if { (eval echo configure:1068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  956. rm -rf conftest*
  957. echo "$ac_t""yes" 1>&6
  958. IEEEFLAG="-mieee"
  959. else
  960. echo "configure: failed program was:" >&5
  961. cat conftest.$ac_ext >&5
  962. rm -rf conftest*
  963. echo "$ac_t""no" 1>&6
  964. fi
  965. rm -f conftest*
  966. CFLAGS=${ac_save_cflags}
  967. else
  968. cat > conftest.$ac_ext <<EOF
  969. #line 1084 "configure"
  970. #include "confdefs.h"
  971. #include <float.h>
  972. int main(void) {
  973. double one = 1.0;
  974. double zero = 0.0;
  975. if (one/zero > DBL_MAX) /* infinity */
  976. if (zero/zero != zero/zero) /* NaN */
  977. return 0;
  978. return 1;
  979. }
  980. EOF
  981. if { (eval echo configure:1098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  982. then
  983. echo "$ac_t""yes" 1>&6
  984. else
  985. echo "configure: failed program was:" >&5
  986. cat conftest.$ac_ext >&5
  987. rm -fr conftest*
  988. echo "$ac_t""no" 1>&6
  989. ac_save_cflags=${CFLAGS}
  990. CFLAGS=-mieee
  991. echo $ac_n "checking for full floating-point support with -mieee""... $ac_c" 1>&6
  992. echo "configure:1111: checking for full floating-point support with -mieee" >&5
  993. if test "$cross_compiling" = yes; then
  994. echo "$ac_t""unknown (cross-compiling)" 1>&6
  995. { echo "configure: error: *** INTERNAL CONFIGURE ERROR" 1>&2; exit 1; }
  996. else
  997. cat > conftest.$ac_ext <<EOF
  998. #line 1118 "configure"
  999. #include "confdefs.h"
  1000. #include <float.h>
  1001. int main(void) {
  1002. double one = 1.0;
  1003. double zero = 0.0;
  1004. if (one/zero > DBL_MAX) /* infinity */
  1005. if (zero/zero != zero/zero) /* NaN */
  1006. return 0;
  1007. return 1;
  1008. }
  1009. EOF
  1010. if { (eval echo configure:1132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1011. then
  1012. echo "$ac_t""yes" 1>&6
  1013. IEEEFLAG="-mieee"
  1014. else
  1015. echo "configure: failed program was:" >&5
  1016. cat conftest.$ac_ext >&5
  1017. rm -fr conftest*
  1018. echo "$ac_t""no" 1>&6
  1019. echo "configure: warning: *** Incomplete floating-point support." 1>&2
  1020. fi
  1021. rm -fr conftest*
  1022. fi
  1023. CFLAGS=${ac_save_cflags}
  1024. fi
  1025. rm -fr conftest*
  1026. fi
  1027. CFLAGS="$CFLAGS $IEEEFLAG"
  1028. # Set BINDIR
  1029. if test -n "${bindir}"; then
  1030. BINDIR="${bindir}"
  1031. else
  1032. BINDIR=/usr/local/bin
  1033. fi
  1034. # Set SRCDIR and DSTDIR
  1035. # Extract the first word of "pwd", so it can be a program name with args.
  1036. set dummy pwd; ac_word=$2
  1037. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1038. echo "configure:1169: checking for $ac_word" >&5
  1039. case "$pwd" in
  1040. /*)
  1041. ac_cv_path_pwd="$pwd" # Let the user override the test with a path.
  1042. ;;
  1043. ?:/*)
  1044. ac_cv_path_pwd="$pwd" # Let the user override the test with a dos path.
  1045. ;;
  1046. *)
  1047. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1048. ac_dummy="$PATH"
  1049. for ac_dir in $ac_dummy; do
  1050. test -z "$ac_dir" && ac_dir=.
  1051. if test -f $ac_dir/$ac_word; then
  1052. ac_cv_path_pwd="$ac_dir/$ac_word"
  1053. break
  1054. fi
  1055. done
  1056. IFS="$ac_save_ifs"
  1057. test -z "$ac_cv_path_pwd" && ac_cv_path_pwd="pwd"
  1058. ;;
  1059. esac
  1060. pwd="$ac_cv_path_pwd"
  1061. if test -n "$pwd"; then
  1062. echo "$ac_t""$pwd" 1>&6
  1063. else
  1064. echo "$ac_t""no" 1>&6
  1065. fi
  1066. if test "$MINGW32" = yes ; then
  1067. winpwd="$pwd -W"
  1068. else
  1069. winpwd="$pwd"
  1070. fi
  1071. echo $ac_n "checking for source directory""... $ac_c" 1>&6
  1072. echo "configure:1207: checking for source directory" >&5
  1073. if test -z "$srcdir" ; then
  1074. SRCDIR=`$pwd`
  1075. else
  1076. SRCDIR=`(cd "$srcdir" ; $pwd)`
  1077. fi
  1078. echo "$ac_t"""$SRCDIR"" 1>&6
  1079. echo $ac_n "checking for build directory""... $ac_c" 1>&6
  1080. echo "configure:1218: checking for build directory" >&5
  1081. DSTDIR=`$pwd`
  1082. WINDSTDIR=`$winpwd`
  1083. echo "$ac_t"""$DSTDIR"" 1>&6
  1084. # Set ARCH
  1085. ARCH=
  1086. if test -z "${host}"; then
  1087. ARCH="unknown"
  1088. else
  1089. ARCH="${host}"
  1090. fi
  1091. # Use absolute path for aux directory so that install-sh works
  1092. ac_aux_dir=
  1093. for ac_dir in "$SRCDIR" $srcdir/"$SRCDIR"; do
  1094. if test -f $ac_dir/install-sh; then
  1095. ac_aux_dir=$ac_dir
  1096. ac_install_sh="$ac_aux_dir/install-sh -c"
  1097. break
  1098. elif test -f $ac_dir/install.sh; then
  1099. ac_aux_dir=$ac_dir
  1100. ac_install_sh="$ac_aux_dir/install.sh -c"
  1101. break
  1102. fi
  1103. done
  1104. if test -z "$ac_aux_dir"; then
  1105. { echo "configure: error: can not find install-sh or install.sh in "$SRCDIR" $srcdir/"$SRCDIR"" 1>&2; exit 1; }
  1106. fi
  1107. ac_config_guess=$ac_aux_dir/config.guess
  1108. ac_config_sub=$ac_aux_dir/config.sub
  1109. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  1110. # Set GISBASE and GRASS_BIN
  1111. GISBASE="${WINDSTDIR}/dist.${ARCH}"
  1112. GRASS_BIN="${DSTDIR}/bin.${ARCH}"
  1113. # Set GRASS_VERSION_*
  1114. GRASS_VERSION_FILE=include/VERSION
  1115. GRASS_VERSION_MAJOR=`sed -n 1p "${GRASS_VERSION_FILE}"`
  1116. GRASS_VERSION_MINOR=`sed -n 2p "${GRASS_VERSION_FILE}"`
  1117. GRASS_VERSION_RELEASE=`sed -n 3p "${GRASS_VERSION_FILE}"`
  1118. GRASS_VERSION_DATE=`sed -n 4p "${GRASS_VERSION_FILE}"`
  1119. GRASS_VERSION_NUMBER=`echo ${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.${GRASS_VERSION_RELEASE}`
  1120. NAME_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/\..*//'`
  1121. LIB_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/^\([0-9.]*\).*$/\1/'`
  1122. GRASS_VERSION_SVN=
  1123. # Extract the first word of "svnversion", so it can be a program name with args.
  1124. set dummy svnversion; ac_word=$2
  1125. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1126. echo "configure:1286: checking for $ac_word" >&5
  1127. case "$SVN_VERSION" in
  1128. /*)
  1129. ac_cv_path_SVN_VERSION="$SVN_VERSION" # Let the user override the test with a path.
  1130. ;;
  1131. ?:/*)
  1132. ac_cv_path_SVN_VERSION="$SVN_VERSION" # Let the user override the test with a dos path.
  1133. ;;
  1134. *)
  1135. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1136. ac_dummy="$PATH"
  1137. for ac_dir in $ac_dummy; do
  1138. test -z "$ac_dir" && ac_dir=.
  1139. if test -f $ac_dir/$ac_word; then
  1140. ac_cv_path_SVN_VERSION="$ac_dir/$ac_word"
  1141. break
  1142. fi
  1143. done
  1144. IFS="$ac_save_ifs"
  1145. test -z "$ac_cv_path_SVN_VERSION" && ac_cv_path_SVN_VERSION="no"
  1146. ;;
  1147. esac
  1148. SVN_VERSION="$ac_cv_path_SVN_VERSION"
  1149. if test -n "$SVN_VERSION"; then
  1150. echo "$ac_t""$SVN_VERSION" 1>&6
  1151. else
  1152. echo "$ac_t""no" 1>&6
  1153. fi
  1154. if test "$SVN_VERSION" != "no" ; then
  1155. GRASS_VERSION_SVN=`$SVN_VERSION -c | cut -f2 -d:`
  1156. if test "$GRASS_VERSION_SVN" = "exported" ; then
  1157. GRASS_VERSION_SVN=
  1158. fi
  1159. fi
  1160. # Check for MacOSX App
  1161. # Check whether --enable-macosx-app or --disable-macosx-app was given.
  1162. if test "${enable_macosx_app+set}" = set; then
  1163. enableval="$enable_macosx_app"
  1164. :
  1165. else
  1166. enable_macosx_app=no
  1167. fi
  1168. echo $ac_n "checking for MacOSX App""... $ac_c" 1>&6
  1169. echo "configure:1345: checking for MacOSX App" >&5
  1170. case "$enable_macosx_app" in
  1171. yes) MACOSX_APP=1 ;;
  1172. no) MACOSX_APP= ;;
  1173. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  1174. esac
  1175. echo "$ac_t"""$enable_macosx_app"" 1>&6
  1176. # Check for MacOSX archs
  1177. echo $ac_n "checking for MacOSX architectures""... $ac_c" 1>&6
  1178. echo "configure:1357: checking for MacOSX architectures" >&5
  1179. MACOSX_ARCHS=
  1180. if test -z "$with_macosx_archs" ; then
  1181. echo "$ac_t""no" 1>&6
  1182. else
  1183. for a in $with_macosx_archs
  1184. do
  1185. # check if valid arch?
  1186. case "$a" in
  1187. i386|ppc|x86_64|ppc64)
  1188. MACOSX_ARCHS="$MACOSX_ARCHS -arch $a"
  1189. ;;
  1190. esac
  1191. done
  1192. echo "$ac_t""$MACOSX_ARCHS" 1>&6
  1193. LDFLAGS="$LDFLAGS $MACOSX_ARCHS"
  1194. CFLAGS="$CFLAGS $MACOSX_ARCHS"
  1195. CXXFLAGS="$CXXFLAGS $MACOSX_ARCHS"
  1196. fi
  1197. # Done checking MacOSX archs
  1198. # Check for MacOSX SDK
  1199. echo $ac_n "checking for MacOSX SDK""... $ac_c" 1>&6
  1200. echo "configure:1386: checking for MacOSX SDK" >&5
  1201. MACOSX_SDK=
  1202. if test -z "$with_macosx_sdk" ; then
  1203. echo "$ac_t""no" 1>&6
  1204. else
  1205. ac_safe=`echo "$with_macosx_sdk/SDKSettings.plist" | sed 'y%./+-%__p_%'`
  1206. echo $ac_n "checking for $with_macosx_sdk/SDKSettings.plist""... $ac_c" 1>&6
  1207. echo "configure:1396: checking for $with_macosx_sdk/SDKSettings.plist" >&5
  1208. if test "$cross_compiling" = yes; then
  1209. { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
  1210. else
  1211. if test -r $with_macosx_sdk/SDKSettings.plist; then
  1212. eval "ac_cv_file_$ac_safe=yes"
  1213. else
  1214. eval "ac_cv_file_$ac_safe=no"
  1215. fi
  1216. fi
  1217. if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
  1218. echo "$ac_t""yes" 1>&6
  1219. MACOSX_SDK="-isysroot $with_macosx_sdk"
  1220. else
  1221. echo "$ac_t""no" 1>&6
  1222. { echo "configure: error: *** specified SDK does not exist or is not a SDK" 1>&2; exit 1; }
  1223. fi
  1224. LDFLAGS="$LDFLAGS $MACOSX_SDK"
  1225. CFLAGS="$CFLAGS $MACOSX_SDK"
  1226. CXXFLAGS="$CXXFLAGS $MACOSX_SDK"
  1227. fi
  1228. # Done checking MacOSX SDK
  1229. # Set INST_DIR
  1230. if test -n "$MACOSX_APP" ; then
  1231. INSTDIR='${prefix}'"/GRASS-${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.app/Contents/MacOS"
  1232. else
  1233. INSTDIR='${prefix}'"/grass-${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.${GRASS_VERSION_RELEASE}"
  1234. fi
  1235. # Get flags for building shared libraries
  1236. echo $ac_n "checking how to build libraries""... $ac_c" 1>&6
  1237. echo "configure:1440: checking how to build libraries" >&5
  1238. # Check whether --enable-shared or --disable-shared was given.
  1239. if test "${enable_shared+set}" = set; then
  1240. enableval="$enable_shared"
  1241. shared_ok=$enableval
  1242. else
  1243. shared_ok=yes
  1244. fi
  1245. if test "${enable_shared+set}" = set; then
  1246. enableval="$enable_shared"
  1247. shared_ok=$enableval
  1248. else
  1249. shared_ok=yes
  1250. fi
  1251. if test "$shared_ok" = "yes" ; then
  1252. echo "$ac_t""shared" 1>&6
  1253. SHARED_BUILD=1
  1254. GRASS_LIBRARY_TYPE='shlib'
  1255. else
  1256. echo "$ac_t""static" 1>&6
  1257. SHARED_BUILD=0
  1258. cat >> confdefs.h <<\EOF
  1259. #define STATIC_BUILD 1
  1260. EOF
  1261. GRASS_LIBRARY_TYPE='stlib'
  1262. fi
  1263. ac_save_ldflags="$LDFLAGS"
  1264. SHLIB_CFLAGS=""
  1265. SHLIB_LD_FLAGS=""
  1266. SHLIB_SUFFIX=""
  1267. SHLIB_LD=""
  1268. STLIB_LD='${AR} cr'
  1269. STLIB_SUFFIX='.a'
  1270. GRASS_TRIM_DOTS='`echo ${LIB_VER} | tr -d .`'
  1271. GRASS_LIB_VERSIONS_OK=ok
  1272. LDFLAGS=""
  1273. LD_SEARCH_FLAGS=""
  1274. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1275. case $host in
  1276. *-linux-*)
  1277. SHLIB_CFLAGS="-fPIC"
  1278. SHLIB_LD_FLAGS=""
  1279. SHLIB_SUFFIX=".so"
  1280. SHLIB_LD="${CC} -shared"
  1281. LDFLAGS="-Wl,--export-dynamic"
  1282. LD_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
  1283. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1284. ;;
  1285. *-pc-cygwin)
  1286. SHLIB_SUFFIX=".dll"
  1287. SHLIB_LD="${CC} -shared"
  1288. LDFLAGS="-Wl,--export-dynamic"
  1289. LD_LIBRARY_PATH_VAR="PATH"
  1290. ;;
  1291. *-pc-mingw32 | *-pc-msys)
  1292. SHLIB_SUFFIX=".dll"
  1293. SHLIB_LD="${CC} -shared"
  1294. LDFLAGS="-Wl,--export-dynamic,--enable-runtime-pseudo-reloc"
  1295. LD_LIBRARY_PATH_VAR="PATH"
  1296. ;;
  1297. *-apple-darwin*)
  1298. SHLIB_CFLAGS="-fno-common"
  1299. SHLIB_SUFFIX=".dylib"
  1300. 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}"
  1301. LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
  1302. ;;
  1303. *-sun-solaris*)
  1304. # Note: If _REENTRANT isn't defined, then Solaris
  1305. # won't define thread-safe library routines.
  1306. cat >> confdefs.h <<\EOF
  1307. #define _REENTRANT 1
  1308. EOF
  1309. cat >> confdefs.h <<\EOF
  1310. #define _POSIX_PTHREAD_SEMANTICS 1
  1311. EOF
  1312. # Note: need the LIBS below, otherwise Tk won't find Tcl's
  1313. # symbols when dynamically loaded into tclsh.
  1314. if test "$GCC" = "yes" ; then
  1315. SHLIB_CFLAGS="-fPIC"
  1316. SHLIB_LD="$CC -shared"
  1317. LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
  1318. else
  1319. SHLIB_CFLAGS="-KPIC"
  1320. SHLIB_LD="/usr/ccs/bin/ld -G -z text"
  1321. LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
  1322. fi
  1323. SHLIB_SUFFIX=".so"
  1324. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1325. ;;
  1326. *-solaris2*)
  1327. # Note: Solaris is as of 2010 Oracle Solaris, not Sun Solaris
  1328. # Oracle Solaris derives from Solaris 2
  1329. # derives from SunOS 5
  1330. # derives from UNIX System V Release 4
  1331. # Note: If _REENTRANT isn't defined, then Solaris
  1332. # won't define thread-safe library routines.
  1333. cat >> confdefs.h <<\EOF
  1334. #define _REENTRANT 1
  1335. EOF
  1336. cat >> confdefs.h <<\EOF
  1337. #define _POSIX_PTHREAD_SEMANTICS 1
  1338. EOF
  1339. # Note: need the LIBS below, otherwise Tk won't find Tcl's
  1340. # symbols when dynamically loaded into tclsh.
  1341. if test "$GCC" = "yes" ; then
  1342. SHLIB_CFLAGS="-fPIC"
  1343. SHLIB_LD="$CC -shared"
  1344. LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
  1345. else
  1346. SHLIB_CFLAGS="-KPIC"
  1347. SHLIB_LD="/usr/ccs/bin/ld -G -z text"
  1348. LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
  1349. fi
  1350. SHLIB_SUFFIX=".so"
  1351. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1352. ;;
  1353. *-freebsd*)
  1354. # NOTE: only FreeBSD 4+ is supported
  1355. # FreeBSD 3.* and greater have ELF.
  1356. SHLIB_CFLAGS="-fPIC"
  1357. #SHLIB_LD="ld -Bshareable -x"
  1358. SHLIB_LD="${CC} -shared"
  1359. SHLIB_SUFFIX=".so"
  1360. LDFLAGS="-export-dynamic"
  1361. #LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
  1362. LD_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
  1363. # TODO: add optional pthread support with any combination of:
  1364. # CFLAGS="$CFLAGS -pthread"
  1365. # LDFLAGS="$LDFLAGS -lpthread"
  1366. # AC_DEFINE(_REENTRANT)
  1367. # AC_DEFINE(_POSIX_PTHREAD_SEMANTICS)
  1368. ;;
  1369. *-netbsd*)
  1370. # NetBSD has ELF.
  1371. SHLIB_CFLAGS="-fPIC"
  1372. SHLIB_LD="${CC} -shared"
  1373. SHLIB_LD_LIBS="${LIBS}"
  1374. LDFLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -export-dynamic'
  1375. SHLIB_LD_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -export-dynamic'
  1376. LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -L${LIB_RUNTIME_DIR}'
  1377. # some older NetBSD versions do not handle version numbers with dots.
  1378. #STLIB_SUFFIX='${GRASS_TRIM_DOTS}.a'
  1379. #SHLIB_SUFFIX='${GRASS_TRIM_DOTS}.so'
  1380. #GRASS_LIB_VERSIONS_OK=nodots
  1381. # NetBSD 6 does handle version numbers with dots.
  1382. STLIB_SUFFIX=".a"
  1383. SHLIB_SUFFIX=".so"
  1384. # TODO: add optional pthread support with any combination of:
  1385. # CFLAGS="$CFLAGS -pthread"
  1386. # LDFLAGS="$LDFLAGS -lpthread"
  1387. # AC_DEFINE(_REENTRANT)
  1388. # AC_DEFINE(_POSIX_PTHREAD_SEMANTICS)
  1389. ;;
  1390. *aix*)
  1391. # NOTE: do we need to support aix < 6 ?
  1392. LIBS="$LIBS -lc"
  1393. SHLIB_CFLAGS=""
  1394. SHLIB_SUFFIX=".so"
  1395. LDFLAGS=""
  1396. LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
  1397. LD_LIBRARY_PATH_VAR="LIBPATH"
  1398. GRASS_NEEDS_EXP_FILE=1
  1399. GRASS_EXPORT_FILE_SUFFIX='${LIB_VER}.exp'
  1400. ;;
  1401. *)
  1402. { echo "configure: error: ***Unknown platform: $host***" 1>&2; exit 1; }
  1403. ;;
  1404. esac
  1405. LDFLAGS="${ac_save_ldflags} $LDFLAGS"
  1406. # Enable options
  1407. # Check whether --enable-w11 or --disable-w11 was given.
  1408. if test "${enable_w11+set}" = set; then
  1409. enableval="$enable_w11"
  1410. :
  1411. else
  1412. enable_w11=no
  1413. fi
  1414. # With options
  1415. # Check whether --with-cxx or --without-cxx was given.
  1416. if test "${with_cxx+set}" = set; then
  1417. withval="$with_cxx"
  1418. :
  1419. else
  1420. with_cxx=yes
  1421. fi
  1422. #LOC_ARG_WITH(g77, GNU Fortran 77, no)
  1423. # Check whether --with-macosx-archs or --without-macosx-archs was given.
  1424. if test "${with_macosx_archs+set}" = set; then
  1425. withval="$with_macosx_archs"
  1426. :
  1427. else
  1428. with_macosx_archs="no"
  1429. fi
  1430. # Check whether --with-macosx-sdk or --without-macosx-sdk was given.
  1431. if test "${with_macosx_sdk+set}" = set; then
  1432. withval="$with_macosx_sdk"
  1433. :
  1434. else
  1435. with_macosx_sdk="no"
  1436. fi
  1437. # Check whether --with-tiff or --without-tiff was given.
  1438. if test "${with_tiff+set}" = set; then
  1439. withval="$with_tiff"
  1440. :
  1441. else
  1442. with_tiff=yes
  1443. fi
  1444. # Check whether --with-png or --without-png was given.
  1445. if test "${with_png+set}" = set; then
  1446. withval="$with_png"
  1447. :
  1448. else
  1449. with_png=yes
  1450. fi
  1451. # Check whether --with-postgres or --without-postgres was given.
  1452. if test "${with_postgres+set}" = set; then
  1453. withval="$with_postgres"
  1454. :
  1455. else
  1456. with_postgres=no
  1457. fi
  1458. # Check whether --with-mysql or --without-mysql was given.
  1459. if test "${with_mysql+set}" = set; then
  1460. withval="$with_mysql"
  1461. :
  1462. else
  1463. with_mysql=no
  1464. fi
  1465. # Check whether --with-sqlite or --without-sqlite was given.
  1466. if test "${with_sqlite+set}" = set; then
  1467. withval="$with_sqlite"
  1468. :
  1469. else
  1470. with_sqlite=no
  1471. fi
  1472. # Check whether --with-ffmpeg or --without-ffmpeg was given.
  1473. if test "${with_ffmpeg+set}" = set; then
  1474. withval="$with_ffmpeg"
  1475. :
  1476. else
  1477. with_ffmpeg=no
  1478. fi
  1479. # Check whether --with-opengl or --without-opengl was given.
  1480. if test "${with_opengl+set}" = set; then
  1481. withval="$with_opengl"
  1482. :
  1483. else
  1484. with_opengl=yes
  1485. fi
  1486. # Check whether --with-odbc or --without-odbc was given.
  1487. if test "${with_odbc+set}" = set; then
  1488. withval="$with_odbc"
  1489. :
  1490. else
  1491. with_odbc=no
  1492. fi
  1493. # Check whether --with-fftw or --without-fftw was given.
  1494. if test "${with_fftw+set}" = set; then
  1495. withval="$with_fftw"
  1496. :
  1497. else
  1498. with_fftw=yes
  1499. fi
  1500. # Check whether --with-blas or --without-blas was given.
  1501. if test "${with_blas+set}" = set; then
  1502. withval="$with_blas"
  1503. :
  1504. else
  1505. with_blas=no
  1506. fi
  1507. # Check whether --with-lapack or --without-lapack was given.
  1508. if test "${with_lapack+set}" = set; then
  1509. withval="$with_lapack"
  1510. :
  1511. else
  1512. with_lapack=no
  1513. fi
  1514. # Check whether --with-cairo or --without-cairo was given.
  1515. if test "${with_cairo+set}" = set; then
  1516. withval="$with_cairo"
  1517. :
  1518. else
  1519. with_cairo=yes
  1520. fi
  1521. # Check whether --with-freetype or --without-freetype was given.
  1522. if test "${with_freetype+set}" = set; then
  1523. withval="$with_freetype"
  1524. :
  1525. else
  1526. with_freetype=yes
  1527. fi
  1528. # Check whether --with-nls or --without-nls was given.
  1529. if test "${with_nls+set}" = set; then
  1530. withval="$with_nls"
  1531. :
  1532. else
  1533. with_nls=no
  1534. fi
  1535. # Check whether --with-readline or --without-readline was given.
  1536. if test "${with_readline+set}" = set; then
  1537. withval="$with_readline"
  1538. :
  1539. else
  1540. with_readline=no
  1541. fi
  1542. # Check whether --with-opendwg or --without-opendwg was given.
  1543. if test "${with_opendwg+set}" = set; then
  1544. withval="$with_opendwg"
  1545. :
  1546. else
  1547. with_opendwg=no
  1548. fi
  1549. # Check whether --with-regex or --without-regex was given.
  1550. if test "${with_regex+set}" = set; then
  1551. withval="$with_regex"
  1552. :
  1553. else
  1554. with_regex=yes
  1555. fi
  1556. # Check whether --with-pthread or --without-pthread was given.
  1557. if test "${with_pthread+set}" = set; then
  1558. withval="$with_pthread"
  1559. :
  1560. else
  1561. with_pthread=no
  1562. fi
  1563. # Check whether --with-openmp or --without-openmp was given.
  1564. if test "${with_openmp+set}" = set; then
  1565. withval="$with_openmp"
  1566. :
  1567. else
  1568. with_openmp=no
  1569. fi
  1570. # Check whether --with-gdal or --without-gdal was given.
  1571. if test "${with_gdal+set}" = set; then
  1572. withval="$with_gdal"
  1573. :
  1574. fi
  1575. # Check whether --with-liblas or --without-liblas was given.
  1576. if test "${with_liblas+set}" = set; then
  1577. withval="$with_liblas"
  1578. :
  1579. else
  1580. with_liblas="no"
  1581. fi
  1582. # Check whether --with-wxwidgets or --without-wxwidgets was given.
  1583. if test "${with_wxwidgets+set}" = set; then
  1584. withval="$with_wxwidgets"
  1585. :
  1586. else
  1587. with_wxwidgets="no"
  1588. fi
  1589. # Check whether --with-netcdf or --without-netcdf was given.
  1590. if test "${with_netcdf+set}" = set; then
  1591. withval="$with_netcdf"
  1592. :
  1593. else
  1594. with_netcdf="no"
  1595. fi
  1596. # With includes and libs options
  1597. # Check whether --with-geos or --without-geos was given.
  1598. if test "${with_geos+set}" = set; then
  1599. withval="$with_geos"
  1600. :
  1601. else
  1602. with_geos="no"
  1603. fi
  1604. # Check whether --with-includes or --without-includes was given.
  1605. if test "${with_includes+set}" = set; then
  1606. withval="$with_includes"
  1607. :
  1608. fi
  1609. # Check whether --with-libs or --without-libs was given.
  1610. if test "${with_libs+set}" = set; then
  1611. withval="$with_libs"
  1612. :
  1613. fi
  1614. # Check whether --with-zlib-includes or --without-zlib-includes was given.
  1615. if test "${with_zlib_includes+set}" = set; then
  1616. withval="$with_zlib_includes"
  1617. :
  1618. fi
  1619. # Check whether --with-zlib-libs or --without-zlib-libs was given.
  1620. if test "${with_zlib_libs+set}" = set; then
  1621. withval="$with_zlib_libs"
  1622. :
  1623. fi
  1624. # Check whether --with-readline-includes or --without-readline-includes was given.
  1625. if test "${with_readline_includes+set}" = set; then
  1626. withval="$with_readline_includes"
  1627. :
  1628. fi
  1629. # Check whether --with-readline-libs or --without-readline-libs was given.
  1630. if test "${with_readline_libs+set}" = set; then
  1631. withval="$with_readline_libs"
  1632. :
  1633. fi
  1634. # Check whether --with-tiff-includes or --without-tiff-includes was given.
  1635. if test "${with_tiff_includes+set}" = set; then
  1636. withval="$with_tiff_includes"
  1637. :
  1638. fi
  1639. # Check whether --with-tiff-libs or --without-tiff-libs was given.
  1640. if test "${with_tiff_libs+set}" = set; then
  1641. withval="$with_tiff_libs"
  1642. :
  1643. fi
  1644. # Check whether --with-png-includes or --without-png-includes was given.
  1645. if test "${with_png_includes+set}" = set; then
  1646. withval="$with_png_includes"
  1647. :
  1648. fi
  1649. # Check whether --with-png-libs or --without-png-libs was given.
  1650. if test "${with_png_libs+set}" = set; then
  1651. withval="$with_png_libs"
  1652. :
  1653. fi
  1654. # Check whether --with-postgres-includes or --without-postgres-includes was given.
  1655. if test "${with_postgres_includes+set}" = set; then
  1656. withval="$with_postgres_includes"
  1657. :
  1658. fi
  1659. # Check whether --with-postgres-libs or --without-postgres-libs was given.
  1660. if test "${with_postgres_libs+set}" = set; then
  1661. withval="$with_postgres_libs"
  1662. :
  1663. fi
  1664. # Check whether --with-mysql-includes or --without-mysql-includes was given.
  1665. if test "${with_mysql_includes+set}" = set; then
  1666. withval="$with_mysql_includes"
  1667. :
  1668. fi
  1669. # Check whether --with-mysql-libs or --without-mysql-libs was given.
  1670. if test "${with_mysql_libs+set}" = set; then
  1671. withval="$with_mysql_libs"
  1672. :
  1673. fi
  1674. # Check whether --with-sqlite-includes or --without-sqlite-includes was given.
  1675. if test "${with_sqlite_includes+set}" = set; then
  1676. withval="$with_sqlite_includes"
  1677. :
  1678. fi
  1679. # Check whether --with-sqlite-libs or --without-sqlite-libs was given.
  1680. if test "${with_sqlite_libs+set}" = set; then
  1681. withval="$with_sqlite_libs"
  1682. :
  1683. fi
  1684. # Check whether --with-ffmpeg-includes or --without-ffmpeg-includes was given.
  1685. if test "${with_ffmpeg_includes+set}" = set; then
  1686. withval="$with_ffmpeg_includes"
  1687. :
  1688. fi
  1689. # Check whether --with-ffmpeg-libs or --without-ffmpeg-libs was given.
  1690. if test "${with_ffmpeg_libs+set}" = set; then
  1691. withval="$with_ffmpeg_libs"
  1692. :
  1693. fi
  1694. # Check whether --with-opengl-includes or --without-opengl-includes was given.
  1695. if test "${with_opengl_includes+set}" = set; then
  1696. withval="$with_opengl_includes"
  1697. :
  1698. fi
  1699. # Check whether --with-opengl-libs or --without-opengl-libs was given.
  1700. if test "${with_opengl_libs+set}" = set; then
  1701. withval="$with_opengl_libs"
  1702. :
  1703. fi
  1704. # Check whether --with-opengl-framework or --without-opengl-framework was given.
  1705. if test "${with_opengl_framework+set}" = set; then
  1706. withval="$with_opengl_framework"
  1707. :
  1708. fi
  1709. # Check whether --with-odbc-includes or --without-odbc-includes was given.
  1710. if test "${with_odbc_includes+set}" = set; then
  1711. withval="$with_odbc_includes"
  1712. :
  1713. fi
  1714. # Check whether --with-odbc-libs or --without-odbc-libs was given.
  1715. if test "${with_odbc_libs+set}" = set; then
  1716. withval="$with_odbc_libs"
  1717. :
  1718. fi
  1719. # Check whether --with-fftw-includes or --without-fftw-includes was given.
  1720. if test "${with_fftw_includes+set}" = set; then
  1721. withval="$with_fftw_includes"
  1722. :
  1723. fi
  1724. # Check whether --with-fftw-libs or --without-fftw-libs was given.
  1725. if test "${with_fftw_libs+set}" = set; then
  1726. withval="$with_fftw_libs"
  1727. :
  1728. fi
  1729. # Check whether --with-blas-includes or --without-blas-includes was given.
  1730. if test "${with_blas_includes+set}" = set; then
  1731. withval="$with_blas_includes"
  1732. :
  1733. fi
  1734. # Check whether --with-blas-libs or --without-blas-libs was given.
  1735. if test "${with_blas_libs+set}" = set; then
  1736. withval="$with_blas_libs"
  1737. :
  1738. fi
  1739. # Check whether --with-lapack-includes or --without-lapack-includes was given.
  1740. if test "${with_lapack_includes+set}" = set; then
  1741. withval="$with_lapack_includes"
  1742. :
  1743. fi
  1744. # Check whether --with-lapack-libs or --without-lapack-libs was given.
  1745. if test "${with_lapack_libs+set}" = set; then
  1746. withval="$with_lapack_libs"
  1747. :
  1748. fi
  1749. # Check whether --with-cairo-includes or --without-cairo-includes was given.
  1750. if test "${with_cairo_includes+set}" = set; then
  1751. withval="$with_cairo_includes"
  1752. :
  1753. fi
  1754. # Check whether --with-cairo-libs or --without-cairo-libs was given.
  1755. if test "${with_cairo_libs+set}" = set; then
  1756. withval="$with_cairo_libs"
  1757. :
  1758. fi
  1759. # Check whether --with-cairo-ldflags or --without-cairo-ldflags was given.
  1760. if test "${with_cairo_ldflags+set}" = set; then
  1761. withval="$with_cairo_ldflags"
  1762. :
  1763. fi
  1764. # Check whether --with-freetype-includes or --without-freetype-includes was given.
  1765. if test "${with_freetype_includes+set}" = set; then
  1766. withval="$with_freetype_includes"
  1767. :
  1768. fi
  1769. # Check whether --with-freetype-libs or --without-freetype-libs was given.
  1770. if test "${with_freetype_libs+set}" = set; then
  1771. withval="$with_freetype_libs"
  1772. :
  1773. fi
  1774. # Check whether --with-proj-includes or --without-proj-includes was given.
  1775. if test "${with_proj_includes+set}" = set; then
  1776. withval="$with_proj_includes"
  1777. :
  1778. fi
  1779. # Check whether --with-proj-libs or --without-proj-libs was given.
  1780. if test "${with_proj_libs+set}" = set; then
  1781. withval="$with_proj_libs"
  1782. :
  1783. fi
  1784. # Check whether --with-proj-share or --without-proj-share was given.
  1785. if test "${with_proj_share+set}" = set; then
  1786. withval="$with_proj_share"
  1787. :
  1788. fi
  1789. # Check whether --with-opendwg-includes or --without-opendwg-includes was given.
  1790. if test "${with_opendwg_includes+set}" = set; then
  1791. withval="$with_opendwg_includes"
  1792. :
  1793. fi
  1794. # Check whether --with-opendwg-libs or --without-opendwg-libs was given.
  1795. if test "${with_opendwg_libs+set}" = set; then
  1796. withval="$with_opendwg_libs"
  1797. :
  1798. fi
  1799. # Check whether --with-regex-includes or --without-regex-includes was given.
  1800. if test "${with_regex_includes+set}" = set; then
  1801. withval="$with_regex_includes"
  1802. :
  1803. fi
  1804. # Check whether --with-regex-libs or --without-regex-libs was given.
  1805. if test "${with_regex_libs+set}" = set; then
  1806. withval="$with_regex_libs"
  1807. :
  1808. fi
  1809. # Check whether --with-pthread-includes or --without-pthread-includes was given.
  1810. if test "${with_pthread_includes+set}" = set; then
  1811. withval="$with_pthread_includes"
  1812. :
  1813. fi
  1814. # Check whether --with-pthread-libs or --without-pthread-libs was given.
  1815. if test "${with_pthread_libs+set}" = set; then
  1816. withval="$with_pthread_libs"
  1817. :
  1818. fi
  1819. # Check whether --with-openmp-includes or --without-openmp-includes was given.
  1820. if test "${with_openmp_includes+set}" = set; then
  1821. withval="$with_openmp_includes"
  1822. :
  1823. fi
  1824. # Check whether --with-openmp-libs or --without-openmp-libs was given.
  1825. if test "${with_openmp_libs+set}" = set; then
  1826. withval="$with_openmp_libs"
  1827. :
  1828. fi
  1829. # Put this early on so CPPFLAGS and LDFLAGS have any additional dirs
  1830. # With includes option
  1831. # Handle Fortran compiler choice
  1832. #LOC_CHECK_USE(g77, GNU Fortran 77, USE_G77)
  1833. # Done checking fortran
  1834. echo $ac_n "checking for additional include dirs""... $ac_c" 1>&6
  1835. echo "configure:2300: checking for additional include dirs" >&5
  1836. case "$with_includes" in
  1837. y | ye | yes | n | no)
  1838. { echo "configure: error: *** You must supply a directory to list --with-includes." 1>&2; exit 1; }
  1839. ;;
  1840. esac
  1841. echo "$ac_t""$with_includes" 1>&6
  1842. if test -n "$with_includes"; then
  1843. for dir in $with_includes; do
  1844. if test -d "$dir"; then
  1845. INCLUDE_DIRS="$INCLUDE_DIRS -I$dir"
  1846. else
  1847. { echo "configure: error: *** Include directory $dir does not exist." 1>&2; exit 1; }
  1848. fi
  1849. done
  1850. CPPFLAGS="$CPPFLAGS $INCLUDE_DIRS"
  1851. fi
  1852. # With libs option
  1853. echo $ac_n "checking for additional library dirs""... $ac_c" 1>&6
  1854. echo "configure:2323: checking for additional library dirs" >&5
  1855. case "$with_libs" in
  1856. y | ye | yes | n | no)
  1857. { echo "configure: error: *** You must supply a directory list to --with-libs." 1>&2; exit 1; }
  1858. ;;
  1859. esac
  1860. echo "$ac_t""$with_libs" 1>&6
  1861. if test -n "$with_libs"; then
  1862. for dir in $with_libs; do
  1863. if test -d "$dir"; then
  1864. LIBRARY_DIRS="$LIBRARY_DIRS -L$dir"
  1865. else
  1866. { echo "configure: error: *** Library directory $dir does not exist." 1>&2; exit 1; }
  1867. fi
  1868. done
  1869. LDFLAGS="$LDFLAGS $LIBRARY_DIRS"
  1870. fi
  1871. # Programs and standard headers, libraries, functions
  1872. # Find a good install program. We prefer a C program (faster),
  1873. # so one script is as good as another. But avoid the broken or
  1874. # incompatible versions:
  1875. # SysV /etc/install, /usr/sbin/install
  1876. # SunOS /usr/etc/install
  1877. # IRIX /sbin/install
  1878. # AIX /bin/install
  1879. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1880. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1881. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1882. # ./install, which can be erroneously created by make from ./install.sh.
  1883. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1884. echo "configure:2357: checking for a BSD compatible install" >&5
  1885. if test -z "$INSTALL"; then
  1886. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  1887. for ac_dir in $PATH; do
  1888. # Account for people who put trailing slashes in PATH elements.
  1889. case "$ac_dir/" in
  1890. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1891. *)
  1892. # OSF1 and SCO ODT 3.0 have their own names for install.
  1893. # Don't use installbsd from OSF since it installs stuff as root
  1894. # by default.
  1895. for ac_prog in ginstall scoinst install; do
  1896. if test -f $ac_dir/$ac_prog; then
  1897. if test $ac_prog = install &&
  1898. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1899. # AIX install. It has an incompatible calling convention.
  1900. :
  1901. else
  1902. ac_cv_path_install="$ac_dir/$ac_prog -c"
  1903. break 2
  1904. fi
  1905. fi
  1906. done
  1907. ;;
  1908. esac
  1909. done
  1910. IFS="$ac_save_IFS"
  1911. if test "${ac_cv_path_install+set}" = set; then
  1912. INSTALL="$ac_cv_path_install"
  1913. else
  1914. # As a last resort, use the slow shell script. We don't cache a
  1915. # path for INSTALL within a source directory, because that will
  1916. # break other packages using the cache if that directory is
  1917. # removed, or if the path is relative.
  1918. INSTALL="$ac_install_sh"
  1919. fi
  1920. fi
  1921. echo "$ac_t""$INSTALL" 1>&6
  1922. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1923. # It thinks the first close brace ends the variable substitution.
  1924. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1925. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  1926. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1927. # Extract the first word of "flex", so it can be a program name with args.
  1928. set dummy flex; ac_word=$2
  1929. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1930. echo "configure:2410: checking for $ac_word" >&5
  1931. if test -n "$LEX"; then
  1932. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  1933. else
  1934. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1935. ac_dummy="$PATH"
  1936. for ac_dir in $ac_dummy; do
  1937. test -z "$ac_dir" && ac_dir=.
  1938. if test -f $ac_dir/$ac_word; then
  1939. ac_cv_prog_LEX="flex"
  1940. break
  1941. fi
  1942. done
  1943. IFS="$ac_save_ifs"
  1944. test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
  1945. fi
  1946. LEX="$ac_cv_prog_LEX"
  1947. if test -n "$LEX"; then
  1948. echo "$ac_t""$LEX" 1>&6
  1949. else
  1950. echo "$ac_t""no" 1>&6
  1951. fi
  1952. if test -z "$LEXLIB"
  1953. then
  1954. case "$LEX" in
  1955. flex*) ac_lib=fl ;;
  1956. *) ac_lib=l ;;
  1957. esac
  1958. echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
  1959. echo "configure:2441: checking for yywrap in -l$ac_lib" >&5
  1960. ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
  1961. ac_save_LIBS="$LIBS"
  1962. LIBS="-l$ac_lib $LIBS"
  1963. cat > conftest.$ac_ext <<EOF
  1964. #line 2447 "configure"
  1965. #include "confdefs.h"
  1966. /* Override any gcc2 internal prototype to avoid an error. */
  1967. /* We use char because int might match the return type of a gcc2
  1968. builtin and then its argument prototype would still apply. */
  1969. char yywrap();
  1970. int main() {
  1971. yywrap()
  1972. ; return 0; }
  1973. EOF
  1974. if { (eval echo configure:2458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1975. rm -rf conftest*
  1976. eval "ac_cv_lib_$ac_lib_var=yes"
  1977. else
  1978. echo "configure: failed program was:" >&5
  1979. cat conftest.$ac_ext >&5
  1980. rm -rf conftest*
  1981. eval "ac_cv_lib_$ac_lib_var=no"
  1982. fi
  1983. rm -f conftest*
  1984. LIBS="$ac_save_LIBS"
  1985. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1986. echo "$ac_t""yes" 1>&6
  1987. LEXLIB="-l$ac_lib"
  1988. else
  1989. echo "$ac_t""no" 1>&6
  1990. fi
  1991. fi
  1992. if test "$LEX" = "lex"; then
  1993. # Extract the first word of "lex", so it can be a program name with args.
  1994. set dummy lex; ac_word=$2
  1995. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1996. echo "configure:2483: checking for $ac_word" >&5
  1997. case "$LEXPATH" in
  1998. /*)
  1999. ac_cv_path_LEXPATH="$LEXPATH" # Let the user override the test with a path.
  2000. ;;
  2001. ?:/*)
  2002. ac_cv_path_LEXPATH="$LEXPATH" # Let the user override the test with a dos path.
  2003. ;;
  2004. *)
  2005. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2006. ac_dummy="$PATH"
  2007. for ac_dir in $ac_dummy; do
  2008. test -z "$ac_dir" && ac_dir=.
  2009. if test -f $ac_dir/$ac_word; then
  2010. ac_cv_path_LEXPATH="$ac_dir/$ac_word"
  2011. break
  2012. fi
  2013. done
  2014. IFS="$ac_save_ifs"
  2015. test -z "$ac_cv_path_LEXPATH" && ac_cv_path_LEXPATH="no"
  2016. ;;
  2017. esac
  2018. LEXPATH="$ac_cv_path_LEXPATH"
  2019. if test -n "$LEXPATH"; then
  2020. echo "$ac_t""$LEXPATH" 1>&6
  2021. else
  2022. echo "$ac_t""no" 1>&6
  2023. fi
  2024. if test "$LEXPATH" = "no"; then
  2025. { echo "configure: error: *** Unable to locate lex." 1>&2; exit 1; }
  2026. fi
  2027. fi
  2028. for ac_prog in 'bison -y' byacc
  2029. do
  2030. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2031. set dummy $ac_prog; ac_word=$2
  2032. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2033. echo "configure:2523: checking for $ac_word" >&5
  2034. if test -n "$YACC"; then
  2035. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  2036. else
  2037. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2038. ac_dummy="$PATH"
  2039. for ac_dir in $ac_dummy; do
  2040. test -z "$ac_dir" && ac_dir=.
  2041. if test -f $ac_dir/$ac_word; then
  2042. ac_cv_prog_YACC="$ac_prog"
  2043. break
  2044. fi
  2045. done
  2046. IFS="$ac_save_ifs"
  2047. fi
  2048. YACC="$ac_cv_prog_YACC"
  2049. if test -n "$YACC"; then
  2050. echo "$ac_t""$YACC" 1>&6
  2051. else
  2052. echo "$ac_t""no" 1>&6
  2053. fi
  2054. test -n "$YACC" && break
  2055. done
  2056. test -n "$YACC" || YACC="yacc"
  2057. if test "$YACC" = "yacc"; then
  2058. # Extract the first word of "yacc", so it can be a program name with args.
  2059. set dummy yacc; ac_word=$2
  2060. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2061. echo "configure:2554: checking for $ac_word" >&5
  2062. case "$YACCPATH" in
  2063. /*)
  2064. ac_cv_path_YACCPATH="$YACCPATH" # Let the user override the test with a path.
  2065. ;;
  2066. ?:/*)
  2067. ac_cv_path_YACCPATH="$YACCPATH" # Let the user override the test with a dos path.
  2068. ;;
  2069. *)
  2070. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2071. ac_dummy="$PATH"
  2072. for ac_dir in $ac_dummy; do
  2073. test -z "$ac_dir" && ac_dir=.
  2074. if test -f $ac_dir/$ac_word; then
  2075. ac_cv_path_YACCPATH="$ac_dir/$ac_word"
  2076. break
  2077. fi
  2078. done
  2079. IFS="$ac_save_ifs"
  2080. test -z "$ac_cv_path_YACCPATH" && ac_cv_path_YACCPATH="no"
  2081. ;;
  2082. esac
  2083. YACCPATH="$ac_cv_path_YACCPATH"
  2084. if test -n "$YACCPATH"; then
  2085. echo "$ac_t""$YACCPATH" 1>&6
  2086. else
  2087. echo "$ac_t""no" 1>&6
  2088. fi
  2089. if test "$YACCPATH" = "no"; then
  2090. { echo "configure: error: *** Unable to locate yacc." 1>&2; exit 1; }
  2091. fi
  2092. fi
  2093. # Extract the first word of "ranlib", so it can be a program name with args.
  2094. set dummy ranlib; ac_word=$2
  2095. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2096. echo "configure:2592: checking for $ac_word" >&5
  2097. if test -n "$RANLIB"; then
  2098. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2099. else
  2100. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2101. ac_dummy="$PATH"
  2102. for ac_dir in $ac_dummy; do
  2103. test -z "$ac_dir" && ac_dir=.
  2104. if test -f $ac_dir/$ac_word; then
  2105. ac_cv_prog_RANLIB="ranlib"
  2106. break
  2107. fi
  2108. done
  2109. IFS="$ac_save_ifs"
  2110. test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  2111. fi
  2112. RANLIB="$ac_cv_prog_RANLIB"
  2113. if test -n "$RANLIB"; then
  2114. echo "$ac_t""$RANLIB" 1>&6
  2115. else
  2116. echo "$ac_t""no" 1>&6
  2117. fi
  2118. for ac_prog in ar
  2119. do
  2120. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2121. set dummy $ac_prog; ac_word=$2
  2122. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2123. echo "configure:2621: checking for $ac_word" >&5
  2124. if test -n "$AR"; then
  2125. ac_cv_prog_AR="$AR" # Let the user override the test.
  2126. else
  2127. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2128. ac_dummy="$PATH"
  2129. for ac_dir in $ac_dummy; do
  2130. test -z "$ac_dir" && ac_dir=.
  2131. if test -f $ac_dir/$ac_word; then
  2132. ac_cv_prog_AR="$ac_prog"
  2133. break
  2134. fi
  2135. done
  2136. IFS="$ac_save_ifs"
  2137. fi
  2138. AR="$ac_cv_prog_AR"
  2139. if test -n "$AR"; then
  2140. echo "$ac_t""$AR" 1>&6
  2141. else
  2142. echo "$ac_t""no" 1>&6
  2143. fi
  2144. test -n "$AR" && break
  2145. done
  2146. for ac_prog in env
  2147. do
  2148. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2149. set dummy $ac_prog; ac_word=$2
  2150. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2151. echo "configure:2652: checking for $ac_word" >&5
  2152. if test -n "$ENV"; then
  2153. ac_cv_prog_ENV="$ENV" # Let the user override the test.
  2154. else
  2155. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2156. ac_dummy="$PATH"
  2157. for ac_dir in $ac_dummy; do
  2158. test -z "$ac_dir" && ac_dir=.
  2159. if test -f $ac_dir/$ac_word; then
  2160. ac_cv_prog_ENV="$ac_prog"
  2161. break
  2162. fi
  2163. done
  2164. IFS="$ac_save_ifs"
  2165. fi
  2166. ENV="$ac_cv_prog_ENV"
  2167. if test -n "$ENV"; then
  2168. echo "$ac_t""$ENV" 1>&6
  2169. else
  2170. echo "$ac_t""no" 1>&6
  2171. fi
  2172. test -n "$ENV" && break
  2173. done
  2174. # Extract the first word of "perl", so it can be a program name with args.
  2175. set dummy perl; ac_word=$2
  2176. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2177. echo "configure:2681: checking for $ac_word" >&5
  2178. case "$PERL" in
  2179. /*)
  2180. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  2181. ;;
  2182. ?:/*)
  2183. ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
  2184. ;;
  2185. *)
  2186. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2187. ac_dummy="$PATH"
  2188. for ac_dir in $ac_dummy; do
  2189. test -z "$ac_dir" && ac_dir=.
  2190. if test -f $ac_dir/$ac_word; then
  2191. ac_cv_path_PERL="$ac_dir/$ac_word"
  2192. break
  2193. fi
  2194. done
  2195. IFS="$ac_save_ifs"
  2196. test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
  2197. ;;
  2198. esac
  2199. PERL="$ac_cv_path_PERL"
  2200. if test -n "$PERL"; then
  2201. echo "$ac_t""$PERL" 1>&6
  2202. else
  2203. echo "$ac_t""no" 1>&6
  2204. fi
  2205. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  2206. echo "configure:2712: checking how to run the C preprocessor" >&5
  2207. # On Suns, sometimes $CPP names a directory.
  2208. if test -n "$CPP" && test -d "$CPP"; then
  2209. CPP=
  2210. fi
  2211. if test -z "$CPP"; then
  2212. # This must be in double quotes, not single quotes, because CPP may get
  2213. # substituted into the Makefile and "${CC-cc}" will confuse make.
  2214. CPP="${CC-cc} -E"
  2215. # On the NeXT, cc -E runs the code through the compiler's parser,
  2216. # not just through cpp.
  2217. cat > conftest.$ac_ext <<EOF
  2218. #line 2725 "configure"
  2219. #include "confdefs.h"
  2220. #include <assert.h>
  2221. Syntax Error
  2222. EOF
  2223. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2224. { (eval echo configure:2731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2225. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2226. if test -z "$ac_err"; then
  2227. :
  2228. else
  2229. echo "$ac_err" >&5
  2230. echo "configure: failed program was:" >&5
  2231. cat conftest.$ac_ext >&5
  2232. rm -rf conftest*
  2233. CPP="${CC-cc} -E -traditional-cpp"
  2234. cat > conftest.$ac_ext <<EOF
  2235. #line 2742 "configure"
  2236. #include "confdefs.h"
  2237. #include <assert.h>
  2238. Syntax Error
  2239. EOF
  2240. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2241. { (eval echo configure:2748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2242. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2243. if test -z "$ac_err"; then
  2244. :
  2245. else
  2246. echo "$ac_err" >&5
  2247. echo "configure: failed program was:" >&5
  2248. cat conftest.$ac_ext >&5
  2249. rm -rf conftest*
  2250. CPP="${CC-cc} -nologo -E"
  2251. cat > conftest.$ac_ext <<EOF
  2252. #line 2759 "configure"
  2253. #include "confdefs.h"
  2254. #include <assert.h>
  2255. Syntax Error
  2256. EOF
  2257. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2258. { (eval echo configure:2765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2259. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2260. if test -z "$ac_err"; then
  2261. :
  2262. else
  2263. echo "$ac_err" >&5
  2264. echo "configure: failed program was:" >&5
  2265. cat conftest.$ac_ext >&5
  2266. rm -rf conftest*
  2267. CPP=/lib/cpp
  2268. fi
  2269. rm -f conftest*
  2270. fi
  2271. rm -f conftest*
  2272. fi
  2273. rm -f conftest*
  2274. ac_cv_prog_CPP="$CPP"
  2275. CPP="$ac_cv_prog_CPP"
  2276. else
  2277. ac_cv_prog_CPP="$CPP"
  2278. fi
  2279. echo "$ac_t""$CPP" 1>&6
  2280. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  2281. echo "configure:2789: checking for ANSI C header files" >&5
  2282. cat > conftest.$ac_ext <<EOF
  2283. #line 2792 "configure"
  2284. #include "confdefs.h"
  2285. #include <stdlib.h>
  2286. #include <stdarg.h>
  2287. #include <string.h>
  2288. #include <float.h>
  2289. EOF
  2290. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2291. { (eval echo configure:2800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2292. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2293. if test -z "$ac_err"; then
  2294. rm -rf conftest*
  2295. ac_cv_header_stdc=yes
  2296. else
  2297. echo "$ac_err" >&5
  2298. echo "configure: failed program was:" >&5
  2299. cat conftest.$ac_ext >&5
  2300. rm -rf conftest*
  2301. ac_cv_header_stdc=no
  2302. fi
  2303. rm -f conftest*
  2304. if test $ac_cv_header_stdc = yes; then
  2305. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2306. cat > conftest.$ac_ext <<EOF
  2307. #line 2817 "configure"
  2308. #include "confdefs.h"
  2309. #include <string.h>
  2310. EOF
  2311. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2312. egrep "memchr" >/dev/null 2>&1; then
  2313. :
  2314. else
  2315. rm -rf conftest*
  2316. ac_cv_header_stdc=no
  2317. fi
  2318. rm -f conftest*
  2319. fi
  2320. if test $ac_cv_header_stdc = yes; then
  2321. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2322. cat > conftest.$ac_ext <<EOF
  2323. #line 2835 "configure"
  2324. #include "confdefs.h"
  2325. #include <stdlib.h>
  2326. EOF
  2327. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2328. egrep "free" >/dev/null 2>&1; then
  2329. :
  2330. else
  2331. rm -rf conftest*
  2332. ac_cv_header_stdc=no
  2333. fi
  2334. rm -f conftest*
  2335. fi
  2336. if test $ac_cv_header_stdc = yes; then
  2337. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2338. if test "$cross_compiling" = yes; then
  2339. :
  2340. else
  2341. cat > conftest.$ac_ext <<EOF
  2342. #line 2856 "configure"
  2343. #include "confdefs.h"
  2344. #include <ctype.h>
  2345. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2346. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2347. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2348. int main () { int i; for (i = 0; i < 256; i++)
  2349. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  2350. exit (0); }
  2351. EOF
  2352. if { (eval echo configure:2867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2353. then
  2354. :
  2355. else
  2356. echo "configure: failed program was:" >&5
  2357. cat conftest.$ac_ext >&5
  2358. rm -fr conftest*
  2359. ac_cv_header_stdc=no
  2360. fi
  2361. rm -fr conftest*
  2362. fi
  2363. fi
  2364. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  2365. if test $ac_cv_header_stdc = yes; then
  2366. cat >> confdefs.h <<\EOF
  2367. #define STDC_HEADERS 1
  2368. EOF
  2369. fi
  2370. #AC_CHECK_HEADERS(curses.h limits.h termio.h termios.h unistd.h values.h)
  2371. for ac_hdr in limits.h termio.h termios.h unistd.h values.h f2c.h g2c.h
  2372. do
  2373. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2374. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2375. echo "configure:2894: checking for $ac_hdr" >&5
  2376. cat > conftest.$ac_ext <<EOF
  2377. #line 2897 "configure"
  2378. #include "confdefs.h"
  2379. #include <$ac_hdr>
  2380. EOF
  2381. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2382. { (eval echo configure:2902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2383. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2384. if test -z "$ac_err"; then
  2385. rm -rf conftest*
  2386. eval "ac_cv_header_$ac_safe=yes"
  2387. else
  2388. echo "$ac_err" >&5
  2389. echo "configure: failed program was:" >&5
  2390. cat conftest.$ac_ext >&5
  2391. rm -rf conftest*
  2392. eval "ac_cv_header_$ac_safe=no"
  2393. fi
  2394. rm -f conftest*
  2395. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2396. echo "$ac_t""yes" 1>&6
  2397. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2398. cat >> confdefs.h <<EOF
  2399. #define $ac_tr_hdr 1
  2400. EOF
  2401. else
  2402. echo "$ac_t""no" 1>&6
  2403. fi
  2404. done
  2405. for ac_hdr in sys/ioctl.h sys/mtio.h sys/resource.h sys/time.h
  2406. do
  2407. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2408. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2409. echo "configure:2931: checking for $ac_hdr" >&5
  2410. cat > conftest.$ac_ext <<EOF
  2411. #line 2934 "configure"
  2412. #include "confdefs.h"
  2413. #include <$ac_hdr>
  2414. EOF
  2415. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2416. { (eval echo configure:2939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2417. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2418. if test -z "$ac_err"; then
  2419. rm -rf conftest*
  2420. eval "ac_cv_header_$ac_safe=yes"
  2421. else
  2422. echo "$ac_err" >&5
  2423. echo "configure: failed program was:" >&5
  2424. cat conftest.$ac_ext >&5
  2425. rm -rf conftest*
  2426. eval "ac_cv_header_$ac_safe=no"
  2427. fi
  2428. rm -f conftest*
  2429. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2430. echo "$ac_t""yes" 1>&6
  2431. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2432. cat >> confdefs.h <<EOF
  2433. #define $ac_tr_hdr 1
  2434. EOF
  2435. else
  2436. echo "$ac_t""no" 1>&6
  2437. fi
  2438. done
  2439. for ac_hdr in sys/timeb.h sys/types.h sys/utsname.h
  2440. do
  2441. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2442. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2443. echo "configure:2968: checking for $ac_hdr" >&5
  2444. cat > conftest.$ac_ext <<EOF
  2445. #line 2971 "configure"
  2446. #include "confdefs.h"
  2447. #include <$ac_hdr>
  2448. EOF
  2449. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2450. { (eval echo configure:2976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2451. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2452. if test -z "$ac_err"; then
  2453. rm -rf conftest*
  2454. eval "ac_cv_header_$ac_safe=yes"
  2455. else
  2456. echo "$ac_err" >&5
  2457. echo "configure: failed program was:" >&5
  2458. cat conftest.$ac_ext >&5
  2459. rm -rf conftest*
  2460. eval "ac_cv_header_$ac_safe=no"
  2461. fi
  2462. rm -f conftest*
  2463. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2464. echo "$ac_t""yes" 1>&6
  2465. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2466. cat >> confdefs.h <<EOF
  2467. #define $ac_tr_hdr 1
  2468. EOF
  2469. else
  2470. echo "$ac_t""no" 1>&6
  2471. fi
  2472. done
  2473. for ac_hdr in libintl.h iconv.h
  2474. do
  2475. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2476. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2477. echo "configure:3005: checking for $ac_hdr" >&5
  2478. cat > conftest.$ac_ext <<EOF
  2479. #line 3008 "configure"
  2480. #include "confdefs.h"
  2481. #include <$ac_hdr>
  2482. EOF
  2483. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2484. { (eval echo configure:3013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2485. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2486. if test -z "$ac_err"; then
  2487. rm -rf conftest*
  2488. eval "ac_cv_header_$ac_safe=yes"
  2489. else
  2490. echo "$ac_err" >&5
  2491. echo "configure: failed program was:" >&5
  2492. cat conftest.$ac_ext >&5
  2493. rm -rf conftest*
  2494. eval "ac_cv_header_$ac_safe=no"
  2495. fi
  2496. rm -f conftest*
  2497. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2498. echo "$ac_t""yes" 1>&6
  2499. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2500. cat >> confdefs.h <<EOF
  2501. #define $ac_tr_hdr 1
  2502. EOF
  2503. else
  2504. echo "$ac_t""no" 1>&6
  2505. fi
  2506. done
  2507. for ac_hdr in langinfo.h
  2508. do
  2509. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2510. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2511. echo "configure:3042: checking for $ac_hdr" >&5
  2512. cat > conftest.$ac_ext <<EOF
  2513. #line 3045 "configure"
  2514. #include "confdefs.h"
  2515. #include <$ac_hdr>
  2516. EOF
  2517. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2518. { (eval echo configure:3050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2519. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2520. if test -z "$ac_err"; then
  2521. rm -rf conftest*
  2522. eval "ac_cv_header_$ac_safe=yes"
  2523. else
  2524. echo "$ac_err" >&5
  2525. echo "configure: failed program was:" >&5
  2526. cat conftest.$ac_ext >&5
  2527. rm -rf conftest*
  2528. eval "ac_cv_header_$ac_safe=no"
  2529. fi
  2530. rm -f conftest*
  2531. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2532. echo "$ac_t""yes" 1>&6
  2533. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2534. cat >> confdefs.h <<EOF
  2535. #define $ac_tr_hdr 1
  2536. EOF
  2537. else
  2538. echo "$ac_t""no" 1>&6
  2539. fi
  2540. done
  2541. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  2542. echo "configure:3076: checking whether time.h and sys/time.h may both be included" >&5
  2543. cat > conftest.$ac_ext <<EOF
  2544. #line 3079 "configure"
  2545. #include "confdefs.h"
  2546. #include <sys/types.h>
  2547. #include <sys/time.h>
  2548. #include <time.h>
  2549. int main() {
  2550. struct tm *tp;
  2551. ; return 0; }
  2552. EOF
  2553. if { (eval echo configure:3088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2554. rm -rf conftest*
  2555. ac_cv_header_time=yes
  2556. else
  2557. echo "configure: failed program was:" >&5
  2558. cat conftest.$ac_ext >&5
  2559. rm -rf conftest*
  2560. ac_cv_header_time=no
  2561. fi
  2562. rm -f conftest*
  2563. echo "$ac_t""$ac_cv_header_time" 1>&6
  2564. if test $ac_cv_header_time = yes; then
  2565. cat >> confdefs.h <<\EOF
  2566. #define TIME_WITH_SYS_TIME 1
  2567. EOF
  2568. fi
  2569. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  2570. echo "configure:3108: checking for off_t" >&5
  2571. cat > conftest.$ac_ext <<EOF
  2572. #line 3111 "configure"
  2573. #include "confdefs.h"
  2574. #include <sys/types.h>
  2575. #if STDC_HEADERS
  2576. #include <stdlib.h>
  2577. #include <stddef.h>
  2578. #endif
  2579. EOF
  2580. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2581. egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2582. rm -rf conftest*
  2583. ac_cv_type_off_t=yes
  2584. else
  2585. rm -rf conftest*
  2586. ac_cv_type_off_t=no
  2587. fi
  2588. rm -f conftest*
  2589. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  2590. if test $ac_cv_type_off_t = no; then
  2591. cat >> confdefs.h <<\EOF
  2592. #define off_t long
  2593. EOF
  2594. fi
  2595. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  2596. echo "configure:3138: checking for uid_t in sys/types.h" >&5
  2597. cat > conftest.$ac_ext <<EOF
  2598. #line 3141 "configure"
  2599. #include "confdefs.h"
  2600. #include <sys/types.h>
  2601. EOF
  2602. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2603. egrep "uid_t" >/dev/null 2>&1; then
  2604. rm -rf conftest*
  2605. ac_cv_type_uid_t=yes
  2606. else
  2607. rm -rf conftest*
  2608. ac_cv_type_uid_t=no
  2609. fi
  2610. rm -f conftest*
  2611. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  2612. if test $ac_cv_type_uid_t = no; then
  2613. cat >> confdefs.h <<\EOF
  2614. #define uid_t int
  2615. EOF
  2616. cat >> confdefs.h <<\EOF
  2617. #define gid_t int
  2618. EOF
  2619. fi
  2620. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  2621. echo "configure:3169: checking return type of signal handlers" >&5
  2622. cat > conftest.$ac_ext <<EOF
  2623. #line 3172 "configure"
  2624. #include "confdefs.h"
  2625. #include <sys/types.h>
  2626. #include <signal.h>
  2627. #ifdef signal
  2628. #undef signal
  2629. #endif
  2630. #ifdef __cplusplus
  2631. extern "C" void (*signal (int, void (*)(int)))(int);
  2632. #else
  2633. void (*signal ()) ();
  2634. #endif
  2635. int main() {
  2636. int i;
  2637. ; return 0; }
  2638. EOF
  2639. if { (eval echo configure:3189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2640. rm -rf conftest*
  2641. ac_cv_type_signal=void
  2642. else
  2643. echo "configure: failed program was:" >&5
  2644. cat conftest.$ac_ext >&5
  2645. rm -rf conftest*
  2646. ac_cv_type_signal=int
  2647. fi
  2648. rm -f conftest*
  2649. echo "$ac_t""$ac_cv_type_signal" 1>&6
  2650. cat >> confdefs.h <<EOF
  2651. #define RETSIGTYPE $ac_cv_type_signal
  2652. EOF
  2653. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  2654. echo "configure:3207: checking for Cygwin environment" >&5
  2655. cat > conftest.$ac_ext <<EOF
  2656. #line 3210 "configure"
  2657. #include "confdefs.h"
  2658. int main() {
  2659. #ifndef __CYGWIN__
  2660. #define __CYGWIN__ __CYGWIN32__
  2661. #endif
  2662. return __CYGWIN__;
  2663. ; return 0; }
  2664. EOF
  2665. if { (eval echo configure:3221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2666. rm -rf conftest*
  2667. ac_cv_cygwin=yes
  2668. else
  2669. echo "configure: failed program was:" >&5
  2670. cat conftest.$ac_ext >&5
  2671. rm -rf conftest*
  2672. ac_cv_cygwin=no
  2673. fi
  2674. rm -f conftest*
  2675. rm -f conftest*
  2676. echo "$ac_t""$ac_cv_cygwin" 1>&6
  2677. CYGWIN=
  2678. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  2679. for ac_func in ftime gethostname gettimeofday lseek nice time uname
  2680. do
  2681. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2682. echo "configure:3239: checking for $ac_func" >&5
  2683. cat > conftest.$ac_ext <<EOF
  2684. #line 3242 "configure"
  2685. #include "confdefs.h"
  2686. /* System header to define __stub macros and hopefully few prototypes,
  2687. which can conflict with char $ac_func(); below. */
  2688. #include <assert.h>
  2689. /* Override any gcc2 internal prototype to avoid an error. */
  2690. /* We use char because int might match the return type of a gcc2
  2691. builtin and then its argument prototype would still apply. */
  2692. char $ac_func();
  2693. int main() {
  2694. /* The GNU C library defines this for functions which it implements
  2695. to always fail with ENOSYS. Some functions are actually named
  2696. something starting with __ and the normal name is an alias. */
  2697. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2698. choke me
  2699. #else
  2700. $ac_func();
  2701. #endif
  2702. ; return 0; }
  2703. EOF
  2704. if { (eval echo configure:3265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2705. rm -rf conftest*
  2706. eval "ac_cv_func_$ac_func=yes"
  2707. else
  2708. echo "configure: failed program was:" >&5
  2709. cat conftest.$ac_ext >&5
  2710. rm -rf conftest*
  2711. eval "ac_cv_func_$ac_func=no"
  2712. fi
  2713. rm -f conftest*
  2714. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2715. echo "$ac_t""yes" 1>&6
  2716. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2717. cat >> confdefs.h <<EOF
  2718. #define $ac_tr_func 1
  2719. EOF
  2720. else
  2721. echo "$ac_t""no" 1>&6
  2722. fi
  2723. done
  2724. for ac_func in seteuid setpriority setreuid setruid
  2725. do
  2726. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2727. echo "configure:3291: checking for $ac_func" >&5
  2728. cat > conftest.$ac_ext <<EOF
  2729. #line 3294 "configure"
  2730. #include "confdefs.h"
  2731. /* System header to define __stub macros and hopefully few prototypes,
  2732. which can conflict with char $ac_func(); below. */
  2733. #include <assert.h>
  2734. /* Override any gcc2 internal prototype to avoid an error. */
  2735. /* We use char because int might match the return type of a gcc2
  2736. builtin and then its argument prototype would still apply. */
  2737. char $ac_func();
  2738. int main() {
  2739. /* The GNU C library defines this for functions which it implements
  2740. to always fail with ENOSYS. Some functions are actually named
  2741. something starting with __ and the normal name is an alias. */
  2742. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2743. choke me
  2744. #else
  2745. $ac_func();
  2746. #endif
  2747. ; return 0; }
  2748. EOF
  2749. if { (eval echo configure:3317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2750. rm -rf conftest*
  2751. eval "ac_cv_func_$ac_func=yes"
  2752. else
  2753. echo "configure: failed program was:" >&5
  2754. cat conftest.$ac_ext >&5
  2755. rm -rf conftest*
  2756. eval "ac_cv_func_$ac_func=no"
  2757. fi
  2758. rm -f conftest*
  2759. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2760. echo "$ac_t""yes" 1>&6
  2761. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2762. cat >> confdefs.h <<EOF
  2763. #define $ac_tr_func 1
  2764. EOF
  2765. else
  2766. echo "$ac_t""no" 1>&6
  2767. fi
  2768. done
  2769. for ac_func in drand48
  2770. do
  2771. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2772. echo "configure:3343: checking for $ac_func" >&5
  2773. cat > conftest.$ac_ext <<EOF
  2774. #line 3346 "configure"
  2775. #include "confdefs.h"
  2776. /* System header to define __stub macros and hopefully few prototypes,
  2777. which can conflict with char $ac_func(); below. */
  2778. #include <assert.h>
  2779. /* Override any gcc2 internal prototype to avoid an error. */
  2780. /* We use char because int might match the return type of a gcc2
  2781. builtin and then its argument prototype would still apply. */
  2782. char $ac_func();
  2783. int main() {
  2784. /* The GNU C library defines this for functions which it implements
  2785. to always fail with ENOSYS. Some functions are actually named
  2786. something starting with __ and the normal name is an alias. */
  2787. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2788. choke me
  2789. #else
  2790. $ac_func();
  2791. #endif
  2792. ; return 0; }
  2793. EOF
  2794. if { (eval echo configure:3369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2795. rm -rf conftest*
  2796. eval "ac_cv_func_$ac_func=yes"
  2797. else
  2798. echo "configure: failed program was:" >&5
  2799. cat conftest.$ac_ext >&5
  2800. rm -rf conftest*
  2801. eval "ac_cv_func_$ac_func=no"
  2802. fi
  2803. rm -f conftest*
  2804. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2805. echo "$ac_t""yes" 1>&6
  2806. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2807. cat >> confdefs.h <<EOF
  2808. #define $ac_tr_func 1
  2809. EOF
  2810. else
  2811. echo "$ac_t""no" 1>&6
  2812. fi
  2813. done
  2814. for ac_func in putenv setenv
  2815. do
  2816. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2817. echo "configure:3395: checking for $ac_func" >&5
  2818. cat > conftest.$ac_ext <<EOF
  2819. #line 3398 "configure"
  2820. #include "confdefs.h"
  2821. /* System header to define __stub macros and hopefully few prototypes,
  2822. which can conflict with char $ac_func(); below. */
  2823. #include <assert.h>
  2824. /* Override any gcc2 internal prototype to avoid an error. */
  2825. /* We use char because int might match the return type of a gcc2
  2826. builtin and then its argument prototype would still apply. */
  2827. char $ac_func();
  2828. int main() {
  2829. /* The GNU C library defines this for functions which it implements
  2830. to always fail with ENOSYS. Some functions are actually named
  2831. something starting with __ and the normal name is an alias. */
  2832. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2833. choke me
  2834. #else
  2835. $ac_func();
  2836. #endif
  2837. ; return 0; }
  2838. EOF
  2839. if { (eval echo configure:3421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2840. rm -rf conftest*
  2841. eval "ac_cv_func_$ac_func=yes"
  2842. else
  2843. echo "configure: failed program was:" >&5
  2844. cat conftest.$ac_ext >&5
  2845. rm -rf conftest*
  2846. eval "ac_cv_func_$ac_func=no"
  2847. fi
  2848. rm -f conftest*
  2849. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2850. echo "$ac_t""yes" 1>&6
  2851. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2852. cat >> confdefs.h <<EOF
  2853. #define $ac_tr_func 1
  2854. EOF
  2855. else
  2856. echo "$ac_t""no" 1>&6
  2857. fi
  2858. done
  2859. for ac_func in nanosleep
  2860. do
  2861. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2862. echo "configure:3447: checking for $ac_func" >&5
  2863. cat > conftest.$ac_ext <<EOF
  2864. #line 3450 "configure"
  2865. #include "confdefs.h"
  2866. /* System header to define __stub macros and hopefully few prototypes,
  2867. which can conflict with char $ac_func(); below. */
  2868. #include <assert.h>
  2869. /* Override any gcc2 internal prototype to avoid an error. */
  2870. /* We use char because int might match the return type of a gcc2
  2871. builtin and then its argument prototype would still apply. */
  2872. char $ac_func();
  2873. int main() {
  2874. /* The GNU C library defines this for functions which it implements
  2875. to always fail with ENOSYS. Some functions are actually named
  2876. something starting with __ and the normal name is an alias. */
  2877. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2878. choke me
  2879. #else
  2880. $ac_func();
  2881. #endif
  2882. ; return 0; }
  2883. EOF
  2884. if { (eval echo configure:3473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2885. rm -rf conftest*
  2886. eval "ac_cv_func_$ac_func=yes"
  2887. else
  2888. echo "configure: failed program was:" >&5
  2889. cat conftest.$ac_ext >&5
  2890. rm -rf conftest*
  2891. eval "ac_cv_func_$ac_func=no"
  2892. fi
  2893. rm -f conftest*
  2894. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2895. echo "$ac_t""yes" 1>&6
  2896. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2897. cat >> confdefs.h <<EOF
  2898. #define $ac_tr_func 1
  2899. EOF
  2900. else
  2901. echo "$ac_t""no" 1>&6
  2902. fi
  2903. done
  2904. if test "$cross_compiling" != "yes" ; then
  2905. echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
  2906. echo "configure:3498: checking whether setpgrp takes no argument" >&5
  2907. if test "$cross_compiling" = yes; then
  2908. { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
  2909. else
  2910. cat > conftest.$ac_ext <<EOF
  2911. #line 3504 "configure"
  2912. #include "confdefs.h"
  2913. #ifdef HAVE_UNISTD_H
  2914. #include <unistd.h>
  2915. #endif
  2916. /*
  2917. * If this system has a BSD-style setpgrp, which takes arguments, exit
  2918. * successfully.
  2919. */
  2920. main()
  2921. {
  2922. if (setpgrp(1,1) == -1)
  2923. exit(0);
  2924. else
  2925. exit(1);
  2926. }
  2927. EOF
  2928. if { (eval echo configure:3524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2929. then
  2930. ac_cv_func_setpgrp_void=no
  2931. else
  2932. echo "configure: failed program was:" >&5
  2933. cat conftest.$ac_ext >&5
  2934. rm -fr conftest*
  2935. ac_cv_func_setpgrp_void=yes
  2936. fi
  2937. rm -fr conftest*
  2938. fi
  2939. echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
  2940. if test $ac_cv_func_setpgrp_void = yes; then
  2941. cat >> confdefs.h <<\EOF
  2942. #define SETPGRP_VOID 1
  2943. EOF
  2944. fi
  2945. else
  2946. CROSS_COMPILING=1
  2947. fi
  2948. echo $ac_n "checking for long long int""... $ac_c" 1>&6
  2949. echo "configure:3552: checking for long long int" >&5
  2950. cat > conftest.$ac_ext <<EOF
  2951. #line 3554 "configure"
  2952. #include "confdefs.h"
  2953. int main() {
  2954. long long int x;
  2955. ; return 0; }
  2956. EOF
  2957. if { (eval echo configure:3561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2958. rm -rf conftest*
  2959. echo "$ac_t""yes" 1>&6
  2960. cat >> confdefs.h <<\EOF
  2961. #define HAVE_LONG_LONG_INT 1
  2962. EOF
  2963. else
  2964. echo "configure: failed program was:" >&5
  2965. cat conftest.$ac_ext >&5
  2966. rm -rf conftest*
  2967. echo "$ac_t""no" 1>&6
  2968. fi
  2969. rm -f conftest*
  2970. echo $ac_n "checking for W11""... $ac_c" 1>&6
  2971. echo "configure:3581: checking for W11" >&5
  2972. case "$enable_w11" in
  2973. yes|no) echo "$ac_t"""$enable_w11"" 1>&6 ;;
  2974. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  2975. esac
  2976. USE_X11=
  2977. USE_W11=
  2978. XLIB=
  2979. XTLIB=
  2980. if test "$enable_w11" = "yes" ; then
  2981. X_CFLAGS=-I${SRCDIR}/display/drivers/windows/libW11
  2982. X_LIBS='-L$(LIBDIR)'
  2983. USE_W11="1"
  2984. USE_X11="1"
  2985. XLIB=-lX11
  2986. CFLAGS="$CFLAGS -D__W98__"
  2987. else
  2988. # If we find X, set shell vars x_includes and x_libraries to the
  2989. # paths, otherwise set no_x=yes.
  2990. # Uses ac_ vars as temps to allow command line to override cache and checks.
  2991. # --without-x overrides everything else, but does not touch the cache.
  2992. echo $ac_n "checking for X""... $ac_c" 1>&6
  2993. echo "configure:3609: checking for X" >&5
  2994. # Check whether --with-x or --without-x was given.
  2995. if test "${with_x+set}" = set; then
  2996. withval="$with_x"
  2997. :
  2998. fi
  2999. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  3000. if test "x$with_x" = xno; then
  3001. # The user explicitly disabled X.
  3002. have_x=disabled
  3003. else
  3004. if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  3005. # Both variables are already set.
  3006. have_x=yes
  3007. else
  3008. # One or both of the vars are not set, and there is no cached value.
  3009. ac_x_includes=NO ac_x_libraries=NO
  3010. rm -fr conftestdir
  3011. if mkdir conftestdir; then
  3012. cd conftestdir
  3013. # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  3014. cat > Imakefile <<'EOF'
  3015. acfindx:
  3016. @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  3017. EOF
  3018. if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  3019. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3020. eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  3021. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  3022. for ac_extension in a so sl; do
  3023. if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  3024. test -f $ac_im_libdir/libX11.$ac_extension; then
  3025. ac_im_usrlibdir=$ac_im_libdir; break
  3026. fi
  3027. done
  3028. # Screen out bogus values from the imake configuration. They are
  3029. # bogus both because they are the default anyway, and because
  3030. # using them would break gcc on systems where it needs fixed includes.
  3031. case "$ac_im_incroot" in
  3032. /usr/include) ;;
  3033. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
  3034. esac
  3035. case "$ac_im_usrlibdir" in
  3036. /usr/lib | /lib) ;;
  3037. *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
  3038. esac
  3039. fi
  3040. cd ..
  3041. rm -fr conftestdir
  3042. fi
  3043. if test "$ac_x_includes" = NO; then
  3044. # Guess where to find include files, by looking for this one X11 .h file.
  3045. test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  3046. # First, try using that file with no special directory specified.
  3047. cat > conftest.$ac_ext <<EOF
  3048. #line 3669 "configure"
  3049. #include "confdefs.h"
  3050. #include <$x_direct_test_include>
  3051. EOF
  3052. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3053. { (eval echo configure:3674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3054. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3055. if test -z "$ac_err"; then
  3056. rm -rf conftest*
  3057. # We can compile using X headers with no special include directory.
  3058. ac_x_includes=
  3059. else
  3060. echo "$ac_err" >&5
  3061. echo "configure: failed program was:" >&5
  3062. cat conftest.$ac_ext >&5
  3063. rm -rf conftest*
  3064. # Look for the header file in a standard set of common directories.
  3065. # Check X11 before X11Rn because it is often a symlink to the current release.
  3066. for ac_dir in \
  3067. /usr/X11/include \
  3068. /usr/X11R6/include \
  3069. /usr/X11R5/include \
  3070. /usr/X11R4/include \
  3071. \
  3072. /usr/include/X11 \
  3073. /usr/include/X11R6 \
  3074. /usr/include/X11R5 \
  3075. /usr/include/X11R4 \
  3076. \
  3077. /usr/local/X11/include \
  3078. /usr/local/X11R6/include \
  3079. /usr/local/X11R5/include \
  3080. /usr/local/X11R4/include \
  3081. \
  3082. /usr/local/include/X11 \
  3083. /usr/local/include/X11R6 \
  3084. /usr/local/include/X11R5 \
  3085. /usr/local/include/X11R4 \
  3086. \
  3087. /usr/X386/include \
  3088. /usr/x386/include \
  3089. /usr/XFree86/include/X11 \
  3090. \
  3091. /usr/include \
  3092. /usr/local/include \
  3093. /usr/unsupported/include \
  3094. /usr/athena/include \
  3095. /usr/local/x11r5/include \
  3096. /usr/lpp/Xamples/include \
  3097. \
  3098. /usr/openwin/include \
  3099. /usr/openwin/share/include \
  3100. ; \
  3101. do
  3102. if test -r "$ac_dir/$x_direct_test_include"; then
  3103. ac_x_includes=$ac_dir
  3104. break
  3105. fi
  3106. done
  3107. fi
  3108. rm -f conftest*
  3109. fi # $ac_x_includes = NO
  3110. if test "$ac_x_libraries" = NO; then
  3111. # Check for the libraries.
  3112. test -z "$x_direct_test_library" && x_direct_test_library=Xt
  3113. test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  3114. # See if we find them without any special options.
  3115. # Don't add to $LIBS permanently.
  3116. ac_save_LIBS="$LIBS"
  3117. LIBS="-l$x_direct_test_library $LIBS"
  3118. cat > conftest.$ac_ext <<EOF
  3119. #line 3743 "configure"
  3120. #include "confdefs.h"
  3121. int main() {
  3122. ${x_direct_test_function}()
  3123. ; return 0; }
  3124. EOF
  3125. if { (eval echo configure:3750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3126. rm -rf conftest*
  3127. LIBS="$ac_save_LIBS"
  3128. # We can link X programs with no special library path.
  3129. ac_x_libraries=
  3130. else
  3131. echo "configure: failed program was:" >&5
  3132. cat conftest.$ac_ext >&5
  3133. rm -rf conftest*
  3134. LIBS="$ac_save_LIBS"
  3135. # First see if replacing the include by lib works.
  3136. # Check X11 before X11Rn because it is often a symlink to the current release.
  3137. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  3138. /usr/X11/lib \
  3139. /usr/X11R6/lib \
  3140. /usr/X11R5/lib \
  3141. /usr/X11R4/lib \
  3142. \
  3143. /usr/lib/X11 \
  3144. /usr/lib/X11R6 \
  3145. /usr/lib/X11R5 \
  3146. /usr/lib/X11R4 \
  3147. \
  3148. /usr/local/X11/lib \
  3149. /usr/local/X11R6/lib \
  3150. /usr/local/X11R5/lib \
  3151. /usr/local/X11R4/lib \
  3152. \
  3153. /usr/local/lib/X11 \
  3154. /usr/local/lib/X11R6 \
  3155. /usr/local/lib/X11R5 \
  3156. /usr/local/lib/X11R4 \
  3157. \
  3158. /usr/X386/lib \
  3159. /usr/x386/lib \
  3160. /usr/XFree86/lib/X11 \
  3161. \
  3162. /usr/lib \
  3163. /usr/local/lib \
  3164. /usr/unsupported/lib \
  3165. /usr/athena/lib \
  3166. /usr/local/x11r5/lib \
  3167. /usr/lpp/Xamples/lib \
  3168. /lib/usr/lib/X11 \
  3169. \
  3170. /usr/openwin/lib \
  3171. /usr/openwin/share/lib \
  3172. ; \
  3173. do
  3174. for ac_extension in a so sl; do
  3175. if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  3176. ac_x_libraries=$ac_dir
  3177. break 2
  3178. fi
  3179. done
  3180. done
  3181. fi
  3182. rm -f conftest*
  3183. fi # $ac_x_libraries = NO
  3184. if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
  3185. # Didn't find X anywhere. Cache the known absence of X.
  3186. ac_cv_have_x="have_x=no"
  3187. else
  3188. # Record where we found X for the cache.
  3189. ac_cv_have_x="have_x=yes \
  3190. ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  3191. fi
  3192. fi
  3193. eval "$ac_cv_have_x"
  3194. fi # $with_x != no
  3195. if test "$have_x" != yes; then
  3196. echo "$ac_t""$have_x" 1>&6
  3197. no_x=yes
  3198. else
  3199. # If each of the values was on the command line, it overrides each guess.
  3200. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  3201. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  3202. # Update the cache value to reflect the command line values.
  3203. ac_cv_have_x="have_x=yes \
  3204. ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  3205. echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
  3206. fi
  3207. if test "$no_x" = yes; then
  3208. # Not all programs may use this symbol, but it does not hurt to define it.
  3209. cat >> confdefs.h <<\EOF
  3210. #define X_DISPLAY_MISSING 1
  3211. EOF
  3212. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  3213. else
  3214. if test -n "$x_includes"; then
  3215. X_CFLAGS="$X_CFLAGS -I$x_includes"
  3216. fi
  3217. # It would also be nice to do this for all -L options, not just this one.
  3218. if test -n "$x_libraries"; then
  3219. X_LIBS="$X_LIBS -L$x_libraries"
  3220. # For Solaris; some versions of Sun CC require a space after -R and
  3221. # others require no space. Words are not sufficient . . . .
  3222. case "`(uname -sr) 2>/dev/null`" in
  3223. "SunOS 5"*)
  3224. echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
  3225. echo "configure:3855: checking whether -R must be followed by a space" >&5
  3226. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
  3227. cat > conftest.$ac_ext <<EOF
  3228. #line 3858 "configure"
  3229. #include "confdefs.h"
  3230. int main() {
  3231. ; return 0; }
  3232. EOF
  3233. if { (eval echo configure:3865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3234. rm -rf conftest*
  3235. ac_R_nospace=yes
  3236. else
  3237. echo "configure: failed program was:" >&5
  3238. cat conftest.$ac_ext >&5
  3239. rm -rf conftest*
  3240. ac_R_nospace=no
  3241. fi
  3242. rm -f conftest*
  3243. if test $ac_R_nospace = yes; then
  3244. echo "$ac_t""no" 1>&6
  3245. X_LIBS="$X_LIBS -R$x_libraries"
  3246. else
  3247. LIBS="$ac_xsave_LIBS -R $x_libraries"
  3248. cat > conftest.$ac_ext <<EOF
  3249. #line 3881 "configure"
  3250. #include "confdefs.h"
  3251. int main() {
  3252. ; return 0; }
  3253. EOF
  3254. if { (eval echo configure:3888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3255. rm -rf conftest*
  3256. ac_R_space=yes
  3257. else
  3258. echo "configure: failed program was:" >&5
  3259. cat conftest.$ac_ext >&5
  3260. rm -rf conftest*
  3261. ac_R_space=no
  3262. fi
  3263. rm -f conftest*
  3264. if test $ac_R_space = yes; then
  3265. echo "$ac_t""yes" 1>&6
  3266. X_LIBS="$X_LIBS -R $x_libraries"
  3267. else
  3268. echo "$ac_t""neither works" 1>&6
  3269. fi
  3270. fi
  3271. LIBS="$ac_xsave_LIBS"
  3272. esac
  3273. fi
  3274. # Check for system-dependent libraries X programs must link with.
  3275. # Do this before checking for the system-independent R6 libraries
  3276. # (-lICE), since we may need -lsocket or whatever for X linking.
  3277. if test "$ISC" = yes; then
  3278. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  3279. else
  3280. # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  3281. # libraries were built with DECnet support. And karl@cs.umb.edu says
  3282. # the Alpha needs dnet_stub (dnet does not exist).
  3283. echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
  3284. echo "configure:3920: checking for dnet_ntoa in -ldnet" >&5
  3285. ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  3286. ac_save_LIBS="$LIBS"
  3287. LIBS="-ldnet $LIBS"
  3288. cat > conftest.$ac_ext <<EOF
  3289. #line 3926 "configure"
  3290. #include "confdefs.h"
  3291. /* Override any gcc2 internal prototype to avoid an error. */
  3292. /* We use char because int might match the return type of a gcc2
  3293. builtin and then its argument prototype would still apply. */
  3294. char dnet_ntoa();
  3295. int main() {
  3296. dnet_ntoa()
  3297. ; return 0; }
  3298. EOF
  3299. if { (eval echo configure:3937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3300. rm -rf conftest*
  3301. eval "ac_cv_lib_$ac_lib_var=yes"
  3302. else
  3303. echo "configure: failed program was:" >&5
  3304. cat conftest.$ac_ext >&5
  3305. rm -rf conftest*
  3306. eval "ac_cv_lib_$ac_lib_var=no"
  3307. fi
  3308. rm -f conftest*
  3309. LIBS="$ac_save_LIBS"
  3310. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3311. echo "$ac_t""yes" 1>&6
  3312. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  3313. else
  3314. echo "$ac_t""no" 1>&6
  3315. fi
  3316. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  3317. echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
  3318. echo "configure:3958: checking for dnet_ntoa in -ldnet_stub" >&5
  3319. ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  3320. ac_save_LIBS="$LIBS"
  3321. LIBS="-ldnet_stub $LIBS"
  3322. cat > conftest.$ac_ext <<EOF
  3323. #line 3964 "configure"
  3324. #include "confdefs.h"
  3325. /* Override any gcc2 internal prototype to avoid an error. */
  3326. /* We use char because int might match the return type of a gcc2
  3327. builtin and then its argument prototype would still apply. */
  3328. char dnet_ntoa();
  3329. int main() {
  3330. dnet_ntoa()
  3331. ; return 0; }
  3332. EOF
  3333. if { (eval echo configure:3975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3334. rm -rf conftest*
  3335. eval "ac_cv_lib_$ac_lib_var=yes"
  3336. else
  3337. echo "configure: failed program was:" >&5
  3338. cat conftest.$ac_ext >&5
  3339. rm -rf conftest*
  3340. eval "ac_cv_lib_$ac_lib_var=no"
  3341. fi
  3342. rm -f conftest*
  3343. LIBS="$ac_save_LIBS"
  3344. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3345. echo "$ac_t""yes" 1>&6
  3346. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  3347. else
  3348. echo "$ac_t""no" 1>&6
  3349. fi
  3350. fi
  3351. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  3352. # to get the SysV transport functions.
  3353. # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
  3354. # needs -lnsl.
  3355. # The nsl library prevents programs from opening the X display
  3356. # on Irix 5.2, according to dickey@clark.net.
  3357. echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
  3358. echo "configure:4003: checking for gethostbyname" >&5
  3359. cat > conftest.$ac_ext <<EOF
  3360. #line 4006 "configure"
  3361. #include "confdefs.h"
  3362. /* System header to define __stub macros and hopefully few prototypes,
  3363. which can conflict with char gethostbyname(); below. */
  3364. #include <assert.h>
  3365. /* Override any gcc2 internal prototype to avoid an error. */
  3366. /* We use char because int might match the return type of a gcc2
  3367. builtin and then its argument prototype would still apply. */
  3368. char gethostbyname();
  3369. int main() {
  3370. /* The GNU C library defines this for functions which it implements
  3371. to always fail with ENOSYS. Some functions are actually named
  3372. something starting with __ and the normal name is an alias. */
  3373. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  3374. choke me
  3375. #else
  3376. gethostbyname();
  3377. #endif
  3378. ; return 0; }
  3379. EOF
  3380. if { (eval echo configure:4029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3381. rm -rf conftest*
  3382. eval "ac_cv_func_gethostbyname=yes"
  3383. else
  3384. echo "configure: failed program was:" >&5
  3385. cat conftest.$ac_ext >&5
  3386. rm -rf conftest*
  3387. eval "ac_cv_func_gethostbyname=no"
  3388. fi
  3389. rm -f conftest*
  3390. if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  3391. echo "$ac_t""yes" 1>&6
  3392. :
  3393. else
  3394. echo "$ac_t""no" 1>&6
  3395. fi
  3396. if test $ac_cv_func_gethostbyname = no; then
  3397. echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  3398. echo "configure:4049: checking for gethostbyname in -lnsl" >&5
  3399. ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  3400. ac_save_LIBS="$LIBS"
  3401. LIBS="-lnsl $LIBS"
  3402. cat > conftest.$ac_ext <<EOF
  3403. #line 4055 "configure"
  3404. #include "confdefs.h"
  3405. /* Override any gcc2 internal prototype to avoid an error. */
  3406. /* We use char because int might match the return type of a gcc2
  3407. builtin and then its argument prototype would still apply. */
  3408. char gethostbyname();
  3409. int main() {
  3410. gethostbyname()
  3411. ; return 0; }
  3412. EOF
  3413. if { (eval echo configure:4066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3414. rm -rf conftest*
  3415. eval "ac_cv_lib_$ac_lib_var=yes"
  3416. else
  3417. echo "configure: failed program was:" >&5
  3418. cat conftest.$ac_ext >&5
  3419. rm -rf conftest*
  3420. eval "ac_cv_lib_$ac_lib_var=no"
  3421. fi
  3422. rm -f conftest*
  3423. LIBS="$ac_save_LIBS"
  3424. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3425. echo "$ac_t""yes" 1>&6
  3426. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  3427. else
  3428. echo "$ac_t""no" 1>&6
  3429. fi
  3430. fi
  3431. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  3432. # socket/setsockopt and other routines are undefined under SCO ODT
  3433. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  3434. # on later versions), says simon@lia.di.epfl.ch: it contains
  3435. # gethostby* variants that don't use the nameserver (or something).
  3436. # -lsocket must be given before -lnsl if both are needed.
  3437. # We assume that if connect needs -lnsl, so does gethostbyname.
  3438. echo $ac_n "checking for connect""... $ac_c" 1>&6
  3439. echo "configure:4095: checking for connect" >&5
  3440. cat > conftest.$ac_ext <<EOF
  3441. #line 4098 "configure"
  3442. #include "confdefs.h"
  3443. /* System header to define __stub macros and hopefully few prototypes,
  3444. which can conflict with char connect(); below. */
  3445. #include <assert.h>
  3446. /* Override any gcc2 internal prototype to avoid an error. */
  3447. /* We use char because int might match the return type of a gcc2
  3448. builtin and then its argument prototype would still apply. */
  3449. char connect();
  3450. int main() {
  3451. /* The GNU C library defines this for functions which it implements
  3452. to always fail with ENOSYS. Some functions are actually named
  3453. something starting with __ and the normal name is an alias. */
  3454. #if defined (__stub_connect) || defined (__stub___connect)
  3455. choke me
  3456. #else
  3457. connect();
  3458. #endif
  3459. ; return 0; }
  3460. EOF
  3461. if { (eval echo configure:4121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3462. rm -rf conftest*
  3463. eval "ac_cv_func_connect=yes"
  3464. else
  3465. echo "configure: failed program was:" >&5
  3466. cat conftest.$ac_ext >&5
  3467. rm -rf conftest*
  3468. eval "ac_cv_func_connect=no"
  3469. fi
  3470. rm -f conftest*
  3471. if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  3472. echo "$ac_t""yes" 1>&6
  3473. :
  3474. else
  3475. echo "$ac_t""no" 1>&6
  3476. fi
  3477. if test $ac_cv_func_connect = no; then
  3478. echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
  3479. echo "configure:4141: checking for connect in -lsocket" >&5
  3480. ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
  3481. ac_save_LIBS="$LIBS"
  3482. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  3483. cat > conftest.$ac_ext <<EOF
  3484. #line 4147 "configure"
  3485. #include "confdefs.h"
  3486. /* Override any gcc2 internal prototype to avoid an error. */
  3487. /* We use char because int might match the return type of a gcc2
  3488. builtin and then its argument prototype would still apply. */
  3489. char connect();
  3490. int main() {
  3491. connect()
  3492. ; return 0; }
  3493. EOF
  3494. if { (eval echo configure:4158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3495. rm -rf conftest*
  3496. eval "ac_cv_lib_$ac_lib_var=yes"
  3497. else
  3498. echo "configure: failed program was:" >&5
  3499. cat conftest.$ac_ext >&5
  3500. rm -rf conftest*
  3501. eval "ac_cv_lib_$ac_lib_var=no"
  3502. fi
  3503. rm -f conftest*
  3504. LIBS="$ac_save_LIBS"
  3505. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3506. echo "$ac_t""yes" 1>&6
  3507. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  3508. else
  3509. echo "$ac_t""no" 1>&6
  3510. fi
  3511. fi
  3512. # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
  3513. echo $ac_n "checking for remove""... $ac_c" 1>&6
  3514. echo "configure:4181: checking for remove" >&5
  3515. cat > conftest.$ac_ext <<EOF
  3516. #line 4184 "configure"
  3517. #include "confdefs.h"
  3518. /* System header to define __stub macros and hopefully few prototypes,
  3519. which can conflict with char remove(); below. */
  3520. #include <assert.h>
  3521. /* Override any gcc2 internal prototype to avoid an error. */
  3522. /* We use char because int might match the return type of a gcc2
  3523. builtin and then its argument prototype would still apply. */
  3524. char remove();
  3525. int main() {
  3526. /* The GNU C library defines this for functions which it implements
  3527. to always fail with ENOSYS. Some functions are actually named
  3528. something starting with __ and the normal name is an alias. */
  3529. #if defined (__stub_remove) || defined (__stub___remove)
  3530. choke me
  3531. #else
  3532. remove();
  3533. #endif
  3534. ; return 0; }
  3535. EOF
  3536. if { (eval echo configure:4207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3537. rm -rf conftest*
  3538. eval "ac_cv_func_remove=yes"
  3539. else
  3540. echo "configure: failed program was:" >&5
  3541. cat conftest.$ac_ext >&5
  3542. rm -rf conftest*
  3543. eval "ac_cv_func_remove=no"
  3544. fi
  3545. rm -f conftest*
  3546. if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
  3547. echo "$ac_t""yes" 1>&6
  3548. :
  3549. else
  3550. echo "$ac_t""no" 1>&6
  3551. fi
  3552. if test $ac_cv_func_remove = no; then
  3553. echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
  3554. echo "configure:4227: checking for remove in -lposix" >&5
  3555. ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
  3556. ac_save_LIBS="$LIBS"
  3557. LIBS="-lposix $LIBS"
  3558. cat > conftest.$ac_ext <<EOF
  3559. #line 4233 "configure"
  3560. #include "confdefs.h"
  3561. /* Override any gcc2 internal prototype to avoid an error. */
  3562. /* We use char because int might match the return type of a gcc2
  3563. builtin and then its argument prototype would still apply. */
  3564. char remove();
  3565. int main() {
  3566. remove()
  3567. ; return 0; }
  3568. EOF
  3569. if { (eval echo configure:4244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3570. rm -rf conftest*
  3571. eval "ac_cv_lib_$ac_lib_var=yes"
  3572. else
  3573. echo "configure: failed program was:" >&5
  3574. cat conftest.$ac_ext >&5
  3575. rm -rf conftest*
  3576. eval "ac_cv_lib_$ac_lib_var=no"
  3577. fi
  3578. rm -f conftest*
  3579. LIBS="$ac_save_LIBS"
  3580. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3581. echo "$ac_t""yes" 1>&6
  3582. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  3583. else
  3584. echo "$ac_t""no" 1>&6
  3585. fi
  3586. fi
  3587. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  3588. echo $ac_n "checking for shmat""... $ac_c" 1>&6
  3589. echo "configure:4267: checking for shmat" >&5
  3590. cat > conftest.$ac_ext <<EOF
  3591. #line 4270 "configure"
  3592. #include "confdefs.h"
  3593. /* System header to define __stub macros and hopefully few prototypes,
  3594. which can conflict with char shmat(); below. */
  3595. #include <assert.h>
  3596. /* Override any gcc2 internal prototype to avoid an error. */
  3597. /* We use char because int might match the return type of a gcc2
  3598. builtin and then its argument prototype would still apply. */
  3599. char shmat();
  3600. int main() {
  3601. /* The GNU C library defines this for functions which it implements
  3602. to always fail with ENOSYS. Some functions are actually named
  3603. something starting with __ and the normal name is an alias. */
  3604. #if defined (__stub_shmat) || defined (__stub___shmat)
  3605. choke me
  3606. #else
  3607. shmat();
  3608. #endif
  3609. ; return 0; }
  3610. EOF
  3611. if { (eval echo configure:4293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3612. rm -rf conftest*
  3613. eval "ac_cv_func_shmat=yes"
  3614. else
  3615. echo "configure: failed program was:" >&5
  3616. cat conftest.$ac_ext >&5
  3617. rm -rf conftest*
  3618. eval "ac_cv_func_shmat=no"
  3619. fi
  3620. rm -f conftest*
  3621. if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
  3622. echo "$ac_t""yes" 1>&6
  3623. :
  3624. else
  3625. echo "$ac_t""no" 1>&6
  3626. fi
  3627. if test $ac_cv_func_shmat = no; then
  3628. echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
  3629. echo "configure:4313: checking for shmat in -lipc" >&5
  3630. ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
  3631. ac_save_LIBS="$LIBS"
  3632. LIBS="-lipc $LIBS"
  3633. cat > conftest.$ac_ext <<EOF
  3634. #line 4319 "configure"
  3635. #include "confdefs.h"
  3636. /* Override any gcc2 internal prototype to avoid an error. */
  3637. /* We use char because int might match the return type of a gcc2
  3638. builtin and then its argument prototype would still apply. */
  3639. char shmat();
  3640. int main() {
  3641. shmat()
  3642. ; return 0; }
  3643. EOF
  3644. if { (eval echo configure:4330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3645. rm -rf conftest*
  3646. eval "ac_cv_lib_$ac_lib_var=yes"
  3647. else
  3648. echo "configure: failed program was:" >&5
  3649. cat conftest.$ac_ext >&5
  3650. rm -rf conftest*
  3651. eval "ac_cv_lib_$ac_lib_var=no"
  3652. fi
  3653. rm -f conftest*
  3654. LIBS="$ac_save_LIBS"
  3655. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3656. echo "$ac_t""yes" 1>&6
  3657. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  3658. else
  3659. echo "$ac_t""no" 1>&6
  3660. fi
  3661. fi
  3662. fi
  3663. # Check for libraries that X11R6 Xt/Xaw programs need.
  3664. ac_save_LDFLAGS="$LDFLAGS"
  3665. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  3666. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  3667. # check for ICE first), but we must link in the order -lSM -lICE or
  3668. # we get undefined symbols. So assume we have SM if we have ICE.
  3669. # These have to be linked with before -lX11, unlike the other
  3670. # libraries we check for below, so use a different variable.
  3671. # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  3672. echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
  3673. echo "configure:4362: checking for IceConnectionNumber in -lICE" >&5
  3674. ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
  3675. ac_save_LIBS="$LIBS"
  3676. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  3677. cat > conftest.$ac_ext <<EOF
  3678. #line 4368 "configure"
  3679. #include "confdefs.h"
  3680. /* Override any gcc2 internal prototype to avoid an error. */
  3681. /* We use char because int might match the return type of a gcc2
  3682. builtin and then its argument prototype would still apply. */
  3683. char IceConnectionNumber();
  3684. int main() {
  3685. IceConnectionNumber()
  3686. ; return 0; }
  3687. EOF
  3688. if { (eval echo configure:4379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3689. rm -rf conftest*
  3690. eval "ac_cv_lib_$ac_lib_var=yes"
  3691. else
  3692. echo "configure: failed program was:" >&5
  3693. cat conftest.$ac_ext >&5
  3694. rm -rf conftest*
  3695. eval "ac_cv_lib_$ac_lib_var=no"
  3696. fi
  3697. rm -f conftest*
  3698. LIBS="$ac_save_LIBS"
  3699. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3700. echo "$ac_t""yes" 1>&6
  3701. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  3702. else
  3703. echo "$ac_t""no" 1>&6
  3704. fi
  3705. LDFLAGS="$ac_save_LDFLAGS"
  3706. fi
  3707. if test "$no_x" != "yes"; then
  3708. USE_X11="1"
  3709. XLIB=-lX11
  3710. XTLIB=-lXt
  3711. fi
  3712. fi
  3713. # Note that some systems (FreeBSD for example) need an extra library for
  3714. # cuserid
  3715. ac_save_libs="$LIBS"
  3716. LIBS=""
  3717. echo $ac_n "checking for library containing cuserid""... $ac_c" 1>&6
  3718. echo "configure:4419: checking for library containing cuserid" >&5
  3719. ac_func_search_save_LIBS="$LIBS"
  3720. ac_cv_search_cuserid="no"
  3721. cat > conftest.$ac_ext <<EOF
  3722. #line 4424 "configure"
  3723. #include "confdefs.h"
  3724. /* Override any gcc2 internal prototype to avoid an error. */
  3725. /* We use char because int might match the return type of a gcc2
  3726. builtin and then its argument prototype would still apply. */
  3727. char cuserid();
  3728. int main() {
  3729. cuserid()
  3730. ; return 0; }
  3731. EOF
  3732. if { (eval echo configure:4435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3733. rm -rf conftest*
  3734. ac_cv_search_cuserid="none required"
  3735. else
  3736. echo "configure: failed program was:" >&5
  3737. cat conftest.$ac_ext >&5
  3738. fi
  3739. rm -f conftest*
  3740. test "$ac_cv_search_cuserid" = "no" && for i in compat; do
  3741. LIBS="-l$i $ac_func_search_save_LIBS"
  3742. cat > conftest.$ac_ext <<EOF
  3743. #line 4446 "configure"
  3744. #include "confdefs.h"
  3745. /* Override any gcc2 internal prototype to avoid an error. */
  3746. /* We use char because int might match the return type of a gcc2
  3747. builtin and then its argument prototype would still apply. */
  3748. char cuserid();
  3749. int main() {
  3750. cuserid()
  3751. ; return 0; }
  3752. EOF
  3753. if { (eval echo configure:4457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3754. rm -rf conftest*
  3755. ac_cv_search_cuserid="-l$i"
  3756. break
  3757. else
  3758. echo "configure: failed program was:" >&5
  3759. cat conftest.$ac_ext >&5
  3760. fi
  3761. rm -f conftest*
  3762. done
  3763. LIBS="$ac_func_search_save_LIBS"
  3764. echo "$ac_t""$ac_cv_search_cuserid" 1>&6
  3765. if test "$ac_cv_search_cuserid" != "no"; then
  3766. test "$ac_cv_search_cuserid" = "none required" || LIBS="$ac_cv_search_cuserid $LIBS"
  3767. else :
  3768. fi
  3769. DBMIEXTRALIB="$LIBS"
  3770. LIBS="$ac_save_libs"
  3771. for ac_func in asprintf
  3772. do
  3773. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3774. echo "configure:4483: checking for $ac_func" >&5
  3775. cat > conftest.$ac_ext <<EOF
  3776. #line 4486 "configure"
  3777. #include "confdefs.h"
  3778. /* System header to define __stub macros and hopefully few prototypes,
  3779. which can conflict with char $ac_func(); below. */
  3780. #include <assert.h>
  3781. /* Override any gcc2 internal prototype to avoid an error. */
  3782. /* We use char because int might match the return type of a gcc2
  3783. builtin and then its argument prototype would still apply. */
  3784. char $ac_func();
  3785. int main() {
  3786. /* The GNU C library defines this for functions which it implements
  3787. to always fail with ENOSYS. Some functions are actually named
  3788. something starting with __ and the normal name is an alias. */
  3789. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3790. choke me
  3791. #else
  3792. $ac_func();
  3793. #endif
  3794. ; return 0; }
  3795. EOF
  3796. if { (eval echo configure:4509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3797. rm -rf conftest*
  3798. eval "ac_cv_func_$ac_func=yes"
  3799. else
  3800. echo "configure: failed program was:" >&5
  3801. cat conftest.$ac_ext >&5
  3802. rm -rf conftest*
  3803. eval "ac_cv_func_$ac_func=no"
  3804. fi
  3805. rm -f conftest*
  3806. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3807. echo "$ac_t""yes" 1>&6
  3808. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3809. cat >> confdefs.h <<EOF
  3810. #define $ac_tr_func 1
  3811. EOF
  3812. else
  3813. echo "$ac_t""no" 1>&6
  3814. fi
  3815. done
  3816. # Test if mathlib needs -lm flag or is included with libc
  3817. echo $ac_n "checking for atan""... $ac_c" 1>&6
  3818. echo "configure:4536: checking for atan" >&5
  3819. cat > conftest.$ac_ext <<EOF
  3820. #line 4539 "configure"
  3821. #include "confdefs.h"
  3822. /* System header to define __stub macros and hopefully few prototypes,
  3823. which can conflict with char atan(); below. */
  3824. #include <assert.h>
  3825. /* Override any gcc2 internal prototype to avoid an error. */
  3826. /* We use char because int might match the return type of a gcc2
  3827. builtin and then its argument prototype would still apply. */
  3828. char atan();
  3829. int main() {
  3830. /* The GNU C library defines this for functions which it implements
  3831. to always fail with ENOSYS. Some functions are actually named
  3832. something starting with __ and the normal name is an alias. */
  3833. #if defined (__stub_atan) || defined (__stub___atan)
  3834. choke me
  3835. #else
  3836. atan();
  3837. #endif
  3838. ; return 0; }
  3839. EOF
  3840. if { (eval echo configure:4562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3841. rm -rf conftest*
  3842. eval "ac_cv_func_atan=yes"
  3843. else
  3844. echo "configure: failed program was:" >&5
  3845. cat conftest.$ac_ext >&5
  3846. rm -rf conftest*
  3847. eval "ac_cv_func_atan=no"
  3848. fi
  3849. rm -f conftest*
  3850. if eval "test \"`echo '$ac_cv_func_'atan`\" = yes"; then
  3851. echo "$ac_t""yes" 1>&6
  3852. MATHLIB=
  3853. else
  3854. echo "$ac_t""no" 1>&6
  3855. echo $ac_n "checking for atan in -lm""... $ac_c" 1>&6
  3856. echo "configure:4580: checking for atan in -lm" >&5
  3857. ac_lib_var=`echo m'_'atan | sed 'y%./+-%__p_%'`
  3858. ac_save_LIBS="$LIBS"
  3859. LIBS="-lm $LIBS"
  3860. cat > conftest.$ac_ext <<EOF
  3861. #line 4586 "configure"
  3862. #include "confdefs.h"
  3863. /* Override any gcc2 internal prototype to avoid an error. */
  3864. /* We use char because int might match the return type of a gcc2
  3865. builtin and then its argument prototype would still apply. */
  3866. char atan();
  3867. int main() {
  3868. atan()
  3869. ; return 0; }
  3870. EOF
  3871. if { (eval echo configure:4597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3872. rm -rf conftest*
  3873. eval "ac_cv_lib_$ac_lib_var=yes"
  3874. else
  3875. echo "configure: failed program was:" >&5
  3876. cat conftest.$ac_ext >&5
  3877. rm -rf conftest*
  3878. eval "ac_cv_lib_$ac_lib_var=no"
  3879. fi
  3880. rm -f conftest*
  3881. LIBS="$ac_save_LIBS"
  3882. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3883. echo "$ac_t""yes" 1>&6
  3884. MATHLIB=-lm
  3885. else
  3886. echo "$ac_t""no" 1>&6
  3887. { echo "configure: error: *** Failed check for math library." 1>&2; exit 1; }
  3888. fi
  3889. fi
  3890. echo $ac_n "checking for dlsym""... $ac_c" 1>&6
  3891. echo "configure:4624: checking for dlsym" >&5
  3892. cat > conftest.$ac_ext <<EOF
  3893. #line 4627 "configure"
  3894. #include "confdefs.h"
  3895. /* System header to define __stub macros and hopefully few prototypes,
  3896. which can conflict with char dlsym(); below. */
  3897. #include <assert.h>
  3898. /* Override any gcc2 internal prototype to avoid an error. */
  3899. /* We use char because int might match the return type of a gcc2
  3900. builtin and then its argument prototype would still apply. */
  3901. char dlsym();
  3902. int main() {
  3903. /* The GNU C library defines this for functions which it implements
  3904. to always fail with ENOSYS. Some functions are actually named
  3905. something starting with __ and the normal name is an alias. */
  3906. #if defined (__stub_dlsym) || defined (__stub___dlsym)
  3907. choke me
  3908. #else
  3909. dlsym();
  3910. #endif
  3911. ; return 0; }
  3912. EOF
  3913. if { (eval echo configure:4650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3914. rm -rf conftest*
  3915. eval "ac_cv_func_dlsym=yes"
  3916. else
  3917. echo "configure: failed program was:" >&5
  3918. cat conftest.$ac_ext >&5
  3919. rm -rf conftest*
  3920. eval "ac_cv_func_dlsym=no"
  3921. fi
  3922. rm -f conftest*
  3923. if eval "test \"`echo '$ac_cv_func_'dlsym`\" = yes"; then
  3924. echo "$ac_t""yes" 1>&6
  3925. DLLIB=
  3926. else
  3927. echo "$ac_t""no" 1>&6
  3928. echo $ac_n "checking for dlsym in -ldl""... $ac_c" 1>&6
  3929. echo "configure:4668: checking for dlsym in -ldl" >&5
  3930. ac_lib_var=`echo dl'_'dlsym | sed 'y%./+-%__p_%'`
  3931. ac_save_LIBS="$LIBS"
  3932. LIBS="-ldl $LIBS"
  3933. cat > conftest.$ac_ext <<EOF
  3934. #line 4674 "configure"
  3935. #include "confdefs.h"
  3936. /* Override any gcc2 internal prototype to avoid an error. */
  3937. /* We use char because int might match the return type of a gcc2
  3938. builtin and then its argument prototype would still apply. */
  3939. char dlsym();
  3940. int main() {
  3941. dlsym()
  3942. ; return 0; }
  3943. EOF
  3944. if { (eval echo configure:4685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3945. rm -rf conftest*
  3946. eval "ac_cv_lib_$ac_lib_var=yes"
  3947. else
  3948. echo "configure: failed program was:" >&5
  3949. cat conftest.$ac_ext >&5
  3950. rm -rf conftest*
  3951. eval "ac_cv_lib_$ac_lib_var=no"
  3952. fi
  3953. rm -f conftest*
  3954. LIBS="$ac_save_LIBS"
  3955. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3956. echo "$ac_t""yes" 1>&6
  3957. DLLIB=-ldl
  3958. else
  3959. echo "$ac_t""no" 1>&6
  3960. DLLIB=
  3961. fi
  3962. fi
  3963. echo $ac_n "checking for iconv""... $ac_c" 1>&6
  3964. echo "configure:4712: checking for iconv" >&5
  3965. cat > conftest.$ac_ext <<EOF
  3966. #line 4715 "configure"
  3967. #include "confdefs.h"
  3968. /* System header to define __stub macros and hopefully few prototypes,
  3969. which can conflict with char iconv(); below. */
  3970. #include <assert.h>
  3971. /* Override any gcc2 internal prototype to avoid an error. */
  3972. /* We use char because int might match the return type of a gcc2
  3973. builtin and then its argument prototype would still apply. */
  3974. char iconv();
  3975. int main() {
  3976. /* The GNU C library defines this for functions which it implements
  3977. to always fail with ENOSYS. Some functions are actually named
  3978. something starting with __ and the normal name is an alias. */
  3979. #if defined (__stub_iconv) || defined (__stub___iconv)
  3980. choke me
  3981. #else
  3982. iconv();
  3983. #endif
  3984. ; return 0; }
  3985. EOF
  3986. if { (eval echo configure:4738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3987. rm -rf conftest*
  3988. eval "ac_cv_func_iconv=yes"
  3989. else
  3990. echo "configure: failed program was:" >&5
  3991. cat conftest.$ac_ext >&5
  3992. rm -rf conftest*
  3993. eval "ac_cv_func_iconv=no"
  3994. fi
  3995. rm -f conftest*
  3996. if eval "test \"`echo '$ac_cv_func_'iconv`\" = yes"; then
  3997. echo "$ac_t""yes" 1>&6
  3998. ICONVLIB=
  3999. else
  4000. echo "$ac_t""no" 1>&6
  4001. echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
  4002. echo "configure:4756: checking for iconv in -liconv" >&5
  4003. ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
  4004. ac_save_LIBS="$LIBS"
  4005. LIBS="-liconv $LIBS"
  4006. cat > conftest.$ac_ext <<EOF
  4007. #line 4762 "configure"
  4008. #include "confdefs.h"
  4009. /* Override any gcc2 internal prototype to avoid an error. */
  4010. /* We use char because int might match the return type of a gcc2
  4011. builtin and then its argument prototype would still apply. */
  4012. char iconv();
  4013. int main() {
  4014. iconv()
  4015. ; return 0; }
  4016. EOF
  4017. if { (eval echo configure:4773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4018. rm -rf conftest*
  4019. eval "ac_cv_lib_$ac_lib_var=yes"
  4020. else
  4021. echo "configure: failed program was:" >&5
  4022. cat conftest.$ac_ext >&5
  4023. rm -rf conftest*
  4024. eval "ac_cv_lib_$ac_lib_var=no"
  4025. fi
  4026. rm -f conftest*
  4027. LIBS="$ac_save_LIBS"
  4028. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4029. echo "$ac_t""yes" 1>&6
  4030. ICONVLIB=-liconv
  4031. else
  4032. echo "$ac_t""no" 1>&6
  4033. echo $ac_n "checking for iconv in -lgiconv""... $ac_c" 1>&6
  4034. echo "configure:4792: checking for iconv in -lgiconv" >&5
  4035. ac_lib_var=`echo giconv'_'iconv | sed 'y%./+-%__p_%'`
  4036. ac_save_LIBS="$LIBS"
  4037. LIBS="-lgiconv $LIBS"
  4038. cat > conftest.$ac_ext <<EOF
  4039. #line 4798 "configure"
  4040. #include "confdefs.h"
  4041. /* Override any gcc2 internal prototype to avoid an error. */
  4042. /* We use char because int might match the return type of a gcc2
  4043. builtin and then its argument prototype would still apply. */
  4044. char iconv();
  4045. int main() {
  4046. iconv()
  4047. ; return 0; }
  4048. EOF
  4049. if { (eval echo configure:4809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4050. rm -rf conftest*
  4051. eval "ac_cv_lib_$ac_lib_var=yes"
  4052. else
  4053. echo "configure: failed program was:" >&5
  4054. cat conftest.$ac_ext >&5
  4055. rm -rf conftest*
  4056. eval "ac_cv_lib_$ac_lib_var=no"
  4057. fi
  4058. rm -f conftest*
  4059. LIBS="$ac_save_LIBS"
  4060. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4061. echo "$ac_t""yes" 1>&6
  4062. ICONVLIB=-lgiconv
  4063. else
  4064. echo "$ac_t""no" 1>&6
  4065. echo $ac_n "checking for libiconv""... $ac_c" 1>&6
  4066. echo "configure:4828: checking for libiconv" >&5
  4067. cat > conftest.$ac_ext <<EOF
  4068. #line 4831 "configure"
  4069. #include "confdefs.h"
  4070. /* System header to define __stub macros and hopefully few prototypes,
  4071. which can conflict with char libiconv(); below. */
  4072. #include <assert.h>
  4073. /* Override any gcc2 internal prototype to avoid an error. */
  4074. /* We use char because int might match the return type of a gcc2
  4075. builtin and then its argument prototype would still apply. */
  4076. char libiconv();
  4077. int main() {
  4078. /* The GNU C library defines this for functions which it implements
  4079. to always fail with ENOSYS. Some functions are actually named
  4080. something starting with __ and the normal name is an alias. */
  4081. #if defined (__stub_libiconv) || defined (__stub___libiconv)
  4082. choke me
  4083. #else
  4084. libiconv();
  4085. #endif
  4086. ; return 0; }
  4087. EOF
  4088. if { (eval echo configure:4854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4089. rm -rf conftest*
  4090. eval "ac_cv_func_libiconv=yes"
  4091. else
  4092. echo "configure: failed program was:" >&5
  4093. cat conftest.$ac_ext >&5
  4094. rm -rf conftest*
  4095. eval "ac_cv_func_libiconv=no"
  4096. fi
  4097. rm -f conftest*
  4098. if eval "test \"`echo '$ac_cv_func_'libiconv`\" = yes"; then
  4099. echo "$ac_t""yes" 1>&6
  4100. ICONVLIB=
  4101. else
  4102. echo "$ac_t""no" 1>&6
  4103. echo $ac_n "checking for libiconv in -liconv""... $ac_c" 1>&6
  4104. echo "configure:4872: checking for libiconv in -liconv" >&5
  4105. ac_lib_var=`echo iconv'_'libiconv | sed 'y%./+-%__p_%'`
  4106. ac_save_LIBS="$LIBS"
  4107. LIBS="-liconv $LIBS"
  4108. cat > conftest.$ac_ext <<EOF
  4109. #line 4878 "configure"
  4110. #include "confdefs.h"
  4111. /* Override any gcc2 internal prototype to avoid an error. */
  4112. /* We use char because int might match the return type of a gcc2
  4113. builtin and then its argument prototype would still apply. */
  4114. char libiconv();
  4115. int main() {
  4116. libiconv()
  4117. ; return 0; }
  4118. EOF
  4119. if { (eval echo configure:4889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4120. rm -rf conftest*
  4121. eval "ac_cv_lib_$ac_lib_var=yes"
  4122. else
  4123. echo "configure: failed program was:" >&5
  4124. cat conftest.$ac_ext >&5
  4125. rm -rf conftest*
  4126. eval "ac_cv_lib_$ac_lib_var=no"
  4127. fi
  4128. rm -f conftest*
  4129. LIBS="$ac_save_LIBS"
  4130. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4131. echo "$ac_t""yes" 1>&6
  4132. ICONVLIB=-liconv
  4133. else
  4134. echo "$ac_t""no" 1>&6
  4135. echo $ac_n "checking for libiconv in -lgiconv""... $ac_c" 1>&6
  4136. echo "configure:4908: checking for libiconv in -lgiconv" >&5
  4137. ac_lib_var=`echo giconv'_'libiconv | sed 'y%./+-%__p_%'`
  4138. ac_save_LIBS="$LIBS"
  4139. LIBS="-lgiconv $LIBS"
  4140. cat > conftest.$ac_ext <<EOF
  4141. #line 4914 "configure"
  4142. #include "confdefs.h"
  4143. /* Override any gcc2 internal prototype to avoid an error. */
  4144. /* We use char because int might match the return type of a gcc2
  4145. builtin and then its argument prototype would still apply. */
  4146. char libiconv();
  4147. int main() {
  4148. libiconv()
  4149. ; return 0; }
  4150. EOF
  4151. if { (eval echo configure:4925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4152. rm -rf conftest*
  4153. eval "ac_cv_lib_$ac_lib_var=yes"
  4154. else
  4155. echo "configure: failed program was:" >&5
  4156. cat conftest.$ac_ext >&5
  4157. rm -rf conftest*
  4158. eval "ac_cv_lib_$ac_lib_var=no"
  4159. fi
  4160. rm -f conftest*
  4161. LIBS="$ac_save_LIBS"
  4162. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4163. echo "$ac_t""yes" 1>&6
  4164. ICONVLIB=-lgiconv
  4165. else
  4166. echo "$ac_t""no" 1>&6
  4167. echo "configure: warning: *** Unable to locate iconv() function." 1>&2
  4168. ICONVLIB=
  4169. fi
  4170. fi
  4171. fi
  4172. fi
  4173. fi
  4174. fi
  4175. have_socket=1
  4176. echo $ac_n "checking for socket""... $ac_c" 1>&6
  4177. echo "configure:4962: checking for socket" >&5
  4178. cat > conftest.$ac_ext <<EOF
  4179. #line 4965 "configure"
  4180. #include "confdefs.h"
  4181. /* System header to define __stub macros and hopefully few prototypes,
  4182. which can conflict with char socket(); below. */
  4183. #include <assert.h>
  4184. /* Override any gcc2 internal prototype to avoid an error. */
  4185. /* We use char because int might match the return type of a gcc2
  4186. builtin and then its argument prototype would still apply. */
  4187. char socket();
  4188. int main() {
  4189. /* The GNU C library defines this for functions which it implements
  4190. to always fail with ENOSYS. Some functions are actually named
  4191. something starting with __ and the normal name is an alias. */
  4192. #if defined (__stub_socket) || defined (__stub___socket)
  4193. choke me
  4194. #else
  4195. socket();
  4196. #endif
  4197. ; return 0; }
  4198. EOF
  4199. if { (eval echo configure:4988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4200. rm -rf conftest*
  4201. eval "ac_cv_func_socket=yes"
  4202. else
  4203. echo "configure: failed program was:" >&5
  4204. cat conftest.$ac_ext >&5
  4205. rm -rf conftest*
  4206. eval "ac_cv_func_socket=no"
  4207. fi
  4208. rm -f conftest*
  4209. if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
  4210. echo "$ac_t""yes" 1>&6
  4211. SOCKLIB=
  4212. else
  4213. echo "$ac_t""no" 1>&6
  4214. echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
  4215. echo "configure:5006: checking for socket in -lsocket" >&5
  4216. ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
  4217. ac_save_LIBS="$LIBS"
  4218. LIBS="-lsocket $LIBS"
  4219. cat > conftest.$ac_ext <<EOF
  4220. #line 5012 "configure"
  4221. #include "confdefs.h"
  4222. /* Override any gcc2 internal prototype to avoid an error. */
  4223. /* We use char because int might match the return type of a gcc2
  4224. builtin and then its argument prototype would still apply. */
  4225. char socket();
  4226. int main() {
  4227. socket()
  4228. ; return 0; }
  4229. EOF
  4230. if { (eval echo configure:5023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4231. rm -rf conftest*
  4232. eval "ac_cv_lib_$ac_lib_var=yes"
  4233. else
  4234. echo "configure: failed program was:" >&5
  4235. cat conftest.$ac_ext >&5
  4236. rm -rf conftest*
  4237. eval "ac_cv_lib_$ac_lib_var=no"
  4238. fi
  4239. rm -f conftest*
  4240. LIBS="$ac_save_LIBS"
  4241. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4242. echo "$ac_t""yes" 1>&6
  4243. SOCKLIB=-lsocket
  4244. else
  4245. echo "$ac_t""no" 1>&6
  4246. have_socket=0
  4247. echo "configure: warning: *** Unable to locate socket() function." 1>&2
  4248. fi
  4249. fi
  4250. if test "$have_socket" = 1 ; then
  4251. HAVE_SOCKET=1
  4252. cat >> confdefs.h <<\EOF
  4253. #define HAVE_SOCKET 1
  4254. EOF
  4255. else
  4256. HAVE_SOCKET=
  4257. fi
  4258. # Mandatory zlib dependency
  4259. ZLIBLIBPATH=
  4260. ZLIBINCPATH=
  4261. ZLIB=
  4262. # With zlib includes directory
  4263. echo $ac_n "checking for location of zlib includes""... $ac_c" 1>&6
  4264. echo "configure:5071: checking for location of zlib includes" >&5
  4265. case "$with_zlib_includes" in
  4266. y | ye | yes | n | no)
  4267. { echo "configure: error: *** You must supply a directory to --with-zlib-includes." 1>&2; exit 1; }
  4268. ;;
  4269. esac
  4270. echo "$ac_t""$with_zlib_includes" 1>&6
  4271. if test -n "$with_zlib_includes" ; then
  4272. for dir in $with_zlib_includes; do
  4273. if test -d "$dir"; then
  4274. ZLIBINCPATH="$ZLIBINCPATH -I$dir"
  4275. else
  4276. { echo "configure: error: *** zlib includes directory $dir does not exist." 1>&2; exit 1; }
  4277. fi
  4278. done
  4279. fi
  4280. ac_save_cppflags="$CPPFLAGS"
  4281. CPPFLAGS="$ZLIBINCPATH $CPPFLAGS"
  4282. for ac_hdr in zlib.h
  4283. do
  4284. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4285. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4286. echo "configure:5097: checking for $ac_hdr" >&5
  4287. cat > conftest.$ac_ext <<EOF
  4288. #line 5100 "configure"
  4289. #include "confdefs.h"
  4290. #include <$ac_hdr>
  4291. EOF
  4292. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4293. { (eval echo configure:5105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4294. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4295. if test -z "$ac_err"; then
  4296. rm -rf conftest*
  4297. eval "ac_cv_header_$ac_safe=yes"
  4298. else
  4299. echo "$ac_err" >&5
  4300. echo "configure: failed program was:" >&5
  4301. cat conftest.$ac_ext >&5
  4302. rm -rf conftest*
  4303. eval "ac_cv_header_$ac_safe=no"
  4304. fi
  4305. rm -f conftest*
  4306. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4307. echo "$ac_t""yes" 1>&6
  4308. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4309. cat >> confdefs.h <<EOF
  4310. #define $ac_tr_hdr 1
  4311. EOF
  4312. else
  4313. echo "$ac_t""no" 1>&6
  4314. { echo "configure: error: *** Unable to locate zlib includes." 1>&2; exit 1; }
  4315. fi
  4316. done
  4317. CPPFLAGS=$ac_save_cppflags
  4318. # With zlib library directory
  4319. echo $ac_n "checking for location of zlib library""... $ac_c" 1>&6
  4320. echo "configure:5139: checking for location of zlib library" >&5
  4321. case "$with_zlib_libs" in
  4322. y | ye | yes | n | no)
  4323. { echo "configure: error: *** You must supply a directory to --with-zlib-libs." 1>&2; exit 1; }
  4324. ;;
  4325. esac
  4326. echo "$ac_t""$with_zlib_libs" 1>&6
  4327. if test -n "$with_zlib_libs"; then
  4328. for dir in $with_zlib_libs; do
  4329. if test -d "$dir"; then
  4330. ZLIBLIBPATH="$ZLIBLIBPATH -L$dir"
  4331. else
  4332. { echo "configure: error: *** zlib library directory $dir does not exist." 1>&2; exit 1; }
  4333. fi
  4334. done
  4335. fi
  4336. ac_save_ldflags="$LDFLAGS"
  4337. LDFLAGS="$ZLIBLIBPATH $LDFLAGS"
  4338. echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
  4339. echo "configure:5164: checking for deflate in -lz" >&5
  4340. ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
  4341. ac_save_LIBS="$LIBS"
  4342. LIBS="-lz $LIBS"
  4343. cat > conftest.$ac_ext <<EOF
  4344. #line 5170 "configure"
  4345. #include "confdefs.h"
  4346. /* Override any gcc2 internal prototype to avoid an error. */
  4347. /* We use char because int might match the return type of a gcc2
  4348. builtin and then its argument prototype would still apply. */
  4349. char deflate();
  4350. int main() {
  4351. deflate()
  4352. ; return 0; }
  4353. EOF
  4354. if { (eval echo configure:5181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4355. rm -rf conftest*
  4356. eval "ac_cv_lib_$ac_lib_var=yes"
  4357. else
  4358. echo "configure: failed program was:" >&5
  4359. cat conftest.$ac_ext >&5
  4360. rm -rf conftest*
  4361. eval "ac_cv_lib_$ac_lib_var=no"
  4362. fi
  4363. rm -f conftest*
  4364. LIBS="$ac_save_LIBS"
  4365. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4366. echo "$ac_t""yes" 1>&6
  4367. ZLIB="$ZLIB -lz "
  4368. else
  4369. echo "$ac_t""no" 1>&6
  4370. LDFLAGS=${ac_save_ldflags}
  4371. { echo "configure: error: *** Unable to locate zlib library." 1>&2; exit 1; }
  4372. fi
  4373. LDFLAGS=${ac_save_ldflags}
  4374. #
  4375. # Done checking zlib
  4376. # Mandatory PROJ dependency
  4377. PROJINC=
  4378. PROJLIB=
  4379. PROJSHARE=
  4380. # With PROJ includes directory
  4381. echo $ac_n "checking for location of External PROJ.4 includes""... $ac_c" 1>&6
  4382. echo "configure:5229: checking for location of External PROJ.4 includes" >&5
  4383. case "$with_proj_includes" in
  4384. y | ye | yes | n | no)
  4385. { echo "configure: error: *** You must supply a directory to --with-proj-includes." 1>&2; exit 1; }
  4386. ;;
  4387. esac
  4388. echo "$ac_t""$with_proj_includes" 1>&6
  4389. if test -n "$with_proj_includes" ; then
  4390. for dir in $with_proj_includes; do
  4391. if test -d "$dir"; then
  4392. PROJINC="$PROJINC -I$dir"
  4393. else
  4394. { echo "configure: error: *** External PROJ.4 includes directory $dir does not exist." 1>&2; exit 1; }
  4395. fi
  4396. done
  4397. fi
  4398. ac_save_cppflags="$CPPFLAGS"
  4399. CPPFLAGS="$PROJINC $CPPFLAGS"
  4400. for ac_hdr in proj_api.h
  4401. do
  4402. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4403. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4404. echo "configure:5255: checking for $ac_hdr" >&5
  4405. cat > conftest.$ac_ext <<EOF
  4406. #line 5258 "configure"
  4407. #include "confdefs.h"
  4408. #include <$ac_hdr>
  4409. EOF
  4410. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4411. { (eval echo configure:5263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4412. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4413. if test -z "$ac_err"; then
  4414. rm -rf conftest*
  4415. eval "ac_cv_header_$ac_safe=yes"
  4416. else
  4417. echo "$ac_err" >&5
  4418. echo "configure: failed program was:" >&5
  4419. cat conftest.$ac_ext >&5
  4420. rm -rf conftest*
  4421. eval "ac_cv_header_$ac_safe=no"
  4422. fi
  4423. rm -f conftest*
  4424. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4425. echo "$ac_t""yes" 1>&6
  4426. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4427. cat >> confdefs.h <<EOF
  4428. #define $ac_tr_hdr 1
  4429. EOF
  4430. else
  4431. echo "$ac_t""no" 1>&6
  4432. { echo "configure: error: *** Unable to locate External PROJ.4 includes." 1>&2; exit 1; }
  4433. fi
  4434. done
  4435. CPPFLAGS=$ac_save_cppflags
  4436. # PROJ version check
  4437. if test "$cross_compiling" = yes; then
  4438. echo "configure: warning: *** Cannot check PROJ.4 version (cross-compiling)." 1>&2
  4439. else
  4440. echo $ac_n "checking External PROJ.4 version""... $ac_c" 1>&6
  4441. echo "configure:5300: checking External PROJ.4 version" >&5
  4442. ac_save_cppflags="$CPPFLAGS"
  4443. CPPFLAGS="$PROJINC $CPPFLAGS"
  4444. if test "$cross_compiling" = yes; then
  4445. proj_ver=0
  4446. echo "$ac_t""unknown (cross-compiling)" 1>&6
  4447. else
  4448. cat > conftest.$ac_ext <<EOF
  4449. #line 5308 "configure"
  4450. #include "confdefs.h"
  4451. #include <stdio.h>
  4452. #include <proj_api.h>
  4453. int main(void) {
  4454. FILE *fp = fopen("conftestdata","w");
  4455. fprintf(fp, "%d", PJ_VERSION);
  4456. return 0;
  4457. }
  4458. EOF
  4459. if { (eval echo configure:5320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4460. then
  4461. proj_ver=`cat conftestdata`
  4462. echo "$ac_t""$proj_ver" 1>&6
  4463. else
  4464. echo "configure: failed program was:" >&5
  4465. cat conftest.$ac_ext >&5
  4466. rm -fr conftest*
  4467. { echo "configure: error: *** Could not determine External PROJ.4 version." 1>&2; exit 1; }
  4468. fi
  4469. rm -fr conftest*
  4470. fi
  4471. CPPFLAGS=$ac_save_cppflags
  4472. if test `expr "$proj_ver" \< 446` = 1 ; then
  4473. { echo "configure: error: *** PROJ.4.4.6 or later is required." 1>&2; exit 1; }
  4474. fi
  4475. fi
  4476. # With PROJ library directory
  4477. echo $ac_n "checking for location of External PROJ.4 library""... $ac_c" 1>&6
  4478. echo "configure:5345: checking for location of External PROJ.4 library" >&5
  4479. case "$with_proj_libs" in
  4480. y | ye | yes | n | no)
  4481. { echo "configure: error: *** You must supply a directory to --with-proj-libs." 1>&2; exit 1; }
  4482. ;;
  4483. esac
  4484. echo "$ac_t""$with_proj_libs" 1>&6
  4485. if test -n "$with_proj_libs"; then
  4486. for dir in $with_proj_libs; do
  4487. if test -d "$dir"; then
  4488. PROJLIB="$PROJLIB -L$dir"
  4489. else
  4490. { echo "configure: error: *** External PROJ.4 library directory $dir does not exist." 1>&2; exit 1; }
  4491. fi
  4492. done
  4493. fi
  4494. ac_save_ldflags="$LDFLAGS"
  4495. LDFLAGS="$PROJLIB $LDFLAGS"
  4496. echo $ac_n "checking for pj_get_def in -lproj""... $ac_c" 1>&6
  4497. echo "configure:5370: checking for pj_get_def in -lproj" >&5
  4498. ac_lib_var=`echo proj'_'pj_get_def | sed 'y%./+-%__p_%'`
  4499. ac_save_LIBS="$LIBS"
  4500. LIBS="-lproj $LIBS"
  4501. cat > conftest.$ac_ext <<EOF
  4502. #line 5376 "configure"
  4503. #include "confdefs.h"
  4504. /* Override any gcc2 internal prototype to avoid an error. */
  4505. /* We use char because int might match the return type of a gcc2
  4506. builtin and then its argument prototype would still apply. */
  4507. char pj_get_def();
  4508. int main() {
  4509. pj_get_def()
  4510. ; return 0; }
  4511. EOF
  4512. if { (eval echo configure:5387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4513. rm -rf conftest*
  4514. eval "ac_cv_lib_$ac_lib_var=yes"
  4515. else
  4516. echo "configure: failed program was:" >&5
  4517. cat conftest.$ac_ext >&5
  4518. rm -rf conftest*
  4519. eval "ac_cv_lib_$ac_lib_var=no"
  4520. fi
  4521. rm -f conftest*
  4522. LIBS="$ac_save_LIBS"
  4523. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4524. echo "$ac_t""yes" 1>&6
  4525. PROJLIB="$PROJLIB -lproj "
  4526. else
  4527. echo "$ac_t""no" 1>&6
  4528. LDFLAGS=${ac_save_ldflags}
  4529. { echo "configure: error: *** Unable to locate External PROJ.4 library." 1>&2; exit 1; }
  4530. fi
  4531. LDFLAGS=${ac_save_ldflags}
  4532. # With PROJ share directory
  4533. echo $ac_n "checking for location of External PROJ.4 data files""... $ac_c" 1>&6
  4534. echo "configure:5421: checking for location of External PROJ.4 data files" >&5
  4535. case "$with_proj_share" in
  4536. y | ye | yes | n | no)
  4537. { echo "configure: error: *** You must supply a directory to --with-proj-share." 1>&2; exit 1; }
  4538. ;;
  4539. esac
  4540. echo "$ac_t""$with_proj_share" 1>&6
  4541. if test -n "$with_proj_share" ; then
  4542. if test -d "$with_proj_share"; then
  4543. PROJSHARE="$with_proj_share"
  4544. else
  4545. { echo "configure: error: *** External PROJ.4 data directory $dir does not exist." 1>&2; exit 1; }
  4546. fi
  4547. fi
  4548. if test -z "$PROJSHARE" ; then
  4549. echo "configure: warning: *** External PROJ.4 directory not specified; default will be used" 1>&2
  4550. PROJSHARE=/usr/local/share/proj
  4551. fi
  4552. # LOC_CHECK_SHARE does not work when cross compiling
  4553. if test "$cross_compiling" = "yes" ; then
  4554. echo $ac_n "checking for epsg""... $ac_c" 1>&6
  4555. echo "configure:5445: checking for epsg" >&5
  4556. echo "$ac_t""unknown (cross-compiling)" 1>&6
  4557. else
  4558. ac_safe=`echo "$PROJSHARE/epsg" | sed 'y%./+-%__p_%'`
  4559. echo $ac_n "checking for $PROJSHARE/epsg""... $ac_c" 1>&6
  4560. echo "configure:5452: checking for $PROJSHARE/epsg" >&5
  4561. if test "$cross_compiling" = yes; then
  4562. { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
  4563. else
  4564. if test -r $PROJSHARE/epsg; then
  4565. eval "ac_cv_file_$ac_safe=yes"
  4566. else
  4567. eval "ac_cv_file_$ac_safe=no"
  4568. fi
  4569. fi
  4570. if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
  4571. echo "$ac_t""yes" 1>&6
  4572. :
  4573. else
  4574. echo "$ac_t""no" 1>&6
  4575. echo "configure: warning: *** Unable to locate PROJ data files." 1>&2
  4576. fi
  4577. fi
  4578. # nad2bin needs to be in path for installing datum gridshift files
  4579. # Extract the first word of "nad2bin", so it can be a program name with args.
  4580. set dummy nad2bin; ac_word=$2
  4581. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  4582. echo "configure:5484: checking for $ac_word" >&5
  4583. case "$NAD2BIN" in
  4584. /*)
  4585. ac_cv_path_NAD2BIN="$NAD2BIN" # Let the user override the test with a path.
  4586. ;;
  4587. ?:/*)
  4588. ac_cv_path_NAD2BIN="$NAD2BIN" # Let the user override the test with a dos path.
  4589. ;;
  4590. *)
  4591. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  4592. ac_dummy="$PATH"
  4593. for ac_dir in $ac_dummy; do
  4594. test -z "$ac_dir" && ac_dir=.
  4595. if test -f $ac_dir/$ac_word; then
  4596. ac_cv_path_NAD2BIN="$ac_dir/$ac_word"
  4597. break
  4598. fi
  4599. done
  4600. IFS="$ac_save_ifs"
  4601. test -z "$ac_cv_path_NAD2BIN" && ac_cv_path_NAD2BIN="no"
  4602. ;;
  4603. esac
  4604. NAD2BIN="$ac_cv_path_NAD2BIN"
  4605. if test -n "$NAD2BIN"; then
  4606. echo "$ac_t""$NAD2BIN" 1>&6
  4607. else
  4608. echo "$ac_t""no" 1>&6
  4609. fi
  4610. if test "$NAD2BIN" = "no"; then
  4611. { echo "configure: error: *** Unable to locate nad2bin (needs to be in PATH)." 1>&2; exit 1; }
  4612. fi
  4613. # Done checking PROJ
  4614. # Enable regex option
  4615. echo $ac_n "checking whether to use regex""... $ac_c" 1>&6
  4616. echo "configure:5524: checking whether to use regex" >&5
  4617. echo "$ac_t"""$with_regex"" 1>&6
  4618. case "$with_regex" in
  4619. "no") USE_REGEX= ;;
  4620. "yes") USE_REGEX="1" ;;
  4621. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  4622. esac
  4623. REGEXINCPATH=
  4624. REGEXLIBPATH=
  4625. REGEXLIB=
  4626. if test -n "$USE_REGEX"; then
  4627. # With regex includes directory
  4628. echo $ac_n "checking for location of regex includes""... $ac_c" 1>&6
  4629. echo "configure:5544: checking for location of regex includes" >&5
  4630. case "$with_regex_includes" in
  4631. y | ye | yes | n | no)
  4632. { echo "configure: error: *** You must supply a directory to --with-regex-includes." 1>&2; exit 1; }
  4633. ;;
  4634. esac
  4635. echo "$ac_t""$with_regex_includes" 1>&6
  4636. if test -n "$with_regex_includes" ; then
  4637. for dir in $with_regex_includes; do
  4638. if test -d "$dir"; then
  4639. REGEXINCPATH="$REGEXINCPATH -I$dir"
  4640. else
  4641. { echo "configure: error: *** regex includes directory $dir does not exist." 1>&2; exit 1; }
  4642. fi
  4643. done
  4644. fi
  4645. ac_save_cppflags="$CPPFLAGS"
  4646. CPPFLAGS="$REGEXINCPATH $CPPFLAGS"
  4647. for ac_hdr in regex.h
  4648. do
  4649. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4650. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4651. echo "configure:5570: checking for $ac_hdr" >&5
  4652. cat > conftest.$ac_ext <<EOF
  4653. #line 5573 "configure"
  4654. #include "confdefs.h"
  4655. #include <$ac_hdr>
  4656. EOF
  4657. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4658. { (eval echo configure:5578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4659. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4660. if test -z "$ac_err"; then
  4661. rm -rf conftest*
  4662. eval "ac_cv_header_$ac_safe=yes"
  4663. else
  4664. echo "$ac_err" >&5
  4665. echo "configure: failed program was:" >&5
  4666. cat conftest.$ac_ext >&5
  4667. rm -rf conftest*
  4668. eval "ac_cv_header_$ac_safe=no"
  4669. fi
  4670. rm -f conftest*
  4671. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4672. echo "$ac_t""yes" 1>&6
  4673. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4674. cat >> confdefs.h <<EOF
  4675. #define $ac_tr_hdr 1
  4676. EOF
  4677. else
  4678. echo "$ac_t""no" 1>&6
  4679. { echo "configure: error: *** Unable to locate regex includes." 1>&2; exit 1; }
  4680. fi
  4681. done
  4682. CPPFLAGS=$ac_save_cppflags
  4683. # With regex library directory
  4684. echo $ac_n "checking for location of regex library""... $ac_c" 1>&6
  4685. echo "configure:5612: checking for location of regex library" >&5
  4686. case "$with_regex_libs" in
  4687. y | ye | yes | n | no)
  4688. { echo "configure: error: *** You must supply a directory to --with-regex-libs." 1>&2; exit 1; }
  4689. ;;
  4690. esac
  4691. echo "$ac_t""$with_regex_libs" 1>&6
  4692. if test -n "$with_regex_libs"; then
  4693. for dir in $with_regex_libs; do
  4694. if test -d "$dir"; then
  4695. REGEXLIBPATH="$REGEXLIBPATH -L$dir"
  4696. else
  4697. { echo "configure: error: *** regex library directory $dir does not exist." 1>&2; exit 1; }
  4698. fi
  4699. done
  4700. fi
  4701. ac_save_libs="$LIBS"
  4702. ac_save_ldflags="$LDFLAGS"
  4703. LIBS=" $LIBS"
  4704. LDFLAGS=" $LDFLAGS"
  4705. echo $ac_n "checking for regcomp""... $ac_c" 1>&6
  4706. echo "configure:5637: checking for regcomp" >&5
  4707. cat > conftest.$ac_ext <<EOF
  4708. #line 5640 "configure"
  4709. #include "confdefs.h"
  4710. /* System header to define __stub macros and hopefully few prototypes,
  4711. which can conflict with char regcomp(); below. */
  4712. #include <assert.h>
  4713. /* Override any gcc2 internal prototype to avoid an error. */
  4714. /* We use char because int might match the return type of a gcc2
  4715. builtin and then its argument prototype would still apply. */
  4716. char regcomp();
  4717. int main() {
  4718. /* The GNU C library defines this for functions which it implements
  4719. to always fail with ENOSYS. Some functions are actually named
  4720. something starting with __ and the normal name is an alias. */
  4721. #if defined (__stub_regcomp) || defined (__stub___regcomp)
  4722. choke me
  4723. #else
  4724. regcomp();
  4725. #endif
  4726. ; return 0; }
  4727. EOF
  4728. if { (eval echo configure:5663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4729. rm -rf conftest*
  4730. eval "ac_cv_func_regcomp=yes"
  4731. else
  4732. echo "configure: failed program was:" >&5
  4733. cat conftest.$ac_ext >&5
  4734. rm -rf conftest*
  4735. eval "ac_cv_func_regcomp=no"
  4736. fi
  4737. rm -f conftest*
  4738. if eval "test \"`echo '$ac_cv_func_'regcomp`\" = yes"; then
  4739. echo "$ac_t""yes" 1>&6
  4740. REGEXLIB="$REGEXLIB "
  4741. else
  4742. echo "$ac_t""no" 1>&6
  4743. ac_save_ldflags="$LDFLAGS"
  4744. LDFLAGS="$REGEXLIBPATH $LDFLAGS"
  4745. echo $ac_n "checking for regcomp in -lregex""... $ac_c" 1>&6
  4746. echo "configure:5690: checking for regcomp in -lregex" >&5
  4747. ac_lib_var=`echo regex'_'regcomp | sed 'y%./+-%__p_%'`
  4748. ac_save_LIBS="$LIBS"
  4749. LIBS="-lregex $LIBS"
  4750. cat > conftest.$ac_ext <<EOF
  4751. #line 5696 "configure"
  4752. #include "confdefs.h"
  4753. /* Override any gcc2 internal prototype to avoid an error. */
  4754. /* We use char because int might match the return type of a gcc2
  4755. builtin and then its argument prototype would still apply. */
  4756. char regcomp();
  4757. int main() {
  4758. regcomp()
  4759. ; return 0; }
  4760. EOF
  4761. if { (eval echo configure:5707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4762. rm -rf conftest*
  4763. eval "ac_cv_lib_$ac_lib_var=yes"
  4764. else
  4765. echo "configure: failed program was:" >&5
  4766. cat conftest.$ac_ext >&5
  4767. rm -rf conftest*
  4768. eval "ac_cv_lib_$ac_lib_var=no"
  4769. fi
  4770. rm -f conftest*
  4771. LIBS="$ac_save_LIBS"
  4772. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4773. echo "$ac_t""yes" 1>&6
  4774. REGEXLIB="$REGEXLIB -lregex "
  4775. else
  4776. echo "$ac_t""no" 1>&6
  4777. LDFLAGS=${ac_save_ldflags}
  4778. { echo "configure: error: *** Unable to locate regex library." 1>&2; exit 1; }
  4779. fi
  4780. LDFLAGS=${ac_save_ldflags}
  4781. fi
  4782. LIBS=${ac_save_libs}
  4783. LDFLAGS=${ac_save_ldflags}
  4784. fi # $USE_REGEX
  4785. # Done checking regex
  4786. # Enable Readline option
  4787. echo $ac_n "checking whether to use Readline""... $ac_c" 1>&6
  4788. echo "configure:5757: checking whether to use Readline" >&5
  4789. echo "$ac_t"""$with_readline"" 1>&6
  4790. case "$with_readline" in
  4791. "no") USE_READLINE= ;;
  4792. "yes") USE_READLINE="1" ;;
  4793. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  4794. esac
  4795. READLINEINCPATH=
  4796. READLINELIBPATH=
  4797. READLINELIB=
  4798. HISTORYLIB=
  4799. if test -n "$USE_READLINE"; then
  4800. # With Readline includes directory
  4801. echo $ac_n "checking for location of Readline includes""... $ac_c" 1>&6
  4802. echo "configure:5778: checking for location of Readline includes" >&5
  4803. case "$with_readline_includes" in
  4804. y | ye | yes | n | no)
  4805. { echo "configure: error: *** You must supply a directory to --with-readline-includes." 1>&2; exit 1; }
  4806. ;;
  4807. esac
  4808. echo "$ac_t""$with_readline_includes" 1>&6
  4809. if test -n "$with_readline_includes" ; then
  4810. for dir in $with_readline_includes; do
  4811. if test -d "$dir"; then
  4812. READLINEINCPATH="$READLINEINCPATH -I$dir"
  4813. else
  4814. { echo "configure: error: *** Readline includes directory $dir does not exist." 1>&2; exit 1; }
  4815. fi
  4816. done
  4817. fi
  4818. ac_save_cppflags="$CPPFLAGS"
  4819. CPPFLAGS="$READLINEINCPATH $CPPFLAGS"
  4820. for ac_hdr in readline/readline.h
  4821. do
  4822. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4823. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4824. echo "configure:5804: checking for $ac_hdr" >&5
  4825. cat > conftest.$ac_ext <<EOF
  4826. #line 5807 "configure"
  4827. #include "confdefs.h"
  4828. #include <$ac_hdr>
  4829. EOF
  4830. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4831. { (eval echo configure:5812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4832. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4833. if test -z "$ac_err"; then
  4834. rm -rf conftest*
  4835. eval "ac_cv_header_$ac_safe=yes"
  4836. else
  4837. echo "$ac_err" >&5
  4838. echo "configure: failed program was:" >&5
  4839. cat conftest.$ac_ext >&5
  4840. rm -rf conftest*
  4841. eval "ac_cv_header_$ac_safe=no"
  4842. fi
  4843. rm -f conftest*
  4844. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4845. echo "$ac_t""yes" 1>&6
  4846. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4847. cat >> confdefs.h <<EOF
  4848. #define $ac_tr_hdr 1
  4849. EOF
  4850. else
  4851. echo "$ac_t""no" 1>&6
  4852. { echo "configure: error: *** Unable to locate Readline includes." 1>&2; exit 1; }
  4853. fi
  4854. done
  4855. CPPFLAGS=$ac_save_cppflags
  4856. ac_save_cppflags="$CPPFLAGS"
  4857. CPPFLAGS="$READLINEINCPATH $CPPFLAGS"
  4858. for ac_hdr in readline/history.h
  4859. do
  4860. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4861. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4862. echo "configure:5848: checking for $ac_hdr" >&5
  4863. cat > conftest.$ac_ext <<EOF
  4864. #line 5851 "configure"
  4865. #include "confdefs.h"
  4866. #include <$ac_hdr>
  4867. EOF
  4868. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4869. { (eval echo configure:5856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4870. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4871. if test -z "$ac_err"; then
  4872. rm -rf conftest*
  4873. eval "ac_cv_header_$ac_safe=yes"
  4874. else
  4875. echo "$ac_err" >&5
  4876. echo "configure: failed program was:" >&5
  4877. cat conftest.$ac_ext >&5
  4878. rm -rf conftest*
  4879. eval "ac_cv_header_$ac_safe=no"
  4880. fi
  4881. rm -f conftest*
  4882. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4883. echo "$ac_t""yes" 1>&6
  4884. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4885. cat >> confdefs.h <<EOF
  4886. #define $ac_tr_hdr 1
  4887. EOF
  4888. else
  4889. echo "$ac_t""no" 1>&6
  4890. { echo "configure: error: *** Unable to locate Readline includes." 1>&2; exit 1; }
  4891. fi
  4892. done
  4893. CPPFLAGS=$ac_save_cppflags
  4894. # With Readline library directory
  4895. echo $ac_n "checking for location of Readline library""... $ac_c" 1>&6
  4896. echo "configure:5890: checking for location of Readline library" >&5
  4897. case "$with_readline_libs" in
  4898. y | ye | yes | n | no)
  4899. { echo "configure: error: *** You must supply a directory to --with-readline-libs." 1>&2; exit 1; }
  4900. ;;
  4901. esac
  4902. echo "$ac_t""$with_readline_libs" 1>&6
  4903. if test -n "$with_readline_libs"; then
  4904. for dir in $with_readline_libs; do
  4905. if test -d "$dir"; then
  4906. READLINELIBPATH="$READLINELIBPATH -L$dir"
  4907. else
  4908. { echo "configure: error: *** Readline library directory $dir does not exist." 1>&2; exit 1; }
  4909. fi
  4910. done
  4911. fi
  4912. ac_save_ldflags="$LDFLAGS"
  4913. LDFLAGS="$READLINELIBPATH $LDFLAGS"
  4914. echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
  4915. echo "configure:5915: checking for readline in -lreadline" >&5
  4916. ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
  4917. ac_save_LIBS="$LIBS"
  4918. LIBS="-lreadline $LIBS"
  4919. cat > conftest.$ac_ext <<EOF
  4920. #line 5921 "configure"
  4921. #include "confdefs.h"
  4922. /* Override any gcc2 internal prototype to avoid an error. */
  4923. /* We use char because int might match the return type of a gcc2
  4924. builtin and then its argument prototype would still apply. */
  4925. char readline();
  4926. int main() {
  4927. readline()
  4928. ; return 0; }
  4929. EOF
  4930. if { (eval echo configure:5932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4931. rm -rf conftest*
  4932. eval "ac_cv_lib_$ac_lib_var=yes"
  4933. else
  4934. echo "configure: failed program was:" >&5
  4935. cat conftest.$ac_ext >&5
  4936. rm -rf conftest*
  4937. eval "ac_cv_lib_$ac_lib_var=no"
  4938. fi
  4939. rm -f conftest*
  4940. LIBS="$ac_save_LIBS"
  4941. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4942. echo "$ac_t""yes" 1>&6
  4943. READLINELIB="$READLINELIB -lreadline "
  4944. else
  4945. echo "$ac_t""no" 1>&6
  4946. LDFLAGS=${ac_save_ldflags}
  4947. { echo "configure: error: *** Unable to locate Readline library." 1>&2; exit 1; }
  4948. fi
  4949. LDFLAGS=${ac_save_ldflags}
  4950. ac_save_ldflags="$LDFLAGS"
  4951. LDFLAGS="$READLINELIBPATH $LDFLAGS"
  4952. echo $ac_n "checking for add_history in -lhistory""... $ac_c" 1>&6
  4953. echo "configure:5967: checking for add_history in -lhistory" >&5
  4954. ac_lib_var=`echo history'_'add_history | sed 'y%./+-%__p_%'`
  4955. ac_save_LIBS="$LIBS"
  4956. LIBS="-lhistory $LIBS"
  4957. cat > conftest.$ac_ext <<EOF
  4958. #line 5973 "configure"
  4959. #include "confdefs.h"
  4960. /* Override any gcc2 internal prototype to avoid an error. */
  4961. /* We use char because int might match the return type of a gcc2
  4962. builtin and then its argument prototype would still apply. */
  4963. char add_history();
  4964. int main() {
  4965. add_history()
  4966. ; return 0; }
  4967. EOF
  4968. if { (eval echo configure:5984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4969. rm -rf conftest*
  4970. eval "ac_cv_lib_$ac_lib_var=yes"
  4971. else
  4972. echo "configure: failed program was:" >&5
  4973. cat conftest.$ac_ext >&5
  4974. rm -rf conftest*
  4975. eval "ac_cv_lib_$ac_lib_var=no"
  4976. fi
  4977. rm -f conftest*
  4978. LIBS="$ac_save_LIBS"
  4979. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4980. echo "$ac_t""yes" 1>&6
  4981. HISTORYLIB="$HISTORYLIB -lhistory "
  4982. else
  4983. echo "$ac_t""no" 1>&6
  4984. LDFLAGS=${ac_save_ldflags}
  4985. { echo "configure: error: *** Unable to locate History library." 1>&2; exit 1; }
  4986. fi
  4987. LDFLAGS=${ac_save_ldflags}
  4988. fi # $USE_READLINE
  4989. # Done checking Readline
  4990. # GDAL option
  4991. echo $ac_n "checking whether to use GDAL""... $ac_c" 1>&6
  4992. echo "configure:6026: checking whether to use GDAL" >&5
  4993. GDAL_LIBS=
  4994. GDAL_CFLAGS=
  4995. USE_GDAL=
  4996. USE_OGR=
  4997. if test "`basename xx/$with_gdal`" = "gdal-config" ; then
  4998. GDAL_CONFIG="$with_gdal"
  4999. fi
  5000. if test "$with_gdal" = "no" ; then
  5001. echo "$ac_t""no" 1>&6
  5002. else
  5003. echo "$ac_t""yes" 1>&6
  5004. # Extract the first word of "gdal-config", so it can be a program name with args.
  5005. set dummy gdal-config; ac_word=$2
  5006. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5007. echo "configure:6044: checking for $ac_word" >&5
  5008. case "$GDAL_CONFIG" in
  5009. /*)
  5010. ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a path.
  5011. ;;
  5012. ?:/*)
  5013. ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a dos path.
  5014. ;;
  5015. *)
  5016. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5017. ac_dummy="$PATH"
  5018. for ac_dir in $ac_dummy; do
  5019. test -z "$ac_dir" && ac_dir=.
  5020. if test -f $ac_dir/$ac_word; then
  5021. ac_cv_path_GDAL_CONFIG="$ac_dir/$ac_word"
  5022. break
  5023. fi
  5024. done
  5025. IFS="$ac_save_ifs"
  5026. test -z "$ac_cv_path_GDAL_CONFIG" && ac_cv_path_GDAL_CONFIG="no"
  5027. ;;
  5028. esac
  5029. GDAL_CONFIG="$ac_cv_path_GDAL_CONFIG"
  5030. if test -n "$GDAL_CONFIG"; then
  5031. echo "$ac_t""$GDAL_CONFIG" 1>&6
  5032. else
  5033. echo "$ac_t""no" 1>&6
  5034. fi
  5035. if test "$GDAL_CONFIG" = "no" ; then
  5036. { echo "configure: error: *** couldn't find gdal-config" 1>&2; exit 1; }
  5037. fi
  5038. if test "$GDAL_CONFIG" != "" ; then
  5039. GDAL_LIBS=`"$GDAL_CONFIG" --libs`
  5040. GDAL_DEP_LIBS=`"$GDAL_CONFIG" --dep-libs`
  5041. GDAL_CFLAGS=`"$GDAL_CONFIG" --cflags`
  5042. USE_GDAL=1
  5043. if test `"$GDAL_CONFIG" --ogr-enabled` = "yes" ; then
  5044. cat >> confdefs.h <<\EOF
  5045. #define HAVE_OGR 1
  5046. EOF
  5047. USE_OGR=1
  5048. fi
  5049. fi
  5050. GDAL=
  5051. ac_save_libs="$LIBS"
  5052. ac_save_cflags="$CFLAGS"
  5053. LIBS="$LIBS $GDAL_LIBS"
  5054. CFLAGS="$CFLAGS $GDAL_CFLAGS"
  5055. cat > conftest.$ac_ext <<EOF
  5056. #line 6099 "configure"
  5057. #include "confdefs.h"
  5058. #include <gdal.h>
  5059. int main() {
  5060. GDALOpen("foo", GA_ReadOnly);
  5061. ; return 0; }
  5062. EOF
  5063. if { (eval echo configure:6106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5064. :
  5065. else
  5066. echo "configure: failed program was:" >&5
  5067. cat conftest.$ac_ext >&5
  5068. rm -rf conftest*
  5069. LIBS="$LIBS $GDAL_DEP_LIBS"
  5070. cat > conftest.$ac_ext <<EOF
  5071. #line 6115 "configure"
  5072. #include "confdefs.h"
  5073. #include <gdal.h>
  5074. int main() {
  5075. GDALOpen("foo", GA_ReadOnly);
  5076. ; return 0; }
  5077. EOF
  5078. if { (eval echo configure:6122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5079. rm -rf conftest*
  5080. GDAL_LIBS="$GDAL_LIBS $GDAL_DEP_LIBS"
  5081. else
  5082. echo "configure: failed program was:" >&5
  5083. cat conftest.$ac_ext >&5
  5084. rm -rf conftest*
  5085. { echo "configure: error: *** Unable to locate GDAL library." 1>&2; exit 1; }
  5086. fi
  5087. rm -f conftest*
  5088. fi
  5089. rm -f conftest*
  5090. LIBS=${ac_save_libs}
  5091. CFLAGS=${ac_save_cflags}
  5092. cat >> confdefs.h <<\EOF
  5093. #define HAVE_GDAL 1
  5094. EOF
  5095. fi
  5096. # libLAS option
  5097. echo $ac_n "checking whether to use libLAS""... $ac_c" 1>&6
  5098. echo "configure:6154: checking whether to use libLAS" >&5
  5099. LIBLAS_LIBS=
  5100. LIBLAS_CFLAGS=
  5101. USE_LIBLAS=
  5102. if test "`basename xx/$with_liblas`" = "liblas-config" ; then
  5103. LIBLAS_CONFIG="$with_liblas"
  5104. fi
  5105. if test "$with_liblas" = "no" ; then
  5106. echo "$ac_t""no" 1>&6
  5107. else
  5108. echo "$ac_t""yes" 1>&6
  5109. # Extract the first word of "liblas-config", so it can be a program name with args.
  5110. set dummy liblas-config; ac_word=$2
  5111. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5112. echo "configure:6171: checking for $ac_word" >&5
  5113. case "$LIBLAS_CONFIG" in
  5114. /*)
  5115. ac_cv_path_LIBLAS_CONFIG="$LIBLAS_CONFIG" # Let the user override the test with a path.
  5116. ;;
  5117. ?:/*)
  5118. ac_cv_path_LIBLAS_CONFIG="$LIBLAS_CONFIG" # Let the user override the test with a dos path.
  5119. ;;
  5120. *)
  5121. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5122. ac_dummy="$PATH"
  5123. for ac_dir in $ac_dummy; do
  5124. test -z "$ac_dir" && ac_dir=.
  5125. if test -f $ac_dir/$ac_word; then
  5126. ac_cv_path_LIBLAS_CONFIG="$ac_dir/$ac_word"
  5127. break
  5128. fi
  5129. done
  5130. IFS="$ac_save_ifs"
  5131. test -z "$ac_cv_path_LIBLAS_CONFIG" && ac_cv_path_LIBLAS_CONFIG="no"
  5132. ;;
  5133. esac
  5134. LIBLAS_CONFIG="$ac_cv_path_LIBLAS_CONFIG"
  5135. if test -n "$LIBLAS_CONFIG"; then
  5136. echo "$ac_t""$LIBLAS_CONFIG" 1>&6
  5137. else
  5138. echo "$ac_t""no" 1>&6
  5139. fi
  5140. if test "$LIBLAS_CONFIG" = "no" ; then
  5141. { echo "configure: error: *** couldn't find liblas-config" 1>&2; exit 1; }
  5142. fi
  5143. if test "$LIBLAS_CONFIG" != "" ; then
  5144. LIBLAS_LIBS=`"$LIBLAS_CONFIG" --libs`
  5145. LIBLAS_CFLAGS=`"$LIBLAS_CONFIG" --cflags`
  5146. LIBLAS_INC=`"$LIBLAS_CONFIG" --includes`
  5147. USE_LIBLAS=1
  5148. fi
  5149. LIBLAS=
  5150. ac_save_libs="$LIBS"
  5151. ac_save_cflags="$CFLAGS"
  5152. LIBS="$LIBS $LIBLAS_LIBS"
  5153. CFLAGS="$CFLAGS $LIBLAS_CFLAGS"
  5154. cat > conftest.$ac_ext <<EOF
  5155. #line 6219 "configure"
  5156. #include "confdefs.h"
  5157. #include <liblas/capi/liblas.h>
  5158. int main() {
  5159. LASReader_Create("foo");
  5160. ; return 0; }
  5161. EOF
  5162. if { (eval echo configure:6226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5163. :
  5164. else
  5165. echo "configure: failed program was:" >&5
  5166. cat conftest.$ac_ext >&5
  5167. rm -rf conftest*
  5168. cat > conftest.$ac_ext <<EOF
  5169. #line 6234 "configure"
  5170. #include "confdefs.h"
  5171. #include <liblas/capi/liblas.h>
  5172. int main() {
  5173. LASReader_Create("foo");
  5174. ; return 0; }
  5175. EOF
  5176. if { (eval echo configure:6241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5177. rm -rf conftest*
  5178. LAS_LIBS="$LAS_LIBS"
  5179. else
  5180. echo "configure: failed program was:" >&5
  5181. cat conftest.$ac_ext >&5
  5182. rm -rf conftest*
  5183. { echo "configure: error: *** Unable to locate libLAS library." 1>&2; exit 1; }
  5184. fi
  5185. rm -f conftest*
  5186. fi
  5187. rm -f conftest*
  5188. LIBS=${ac_save_libs}
  5189. CFLAGS=${ac_save_cflags}
  5190. cat >> confdefs.h <<\EOF
  5191. #define HAVE_LIBLAS 1
  5192. EOF
  5193. fi
  5194. # NetCDF option
  5195. echo $ac_n "checking whether to use NetCDF""... $ac_c" 1>&6
  5196. echo "configure:6273: checking whether to use NetCDF" >&5
  5197. NETCDF_LIBS=
  5198. NETCDF_CFLAGS=
  5199. USE_NETCDF=
  5200. if test "`basename xx/$with_netcdf`" = "nc-config" ; then
  5201. NETCDF_CONFIG="$with_netcdf"
  5202. fi
  5203. if test "$with_netcdf" = "no" ; then
  5204. echo "$ac_t""no" 1>&6
  5205. else
  5206. echo "$ac_t""yes" 1>&6
  5207. # Extract the first word of "nc-config", so it can be a program name with args.
  5208. set dummy nc-config; ac_word=$2
  5209. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5210. echo "configure:6290: checking for $ac_word" >&5
  5211. case "$NETCDF_CONFIG" in
  5212. /*)
  5213. ac_cv_path_NETCDF_CONFIG="$NETCDF_CONFIG" # Let the user override the test with a path.
  5214. ;;
  5215. ?:/*)
  5216. ac_cv_path_NETCDF_CONFIG="$NETCDF_CONFIG" # Let the user override the test with a dos path.
  5217. ;;
  5218. *)
  5219. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5220. ac_dummy="$PATH"
  5221. for ac_dir in $ac_dummy; do
  5222. test -z "$ac_dir" && ac_dir=.
  5223. if test -f $ac_dir/$ac_word; then
  5224. ac_cv_path_NETCDF_CONFIG="$ac_dir/$ac_word"
  5225. break
  5226. fi
  5227. done
  5228. IFS="$ac_save_ifs"
  5229. test -z "$ac_cv_path_NETCDF_CONFIG" && ac_cv_path_NETCDF_CONFIG="no"
  5230. ;;
  5231. esac
  5232. NETCDF_CONFIG="$ac_cv_path_NETCDF_CONFIG"
  5233. if test -n "$NETCDF_CONFIG"; then
  5234. echo "$ac_t""$NETCDF_CONFIG" 1>&6
  5235. else
  5236. echo "$ac_t""no" 1>&6
  5237. fi
  5238. if test "$NETCDF_CONFIG" = "no" ; then
  5239. { echo "configure: error: *** couldn't find nc-config" 1>&2; exit 1; }
  5240. fi
  5241. if test "$NETCDF_CONFIG" != "" ; then
  5242. NETCDF_LIBS=`"$NETCDF_CONFIG" --libs`
  5243. NETCDF_CFLAGS=`"$NETCDF_CONFIG" --cflags`
  5244. USE_NETCDF=1
  5245. fi
  5246. NETCDF=
  5247. ac_save_libs="$LIBS"
  5248. ac_save_cflags="$CFLAGS"
  5249. LIBS="$LIBS $NETCDF_LIBS"
  5250. CFLAGS="$CFLAGS $NETCDF_CFLAGS"
  5251. cat > conftest.$ac_ext <<EOF
  5252. #line 6337 "configure"
  5253. #include "confdefs.h"
  5254. #include <netcdf.h>
  5255. int main() {
  5256. nc_create("foo", NC_CLOBBER, NULL);
  5257. ; return 0; }
  5258. EOF
  5259. if { (eval echo configure:6344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5260. :
  5261. else
  5262. echo "configure: failed program was:" >&5
  5263. cat conftest.$ac_ext >&5
  5264. rm -rf conftest*
  5265. cat > conftest.$ac_ext <<EOF
  5266. #line 6352 "configure"
  5267. #include "confdefs.h"
  5268. #include <netcdf.h>
  5269. int main() {
  5270. nc_create("foo", NC_CLOBBER, NULL);
  5271. ; return 0; }
  5272. EOF
  5273. if { (eval echo configure:6359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5274. rm -rf conftest*
  5275. NETCDF_LIBS="$NETCDF_LIBS"
  5276. else
  5277. echo "configure: failed program was:" >&5
  5278. cat conftest.$ac_ext >&5
  5279. rm -rf conftest*
  5280. { echo "configure: error: *** Unable to locate NetCDF library." 1>&2; exit 1; }
  5281. fi
  5282. rm -f conftest*
  5283. fi
  5284. rm -f conftest*
  5285. LIBS=${ac_save_libs}
  5286. CFLAGS=${ac_save_cflags}
  5287. cat >> confdefs.h <<\EOF
  5288. #define HAVE_NETCDF 1
  5289. EOF
  5290. fi
  5291. # GEOS option
  5292. echo $ac_n "checking whether to use GEOS""... $ac_c" 1>&6
  5293. echo "configure:6390: checking whether to use GEOS" >&5
  5294. GEOS_LIBS=
  5295. GEOS_CFLAGS=
  5296. USE_GEOS=
  5297. # FIXME: "quote" $with_geos ?
  5298. if test "`basename xx/$with_geos`" = "geos-config" ; then
  5299. GEOS_CONFIG="$with_geos"
  5300. fi
  5301. if test "$with_geos" = "no" ; then
  5302. echo "$ac_t""no" 1>&6
  5303. else
  5304. echo "$ac_t""yes" 1>&6
  5305. # Extract the first word of "geos-config", so it can be a program name with args.
  5306. set dummy geos-config; ac_word=$2
  5307. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5308. echo "configure:6408: checking for $ac_word" >&5
  5309. case "$GEOS_CONFIG" in
  5310. /*)
  5311. ac_cv_path_GEOS_CONFIG="$GEOS_CONFIG" # Let the user override the test with a path.
  5312. ;;
  5313. ?:/*)
  5314. ac_cv_path_GEOS_CONFIG="$GEOS_CONFIG" # Let the user override the test with a dos path.
  5315. ;;
  5316. *)
  5317. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5318. ac_dummy="$PATH"
  5319. for ac_dir in $ac_dummy; do
  5320. test -z "$ac_dir" && ac_dir=.
  5321. if test -f $ac_dir/$ac_word; then
  5322. ac_cv_path_GEOS_CONFIG="$ac_dir/$ac_word"
  5323. break
  5324. fi
  5325. done
  5326. IFS="$ac_save_ifs"
  5327. test -z "$ac_cv_path_GEOS_CONFIG" && ac_cv_path_GEOS_CONFIG="no"
  5328. ;;
  5329. esac
  5330. GEOS_CONFIG="$ac_cv_path_GEOS_CONFIG"
  5331. if test -n "$GEOS_CONFIG"; then
  5332. echo "$ac_t""$GEOS_CONFIG" 1>&6
  5333. else
  5334. echo "$ac_t""no" 1>&6
  5335. fi
  5336. if test "$GEOS_CONFIG" = "no" ; then
  5337. { echo "configure: error: *** couldn't find geos-config" 1>&2; exit 1; }
  5338. fi
  5339. if test "$GEOS_CONFIG" != "" ; then
  5340. GEOS_LIBS=`"$GEOS_CONFIG" --libs`
  5341. GEOS_CFLAGS=`"$GEOS_CONFIG" --cflags`
  5342. USE_GEOS=1
  5343. fi
  5344. ac_save_cppflags="$CPPFLAGS"
  5345. CPPFLAGS="$GEOS_CFLAGS $CPPFLAGS"
  5346. for ac_hdr in geos_c.h
  5347. do
  5348. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5349. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5350. echo "configure:6456: checking for $ac_hdr" >&5
  5351. cat > conftest.$ac_ext <<EOF
  5352. #line 6459 "configure"
  5353. #include "confdefs.h"
  5354. #include <$ac_hdr>
  5355. EOF
  5356. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5357. { (eval echo configure:6464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5358. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5359. if test -z "$ac_err"; then
  5360. rm -rf conftest*
  5361. eval "ac_cv_header_$ac_safe=yes"
  5362. else
  5363. echo "$ac_err" >&5
  5364. echo "configure: failed program was:" >&5
  5365. cat conftest.$ac_ext >&5
  5366. rm -rf conftest*
  5367. eval "ac_cv_header_$ac_safe=no"
  5368. fi
  5369. rm -f conftest*
  5370. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5371. echo "$ac_t""yes" 1>&6
  5372. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5373. cat >> confdefs.h <<EOF
  5374. #define $ac_tr_hdr 1
  5375. EOF
  5376. else
  5377. echo "$ac_t""no" 1>&6
  5378. { echo "configure: error: *** Unable to locate GEOS includes." 1>&2; exit 1; }
  5379. fi
  5380. done
  5381. CPPFLAGS=$ac_save_cppflags
  5382. ### 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
  5383. # if test "$MINGW32" = yes ; then
  5384. # LOC_CHECK_LIBS(geos_c_i,initGEOS,GEOS,$GEOS_LIBS,GEOS_LIBS)
  5385. # else
  5386. ac_save_ldflags="$LDFLAGS"
  5387. LDFLAGS="$GEOS_LIBS $LDFLAGS"
  5388. echo $ac_n "checking for initGEOS in -lgeos_c""... $ac_c" 1>&6
  5389. echo "configure:6503: checking for initGEOS in -lgeos_c" >&5
  5390. ac_lib_var=`echo geos_c'_'initGEOS | sed 'y%./+-%__p_%'`
  5391. ac_save_LIBS="$LIBS"
  5392. LIBS="-lgeos_c $LIBS"
  5393. cat > conftest.$ac_ext <<EOF
  5394. #line 6509 "configure"
  5395. #include "confdefs.h"
  5396. /* Override any gcc2 internal prototype to avoid an error. */
  5397. /* We use char because int might match the return type of a gcc2
  5398. builtin and then its argument prototype would still apply. */
  5399. char initGEOS();
  5400. int main() {
  5401. initGEOS()
  5402. ; return 0; }
  5403. EOF
  5404. if { (eval echo configure:6520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5405. rm -rf conftest*
  5406. eval "ac_cv_lib_$ac_lib_var=yes"
  5407. else
  5408. echo "configure: failed program was:" >&5
  5409. cat conftest.$ac_ext >&5
  5410. rm -rf conftest*
  5411. eval "ac_cv_lib_$ac_lib_var=no"
  5412. fi
  5413. rm -f conftest*
  5414. LIBS="$ac_save_LIBS"
  5415. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5416. echo "$ac_t""yes" 1>&6
  5417. GEOS_LIBS="$GEOS_LIBS -lgeos_c "
  5418. else
  5419. echo "$ac_t""no" 1>&6
  5420. LDFLAGS=${ac_save_ldflags}
  5421. { echo "configure: error: *** Unable to locate GEOS library." 1>&2; exit 1; }
  5422. fi
  5423. LDFLAGS=${ac_save_ldflags}
  5424. # fi
  5425. cat >> confdefs.h <<\EOF
  5426. #define HAVE_GEOS 1
  5427. EOF
  5428. fi
  5429. # Enable TIFF option
  5430. echo $ac_n "checking whether to use TIFF""... $ac_c" 1>&6
  5431. echo "configure:6564: checking whether to use TIFF" >&5
  5432. echo "$ac_t"""$with_tiff"" 1>&6
  5433. case "$with_tiff" in
  5434. "no") USE_TIFF= ;;
  5435. "yes") USE_TIFF="1" ;;
  5436. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  5437. esac
  5438. TIFF_INCLUDE_DIRS=
  5439. TIFF_LIBRARY_DIRS=
  5440. TIFFLIB=
  5441. if test -n "$USE_TIFF"; then
  5442. # With TIFF includes directory
  5443. echo $ac_n "checking for location of TIFF includes""... $ac_c" 1>&6
  5444. echo "configure:6584: checking for location of TIFF includes" >&5
  5445. case "$with_tiff_includes" in
  5446. y | ye | yes | n | no)
  5447. { echo "configure: error: *** You must supply a directory to --with-tiff-includes." 1>&2; exit 1; }
  5448. ;;
  5449. esac
  5450. echo "$ac_t""$with_tiff_includes" 1>&6
  5451. if test -n "$with_tiff_includes" ; then
  5452. for dir in $with_tiff_includes; do
  5453. if test -d "$dir"; then
  5454. TIFF_INCLUDE_DIRS="$TIFF_INCLUDE_DIRS -I$dir"
  5455. else
  5456. { echo "configure: error: *** TIFF includes directory $dir does not exist." 1>&2; exit 1; }
  5457. fi
  5458. done
  5459. fi
  5460. ac_save_cppflags="$CPPFLAGS"
  5461. CPPFLAGS="$TIFF_INCLUDE_DIRS $CPPFLAGS"
  5462. for ac_hdr in tiffio.h
  5463. do
  5464. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5465. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5466. echo "configure:6610: checking for $ac_hdr" >&5
  5467. cat > conftest.$ac_ext <<EOF
  5468. #line 6613 "configure"
  5469. #include "confdefs.h"
  5470. #include <$ac_hdr>
  5471. EOF
  5472. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5473. { (eval echo configure:6618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5474. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5475. if test -z "$ac_err"; then
  5476. rm -rf conftest*
  5477. eval "ac_cv_header_$ac_safe=yes"
  5478. else
  5479. echo "$ac_err" >&5
  5480. echo "configure: failed program was:" >&5
  5481. cat conftest.$ac_ext >&5
  5482. rm -rf conftest*
  5483. eval "ac_cv_header_$ac_safe=no"
  5484. fi
  5485. rm -f conftest*
  5486. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5487. echo "$ac_t""yes" 1>&6
  5488. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5489. cat >> confdefs.h <<EOF
  5490. #define $ac_tr_hdr 1
  5491. EOF
  5492. else
  5493. echo "$ac_t""no" 1>&6
  5494. { echo "configure: error: *** Unable to locate TIFF includes." 1>&2; exit 1; }
  5495. fi
  5496. done
  5497. CPPFLAGS=$ac_save_cppflags
  5498. # With TIFF library directory
  5499. echo $ac_n "checking for location of TIFF library""... $ac_c" 1>&6
  5500. echo "configure:6652: checking for location of TIFF library" >&5
  5501. case "$with_tiff_libs" in
  5502. y | ye | yes | n | no)
  5503. { echo "configure: error: *** You must supply a directory to --with-tiff-libs." 1>&2; exit 1; }
  5504. ;;
  5505. esac
  5506. echo "$ac_t""$with_tiff_libs" 1>&6
  5507. if test -n "$with_tiff_libs"; then
  5508. for dir in $with_tiff_libs; do
  5509. if test -d "$dir"; then
  5510. TIFF_LIBRARY_DIRS="$TIFF_LIBRARY_DIRS -L$dir"
  5511. else
  5512. { echo "configure: error: *** TIFF library directory $dir does not exist." 1>&2; exit 1; }
  5513. fi
  5514. done
  5515. fi
  5516. ac_save_ldflags="$LDFLAGS"
  5517. LDFLAGS="$TIFF_LIBRARY_DIRS $LDFLAGS"
  5518. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5519. echo "configure:6683: checking for TIFFOpen in -ltiff" >&5
  5520. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5521. ac_save_LIBS="$LIBS"
  5522. LIBS="-ltiff $LIBS"
  5523. cat > conftest.$ac_ext <<EOF
  5524. #line 6689 "configure"
  5525. #include "confdefs.h"
  5526. /* Override any gcc2 internal prototype to avoid an error. */
  5527. /* We use char because int might match the return type of a gcc2
  5528. builtin and then its argument prototype would still apply. */
  5529. char TIFFOpen();
  5530. int main() {
  5531. TIFFOpen()
  5532. ; return 0; }
  5533. EOF
  5534. if { (eval echo configure:6700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5535. rm -rf conftest*
  5536. eval "ac_cv_lib_$ac_lib_var=yes"
  5537. else
  5538. echo "configure: failed program was:" >&5
  5539. cat conftest.$ac_ext >&5
  5540. rm -rf conftest*
  5541. eval "ac_cv_lib_$ac_lib_var=no"
  5542. fi
  5543. rm -f conftest*
  5544. LIBS="$ac_save_LIBS"
  5545. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5546. echo "$ac_t""yes" 1>&6
  5547. TIFFLIB="$TIFFLIB -ltiff "
  5548. else
  5549. echo "$ac_t""no" 1>&6
  5550. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5551. echo "configure:6719: checking for TIFFOpen in -ltiff" >&5
  5552. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5553. ac_save_LIBS="$LIBS"
  5554. LIBS="-ltiff $MATHLIB $LIBS"
  5555. cat > conftest.$ac_ext <<EOF
  5556. #line 6725 "configure"
  5557. #include "confdefs.h"
  5558. /* Override any gcc2 internal prototype to avoid an error. */
  5559. /* We use char because int might match the return type of a gcc2
  5560. builtin and then its argument prototype would still apply. */
  5561. char TIFFOpen();
  5562. int main() {
  5563. TIFFOpen()
  5564. ; return 0; }
  5565. EOF
  5566. if { (eval echo configure:6736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5567. rm -rf conftest*
  5568. eval "ac_cv_lib_$ac_lib_var=yes"
  5569. else
  5570. echo "configure: failed program was:" >&5
  5571. cat conftest.$ac_ext >&5
  5572. rm -rf conftest*
  5573. eval "ac_cv_lib_$ac_lib_var=no"
  5574. fi
  5575. rm -f conftest*
  5576. LIBS="$ac_save_LIBS"
  5577. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5578. echo "$ac_t""yes" 1>&6
  5579. TIFFLIB="$TIFFLIB -ltiff $MATHLIB"
  5580. else
  5581. echo "$ac_t""no" 1>&6
  5582. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5583. echo "configure:6755: checking for TIFFOpen in -ltiff" >&5
  5584. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5585. ac_save_LIBS="$LIBS"
  5586. LIBS="-ltiff $ZLIB $LIBS"
  5587. cat > conftest.$ac_ext <<EOF
  5588. #line 6761 "configure"
  5589. #include "confdefs.h"
  5590. /* Override any gcc2 internal prototype to avoid an error. */
  5591. /* We use char because int might match the return type of a gcc2
  5592. builtin and then its argument prototype would still apply. */
  5593. char TIFFOpen();
  5594. int main() {
  5595. TIFFOpen()
  5596. ; return 0; }
  5597. EOF
  5598. if { (eval echo configure:6772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5599. rm -rf conftest*
  5600. eval "ac_cv_lib_$ac_lib_var=yes"
  5601. else
  5602. echo "configure: failed program was:" >&5
  5603. cat conftest.$ac_ext >&5
  5604. rm -rf conftest*
  5605. eval "ac_cv_lib_$ac_lib_var=no"
  5606. fi
  5607. rm -f conftest*
  5608. LIBS="$ac_save_LIBS"
  5609. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5610. echo "$ac_t""yes" 1>&6
  5611. TIFFLIB="$TIFFLIB -ltiff $ZLIB"
  5612. else
  5613. echo "$ac_t""no" 1>&6
  5614. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5615. echo "configure:6791: checking for TIFFOpen in -ltiff" >&5
  5616. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5617. ac_save_LIBS="$LIBS"
  5618. LIBS="-ltiff $ZLIB $MATHLIB $LIBS"
  5619. cat > conftest.$ac_ext <<EOF
  5620. #line 6797 "configure"
  5621. #include "confdefs.h"
  5622. /* Override any gcc2 internal prototype to avoid an error. */
  5623. /* We use char because int might match the return type of a gcc2
  5624. builtin and then its argument prototype would still apply. */
  5625. char TIFFOpen();
  5626. int main() {
  5627. TIFFOpen()
  5628. ; return 0; }
  5629. EOF
  5630. if { (eval echo configure:6808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5631. rm -rf conftest*
  5632. eval "ac_cv_lib_$ac_lib_var=yes"
  5633. else
  5634. echo "configure: failed program was:" >&5
  5635. cat conftest.$ac_ext >&5
  5636. rm -rf conftest*
  5637. eval "ac_cv_lib_$ac_lib_var=no"
  5638. fi
  5639. rm -f conftest*
  5640. LIBS="$ac_save_LIBS"
  5641. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5642. echo "$ac_t""yes" 1>&6
  5643. TIFFLIB="$TIFFLIB -ltiff $ZLIB $MATHLIB"
  5644. else
  5645. echo "$ac_t""no" 1>&6
  5646. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5647. echo "configure:6827: checking for TIFFOpen in -ltiff" >&5
  5648. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5649. ac_save_LIBS="$LIBS"
  5650. LIBS="-ltiff -ljpeg $LIBS"
  5651. cat > conftest.$ac_ext <<EOF
  5652. #line 6833 "configure"
  5653. #include "confdefs.h"
  5654. /* Override any gcc2 internal prototype to avoid an error. */
  5655. /* We use char because int might match the return type of a gcc2
  5656. builtin and then its argument prototype would still apply. */
  5657. char TIFFOpen();
  5658. int main() {
  5659. TIFFOpen()
  5660. ; return 0; }
  5661. EOF
  5662. if { (eval echo configure:6844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5663. rm -rf conftest*
  5664. eval "ac_cv_lib_$ac_lib_var=yes"
  5665. else
  5666. echo "configure: failed program was:" >&5
  5667. cat conftest.$ac_ext >&5
  5668. rm -rf conftest*
  5669. eval "ac_cv_lib_$ac_lib_var=no"
  5670. fi
  5671. rm -f conftest*
  5672. LIBS="$ac_save_LIBS"
  5673. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5674. echo "$ac_t""yes" 1>&6
  5675. TIFFLIB="$TIFFLIB -ltiff -ljpeg"
  5676. else
  5677. echo "$ac_t""no" 1>&6
  5678. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5679. echo "configure:6863: checking for TIFFOpen in -ltiff" >&5
  5680. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5681. ac_save_LIBS="$LIBS"
  5682. LIBS="-ltiff -ljpeg $MATHLIB $LIBS"
  5683. cat > conftest.$ac_ext <<EOF
  5684. #line 6869 "configure"
  5685. #include "confdefs.h"
  5686. /* Override any gcc2 internal prototype to avoid an error. */
  5687. /* We use char because int might match the return type of a gcc2
  5688. builtin and then its argument prototype would still apply. */
  5689. char TIFFOpen();
  5690. int main() {
  5691. TIFFOpen()
  5692. ; return 0; }
  5693. EOF
  5694. if { (eval echo configure:6880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5695. rm -rf conftest*
  5696. eval "ac_cv_lib_$ac_lib_var=yes"
  5697. else
  5698. echo "configure: failed program was:" >&5
  5699. cat conftest.$ac_ext >&5
  5700. rm -rf conftest*
  5701. eval "ac_cv_lib_$ac_lib_var=no"
  5702. fi
  5703. rm -f conftest*
  5704. LIBS="$ac_save_LIBS"
  5705. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5706. echo "$ac_t""yes" 1>&6
  5707. TIFFLIB="$TIFFLIB -ltiff -ljpeg $MATHLIB"
  5708. else
  5709. echo "$ac_t""no" 1>&6
  5710. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5711. echo "configure:6899: checking for TIFFOpen in -ltiff" >&5
  5712. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5713. ac_save_LIBS="$LIBS"
  5714. LIBS="-ltiff -ljpeg $ZLIB $LIBS"
  5715. cat > conftest.$ac_ext <<EOF
  5716. #line 6905 "configure"
  5717. #include "confdefs.h"
  5718. /* Override any gcc2 internal prototype to avoid an error. */
  5719. /* We use char because int might match the return type of a gcc2
  5720. builtin and then its argument prototype would still apply. */
  5721. char TIFFOpen();
  5722. int main() {
  5723. TIFFOpen()
  5724. ; return 0; }
  5725. EOF
  5726. if { (eval echo configure:6916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5727. rm -rf conftest*
  5728. eval "ac_cv_lib_$ac_lib_var=yes"
  5729. else
  5730. echo "configure: failed program was:" >&5
  5731. cat conftest.$ac_ext >&5
  5732. rm -rf conftest*
  5733. eval "ac_cv_lib_$ac_lib_var=no"
  5734. fi
  5735. rm -f conftest*
  5736. LIBS="$ac_save_LIBS"
  5737. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5738. echo "$ac_t""yes" 1>&6
  5739. TIFFLIB="$TIFFLIB -ltiff -ljpeg $ZLIB"
  5740. else
  5741. echo "$ac_t""no" 1>&6
  5742. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5743. echo "configure:6935: checking for TIFFOpen in -ltiff" >&5
  5744. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5745. ac_save_LIBS="$LIBS"
  5746. LIBS="-ltiff -ljpeg $ZLIB $MATHLIB $LIBS"
  5747. cat > conftest.$ac_ext <<EOF
  5748. #line 6941 "configure"
  5749. #include "confdefs.h"
  5750. /* Override any gcc2 internal prototype to avoid an error. */
  5751. /* We use char because int might match the return type of a gcc2
  5752. builtin and then its argument prototype would still apply. */
  5753. char TIFFOpen();
  5754. int main() {
  5755. TIFFOpen()
  5756. ; return 0; }
  5757. EOF
  5758. if { (eval echo configure:6952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5759. rm -rf conftest*
  5760. eval "ac_cv_lib_$ac_lib_var=yes"
  5761. else
  5762. echo "configure: failed program was:" >&5
  5763. cat conftest.$ac_ext >&5
  5764. rm -rf conftest*
  5765. eval "ac_cv_lib_$ac_lib_var=no"
  5766. fi
  5767. rm -f conftest*
  5768. LIBS="$ac_save_LIBS"
  5769. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5770. echo "$ac_t""yes" 1>&6
  5771. TIFFLIB="$TIFFLIB -ltiff -ljpeg $ZLIB $MATHLIB"
  5772. else
  5773. echo "$ac_t""no" 1>&6
  5774. LDFLAGS=${ac_save_ldflags}
  5775. { echo "configure: error: *** Unable to locate TIFF library." 1>&2; exit 1; }
  5776. fi
  5777. fi
  5778. fi
  5779. fi
  5780. fi
  5781. fi
  5782. fi
  5783. fi
  5784. LDFLAGS=${ac_save_ldflags}
  5785. fi # $USE_TIFF
  5786. # Done checking TIFF
  5787. # Enable PNG option
  5788. echo $ac_n "checking whether to use PNG""... $ac_c" 1>&6
  5789. echo "configure:7050: checking whether to use PNG" >&5
  5790. echo "$ac_t"""$with_png"" 1>&6
  5791. case "$with_png" in
  5792. "no") USE_PNG= ;;
  5793. "yes") USE_PNG="1" ;;
  5794. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  5795. esac
  5796. PNGINC=
  5797. PNGLIB=
  5798. if test -n "$USE_PNG"; then
  5799. # With PNG includes directory
  5800. echo $ac_n "checking for location of PNG includes""... $ac_c" 1>&6
  5801. echo "configure:7069: checking for location of PNG includes" >&5
  5802. case "$with_png_includes" in
  5803. y | ye | yes | n | no)
  5804. { echo "configure: error: *** You must supply a directory to --with-png-includes." 1>&2; exit 1; }
  5805. ;;
  5806. esac
  5807. echo "$ac_t""$with_png_includes" 1>&6
  5808. if test -n "$with_png_includes" ; then
  5809. for dir in $with_png_includes; do
  5810. if test -d "$dir"; then
  5811. PNGINC="$PNGINC -I$dir"
  5812. else
  5813. { echo "configure: error: *** PNG includes directory $dir does not exist." 1>&2; exit 1; }
  5814. fi
  5815. done
  5816. fi
  5817. ac_save_cppflags="$CPPFLAGS"
  5818. CPPFLAGS="$PNGINC $CPPFLAGS"
  5819. for ac_hdr in png.h
  5820. do
  5821. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5822. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5823. echo "configure:7095: checking for $ac_hdr" >&5
  5824. cat > conftest.$ac_ext <<EOF
  5825. #line 7098 "configure"
  5826. #include "confdefs.h"
  5827. #include <$ac_hdr>
  5828. EOF
  5829. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5830. { (eval echo configure:7103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5831. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5832. if test -z "$ac_err"; then
  5833. rm -rf conftest*
  5834. eval "ac_cv_header_$ac_safe=yes"
  5835. else
  5836. echo "$ac_err" >&5
  5837. echo "configure: failed program was:" >&5
  5838. cat conftest.$ac_ext >&5
  5839. rm -rf conftest*
  5840. eval "ac_cv_header_$ac_safe=no"
  5841. fi
  5842. rm -f conftest*
  5843. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5844. echo "$ac_t""yes" 1>&6
  5845. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5846. cat >> confdefs.h <<EOF
  5847. #define $ac_tr_hdr 1
  5848. EOF
  5849. else
  5850. echo "$ac_t""no" 1>&6
  5851. { echo "configure: error: *** Unable to locate PNG includes." 1>&2; exit 1; }
  5852. fi
  5853. done
  5854. CPPFLAGS=$ac_save_cppflags
  5855. # With PNG library directory
  5856. echo $ac_n "checking for location of PNG library""... $ac_c" 1>&6
  5857. echo "configure:7137: checking for location of PNG library" >&5
  5858. case "$with_png_libs" in
  5859. y | ye | yes | n | no)
  5860. { echo "configure: error: *** You must supply a directory to --with-png-libs." 1>&2; exit 1; }
  5861. ;;
  5862. esac
  5863. echo "$ac_t""$with_png_libs" 1>&6
  5864. if test -n "$with_png_libs"; then
  5865. for dir in $with_png_libs; do
  5866. if test -d "$dir"; then
  5867. PNGLIB="$PNGLIB -L$dir"
  5868. else
  5869. { echo "configure: error: *** PNG library directory $dir does not exist." 1>&2; exit 1; }
  5870. fi
  5871. done
  5872. fi
  5873. ac_save_ldflags="$LDFLAGS"
  5874. LDFLAGS="$PNGLIB $LDFLAGS"
  5875. echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
  5876. echo "configure:7162: checking for png_read_image in -lpng" >&5
  5877. ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
  5878. ac_save_LIBS="$LIBS"
  5879. LIBS="-lpng $ZLIB $MATHLIB $LIBS"
  5880. cat > conftest.$ac_ext <<EOF
  5881. #line 7168 "configure"
  5882. #include "confdefs.h"
  5883. /* Override any gcc2 internal prototype to avoid an error. */
  5884. /* We use char because int might match the return type of a gcc2
  5885. builtin and then its argument prototype would still apply. */
  5886. char png_read_image();
  5887. int main() {
  5888. png_read_image()
  5889. ; return 0; }
  5890. EOF
  5891. if { (eval echo configure:7179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5892. rm -rf conftest*
  5893. eval "ac_cv_lib_$ac_lib_var=yes"
  5894. else
  5895. echo "configure: failed program was:" >&5
  5896. cat conftest.$ac_ext >&5
  5897. rm -rf conftest*
  5898. eval "ac_cv_lib_$ac_lib_var=no"
  5899. fi
  5900. rm -f conftest*
  5901. LIBS="$ac_save_LIBS"
  5902. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5903. echo "$ac_t""yes" 1>&6
  5904. PNGLIB="$PNGLIB -lpng $ZLIB $MATHLIB"
  5905. else
  5906. echo "$ac_t""no" 1>&6
  5907. LDFLAGS=${ac_save_ldflags}
  5908. { echo "configure: error: *** Unable to locate PNG library." 1>&2; exit 1; }
  5909. fi
  5910. LDFLAGS=${ac_save_ldflags}
  5911. fi # $USE_PNG
  5912. # Done checking PNG
  5913. # Enable PostgreSQL option
  5914. echo $ac_n "checking whether to use PostgreSQL""... $ac_c" 1>&6
  5915. echo "configure:7221: checking whether to use PostgreSQL" >&5
  5916. echo "$ac_t"""$with_postgres"" 1>&6
  5917. case "$with_postgres" in
  5918. "no") USE_POSTGRES= ;;
  5919. "yes") USE_POSTGRES="1" ;;
  5920. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  5921. esac
  5922. if test -n "$USE_POSTGRES"; then
  5923. cat >> confdefs.h <<\EOF
  5924. #define HAVE_POSTGRES 1
  5925. EOF
  5926. fi # $USE_POSTGRES
  5927. PQINCPATH=
  5928. PQLIBPATH=
  5929. PQLIB=
  5930. if test -n "$USE_POSTGRES"; then
  5931. # With PostgreSQL includes directory
  5932. echo $ac_n "checking for location of PostgreSQL includes""... $ac_c" 1>&6
  5933. echo "configure:7248: checking for location of PostgreSQL includes" >&5
  5934. case "$with_postgres_includes" in
  5935. y | ye | yes | n | no)
  5936. { echo "configure: error: *** You must supply a directory to --with-postgres-includes." 1>&2; exit 1; }
  5937. ;;
  5938. esac
  5939. echo "$ac_t""$with_postgres_includes" 1>&6
  5940. if test -n "$with_postgres_includes" ; then
  5941. for dir in $with_postgres_includes; do
  5942. if test -d "$dir"; then
  5943. PQINCPATH="$PQINCPATH -I$dir"
  5944. else
  5945. { echo "configure: error: *** PostgreSQL includes directory $dir does not exist." 1>&2; exit 1; }
  5946. fi
  5947. done
  5948. fi
  5949. ac_save_cppflags="$CPPFLAGS"
  5950. CPPFLAGS="$PQINCPATH $CPPFLAGS"
  5951. for ac_hdr in libpq-fe.h
  5952. do
  5953. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5954. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5955. echo "configure:7274: checking for $ac_hdr" >&5
  5956. cat > conftest.$ac_ext <<EOF
  5957. #line 7277 "configure"
  5958. #include "confdefs.h"
  5959. #include <$ac_hdr>
  5960. EOF
  5961. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5962. { (eval echo configure:7282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5963. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5964. if test -z "$ac_err"; then
  5965. rm -rf conftest*
  5966. eval "ac_cv_header_$ac_safe=yes"
  5967. else
  5968. echo "$ac_err" >&5
  5969. echo "configure: failed program was:" >&5
  5970. cat conftest.$ac_ext >&5
  5971. rm -rf conftest*
  5972. eval "ac_cv_header_$ac_safe=no"
  5973. fi
  5974. rm -f conftest*
  5975. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5976. echo "$ac_t""yes" 1>&6
  5977. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5978. cat >> confdefs.h <<EOF
  5979. #define $ac_tr_hdr 1
  5980. EOF
  5981. else
  5982. echo "$ac_t""no" 1>&6
  5983. { echo "configure: error: *** Unable to locate PostgreSQL includes." 1>&2; exit 1; }
  5984. fi
  5985. done
  5986. CPPFLAGS=$ac_save_cppflags
  5987. fi # $USE_POSTGRES
  5988. if test -n "$USE_POSTGRES"; then
  5989. # With PostgreSQL library directory
  5990. echo $ac_n "checking for location of PostgreSQL library""... $ac_c" 1>&6
  5991. echo "configure:7320: checking for location of PostgreSQL library" >&5
  5992. case "$with_postgres_libs" in
  5993. y | ye | yes | n | no)
  5994. { echo "configure: error: *** You must supply a directory to --with-postgres-libs." 1>&2; exit 1; }
  5995. ;;
  5996. esac
  5997. echo "$ac_t""$with_postgres_libs" 1>&6
  5998. if test -n "$with_postgres_libs"; then
  5999. for dir in $with_postgres_libs; do
  6000. if test -d "$dir"; then
  6001. PQLIBPATH="$PQLIBPATH -L$dir"
  6002. else
  6003. { echo "configure: error: *** PostgreSQL library directory $dir does not exist." 1>&2; exit 1; }
  6004. fi
  6005. done
  6006. fi
  6007. ac_save_ldflags="$LDFLAGS"
  6008. LDFLAGS="$PQLIBPATH $LDFLAGS"
  6009. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6010. echo "configure:7349: checking for PQsetdbLogin in -lpq" >&5
  6011. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6012. ac_save_LIBS="$LIBS"
  6013. LIBS="-lpq $LIBS"
  6014. cat > conftest.$ac_ext <<EOF
  6015. #line 7355 "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 PQsetdbLogin();
  6021. int main() {
  6022. PQsetdbLogin()
  6023. ; return 0; }
  6024. EOF
  6025. if { (eval echo configure:7366: \"$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. PQLIB="$PQLIB -lpq "
  6039. else
  6040. echo "$ac_t""no" 1>&6
  6041. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6042. echo "configure:7385: checking for PQsetdbLogin in -lpq" >&5
  6043. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6044. ac_save_LIBS="$LIBS"
  6045. LIBS="-lpq -lssl -lcrypto $LIBS"
  6046. cat > conftest.$ac_ext <<EOF
  6047. #line 7391 "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 PQsetdbLogin();
  6053. int main() {
  6054. PQsetdbLogin()
  6055. ; return 0; }
  6056. EOF
  6057. if { (eval echo configure:7402: \"$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. PQLIB="$PQLIB -lpq -lssl -lcrypto"
  6071. else
  6072. echo "$ac_t""no" 1>&6
  6073. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6074. echo "configure:7421: checking for PQsetdbLogin in -lpq" >&5
  6075. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6076. ac_save_LIBS="$LIBS"
  6077. LIBS="-lpq -lcrypt $LIBS"
  6078. cat > conftest.$ac_ext <<EOF
  6079. #line 7427 "configure"
  6080. #include "confdefs.h"
  6081. /* Override any gcc2 internal prototype to avoid an error. */
  6082. /* We use char because int might match the return type of a gcc2
  6083. builtin and then its argument prototype would still apply. */
  6084. char PQsetdbLogin();
  6085. int main() {
  6086. PQsetdbLogin()
  6087. ; return 0; }
  6088. EOF
  6089. if { (eval echo configure:7438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6090. rm -rf conftest*
  6091. eval "ac_cv_lib_$ac_lib_var=yes"
  6092. else
  6093. echo "configure: failed program was:" >&5
  6094. cat conftest.$ac_ext >&5
  6095. rm -rf conftest*
  6096. eval "ac_cv_lib_$ac_lib_var=no"
  6097. fi
  6098. rm -f conftest*
  6099. LIBS="$ac_save_LIBS"
  6100. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6101. echo "$ac_t""yes" 1>&6
  6102. PQLIB="$PQLIB -lpq -lcrypt"
  6103. else
  6104. echo "$ac_t""no" 1>&6
  6105. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6106. echo "configure:7457: checking for PQsetdbLogin in -lpq" >&5
  6107. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6108. ac_save_LIBS="$LIBS"
  6109. LIBS="-lpq -lcrypt -lssl -lcrypto $LIBS"
  6110. cat > conftest.$ac_ext <<EOF
  6111. #line 7463 "configure"
  6112. #include "confdefs.h"
  6113. /* Override any gcc2 internal prototype to avoid an error. */
  6114. /* We use char because int might match the return type of a gcc2
  6115. builtin and then its argument prototype would still apply. */
  6116. char PQsetdbLogin();
  6117. int main() {
  6118. PQsetdbLogin()
  6119. ; return 0; }
  6120. EOF
  6121. if { (eval echo configure:7474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6122. rm -rf conftest*
  6123. eval "ac_cv_lib_$ac_lib_var=yes"
  6124. else
  6125. echo "configure: failed program was:" >&5
  6126. cat conftest.$ac_ext >&5
  6127. rm -rf conftest*
  6128. eval "ac_cv_lib_$ac_lib_var=no"
  6129. fi
  6130. rm -f conftest*
  6131. LIBS="$ac_save_LIBS"
  6132. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6133. echo "$ac_t""yes" 1>&6
  6134. PQLIB="$PQLIB -lpq -lcrypt -lssl -lcrypto"
  6135. else
  6136. echo "$ac_t""no" 1>&6
  6137. LDFLAGS=${ac_save_ldflags}
  6138. { echo "configure: error: *** Unable to locate PostgreSQL library." 1>&2; exit 1; }
  6139. fi
  6140. fi
  6141. fi
  6142. fi
  6143. LDFLAGS=${ac_save_ldflags}
  6144. ac_save_ldflags="$LDFLAGS"
  6145. LDFLAGS="$LDFLAGS $PQLIBPATH"
  6146. echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
  6147. echo "configure:7531: checking for PQcmdTuples in -lpq" >&5
  6148. ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
  6149. ac_save_LIBS="$LIBS"
  6150. LIBS="-lpq $LIBS"
  6151. cat > conftest.$ac_ext <<EOF
  6152. #line 7537 "configure"
  6153. #include "confdefs.h"
  6154. /* Override any gcc2 internal prototype to avoid an error. */
  6155. /* We use char because int might match the return type of a gcc2
  6156. builtin and then its argument prototype would still apply. */
  6157. char PQcmdTuples();
  6158. int main() {
  6159. PQcmdTuples()
  6160. ; return 0; }
  6161. EOF
  6162. if { (eval echo configure:7548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6163. rm -rf conftest*
  6164. eval "ac_cv_lib_$ac_lib_var=yes"
  6165. else
  6166. echo "configure: failed program was:" >&5
  6167. cat conftest.$ac_ext >&5
  6168. rm -rf conftest*
  6169. eval "ac_cv_lib_$ac_lib_var=no"
  6170. fi
  6171. rm -f conftest*
  6172. LIBS="$ac_save_LIBS"
  6173. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6174. echo "$ac_t""yes" 1>&6
  6175. cat >> confdefs.h <<\EOF
  6176. #define HAVE_PQCMDTUPLES 1
  6177. EOF
  6178. else
  6179. echo "$ac_t""no" 1>&6
  6180. echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
  6181. echo "configure:7570: checking for PQcmdTuples in -lpq" >&5
  6182. ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
  6183. ac_save_LIBS="$LIBS"
  6184. LIBS="-lpq -lcrypt $LIBS"
  6185. cat > conftest.$ac_ext <<EOF
  6186. #line 7576 "configure"
  6187. #include "confdefs.h"
  6188. /* Override any gcc2 internal prototype to avoid an error. */
  6189. /* We use char because int might match the return type of a gcc2
  6190. builtin and then its argument prototype would still apply. */
  6191. char PQcmdTuples();
  6192. int main() {
  6193. PQcmdTuples()
  6194. ; return 0; }
  6195. EOF
  6196. if { (eval echo configure:7587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6197. rm -rf conftest*
  6198. eval "ac_cv_lib_$ac_lib_var=yes"
  6199. else
  6200. echo "configure: failed program was:" >&5
  6201. cat conftest.$ac_ext >&5
  6202. rm -rf conftest*
  6203. eval "ac_cv_lib_$ac_lib_var=no"
  6204. fi
  6205. rm -f conftest*
  6206. LIBS="$ac_save_LIBS"
  6207. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6208. echo "$ac_t""yes" 1>&6
  6209. cat >> confdefs.h <<\EOF
  6210. #define HAVE_PQCMDTUPLES 1
  6211. EOF
  6212. else
  6213. echo "$ac_t""no" 1>&6
  6214. fi
  6215. fi
  6216. LDFLAGS="${ac_save_ldflags}"
  6217. fi # $USE_POSTGRES
  6218. # Done checking PostgreSQL
  6219. # Enable MySQL option
  6220. echo $ac_n "checking whether to use MySQL""... $ac_c" 1>&6
  6221. echo "configure:7630: checking whether to use MySQL" >&5
  6222. echo "$ac_t"""$with_mysql"" 1>&6
  6223. case "$with_mysql" in
  6224. "no") USE_MYSQL= ;;
  6225. "yes") USE_MYSQL="1" ;;
  6226. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6227. esac
  6228. MYSQLINCPATH=
  6229. MYSQLLIBPATH=
  6230. MYSQLLIB=
  6231. if test -n "$USE_MYSQL"; then
  6232. # With MySQL includes directory
  6233. echo $ac_n "checking for location of MySQL includes""... $ac_c" 1>&6
  6234. echo "configure:7650: checking for location of MySQL includes" >&5
  6235. case "$with_mysql_includes" in
  6236. y | ye | yes | n | no)
  6237. { echo "configure: error: *** You must supply a directory to --with-mysql-includes." 1>&2; exit 1; }
  6238. ;;
  6239. esac
  6240. echo "$ac_t""$with_mysql_includes" 1>&6
  6241. if test -n "$with_mysql_includes" ; then
  6242. for dir in $with_mysql_includes; do
  6243. if test -d "$dir"; then
  6244. MYSQLINCPATH="$MYSQLINCPATH -I$dir"
  6245. else
  6246. { echo "configure: error: *** MySQL includes directory $dir does not exist." 1>&2; exit 1; }
  6247. fi
  6248. done
  6249. fi
  6250. ac_save_cppflags="$CPPFLAGS"
  6251. CPPFLAGS="$MYSQLINCPATH $CPPFLAGS"
  6252. for ac_hdr in mysql.h
  6253. do
  6254. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6255. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6256. echo "configure:7676: checking for $ac_hdr" >&5
  6257. cat > conftest.$ac_ext <<EOF
  6258. #line 7679 "configure"
  6259. #include "confdefs.h"
  6260. #include <$ac_hdr>
  6261. EOF
  6262. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6263. { (eval echo configure:7684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6264. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6265. if test -z "$ac_err"; then
  6266. rm -rf conftest*
  6267. eval "ac_cv_header_$ac_safe=yes"
  6268. else
  6269. echo "$ac_err" >&5
  6270. echo "configure: failed program was:" >&5
  6271. cat conftest.$ac_ext >&5
  6272. rm -rf conftest*
  6273. eval "ac_cv_header_$ac_safe=no"
  6274. fi
  6275. rm -f conftest*
  6276. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6277. echo "$ac_t""yes" 1>&6
  6278. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6279. cat >> confdefs.h <<EOF
  6280. #define $ac_tr_hdr 1
  6281. EOF
  6282. else
  6283. echo "$ac_t""no" 1>&6
  6284. { echo "configure: error: *** Unable to locate MySQL includes." 1>&2; exit 1; }
  6285. fi
  6286. done
  6287. CPPFLAGS=$ac_save_cppflags
  6288. fi # $USE_MYSQL
  6289. if test -n "$USE_MYSQL"; then
  6290. # With MySQL library directory
  6291. echo $ac_n "checking for location of MySQL library""... $ac_c" 1>&6
  6292. echo "configure:7721: checking for location of MySQL library" >&5
  6293. case "$with_mysql_libs" in
  6294. y | ye | yes | n | no)
  6295. { echo "configure: error: *** You must supply a directory to --with-mysql-libs." 1>&2; exit 1; }
  6296. ;;
  6297. esac
  6298. echo "$ac_t""$with_mysql_libs" 1>&6
  6299. if test -n "$with_mysql_libs"; then
  6300. for dir in $with_mysql_libs; do
  6301. if test -d "$dir"; then
  6302. MYSQLLIBPATH="$MYSQLLIBPATH -L$dir"
  6303. else
  6304. { echo "configure: error: *** MySQL library directory $dir does not exist." 1>&2; exit 1; }
  6305. fi
  6306. done
  6307. fi
  6308. ac_save_ldflags="$LDFLAGS"
  6309. LDFLAGS="$MYSQLLIBPATH $LDFLAGS"
  6310. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6311. echo "configure:7752: checking for mysql_query in -lmysqlclient" >&5
  6312. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6313. ac_save_LIBS="$LIBS"
  6314. LIBS="-lmysqlclient $LIBS"
  6315. cat > conftest.$ac_ext <<EOF
  6316. #line 7758 "configure"
  6317. #include "confdefs.h"
  6318. /* Override any gcc2 internal prototype to avoid an error. */
  6319. /* We use char because int might match the return type of a gcc2
  6320. builtin and then its argument prototype would still apply. */
  6321. char mysql_query();
  6322. int main() {
  6323. mysql_query()
  6324. ; return 0; }
  6325. EOF
  6326. if { (eval echo configure:7769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6327. rm -rf conftest*
  6328. eval "ac_cv_lib_$ac_lib_var=yes"
  6329. else
  6330. echo "configure: failed program was:" >&5
  6331. cat conftest.$ac_ext >&5
  6332. rm -rf conftest*
  6333. eval "ac_cv_lib_$ac_lib_var=no"
  6334. fi
  6335. rm -f conftest*
  6336. LIBS="$ac_save_LIBS"
  6337. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6338. echo "$ac_t""yes" 1>&6
  6339. MYSQLLIB="$MYSQLLIB -lmysqlclient "
  6340. else
  6341. echo "$ac_t""no" 1>&6
  6342. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6343. echo "configure:7788: checking for mysql_query in -lmysqlclient" >&5
  6344. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6345. ac_save_LIBS="$LIBS"
  6346. LIBS="-lmysqlclient $MATHLIB $LIBS"
  6347. cat > conftest.$ac_ext <<EOF
  6348. #line 7794 "configure"
  6349. #include "confdefs.h"
  6350. /* Override any gcc2 internal prototype to avoid an error. */
  6351. /* We use char because int might match the return type of a gcc2
  6352. builtin and then its argument prototype would still apply. */
  6353. char mysql_query();
  6354. int main() {
  6355. mysql_query()
  6356. ; return 0; }
  6357. EOF
  6358. if { (eval echo configure:7805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6359. rm -rf conftest*
  6360. eval "ac_cv_lib_$ac_lib_var=yes"
  6361. else
  6362. echo "configure: failed program was:" >&5
  6363. cat conftest.$ac_ext >&5
  6364. rm -rf conftest*
  6365. eval "ac_cv_lib_$ac_lib_var=no"
  6366. fi
  6367. rm -f conftest*
  6368. LIBS="$ac_save_LIBS"
  6369. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6370. echo "$ac_t""yes" 1>&6
  6371. MYSQLLIB="$MYSQLLIB -lmysqlclient $MATHLIB"
  6372. else
  6373. echo "$ac_t""no" 1>&6
  6374. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6375. echo "configure:7824: checking for mysql_query in -lmysqlclient" >&5
  6376. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6377. ac_save_LIBS="$LIBS"
  6378. LIBS="-lmysqlclient $SOCKLIB $LIBS"
  6379. cat > conftest.$ac_ext <<EOF
  6380. #line 7830 "configure"
  6381. #include "confdefs.h"
  6382. /* Override any gcc2 internal prototype to avoid an error. */
  6383. /* We use char because int might match the return type of a gcc2
  6384. builtin and then its argument prototype would still apply. */
  6385. char mysql_query();
  6386. int main() {
  6387. mysql_query()
  6388. ; return 0; }
  6389. EOF
  6390. if { (eval echo configure:7841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6391. rm -rf conftest*
  6392. eval "ac_cv_lib_$ac_lib_var=yes"
  6393. else
  6394. echo "configure: failed program was:" >&5
  6395. cat conftest.$ac_ext >&5
  6396. rm -rf conftest*
  6397. eval "ac_cv_lib_$ac_lib_var=no"
  6398. fi
  6399. rm -f conftest*
  6400. LIBS="$ac_save_LIBS"
  6401. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6402. echo "$ac_t""yes" 1>&6
  6403. MYSQLLIB="$MYSQLLIB -lmysqlclient $SOCKLIB"
  6404. else
  6405. echo "$ac_t""no" 1>&6
  6406. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6407. echo "configure:7860: checking for mysql_query in -lmysqlclient" >&5
  6408. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6409. ac_save_LIBS="$LIBS"
  6410. LIBS="-lmysqlclient $SOCKLIB $MATHLIB $LIBS"
  6411. cat > conftest.$ac_ext <<EOF
  6412. #line 7866 "configure"
  6413. #include "confdefs.h"
  6414. /* Override any gcc2 internal prototype to avoid an error. */
  6415. /* We use char because int might match the return type of a gcc2
  6416. builtin and then its argument prototype would still apply. */
  6417. char mysql_query();
  6418. int main() {
  6419. mysql_query()
  6420. ; return 0; }
  6421. EOF
  6422. if { (eval echo configure:7877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6423. rm -rf conftest*
  6424. eval "ac_cv_lib_$ac_lib_var=yes"
  6425. else
  6426. echo "configure: failed program was:" >&5
  6427. cat conftest.$ac_ext >&5
  6428. rm -rf conftest*
  6429. eval "ac_cv_lib_$ac_lib_var=no"
  6430. fi
  6431. rm -f conftest*
  6432. LIBS="$ac_save_LIBS"
  6433. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6434. echo "$ac_t""yes" 1>&6
  6435. MYSQLLIB="$MYSQLLIB -lmysqlclient $SOCKLIB $MATHLIB"
  6436. else
  6437. echo "$ac_t""no" 1>&6
  6438. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6439. echo "configure:7896: checking for mysql_query in -lmysqlclient" >&5
  6440. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6441. ac_save_LIBS="$LIBS"
  6442. LIBS="-lmysqlclient $ZLIB $LIBS"
  6443. cat > conftest.$ac_ext <<EOF
  6444. #line 7902 "configure"
  6445. #include "confdefs.h"
  6446. /* Override any gcc2 internal prototype to avoid an error. */
  6447. /* We use char because int might match the return type of a gcc2
  6448. builtin and then its argument prototype would still apply. */
  6449. char mysql_query();
  6450. int main() {
  6451. mysql_query()
  6452. ; return 0; }
  6453. EOF
  6454. if { (eval echo configure:7913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6455. rm -rf conftest*
  6456. eval "ac_cv_lib_$ac_lib_var=yes"
  6457. else
  6458. echo "configure: failed program was:" >&5
  6459. cat conftest.$ac_ext >&5
  6460. rm -rf conftest*
  6461. eval "ac_cv_lib_$ac_lib_var=no"
  6462. fi
  6463. rm -f conftest*
  6464. LIBS="$ac_save_LIBS"
  6465. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6466. echo "$ac_t""yes" 1>&6
  6467. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB"
  6468. else
  6469. echo "$ac_t""no" 1>&6
  6470. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6471. echo "configure:7932: checking for mysql_query in -lmysqlclient" >&5
  6472. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6473. ac_save_LIBS="$LIBS"
  6474. LIBS="-lmysqlclient $ZLIB $MATHLIB $LIBS"
  6475. cat > conftest.$ac_ext <<EOF
  6476. #line 7938 "configure"
  6477. #include "confdefs.h"
  6478. /* Override any gcc2 internal prototype to avoid an error. */
  6479. /* We use char because int might match the return type of a gcc2
  6480. builtin and then its argument prototype would still apply. */
  6481. char mysql_query();
  6482. int main() {
  6483. mysql_query()
  6484. ; return 0; }
  6485. EOF
  6486. if { (eval echo configure:7949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6487. rm -rf conftest*
  6488. eval "ac_cv_lib_$ac_lib_var=yes"
  6489. else
  6490. echo "configure: failed program was:" >&5
  6491. cat conftest.$ac_ext >&5
  6492. rm -rf conftest*
  6493. eval "ac_cv_lib_$ac_lib_var=no"
  6494. fi
  6495. rm -f conftest*
  6496. LIBS="$ac_save_LIBS"
  6497. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6498. echo "$ac_t""yes" 1>&6
  6499. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $MATHLIB"
  6500. else
  6501. echo "$ac_t""no" 1>&6
  6502. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6503. echo "configure:7968: checking for mysql_query in -lmysqlclient" >&5
  6504. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6505. ac_save_LIBS="$LIBS"
  6506. LIBS="-lmysqlclient $ZLIB $SOCKLIB $LIBS"
  6507. cat > conftest.$ac_ext <<EOF
  6508. #line 7974 "configure"
  6509. #include "confdefs.h"
  6510. /* Override any gcc2 internal prototype to avoid an error. */
  6511. /* We use char because int might match the return type of a gcc2
  6512. builtin and then its argument prototype would still apply. */
  6513. char mysql_query();
  6514. int main() {
  6515. mysql_query()
  6516. ; return 0; }
  6517. EOF
  6518. if { (eval echo configure:7985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6519. rm -rf conftest*
  6520. eval "ac_cv_lib_$ac_lib_var=yes"
  6521. else
  6522. echo "configure: failed program was:" >&5
  6523. cat conftest.$ac_ext >&5
  6524. rm -rf conftest*
  6525. eval "ac_cv_lib_$ac_lib_var=no"
  6526. fi
  6527. rm -f conftest*
  6528. LIBS="$ac_save_LIBS"
  6529. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6530. echo "$ac_t""yes" 1>&6
  6531. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $SOCKLIB"
  6532. else
  6533. echo "$ac_t""no" 1>&6
  6534. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6535. echo "configure:8004: checking for mysql_query in -lmysqlclient" >&5
  6536. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6537. ac_save_LIBS="$LIBS"
  6538. LIBS="-lmysqlclient $ZLIB $SOCKLIB $MATHLIB $LIBS"
  6539. cat > conftest.$ac_ext <<EOF
  6540. #line 8010 "configure"
  6541. #include "confdefs.h"
  6542. /* Override any gcc2 internal prototype to avoid an error. */
  6543. /* We use char because int might match the return type of a gcc2
  6544. builtin and then its argument prototype would still apply. */
  6545. char mysql_query();
  6546. int main() {
  6547. mysql_query()
  6548. ; return 0; }
  6549. EOF
  6550. if { (eval echo configure:8021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6551. rm -rf conftest*
  6552. eval "ac_cv_lib_$ac_lib_var=yes"
  6553. else
  6554. echo "configure: failed program was:" >&5
  6555. cat conftest.$ac_ext >&5
  6556. rm -rf conftest*
  6557. eval "ac_cv_lib_$ac_lib_var=no"
  6558. fi
  6559. rm -f conftest*
  6560. LIBS="$ac_save_LIBS"
  6561. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6562. echo "$ac_t""yes" 1>&6
  6563. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $SOCKLIB $MATHLIB"
  6564. else
  6565. echo "$ac_t""no" 1>&6
  6566. LDFLAGS=${ac_save_ldflags}
  6567. { echo "configure: error: *** Unable to locate MySQL library." 1>&2; exit 1; }
  6568. fi
  6569. fi
  6570. fi
  6571. fi
  6572. fi
  6573. fi
  6574. fi
  6575. fi
  6576. LDFLAGS=${ac_save_ldflags}
  6577. # Check for libmysqld (for embeded version of the driver)
  6578. # Extract the first word of "mysql_config", so it can be a program name with args.
  6579. set dummy mysql_config; ac_word=$2
  6580. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  6581. echo "configure:8111: checking for $ac_word" >&5
  6582. case "$MYSQLD_CONFIG" in
  6583. /*)
  6584. ac_cv_path_MYSQLD_CONFIG="$MYSQLD_CONFIG" # Let the user override the test with a path.
  6585. ;;
  6586. ?:/*)
  6587. ac_cv_path_MYSQLD_CONFIG="$MYSQLD_CONFIG" # Let the user override the test with a dos path.
  6588. ;;
  6589. *)
  6590. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  6591. ac_dummy="$PATH"
  6592. for ac_dir in $ac_dummy; do
  6593. test -z "$ac_dir" && ac_dir=.
  6594. if test -f $ac_dir/$ac_word; then
  6595. ac_cv_path_MYSQLD_CONFIG="$ac_dir/$ac_word"
  6596. break
  6597. fi
  6598. done
  6599. IFS="$ac_save_ifs"
  6600. test -z "$ac_cv_path_MYSQLD_CONFIG" && ac_cv_path_MYSQLD_CONFIG="no"
  6601. ;;
  6602. esac
  6603. MYSQLD_CONFIG="$ac_cv_path_MYSQLD_CONFIG"
  6604. if test -n "$MYSQLD_CONFIG"; then
  6605. echo "$ac_t""$MYSQLD_CONFIG" 1>&6
  6606. else
  6607. echo "$ac_t""no" 1>&6
  6608. fi
  6609. if test "$MYSQLD_CONFIG" = "no" ; then
  6610. { echo "configure: error: *** couldn't find mysql_config" 1>&2; exit 1; }
  6611. fi
  6612. if test "$MYSQLD_CONFIG" != "" ; then
  6613. ac_ext=C
  6614. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6615. ac_cpp='$CXXCPP $CPPFLAGS'
  6616. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6617. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6618. cross_compiling=$ac_cv_prog_cxx_cross
  6619. ac_save_libs="$LIBS"
  6620. MYSQLDLIB=`"$MYSQLD_CONFIG" --libmysqld-libs`
  6621. LIBS="$MYSQLDLIB $LIBS"
  6622. echo $ac_n "checking for mysql_server_init""... $ac_c" 1>&6
  6623. echo "configure:8160: checking for mysql_server_init" >&5
  6624. cat > conftest.$ac_ext <<EOF
  6625. #line 8163 "configure"
  6626. #include "confdefs.h"
  6627. /* System header to define __stub macros and hopefully few prototypes,
  6628. which can conflict with char mysql_server_init(); below. */
  6629. #include <assert.h>
  6630. /* Override any gcc2 internal prototype to avoid an error. */
  6631. #ifdef __cplusplus
  6632. extern "C"
  6633. #endif
  6634. /* We use char because int might match the return type of a gcc2
  6635. builtin and then its argument prototype would still apply. */
  6636. char mysql_server_init();
  6637. int main() {
  6638. /* The GNU C library defines this for functions which it implements
  6639. to always fail with ENOSYS. Some functions are actually named
  6640. something starting with __ and the normal name is an alias. */
  6641. #if defined (__stub_mysql_server_init) || defined (__stub___mysql_server_init)
  6642. choke me
  6643. #else
  6644. mysql_server_init();
  6645. #endif
  6646. ; return 0; }
  6647. EOF
  6648. if { (eval echo configure:8189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6649. rm -rf conftest*
  6650. eval "ac_cv_func_mysql_server_init=yes"
  6651. else
  6652. echo "configure: failed program was:" >&5
  6653. cat conftest.$ac_ext >&5
  6654. rm -rf conftest*
  6655. eval "ac_cv_func_mysql_server_init=no"
  6656. fi
  6657. rm -f conftest*
  6658. if eval "test \"`echo '$ac_cv_func_'mysql_server_init`\" = yes"; then
  6659. echo "$ac_t""yes" 1>&6
  6660. :
  6661. else
  6662. echo "$ac_t""no" 1>&6
  6663. MYSQLDLIB="";
  6664. echo "configure: warning: libmysqld not found" 1>&2
  6665. fi
  6666. LIBS=$ac_save_libs
  6667. ac_ext=c
  6668. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6669. ac_cpp='$CPP $CPPFLAGS'
  6670. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6671. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6672. cross_compiling=$ac_cv_prog_cc_cross
  6673. ac_ext=c
  6674. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6675. ac_cpp='$CPP $CPPFLAGS'
  6676. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6677. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6678. cross_compiling=$ac_cv_prog_cc_cross
  6679. fi
  6680. fi # $USE_MYSQL
  6681. # Done checking MySQL
  6682. # Enable SQLite option
  6683. echo $ac_n "checking whether to use SQLite""... $ac_c" 1>&6
  6684. echo "configure:8241: checking whether to use SQLite" >&5
  6685. echo "$ac_t"""$with_sqlite"" 1>&6
  6686. case "$with_sqlite" in
  6687. "no") USE_SQLITE= ;;
  6688. "yes") USE_SQLITE="1" ;;
  6689. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6690. esac
  6691. SQLITEINCPATH=
  6692. SQLITELIBPATH=
  6693. SQLITELIB=
  6694. if test -n "$USE_SQLITE"; then
  6695. # With SQLite includes directory
  6696. echo $ac_n "checking for location of SQLite includes""... $ac_c" 1>&6
  6697. echo "configure:8261: checking for location of SQLite includes" >&5
  6698. case "$with_sqlite_includes" in
  6699. y | ye | yes | n | no)
  6700. { echo "configure: error: *** You must supply a directory to --with-sqlite-includes." 1>&2; exit 1; }
  6701. ;;
  6702. esac
  6703. echo "$ac_t""$with_sqlite_includes" 1>&6
  6704. if test -n "$with_sqlite_includes" ; then
  6705. for dir in $with_sqlite_includes; do
  6706. if test -d "$dir"; then
  6707. SQLITEINCPATH="$SQLITEINCPATH -I$dir"
  6708. else
  6709. { echo "configure: error: *** SQLite includes directory $dir does not exist." 1>&2; exit 1; }
  6710. fi
  6711. done
  6712. fi
  6713. ac_save_cppflags="$CPPFLAGS"
  6714. CPPFLAGS="$SQLITEINCPATH $CPPFLAGS"
  6715. for ac_hdr in sqlite3.h
  6716. do
  6717. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6718. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6719. echo "configure:8287: checking for $ac_hdr" >&5
  6720. cat > conftest.$ac_ext <<EOF
  6721. #line 8290 "configure"
  6722. #include "confdefs.h"
  6723. #include <$ac_hdr>
  6724. EOF
  6725. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6726. { (eval echo configure:8295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6727. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6728. if test -z "$ac_err"; then
  6729. rm -rf conftest*
  6730. eval "ac_cv_header_$ac_safe=yes"
  6731. else
  6732. echo "$ac_err" >&5
  6733. echo "configure: failed program was:" >&5
  6734. cat conftest.$ac_ext >&5
  6735. rm -rf conftest*
  6736. eval "ac_cv_header_$ac_safe=no"
  6737. fi
  6738. rm -f conftest*
  6739. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6740. echo "$ac_t""yes" 1>&6
  6741. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6742. cat >> confdefs.h <<EOF
  6743. #define $ac_tr_hdr 1
  6744. EOF
  6745. else
  6746. echo "$ac_t""no" 1>&6
  6747. { echo "configure: error: *** Unable to locate SQLite includes." 1>&2; exit 1; }
  6748. fi
  6749. done
  6750. CPPFLAGS=$ac_save_cppflags
  6751. cat >> confdefs.h <<\EOF
  6752. #define HAVE_SQLITE 1
  6753. EOF
  6754. fi # $USE_SQLITE
  6755. if test -n "$USE_SQLITE"; then
  6756. # With SQLite library directory
  6757. echo $ac_n "checking for location of SQLite library""... $ac_c" 1>&6
  6758. echo "configure:8338: checking for location of SQLite library" >&5
  6759. case "$with_sqlite_libs" in
  6760. y | ye | yes | n | no)
  6761. { echo "configure: error: *** You must supply a directory to --with-sqlite-libs." 1>&2; exit 1; }
  6762. ;;
  6763. esac
  6764. echo "$ac_t""$with_sqlite_libs" 1>&6
  6765. if test -n "$with_sqlite_libs"; then
  6766. for dir in $with_sqlite_libs; do
  6767. if test -d "$dir"; then
  6768. SQLITELIBPATH="$SQLITELIBPATH -L$dir"
  6769. else
  6770. { echo "configure: error: *** SQLite library directory $dir does not exist." 1>&2; exit 1; }
  6771. fi
  6772. done
  6773. fi
  6774. ac_save_ldflags="$LDFLAGS"
  6775. LDFLAGS="$SQLITELIBPATH $LDFLAGS"
  6776. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  6777. echo "configure:8367: checking for sqlite3_open in -lsqlite3" >&5
  6778. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  6779. ac_save_LIBS="$LIBS"
  6780. LIBS="-lsqlite3 $LIBS"
  6781. cat > conftest.$ac_ext <<EOF
  6782. #line 8373 "configure"
  6783. #include "confdefs.h"
  6784. /* Override any gcc2 internal prototype to avoid an error. */
  6785. /* We use char because int might match the return type of a gcc2
  6786. builtin and then its argument prototype would still apply. */
  6787. char sqlite3_open();
  6788. int main() {
  6789. sqlite3_open()
  6790. ; return 0; }
  6791. EOF
  6792. if { (eval echo configure:8384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6793. rm -rf conftest*
  6794. eval "ac_cv_lib_$ac_lib_var=yes"
  6795. else
  6796. echo "configure: failed program was:" >&5
  6797. cat conftest.$ac_ext >&5
  6798. rm -rf conftest*
  6799. eval "ac_cv_lib_$ac_lib_var=no"
  6800. fi
  6801. rm -f conftest*
  6802. LIBS="$ac_save_LIBS"
  6803. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6804. echo "$ac_t""yes" 1>&6
  6805. SQLITELIB="$SQLITELIB -lsqlite3 "
  6806. else
  6807. echo "$ac_t""no" 1>&6
  6808. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  6809. echo "configure:8403: checking for sqlite3_open in -lsqlite3" >&5
  6810. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  6811. ac_save_LIBS="$LIBS"
  6812. LIBS="-lsqlite3 $DLLIB $LIBS"
  6813. cat > conftest.$ac_ext <<EOF
  6814. #line 8409 "configure"
  6815. #include "confdefs.h"
  6816. /* Override any gcc2 internal prototype to avoid an error. */
  6817. /* We use char because int might match the return type of a gcc2
  6818. builtin and then its argument prototype would still apply. */
  6819. char sqlite3_open();
  6820. int main() {
  6821. sqlite3_open()
  6822. ; return 0; }
  6823. EOF
  6824. if { (eval echo configure:8420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6825. rm -rf conftest*
  6826. eval "ac_cv_lib_$ac_lib_var=yes"
  6827. else
  6828. echo "configure: failed program was:" >&5
  6829. cat conftest.$ac_ext >&5
  6830. rm -rf conftest*
  6831. eval "ac_cv_lib_$ac_lib_var=no"
  6832. fi
  6833. rm -f conftest*
  6834. LIBS="$ac_save_LIBS"
  6835. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6836. echo "$ac_t""yes" 1>&6
  6837. SQLITELIB="$SQLITELIB -lsqlite3 $DLLIB"
  6838. else
  6839. echo "$ac_t""no" 1>&6
  6840. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  6841. echo "configure:8439: checking for sqlite3_open in -lsqlite3" >&5
  6842. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  6843. ac_save_LIBS="$LIBS"
  6844. LIBS="-lsqlite3 $MATHLIB $LIBS"
  6845. cat > conftest.$ac_ext <<EOF
  6846. #line 8445 "configure"
  6847. #include "confdefs.h"
  6848. /* Override any gcc2 internal prototype to avoid an error. */
  6849. /* We use char because int might match the return type of a gcc2
  6850. builtin and then its argument prototype would still apply. */
  6851. char sqlite3_open();
  6852. int main() {
  6853. sqlite3_open()
  6854. ; return 0; }
  6855. EOF
  6856. if { (eval echo configure:8456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6857. rm -rf conftest*
  6858. eval "ac_cv_lib_$ac_lib_var=yes"
  6859. else
  6860. echo "configure: failed program was:" >&5
  6861. cat conftest.$ac_ext >&5
  6862. rm -rf conftest*
  6863. eval "ac_cv_lib_$ac_lib_var=no"
  6864. fi
  6865. rm -f conftest*
  6866. LIBS="$ac_save_LIBS"
  6867. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6868. echo "$ac_t""yes" 1>&6
  6869. SQLITELIB="$SQLITELIB -lsqlite3 $MATHLIB"
  6870. else
  6871. echo "$ac_t""no" 1>&6
  6872. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  6873. echo "configure:8475: checking for sqlite3_open in -lsqlite3" >&5
  6874. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  6875. ac_save_LIBS="$LIBS"
  6876. LIBS="-lsqlite3 $MATHLIB $DLLIB $LIBS"
  6877. cat > conftest.$ac_ext <<EOF
  6878. #line 8481 "configure"
  6879. #include "confdefs.h"
  6880. /* Override any gcc2 internal prototype to avoid an error. */
  6881. /* We use char because int might match the return type of a gcc2
  6882. builtin and then its argument prototype would still apply. */
  6883. char sqlite3_open();
  6884. int main() {
  6885. sqlite3_open()
  6886. ; return 0; }
  6887. EOF
  6888. if { (eval echo configure:8492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6889. rm -rf conftest*
  6890. eval "ac_cv_lib_$ac_lib_var=yes"
  6891. else
  6892. echo "configure: failed program was:" >&5
  6893. cat conftest.$ac_ext >&5
  6894. rm -rf conftest*
  6895. eval "ac_cv_lib_$ac_lib_var=no"
  6896. fi
  6897. rm -f conftest*
  6898. LIBS="$ac_save_LIBS"
  6899. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6900. echo "$ac_t""yes" 1>&6
  6901. SQLITELIB="$SQLITELIB -lsqlite3 $MATHLIB $DLLIB"
  6902. else
  6903. echo "$ac_t""no" 1>&6
  6904. LDFLAGS=${ac_save_ldflags}
  6905. { echo "configure: error: *** Unable to locate SQLite library." 1>&2; exit 1; }
  6906. fi
  6907. fi
  6908. fi
  6909. fi
  6910. LDFLAGS=${ac_save_ldflags}
  6911. fi # $USE_SQLITE
  6912. # Done checking SQLite
  6913. # Enable FFMPEG option
  6914. echo $ac_n "checking whether to use FFMPEG""... $ac_c" 1>&6
  6915. echo "configure:8561: checking whether to use FFMPEG" >&5
  6916. echo "$ac_t"""$with_ffmpeg"" 1>&6
  6917. case "$with_ffmpeg" in
  6918. "no") USE_FFMPEG= ;;
  6919. "yes") USE_FFMPEG="1" ;;
  6920. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6921. esac
  6922. FFMPEGINCPATH=
  6923. FFMPEGLIBPATH=
  6924. FFMPEGLIB=
  6925. if test -n "$USE_FFMPEG"; then
  6926. # With FFMPEG includes directory
  6927. echo $ac_n "checking for location of FFMPEG includes""... $ac_c" 1>&6
  6928. echo "configure:8581: checking for location of FFMPEG includes" >&5
  6929. case "$with_ffmpeg_includes" in
  6930. y | ye | yes | n | no)
  6931. { echo "configure: error: *** You must supply a directory to --with-ffmpeg-includes." 1>&2; exit 1; }
  6932. ;;
  6933. esac
  6934. echo "$ac_t""$with_ffmpeg_includes" 1>&6
  6935. if test -n "$with_ffmpeg_includes" ; then
  6936. for dir in $with_ffmpeg_includes; do
  6937. if test -d "$dir"; then
  6938. FFMPEGINCPATH="$FFMPEGINCPATH -I$dir"
  6939. else
  6940. { echo "configure: error: *** FFMPEG includes directory $dir does not exist." 1>&2; exit 1; }
  6941. fi
  6942. done
  6943. fi
  6944. ac_save_cppflags="$CPPFLAGS"
  6945. CPPFLAGS="$FFMPEGINCPATH $CPPFLAGS"
  6946. for ac_hdr in avcodec.h
  6947. do
  6948. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6949. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6950. echo "configure:8607: checking for $ac_hdr" >&5
  6951. cat > conftest.$ac_ext <<EOF
  6952. #line 8610 "configure"
  6953. #include "confdefs.h"
  6954. #include <$ac_hdr>
  6955. EOF
  6956. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6957. { (eval echo configure:8615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6958. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6959. if test -z "$ac_err"; then
  6960. rm -rf conftest*
  6961. eval "ac_cv_header_$ac_safe=yes"
  6962. else
  6963. echo "$ac_err" >&5
  6964. echo "configure: failed program was:" >&5
  6965. cat conftest.$ac_ext >&5
  6966. rm -rf conftest*
  6967. eval "ac_cv_header_$ac_safe=no"
  6968. fi
  6969. rm -f conftest*
  6970. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6971. echo "$ac_t""yes" 1>&6
  6972. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6973. cat >> confdefs.h <<EOF
  6974. #define $ac_tr_hdr 1
  6975. EOF
  6976. else
  6977. echo "$ac_t""no" 1>&6
  6978. { echo "configure: error: *** Unable to locate FFMPEG includes." 1>&2; exit 1; }
  6979. fi
  6980. done
  6981. CPPFLAGS=$ac_save_cppflags
  6982. ac_save_cppflags="$CPPFLAGS"
  6983. CPPFLAGS="$FFMPEGINCPATH $CPPFLAGS"
  6984. for ac_hdr in avformat.h
  6985. do
  6986. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6987. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6988. echo "configure:8651: checking for $ac_hdr" >&5
  6989. cat > conftest.$ac_ext <<EOF
  6990. #line 8654 "configure"
  6991. #include "confdefs.h"
  6992. #include <$ac_hdr>
  6993. EOF
  6994. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6995. { (eval echo configure:8659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6996. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6997. if test -z "$ac_err"; then
  6998. rm -rf conftest*
  6999. eval "ac_cv_header_$ac_safe=yes"
  7000. else
  7001. echo "$ac_err" >&5
  7002. echo "configure: failed program was:" >&5
  7003. cat conftest.$ac_ext >&5
  7004. rm -rf conftest*
  7005. eval "ac_cv_header_$ac_safe=no"
  7006. fi
  7007. rm -f conftest*
  7008. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7009. echo "$ac_t""yes" 1>&6
  7010. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7011. cat >> confdefs.h <<EOF
  7012. #define $ac_tr_hdr 1
  7013. EOF
  7014. else
  7015. echo "$ac_t""no" 1>&6
  7016. { echo "configure: error: *** Unable to locate FFMPEG includes." 1>&2; exit 1; }
  7017. fi
  7018. done
  7019. CPPFLAGS=$ac_save_cppflags
  7020. ac_save_cppflags="$CPPFLAGS"
  7021. CPPFLAGS="$FFMPEGINCPATH $CPPFLAGS"
  7022. for ac_hdr in swscale.h
  7023. do
  7024. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7025. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7026. echo "configure:8695: checking for $ac_hdr" >&5
  7027. cat > conftest.$ac_ext <<EOF
  7028. #line 8698 "configure"
  7029. #include "confdefs.h"
  7030. #include <$ac_hdr>
  7031. EOF
  7032. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7033. { (eval echo configure:8703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7034. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7035. if test -z "$ac_err"; then
  7036. rm -rf conftest*
  7037. eval "ac_cv_header_$ac_safe=yes"
  7038. else
  7039. echo "$ac_err" >&5
  7040. echo "configure: failed program was:" >&5
  7041. cat conftest.$ac_ext >&5
  7042. rm -rf conftest*
  7043. eval "ac_cv_header_$ac_safe=no"
  7044. fi
  7045. rm -f conftest*
  7046. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7047. echo "$ac_t""yes" 1>&6
  7048. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7049. cat >> confdefs.h <<EOF
  7050. #define $ac_tr_hdr 1
  7051. EOF
  7052. else
  7053. echo "$ac_t""no" 1>&6
  7054. { echo "configure: error: *** Unable to locate FFMPEG includes." 1>&2; exit 1; }
  7055. fi
  7056. done
  7057. CPPFLAGS=$ac_save_cppflags
  7058. cat >> confdefs.h <<\EOF
  7059. #define HAVE_FFMPEG 1
  7060. EOF
  7061. fi # $USE_FFMPEG
  7062. if test -n "$USE_FFMPEG"; then
  7063. # With FFMPEG library directory
  7064. echo $ac_n "checking for location of FFMPEG library""... $ac_c" 1>&6
  7065. echo "configure:8746: checking for location of FFMPEG library" >&5
  7066. case "$with_ffmpeg_libs" in
  7067. y | ye | yes | n | no)
  7068. { echo "configure: error: *** You must supply a directory to --with-ffmpeg-libs." 1>&2; exit 1; }
  7069. ;;
  7070. esac
  7071. echo "$ac_t""$with_ffmpeg_libs" 1>&6
  7072. if test -n "$with_ffmpeg_libs"; then
  7073. for dir in $with_ffmpeg_libs; do
  7074. if test -d "$dir"; then
  7075. FFMPEGLIBPATH="$FFMPEGLIBPATH -L$dir"
  7076. else
  7077. { echo "configure: error: *** FFMPEG library directory $dir does not exist." 1>&2; exit 1; }
  7078. fi
  7079. done
  7080. fi
  7081. ac_save_ldflags="$LDFLAGS"
  7082. LDFLAGS="$FFMPEGLIBPATH $LDFLAGS"
  7083. echo $ac_n "checking for av_free in -lavutil""... $ac_c" 1>&6
  7084. echo "configure:8773: checking for av_free in -lavutil" >&5
  7085. ac_lib_var=`echo avutil'_'av_free | sed 'y%./+-%__p_%'`
  7086. ac_save_LIBS="$LIBS"
  7087. LIBS="-lavutil $LIBS"
  7088. cat > conftest.$ac_ext <<EOF
  7089. #line 8779 "configure"
  7090. #include "confdefs.h"
  7091. /* Override any gcc2 internal prototype to avoid an error. */
  7092. /* We use char because int might match the return type of a gcc2
  7093. builtin and then its argument prototype would still apply. */
  7094. char av_free();
  7095. int main() {
  7096. av_free()
  7097. ; return 0; }
  7098. EOF
  7099. if { (eval echo configure:8790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7100. rm -rf conftest*
  7101. eval "ac_cv_lib_$ac_lib_var=yes"
  7102. else
  7103. echo "configure: failed program was:" >&5
  7104. cat conftest.$ac_ext >&5
  7105. rm -rf conftest*
  7106. eval "ac_cv_lib_$ac_lib_var=no"
  7107. fi
  7108. rm -f conftest*
  7109. LIBS="$ac_save_LIBS"
  7110. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7111. echo "$ac_t""yes" 1>&6
  7112. FFMPEGLIB="$FFMPEGLIB -lavutil "
  7113. else
  7114. echo "$ac_t""no" 1>&6
  7115. echo $ac_n "checking for av_free in -lavutil""... $ac_c" 1>&6
  7116. echo "configure:8809: checking for av_free in -lavutil" >&5
  7117. ac_lib_var=`echo avutil'_'av_free | sed 'y%./+-%__p_%'`
  7118. ac_save_LIBS="$LIBS"
  7119. LIBS="-lavutil $MATHLIB $LIBS"
  7120. cat > conftest.$ac_ext <<EOF
  7121. #line 8815 "configure"
  7122. #include "confdefs.h"
  7123. /* Override any gcc2 internal prototype to avoid an error. */
  7124. /* We use char because int might match the return type of a gcc2
  7125. builtin and then its argument prototype would still apply. */
  7126. char av_free();
  7127. int main() {
  7128. av_free()
  7129. ; return 0; }
  7130. EOF
  7131. if { (eval echo configure:8826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7132. rm -rf conftest*
  7133. eval "ac_cv_lib_$ac_lib_var=yes"
  7134. else
  7135. echo "configure: failed program was:" >&5
  7136. cat conftest.$ac_ext >&5
  7137. rm -rf conftest*
  7138. eval "ac_cv_lib_$ac_lib_var=no"
  7139. fi
  7140. rm -f conftest*
  7141. LIBS="$ac_save_LIBS"
  7142. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7143. echo "$ac_t""yes" 1>&6
  7144. FFMPEGLIB="$FFMPEGLIB -lavutil $MATHLIB"
  7145. else
  7146. echo "$ac_t""no" 1>&6
  7147. LDFLAGS=${ac_save_ldflags}
  7148. { echo "configure: error: *** Unable to locate FFMPEG library." 1>&2; exit 1; }
  7149. fi
  7150. fi
  7151. LDFLAGS=${ac_save_ldflags}
  7152. ac_save_ldflags="$LDFLAGS"
  7153. LDFLAGS="$FFMPEGLIBPATH $LDFLAGS"
  7154. echo $ac_n "checking for avcodec_register in -lavcodec""... $ac_c" 1>&6
  7155. echo "configure:8871: checking for avcodec_register in -lavcodec" >&5
  7156. ac_lib_var=`echo avcodec'_'avcodec_register | sed 'y%./+-%__p_%'`
  7157. ac_save_LIBS="$LIBS"
  7158. LIBS="-lavcodec $FFMPEGLIB $LIBS"
  7159. cat > conftest.$ac_ext <<EOF
  7160. #line 8877 "configure"
  7161. #include "confdefs.h"
  7162. /* Override any gcc2 internal prototype to avoid an error. */
  7163. /* We use char because int might match the return type of a gcc2
  7164. builtin and then its argument prototype would still apply. */
  7165. char avcodec_register();
  7166. int main() {
  7167. avcodec_register()
  7168. ; return 0; }
  7169. EOF
  7170. if { (eval echo configure:8888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7171. rm -rf conftest*
  7172. eval "ac_cv_lib_$ac_lib_var=yes"
  7173. else
  7174. echo "configure: failed program was:" >&5
  7175. cat conftest.$ac_ext >&5
  7176. rm -rf conftest*
  7177. eval "ac_cv_lib_$ac_lib_var=no"
  7178. fi
  7179. rm -f conftest*
  7180. LIBS="$ac_save_LIBS"
  7181. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7182. echo "$ac_t""yes" 1>&6
  7183. FFMPEGLIB="$FFMPEGLIB -lavcodec "
  7184. else
  7185. echo "$ac_t""no" 1>&6
  7186. echo $ac_n "checking for avcodec_register in -lavcodec""... $ac_c" 1>&6
  7187. echo "configure:8907: checking for avcodec_register in -lavcodec" >&5
  7188. ac_lib_var=`echo avcodec'_'avcodec_register | sed 'y%./+-%__p_%'`
  7189. ac_save_LIBS="$LIBS"
  7190. LIBS="-lavcodec $FFMPEGLIB $MATHLIB $LIBS"
  7191. cat > conftest.$ac_ext <<EOF
  7192. #line 8913 "configure"
  7193. #include "confdefs.h"
  7194. /* Override any gcc2 internal prototype to avoid an error. */
  7195. /* We use char because int might match the return type of a gcc2
  7196. builtin and then its argument prototype would still apply. */
  7197. char avcodec_register();
  7198. int main() {
  7199. avcodec_register()
  7200. ; return 0; }
  7201. EOF
  7202. if { (eval echo configure:8924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7203. rm -rf conftest*
  7204. eval "ac_cv_lib_$ac_lib_var=yes"
  7205. else
  7206. echo "configure: failed program was:" >&5
  7207. cat conftest.$ac_ext >&5
  7208. rm -rf conftest*
  7209. eval "ac_cv_lib_$ac_lib_var=no"
  7210. fi
  7211. rm -f conftest*
  7212. LIBS="$ac_save_LIBS"
  7213. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7214. echo "$ac_t""yes" 1>&6
  7215. FFMPEGLIB="$FFMPEGLIB -lavcodec $MATHLIB"
  7216. else
  7217. echo "$ac_t""no" 1>&6
  7218. LDFLAGS=${ac_save_ldflags}
  7219. { echo "configure: error: *** Unable to locate FFMPEG library." 1>&2; exit 1; }
  7220. fi
  7221. fi
  7222. LDFLAGS=${ac_save_ldflags}
  7223. ac_save_ldflags="$LDFLAGS"
  7224. LDFLAGS="$FFMPEGLIBPATH $LDFLAGS"
  7225. echo $ac_n "checking for avformat_alloc_context in -lavformat""... $ac_c" 1>&6
  7226. echo "configure:8969: checking for avformat_alloc_context in -lavformat" >&5
  7227. ac_lib_var=`echo avformat'_'avformat_alloc_context | sed 'y%./+-%__p_%'`
  7228. ac_save_LIBS="$LIBS"
  7229. LIBS="-lavformat $FFMPEGLIB $LIBS"
  7230. cat > conftest.$ac_ext <<EOF
  7231. #line 8975 "configure"
  7232. #include "confdefs.h"
  7233. /* Override any gcc2 internal prototype to avoid an error. */
  7234. /* We use char because int might match the return type of a gcc2
  7235. builtin and then its argument prototype would still apply. */
  7236. char avformat_alloc_context();
  7237. int main() {
  7238. avformat_alloc_context()
  7239. ; return 0; }
  7240. EOF
  7241. if { (eval echo configure:8986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7242. rm -rf conftest*
  7243. eval "ac_cv_lib_$ac_lib_var=yes"
  7244. else
  7245. echo "configure: failed program was:" >&5
  7246. cat conftest.$ac_ext >&5
  7247. rm -rf conftest*
  7248. eval "ac_cv_lib_$ac_lib_var=no"
  7249. fi
  7250. rm -f conftest*
  7251. LIBS="$ac_save_LIBS"
  7252. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7253. echo "$ac_t""yes" 1>&6
  7254. FFMPEGLIB="$FFMPEGLIB -lavformat "
  7255. else
  7256. echo "$ac_t""no" 1>&6
  7257. echo $ac_n "checking for avformat_alloc_context in -lavformat""... $ac_c" 1>&6
  7258. echo "configure:9005: checking for avformat_alloc_context in -lavformat" >&5
  7259. ac_lib_var=`echo avformat'_'avformat_alloc_context | sed 'y%./+-%__p_%'`
  7260. ac_save_LIBS="$LIBS"
  7261. LIBS="-lavformat $FFMPEGLIB $MATHLIB $LIBS"
  7262. cat > conftest.$ac_ext <<EOF
  7263. #line 9011 "configure"
  7264. #include "confdefs.h"
  7265. /* Override any gcc2 internal prototype to avoid an error. */
  7266. /* We use char because int might match the return type of a gcc2
  7267. builtin and then its argument prototype would still apply. */
  7268. char avformat_alloc_context();
  7269. int main() {
  7270. avformat_alloc_context()
  7271. ; return 0; }
  7272. EOF
  7273. if { (eval echo configure:9022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7274. rm -rf conftest*
  7275. eval "ac_cv_lib_$ac_lib_var=yes"
  7276. else
  7277. echo "configure: failed program was:" >&5
  7278. cat conftest.$ac_ext >&5
  7279. rm -rf conftest*
  7280. eval "ac_cv_lib_$ac_lib_var=no"
  7281. fi
  7282. rm -f conftest*
  7283. LIBS="$ac_save_LIBS"
  7284. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7285. echo "$ac_t""yes" 1>&6
  7286. FFMPEGLIB="$FFMPEGLIB -lavformat $MATHLIB"
  7287. else
  7288. echo "$ac_t""no" 1>&6
  7289. LDFLAGS=${ac_save_ldflags}
  7290. { echo "configure: error: *** Unable to locate FFMPEG library." 1>&2; exit 1; }
  7291. fi
  7292. fi
  7293. LDFLAGS=${ac_save_ldflags}
  7294. fi # $USE_FFMPEG
  7295. # Done checking FFMPEG
  7296. # Enable OpenGL option
  7297. OPENGLINC=
  7298. OPENGLLIB=
  7299. OPENGLULIB=
  7300. USE_OPENGL=
  7301. OPENGL_X11=
  7302. OPENGL_AQUA=
  7303. OPENGL_WINDOWS=
  7304. echo $ac_n "checking whether to use OpenGL""... $ac_c" 1>&6
  7305. echo "configure:9081: checking whether to use OpenGL" >&5
  7306. echo "$ac_t"""$with_opengl"" 1>&6
  7307. case "$with_opengl" in
  7308. n|no)
  7309. OPENGL_TYPE=none
  7310. ;;
  7311. y|yes|x|x11|glx)
  7312. OPENGL_TYPE=X11
  7313. USE_OPENGL=1
  7314. OPENGL_X11=1
  7315. ;;
  7316. aqua|mac|osx|macosx|agl)
  7317. OPENGL_TYPE=Aqua
  7318. USE_OPENGL=1
  7319. OPENGL_AQUA=1
  7320. ;;
  7321. win|windows|mswin|wgl)
  7322. OPENGL_TYPE=Windows
  7323. USE_OPENGL=1
  7324. OPENGL_WINDOWS=1
  7325. ;;
  7326. *)
  7327. { echo "configure: error: *** Valid arguments for --with-opengl= are yes,no,x11,aqua,windows." 1>&2; exit 1; }
  7328. ;;
  7329. esac
  7330. if test -n "$USE_OPENGL" ; then
  7331. if test "$OPENGL_X11" = 1 ; then
  7332. # With OpenGL includes directory
  7333. echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
  7334. echo "configure:9115: checking for location of OpenGL includes" >&5
  7335. case "$with_opengl_includes" in
  7336. y | ye | yes | n | no)
  7337. { echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
  7338. ;;
  7339. esac
  7340. echo "$ac_t""$with_opengl_includes" 1>&6
  7341. if test -n "$with_opengl_includes" ; then
  7342. for dir in $with_opengl_includes; do
  7343. if test -d "$dir"; then
  7344. OPENGLINC="$OPENGLINC -I$dir"
  7345. else
  7346. { echo "configure: error: *** OpenGL includes directory $dir does not exist." 1>&2; exit 1; }
  7347. fi
  7348. done
  7349. fi
  7350. ac_save_cppflags="$CPPFLAGS"
  7351. CPPFLAGS="$OPENGLINC $X_CFLAGS $CPPFLAGS"
  7352. for ac_hdr in GL/gl.h GL/glu.h
  7353. do
  7354. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7355. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7356. echo "configure:9141: checking for $ac_hdr" >&5
  7357. cat > conftest.$ac_ext <<EOF
  7358. #line 9144 "configure"
  7359. #include "confdefs.h"
  7360. #include <$ac_hdr>
  7361. EOF
  7362. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7363. { (eval echo configure:9149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7364. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7365. if test -z "$ac_err"; then
  7366. rm -rf conftest*
  7367. eval "ac_cv_header_$ac_safe=yes"
  7368. else
  7369. echo "$ac_err" >&5
  7370. echo "configure: failed program was:" >&5
  7371. cat conftest.$ac_ext >&5
  7372. rm -rf conftest*
  7373. eval "ac_cv_header_$ac_safe=no"
  7374. fi
  7375. rm -f conftest*
  7376. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7377. echo "$ac_t""yes" 1>&6
  7378. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7379. cat >> confdefs.h <<EOF
  7380. #define $ac_tr_hdr 1
  7381. EOF
  7382. else
  7383. echo "$ac_t""no" 1>&6
  7384. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  7385. fi
  7386. done
  7387. CPPFLAGS=$ac_save_cppflags
  7388. # With OpenGL library directory
  7389. echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
  7390. echo "configure:9183: checking for location of OpenGL library" >&5
  7391. case "$with_opengl_libs" in
  7392. y | ye | yes | n | no)
  7393. { echo "configure: error: *** You must supply a directory to --with-opengl-libs." 1>&2; exit 1; }
  7394. ;;
  7395. esac
  7396. echo "$ac_t""$with_opengl_libs" 1>&6
  7397. if test -n "$with_opengl_libs"; then
  7398. for dir in $with_opengl_libs; do
  7399. if test -d "$dir"; then
  7400. OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
  7401. else
  7402. { echo "configure: error: *** OpenGL library directory $dir does not exist." 1>&2; exit 1; }
  7403. fi
  7404. done
  7405. fi
  7406. ac_save_ldflags="$LDFLAGS"
  7407. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7408. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7409. echo "configure:9212: checking for glBegin in -lGL" >&5
  7410. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7411. ac_save_LIBS="$LIBS"
  7412. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
  7413. cat > conftest.$ac_ext <<EOF
  7414. #line 9218 "configure"
  7415. #include "confdefs.h"
  7416. /* Override any gcc2 internal prototype to avoid an error. */
  7417. /* We use char because int might match the return type of a gcc2
  7418. builtin and then its argument prototype would still apply. */
  7419. char glBegin();
  7420. int main() {
  7421. glBegin()
  7422. ; return 0; }
  7423. EOF
  7424. if { (eval echo configure:9229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7425. rm -rf conftest*
  7426. eval "ac_cv_lib_$ac_lib_var=yes"
  7427. else
  7428. echo "configure: failed program was:" >&5
  7429. cat conftest.$ac_ext >&5
  7430. rm -rf conftest*
  7431. eval "ac_cv_lib_$ac_lib_var=no"
  7432. fi
  7433. rm -f conftest*
  7434. LIBS="$ac_save_LIBS"
  7435. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7436. echo "$ac_t""yes" 1>&6
  7437. OPENGLLIB="$OPENGLLIB -lGL "
  7438. else
  7439. echo "$ac_t""no" 1>&6
  7440. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7441. echo "configure:9248: checking for glBegin in -lGL" >&5
  7442. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7443. ac_save_LIBS="$LIBS"
  7444. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lXext $LIBS"
  7445. cat > conftest.$ac_ext <<EOF
  7446. #line 9254 "configure"
  7447. #include "confdefs.h"
  7448. /* Override any gcc2 internal prototype to avoid an error. */
  7449. /* We use char because int might match the return type of a gcc2
  7450. builtin and then its argument prototype would still apply. */
  7451. char glBegin();
  7452. int main() {
  7453. glBegin()
  7454. ; return 0; }
  7455. EOF
  7456. if { (eval echo configure:9265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7457. rm -rf conftest*
  7458. eval "ac_cv_lib_$ac_lib_var=yes"
  7459. else
  7460. echo "configure: failed program was:" >&5
  7461. cat conftest.$ac_ext >&5
  7462. rm -rf conftest*
  7463. eval "ac_cv_lib_$ac_lib_var=no"
  7464. fi
  7465. rm -f conftest*
  7466. LIBS="$ac_save_LIBS"
  7467. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7468. echo "$ac_t""yes" 1>&6
  7469. OPENGLLIB="$OPENGLLIB -lGL -lXext"
  7470. else
  7471. echo "$ac_t""no" 1>&6
  7472. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7473. echo "configure:9284: checking for glBegin in -lGL" >&5
  7474. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7475. ac_save_LIBS="$LIBS"
  7476. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread $LIBS"
  7477. cat > conftest.$ac_ext <<EOF
  7478. #line 9290 "configure"
  7479. #include "confdefs.h"
  7480. /* Override any gcc2 internal prototype to avoid an error. */
  7481. /* We use char because int might match the return type of a gcc2
  7482. builtin and then its argument prototype would still apply. */
  7483. char glBegin();
  7484. int main() {
  7485. glBegin()
  7486. ; return 0; }
  7487. EOF
  7488. if { (eval echo configure:9301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7489. rm -rf conftest*
  7490. eval "ac_cv_lib_$ac_lib_var=yes"
  7491. else
  7492. echo "configure: failed program was:" >&5
  7493. cat conftest.$ac_ext >&5
  7494. rm -rf conftest*
  7495. eval "ac_cv_lib_$ac_lib_var=no"
  7496. fi
  7497. rm -f conftest*
  7498. LIBS="$ac_save_LIBS"
  7499. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7500. echo "$ac_t""yes" 1>&6
  7501. OPENGLLIB="$OPENGLLIB -lGL -lpthread"
  7502. else
  7503. echo "$ac_t""no" 1>&6
  7504. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7505. echo "configure:9320: checking for glBegin in -lGL" >&5
  7506. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7507. ac_save_LIBS="$LIBS"
  7508. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread -lXext $LIBS"
  7509. cat > conftest.$ac_ext <<EOF
  7510. #line 9326 "configure"
  7511. #include "confdefs.h"
  7512. /* Override any gcc2 internal prototype to avoid an error. */
  7513. /* We use char because int might match the return type of a gcc2
  7514. builtin and then its argument prototype would still apply. */
  7515. char glBegin();
  7516. int main() {
  7517. glBegin()
  7518. ; return 0; }
  7519. EOF
  7520. if { (eval echo configure:9337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7521. rm -rf conftest*
  7522. eval "ac_cv_lib_$ac_lib_var=yes"
  7523. else
  7524. echo "configure: failed program was:" >&5
  7525. cat conftest.$ac_ext >&5
  7526. rm -rf conftest*
  7527. eval "ac_cv_lib_$ac_lib_var=no"
  7528. fi
  7529. rm -f conftest*
  7530. LIBS="$ac_save_LIBS"
  7531. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7532. echo "$ac_t""yes" 1>&6
  7533. OPENGLLIB="$OPENGLLIB -lGL -lpthread -lXext"
  7534. else
  7535. echo "$ac_t""no" 1>&6
  7536. LDFLAGS=${ac_save_ldflags}
  7537. { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
  7538. fi
  7539. fi
  7540. fi
  7541. fi
  7542. LDFLAGS=${ac_save_ldflags}
  7543. ac_save_ldflags="$LDFLAGS"
  7544. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7545. echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
  7546. echo "configure:9399: checking for gluBeginCurve in -lGLU" >&5
  7547. ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
  7548. ac_save_LIBS="$LIBS"
  7549. LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
  7550. cat > conftest.$ac_ext <<EOF
  7551. #line 9405 "configure"
  7552. #include "confdefs.h"
  7553. /* Override any gcc2 internal prototype to avoid an error. */
  7554. /* We use char because int might match the return type of a gcc2
  7555. builtin and then its argument prototype would still apply. */
  7556. char gluBeginCurve();
  7557. int main() {
  7558. gluBeginCurve()
  7559. ; return 0; }
  7560. EOF
  7561. if { (eval echo configure:9416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7562. rm -rf conftest*
  7563. eval "ac_cv_lib_$ac_lib_var=yes"
  7564. else
  7565. echo "configure: failed program was:" >&5
  7566. cat conftest.$ac_ext >&5
  7567. rm -rf conftest*
  7568. eval "ac_cv_lib_$ac_lib_var=no"
  7569. fi
  7570. rm -f conftest*
  7571. LIBS="$ac_save_LIBS"
  7572. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7573. echo "$ac_t""yes" 1>&6
  7574. OPENGLULIB="$OPENGLULIB -lGLU "
  7575. else
  7576. echo "$ac_t""no" 1>&6
  7577. echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
  7578. echo "configure:9435: checking for gluBeginCurve in -lGLU" >&5
  7579. ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
  7580. ac_save_LIBS="$LIBS"
  7581. LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lstdc++ $LIBS"
  7582. cat > conftest.$ac_ext <<EOF
  7583. #line 9441 "configure"
  7584. #include "confdefs.h"
  7585. /* Override any gcc2 internal prototype to avoid an error. */
  7586. /* We use char because int might match the return type of a gcc2
  7587. builtin and then its argument prototype would still apply. */
  7588. char gluBeginCurve();
  7589. int main() {
  7590. gluBeginCurve()
  7591. ; return 0; }
  7592. EOF
  7593. if { (eval echo configure:9452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7594. rm -rf conftest*
  7595. eval "ac_cv_lib_$ac_lib_var=yes"
  7596. else
  7597. echo "configure: failed program was:" >&5
  7598. cat conftest.$ac_ext >&5
  7599. rm -rf conftest*
  7600. eval "ac_cv_lib_$ac_lib_var=no"
  7601. fi
  7602. rm -f conftest*
  7603. LIBS="$ac_save_LIBS"
  7604. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7605. echo "$ac_t""yes" 1>&6
  7606. OPENGLULIB="$OPENGLULIB -lGLU -lstdc++"
  7607. else
  7608. echo "$ac_t""no" 1>&6
  7609. LDFLAGS=${ac_save_ldflags}
  7610. { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
  7611. fi
  7612. fi
  7613. LDFLAGS=${ac_save_ldflags}
  7614. OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
  7615. OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
  7616. ac_save_libs="$LIBS"
  7617. ac_save_ldflags="$LDFLAGS"
  7618. LIBS=" $OPENGLLIB $LIBS"
  7619. LDFLAGS=" $LDFLAGS"
  7620. echo $ac_n "checking for glXCreatePbuffer""... $ac_c" 1>&6
  7621. echo "configure:9499: checking for glXCreatePbuffer" >&5
  7622. cat > conftest.$ac_ext <<EOF
  7623. #line 9502 "configure"
  7624. #include "confdefs.h"
  7625. /* System header to define __stub macros and hopefully few prototypes,
  7626. which can conflict with char glXCreatePbuffer(); below. */
  7627. #include <assert.h>
  7628. /* Override any gcc2 internal prototype to avoid an error. */
  7629. /* We use char because int might match the return type of a gcc2
  7630. builtin and then its argument prototype would still apply. */
  7631. char glXCreatePbuffer();
  7632. int main() {
  7633. /* The GNU C library defines this for functions which it implements
  7634. to always fail with ENOSYS. Some functions are actually named
  7635. something starting with __ and the normal name is an alias. */
  7636. #if defined (__stub_glXCreatePbuffer) || defined (__stub___glXCreatePbuffer)
  7637. choke me
  7638. #else
  7639. glXCreatePbuffer();
  7640. #endif
  7641. ; return 0; }
  7642. EOF
  7643. if { (eval echo configure:9525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7644. rm -rf conftest*
  7645. eval "ac_cv_func_glXCreatePbuffer=yes"
  7646. else
  7647. echo "configure: failed program was:" >&5
  7648. cat conftest.$ac_ext >&5
  7649. rm -rf conftest*
  7650. eval "ac_cv_func_glXCreatePbuffer=no"
  7651. fi
  7652. rm -f conftest*
  7653. if eval "test \"`echo '$ac_cv_func_'glXCreatePbuffer`\" = yes"; then
  7654. echo "$ac_t""yes" 1>&6
  7655. cat >> confdefs.h <<\EOF
  7656. #define HAVE_PBUFFERS 1
  7657. EOF
  7658. else
  7659. echo "$ac_t""no" 1>&6
  7660. { echo "configure: error: *** Unable to locate glXCreatePbuffer." 1>&2; exit 1; }
  7661. fi
  7662. LIBS=${ac_save_libs}
  7663. LDFLAGS=${ac_save_ldflags}
  7664. ac_save_libs="$LIBS"
  7665. ac_save_ldflags="$LDFLAGS"
  7666. LIBS=" $OPENGLLIB $LIBS"
  7667. LDFLAGS=" $LDFLAGS"
  7668. echo $ac_n "checking for glXCreateGLXPixmap""... $ac_c" 1>&6
  7669. echo "configure:9562: checking for glXCreateGLXPixmap" >&5
  7670. cat > conftest.$ac_ext <<EOF
  7671. #line 9565 "configure"
  7672. #include "confdefs.h"
  7673. /* System header to define __stub macros and hopefully few prototypes,
  7674. which can conflict with char glXCreateGLXPixmap(); below. */
  7675. #include <assert.h>
  7676. /* Override any gcc2 internal prototype to avoid an error. */
  7677. /* We use char because int might match the return type of a gcc2
  7678. builtin and then its argument prototype would still apply. */
  7679. char glXCreateGLXPixmap();
  7680. int main() {
  7681. /* The GNU C library defines this for functions which it implements
  7682. to always fail with ENOSYS. Some functions are actually named
  7683. something starting with __ and the normal name is an alias. */
  7684. #if defined (__stub_glXCreateGLXPixmap) || defined (__stub___glXCreateGLXPixmap)
  7685. choke me
  7686. #else
  7687. glXCreateGLXPixmap();
  7688. #endif
  7689. ; return 0; }
  7690. EOF
  7691. if { (eval echo configure:9588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7692. rm -rf conftest*
  7693. eval "ac_cv_func_glXCreateGLXPixmap=yes"
  7694. else
  7695. echo "configure: failed program was:" >&5
  7696. cat conftest.$ac_ext >&5
  7697. rm -rf conftest*
  7698. eval "ac_cv_func_glXCreateGLXPixmap=no"
  7699. fi
  7700. rm -f conftest*
  7701. if eval "test \"`echo '$ac_cv_func_'glXCreateGLXPixmap`\" = yes"; then
  7702. echo "$ac_t""yes" 1>&6
  7703. cat >> confdefs.h <<\EOF
  7704. #define HAVE_PIXMAPS 1
  7705. EOF
  7706. else
  7707. echo "$ac_t""no" 1>&6
  7708. { echo "configure: error: *** Unable to locate glXCreateGLXPixmap." 1>&2; exit 1; }
  7709. fi
  7710. LIBS=${ac_save_libs}
  7711. LDFLAGS=${ac_save_ldflags}
  7712. cat >> confdefs.h <<\EOF
  7713. #define OPENGL_X11 1
  7714. EOF
  7715. fi # $OPENGL_X11
  7716. if test "$OPENGL_AQUA" = 1 ; then
  7717. echo $ac_n "checking for location of OpenGL framework""... $ac_c" 1>&6
  7718. echo "configure:9631: checking for location of OpenGL framework" >&5
  7719. case "$with_opengl_framework" in
  7720. y | ye | yes | n | no)
  7721. { echo "configure: error: *** You must supply a directory to --with-opengl-framework." 1>&2; exit 1; }
  7722. ;;
  7723. esac
  7724. echo "$ac_t""$with_opengl_framework" 1>&6
  7725. if test -n "$with_opengl_framework"; then
  7726. if test -d $with_opengl_framework; then
  7727. OPENGLPATH="$OPENGLPATH -F$with_opengl_framework"
  7728. else
  7729. { echo "configure: error: *** OpenGL framework directory $dir does not exist." 1>&2; exit 1; }
  7730. fi
  7731. fi
  7732. ac_save_cppflags="$CPPFLAGS"
  7733. CPPFLAGS="$OPENGLPATH $CPPFLAGS"
  7734. for ac_hdr in OpenGL/gl.h OpenGL/glu.h
  7735. do
  7736. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7737. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7738. echo "configure:9655: checking for $ac_hdr" >&5
  7739. cat > conftest.$ac_ext <<EOF
  7740. #line 9658 "configure"
  7741. #include "confdefs.h"
  7742. #include <$ac_hdr>
  7743. EOF
  7744. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7745. { (eval echo configure:9663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7746. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7747. if test -z "$ac_err"; then
  7748. rm -rf conftest*
  7749. eval "ac_cv_header_$ac_safe=yes"
  7750. else
  7751. echo "$ac_err" >&5
  7752. echo "configure: failed program was:" >&5
  7753. cat conftest.$ac_ext >&5
  7754. rm -rf conftest*
  7755. eval "ac_cv_header_$ac_safe=no"
  7756. fi
  7757. rm -f conftest*
  7758. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7759. echo "$ac_t""yes" 1>&6
  7760. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7761. cat >> confdefs.h <<EOF
  7762. #define $ac_tr_hdr 1
  7763. EOF
  7764. else
  7765. echo "$ac_t""no" 1>&6
  7766. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  7767. fi
  7768. done
  7769. CPPFLAGS=$ac_save_cppflags
  7770. ac_save_libs="$LIBS"
  7771. ac_save_ldflags="$LDFLAGS"
  7772. LIBS="-framework OpenGL -framework AGL -framework ApplicationServices $LIBS"
  7773. LDFLAGS="$OPENGLPATH $LDFLAGS"
  7774. echo $ac_n "checking for glBegin""... $ac_c" 1>&6
  7775. echo "configure:9699: checking for glBegin" >&5
  7776. cat > conftest.$ac_ext <<EOF
  7777. #line 9702 "configure"
  7778. #include "confdefs.h"
  7779. /* System header to define __stub macros and hopefully few prototypes,
  7780. which can conflict with char glBegin(); below. */
  7781. #include <assert.h>
  7782. /* Override any gcc2 internal prototype to avoid an error. */
  7783. /* We use char because int might match the return type of a gcc2
  7784. builtin and then its argument prototype would still apply. */
  7785. char glBegin();
  7786. int main() {
  7787. /* The GNU C library defines this for functions which it implements
  7788. to always fail with ENOSYS. Some functions are actually named
  7789. something starting with __ and the normal name is an alias. */
  7790. #if defined (__stub_glBegin) || defined (__stub___glBegin)
  7791. choke me
  7792. #else
  7793. glBegin();
  7794. #endif
  7795. ; return 0; }
  7796. EOF
  7797. if { (eval echo configure:9725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7798. rm -rf conftest*
  7799. eval "ac_cv_func_glBegin=yes"
  7800. else
  7801. echo "configure: failed program was:" >&5
  7802. cat conftest.$ac_ext >&5
  7803. rm -rf conftest*
  7804. eval "ac_cv_func_glBegin=no"
  7805. fi
  7806. rm -f conftest*
  7807. if eval "test \"`echo '$ac_cv_func_'glBegin`\" = yes"; then
  7808. echo "$ac_t""yes" 1>&6
  7809. OPENGLLIB="$OPENGLLIB -framework OpenGL -framework AGL -framework ApplicationServices"
  7810. else
  7811. echo "$ac_t""no" 1>&6
  7812. { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
  7813. fi
  7814. LIBS=${ac_save_libs}
  7815. LDFLAGS=${ac_save_ldflags}
  7816. ac_save_libs="$LIBS"
  7817. ac_save_ldflags="$LDFLAGS"
  7818. LIBS=" $OPENGLLIB $LIBS"
  7819. LDFLAGS="$OPENGLPATH $LDFLAGS"
  7820. echo $ac_n "checking for gluBeginCurve""... $ac_c" 1>&6
  7821. echo "configure:9762: checking for gluBeginCurve" >&5
  7822. cat > conftest.$ac_ext <<EOF
  7823. #line 9765 "configure"
  7824. #include "confdefs.h"
  7825. /* System header to define __stub macros and hopefully few prototypes,
  7826. which can conflict with char gluBeginCurve(); below. */
  7827. #include <assert.h>
  7828. /* Override any gcc2 internal prototype to avoid an error. */
  7829. /* We use char because int might match the return type of a gcc2
  7830. builtin and then its argument prototype would still apply. */
  7831. char gluBeginCurve();
  7832. int main() {
  7833. /* The GNU C library defines this for functions which it implements
  7834. to always fail with ENOSYS. Some functions are actually named
  7835. something starting with __ and the normal name is an alias. */
  7836. #if defined (__stub_gluBeginCurve) || defined (__stub___gluBeginCurve)
  7837. choke me
  7838. #else
  7839. gluBeginCurve();
  7840. #endif
  7841. ; return 0; }
  7842. EOF
  7843. if { (eval echo configure:9788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7844. rm -rf conftest*
  7845. eval "ac_cv_func_gluBeginCurve=yes"
  7846. else
  7847. echo "configure: failed program was:" >&5
  7848. cat conftest.$ac_ext >&5
  7849. rm -rf conftest*
  7850. eval "ac_cv_func_gluBeginCurve=no"
  7851. fi
  7852. rm -f conftest*
  7853. if eval "test \"`echo '$ac_cv_func_'gluBeginCurve`\" = yes"; then
  7854. echo "$ac_t""yes" 1>&6
  7855. OPENGLLIB="$OPENGLLIB "
  7856. else
  7857. echo "$ac_t""no" 1>&6
  7858. { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
  7859. fi
  7860. LIBS=${ac_save_libs}
  7861. LDFLAGS=${ac_save_ldflags}
  7862. OPENGLINC="$OPENGLPATH"
  7863. OPENGLLIBPATH="$OPENGLPATH"
  7864. cat >> confdefs.h <<\EOF
  7865. #define OPENGL_AQUA 1
  7866. EOF
  7867. fi # $OPENGL_AQUA
  7868. if test "$OPENGL_WINDOWS" = 1 ; then
  7869. # With OpenGL includes directory
  7870. echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
  7871. echo "configure:9836: checking for location of OpenGL includes" >&5
  7872. case "$with_opengl_includes" in
  7873. y | ye | yes | n | no)
  7874. { echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
  7875. ;;
  7876. esac
  7877. echo "$ac_t""$with_opengl_includes" 1>&6
  7878. if test -n "$with_opengl_includes" ; then
  7879. for dir in $with_opengl_includes; do
  7880. if test -d "$dir"; then
  7881. OPENGLINC="$OPENGLINC -I$dir"
  7882. else
  7883. { echo "configure: error: *** OpenGL includes directory $dir does not exist." 1>&2; exit 1; }
  7884. fi
  7885. done
  7886. fi
  7887. ac_save_cppflags="$CPPFLAGS"
  7888. CPPFLAGS="$OPENGLINC $CPPFLAGS"
  7889. for ac_hdr in GL/gl.h GL/glu.h
  7890. do
  7891. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7892. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7893. echo "configure:9862: checking for $ac_hdr" >&5
  7894. cat > conftest.$ac_ext <<EOF
  7895. #line 9865 "configure"
  7896. #include "confdefs.h"
  7897. #include <$ac_hdr>
  7898. EOF
  7899. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7900. { (eval echo configure:9870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7901. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7902. if test -z "$ac_err"; then
  7903. rm -rf conftest*
  7904. eval "ac_cv_header_$ac_safe=yes"
  7905. else
  7906. echo "$ac_err" >&5
  7907. echo "configure: failed program was:" >&5
  7908. cat conftest.$ac_ext >&5
  7909. rm -rf conftest*
  7910. eval "ac_cv_header_$ac_safe=no"
  7911. fi
  7912. rm -f conftest*
  7913. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7914. echo "$ac_t""yes" 1>&6
  7915. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7916. cat >> confdefs.h <<EOF
  7917. #define $ac_tr_hdr 1
  7918. EOF
  7919. else
  7920. echo "$ac_t""no" 1>&6
  7921. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  7922. fi
  7923. done
  7924. CPPFLAGS=$ac_save_cppflags
  7925. # With OpenGL library directory
  7926. echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
  7927. echo "configure:9904: checking for location of OpenGL library" >&5
  7928. case "$with_opengl_libs" in
  7929. y | ye | yes | n | no)
  7930. { echo "configure: error: *** You must supply a directory to --with-opengl-libs." 1>&2; exit 1; }
  7931. ;;
  7932. esac
  7933. echo "$ac_t""$with_opengl_libs" 1>&6
  7934. if test -n "$with_opengl_libs"; then
  7935. for dir in $with_opengl_libs; do
  7936. if test -d "$dir"; then
  7937. OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
  7938. else
  7939. { echo "configure: error: *** OpenGL library directory $dir does not exist." 1>&2; exit 1; }
  7940. fi
  7941. done
  7942. fi
  7943. ac_save_cflags="$CFLAGS"
  7944. CFLAGS="$CFLAGS $OPENGLINC"
  7945. ac_save_ldflags="$LDFLAGS"
  7946. ac_save_libs="$LIBS"
  7947. echo $ac_n "checking for OpenGL library""... $ac_c" 1>&6
  7948. echo "configure:9929: checking for OpenGL library" >&5
  7949. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7950. LIBS="-lopengl32 "
  7951. cat > conftest.$ac_ext <<EOF
  7952. #line 9933 "configure"
  7953. #include "confdefs.h"
  7954. #include <GL/gl.h>
  7955. int main() {
  7956. glEnd();
  7957. ; return 0; }
  7958. EOF
  7959. if { (eval echo configure:9940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7960. rm -rf conftest*
  7961. echo "$ac_t""found" 1>&6
  7962. OPENGLLIB="$OPENGLLIB -lopengl32 "
  7963. else
  7964. echo "configure: failed program was:" >&5
  7965. cat conftest.$ac_ext >&5
  7966. rm -rf conftest*
  7967. { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
  7968. fi
  7969. rm -f conftest*
  7970. LIBS=${ac_save_libs}
  7971. LDFLAGS=${ac_save_ldflags}
  7972. ac_save_ldflags="$LDFLAGS"
  7973. ac_save_libs="$LIBS"
  7974. echo $ac_n "checking for GLU library""... $ac_c" 1>&6
  7975. echo "configure:9964: checking for GLU library" >&5
  7976. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7977. LIBS="-lglu32 $OPENGLLIB "
  7978. cat > conftest.$ac_ext <<EOF
  7979. #line 9968 "configure"
  7980. #include "confdefs.h"
  7981. #include <GL/glu.h>
  7982. int main() {
  7983. gluNewQuadric();
  7984. ; return 0; }
  7985. EOF
  7986. if { (eval echo configure:9975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7987. rm -rf conftest*
  7988. echo "$ac_t""found" 1>&6
  7989. OPENGLULIB="$OPENGLULIB -lglu32 "
  7990. else
  7991. echo "configure: failed program was:" >&5
  7992. cat conftest.$ac_ext >&5
  7993. rm -rf conftest*
  7994. { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
  7995. fi
  7996. rm -f conftest*
  7997. LIBS=${ac_save_libs}
  7998. LDFLAGS=${ac_save_ldflags}
  7999. CFLAGS="${ac_save_cflags}"
  8000. OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
  8001. OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
  8002. cat >> confdefs.h <<\EOF
  8003. #define OPENGL_WINDOWS 1
  8004. EOF
  8005. fi # $OPENGL_WINDOWS
  8006. fi # $USE_OPENGL
  8007. # Done checking OpenGL
  8008. # Enable ODBC option
  8009. echo $ac_n "checking whether to use ODBC""... $ac_c" 1>&6
  8010. echo "configure:10024: checking whether to use ODBC" >&5
  8011. echo "$ac_t"""$with_odbc"" 1>&6
  8012. case "$with_odbc" in
  8013. "no") USE_ODBC= ;;
  8014. "yes") USE_ODBC="1" ;;
  8015. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8016. esac
  8017. ODBCINC=
  8018. ODBCLIB=
  8019. if test -n "$USE_ODBC"; then
  8020. # With ODBC includes directory
  8021. echo $ac_n "checking for location of ODBC includes""... $ac_c" 1>&6
  8022. echo "configure:10043: checking for location of ODBC includes" >&5
  8023. case "$with_odbc_includes" in
  8024. y | ye | yes | n | no)
  8025. { echo "configure: error: *** You must supply a directory to --with-odbc-includes." 1>&2; exit 1; }
  8026. ;;
  8027. esac
  8028. echo "$ac_t""$with_odbc_includes" 1>&6
  8029. if test -n "$with_odbc_includes" ; then
  8030. for dir in $with_odbc_includes; do
  8031. if test -d "$dir"; then
  8032. ODBCINC="$ODBCINC -I$dir"
  8033. else
  8034. { echo "configure: error: *** ODBC includes directory $dir does not exist." 1>&2; exit 1; }
  8035. fi
  8036. done
  8037. fi
  8038. ac_save_cppflags="$CPPFLAGS"
  8039. CPPFLAGS="$ODBCINC $CPPFLAGS"
  8040. for ac_hdr in sql.h
  8041. do
  8042. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8043. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8044. echo "configure:10069: checking for $ac_hdr" >&5
  8045. cat > conftest.$ac_ext <<EOF
  8046. #line 10072 "configure"
  8047. #include "confdefs.h"
  8048. #include <$ac_hdr>
  8049. EOF
  8050. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8051. { (eval echo configure:10077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8052. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8053. if test -z "$ac_err"; then
  8054. rm -rf conftest*
  8055. eval "ac_cv_header_$ac_safe=yes"
  8056. else
  8057. echo "$ac_err" >&5
  8058. echo "configure: failed program was:" >&5
  8059. cat conftest.$ac_ext >&5
  8060. rm -rf conftest*
  8061. eval "ac_cv_header_$ac_safe=no"
  8062. fi
  8063. rm -f conftest*
  8064. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8065. echo "$ac_t""yes" 1>&6
  8066. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8067. cat >> confdefs.h <<EOF
  8068. #define $ac_tr_hdr 1
  8069. EOF
  8070. else
  8071. echo "$ac_t""no" 1>&6
  8072. { echo "configure: error: *** Unable to locate ODBC includes." 1>&2; exit 1; }
  8073. fi
  8074. done
  8075. CPPFLAGS=$ac_save_cppflags
  8076. # With ODBC library directory
  8077. echo $ac_n "checking for location of ODBC library""... $ac_c" 1>&6
  8078. echo "configure:10111: checking for location of ODBC library" >&5
  8079. case "$with_odbc_libs" in
  8080. y | ye | yes | n | no)
  8081. { echo "configure: error: *** You must supply a directory to --with-odbc-libs." 1>&2; exit 1; }
  8082. ;;
  8083. esac
  8084. echo "$ac_t""$with_odbc_libs" 1>&6
  8085. if test -n "$with_odbc_libs"; then
  8086. for dir in $with_odbc_libs; do
  8087. if test -d "$dir"; then
  8088. ODBCLIB="$ODBCLIB -L$dir"
  8089. else
  8090. { echo "configure: error: *** ODBC library directory $dir does not exist." 1>&2; exit 1; }
  8091. fi
  8092. done
  8093. fi
  8094. ac_save_ldflags="$LDFLAGS"
  8095. LDFLAGS="$ODBCLIB $LDFLAGS"
  8096. echo $ac_n "checking for SQLConnect in -lodbc""... $ac_c" 1>&6
  8097. echo "configure:10136: checking for SQLConnect in -lodbc" >&5
  8098. ac_lib_var=`echo odbc'_'SQLConnect | sed 'y%./+-%__p_%'`
  8099. ac_save_LIBS="$LIBS"
  8100. LIBS="-lodbc $ICONVLIB $LIBS"
  8101. cat > conftest.$ac_ext <<EOF
  8102. #line 10142 "configure"
  8103. #include "confdefs.h"
  8104. /* Override any gcc2 internal prototype to avoid an error. */
  8105. /* We use char because int might match the return type of a gcc2
  8106. builtin and then its argument prototype would still apply. */
  8107. char SQLConnect();
  8108. int main() {
  8109. SQLConnect()
  8110. ; return 0; }
  8111. EOF
  8112. if { (eval echo configure:10153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8113. rm -rf conftest*
  8114. eval "ac_cv_lib_$ac_lib_var=yes"
  8115. else
  8116. echo "configure: failed program was:" >&5
  8117. cat conftest.$ac_ext >&5
  8118. rm -rf conftest*
  8119. eval "ac_cv_lib_$ac_lib_var=no"
  8120. fi
  8121. rm -f conftest*
  8122. LIBS="$ac_save_LIBS"
  8123. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8124. echo "$ac_t""yes" 1>&6
  8125. ODBCLIB="$ODBCLIB -lodbc "
  8126. else
  8127. echo "$ac_t""no" 1>&6
  8128. LDFLAGS=${ac_save_ldflags}
  8129. ac_save_ldflags="$LDFLAGS"
  8130. LDFLAGS="$ODBCLIB $LDFLAGS"
  8131. echo $ac_n "checking for SQLConnect in -liodbc""... $ac_c" 1>&6
  8132. echo "configure:10178: checking for SQLConnect in -liodbc" >&5
  8133. ac_lib_var=`echo iodbc'_'SQLConnect | sed 'y%./+-%__p_%'`
  8134. ac_save_LIBS="$LIBS"
  8135. LIBS="-liodbc $LIBS"
  8136. cat > conftest.$ac_ext <<EOF
  8137. #line 10184 "configure"
  8138. #include "confdefs.h"
  8139. /* Override any gcc2 internal prototype to avoid an error. */
  8140. /* We use char because int might match the return type of a gcc2
  8141. builtin and then its argument prototype would still apply. */
  8142. char SQLConnect();
  8143. int main() {
  8144. SQLConnect()
  8145. ; return 0; }
  8146. EOF
  8147. if { (eval echo configure:10195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8148. rm -rf conftest*
  8149. eval "ac_cv_lib_$ac_lib_var=yes"
  8150. else
  8151. echo "configure: failed program was:" >&5
  8152. cat conftest.$ac_ext >&5
  8153. rm -rf conftest*
  8154. eval "ac_cv_lib_$ac_lib_var=no"
  8155. fi
  8156. rm -f conftest*
  8157. LIBS="$ac_save_LIBS"
  8158. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8159. echo "$ac_t""yes" 1>&6
  8160. ODBCLIB="$ODBCLIB -liodbc "
  8161. else
  8162. echo "$ac_t""no" 1>&6
  8163. LDFLAGS=${ac_save_ldflags}
  8164. ac_save_cflags="$CFLAGS"
  8165. CFLAGS="$CFLAGS $ODBCINC"
  8166. ac_save_ldflags="$LDFLAGS"
  8167. ac_save_libs="$LIBS"
  8168. echo $ac_n "checking for ODBC library""... $ac_c" 1>&6
  8169. echo "configure:10220: checking for ODBC library" >&5
  8170. LDFLAGS="$ODBCLIB $LDFLAGS"
  8171. LIBS="-lodbc32 "
  8172. cat > conftest.$ac_ext <<EOF
  8173. #line 10224 "configure"
  8174. #include "confdefs.h"
  8175. #include <windows.h>
  8176. #include <sql.h>
  8177. int main() {
  8178. SQLAllocEnv((SQLHENV *)0);
  8179. ; return 0; }
  8180. EOF
  8181. if { (eval echo configure:10232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8182. rm -rf conftest*
  8183. echo "$ac_t""found" 1>&6
  8184. ODBCLIB="$ODBCLIB -lodbc32 "
  8185. else
  8186. echo "configure: failed program was:" >&5
  8187. cat conftest.$ac_ext >&5
  8188. rm -rf conftest*
  8189. { echo "configure: error: *** Unable to locate ODBC library." 1>&2; exit 1; }
  8190. fi
  8191. rm -f conftest*
  8192. LIBS=${ac_save_libs}
  8193. LDFLAGS=${ac_save_ldflags}
  8194. CFLAGS="${ac_save_cflags}"
  8195. fi
  8196. LDFLAGS=${ac_save_ldflags}
  8197. fi
  8198. LDFLAGS=${ac_save_ldflags}
  8199. fi # $USE_ODBC
  8200. # Done checking ODBC
  8201. # Enable FFTW option
  8202. echo $ac_n "checking whether to use FFTW""... $ac_c" 1>&6
  8203. echo "configure:10281: checking whether to use FFTW" >&5
  8204. echo "$ac_t"""$with_fftw"" 1>&6
  8205. case "$with_fftw" in
  8206. "no") USE_FFTW= ;;
  8207. "yes") USE_FFTW="1" ;;
  8208. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8209. esac
  8210. FFTWINC=
  8211. FFTWLIB=
  8212. if test -n "$USE_FFTW"; then
  8213. # With FFTW includes directory
  8214. echo $ac_n "checking for location of FFTW includes""... $ac_c" 1>&6
  8215. echo "configure:10300: checking for location of FFTW includes" >&5
  8216. case "$with_fftw_includes" in
  8217. y | ye | yes | n | no)
  8218. { echo "configure: error: *** You must supply a directory to --with-fftw-includes." 1>&2; exit 1; }
  8219. ;;
  8220. esac
  8221. echo "$ac_t""$with_fftw_includes" 1>&6
  8222. if test -n "$with_fftw_includes" ; then
  8223. for dir in $with_fftw_includes; do
  8224. if test -d "$dir"; then
  8225. FFTWINC="$FFTWINC -I$dir"
  8226. else
  8227. { echo "configure: error: *** FFTW includes directory $dir does not exist." 1>&2; exit 1; }
  8228. fi
  8229. done
  8230. fi
  8231. ac_save_cppflags="$CPPFLAGS"
  8232. CPPFLAGS="$FFTWINC $CPPFLAGS"
  8233. for ac_hdr in fftw3.h
  8234. do
  8235. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8236. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8237. echo "configure:10326: checking for $ac_hdr" >&5
  8238. cat > conftest.$ac_ext <<EOF
  8239. #line 10329 "configure"
  8240. #include "confdefs.h"
  8241. #include <$ac_hdr>
  8242. EOF
  8243. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8244. { (eval echo configure:10334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8245. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8246. if test -z "$ac_err"; then
  8247. rm -rf conftest*
  8248. eval "ac_cv_header_$ac_safe=yes"
  8249. else
  8250. echo "$ac_err" >&5
  8251. echo "configure: failed program was:" >&5
  8252. cat conftest.$ac_ext >&5
  8253. rm -rf conftest*
  8254. eval "ac_cv_header_$ac_safe=no"
  8255. fi
  8256. rm -f conftest*
  8257. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8258. echo "$ac_t""yes" 1>&6
  8259. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8260. cat >> confdefs.h <<EOF
  8261. #define $ac_tr_hdr 1
  8262. EOF
  8263. else
  8264. echo "$ac_t""no" 1>&6
  8265. ac_save_cppflags="$CPPFLAGS"
  8266. CPPFLAGS=" $CPPFLAGS"
  8267. for ac_hdr in fftw.h
  8268. do
  8269. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8270. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8271. echo "configure:10362: checking for $ac_hdr" >&5
  8272. cat > conftest.$ac_ext <<EOF
  8273. #line 10365 "configure"
  8274. #include "confdefs.h"
  8275. #include <$ac_hdr>
  8276. EOF
  8277. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8278. { (eval echo configure:10370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8279. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8280. if test -z "$ac_err"; then
  8281. rm -rf conftest*
  8282. eval "ac_cv_header_$ac_safe=yes"
  8283. else
  8284. echo "$ac_err" >&5
  8285. echo "configure: failed program was:" >&5
  8286. cat conftest.$ac_ext >&5
  8287. rm -rf conftest*
  8288. eval "ac_cv_header_$ac_safe=no"
  8289. fi
  8290. rm -f conftest*
  8291. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8292. echo "$ac_t""yes" 1>&6
  8293. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8294. cat >> confdefs.h <<EOF
  8295. #define $ac_tr_hdr 1
  8296. EOF
  8297. else
  8298. echo "$ac_t""no" 1>&6
  8299. ac_save_cppflags="$CPPFLAGS"
  8300. CPPFLAGS=" $CPPFLAGS"
  8301. for ac_hdr in dfftw.h
  8302. do
  8303. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8304. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8305. echo "configure:10398: checking for $ac_hdr" >&5
  8306. cat > conftest.$ac_ext <<EOF
  8307. #line 10401 "configure"
  8308. #include "confdefs.h"
  8309. #include <$ac_hdr>
  8310. EOF
  8311. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8312. { (eval echo configure:10406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8313. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8314. if test -z "$ac_err"; then
  8315. rm -rf conftest*
  8316. eval "ac_cv_header_$ac_safe=yes"
  8317. else
  8318. echo "$ac_err" >&5
  8319. echo "configure: failed program was:" >&5
  8320. cat conftest.$ac_ext >&5
  8321. rm -rf conftest*
  8322. eval "ac_cv_header_$ac_safe=no"
  8323. fi
  8324. rm -f conftest*
  8325. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8326. echo "$ac_t""yes" 1>&6
  8327. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8328. cat >> confdefs.h <<EOF
  8329. #define $ac_tr_hdr 1
  8330. EOF
  8331. else
  8332. echo "$ac_t""no" 1>&6
  8333. { echo "configure: error: *** Unable to locate FFTW includes." 1>&2; exit 1; }
  8334. fi
  8335. done
  8336. CPPFLAGS=$ac_save_cppflags
  8337. fi
  8338. done
  8339. CPPFLAGS=$ac_save_cppflags
  8340. fi
  8341. done
  8342. CPPFLAGS=$ac_save_cppflags
  8343. # With FFTW library directory
  8344. echo $ac_n "checking for location of FFTW library""... $ac_c" 1>&6
  8345. echo "configure:10452: checking for location of FFTW library" >&5
  8346. case "$with_fftw_libs" in
  8347. y | ye | yes | n | no)
  8348. { echo "configure: error: *** You must supply a directory to --with-fftw-libs." 1>&2; exit 1; }
  8349. ;;
  8350. esac
  8351. echo "$ac_t""$with_fftw_libs" 1>&6
  8352. if test -n "$with_fftw_libs"; then
  8353. for dir in $with_fftw_libs; do
  8354. if test -d "$dir"; then
  8355. FFTWLIB="$FFTWLIB -L$dir"
  8356. else
  8357. { echo "configure: error: *** FFTW library directory $dir does not exist." 1>&2; exit 1; }
  8358. fi
  8359. done
  8360. fi
  8361. ac_save_ldflags="$LDFLAGS"
  8362. LDFLAGS="$FFTWLIB $LDFLAGS"
  8363. echo $ac_n "checking for fftw_execute in -lfftw3""... $ac_c" 1>&6
  8364. echo "configure:10477: checking for fftw_execute in -lfftw3" >&5
  8365. ac_lib_var=`echo fftw3'_'fftw_execute | sed 'y%./+-%__p_%'`
  8366. ac_save_LIBS="$LIBS"
  8367. LIBS="-lfftw3 $MATHLIB $LIBS"
  8368. cat > conftest.$ac_ext <<EOF
  8369. #line 10483 "configure"
  8370. #include "confdefs.h"
  8371. /* Override any gcc2 internal prototype to avoid an error. */
  8372. /* We use char because int might match the return type of a gcc2
  8373. builtin and then its argument prototype would still apply. */
  8374. char fftw_execute();
  8375. int main() {
  8376. fftw_execute()
  8377. ; return 0; }
  8378. EOF
  8379. if { (eval echo configure:10494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8380. rm -rf conftest*
  8381. eval "ac_cv_lib_$ac_lib_var=yes"
  8382. else
  8383. echo "configure: failed program was:" >&5
  8384. cat conftest.$ac_ext >&5
  8385. rm -rf conftest*
  8386. eval "ac_cv_lib_$ac_lib_var=no"
  8387. fi
  8388. rm -f conftest*
  8389. LIBS="$ac_save_LIBS"
  8390. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8391. echo "$ac_t""yes" 1>&6
  8392. FFTWLIB="$FFTWLIB -lfftw3 $MATHLIB"
  8393. else
  8394. echo "$ac_t""no" 1>&6
  8395. LDFLAGS=${ac_save_ldflags}
  8396. ac_save_ldflags="$LDFLAGS"
  8397. LDFLAGS="$FFTWLIB $LDFLAGS"
  8398. echo $ac_n "checking for fftwnd_one in -lfftw""... $ac_c" 1>&6
  8399. echo "configure:10519: checking for fftwnd_one in -lfftw" >&5
  8400. ac_lib_var=`echo fftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
  8401. ac_save_LIBS="$LIBS"
  8402. LIBS="-lfftw $MATHLIB $LIBS"
  8403. cat > conftest.$ac_ext <<EOF
  8404. #line 10525 "configure"
  8405. #include "confdefs.h"
  8406. /* Override any gcc2 internal prototype to avoid an error. */
  8407. /* We use char because int might match the return type of a gcc2
  8408. builtin and then its argument prototype would still apply. */
  8409. char fftwnd_one();
  8410. int main() {
  8411. fftwnd_one()
  8412. ; return 0; }
  8413. EOF
  8414. if { (eval echo configure:10536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8415. rm -rf conftest*
  8416. eval "ac_cv_lib_$ac_lib_var=yes"
  8417. else
  8418. echo "configure: failed program was:" >&5
  8419. cat conftest.$ac_ext >&5
  8420. rm -rf conftest*
  8421. eval "ac_cv_lib_$ac_lib_var=no"
  8422. fi
  8423. rm -f conftest*
  8424. LIBS="$ac_save_LIBS"
  8425. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8426. echo "$ac_t""yes" 1>&6
  8427. FFTWLIB="$FFTWLIB -lfftw $MATHLIB"
  8428. else
  8429. echo "$ac_t""no" 1>&6
  8430. LDFLAGS=${ac_save_ldflags}
  8431. ac_save_ldflags="$LDFLAGS"
  8432. LDFLAGS="$FFTWLIB $LDFLAGS"
  8433. echo $ac_n "checking for fftwnd_one in -ldfftw""... $ac_c" 1>&6
  8434. echo "configure:10561: checking for fftwnd_one in -ldfftw" >&5
  8435. ac_lib_var=`echo dfftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
  8436. ac_save_LIBS="$LIBS"
  8437. LIBS="-ldfftw $MATHLIB $LIBS"
  8438. cat > conftest.$ac_ext <<EOF
  8439. #line 10567 "configure"
  8440. #include "confdefs.h"
  8441. /* Override any gcc2 internal prototype to avoid an error. */
  8442. /* We use char because int might match the return type of a gcc2
  8443. builtin and then its argument prototype would still apply. */
  8444. char fftwnd_one();
  8445. int main() {
  8446. fftwnd_one()
  8447. ; return 0; }
  8448. EOF
  8449. if { (eval echo configure:10578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8450. rm -rf conftest*
  8451. eval "ac_cv_lib_$ac_lib_var=yes"
  8452. else
  8453. echo "configure: failed program was:" >&5
  8454. cat conftest.$ac_ext >&5
  8455. rm -rf conftest*
  8456. eval "ac_cv_lib_$ac_lib_var=no"
  8457. fi
  8458. rm -f conftest*
  8459. LIBS="$ac_save_LIBS"
  8460. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8461. echo "$ac_t""yes" 1>&6
  8462. FFTWLIB="$FFTWLIB -ldfftw $MATHLIB"
  8463. else
  8464. echo "$ac_t""no" 1>&6
  8465. LDFLAGS=${ac_save_ldflags}
  8466. { echo "configure: error: *** Unable to locate FFTW library." 1>&2; exit 1; }
  8467. fi
  8468. LDFLAGS=${ac_save_ldflags}
  8469. fi
  8470. LDFLAGS=${ac_save_ldflags}
  8471. fi
  8472. LDFLAGS=${ac_save_ldflags}
  8473. fi # $USE_FFTW
  8474. # Done checking FFTW
  8475. # Enable BLAS option
  8476. echo $ac_n "checking whether to use BLAS""... $ac_c" 1>&6
  8477. echo "configure:10635: checking whether to use BLAS" >&5
  8478. echo "$ac_t"""$with_blas"" 1>&6
  8479. case "$with_blas" in
  8480. "no") USE_BLAS= ;;
  8481. "yes") USE_BLAS="1" ;;
  8482. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8483. esac
  8484. BLASLIB=
  8485. BLASINC=
  8486. if test -n "$USE_BLAS"; then
  8487. # With BLAS includes directory
  8488. # BLAS doesn't have includes (FORTRAN library)
  8489. # With BLAS library directory
  8490. echo $ac_n "checking for location of BLAS includes""... $ac_c" 1>&6
  8491. echo "configure:10656: checking for location of BLAS includes" >&5
  8492. case "$with_blas_includes" in
  8493. y | ye | yes | n | no)
  8494. { echo "configure: error: *** You must supply a directory to --with-blas-includes." 1>&2; exit 1; }
  8495. ;;
  8496. esac
  8497. echo "$ac_t""$with_blas_includes" 1>&6
  8498. if test -n "$with_blas_includes" ; then
  8499. for dir in $with_blas_includes; do
  8500. if test -d "$dir"; then
  8501. BLASINC="$BLASINC -I$dir"
  8502. else
  8503. { echo "configure: error: *** BLAS includes directory $dir does not exist." 1>&2; exit 1; }
  8504. fi
  8505. done
  8506. fi
  8507. echo $ac_n "checking for location of BLAS library""... $ac_c" 1>&6
  8508. echo "configure:10676: checking for location of BLAS library" >&5
  8509. case "$with_blas_libs" in
  8510. y | ye | yes | n | no)
  8511. { echo "configure: error: *** You must supply a directory to --with-blas-libs." 1>&2; exit 1; }
  8512. ;;
  8513. esac
  8514. echo "$ac_t""$with_blas_libs" 1>&6
  8515. if test -n "$with_blas_libs"; then
  8516. for dir in $with_blas_libs; do
  8517. if test -d "$dir"; then
  8518. BLASLIB="$BLASLIB -L$dir"
  8519. else
  8520. { echo "configure: error: *** BLAS library directory $dir does not exist." 1>&2; exit 1; }
  8521. fi
  8522. done
  8523. fi
  8524. # See if cblas.h exists (CBLAS,ATLAS,others)
  8525. save_CPPFLAGS="$CPPFLAGS"
  8526. CPPFLAGS="$BLASINC $CPPFLAGS"
  8527. for ac_hdr in cblas.h
  8528. do
  8529. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8530. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8531. echo "configure:10702: checking for $ac_hdr" >&5
  8532. cat > conftest.$ac_ext <<EOF
  8533. #line 10705 "configure"
  8534. #include "confdefs.h"
  8535. #include <$ac_hdr>
  8536. EOF
  8537. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8538. { (eval echo configure:10710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8539. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8540. if test -z "$ac_err"; then
  8541. rm -rf conftest*
  8542. eval "ac_cv_header_$ac_safe=yes"
  8543. else
  8544. echo "$ac_err" >&5
  8545. echo "configure: failed program was:" >&5
  8546. cat conftest.$ac_ext >&5
  8547. rm -rf conftest*
  8548. eval "ac_cv_header_$ac_safe=no"
  8549. fi
  8550. rm -f conftest*
  8551. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8552. echo "$ac_t""yes" 1>&6
  8553. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8554. cat >> confdefs.h <<EOF
  8555. #define $ac_tr_hdr 1
  8556. EOF
  8557. else
  8558. echo "$ac_t""no" 1>&6
  8559. fi
  8560. done
  8561. CPPFLAGS="$save_CPPFLAGS"
  8562. ac_save_ldflags="$LDFLAGS"
  8563. LDFLAGS="$BLASLIB $LDFLAGS"
  8564. echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
  8565. echo "configure:10745: checking for dnrm2_ in -lblas" >&5
  8566. ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
  8567. ac_save_LIBS="$LIBS"
  8568. LIBS="-lblas $MATHLIB $LIBS"
  8569. cat > conftest.$ac_ext <<EOF
  8570. #line 10751 "configure"
  8571. #include "confdefs.h"
  8572. /* Override any gcc2 internal prototype to avoid an error. */
  8573. /* We use char because int might match the return type of a gcc2
  8574. builtin and then its argument prototype would still apply. */
  8575. char dnrm2_();
  8576. int main() {
  8577. dnrm2_()
  8578. ; return 0; }
  8579. EOF
  8580. if { (eval echo configure:10762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8581. rm -rf conftest*
  8582. eval "ac_cv_lib_$ac_lib_var=yes"
  8583. else
  8584. echo "configure: failed program was:" >&5
  8585. cat conftest.$ac_ext >&5
  8586. rm -rf conftest*
  8587. eval "ac_cv_lib_$ac_lib_var=no"
  8588. fi
  8589. rm -f conftest*
  8590. LIBS="$ac_save_LIBS"
  8591. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8592. echo "$ac_t""yes" 1>&6
  8593. BLASLIB="$BLASLIB -lblas "
  8594. else
  8595. echo "$ac_t""no" 1>&6
  8596. echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
  8597. echo "configure:10781: checking for dnrm2_ in -lblas" >&5
  8598. ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
  8599. ac_save_LIBS="$LIBS"
  8600. LIBS="-lblas $MATHLIB -lg2c $LIBS"
  8601. cat > conftest.$ac_ext <<EOF
  8602. #line 10787 "configure"
  8603. #include "confdefs.h"
  8604. /* Override any gcc2 internal prototype to avoid an error. */
  8605. /* We use char because int might match the return type of a gcc2
  8606. builtin and then its argument prototype would still apply. */
  8607. char dnrm2_();
  8608. int main() {
  8609. dnrm2_()
  8610. ; return 0; }
  8611. EOF
  8612. if { (eval echo configure:10798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8613. rm -rf conftest*
  8614. eval "ac_cv_lib_$ac_lib_var=yes"
  8615. else
  8616. echo "configure: failed program was:" >&5
  8617. cat conftest.$ac_ext >&5
  8618. rm -rf conftest*
  8619. eval "ac_cv_lib_$ac_lib_var=no"
  8620. fi
  8621. rm -f conftest*
  8622. LIBS="$ac_save_LIBS"
  8623. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8624. echo "$ac_t""yes" 1>&6
  8625. BLASLIB="$BLASLIB -lblas -lg2c"
  8626. else
  8627. echo "$ac_t""no" 1>&6
  8628. LDFLAGS=${ac_save_ldflags}
  8629. { echo "configure: error: *** Unable to locate BLAS library." 1>&2; exit 1; }
  8630. fi
  8631. fi
  8632. LDFLAGS=${ac_save_ldflags}
  8633. blas_ok=no
  8634. # Check for ATLAS
  8635. save_LDFLAGS="$LDFLAGS"
  8636. LDFLAGS="$BLASLIB $LDFLAGS"
  8637. echo $ac_n "checking for ATL_xerbla in -latlas""... $ac_c" 1>&6
  8638. echo "configure:10842: checking for ATL_xerbla in -latlas" >&5
  8639. ac_lib_var=`echo atlas'_'ATL_xerbla | sed 'y%./+-%__p_%'`
  8640. ac_save_LIBS="$LIBS"
  8641. LIBS="-latlas $LIBS"
  8642. cat > conftest.$ac_ext <<EOF
  8643. #line 10848 "configure"
  8644. #include "confdefs.h"
  8645. /* Override any gcc2 internal prototype to avoid an error. */
  8646. /* We use char because int might match the return type of a gcc2
  8647. builtin and then its argument prototype would still apply. */
  8648. char ATL_xerbla();
  8649. int main() {
  8650. ATL_xerbla()
  8651. ; return 0; }
  8652. EOF
  8653. if { (eval echo configure:10859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8654. rm -rf conftest*
  8655. eval "ac_cv_lib_$ac_lib_var=yes"
  8656. else
  8657. echo "configure: failed program was:" >&5
  8658. cat conftest.$ac_ext >&5
  8659. rm -rf conftest*
  8660. eval "ac_cv_lib_$ac_lib_var=no"
  8661. fi
  8662. rm -f conftest*
  8663. LIBS="$ac_save_LIBS"
  8664. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8665. echo "$ac_t""yes" 1>&6
  8666. echo $ac_n "checking for sgemm_ in -lf77blas""... $ac_c" 1>&6
  8667. echo "configure:10874: checking for sgemm_ in -lf77blas" >&5
  8668. ac_lib_var=`echo f77blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  8669. ac_save_LIBS="$LIBS"
  8670. LIBS="-lf77blas -latlas $LIBS"
  8671. cat > conftest.$ac_ext <<EOF
  8672. #line 10880 "configure"
  8673. #include "confdefs.h"
  8674. /* Override any gcc2 internal prototype to avoid an error. */
  8675. /* We use char because int might match the return type of a gcc2
  8676. builtin and then its argument prototype would still apply. */
  8677. char sgemm_();
  8678. int main() {
  8679. sgemm_()
  8680. ; return 0; }
  8681. EOF
  8682. if { (eval echo configure:10891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8683. rm -rf conftest*
  8684. eval "ac_cv_lib_$ac_lib_var=yes"
  8685. else
  8686. echo "configure: failed program was:" >&5
  8687. cat conftest.$ac_ext >&5
  8688. rm -rf conftest*
  8689. eval "ac_cv_lib_$ac_lib_var=no"
  8690. fi
  8691. rm -f conftest*
  8692. LIBS="$ac_save_LIBS"
  8693. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8694. echo "$ac_t""yes" 1>&6
  8695. echo $ac_n "checking for cblas_dgemm in -lcblas""... $ac_c" 1>&6
  8696. echo "configure:10906: checking for cblas_dgemm in -lcblas" >&5
  8697. ac_lib_var=`echo cblas'_'cblas_dgemm | sed 'y%./+-%__p_%'`
  8698. ac_save_LIBS="$LIBS"
  8699. LIBS="-lcblas -lf77blas -latlas $LIBS"
  8700. cat > conftest.$ac_ext <<EOF
  8701. #line 10912 "configure"
  8702. #include "confdefs.h"
  8703. /* Override any gcc2 internal prototype to avoid an error. */
  8704. /* We use char because int might match the return type of a gcc2
  8705. builtin and then its argument prototype would still apply. */
  8706. char cblas_dgemm();
  8707. int main() {
  8708. cblas_dgemm()
  8709. ; return 0; }
  8710. EOF
  8711. if { (eval echo configure:10923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8712. rm -rf conftest*
  8713. eval "ac_cv_lib_$ac_lib_var=yes"
  8714. else
  8715. echo "configure: failed program was:" >&5
  8716. cat conftest.$ac_ext >&5
  8717. rm -rf conftest*
  8718. eval "ac_cv_lib_$ac_lib_var=no"
  8719. fi
  8720. rm -f conftest*
  8721. LIBS="$ac_save_LIBS"
  8722. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8723. echo "$ac_t""yes" 1>&6
  8724. blas_ok=yes; BLASLIB="-lcblas -lf77blas -latlas"
  8725. else
  8726. echo "$ac_t""no" 1>&6
  8727. fi
  8728. else
  8729. echo "$ac_t""no" 1>&6
  8730. fi
  8731. else
  8732. echo "$ac_t""no" 1>&6
  8733. fi
  8734. LDFLAGS="$save_LDFLAGS"
  8735. # Do we have ATLAS?
  8736. if test $blas_ok = yes; then
  8737. cat >> confdefs.h <<\EOF
  8738. #define HAVE_LIBATLAS 1
  8739. EOF
  8740. fi
  8741. # BLAS in Apple vecLib framework? (Mac OS-X)
  8742. # not dependent on APP build
  8743. #if test -n "$MACOSX_APP"; then
  8744. if test $blas_ok = no; then
  8745. vlib_flags="-framework vecLib"
  8746. save_LIBS="$LIBS"
  8747. LIBS="$vlib_flags $LIBS"
  8748. echo $ac_n "checking for sgemm in $vlib_flags""... $ac_c" 1>&6
  8749. echo "configure:10969: checking for sgemm in $vlib_flags" >&5
  8750. cat > conftest.$ac_ext <<EOF
  8751. #line 10971 "configure"
  8752. #include "confdefs.h"
  8753. int main() {
  8754. sgemm
  8755. ; return 0; }
  8756. EOF
  8757. if { (eval echo configure:10978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8758. rm -rf conftest*
  8759. blas_ok=yes; BLASLIB="$vlib_flags"
  8760. else
  8761. echo "configure: failed program was:" >&5
  8762. cat conftest.$ac_ext >&5
  8763. rm -rf conftest*
  8764. BLASLIB=""
  8765. fi
  8766. rm -f conftest*
  8767. echo "$ac_t""$blas_ok" 1>&6
  8768. LIBS="$save_LIBS"
  8769. fi
  8770. #fi # $MACOSX_APP
  8771. # BLAS in PhiPACK libraries? (requires generic BLAS, too)
  8772. if test $blas_ok = no; then
  8773. echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
  8774. echo "configure:10996: checking for sgemm_ in -lblas" >&5
  8775. ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  8776. ac_save_LIBS="$LIBS"
  8777. LIBS="-lblas $LIBS"
  8778. cat > conftest.$ac_ext <<EOF
  8779. #line 11002 "configure"
  8780. #include "confdefs.h"
  8781. /* Override any gcc2 internal prototype to avoid an error. */
  8782. /* We use char because int might match the return type of a gcc2
  8783. builtin and then its argument prototype would still apply. */
  8784. char sgemm_();
  8785. int main() {
  8786. sgemm_()
  8787. ; return 0; }
  8788. EOF
  8789. if { (eval echo configure:11013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8790. rm -rf conftest*
  8791. eval "ac_cv_lib_$ac_lib_var=yes"
  8792. else
  8793. echo "configure: failed program was:" >&5
  8794. cat conftest.$ac_ext >&5
  8795. rm -rf conftest*
  8796. eval "ac_cv_lib_$ac_lib_var=no"
  8797. fi
  8798. rm -f conftest*
  8799. LIBS="$ac_save_LIBS"
  8800. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8801. echo "$ac_t""yes" 1>&6
  8802. echo $ac_n "checking for dgemm_ in -ldgemm""... $ac_c" 1>&6
  8803. echo "configure:11028: checking for dgemm_ in -ldgemm" >&5
  8804. ac_lib_var=`echo dgemm'_'dgemm_ | sed 'y%./+-%__p_%'`
  8805. ac_save_LIBS="$LIBS"
  8806. LIBS="-ldgemm -lblas $LIBS"
  8807. cat > conftest.$ac_ext <<EOF
  8808. #line 11034 "configure"
  8809. #include "confdefs.h"
  8810. /* Override any gcc2 internal prototype to avoid an error. */
  8811. /* We use char because int might match the return type of a gcc2
  8812. builtin and then its argument prototype would still apply. */
  8813. char dgemm_();
  8814. int main() {
  8815. dgemm_()
  8816. ; return 0; }
  8817. EOF
  8818. if { (eval echo configure:11045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8819. rm -rf conftest*
  8820. eval "ac_cv_lib_$ac_lib_var=yes"
  8821. else
  8822. echo "configure: failed program was:" >&5
  8823. cat conftest.$ac_ext >&5
  8824. rm -rf conftest*
  8825. eval "ac_cv_lib_$ac_lib_var=no"
  8826. fi
  8827. rm -f conftest*
  8828. LIBS="$ac_save_LIBS"
  8829. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8830. echo "$ac_t""yes" 1>&6
  8831. echo $ac_n "checking for sgemm_ in -lsgemm""... $ac_c" 1>&6
  8832. echo "configure:11060: checking for sgemm_ in -lsgemm" >&5
  8833. ac_lib_var=`echo sgemm'_'sgemm_ | sed 'y%./+-%__p_%'`
  8834. ac_save_LIBS="$LIBS"
  8835. LIBS="-lsgemm -lblas $LIBS"
  8836. cat > conftest.$ac_ext <<EOF
  8837. #line 11066 "configure"
  8838. #include "confdefs.h"
  8839. /* Override any gcc2 internal prototype to avoid an error. */
  8840. /* We use char because int might match the return type of a gcc2
  8841. builtin and then its argument prototype would still apply. */
  8842. char sgemm_();
  8843. int main() {
  8844. sgemm_()
  8845. ; return 0; }
  8846. EOF
  8847. if { (eval echo configure:11077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8848. rm -rf conftest*
  8849. eval "ac_cv_lib_$ac_lib_var=yes"
  8850. else
  8851. echo "configure: failed program was:" >&5
  8852. cat conftest.$ac_ext >&5
  8853. rm -rf conftest*
  8854. eval "ac_cv_lib_$ac_lib_var=no"
  8855. fi
  8856. rm -f conftest*
  8857. LIBS="$ac_save_LIBS"
  8858. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8859. echo "$ac_t""yes" 1>&6
  8860. blas_ok=yes; BLASLIB="-lsgemm -ldgemm -lblas"
  8861. else
  8862. echo "$ac_t""no" 1>&6
  8863. fi
  8864. else
  8865. echo "$ac_t""no" 1>&6
  8866. fi
  8867. else
  8868. echo "$ac_t""no" 1>&6
  8869. fi
  8870. fi
  8871. # BLAS in Sun Performance library?
  8872. if test $blas_ok = no; then
  8873. if test "x$GCC" != xyes; then # only works with Sun CC
  8874. echo $ac_n "checking for acosp in -lsunmath""... $ac_c" 1>&6
  8875. echo "configure:11111: checking for acosp in -lsunmath" >&5
  8876. ac_lib_var=`echo sunmath'_'acosp | sed 'y%./+-%__p_%'`
  8877. ac_save_LIBS="$LIBS"
  8878. LIBS="-lsunmath $LIBS"
  8879. cat > conftest.$ac_ext <<EOF
  8880. #line 11117 "configure"
  8881. #include "confdefs.h"
  8882. /* Override any gcc2 internal prototype to avoid an error. */
  8883. /* We use char because int might match the return type of a gcc2
  8884. builtin and then its argument prototype would still apply. */
  8885. char acosp();
  8886. int main() {
  8887. acosp()
  8888. ; return 0; }
  8889. EOF
  8890. if { (eval echo configure:11128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8891. rm -rf conftest*
  8892. eval "ac_cv_lib_$ac_lib_var=yes"
  8893. else
  8894. echo "configure: failed program was:" >&5
  8895. cat conftest.$ac_ext >&5
  8896. rm -rf conftest*
  8897. eval "ac_cv_lib_$ac_lib_var=no"
  8898. fi
  8899. rm -f conftest*
  8900. LIBS="$ac_save_LIBS"
  8901. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8902. echo "$ac_t""yes" 1>&6
  8903. echo $ac_n "checking for sgemm_ in -lsunperf""... $ac_c" 1>&6
  8904. echo "configure:11143: checking for sgemm_ in -lsunperf" >&5
  8905. ac_lib_var=`echo sunperf'_'sgemm_ | sed 'y%./+-%__p_%'`
  8906. ac_save_LIBS="$LIBS"
  8907. LIBS="-lsunperf -lsunmath $LIBS"
  8908. cat > conftest.$ac_ext <<EOF
  8909. #line 11149 "configure"
  8910. #include "confdefs.h"
  8911. /* Override any gcc2 internal prototype to avoid an error. */
  8912. /* We use char because int might match the return type of a gcc2
  8913. builtin and then its argument prototype would still apply. */
  8914. char sgemm_();
  8915. int main() {
  8916. sgemm_()
  8917. ; return 0; }
  8918. EOF
  8919. if { (eval echo configure:11160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8920. rm -rf conftest*
  8921. eval "ac_cv_lib_$ac_lib_var=yes"
  8922. else
  8923. echo "configure: failed program was:" >&5
  8924. cat conftest.$ac_ext >&5
  8925. rm -rf conftest*
  8926. eval "ac_cv_lib_$ac_lib_var=no"
  8927. fi
  8928. rm -f conftest*
  8929. LIBS="$ac_save_LIBS"
  8930. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8931. echo "$ac_t""yes" 1>&6
  8932. blas_ok=yes; BLASLIB="-xlic_lib=sunperf -lsunmath"
  8933. else
  8934. echo "$ac_t""no" 1>&6
  8935. fi
  8936. else
  8937. echo "$ac_t""no" 1>&6
  8938. fi
  8939. fi
  8940. fi
  8941. # Generic BLAS library
  8942. if test $blas_ok = no; then
  8943. echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
  8944. echo "configure:11190: checking for sgemm_ in -lblas" >&5
  8945. ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  8946. ac_save_LIBS="$LIBS"
  8947. LIBS="-lblas $LIBS"
  8948. cat > conftest.$ac_ext <<EOF
  8949. #line 11196 "configure"
  8950. #include "confdefs.h"
  8951. /* Override any gcc2 internal prototype to avoid an error. */
  8952. /* We use char because int might match the return type of a gcc2
  8953. builtin and then its argument prototype would still apply. */
  8954. char sgemm_();
  8955. int main() {
  8956. sgemm_()
  8957. ; return 0; }
  8958. EOF
  8959. if { (eval echo configure:11207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8960. rm -rf conftest*
  8961. eval "ac_cv_lib_$ac_lib_var=yes"
  8962. else
  8963. echo "configure: failed program was:" >&5
  8964. cat conftest.$ac_ext >&5
  8965. rm -rf conftest*
  8966. eval "ac_cv_lib_$ac_lib_var=no"
  8967. fi
  8968. rm -f conftest*
  8969. LIBS="$ac_save_LIBS"
  8970. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8971. echo "$ac_t""yes" 1>&6
  8972. blas_ok=yes; BLASLIB="-lblas"
  8973. else
  8974. echo "$ac_t""no" 1>&6
  8975. fi
  8976. fi
  8977. if test $blas_ok = yes; then
  8978. cat >> confdefs.h <<\EOF
  8979. #define HAVE_LIBBLAS 1
  8980. EOF
  8981. fi
  8982. fi # $USE_BLAS
  8983. # Done checking BLAS
  8984. # Enable LAPACK option
  8985. echo $ac_n "checking whether to use LAPACK""... $ac_c" 1>&6
  8986. echo "configure:11246: checking whether to use LAPACK" >&5
  8987. echo "$ac_t"""$with_lapack"" 1>&6
  8988. case "$with_lapack" in
  8989. "no") USE_LAPACK= ;;
  8990. "yes") USE_LAPACK="1" ;;
  8991. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8992. esac
  8993. LAPACKLIB=
  8994. LAPACKINC=
  8995. # LAPACK is useless without BLAS
  8996. if test -n "$USE_BLAS"; then
  8997. if test -n "$USE_LAPACK"; then
  8998. # With LAPACK includes directory
  8999. # LAPACK doesn't have includes (FORTRAN library)
  9000. # With LAPACK library directory
  9001. lapack_ok=no
  9002. echo $ac_n "checking for location of LAPACK includes""... $ac_c" 1>&6
  9003. echo "configure:11271: checking for location of LAPACK includes" >&5
  9004. case "$with_lapack_includes" in
  9005. y | ye | yes | n | no)
  9006. { echo "configure: error: *** You must supply a directory to --with-lapack-includes." 1>&2; exit 1; }
  9007. ;;
  9008. esac
  9009. echo "$ac_t""$with_lapack_includes" 1>&6
  9010. if test -n "$with_lapack_includes" ; then
  9011. for dir in $with_lapack_includes; do
  9012. if test -d "$dir"; then
  9013. LAPACKINC="$LAPACKINC -I$dir"
  9014. else
  9015. { echo "configure: error: *** LAPACK includes directory $dir does not exist." 1>&2; exit 1; }
  9016. fi
  9017. done
  9018. fi
  9019. echo $ac_n "checking for location of LAPACK library""... $ac_c" 1>&6
  9020. echo "configure:11291: checking for location of LAPACK library" >&5
  9021. case "$with_lapack_libs" in
  9022. y | ye | yes | n | no)
  9023. { echo "configure: error: *** You must supply a directory to --with-lapack-libs." 1>&2; exit 1; }
  9024. ;;
  9025. esac
  9026. echo "$ac_t""$with_lapack_libs" 1>&6
  9027. if test -n "$with_lapack_libs"; then
  9028. for dir in $with_lapack_libs; do
  9029. if test -d "$dir"; then
  9030. LAPACKLIB="$LAPACKLIB -L$dir"
  9031. else
  9032. { echo "configure: error: *** LAPACK library directory $dir does not exist." 1>&2; exit 1; }
  9033. fi
  9034. done
  9035. fi
  9036. # See if clapack.h exists (ATLAS)
  9037. save_CPPFLAGS="$CPPFLAGS"
  9038. CPPFLAGS="$LAPACKINC $CPPFLAGS"
  9039. for ac_hdr in clapack.h
  9040. do
  9041. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9042. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9043. echo "configure:11317: checking for $ac_hdr" >&5
  9044. cat > conftest.$ac_ext <<EOF
  9045. #line 11320 "configure"
  9046. #include "confdefs.h"
  9047. #include <$ac_hdr>
  9048. EOF
  9049. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9050. { (eval echo configure:11325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9051. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9052. if test -z "$ac_err"; then
  9053. rm -rf conftest*
  9054. eval "ac_cv_header_$ac_safe=yes"
  9055. else
  9056. echo "$ac_err" >&5
  9057. echo "configure: failed program was:" >&5
  9058. cat conftest.$ac_ext >&5
  9059. rm -rf conftest*
  9060. eval "ac_cv_header_$ac_safe=no"
  9061. fi
  9062. rm -f conftest*
  9063. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9064. echo "$ac_t""yes" 1>&6
  9065. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9066. cat >> confdefs.h <<EOF
  9067. #define $ac_tr_hdr 1
  9068. EOF
  9069. else
  9070. echo "$ac_t""no" 1>&6
  9071. fi
  9072. done
  9073. CPPFLAGS="$save_CPPFLAGS"
  9074. # LAPACK linked to by default?
  9075. if test lapack_ok=no; then
  9076. save_LIBS="$LIBS"; LIBS="$LIBS $BLASLIB $MATHLIB $FLIBS"
  9077. save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
  9078. echo $ac_n "checking for dsegv_""... $ac_c" 1>&6
  9079. echo "configure:11357: checking for dsegv_" >&5
  9080. cat > conftest.$ac_ext <<EOF
  9081. #line 11360 "configure"
  9082. #include "confdefs.h"
  9083. /* System header to define __stub macros and hopefully few prototypes,
  9084. which can conflict with char dsegv_(); below. */
  9085. #include <assert.h>
  9086. /* Override any gcc2 internal prototype to avoid an error. */
  9087. /* We use char because int might match the return type of a gcc2
  9088. builtin and then its argument prototype would still apply. */
  9089. char dsegv_();
  9090. int main() {
  9091. /* The GNU C library defines this for functions which it implements
  9092. to always fail with ENOSYS. Some functions are actually named
  9093. something starting with __ and the normal name is an alias. */
  9094. #if defined (__stub_dsegv_) || defined (__stub___dsegv_)
  9095. choke me
  9096. #else
  9097. dsegv_();
  9098. #endif
  9099. ; return 0; }
  9100. EOF
  9101. if { (eval echo configure:11383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9102. rm -rf conftest*
  9103. eval "ac_cv_func_dsegv_=yes"
  9104. else
  9105. echo "configure: failed program was:" >&5
  9106. cat conftest.$ac_ext >&5
  9107. rm -rf conftest*
  9108. eval "ac_cv_func_dsegv_=no"
  9109. fi
  9110. rm -f conftest*
  9111. if eval "test \"`echo '$ac_cv_func_'dsegv_`\" = yes"; then
  9112. echo "$ac_t""yes" 1>&6
  9113. lapack_ok=yes
  9114. else
  9115. echo "$ac_t""no" 1>&6
  9116. fi
  9117. LIBS="$save_LIBS"
  9118. LDFLAGS="$save_LDFLAGS"
  9119. fi
  9120. # Generic LAPACK library?
  9121. if test $lapack_ok = no; then
  9122. save_libs="$LIBS"; LIBS="$BLASLIB $MATHLIB $LIBS"
  9123. save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
  9124. echo $ac_n "checking for desgv_ in -llapack""... $ac_c" 1>&6
  9125. echo "configure:11410: checking for desgv_ in -llapack" >&5
  9126. ac_lib_var=`echo lapack'_'desgv_ | sed 'y%./+-%__p_%'`
  9127. ac_save_LIBS="$LIBS"
  9128. LIBS="-llapack $FLIBS $LIBS"
  9129. cat > conftest.$ac_ext <<EOF
  9130. #line 11416 "configure"
  9131. #include "confdefs.h"
  9132. /* Override any gcc2 internal prototype to avoid an error. */
  9133. /* We use char because int might match the return type of a gcc2
  9134. builtin and then its argument prototype would still apply. */
  9135. char desgv_();
  9136. int main() {
  9137. desgv_()
  9138. ; return 0; }
  9139. EOF
  9140. if { (eval echo configure:11427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9141. rm -rf conftest*
  9142. eval "ac_cv_lib_$ac_lib_var=yes"
  9143. else
  9144. echo "configure: failed program was:" >&5
  9145. cat conftest.$ac_ext >&5
  9146. rm -rf conftest*
  9147. eval "ac_cv_lib_$ac_lib_var=no"
  9148. fi
  9149. rm -f conftest*
  9150. LIBS="$ac_save_LIBS"
  9151. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9152. echo "$ac_t""yes" 1>&6
  9153. lapack_ok=yes; LAPACKLIB="-llapack"
  9154. else
  9155. echo "$ac_t""no" 1>&6
  9156. fi
  9157. LIBS="$save_LIBS"
  9158. LDFLAGS="$save_LDFLAGS"
  9159. fi
  9160. if test $lapack_ok = no; then
  9161. ac_save_ldflags="$LDFLAGS"
  9162. LDFLAGS="$LAPACKLIB $LDFLAGS"
  9163. echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
  9164. echo "configure:11459: checking for dgesv_ in -llapack" >&5
  9165. ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
  9166. ac_save_LIBS="$LIBS"
  9167. LIBS="-llapack $BLASLIB $MATHLIB $LIBS"
  9168. cat > conftest.$ac_ext <<EOF
  9169. #line 11465 "configure"
  9170. #include "confdefs.h"
  9171. /* Override any gcc2 internal prototype to avoid an error. */
  9172. /* We use char because int might match the return type of a gcc2
  9173. builtin and then its argument prototype would still apply. */
  9174. char dgesv_();
  9175. int main() {
  9176. dgesv_()
  9177. ; return 0; }
  9178. EOF
  9179. if { (eval echo configure:11476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9180. rm -rf conftest*
  9181. eval "ac_cv_lib_$ac_lib_var=yes"
  9182. else
  9183. echo "configure: failed program was:" >&5
  9184. cat conftest.$ac_ext >&5
  9185. rm -rf conftest*
  9186. eval "ac_cv_lib_$ac_lib_var=no"
  9187. fi
  9188. rm -f conftest*
  9189. LIBS="$ac_save_LIBS"
  9190. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9191. echo "$ac_t""yes" 1>&6
  9192. LAPACKLIB="$LAPACKLIB -llapack "
  9193. else
  9194. echo "$ac_t""no" 1>&6
  9195. echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
  9196. echo "configure:11495: checking for dgesv_ in -llapack" >&5
  9197. ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
  9198. ac_save_LIBS="$LIBS"
  9199. LIBS="-llapack $BLASLIB $MATHLIB -lg2c $LIBS"
  9200. cat > conftest.$ac_ext <<EOF
  9201. #line 11501 "configure"
  9202. #include "confdefs.h"
  9203. /* Override any gcc2 internal prototype to avoid an error. */
  9204. /* We use char because int might match the return type of a gcc2
  9205. builtin and then its argument prototype would still apply. */
  9206. char dgesv_();
  9207. int main() {
  9208. dgesv_()
  9209. ; return 0; }
  9210. EOF
  9211. if { (eval echo configure:11512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9212. rm -rf conftest*
  9213. eval "ac_cv_lib_$ac_lib_var=yes"
  9214. else
  9215. echo "configure: failed program was:" >&5
  9216. cat conftest.$ac_ext >&5
  9217. rm -rf conftest*
  9218. eval "ac_cv_lib_$ac_lib_var=no"
  9219. fi
  9220. rm -f conftest*
  9221. LIBS="$ac_save_LIBS"
  9222. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9223. echo "$ac_t""yes" 1>&6
  9224. LAPACKLIB="$LAPACKLIB -llapack -lg2c"
  9225. else
  9226. echo "$ac_t""no" 1>&6
  9227. LDFLAGS=${ac_save_ldflags}
  9228. { echo "configure: error: *** Unable to locate LAPACK library." 1>&2; exit 1; }
  9229. fi
  9230. fi
  9231. LDFLAGS=${ac_save_ldflags}
  9232. fi
  9233. cat >> confdefs.h <<\EOF
  9234. #define HAVE_LIBLAPACK 1
  9235. EOF
  9236. fi # $USE_LAPACK
  9237. fi # $USE_BLAS
  9238. # Done checking LAPACK
  9239. # Enable Cairo display driver option
  9240. echo $ac_n "checking whether to use Cairo""... $ac_c" 1>&6
  9241. echo "configure:11568: checking whether to use Cairo" >&5
  9242. echo "$ac_t"""$with_cairo"" 1>&6
  9243. case "$with_cairo" in
  9244. "no") USE_CAIRO= ;;
  9245. "yes") USE_CAIRO="1" ;;
  9246. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9247. esac
  9248. CAIROINC=
  9249. CAIROLIB=
  9250. if test -n "$USE_CAIRO"; then
  9251. cairo="cairo"
  9252. pkgs="cairo-ft cairo-fc cairo-pdf cairo-ps cairo-svg fontconfig"
  9253. if test -n "$USE_X11"; then
  9254. pkgs="$pkgs cairo-xlib cairo-xlib-xrender"
  9255. fi
  9256. for pkg in $pkgs ; do
  9257. if pkg-config --exists $pkg ; then
  9258. cairo="$cairo $pkg"
  9259. fi
  9260. done
  9261. # With Cairo includes directory
  9262. #FIXME: somehow quote dirs with spaces in $cairo ?
  9263. CAIROINC=`pkg-config --cflags $cairo`
  9264. echo $ac_n "checking for location of cairo includes""... $ac_c" 1>&6
  9265. echo "configure:11600: checking for location of cairo includes" >&5
  9266. case "$with_cairo_includes" in
  9267. y | ye | yes | n | no)
  9268. { echo "configure: error: *** You must supply a directory to --with-cairo-includes." 1>&2; exit 1; }
  9269. ;;
  9270. esac
  9271. echo "$ac_t""$with_cairo_includes" 1>&6
  9272. if test -n "$with_cairo_includes" ; then
  9273. for dir in $with_cairo_includes; do
  9274. if test -d "$dir"; then
  9275. CAIROINC="$CAIROINC -I$dir"
  9276. else
  9277. { echo "configure: error: *** cairo includes directory $dir does not exist." 1>&2; exit 1; }
  9278. fi
  9279. done
  9280. fi
  9281. ac_save_cppflags="$CPPFLAGS"
  9282. CPPFLAGS="$CAIROINC $CPPFLAGS"
  9283. for ac_hdr in cairo.h
  9284. do
  9285. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9286. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9287. echo "configure:11626: checking for $ac_hdr" >&5
  9288. cat > conftest.$ac_ext <<EOF
  9289. #line 11629 "configure"
  9290. #include "confdefs.h"
  9291. #include <$ac_hdr>
  9292. EOF
  9293. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9294. { (eval echo configure:11634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9295. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9296. if test -z "$ac_err"; then
  9297. rm -rf conftest*
  9298. eval "ac_cv_header_$ac_safe=yes"
  9299. else
  9300. echo "$ac_err" >&5
  9301. echo "configure: failed program was:" >&5
  9302. cat conftest.$ac_ext >&5
  9303. rm -rf conftest*
  9304. eval "ac_cv_header_$ac_safe=no"
  9305. fi
  9306. rm -f conftest*
  9307. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9308. echo "$ac_t""yes" 1>&6
  9309. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9310. cat >> confdefs.h <<EOF
  9311. #define $ac_tr_hdr 1
  9312. EOF
  9313. else
  9314. echo "$ac_t""no" 1>&6
  9315. { echo "configure: error: *** Unable to locate Cairo includes." 1>&2; exit 1; }
  9316. fi
  9317. done
  9318. CPPFLAGS=$ac_save_cppflags
  9319. # With Cairo library directory
  9320. CAIROLIB=`pkg-config --libs $cairo`
  9321. echo $ac_n "checking for location of cairo library""... $ac_c" 1>&6
  9322. echo "configure:11670: checking for location of cairo library" >&5
  9323. case "$with_cairo_libs" in
  9324. y | ye | yes | n | no)
  9325. { echo "configure: error: *** You must supply a directory to --with-cairo-libs." 1>&2; exit 1; }
  9326. ;;
  9327. esac
  9328. echo "$ac_t""$with_cairo_libs" 1>&6
  9329. if test -n "$with_cairo_libs"; then
  9330. for dir in $with_cairo_libs; do
  9331. if test -d "$dir"; then
  9332. CAIROLIB="$CAIROLIB -L$dir"
  9333. else
  9334. { echo "configure: error: *** cairo library directory $dir does not exist." 1>&2; exit 1; }
  9335. fi
  9336. done
  9337. fi
  9338. echo $ac_n "checking for cairo linking flags""... $ac_c" 1>&6
  9339. echo "configure:11690: checking for cairo linking flags" >&5
  9340. case "$with_cairo_ldflags" in
  9341. y | ye | yes | n | no)
  9342. { echo "configure: error: *** You must supply a directory to --with-cairo-ldflags." 1>&2; exit 1; }
  9343. ;;
  9344. esac
  9345. echo "$ac_t""$with_cairo_ldflags" 1>&6
  9346. CAIROLIB="$CAIROLIB $with_cairo_ldflags"
  9347. ac_save_libs="$LIBS"
  9348. ac_save_ldflags="$LDFLAGS"
  9349. LIBS=" $CAIROLIB $LIBS"
  9350. LDFLAGS=" $LDFLAGS"
  9351. echo $ac_n "checking for cairo_create""... $ac_c" 1>&6
  9352. echo "configure:11706: checking for cairo_create" >&5
  9353. cat > conftest.$ac_ext <<EOF
  9354. #line 11709 "configure"
  9355. #include "confdefs.h"
  9356. /* System header to define __stub macros and hopefully few prototypes,
  9357. which can conflict with char cairo_create(); below. */
  9358. #include <assert.h>
  9359. /* Override any gcc2 internal prototype to avoid an error. */
  9360. /* We use char because int might match the return type of a gcc2
  9361. builtin and then its argument prototype would still apply. */
  9362. char cairo_create();
  9363. int main() {
  9364. /* The GNU C library defines this for functions which it implements
  9365. to always fail with ENOSYS. Some functions are actually named
  9366. something starting with __ and the normal name is an alias. */
  9367. #if defined (__stub_cairo_create) || defined (__stub___cairo_create)
  9368. choke me
  9369. #else
  9370. cairo_create();
  9371. #endif
  9372. ; return 0; }
  9373. EOF
  9374. if { (eval echo configure:11732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9375. rm -rf conftest*
  9376. eval "ac_cv_func_cairo_create=yes"
  9377. else
  9378. echo "configure: failed program was:" >&5
  9379. cat conftest.$ac_ext >&5
  9380. rm -rf conftest*
  9381. eval "ac_cv_func_cairo_create=no"
  9382. fi
  9383. rm -f conftest*
  9384. if eval "test \"`echo '$ac_cv_func_'cairo_create`\" = yes"; then
  9385. echo "$ac_t""yes" 1>&6
  9386. :
  9387. else
  9388. echo "$ac_t""no" 1>&6
  9389. { echo "configure: error: *** Unable to locate cairo_create." 1>&2; exit 1; }
  9390. fi
  9391. LIBS=${ac_save_libs}
  9392. LDFLAGS=${ac_save_ldflags}
  9393. ac_save_libs="$LIBS"
  9394. ac_save_ldflags="$LDFLAGS"
  9395. LIBS=" $CAIROLIB $LIBS"
  9396. LDFLAGS=" $LDFLAGS"
  9397. echo $ac_n "checking for cairo_xlib_surface_create_with_xrender_format""... $ac_c" 1>&6
  9398. echo "configure:11766: checking for cairo_xlib_surface_create_with_xrender_format" >&5
  9399. cat > conftest.$ac_ext <<EOF
  9400. #line 11769 "configure"
  9401. #include "confdefs.h"
  9402. /* System header to define __stub macros and hopefully few prototypes,
  9403. which can conflict with char cairo_xlib_surface_create_with_xrender_format(); below. */
  9404. #include <assert.h>
  9405. /* Override any gcc2 internal prototype to avoid an error. */
  9406. /* We use char because int might match the return type of a gcc2
  9407. builtin and then its argument prototype would still apply. */
  9408. char cairo_xlib_surface_create_with_xrender_format();
  9409. int main() {
  9410. /* The GNU C library defines this for functions which it implements
  9411. to always fail with ENOSYS. Some functions are actually named
  9412. something starting with __ and the normal name is an alias. */
  9413. #if defined (__stub_cairo_xlib_surface_create_with_xrender_format) || defined (__stub___cairo_xlib_surface_create_with_xrender_format)
  9414. choke me
  9415. #else
  9416. cairo_xlib_surface_create_with_xrender_format();
  9417. #endif
  9418. ; return 0; }
  9419. EOF
  9420. if { (eval echo configure:11792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9421. rm -rf conftest*
  9422. eval "ac_cv_func_cairo_xlib_surface_create_with_xrender_format=yes"
  9423. else
  9424. echo "configure: failed program was:" >&5
  9425. cat conftest.$ac_ext >&5
  9426. rm -rf conftest*
  9427. eval "ac_cv_func_cairo_xlib_surface_create_with_xrender_format=no"
  9428. fi
  9429. rm -f conftest*
  9430. if eval "test \"`echo '$ac_cv_func_'cairo_xlib_surface_create_with_xrender_format`\" = yes"; then
  9431. echo "$ac_t""yes" 1>&6
  9432. CAIRO_HAS_XRENDER=1
  9433. else
  9434. echo "$ac_t""no" 1>&6
  9435. CAIRO_HAS_XRENDER=
  9436. fi
  9437. LIBS=${ac_save_libs}
  9438. LDFLAGS=${ac_save_ldflags}
  9439. ac_save_libs="$LIBS"
  9440. ac_save_ldflags="$LDFLAGS"
  9441. LIBS=" $CAIROLIB $LIBS"
  9442. LDFLAGS=" $LDFLAGS"
  9443. echo $ac_n "checking for cairo_xlib_surface_get_xrender_format""... $ac_c" 1>&6
  9444. echo "configure:11825: checking for cairo_xlib_surface_get_xrender_format" >&5
  9445. cat > conftest.$ac_ext <<EOF
  9446. #line 11828 "configure"
  9447. #include "confdefs.h"
  9448. /* System header to define __stub macros and hopefully few prototypes,
  9449. which can conflict with char cairo_xlib_surface_get_xrender_format(); below. */
  9450. #include <assert.h>
  9451. /* Override any gcc2 internal prototype to avoid an error. */
  9452. /* We use char because int might match the return type of a gcc2
  9453. builtin and then its argument prototype would still apply. */
  9454. char cairo_xlib_surface_get_xrender_format();
  9455. int main() {
  9456. /* The GNU C library defines this for functions which it implements
  9457. to always fail with ENOSYS. Some functions are actually named
  9458. something starting with __ and the normal name is an alias. */
  9459. #if defined (__stub_cairo_xlib_surface_get_xrender_format) || defined (__stub___cairo_xlib_surface_get_xrender_format)
  9460. choke me
  9461. #else
  9462. cairo_xlib_surface_get_xrender_format();
  9463. #endif
  9464. ; return 0; }
  9465. EOF
  9466. if { (eval echo configure:11851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9467. rm -rf conftest*
  9468. eval "ac_cv_func_cairo_xlib_surface_get_xrender_format=yes"
  9469. else
  9470. echo "configure: failed program was:" >&5
  9471. cat conftest.$ac_ext >&5
  9472. rm -rf conftest*
  9473. eval "ac_cv_func_cairo_xlib_surface_get_xrender_format=no"
  9474. fi
  9475. rm -f conftest*
  9476. if eval "test \"`echo '$ac_cv_func_'cairo_xlib_surface_get_xrender_format`\" = yes"; then
  9477. echo "$ac_t""yes" 1>&6
  9478. CAIRO_HAS_XRENDER_SURFACE=1
  9479. else
  9480. echo "$ac_t""no" 1>&6
  9481. CAIRO_HAS_XRENDER_SURFACE=
  9482. fi
  9483. LIBS=${ac_save_libs}
  9484. LDFLAGS=${ac_save_ldflags}
  9485. CAIROLIB="$CAIROLIB $CAIROLDFLAGS"
  9486. fi # $USE_CAIRO
  9487. # Done checking Cairo
  9488. # Enable FreeType option
  9489. echo $ac_n "checking whether to use FreeType""... $ac_c" 1>&6
  9490. echo "configure:11893: checking whether to use FreeType" >&5
  9491. echo "$ac_t"""$with_freetype"" 1>&6
  9492. case "$with_freetype" in
  9493. "no") USE_FREETYPE= ;;
  9494. "yes") USE_FREETYPE="1" ;;
  9495. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9496. esac
  9497. FTINC=
  9498. FTLIB=
  9499. if test -n "$USE_FREETYPE"; then
  9500. # With FreeType includes directory
  9501. echo $ac_n "checking for location of FreeType includes""... $ac_c" 1>&6
  9502. echo "configure:11912: checking for location of FreeType includes" >&5
  9503. case "$with_freetype_includes" in
  9504. y | ye | yes | n | no)
  9505. { echo "configure: error: *** You must supply a directory to --with-freetype-includes." 1>&2; exit 1; }
  9506. ;;
  9507. esac
  9508. echo "$ac_t""$with_freetype_includes" 1>&6
  9509. if test -n "$with_freetype_includes" ; then
  9510. for dir in $with_freetype_includes; do
  9511. if test -d "$dir"; then
  9512. FTINC="$FTINC -I$dir"
  9513. else
  9514. { echo "configure: error: *** FreeType includes directory $dir does not exist." 1>&2; exit 1; }
  9515. fi
  9516. done
  9517. fi
  9518. ac_save_cppflags="$CPPFLAGS"
  9519. CPPFLAGS="$FTINC $CPPFLAGS"
  9520. for ac_hdr in ft2build.h
  9521. do
  9522. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9523. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9524. echo "configure:11938: checking for $ac_hdr" >&5
  9525. cat > conftest.$ac_ext <<EOF
  9526. #line 11941 "configure"
  9527. #include "confdefs.h"
  9528. #include <$ac_hdr>
  9529. EOF
  9530. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9531. { (eval echo configure:11946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9532. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9533. if test -z "$ac_err"; then
  9534. rm -rf conftest*
  9535. eval "ac_cv_header_$ac_safe=yes"
  9536. else
  9537. echo "$ac_err" >&5
  9538. echo "configure: failed program was:" >&5
  9539. cat conftest.$ac_ext >&5
  9540. rm -rf conftest*
  9541. eval "ac_cv_header_$ac_safe=no"
  9542. fi
  9543. rm -f conftest*
  9544. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9545. echo "$ac_t""yes" 1>&6
  9546. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9547. cat >> confdefs.h <<EOF
  9548. #define $ac_tr_hdr 1
  9549. EOF
  9550. else
  9551. echo "$ac_t""no" 1>&6
  9552. { echo "configure: error: *** Unable to locate FreeType includes." 1>&2; exit 1; }
  9553. fi
  9554. done
  9555. CPPFLAGS=$ac_save_cppflags
  9556. # With FreeType library directory
  9557. echo $ac_n "checking for location of FreeType library""... $ac_c" 1>&6
  9558. echo "configure:11980: checking for location of FreeType library" >&5
  9559. case "$with_freetype_libs" in
  9560. y | ye | yes | n | no)
  9561. { echo "configure: error: *** You must supply a directory to --with-freetype-libs." 1>&2; exit 1; }
  9562. ;;
  9563. esac
  9564. echo "$ac_t""$with_freetype_libs" 1>&6
  9565. if test -n "$with_freetype_libs"; then
  9566. for dir in $with_freetype_libs; do
  9567. if test -d "$dir"; then
  9568. FTLIB="$FTLIB -L$dir"
  9569. else
  9570. { echo "configure: error: *** FreeType library directory $dir does not exist." 1>&2; exit 1; }
  9571. fi
  9572. done
  9573. fi
  9574. ac_save_ldflags="$LDFLAGS"
  9575. LDFLAGS="$FTLIB $LDFLAGS"
  9576. echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
  9577. echo "configure:12005: checking for FT_Init_FreeType in -lfreetype" >&5
  9578. ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
  9579. ac_save_LIBS="$LIBS"
  9580. LIBS="-lfreetype $LIBS"
  9581. cat > conftest.$ac_ext <<EOF
  9582. #line 12011 "configure"
  9583. #include "confdefs.h"
  9584. /* Override any gcc2 internal prototype to avoid an error. */
  9585. /* We use char because int might match the return type of a gcc2
  9586. builtin and then its argument prototype would still apply. */
  9587. char FT_Init_FreeType();
  9588. int main() {
  9589. FT_Init_FreeType()
  9590. ; return 0; }
  9591. EOF
  9592. if { (eval echo configure:12022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9593. rm -rf conftest*
  9594. eval "ac_cv_lib_$ac_lib_var=yes"
  9595. else
  9596. echo "configure: failed program was:" >&5
  9597. cat conftest.$ac_ext >&5
  9598. rm -rf conftest*
  9599. eval "ac_cv_lib_$ac_lib_var=no"
  9600. fi
  9601. rm -f conftest*
  9602. LIBS="$ac_save_LIBS"
  9603. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9604. echo "$ac_t""yes" 1>&6
  9605. FTLIB="$FTLIB -lfreetype "
  9606. else
  9607. echo "$ac_t""no" 1>&6
  9608. LDFLAGS=${ac_save_ldflags}
  9609. { echo "configure: error: *** Unable to locate FreeType library." 1>&2; exit 1; }
  9610. fi
  9611. LDFLAGS=${ac_save_ldflags}
  9612. fi # $USE_FREETYPE
  9613. # Done checking FreeType
  9614. # Enable NLS option
  9615. echo $ac_n "checking whether to use NLS""... $ac_c" 1>&6
  9616. echo "configure:12063: checking whether to use NLS" >&5
  9617. echo "$ac_t"""$with_nls"" 1>&6
  9618. case "$with_nls" in
  9619. "no") USE_NLS= ;;
  9620. "yes") USE_NLS="1" ;;
  9621. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9622. esac
  9623. INTLLIB=
  9624. HAVE_NLS=
  9625. if test -n "${USE_NLS}" ; then
  9626. cat >> confdefs.h <<\EOF
  9627. #define USE_NLS 1
  9628. EOF
  9629. echo $ac_n "checking for gettext""... $ac_c" 1>&6
  9630. echo "configure:12083: checking for gettext" >&5
  9631. cat > conftest.$ac_ext <<EOF
  9632. #line 12086 "configure"
  9633. #include "confdefs.h"
  9634. /* System header to define __stub macros and hopefully few prototypes,
  9635. which can conflict with char gettext(); below. */
  9636. #include <assert.h>
  9637. /* Override any gcc2 internal prototype to avoid an error. */
  9638. /* We use char because int might match the return type of a gcc2
  9639. builtin and then its argument prototype would still apply. */
  9640. char gettext();
  9641. int main() {
  9642. /* The GNU C library defines this for functions which it implements
  9643. to always fail with ENOSYS. Some functions are actually named
  9644. something starting with __ and the normal name is an alias. */
  9645. #if defined (__stub_gettext) || defined (__stub___gettext)
  9646. choke me
  9647. #else
  9648. gettext();
  9649. #endif
  9650. ; return 0; }
  9651. EOF
  9652. if { (eval echo configure:12109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9653. rm -rf conftest*
  9654. eval "ac_cv_func_gettext=yes"
  9655. else
  9656. echo "configure: failed program was:" >&5
  9657. cat conftest.$ac_ext >&5
  9658. rm -rf conftest*
  9659. eval "ac_cv_func_gettext=no"
  9660. fi
  9661. rm -f conftest*
  9662. if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
  9663. echo "$ac_t""yes" 1>&6
  9664. INTLLIB=
  9665. else
  9666. echo "$ac_t""no" 1>&6
  9667. echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
  9668. echo "configure:12127: checking for gettext in -lintl" >&5
  9669. ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
  9670. ac_save_LIBS="$LIBS"
  9671. LIBS="-lintl $LIBS"
  9672. cat > conftest.$ac_ext <<EOF
  9673. #line 12133 "configure"
  9674. #include "confdefs.h"
  9675. /* Override any gcc2 internal prototype to avoid an error. */
  9676. /* We use char because int might match the return type of a gcc2
  9677. builtin and then its argument prototype would still apply. */
  9678. char gettext();
  9679. int main() {
  9680. gettext()
  9681. ; return 0; }
  9682. EOF
  9683. if { (eval echo configure:12144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9684. rm -rf conftest*
  9685. eval "ac_cv_lib_$ac_lib_var=yes"
  9686. else
  9687. echo "configure: failed program was:" >&5
  9688. cat conftest.$ac_ext >&5
  9689. rm -rf conftest*
  9690. eval "ac_cv_lib_$ac_lib_var=no"
  9691. fi
  9692. rm -f conftest*
  9693. LIBS="$ac_save_LIBS"
  9694. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9695. echo "$ac_t""yes" 1>&6
  9696. INTLLIB=-lintl
  9697. else
  9698. echo "$ac_t""no" 1>&6
  9699. { echo "configure: error: *** Unable to locate gettext() function." 1>&2; exit 1; }
  9700. fi
  9701. fi
  9702. HAVE_NLS=1
  9703. fi
  9704. # Enable C++ option
  9705. echo $ac_n "checking whether to use C++""... $ac_c" 1>&6
  9706. echo "configure:12179: checking whether to use C++" >&5
  9707. echo "$ac_t"""$with_cxx"" 1>&6
  9708. case "$with_cxx" in
  9709. "no") USE_CXX= ;;
  9710. "yes") USE_CXX="1" ;;
  9711. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9712. esac
  9713. if test -n "$USE_CXX"; then
  9714. for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
  9715. do
  9716. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9717. set dummy $ac_prog; ac_word=$2
  9718. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  9719. echo "configure:12195: checking for $ac_word" >&5
  9720. if test -n "$CXX"; then
  9721. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  9722. else
  9723. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  9724. ac_dummy="$PATH"
  9725. for ac_dir in $ac_dummy; do
  9726. test -z "$ac_dir" && ac_dir=.
  9727. if test -f $ac_dir/$ac_word; then
  9728. ac_cv_prog_CXX="$ac_prog"
  9729. break
  9730. fi
  9731. done
  9732. IFS="$ac_save_ifs"
  9733. fi
  9734. CXX="$ac_cv_prog_CXX"
  9735. if test -n "$CXX"; then
  9736. echo "$ac_t""$CXX" 1>&6
  9737. else
  9738. echo "$ac_t""no" 1>&6
  9739. fi
  9740. test -n "$CXX" && break
  9741. done
  9742. test -n "$CXX" || CXX="gcc"
  9743. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  9744. echo "configure:12224: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  9745. ac_ext=C
  9746. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  9747. ac_cpp='$CXXCPP $CPPFLAGS'
  9748. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  9749. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  9750. cross_compiling=$ac_cv_prog_cxx_cross
  9751. cat > conftest.$ac_ext << EOF
  9752. #line 12235 "configure"
  9753. #include "confdefs.h"
  9754. int main(){return(0);}
  9755. EOF
  9756. if { (eval echo configure:12240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9757. ac_cv_prog_cxx_works=yes
  9758. # If we can't run a trivial program, we are probably using a cross compiler.
  9759. if (./conftest; exit) 2>/dev/null; then
  9760. ac_cv_prog_cxx_cross=no
  9761. else
  9762. ac_cv_prog_cxx_cross=yes
  9763. fi
  9764. else
  9765. echo "configure: failed program was:" >&5
  9766. cat conftest.$ac_ext >&5
  9767. ac_cv_prog_cxx_works=no
  9768. fi
  9769. rm -fr conftest*
  9770. ac_ext=c
  9771. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  9772. ac_cpp='$CPP $CPPFLAGS'
  9773. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  9774. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  9775. cross_compiling=$ac_cv_prog_cc_cross
  9776. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  9777. if test $ac_cv_prog_cxx_works = no; then
  9778. { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  9779. fi
  9780. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  9781. echo "configure:12266: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  9782. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  9783. cross_compiling=$ac_cv_prog_cxx_cross
  9784. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  9785. echo "configure:12271: checking whether we are using GNU C++" >&5
  9786. cat > conftest.C <<EOF
  9787. #ifdef __GNUC__
  9788. yes;
  9789. #endif
  9790. EOF
  9791. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:12278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  9792. ac_cv_prog_gxx=yes
  9793. else
  9794. ac_cv_prog_gxx=no
  9795. fi
  9796. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  9797. if test $ac_cv_prog_gxx = yes; then
  9798. GXX=yes
  9799. else
  9800. GXX=
  9801. fi
  9802. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  9803. ac_save_CXXFLAGS="$CXXFLAGS"
  9804. CXXFLAGS=
  9805. echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  9806. echo "configure:12296: checking whether ${CXX-g++} accepts -g" >&5
  9807. echo 'void f(){}' > conftest.cc
  9808. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  9809. ac_cv_prog_cxx_g=yes
  9810. else
  9811. ac_cv_prog_cxx_g=no
  9812. fi
  9813. rm -f conftest*
  9814. echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  9815. if test "$ac_test_CXXFLAGS" = set; then
  9816. CXXFLAGS="$ac_save_CXXFLAGS"
  9817. elif test $ac_cv_prog_cxx_g = yes; then
  9818. if test "$GXX" = yes; then
  9819. CXXFLAGS="-g -O2"
  9820. else
  9821. CXXFLAGS="-g"
  9822. fi
  9823. else
  9824. if test "$GXX" = yes; then
  9825. CXXFLAGS="-O2"
  9826. else
  9827. CXXFLAGS=
  9828. fi
  9829. fi
  9830. for ac_declaration in \
  9831. ''\
  9832. '#include <stdlib.h>' \
  9833. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  9834. 'extern "C" void std::exit (int); using std::exit;' \
  9835. 'extern "C" void exit (int) throw ();' \
  9836. 'extern "C" void exit (int);' \
  9837. 'void exit (int);'
  9838. do
  9839. cat > conftest.$ac_ext <<EOF
  9840. #line 12334 "configure"
  9841. #include "confdefs.h"
  9842. #include <stdlib.h>
  9843. $ac_declaration
  9844. int main() {
  9845. exit (42);
  9846. ; return 0; }
  9847. EOF
  9848. if { (eval echo configure:12342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  9849. :
  9850. else
  9851. echo "configure: failed program was:" >&5
  9852. cat conftest.$ac_ext >&5
  9853. rm -rf conftest*
  9854. continue
  9855. fi
  9856. rm -f conftest*
  9857. cat > conftest.$ac_ext <<EOF
  9858. #line 12352 "configure"
  9859. #include "confdefs.h"
  9860. $ac_declaration
  9861. int main() {
  9862. exit (42);
  9863. ; return 0; }
  9864. EOF
  9865. if { (eval echo configure:12359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  9866. rm -rf conftest*
  9867. break
  9868. else
  9869. echo "configure: failed program was:" >&5
  9870. cat conftest.$ac_ext >&5
  9871. fi
  9872. rm -f conftest*
  9873. done
  9874. if test -n "$ac_declaration"; then
  9875. echo '#ifdef __cplusplus' >>confdefs.h
  9876. echo $ac_declaration >>confdefs.h
  9877. echo '#endif' >>confdefs.h
  9878. fi
  9879. else
  9880. CXX=
  9881. CXXFLAGS=
  9882. fi
  9883. # Done checking C++
  9884. # Enable openDWG option
  9885. echo $ac_n "checking whether to use openDWG""... $ac_c" 1>&6
  9886. echo "configure:12388: checking whether to use openDWG" >&5
  9887. echo "$ac_t"""$with_opendwg"" 1>&6
  9888. case "$with_opendwg" in
  9889. "no") USE_OPENDWG= ;;
  9890. "yes") USE_OPENDWG="1" ;;
  9891. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9892. esac
  9893. OPENDWGINCPATH=
  9894. OPENDWGLIBPATH=
  9895. OPENDWGLIB=
  9896. if test -n "${USE_OPENDWG}"; then
  9897. # With OPENDWG includes directory
  9898. echo $ac_n "checking for location of openDGW includes""... $ac_c" 1>&6
  9899. echo "configure:12408: checking for location of openDGW includes" >&5
  9900. case "$with_opendwg_includes" in
  9901. y | ye | yes | n | no)
  9902. { echo "configure: error: *** You must supply a directory to --with-opendwg-includes." 1>&2; exit 1; }
  9903. ;;
  9904. esac
  9905. echo "$ac_t""$with_opendwg_includes" 1>&6
  9906. if test -n "$with_opendwg_includes" ; then
  9907. for dir in $with_opendwg_includes; do
  9908. if test -d "$dir"; then
  9909. OPENDWGINCPATH="$OPENDWGINCPATH -I$dir"
  9910. else
  9911. { echo "configure: error: *** openDGW includes directory $dir does not exist." 1>&2; exit 1; }
  9912. fi
  9913. done
  9914. fi
  9915. ac_save_cppflags="$CPPFLAGS"
  9916. CPPFLAGS="$OPENDWGINCPATH $CPPFLAGS"
  9917. for ac_hdr in ad2.h
  9918. do
  9919. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9920. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9921. echo "configure:12434: checking for $ac_hdr" >&5
  9922. cat > conftest.$ac_ext <<EOF
  9923. #line 12437 "configure"
  9924. #include "confdefs.h"
  9925. #include <$ac_hdr>
  9926. EOF
  9927. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9928. { (eval echo configure:12442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9929. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9930. if test -z "$ac_err"; then
  9931. rm -rf conftest*
  9932. eval "ac_cv_header_$ac_safe=yes"
  9933. else
  9934. echo "$ac_err" >&5
  9935. echo "configure: failed program was:" >&5
  9936. cat conftest.$ac_ext >&5
  9937. rm -rf conftest*
  9938. eval "ac_cv_header_$ac_safe=no"
  9939. fi
  9940. rm -f conftest*
  9941. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9942. echo "$ac_t""yes" 1>&6
  9943. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9944. cat >> confdefs.h <<EOF
  9945. #define $ac_tr_hdr 1
  9946. EOF
  9947. else
  9948. echo "$ac_t""no" 1>&6
  9949. { echo "configure: error: *** Unable to locate openDWG includes." 1>&2; exit 1; }
  9950. fi
  9951. done
  9952. CPPFLAGS=$ac_save_cppflags
  9953. # With OPENDWG library directory
  9954. echo $ac_n "checking for location of openDWG library""... $ac_c" 1>&6
  9955. echo "configure:12476: checking for location of openDWG library" >&5
  9956. case "$with_opendwg_libs" in
  9957. y | ye | yes | n | no)
  9958. { echo "configure: error: *** You must supply a directory to --with-opendwg-libs." 1>&2; exit 1; }
  9959. ;;
  9960. esac
  9961. echo "$ac_t""$with_opendwg_libs" 1>&6
  9962. if test -n "$with_opendwg_libs"; then
  9963. for dir in $with_opendwg_libs; do
  9964. if test -d "$dir"; then
  9965. OPENDWGLIBPATH="$OPENDWGLIBPATH -L$dir"
  9966. else
  9967. { echo "configure: error: *** openDWG library directory $dir does not exist." 1>&2; exit 1; }
  9968. fi
  9969. done
  9970. fi
  9971. #search for ad2.a, ad3.a ... in openDWG toolkit directory:
  9972. #FIX ME how to program this test??
  9973. #LOC_CHECK_LIBS(ad?.a,adSeekLayer,openDWG,$OPENDWGLIBPATH,OPENDWGLIB,,)
  9974. #
  9975. #for now hack (but working):
  9976. TRUEOPENDWGLIBPATH=`echo "$OPENDWGLIBPATH" | cut -b3-`
  9977. adlib=`ls -1 "$TRUEOPENDWGLIBPATH"/ad?.a | tail -1`
  9978. OPENDWGLIB="$adlib"
  9979. fi # $USE_OPENDWG
  9980. # Done checking OPENDWG
  9981. # Enable pthread option
  9982. echo $ac_n "checking whether to use POSIX threads""... $ac_c" 1>&6
  9983. echo "configure:12517: checking whether to use POSIX threads" >&5
  9984. echo "$ac_t"""$with_pthread"" 1>&6
  9985. case "$with_pthread" in
  9986. "no") USE_PTHREAD= ;;
  9987. "yes") USE_PTHREAD="1" ;;
  9988. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9989. esac
  9990. PTHREADINCPATH=
  9991. PTHREADLIBPATH=
  9992. PTHREADLIB=
  9993. if test -n "$USE_PTHREAD"; then
  9994. # With pthread includes directory
  9995. echo $ac_n "checking for location of POSIX threads includes""... $ac_c" 1>&6
  9996. echo "configure:12537: checking for location of POSIX threads includes" >&5
  9997. case "$with_pthread_includes" in
  9998. y | ye | yes | n | no)
  9999. { echo "configure: error: *** You must supply a directory to --with-pthread-includes." 1>&2; exit 1; }
  10000. ;;
  10001. esac
  10002. echo "$ac_t""$with_pthread_includes" 1>&6
  10003. if test -n "$with_pthread_includes" ; then
  10004. for dir in $with_pthread_includes; do
  10005. if test -d "$dir"; then
  10006. PTHREADINCPATH="$PTHREADINCPATH -I$dir"
  10007. else
  10008. { echo "configure: error: *** POSIX threads includes directory $dir does not exist." 1>&2; exit 1; }
  10009. fi
  10010. done
  10011. fi
  10012. ac_save_cppflags="$CPPFLAGS"
  10013. CPPFLAGS="$PTHREADINCPATH $CPPFLAGS"
  10014. for ac_hdr in pthread.h
  10015. do
  10016. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10017. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10018. echo "configure:12563: checking for $ac_hdr" >&5
  10019. cat > conftest.$ac_ext <<EOF
  10020. #line 12566 "configure"
  10021. #include "confdefs.h"
  10022. #include <$ac_hdr>
  10023. EOF
  10024. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10025. { (eval echo configure:12571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10026. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10027. if test -z "$ac_err"; then
  10028. rm -rf conftest*
  10029. eval "ac_cv_header_$ac_safe=yes"
  10030. else
  10031. echo "$ac_err" >&5
  10032. echo "configure: failed program was:" >&5
  10033. cat conftest.$ac_ext >&5
  10034. rm -rf conftest*
  10035. eval "ac_cv_header_$ac_safe=no"
  10036. fi
  10037. rm -f conftest*
  10038. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10039. echo "$ac_t""yes" 1>&6
  10040. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10041. cat >> confdefs.h <<EOF
  10042. #define $ac_tr_hdr 1
  10043. EOF
  10044. else
  10045. echo "$ac_t""no" 1>&6
  10046. { echo "configure: error: *** Unable to locate POSIX threads includes." 1>&2; exit 1; }
  10047. fi
  10048. done
  10049. CPPFLAGS=$ac_save_cppflags
  10050. # With pthread library directory
  10051. echo $ac_n "checking for location of POSIX threads library""... $ac_c" 1>&6
  10052. echo "configure:12605: checking for location of POSIX threads library" >&5
  10053. case "$with_pthread_libs" in
  10054. y | ye | yes | n | no)
  10055. { echo "configure: error: *** You must supply a directory to --with-pthread-libs." 1>&2; exit 1; }
  10056. ;;
  10057. esac
  10058. echo "$ac_t""$with_pthread_libs" 1>&6
  10059. if test -n "$with_pthread_libs"; then
  10060. for dir in $with_pthread_libs; do
  10061. if test -d "$dir"; then
  10062. PTHREADLIBPATH="$PTHREADLIBPATH -L$dir"
  10063. else
  10064. { echo "configure: error: *** POSIX threads library directory $dir does not exist." 1>&2; exit 1; }
  10065. fi
  10066. done
  10067. fi
  10068. ac_save_libs="$LIBS"
  10069. ac_save_ldflags="$LDFLAGS"
  10070. LIBS=" $LIBS"
  10071. LDFLAGS=" $LDFLAGS"
  10072. echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
  10073. echo "configure:12630: checking for pthread_create" >&5
  10074. cat > conftest.$ac_ext <<EOF
  10075. #line 12633 "configure"
  10076. #include "confdefs.h"
  10077. /* System header to define __stub macros and hopefully few prototypes,
  10078. which can conflict with char pthread_create(); below. */
  10079. #include <assert.h>
  10080. /* Override any gcc2 internal prototype to avoid an error. */
  10081. /* We use char because int might match the return type of a gcc2
  10082. builtin and then its argument prototype would still apply. */
  10083. char pthread_create();
  10084. int main() {
  10085. /* The GNU C library defines this for functions which it implements
  10086. to always fail with ENOSYS. Some functions are actually named
  10087. something starting with __ and the normal name is an alias. */
  10088. #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
  10089. choke me
  10090. #else
  10091. pthread_create();
  10092. #endif
  10093. ; return 0; }
  10094. EOF
  10095. if { (eval echo configure:12656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10096. rm -rf conftest*
  10097. eval "ac_cv_func_pthread_create=yes"
  10098. else
  10099. echo "configure: failed program was:" >&5
  10100. cat conftest.$ac_ext >&5
  10101. rm -rf conftest*
  10102. eval "ac_cv_func_pthread_create=no"
  10103. fi
  10104. rm -f conftest*
  10105. if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
  10106. echo "$ac_t""yes" 1>&6
  10107. PTHREADLIB="$PTHREADLIB "
  10108. else
  10109. echo "$ac_t""no" 1>&6
  10110. ac_save_ldflags="$LDFLAGS"
  10111. LDFLAGS="$PTHREADLIBPATH $LDFLAGS"
  10112. echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
  10113. echo "configure:12683: checking for pthread_create in -lpthread" >&5
  10114. ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
  10115. ac_save_LIBS="$LIBS"
  10116. LIBS="-lpthread $LIBS"
  10117. cat > conftest.$ac_ext <<EOF
  10118. #line 12689 "configure"
  10119. #include "confdefs.h"
  10120. /* Override any gcc2 internal prototype to avoid an error. */
  10121. /* We use char because int might match the return type of a gcc2
  10122. builtin and then its argument prototype would still apply. */
  10123. char pthread_create();
  10124. int main() {
  10125. pthread_create()
  10126. ; return 0; }
  10127. EOF
  10128. if { (eval echo configure:12700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10129. rm -rf conftest*
  10130. eval "ac_cv_lib_$ac_lib_var=yes"
  10131. else
  10132. echo "configure: failed program was:" >&5
  10133. cat conftest.$ac_ext >&5
  10134. rm -rf conftest*
  10135. eval "ac_cv_lib_$ac_lib_var=no"
  10136. fi
  10137. rm -f conftest*
  10138. LIBS="$ac_save_LIBS"
  10139. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10140. echo "$ac_t""yes" 1>&6
  10141. PTHREADLIB="$PTHREADLIB -lpthread "
  10142. else
  10143. echo "$ac_t""no" 1>&6
  10144. LDFLAGS=${ac_save_ldflags}
  10145. { echo "configure: error: *** Unable to locate POSIX threads library." 1>&2; exit 1; }
  10146. fi
  10147. LDFLAGS=${ac_save_ldflags}
  10148. fi
  10149. LIBS=${ac_save_libs}
  10150. LDFLAGS=${ac_save_ldflags}
  10151. fi # $USE_PTHREAD
  10152. # Done checking pthread
  10153. # Enable OpenMP option
  10154. echo $ac_n "checking whether to use OpenMP""... $ac_c" 1>&6
  10155. echo "configure:12750: checking whether to use OpenMP" >&5
  10156. echo "$ac_t"""$with_openmp"" 1>&6
  10157. case "$with_openmp" in
  10158. "no") USE_OPENMP= ;;
  10159. "yes") USE_OPENMP="1" ;;
  10160. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10161. esac
  10162. OMPINCPATH=
  10163. OMPLIBPATH=
  10164. OMPLIB=
  10165. OMPCFLAGS=
  10166. if test -n "$USE_OPENMP"; then
  10167. # With OpenMP includes directory
  10168. echo $ac_n "checking for location of OpenMP includes""... $ac_c" 1>&6
  10169. echo "configure:12771: checking for location of OpenMP includes" >&5
  10170. case "$with_openmp_includes" in
  10171. y | ye | yes | n | no)
  10172. { echo "configure: error: *** You must supply a directory to --with-openmp-includes." 1>&2; exit 1; }
  10173. ;;
  10174. esac
  10175. echo "$ac_t""$with_openmp_includes" 1>&6
  10176. if test -n "$with_openmp_includes" ; then
  10177. for dir in $with_openmp_includes; do
  10178. if test -d "$dir"; then
  10179. OMPINCPATH="$OMPINCPATH -I$dir"
  10180. else
  10181. { echo "configure: error: *** OpenMP includes directory $dir does not exist." 1>&2; exit 1; }
  10182. fi
  10183. done
  10184. fi
  10185. ac_save_cppflags="$CPPFLAGS"
  10186. CPPFLAGS="$OMPINCPATH $CPPFLAGS"
  10187. for ac_hdr in omp.h
  10188. do
  10189. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10190. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10191. echo "configure:12797: checking for $ac_hdr" >&5
  10192. cat > conftest.$ac_ext <<EOF
  10193. #line 12800 "configure"
  10194. #include "confdefs.h"
  10195. #include <$ac_hdr>
  10196. EOF
  10197. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10198. { (eval echo configure:12805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10199. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10200. if test -z "$ac_err"; then
  10201. rm -rf conftest*
  10202. eval "ac_cv_header_$ac_safe=yes"
  10203. else
  10204. echo "$ac_err" >&5
  10205. echo "configure: failed program was:" >&5
  10206. cat conftest.$ac_ext >&5
  10207. rm -rf conftest*
  10208. eval "ac_cv_header_$ac_safe=no"
  10209. fi
  10210. rm -f conftest*
  10211. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10212. echo "$ac_t""yes" 1>&6
  10213. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10214. cat >> confdefs.h <<EOF
  10215. #define $ac_tr_hdr 1
  10216. EOF
  10217. else
  10218. echo "$ac_t""no" 1>&6
  10219. { echo "configure: error: *** Unable to locate OpenMP includes." 1>&2; exit 1; }
  10220. fi
  10221. done
  10222. CPPFLAGS=$ac_save_cppflags
  10223. # With OpenMP library directory
  10224. # GCC et al.: -lgomp
  10225. # Solaris cc: -lmtsk
  10226. # AIX xlc: -lxlsmp
  10227. # SGI IRIX 6.5 MIPSpro C/C++: -lmp
  10228. echo $ac_n "checking for location of OpenMP library""... $ac_c" 1>&6
  10229. echo "configure:12843: checking for location of OpenMP library" >&5
  10230. case "$with_gomp_libs" in
  10231. y | ye | yes | n | no)
  10232. { echo "configure: error: *** You must supply a directory to --with-gomp-libs." 1>&2; exit 1; }
  10233. ;;
  10234. esac
  10235. echo "$ac_t""$with_gomp_libs" 1>&6
  10236. if test -n "$with_gomp_libs"; then
  10237. for dir in $with_gomp_libs; do
  10238. if test -d "$dir"; then
  10239. OMPLIBPATH="$OMPLIBPATH -L$dir"
  10240. else
  10241. { echo "configure: error: *** OpenMP library directory $dir does not exist." 1>&2; exit 1; }
  10242. fi
  10243. done
  10244. fi
  10245. ac_save_libs="$LIBS"
  10246. ac_save_ldflags="$LDFLAGS"
  10247. LIBS=" $LIBS"
  10248. LDFLAGS=" $LDFLAGS"
  10249. echo $ac_n "checking for GOMP_parallel_start""... $ac_c" 1>&6
  10250. echo "configure:12868: checking for GOMP_parallel_start" >&5
  10251. cat > conftest.$ac_ext <<EOF
  10252. #line 12871 "configure"
  10253. #include "confdefs.h"
  10254. /* System header to define __stub macros and hopefully few prototypes,
  10255. which can conflict with char GOMP_parallel_start(); below. */
  10256. #include <assert.h>
  10257. /* Override any gcc2 internal prototype to avoid an error. */
  10258. /* We use char because int might match the return type of a gcc2
  10259. builtin and then its argument prototype would still apply. */
  10260. char GOMP_parallel_start();
  10261. int main() {
  10262. /* The GNU C library defines this for functions which it implements
  10263. to always fail with ENOSYS. Some functions are actually named
  10264. something starting with __ and the normal name is an alias. */
  10265. #if defined (__stub_GOMP_parallel_start) || defined (__stub___GOMP_parallel_start)
  10266. choke me
  10267. #else
  10268. GOMP_parallel_start();
  10269. #endif
  10270. ; return 0; }
  10271. EOF
  10272. if { (eval echo configure:12894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10273. rm -rf conftest*
  10274. eval "ac_cv_func_GOMP_parallel_start=yes"
  10275. else
  10276. echo "configure: failed program was:" >&5
  10277. cat conftest.$ac_ext >&5
  10278. rm -rf conftest*
  10279. eval "ac_cv_func_GOMP_parallel_start=no"
  10280. fi
  10281. rm -f conftest*
  10282. if eval "test \"`echo '$ac_cv_func_'GOMP_parallel_start`\" = yes"; then
  10283. echo "$ac_t""yes" 1>&6
  10284. OMPLIB="$OMPLIB "
  10285. else
  10286. echo "$ac_t""no" 1>&6
  10287. ac_save_ldflags="$LDFLAGS"
  10288. LDFLAGS="$OMPLIBPATH $LDFLAGS"
  10289. echo $ac_n "checking for GOMP_parallel_start in -lgomp""... $ac_c" 1>&6
  10290. echo "configure:12921: checking for GOMP_parallel_start in -lgomp" >&5
  10291. ac_lib_var=`echo gomp'_'GOMP_parallel_start | sed 'y%./+-%__p_%'`
  10292. ac_save_LIBS="$LIBS"
  10293. LIBS="-lgomp $LIBS"
  10294. cat > conftest.$ac_ext <<EOF
  10295. #line 12927 "configure"
  10296. #include "confdefs.h"
  10297. /* Override any gcc2 internal prototype to avoid an error. */
  10298. /* We use char because int might match the return type of a gcc2
  10299. builtin and then its argument prototype would still apply. */
  10300. char GOMP_parallel_start();
  10301. int main() {
  10302. GOMP_parallel_start()
  10303. ; return 0; }
  10304. EOF
  10305. if { (eval echo configure:12938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10306. rm -rf conftest*
  10307. eval "ac_cv_lib_$ac_lib_var=yes"
  10308. else
  10309. echo "configure: failed program was:" >&5
  10310. cat conftest.$ac_ext >&5
  10311. rm -rf conftest*
  10312. eval "ac_cv_lib_$ac_lib_var=no"
  10313. fi
  10314. rm -f conftest*
  10315. LIBS="$ac_save_LIBS"
  10316. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10317. echo "$ac_t""yes" 1>&6
  10318. OMPLIB="$OMPLIB -lgomp "
  10319. else
  10320. echo "$ac_t""no" 1>&6
  10321. LDFLAGS=${ac_save_ldflags}
  10322. { echo "configure: error: *** Unable to locate OpenMP library." 1>&2; exit 1; }
  10323. fi
  10324. LDFLAGS=${ac_save_ldflags}
  10325. fi
  10326. LIBS=${ac_save_libs}
  10327. LDFLAGS=${ac_save_ldflags}
  10328. # compiler dependent
  10329. #if test ${CC} = "gcc" ; then
  10330. if test x$GCC = xyes ; then
  10331. # GNU C compiler (>= 4.2.1)
  10332. OMPCFLAGS=-fopenmp
  10333. elif test ${CC} = "icc" ; then
  10334. # Intel compiler
  10335. OMPCFLAGS=-openmp
  10336. elif test ${CC} = "opencc" ; then
  10337. # AMD's x86 Open64 compiler
  10338. OMPCFLAGS=-mp
  10339. elif test ${CC} = "pgcc" ; then
  10340. # Portland Group's compiler
  10341. OMPCFLAGS=-mp
  10342. # ... anybody else?
  10343. fi
  10344. # try to build a test program with "$CC $OMPCLFAGS" to confirm it works
  10345. #...how?
  10346. #echo "int main() {return 0;}" > test.c
  10347. #$CC $OMPCLFAGS test.c -o test
  10348. fi # $USE_OPENMP
  10349. # Done checking OpenMP
  10350. # Enable LFS (from cdr-tools)
  10351. # Check whether --enable-largefile or --disable-largefile was given.
  10352. if test "${enable_largefile+set}" = set; then
  10353. enableval="$enable_largefile"
  10354. :
  10355. fi
  10356. if test "$enable_largefile" = yes; then
  10357. echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
  10358. echo "configure:13017: checking for special C compiler options needed for large files" >&5
  10359. ac_cv_sys_largefile_CC=no
  10360. largefile_cc_opt=""
  10361. if test "$GCC" != yes; then
  10362. # IRIX 6.2 and later do not support large files by default,
  10363. # so use the C compiler's -n32 option if that helps.
  10364. cat > conftest.$ac_ext <<EOF
  10365. #line 13025 "configure"
  10366. #include "confdefs.h"
  10367. #include <sys/types.h>
  10368. /* Check that off_t can represent 2**63 - 1 correctly.
  10369. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10370. since some C++ compilers masquerading as C compilers
  10371. incorrectly reject 9223372036854775807. */
  10372. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10373. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10374. && LARGE_OFF_T % 2147483647 == 1)
  10375. ? 1 : -1];
  10376. int main() {
  10377. ; return 0; }
  10378. EOF
  10379. if { (eval echo configure:13041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10380. :
  10381. else
  10382. echo "configure: failed program was:" >&5
  10383. cat conftest.$ac_ext >&5
  10384. rm -rf conftest*
  10385. ac_save_CC="${CC-cc}"
  10386. CC="$CC -n32"
  10387. cat > conftest.$ac_ext <<EOF
  10388. #line 13050 "configure"
  10389. #include "confdefs.h"
  10390. #include <sys/types.h>
  10391. /* Check that off_t can represent 2**63 - 1 correctly.
  10392. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10393. since some C++ compilers masquerading as C compilers
  10394. incorrectly reject 9223372036854775807. */
  10395. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10396. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10397. && LARGE_OFF_T % 2147483647 == 1)
  10398. ? 1 : -1];
  10399. int main() {
  10400. ; return 0; }
  10401. EOF
  10402. if { (eval echo configure:13066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10403. rm -rf conftest*
  10404. ac_cv_sys_largefile_CC=' -n32'
  10405. else
  10406. echo "configure: failed program was:" >&5
  10407. cat conftest.$ac_ext >&5
  10408. fi
  10409. rm -f conftest*
  10410. CC="$ac_save_CC"
  10411. fi
  10412. rm -f conftest*
  10413. fi
  10414. echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6
  10415. if test "$ac_cv_sys_largefile_CC" != no; then
  10416. CC="$CC$ac_cv_sys_largefile_CC"
  10417. largefile_cc_opt="$ac_cv_sys_largefile_CC"
  10418. fi
  10419. echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
  10420. echo "configure:13086: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  10421. ac_cv_sys_file_offset_bits=no
  10422. cat > conftest.$ac_ext <<EOF
  10423. #line 13090 "configure"
  10424. #include "confdefs.h"
  10425. #include <sys/types.h>
  10426. /* Check that off_t can represent 2**63 - 1 correctly.
  10427. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10428. since some C++ compilers masquerading as C compilers
  10429. incorrectly reject 9223372036854775807. */
  10430. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10431. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10432. && LARGE_OFF_T % 2147483647 == 1)
  10433. ? 1 : -1];
  10434. int main() {
  10435. ; return 0; }
  10436. EOF
  10437. if { (eval echo configure:13106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10438. :
  10439. else
  10440. echo "configure: failed program was:" >&5
  10441. cat conftest.$ac_ext >&5
  10442. rm -rf conftest*
  10443. cat > conftest.$ac_ext <<EOF
  10444. #line 13113 "configure"
  10445. #include "confdefs.h"
  10446. #define _FILE_OFFSET_BITS 64
  10447. #include <sys/types.h>
  10448. /* Check that off_t can represent 2**63 - 1 correctly.
  10449. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10450. since some C++ compilers masquerading as C compilers
  10451. incorrectly reject 9223372036854775807. */
  10452. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10453. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10454. && LARGE_OFF_T % 2147483647 == 1)
  10455. ? 1 : -1];
  10456. int main() {
  10457. ; return 0; }
  10458. EOF
  10459. if { (eval echo configure:13131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10460. rm -rf conftest*
  10461. ac_cv_sys_file_offset_bits=64
  10462. else
  10463. echo "configure: failed program was:" >&5
  10464. cat conftest.$ac_ext >&5
  10465. fi
  10466. rm -f conftest*
  10467. fi
  10468. rm -f conftest*
  10469. echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
  10470. if test "$ac_cv_sys_file_offset_bits" != no; then
  10471. cat >> confdefs.h <<EOF
  10472. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  10473. EOF
  10474. fi
  10475. echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
  10476. echo "configure:13150: checking for _LARGE_FILES value needed for large files" >&5
  10477. ac_cv_sys_large_files=no
  10478. cat > conftest.$ac_ext <<EOF
  10479. #line 13154 "configure"
  10480. #include "confdefs.h"
  10481. #include <sys/types.h>
  10482. /* Check that off_t can represent 2**63 - 1 correctly.
  10483. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10484. since some C++ compilers masquerading as C compilers
  10485. incorrectly reject 9223372036854775807. */
  10486. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10487. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10488. && LARGE_OFF_T % 2147483647 == 1)
  10489. ? 1 : -1];
  10490. int main() {
  10491. ; return 0; }
  10492. EOF
  10493. if { (eval echo configure:13170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10494. :
  10495. else
  10496. echo "configure: failed program was:" >&5
  10497. cat conftest.$ac_ext >&5
  10498. rm -rf conftest*
  10499. cat > conftest.$ac_ext <<EOF
  10500. #line 13177 "configure"
  10501. #include "confdefs.h"
  10502. #define _LARGE_FILES 1
  10503. #include <sys/types.h>
  10504. /* Check that off_t can represent 2**63 - 1 correctly.
  10505. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10506. since some C++ compilers masquerading as C compilers
  10507. incorrectly reject 9223372036854775807. */
  10508. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10509. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10510. && LARGE_OFF_T % 2147483647 == 1)
  10511. ? 1 : -1];
  10512. int main() {
  10513. ; return 0; }
  10514. EOF
  10515. if { (eval echo configure:13195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10516. rm -rf conftest*
  10517. ac_cv_sys_large_files=1
  10518. else
  10519. echo "configure: failed program was:" >&5
  10520. cat conftest.$ac_ext >&5
  10521. fi
  10522. rm -f conftest*
  10523. fi
  10524. rm -f conftest*
  10525. echo "$ac_t""$ac_cv_sys_large_files" 1>&6
  10526. if test "$ac_cv_sys_large_files" != no; then
  10527. cat >> confdefs.h <<EOF
  10528. #define _LARGE_FILES $ac_cv_sys_large_files
  10529. EOF
  10530. fi
  10531. echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
  10532. echo "configure:13214: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  10533. ac_cv_sys_largefile_source=no
  10534. cat > conftest.$ac_ext <<EOF
  10535. #line 13218 "configure"
  10536. #include "confdefs.h"
  10537. #include <stdio.h>
  10538. int main() {
  10539. return !fseeko;
  10540. ; return 0; }
  10541. EOF
  10542. if { (eval echo configure:13225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10543. :
  10544. else
  10545. echo "configure: failed program was:" >&5
  10546. cat conftest.$ac_ext >&5
  10547. rm -rf conftest*
  10548. cat > conftest.$ac_ext <<EOF
  10549. #line 13232 "configure"
  10550. #include "confdefs.h"
  10551. #define _LARGEFILE_SOURCE 1
  10552. #include <stdio.h>
  10553. int main() {
  10554. return !fseeko;
  10555. ; return 0; }
  10556. EOF
  10557. if { (eval echo configure:13241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10558. rm -rf conftest*
  10559. ac_cv_sys_largefile_source=1
  10560. else
  10561. echo "configure: failed program was:" >&5
  10562. cat conftest.$ac_ext >&5
  10563. fi
  10564. rm -f conftest*
  10565. fi
  10566. rm -f conftest*
  10567. echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
  10568. if test "$ac_cv_sys_largefile_source" != no; then
  10569. cat >> confdefs.h <<EOF
  10570. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  10571. EOF
  10572. fi
  10573. fi
  10574. echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
  10575. echo "configure:13262: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  10576. ac_cv_sys_largefile_source=no
  10577. cat > conftest.$ac_ext <<EOF
  10578. #line 13266 "configure"
  10579. #include "confdefs.h"
  10580. #include <stdio.h>
  10581. int main() {
  10582. return !fseeko;
  10583. ; return 0; }
  10584. EOF
  10585. if { (eval echo configure:13273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10586. :
  10587. else
  10588. echo "configure: failed program was:" >&5
  10589. cat conftest.$ac_ext >&5
  10590. rm -rf conftest*
  10591. cat > conftest.$ac_ext <<EOF
  10592. #line 13280 "configure"
  10593. #include "confdefs.h"
  10594. #define _LARGEFILE_SOURCE 1
  10595. #include <stdio.h>
  10596. int main() {
  10597. return !fseeko;
  10598. ; return 0; }
  10599. EOF
  10600. if { (eval echo configure:13289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10601. rm -rf conftest*
  10602. ac_cv_sys_largefile_source=1
  10603. else
  10604. echo "configure: failed program was:" >&5
  10605. cat conftest.$ac_ext >&5
  10606. fi
  10607. rm -f conftest*
  10608. fi
  10609. rm -f conftest*
  10610. echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
  10611. if test "$ac_cv_sys_largefile_source" != no; then
  10612. cat >> confdefs.h <<EOF
  10613. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  10614. EOF
  10615. fi
  10616. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  10617. # in glibc 2.1.3, but that breaks too many other things.
  10618. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  10619. echo $ac_n "checking for fseeko""... $ac_c" 1>&6
  10620. echo "configure:13312: checking for fseeko" >&5
  10621. ac_cv_func_fseeko=no
  10622. cat > conftest.$ac_ext <<EOF
  10623. #line 13316 "configure"
  10624. #include "confdefs.h"
  10625. #include <stdio.h>
  10626. int main() {
  10627. return fseeko && fseeko (stdin, 0, 0);
  10628. ; return 0; }
  10629. EOF
  10630. if { (eval echo configure:13323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10631. rm -rf conftest*
  10632. ac_cv_func_fseeko=yes
  10633. else
  10634. echo "configure: failed program was:" >&5
  10635. cat conftest.$ac_ext >&5
  10636. fi
  10637. rm -f conftest*
  10638. echo "$ac_t""$ac_cv_func_fseeko" 1>&6
  10639. if test $ac_cv_func_fseeko != no; then
  10640. cat >> confdefs.h <<\EOF
  10641. #define HAVE_FSEEKO 1
  10642. EOF
  10643. fi
  10644. echo $ac_n "checking if system supports Large Files at all""... $ac_c" 1>&6
  10645. echo "configure:13340: checking if system supports Large Files at all" >&5
  10646. cat > conftest.$ac_ext <<EOF
  10647. #line 13343 "configure"
  10648. #include "confdefs.h"
  10649. #include <stdio.h>
  10650. #include <sys/types.h>
  10651. int main() {
  10652. /*
  10653. * Check that off_t can represent 2**63 - 1 correctly.
  10654. * We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10655. * since some C++ compilers masquerading as C compilers
  10656. * incorrectly reject 9223372036854775807.
  10657. *
  10658. * For MinGW, off64_t should be used and __MSVCRT_VERSION__ >= 0x0601
  10659. * (msvcrt.dll version 6.10 or higher) is needed for _fstat64 and _stat64.
  10660. */
  10661. #ifdef __MINGW32__
  10662. # define LARGE_OFF_T (((off64_t) 1 << 62) - 1 + ((off64_t) 1 << 62))
  10663. #else
  10664. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10665. #endif
  10666. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10667. && LARGE_OFF_T % 2147483647 == 1)
  10668. ? 1 : -1];
  10669. #ifdef __MINGW32__
  10670. return !fseeko64;
  10671. return !ftello64;
  10672. #else
  10673. return !fseeko;
  10674. return !ftello;
  10675. #endif
  10676. ; return 0; }
  10677. EOF
  10678. if { (eval echo configure:13375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10679. rm -rf conftest*
  10680. ac_cv_largefiles=yes
  10681. else
  10682. echo "configure: failed program was:" >&5
  10683. cat conftest.$ac_ext >&5
  10684. rm -rf conftest*
  10685. ac_cv_largefiles=no
  10686. fi
  10687. rm -f conftest*
  10688. echo "$ac_t""$ac_cv_largefiles" 1>&6
  10689. if test $ac_cv_largefiles = yes; then
  10690. cat >> confdefs.h <<\EOF
  10691. #define HAVE_LARGEFILES 1
  10692. EOF
  10693. fi
  10694. USE_LARGEFILES=
  10695. if test $ac_cv_largefiles = yes; then
  10696. USE_LARGEFILES=1
  10697. fi
  10698. # Done large file support
  10699. # Enable wxWidgets support (for wxGUI)
  10700. echo $ac_n "checking whether to use wxWidgets""... $ac_c" 1>&6
  10701. echo "configure:13404: checking whether to use wxWidgets" >&5
  10702. WXVERSION=
  10703. WXWIDGETSCXXFLAGS=
  10704. WXWIDGETSCPPFLAGS=
  10705. WXWIDGETSLIB=
  10706. USE_WXWIDGETS=
  10707. MACOSX_ARCHS_WXPYTHON=
  10708. if test "$with_wxwidgets" = "no" ; then
  10709. echo "$ac_t""no" 1>&6
  10710. else
  10711. echo "$ac_t""yes" 1>&6
  10712. USE_WXWIDGETS="1"
  10713. if test "$with_wxwidgets" != "yes" ; then
  10714. WX_CONFIG="$with_wxwidgets"
  10715. fi
  10716. # Extract the first word of "wx-config", so it can be a program name with args.
  10717. set dummy wx-config; ac_word=$2
  10718. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  10719. echo "configure:13425: checking for $ac_word" >&5
  10720. case "$WX_CONFIG" in
  10721. /*)
  10722. ac_cv_path_WX_CONFIG="$WX_CONFIG" # Let the user override the test with a path.
  10723. ;;
  10724. ?:/*)
  10725. ac_cv_path_WX_CONFIG="$WX_CONFIG" # Let the user override the test with a dos path.
  10726. ;;
  10727. *)
  10728. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  10729. ac_dummy="$PATH"
  10730. for ac_dir in $ac_dummy; do
  10731. test -z "$ac_dir" && ac_dir=.
  10732. if test -f $ac_dir/$ac_word; then
  10733. ac_cv_path_WX_CONFIG="$ac_dir/$ac_word"
  10734. break
  10735. fi
  10736. done
  10737. IFS="$ac_save_ifs"
  10738. test -z "$ac_cv_path_WX_CONFIG" && ac_cv_path_WX_CONFIG="no"
  10739. ;;
  10740. esac
  10741. WX_CONFIG="$ac_cv_path_WX_CONFIG"
  10742. if test -n "$WX_CONFIG"; then
  10743. echo "$ac_t""$WX_CONFIG" 1>&6
  10744. else
  10745. echo "$ac_t""no" 1>&6
  10746. fi
  10747. if test "$WX_CONFIG" = "no" ; then
  10748. { echo "configure: error: *** couldn't find wx-config
  10749. wxWidgets must be installed on your system.
  10750. Please check that wx-config is in path, the directory
  10751. where wxWidgets libraries are installed (returned by
  10752. 'wx-config --libs' or 'wx-config --static --libs' command)
  10753. is in LD_LIBRARY_PATH or equivalent variable and
  10754. wxWidgets version is 2.8.1 or above." 1>&2; exit 1; }
  10755. fi
  10756. # Check wxWidgets version
  10757. REQWX="2.8.1"
  10758. echo $ac_n "checking wxWidgets version""... $ac_c" 1>&6
  10759. echo "configure:13473: checking wxWidgets version" >&5
  10760. if WXVERSION=`"$WX_CONFIG" --version`; then
  10761. echo "$ac_t""$WXVERSION" 1>&6
  10762. else
  10763. echo "$ac_t""not found" 1>&6
  10764. { echo "configure: error: wxWidgets is required." 1>&2; exit 1; }
  10765. fi
  10766. if test `expr "$WXVERSION" \< "$REQWX"` = 1 ; then
  10767. { echo "configure: error: *** wxWidgets "$REQWX" or later is required." 1>&2; exit 1; }
  10768. fi
  10769. # With wxWidgets includes directory
  10770. WXWIDGETSCXXFLAGS=`"$WX_CONFIG" --cxxflags`
  10771. WXWIDGETSCPPFLAGS=`"$WX_CONFIG" --cppflags`
  10772. ac_save_cppflags="$CPPFLAGS"
  10773. CPPFLAGS="$WXWIDGETSCPPFLAGS $CPPFLAGS"
  10774. for ac_hdr in wx/wxprec.h
  10775. do
  10776. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10777. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10778. echo "configure:13496: checking for $ac_hdr" >&5
  10779. cat > conftest.$ac_ext <<EOF
  10780. #line 13499 "configure"
  10781. #include "confdefs.h"
  10782. #include <$ac_hdr>
  10783. EOF
  10784. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10785. { (eval echo configure:13504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10786. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10787. if test -z "$ac_err"; then
  10788. rm -rf conftest*
  10789. eval "ac_cv_header_$ac_safe=yes"
  10790. else
  10791. echo "$ac_err" >&5
  10792. echo "configure: failed program was:" >&5
  10793. cat conftest.$ac_ext >&5
  10794. rm -rf conftest*
  10795. eval "ac_cv_header_$ac_safe=no"
  10796. fi
  10797. rm -f conftest*
  10798. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10799. echo "$ac_t""yes" 1>&6
  10800. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10801. cat >> confdefs.h <<EOF
  10802. #define $ac_tr_hdr 1
  10803. EOF
  10804. else
  10805. echo "$ac_t""no" 1>&6
  10806. { echo "configure: error: *** Unable to locate wxWidgets includes." 1>&2; exit 1; }
  10807. fi
  10808. done
  10809. CPPFLAGS=$ac_save_cppflags
  10810. # With wxWidgets library directory
  10811. WXWIDGETSLIB=`"$WX_CONFIG" --libs`
  10812. # shouldn't have arch flags in C/LD flags on OSX
  10813. for a in i386 ppc x86_64 ppc64
  10814. do
  10815. WXWIDGETSCXXFLAGS=`echo "$WXWIDGETSCXXFLAGS" | sed "s/-arch *$a//g"`
  10816. WXWIDGETSCPPFLAGS=`echo "$WXWIDGETSCPPFLAGS" | sed "s/-arch *$a//g"`
  10817. WXWIDGETSLIB=`echo "$WXWIDGETSLIB" | sed "s/-arch *$a//g"`
  10818. done
  10819. # check for available OSX archs in wxPython
  10820. if test -n "$MACOSX_ARCHS" ; then
  10821. wxver=`"$WX_CONFIG" --version`
  10822. wxlib=`"$WX_CONFIG" --prefix`/lib/lib`"$WX_CONFIG" --basename`-`echo "$wxver" | cut -d . -f1,2`.dylib
  10823. wxlibinfo=`file "$wxlib"`
  10824. for a in i386 ppc x86_64 ppc64
  10825. do
  10826. # add only if in MACOSX_ARCHS
  10827. if test -n "`echo \"$wxlibinfo\" | grep \"library $a\"`" ; then
  10828. if test -n "`echo \"$MACOSX_ARCHS\" | grep $a`" ; then
  10829. MACOSX_ARCHS_WXPYTHON="$MACOSX_ARCHS_WXPYTHON -arch $a"
  10830. fi
  10831. fi
  10832. done
  10833. fi
  10834. fi # $USE_WXWIDGETS
  10835. # Done checking wxWidgets
  10836. USE_TERMIO=
  10837. STRIPFLAG=
  10838. GRASS_HOME="${DSTDIR}"
  10839. trap '' 1 2 15
  10840. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  10841. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10842. # Let make expand exec_prefix.
  10843. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10844. # Any assignment to VPATH causes Sun make to only execute
  10845. # the first set of double-colon rules, so remove it if not needed.
  10846. # If there is a colon in the path, we need to keep it.
  10847. if test "x$srcdir" = x.; then
  10848. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  10849. fi
  10850. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  10851. DEFS=-DHAVE_CONFIG_H
  10852. # Without the "./", some shells look in PATH for config.status.
  10853. : ${CONFIG_STATUS=./config.status}
  10854. echo creating $CONFIG_STATUS
  10855. rm -f $CONFIG_STATUS
  10856. cat > $CONFIG_STATUS <<EOF
  10857. #! /bin/sh
  10858. # Generated automatically by configure.
  10859. # Run this file to recreate the current configuration.
  10860. # This directory was configured as follows,
  10861. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  10862. #
  10863. # $0 $ac_configure_args
  10864. #
  10865. # Compiler output produced by configure, useful for debugging
  10866. # configure, is in ./config.log if it exists.
  10867. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  10868. for ac_option
  10869. do
  10870. case "\$ac_option" in
  10871. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10872. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  10873. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  10874. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  10875. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  10876. exit 0 ;;
  10877. -help | --help | --hel | --he | --h)
  10878. echo "\$ac_cs_usage"; exit 0 ;;
  10879. *) echo "\$ac_cs_usage"; exit 1 ;;
  10880. esac
  10881. done
  10882. ac_given_srcdir=$srcdir
  10883. ac_given_INSTALL="$INSTALL"
  10884. 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
  10885. EOF
  10886. cat >> $CONFIG_STATUS <<EOF
  10887. # Protect against being on the right side of a sed subst in config.status.
  10888. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  10889. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  10890. $ac_vpsub
  10891. $extrasub
  10892. s%@SHELL@%$SHELL%g
  10893. s%@CFLAGS@%$CFLAGS%g
  10894. s%@CPPFLAGS@%$CPPFLAGS%g
  10895. s%@CXXFLAGS@%$CXXFLAGS%g
  10896. s%@FFLAGS@%$FFLAGS%g
  10897. s%@DEFS@%$DEFS%g
  10898. s%@LDFLAGS@%$LDFLAGS%g
  10899. s%@LIBS@%$LIBS%g
  10900. s%@exec_prefix@%$exec_prefix%g
  10901. s%@prefix@%$prefix%g
  10902. s%@program_transform_name@%$program_transform_name%g
  10903. s%@bindir@%$bindir%g
  10904. s%@sbindir@%$sbindir%g
  10905. s%@libexecdir@%$libexecdir%g
  10906. s%@datadir@%$datadir%g
  10907. s%@sysconfdir@%$sysconfdir%g
  10908. s%@sharedstatedir@%$sharedstatedir%g
  10909. s%@localstatedir@%$localstatedir%g
  10910. s%@libdir@%$libdir%g
  10911. s%@includedir@%$includedir%g
  10912. s%@oldincludedir@%$oldincludedir%g
  10913. s%@infodir@%$infodir%g
  10914. s%@mandir@%$mandir%g
  10915. s%@host@%$host%g
  10916. s%@host_alias@%$host_alias%g
  10917. s%@host_cpu@%$host_cpu%g
  10918. s%@host_vendor@%$host_vendor%g
  10919. s%@host_os@%$host_os%g
  10920. s%@CC@%$CC%g
  10921. s%@EXEEXT@%$EXEEXT%g
  10922. s%@MINGW32@%$MINGW32%g
  10923. s%@BINDIR@%$BINDIR%g
  10924. s%@pwd@%$pwd%g
  10925. s%@SRCDIR@%$SRCDIR%g
  10926. s%@DSTDIR@%$DSTDIR%g
  10927. s%@ARCH@%$ARCH%g
  10928. s%@GISBASE@%$GISBASE%g
  10929. s%@GRASS_BIN@%$GRASS_BIN%g
  10930. s%@SVN_VERSION@%$SVN_VERSION%g
  10931. s%@GRASS_VERSION_FILE@%$GRASS_VERSION_FILE%g
  10932. s%@GRASS_VERSION_MAJOR@%$GRASS_VERSION_MAJOR%g
  10933. s%@GRASS_VERSION_MINOR@%$GRASS_VERSION_MINOR%g
  10934. s%@GRASS_VERSION_RELEASE@%$GRASS_VERSION_RELEASE%g
  10935. s%@GRASS_VERSION_NUMBER@%$GRASS_VERSION_NUMBER%g
  10936. s%@GRASS_VERSION_DATE@%$GRASS_VERSION_DATE%g
  10937. s%@GRASS_VERSION_SVN@%$GRASS_VERSION_SVN%g
  10938. s%@NAME_VER@%$NAME_VER%g
  10939. s%@LIB_VER@%$LIB_VER%g
  10940. s%@MACOSX_APP@%$MACOSX_APP%g
  10941. s%@MACOSX_ARCHS@%$MACOSX_ARCHS%g
  10942. s%@MACOSX_SDK@%$MACOSX_SDK%g
  10943. s%@INSTDIR@%$INSTDIR%g
  10944. s%@GRASS_LIBRARY_TYPE@%$GRASS_LIBRARY_TYPE%g
  10945. s%@LD_SEARCH_FLAGS@%$LD_SEARCH_FLAGS%g
  10946. s%@LD_LIBRARY_PATH_VAR@%$LD_LIBRARY_PATH_VAR%g
  10947. s%@SHLIB_LD@%$SHLIB_LD%g
  10948. s%@SHLIB_LD_FLAGS@%$SHLIB_LD_FLAGS%g
  10949. s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
  10950. s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
  10951. s%@STLIB_LD@%$STLIB_LD%g
  10952. s%@STLIB_SUFFIX@%$STLIB_SUFFIX%g
  10953. s%@INCLUDE_DIRS@%$INCLUDE_DIRS%g
  10954. s%@LIBRARY_DIRS@%$LIBRARY_DIRS%g
  10955. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  10956. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  10957. s%@INSTALL_DATA@%$INSTALL_DATA%g
  10958. s%@LEX@%$LEX%g
  10959. s%@LEXLIB@%$LEXLIB%g
  10960. s%@LEXPATH@%$LEXPATH%g
  10961. s%@YACC@%$YACC%g
  10962. s%@YACCPATH@%$YACCPATH%g
  10963. s%@RANLIB@%$RANLIB%g
  10964. s%@AR@%$AR%g
  10965. s%@ENV@%$ENV%g
  10966. s%@PERL@%$PERL%g
  10967. s%@CPP@%$CPP%g
  10968. s%@CROSS_COMPILING@%$CROSS_COMPILING%g
  10969. s%@X_CFLAGS@%$X_CFLAGS%g
  10970. s%@X_LIBS@%$X_LIBS%g
  10971. s%@X_PRE_LIBS@%$X_PRE_LIBS%g
  10972. s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  10973. s%@XLIB@%$XLIB%g
  10974. s%@XTLIB@%$XTLIB%g
  10975. s%@USE_X11@%$USE_X11%g
  10976. s%@DBMIEXTRALIB@%$DBMIEXTRALIB%g
  10977. s%@HAVE_ASPRINTF@%$HAVE_ASPRINTF%g
  10978. s%@MATHLIB@%$MATHLIB%g
  10979. s%@DLLIB@%$DLLIB%g
  10980. s%@ICONVLIB@%$ICONVLIB%g
  10981. s%@SOCKLIB@%$SOCKLIB%g
  10982. s%@HAVE_SOCKET@%$HAVE_SOCKET%g
  10983. s%@ZLIBINCPATH@%$ZLIBINCPATH%g
  10984. s%@ZLIBLIBPATH@%$ZLIBLIBPATH%g
  10985. s%@ZLIB@%$ZLIB%g
  10986. s%@PROJINC@%$PROJINC%g
  10987. s%@PROJLIB@%$PROJLIB%g
  10988. s%@PROJSHARE@%$PROJSHARE%g
  10989. s%@NAD2BIN@%$NAD2BIN%g
  10990. s%@REGEXINCPATH@%$REGEXINCPATH%g
  10991. s%@REGEXLIBPATH@%$REGEXLIBPATH%g
  10992. s%@REGEXLIB@%$REGEXLIB%g
  10993. s%@USE_REGEX@%$USE_REGEX%g
  10994. s%@READLINEINCPATH@%$READLINEINCPATH%g
  10995. s%@READLINELIBPATH@%$READLINELIBPATH%g
  10996. s%@READLINELIB@%$READLINELIB%g
  10997. s%@HISTORYLIB@%$HISTORYLIB%g
  10998. s%@GDAL_CONFIG@%$GDAL_CONFIG%g
  10999. s%@GDAL_LIBS@%$GDAL_LIBS%g
  11000. s%@GDAL_CFLAGS@%$GDAL_CFLAGS%g
  11001. s%@USE_GDAL@%$USE_GDAL%g
  11002. s%@USE_OGR@%$USE_OGR%g
  11003. s%@LIBLAS_CONFIG@%$LIBLAS_CONFIG%g
  11004. s%@LIBLAS_LIBS@%$LIBLAS_LIBS%g
  11005. s%@LIBLAS_CFLAGS@%$LIBLAS_CFLAGS%g
  11006. s%@LIBLAS_INC@%$LIBLAS_INC%g
  11007. s%@USE_LIBLAS@%$USE_LIBLAS%g
  11008. s%@NETCDF_CONFIG@%$NETCDF_CONFIG%g
  11009. s%@NETCDF_LIBS@%$NETCDF_LIBS%g
  11010. s%@NETCDF_CFLAGS@%$NETCDF_CFLAGS%g
  11011. s%@USE_NETCDF@%$USE_NETCDF%g
  11012. s%@GEOS_CONFIG@%$GEOS_CONFIG%g
  11013. s%@GEOS_LIBS@%$GEOS_LIBS%g
  11014. s%@GEOS_CFLAGS@%$GEOS_CFLAGS%g
  11015. s%@USE_GEOS@%$USE_GEOS%g
  11016. s%@TIFF_INCLUDE_DIRS@%$TIFF_INCLUDE_DIRS%g
  11017. s%@TIFF_LIBRARY_DIRS@%$TIFF_LIBRARY_DIRS%g
  11018. s%@TIFFLIB@%$TIFFLIB%g
  11019. s%@PNGINC@%$PNGINC%g
  11020. s%@PNGLIB@%$PNGLIB%g
  11021. s%@USE_PNG@%$USE_PNG%g
  11022. s%@USE_POSTGRES@%$USE_POSTGRES%g
  11023. s%@PQINCPATH@%$PQINCPATH%g
  11024. s%@PQLIBPATH@%$PQLIBPATH%g
  11025. s%@PQLIB@%$PQLIB%g
  11026. s%@MYSQLD_CONFIG@%$MYSQLD_CONFIG%g
  11027. s%@USE_MYSQL@%$USE_MYSQL%g
  11028. s%@MYSQLINCPATH@%$MYSQLINCPATH%g
  11029. s%@MYSQLLIBPATH@%$MYSQLLIBPATH%g
  11030. s%@MYSQLLIB@%$MYSQLLIB%g
  11031. s%@MYSQLDLIB@%$MYSQLDLIB%g
  11032. s%@USE_SQLITE@%$USE_SQLITE%g
  11033. s%@SQLITEINCPATH@%$SQLITEINCPATH%g
  11034. s%@SQLITELIBPATH@%$SQLITELIBPATH%g
  11035. s%@SQLITELIB@%$SQLITELIB%g
  11036. s%@USE_FFMPEG@%$USE_FFMPEG%g
  11037. s%@FFMPEGINCPATH@%$FFMPEGINCPATH%g
  11038. s%@FFMPEGLIBPATH@%$FFMPEGLIBPATH%g
  11039. s%@FFMPEGLIB@%$FFMPEGLIB%g
  11040. s%@USE_OPENGL@%$USE_OPENGL%g
  11041. s%@OPENGL_X11@%$OPENGL_X11%g
  11042. s%@OPENGL_AQUA@%$OPENGL_AQUA%g
  11043. s%@OPENGL_WINDOWS@%$OPENGL_WINDOWS%g
  11044. s%@OPENGLINC@%$OPENGLINC%g
  11045. s%@OPENGLLIB@%$OPENGLLIB%g
  11046. s%@OPENGLULIB@%$OPENGLULIB%g
  11047. s%@ODBCINC@%$ODBCINC%g
  11048. s%@ODBCLIB@%$ODBCLIB%g
  11049. s%@FFTWINC@%$FFTWINC%g
  11050. s%@FFTWLIB@%$FFTWLIB%g
  11051. s%@BLASLIB@%$BLASLIB%g
  11052. s%@BLASINC@%$BLASINC%g
  11053. s%@LAPACKLIB@%$LAPACKLIB%g
  11054. s%@LAPACKINC@%$LAPACKINC%g
  11055. s%@CAIRO_HAS_XRENDER@%$CAIRO_HAS_XRENDER%g
  11056. s%@CAIRO_HAS_XRENDER_SURFACE@%$CAIRO_HAS_XRENDER_SURFACE%g
  11057. s%@CAIROINC@%$CAIROINC%g
  11058. s%@CAIROLIB@%$CAIROLIB%g
  11059. s%@USE_CAIRO@%$USE_CAIRO%g
  11060. s%@FTINC@%$FTINC%g
  11061. s%@FTLIB@%$FTLIB%g
  11062. s%@INTLLIB@%$INTLLIB%g
  11063. s%@HAVE_NLS@%$HAVE_NLS%g
  11064. s%@CXX@%$CXX%g
  11065. s%@OPENDWGINCPATH@%$OPENDWGINCPATH%g
  11066. s%@OPENDWGLIBPATH@%$OPENDWGLIBPATH%g
  11067. s%@OPENDWGLIB@%$OPENDWGLIB%g
  11068. s%@USE_OPENDWG@%$USE_OPENDWG%g
  11069. s%@PTHREADINCPATH@%$PTHREADINCPATH%g
  11070. s%@PTHREADLIBPATH@%$PTHREADLIBPATH%g
  11071. s%@PTHREADLIB@%$PTHREADLIB%g
  11072. s%@USE_PTHREAD@%$USE_PTHREAD%g
  11073. s%@OMPINCPATH@%$OMPINCPATH%g
  11074. s%@OMPLIBPATH@%$OMPLIBPATH%g
  11075. s%@OMPLIB@%$OMPLIB%g
  11076. s%@OMPCFLAGS@%$OMPCFLAGS%g
  11077. s%@USE_OPENMP@%$USE_OPENMP%g
  11078. s%@USE_LARGEFILES@%$USE_LARGEFILES%g
  11079. s%@WX_CONFIG@%$WX_CONFIG%g
  11080. s%@WXVERSION@%$WXVERSION%g
  11081. s%@WXWIDGETSCXXFLAGS@%$WXWIDGETSCXXFLAGS%g
  11082. s%@WXWIDGETSCPPFLAGS@%$WXWIDGETSCPPFLAGS%g
  11083. s%@WXWIDGETSLIB@%$WXWIDGETSLIB%g
  11084. s%@USE_WXWIDGETS@%$USE_WXWIDGETS%g
  11085. s%@MACOSX_ARCHS_WXPYTHON@%$MACOSX_ARCHS_WXPYTHON%g
  11086. s%@USE_TERMIO@%$USE_TERMIO%g
  11087. s%@STRIPFLAG@%$STRIPFLAG%g
  11088. s%@GRASS_HOME@%$GRASS_HOME%g
  11089. CEOF
  11090. EOF
  11091. cat >> $CONFIG_STATUS <<\EOF
  11092. # Split the substitutions into bite-sized pieces for seds with
  11093. # small command number limits, like on Digital OSF/1 and HP-UX.
  11094. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  11095. ac_file=1 # Number of current file.
  11096. ac_beg=1 # First line for current file.
  11097. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  11098. ac_more_lines=:
  11099. ac_sed_cmds=""
  11100. while $ac_more_lines; do
  11101. if test $ac_beg -gt 1; then
  11102. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  11103. else
  11104. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  11105. fi
  11106. if test ! -s conftest.s$ac_file; then
  11107. ac_more_lines=false
  11108. rm -f conftest.s$ac_file
  11109. else
  11110. if test -z "$ac_sed_cmds"; then
  11111. ac_sed_cmds="sed -f conftest.s$ac_file"
  11112. else
  11113. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  11114. fi
  11115. ac_file=`expr $ac_file + 1`
  11116. ac_beg=$ac_end
  11117. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  11118. fi
  11119. done
  11120. if test -z "$ac_sed_cmds"; then
  11121. ac_sed_cmds=cat
  11122. fi
  11123. EOF
  11124. cat >> $CONFIG_STATUS <<EOF
  11125. CONFIG_FILES=\${CONFIG_FILES-"include/Make/Platform.make include/Make/Doxyfile_arch_html include/Make/Doxyfile_arch_latex include/version.h grass.pc"}
  11126. EOF
  11127. cat >> $CONFIG_STATUS <<\EOF
  11128. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  11129. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11130. case "$ac_file" in
  11131. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  11132. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11133. *) ac_file_in="${ac_file}.in" ;;
  11134. esac
  11135. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  11136. # Remove last slash and all that follows it. Not all systems have dirname.
  11137. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  11138. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  11139. # The file is in a subdirectory.
  11140. test ! -d "$ac_dir" && mkdir "$ac_dir"
  11141. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  11142. # A "../" for each directory in $ac_dir_suffix.
  11143. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  11144. else
  11145. ac_dir_suffix= ac_dots=
  11146. fi
  11147. case "$ac_given_srcdir" in
  11148. .) srcdir=.
  11149. if test -z "$ac_dots"; then top_srcdir=.
  11150. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  11151. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  11152. *) # Relative path.
  11153. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  11154. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  11155. esac
  11156. case "$ac_given_INSTALL" in
  11157. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  11158. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  11159. esac
  11160. echo creating "$ac_file"
  11161. rm -f "$ac_file"
  11162. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  11163. case "$ac_file" in
  11164. *Makefile*) ac_comsub="1i\\
  11165. # $configure_input" ;;
  11166. *) ac_comsub= ;;
  11167. esac
  11168. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  11169. sed -e "$ac_comsub
  11170. s%@configure_input@%$configure_input%g
  11171. s%@srcdir@%$srcdir%g
  11172. s%@top_srcdir@%$top_srcdir%g
  11173. s%@INSTALL@%$INSTALL%g
  11174. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  11175. fi; done
  11176. rm -f conftest.s*
  11177. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11178. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11179. #
  11180. # ac_d sets the value in "#define NAME VALUE" lines.
  11181. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11182. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  11183. ac_dC='\3'
  11184. ac_dD='%g'
  11185. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  11186. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11187. ac_uB='\([ ]\)%\1#\2define\3'
  11188. ac_uC=' '
  11189. ac_uD='\4%g'
  11190. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11191. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11192. ac_eB='$%\1#\2define\3'
  11193. ac_eC=' '
  11194. ac_eD='%g'
  11195. if test "${CONFIG_HEADERS+set}" != set; then
  11196. EOF
  11197. cat >> $CONFIG_STATUS <<EOF
  11198. CONFIG_HEADERS="include/config.h"
  11199. EOF
  11200. cat >> $CONFIG_STATUS <<\EOF
  11201. fi
  11202. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  11203. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11204. case "$ac_file" in
  11205. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  11206. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11207. *) ac_file_in="${ac_file}.in" ;;
  11208. esac
  11209. echo creating $ac_file
  11210. rm -f conftest.frag conftest.in conftest.out
  11211. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  11212. cat $ac_file_inputs > conftest.in
  11213. EOF
  11214. # Transform confdefs.h into a sed script conftest.vals that substitutes
  11215. # the proper values into config.h.in to produce config.h. And first:
  11216. # Protect against being on the right side of a sed subst in config.status.
  11217. # Protect against being in an unquoted here document in config.status.
  11218. rm -f conftest.vals
  11219. cat > conftest.hdr <<\EOF
  11220. s/[\\&%]/\\&/g
  11221. s%[\\$`]%\\&%g
  11222. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  11223. s%ac_d%ac_u%gp
  11224. s%ac_u%ac_e%gp
  11225. EOF
  11226. sed -n -f conftest.hdr confdefs.h > conftest.vals
  11227. rm -f conftest.hdr
  11228. # This sed command replaces #undef with comments. This is necessary, for
  11229. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11230. # on some systems where configure will not decide to define it.
  11231. cat >> conftest.vals <<\EOF
  11232. s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  11233. EOF
  11234. # Break up conftest.vals because some shells have a limit on
  11235. # the size of here documents, and old seds have small limits too.
  11236. rm -f conftest.tail
  11237. while :
  11238. do
  11239. ac_lines=`grep -c . conftest.vals`
  11240. # grep -c gives empty output for an empty file on some AIX systems.
  11241. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  11242. # Write a limited-size here document to conftest.frag.
  11243. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  11244. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  11245. echo 'CEOF
  11246. sed -f conftest.frag conftest.in > conftest.out
  11247. rm -f conftest.in
  11248. mv conftest.out conftest.in
  11249. ' >> $CONFIG_STATUS
  11250. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  11251. rm -f conftest.vals
  11252. mv conftest.tail conftest.vals
  11253. done
  11254. rm -f conftest.vals
  11255. cat >> $CONFIG_STATUS <<\EOF
  11256. rm -f conftest.frag conftest.h
  11257. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  11258. cat conftest.in >> conftest.h
  11259. rm -f conftest.in
  11260. if cmp -s $ac_file conftest.h 2>/dev/null; then
  11261. echo "$ac_file is unchanged"
  11262. rm -f conftest.h
  11263. else
  11264. # Remove last slash and all that follows it. Not all systems have dirname.
  11265. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  11266. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  11267. # The file is in a subdirectory.
  11268. test ! -d "$ac_dir" && mkdir "$ac_dir"
  11269. fi
  11270. rm -f $ac_file
  11271. mv conftest.h $ac_file
  11272. fi
  11273. fi; done
  11274. EOF
  11275. cat >> $CONFIG_STATUS <<EOF
  11276. EOF
  11277. cat >> $CONFIG_STATUS <<\EOF
  11278. exit 0
  11279. EOF
  11280. chmod +x $CONFIG_STATUS
  11281. rm -fr confdefs* $ac_clean_files
  11282. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  11283. echo "Copying config.status to config.status.${ARCH}"
  11284. cp -f config.status config.status.${ARCH}
  11285. # Display configuration status
  11286. echo ""
  11287. echo "GRASS is now configured for: ${host}"
  11288. echo ""
  11289. echo " Source directory: ${SRCDIR}"
  11290. echo " Build directory: ${DSTDIR}"
  11291. echo " Installation directory: ${INSTDIR}"
  11292. echo " Startup script in directory:${bindir}"
  11293. echo " C compiler: ${CC} ${CFLAGS}"
  11294. echo " C++ compiler: ${CXX} ${CXXFLAGS}"
  11295. echo " Building shared libraries: ${shared_ok}"
  11296. echo " OpenGL platform: ${OPENGL_TYPE}"
  11297. echo ""
  11298. echo " MacOSX application: `if test -n "${MACOSX_APP}" ; then echo yes ; else echo no ; fi`"
  11299. echo " MacOSX architectures: ${MACOSX_ARCHS}"
  11300. echo " MacOSX SDK: ${MACOSX_SDK}"
  11301. echo ""
  11302. echo " BLAS support: `if test -n "${USE_BLAS}" ; then echo yes ; else echo no ; fi`"
  11303. echo " C++ support: `if test -n "${USE_CXX}" ; then echo yes ; else echo no ; fi`"
  11304. echo " Cairo support: `if test -n "${USE_CAIRO}" ; then echo yes ; else echo no ; fi`"
  11305. echo " DWG support: `if test -n "${USE_OPENDWG}" ; then echo yes ; else echo no ; fi`"
  11306. echo " FFMPEG support: `if test -n "${USE_FFMPEG}" ; then echo yes ; else echo no ; fi`"
  11307. echo " FFTW support: `if test -n "${USE_FFTW}" ; then echo yes ; else echo no ; fi`"
  11308. echo " FreeType support: `if test -n "${USE_FREETYPE}" ; then echo yes ; else echo no ; fi`"
  11309. echo " GDAL support: `if test -n "${USE_GDAL}" ; then echo yes ; else echo no ; fi`"
  11310. echo " NETCDF support: `if test -n "${USE_NETCDF}" ; then echo yes ; else echo no ; fi`"
  11311. echo " GEOS support: `if test -n "${USE_GEOS}" ; then echo yes ; else echo no ; fi`"
  11312. echo " LAPACK support: `if test -n "${USE_LAPACK}" ; then echo yes ; else echo no ; fi`"
  11313. echo " Large File support (LFS): `if test -n "${USE_LARGEFILES}" ; then echo yes ; else echo no ; fi`"
  11314. echo " libLAS support: `if test -n "${USE_LIBLAS}" ; then echo yes ; else echo no ; fi`"
  11315. echo " MySQL support: `if test -n "${USE_MYSQL}" ; then echo yes ; else echo no ; fi`"
  11316. echo " NLS support: `if test -n "${USE_NLS}" ; then echo yes ; else echo no ; fi`"
  11317. echo " ODBC support: `if test -n "${USE_ODBC}" ; then echo yes ; else echo no ; fi`"
  11318. echo " OGR support: `if test -n "${USE_OGR}" ; then echo yes ; else echo no ; fi`"
  11319. echo " OpenGL support: `if test -n "${USE_OPENGL}" ; then echo yes ; else echo no ; fi`"
  11320. echo " OpenMP support: `if test -n "${USE_OPENMP}" ; then echo yes ; else echo no ; fi`"
  11321. echo " PNG support: `if test -n "${USE_PNG}" ; then echo yes ; else echo no ; fi`"
  11322. echo " POSIX thread support: `if test -n "${USE_PTHREAD}" ; then echo yes ; else echo no ; fi`"
  11323. echo " PostgreSQL support: `if test -n "${USE_POSTGRES}" ; then echo yes ; else echo no ; fi`"
  11324. echo " Readline support: `if test -n "${USE_READLINE}" ; then echo yes ; else echo no ; fi`"
  11325. echo " Regex support: `if test -n "${USE_REGEX}" ; then echo yes ; else echo no ; fi`"
  11326. echo " SQLite support: `if test -n "${USE_SQLITE}" ; then echo yes ; else echo no ; fi`"
  11327. echo " TIFF support: `if test -n "${USE_TIFF}" ; then echo yes ; else echo no ; fi`"
  11328. echo " wxWidgets support: `if test -n "${USE_WXWIDGETS}" ; then echo yes ; else echo no ; fi`"
  11329. echo " X11 support: `if test -n "${USE_X11}" ; then echo yes ; else echo no ; fi`"
  11330. echo ""