configure 360 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060
  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_LD_LIBS=""
  1267. SHLIB_SUFFIX=""
  1268. SHLIB_LD=""
  1269. STLIB_LD='${AR} cr'
  1270. STLIB_SUFFIX='.a'
  1271. LDFLAGS=""
  1272. CC_SEARCH_FLAGS=""
  1273. LD_SEARCH_FLAGS=""
  1274. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1275. PLAT_OBJS=""
  1276. case $host in
  1277. *-linux-*)
  1278. SHLIB_CFLAGS="-fPIC"
  1279. SHLIB_LD_FLAGS=""
  1280. SHLIB_LD_LIBS='${LIBS}'
  1281. SHLIB_SUFFIX=".so"
  1282. SHLIB_LD="${CC} -shared"
  1283. LDFLAGS="-Wl,--export-dynamic"
  1284. CC_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
  1285. LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
  1286. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1287. ;;
  1288. *-pc-cygwin)
  1289. SHLIB_LD_LIBS='${LIBS}'
  1290. SHLIB_SUFFIX=".dll"
  1291. SHLIB_LD="${CC} -shared"
  1292. LDFLAGS="-Wl,--export-dynamic"
  1293. LD_LIBRARY_PATH_VAR="PATH"
  1294. ;;
  1295. *-pc-mingw32 | *-pc-msys)
  1296. SHLIB_LD_LIBS='${LIBS}'
  1297. SHLIB_SUFFIX=".dll"
  1298. SHLIB_LD="${CC} -shared"
  1299. LDFLAGS="-Wl,--export-dynamic,--enable-runtime-pseudo-reloc"
  1300. LD_LIBRARY_PATH_VAR="PATH"
  1301. ;;
  1302. *-apple-darwin*)
  1303. SHLIB_CFLAGS="-fno-common"
  1304. SHLIB_LD_LIBS='${LIBS}'
  1305. SHLIB_SUFFIX=".dylib"
  1306. 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}"
  1307. LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
  1308. ;;
  1309. *-sun-solaris*)
  1310. # Note: If _REENTRANT isn't defined, then Solaris
  1311. # won't define thread-safe library routines.
  1312. cat >> confdefs.h <<\EOF
  1313. #define _REENTRANT 1
  1314. EOF
  1315. cat >> confdefs.h <<\EOF
  1316. #define _POSIX_PTHREAD_SEMANTICS 1
  1317. EOF
  1318. # Note: need the LIBS below, otherwise Tk won't find Tcl's
  1319. # symbols when dynamically loaded into tclsh.
  1320. if test "$GCC" = "yes" ; then
  1321. SHLIB_CFLAGS="-fPIC"
  1322. SHLIB_LD="$CC -shared"
  1323. CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
  1324. else
  1325. SHLIB_CFLAGS="-KPIC"
  1326. SHLIB_LD="/usr/ccs/bin/ld -G -z text"
  1327. CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
  1328. fi
  1329. SHLIB_SUFFIX=".so"
  1330. SHLIB_LD_LIBS='${LIBS}'
  1331. LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
  1332. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1333. ;;
  1334. *)
  1335. { echo "configure: error: ***Unknown platform: $host***" 1>&2; exit 1; }
  1336. ;;
  1337. esac
  1338. LDFLAGS="${ac_save_ldflags} $LDFLAGS"
  1339. # Enable options
  1340. # Check whether --enable-w11 or --disable-w11 was given.
  1341. if test "${enable_w11+set}" = set; then
  1342. enableval="$enable_w11"
  1343. :
  1344. else
  1345. enable_w11=no
  1346. fi
  1347. # With options
  1348. # Check whether --with-cxx or --without-cxx was given.
  1349. if test "${with_cxx+set}" = set; then
  1350. withval="$with_cxx"
  1351. :
  1352. else
  1353. with_cxx=yes
  1354. fi
  1355. #LOC_ARG_WITH(g77, GNU Fortran 77, no)
  1356. # Check whether --with-macosx-archs or --without-macosx-archs was given.
  1357. if test "${with_macosx_archs+set}" = set; then
  1358. withval="$with_macosx_archs"
  1359. :
  1360. else
  1361. with_macosx_archs="no"
  1362. fi
  1363. # Check whether --with-macosx-sdk or --without-macosx-sdk was given.
  1364. if test "${with_macosx_sdk+set}" = set; then
  1365. withval="$with_macosx_sdk"
  1366. :
  1367. else
  1368. with_macosx_sdk="no"
  1369. fi
  1370. # Check whether --with-tiff or --without-tiff was given.
  1371. if test "${with_tiff+set}" = set; then
  1372. withval="$with_tiff"
  1373. :
  1374. else
  1375. with_tiff=yes
  1376. fi
  1377. # Check whether --with-png or --without-png was given.
  1378. if test "${with_png+set}" = set; then
  1379. withval="$with_png"
  1380. :
  1381. else
  1382. with_png=yes
  1383. fi
  1384. # Check whether --with-postgres or --without-postgres was given.
  1385. if test "${with_postgres+set}" = set; then
  1386. withval="$with_postgres"
  1387. :
  1388. else
  1389. with_postgres=no
  1390. fi
  1391. # Check whether --with-mysql or --without-mysql was given.
  1392. if test "${with_mysql+set}" = set; then
  1393. withval="$with_mysql"
  1394. :
  1395. else
  1396. with_mysql=no
  1397. fi
  1398. # Check whether --with-sqlite or --without-sqlite was given.
  1399. if test "${with_sqlite+set}" = set; then
  1400. withval="$with_sqlite"
  1401. :
  1402. else
  1403. with_sqlite=no
  1404. fi
  1405. # Check whether --with-ffmpeg or --without-ffmpeg was given.
  1406. if test "${with_ffmpeg+set}" = set; then
  1407. withval="$with_ffmpeg"
  1408. :
  1409. else
  1410. with_ffmpeg=no
  1411. fi
  1412. # Check whether --with-opengl or --without-opengl was given.
  1413. if test "${with_opengl+set}" = set; then
  1414. withval="$with_opengl"
  1415. :
  1416. else
  1417. with_opengl=yes
  1418. fi
  1419. # Check whether --with-odbc or --without-odbc was given.
  1420. if test "${with_odbc+set}" = set; then
  1421. withval="$with_odbc"
  1422. :
  1423. else
  1424. with_odbc=no
  1425. fi
  1426. # Check whether --with-fftw or --without-fftw was given.
  1427. if test "${with_fftw+set}" = set; then
  1428. withval="$with_fftw"
  1429. :
  1430. else
  1431. with_fftw=yes
  1432. fi
  1433. # Check whether --with-blas or --without-blas was given.
  1434. if test "${with_blas+set}" = set; then
  1435. withval="$with_blas"
  1436. :
  1437. else
  1438. with_blas=no
  1439. fi
  1440. # Check whether --with-lapack or --without-lapack was given.
  1441. if test "${with_lapack+set}" = set; then
  1442. withval="$with_lapack"
  1443. :
  1444. else
  1445. with_lapack=no
  1446. fi
  1447. # Check whether --with-cairo or --without-cairo was given.
  1448. if test "${with_cairo+set}" = set; then
  1449. withval="$with_cairo"
  1450. :
  1451. else
  1452. with_cairo=yes
  1453. fi
  1454. # Check whether --with-freetype or --without-freetype was given.
  1455. if test "${with_freetype+set}" = set; then
  1456. withval="$with_freetype"
  1457. :
  1458. else
  1459. with_freetype=yes
  1460. fi
  1461. # Check whether --with-nls or --without-nls was given.
  1462. if test "${with_nls+set}" = set; then
  1463. withval="$with_nls"
  1464. :
  1465. else
  1466. with_nls=no
  1467. fi
  1468. # Check whether --with-readline or --without-readline was given.
  1469. if test "${with_readline+set}" = set; then
  1470. withval="$with_readline"
  1471. :
  1472. else
  1473. with_readline=no
  1474. fi
  1475. # Check whether --with-opendwg or --without-opendwg was given.
  1476. if test "${with_opendwg+set}" = set; then
  1477. withval="$with_opendwg"
  1478. :
  1479. else
  1480. with_opendwg=no
  1481. fi
  1482. # Check whether --with-regex or --without-regex was given.
  1483. if test "${with_regex+set}" = set; then
  1484. withval="$with_regex"
  1485. :
  1486. else
  1487. with_regex=yes
  1488. fi
  1489. # Check whether --with-pthread or --without-pthread was given.
  1490. if test "${with_pthread+set}" = set; then
  1491. withval="$with_pthread"
  1492. :
  1493. else
  1494. with_pthread=no
  1495. fi
  1496. # Check whether --with-openmp or --without-openmp was given.
  1497. if test "${with_openmp+set}" = set; then
  1498. withval="$with_openmp"
  1499. :
  1500. else
  1501. with_openmp=no
  1502. fi
  1503. # Check whether --with-gdal or --without-gdal was given.
  1504. if test "${with_gdal+set}" = set; then
  1505. withval="$with_gdal"
  1506. :
  1507. fi
  1508. # Check whether --with-liblas or --without-liblas was given.
  1509. if test "${with_liblas+set}" = set; then
  1510. withval="$with_liblas"
  1511. :
  1512. else
  1513. with_liblas="no"
  1514. fi
  1515. # Check whether --with-wxwidgets or --without-wxwidgets was given.
  1516. if test "${with_wxwidgets+set}" = set; then
  1517. withval="$with_wxwidgets"
  1518. :
  1519. else
  1520. with_wxwidgets="no"
  1521. fi
  1522. # Check whether --with-netcdf or --without-netcdf was given.
  1523. if test "${with_netcdf+set}" = set; then
  1524. withval="$with_netcdf"
  1525. :
  1526. else
  1527. with_netcdf="no"
  1528. fi
  1529. # With includes and libs options
  1530. # Check whether --with-geos or --without-geos was given.
  1531. if test "${with_geos+set}" = set; then
  1532. withval="$with_geos"
  1533. :
  1534. else
  1535. with_geos="no"
  1536. fi
  1537. # Check whether --with-includes or --without-includes was given.
  1538. if test "${with_includes+set}" = set; then
  1539. withval="$with_includes"
  1540. :
  1541. fi
  1542. # Check whether --with-libs or --without-libs was given.
  1543. if test "${with_libs+set}" = set; then
  1544. withval="$with_libs"
  1545. :
  1546. fi
  1547. # Check whether --with-zlib-includes or --without-zlib-includes was given.
  1548. if test "${with_zlib_includes+set}" = set; then
  1549. withval="$with_zlib_includes"
  1550. :
  1551. fi
  1552. # Check whether --with-zlib-libs or --without-zlib-libs was given.
  1553. if test "${with_zlib_libs+set}" = set; then
  1554. withval="$with_zlib_libs"
  1555. :
  1556. fi
  1557. # Check whether --with-readline-includes or --without-readline-includes was given.
  1558. if test "${with_readline_includes+set}" = set; then
  1559. withval="$with_readline_includes"
  1560. :
  1561. fi
  1562. # Check whether --with-readline-libs or --without-readline-libs was given.
  1563. if test "${with_readline_libs+set}" = set; then
  1564. withval="$with_readline_libs"
  1565. :
  1566. fi
  1567. # Check whether --with-tiff-includes or --without-tiff-includes was given.
  1568. if test "${with_tiff_includes+set}" = set; then
  1569. withval="$with_tiff_includes"
  1570. :
  1571. fi
  1572. # Check whether --with-tiff-libs or --without-tiff-libs was given.
  1573. if test "${with_tiff_libs+set}" = set; then
  1574. withval="$with_tiff_libs"
  1575. :
  1576. fi
  1577. # Check whether --with-png-includes or --without-png-includes was given.
  1578. if test "${with_png_includes+set}" = set; then
  1579. withval="$with_png_includes"
  1580. :
  1581. fi
  1582. # Check whether --with-png-libs or --without-png-libs was given.
  1583. if test "${with_png_libs+set}" = set; then
  1584. withval="$with_png_libs"
  1585. :
  1586. fi
  1587. # Check whether --with-postgres-includes or --without-postgres-includes was given.
  1588. if test "${with_postgres_includes+set}" = set; then
  1589. withval="$with_postgres_includes"
  1590. :
  1591. fi
  1592. # Check whether --with-postgres-libs or --without-postgres-libs was given.
  1593. if test "${with_postgres_libs+set}" = set; then
  1594. withval="$with_postgres_libs"
  1595. :
  1596. fi
  1597. # Check whether --with-mysql-includes or --without-mysql-includes was given.
  1598. if test "${with_mysql_includes+set}" = set; then
  1599. withval="$with_mysql_includes"
  1600. :
  1601. fi
  1602. # Check whether --with-mysql-libs or --without-mysql-libs was given.
  1603. if test "${with_mysql_libs+set}" = set; then
  1604. withval="$with_mysql_libs"
  1605. :
  1606. fi
  1607. # Check whether --with-sqlite-includes or --without-sqlite-includes was given.
  1608. if test "${with_sqlite_includes+set}" = set; then
  1609. withval="$with_sqlite_includes"
  1610. :
  1611. fi
  1612. # Check whether --with-sqlite-libs or --without-sqlite-libs was given.
  1613. if test "${with_sqlite_libs+set}" = set; then
  1614. withval="$with_sqlite_libs"
  1615. :
  1616. fi
  1617. # Check whether --with-ffmpeg-includes or --without-ffmpeg-includes was given.
  1618. if test "${with_ffmpeg_includes+set}" = set; then
  1619. withval="$with_ffmpeg_includes"
  1620. :
  1621. fi
  1622. # Check whether --with-ffmpeg-libs or --without-ffmpeg-libs was given.
  1623. if test "${with_ffmpeg_libs+set}" = set; then
  1624. withval="$with_ffmpeg_libs"
  1625. :
  1626. fi
  1627. # Check whether --with-opengl-includes or --without-opengl-includes was given.
  1628. if test "${with_opengl_includes+set}" = set; then
  1629. withval="$with_opengl_includes"
  1630. :
  1631. fi
  1632. # Check whether --with-opengl-libs or --without-opengl-libs was given.
  1633. if test "${with_opengl_libs+set}" = set; then
  1634. withval="$with_opengl_libs"
  1635. :
  1636. fi
  1637. # Check whether --with-opengl-framework or --without-opengl-framework was given.
  1638. if test "${with_opengl_framework+set}" = set; then
  1639. withval="$with_opengl_framework"
  1640. :
  1641. fi
  1642. # Check whether --with-odbc-includes or --without-odbc-includes was given.
  1643. if test "${with_odbc_includes+set}" = set; then
  1644. withval="$with_odbc_includes"
  1645. :
  1646. fi
  1647. # Check whether --with-odbc-libs or --without-odbc-libs was given.
  1648. if test "${with_odbc_libs+set}" = set; then
  1649. withval="$with_odbc_libs"
  1650. :
  1651. fi
  1652. # Check whether --with-fftw-includes or --without-fftw-includes was given.
  1653. if test "${with_fftw_includes+set}" = set; then
  1654. withval="$with_fftw_includes"
  1655. :
  1656. fi
  1657. # Check whether --with-fftw-libs or --without-fftw-libs was given.
  1658. if test "${with_fftw_libs+set}" = set; then
  1659. withval="$with_fftw_libs"
  1660. :
  1661. fi
  1662. # Check whether --with-blas-includes or --without-blas-includes was given.
  1663. if test "${with_blas_includes+set}" = set; then
  1664. withval="$with_blas_includes"
  1665. :
  1666. fi
  1667. # Check whether --with-blas-libs or --without-blas-libs was given.
  1668. if test "${with_blas_libs+set}" = set; then
  1669. withval="$with_blas_libs"
  1670. :
  1671. fi
  1672. # Check whether --with-lapack-includes or --without-lapack-includes was given.
  1673. if test "${with_lapack_includes+set}" = set; then
  1674. withval="$with_lapack_includes"
  1675. :
  1676. fi
  1677. # Check whether --with-lapack-libs or --without-lapack-libs was given.
  1678. if test "${with_lapack_libs+set}" = set; then
  1679. withval="$with_lapack_libs"
  1680. :
  1681. fi
  1682. # Check whether --with-cairo-includes or --without-cairo-includes was given.
  1683. if test "${with_cairo_includes+set}" = set; then
  1684. withval="$with_cairo_includes"
  1685. :
  1686. fi
  1687. # Check whether --with-cairo-libs or --without-cairo-libs was given.
  1688. if test "${with_cairo_libs+set}" = set; then
  1689. withval="$with_cairo_libs"
  1690. :
  1691. fi
  1692. # Check whether --with-cairo-ldflags or --without-cairo-ldflags was given.
  1693. if test "${with_cairo_ldflags+set}" = set; then
  1694. withval="$with_cairo_ldflags"
  1695. :
  1696. fi
  1697. # Check whether --with-freetype-includes or --without-freetype-includes was given.
  1698. if test "${with_freetype_includes+set}" = set; then
  1699. withval="$with_freetype_includes"
  1700. :
  1701. fi
  1702. # Check whether --with-freetype-libs or --without-freetype-libs was given.
  1703. if test "${with_freetype_libs+set}" = set; then
  1704. withval="$with_freetype_libs"
  1705. :
  1706. fi
  1707. # Check whether --with-proj-includes or --without-proj-includes was given.
  1708. if test "${with_proj_includes+set}" = set; then
  1709. withval="$with_proj_includes"
  1710. :
  1711. fi
  1712. # Check whether --with-proj-libs or --without-proj-libs was given.
  1713. if test "${with_proj_libs+set}" = set; then
  1714. withval="$with_proj_libs"
  1715. :
  1716. fi
  1717. # Check whether --with-proj-share or --without-proj-share was given.
  1718. if test "${with_proj_share+set}" = set; then
  1719. withval="$with_proj_share"
  1720. :
  1721. fi
  1722. # Check whether --with-opendwg-includes or --without-opendwg-includes was given.
  1723. if test "${with_opendwg_includes+set}" = set; then
  1724. withval="$with_opendwg_includes"
  1725. :
  1726. fi
  1727. # Check whether --with-opendwg-libs or --without-opendwg-libs was given.
  1728. if test "${with_opendwg_libs+set}" = set; then
  1729. withval="$with_opendwg_libs"
  1730. :
  1731. fi
  1732. # Check whether --with-regex-includes or --without-regex-includes was given.
  1733. if test "${with_regex_includes+set}" = set; then
  1734. withval="$with_regex_includes"
  1735. :
  1736. fi
  1737. # Check whether --with-regex-libs or --without-regex-libs was given.
  1738. if test "${with_regex_libs+set}" = set; then
  1739. withval="$with_regex_libs"
  1740. :
  1741. fi
  1742. # Check whether --with-pthread-includes or --without-pthread-includes was given.
  1743. if test "${with_pthread_includes+set}" = set; then
  1744. withval="$with_pthread_includes"
  1745. :
  1746. fi
  1747. # Check whether --with-pthread-libs or --without-pthread-libs was given.
  1748. if test "${with_pthread_libs+set}" = set; then
  1749. withval="$with_pthread_libs"
  1750. :
  1751. fi
  1752. # Check whether --with-openmp-includes or --without-openmp-includes was given.
  1753. if test "${with_openmp_includes+set}" = set; then
  1754. withval="$with_openmp_includes"
  1755. :
  1756. fi
  1757. # Check whether --with-openmp-libs or --without-openmp-libs was given.
  1758. if test "${with_openmp_libs+set}" = set; then
  1759. withval="$with_openmp_libs"
  1760. :
  1761. fi
  1762. # Put this early on so CPPFLAGS and LDFLAGS have any additional dirs
  1763. # With includes option
  1764. # Handle Fortran compiler choice
  1765. #LOC_CHECK_USE(g77, GNU Fortran 77, USE_G77)
  1766. # Done checking fortran
  1767. echo $ac_n "checking for additional include dirs""... $ac_c" 1>&6
  1768. echo "configure:2234: checking for additional include dirs" >&5
  1769. case "$with_includes" in
  1770. y | ye | yes | n | no)
  1771. { echo "configure: error: *** You must supply a directory to list --with-includes." 1>&2; exit 1; }
  1772. ;;
  1773. esac
  1774. echo "$ac_t""$with_includes" 1>&6
  1775. if test -n "$with_includes"; then
  1776. for dir in $with_includes; do
  1777. if test -d "$dir"; then
  1778. INCLUDE_DIRS="$INCLUDE_DIRS -I$dir"
  1779. else
  1780. { echo "configure: error: *** Include directory $dir does not exist." 1>&2; exit 1; }
  1781. fi
  1782. done
  1783. CPPFLAGS="$CPPFLAGS $INCLUDE_DIRS"
  1784. fi
  1785. # With libs option
  1786. echo $ac_n "checking for additional library dirs""... $ac_c" 1>&6
  1787. echo "configure:2257: checking for additional library dirs" >&5
  1788. case "$with_libs" in
  1789. y | ye | yes | n | no)
  1790. { echo "configure: error: *** You must supply a directory list to --with-libs." 1>&2; exit 1; }
  1791. ;;
  1792. esac
  1793. echo "$ac_t""$with_libs" 1>&6
  1794. if test -n "$with_libs"; then
  1795. for dir in $with_libs; do
  1796. if test -d "$dir"; then
  1797. LIBRARY_DIRS="$LIBRARY_DIRS -L$dir"
  1798. else
  1799. { echo "configure: error: *** Library directory $dir does not exist." 1>&2; exit 1; }
  1800. fi
  1801. done
  1802. LDFLAGS="$LDFLAGS $LIBRARY_DIRS"
  1803. fi
  1804. # Programs and standard headers, libraries, functions
  1805. # Find a good install program. We prefer a C program (faster),
  1806. # so one script is as good as another. But avoid the broken or
  1807. # incompatible versions:
  1808. # SysV /etc/install, /usr/sbin/install
  1809. # SunOS /usr/etc/install
  1810. # IRIX /sbin/install
  1811. # AIX /bin/install
  1812. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1813. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1814. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1815. # ./install, which can be erroneously created by make from ./install.sh.
  1816. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1817. echo "configure:2291: checking for a BSD compatible install" >&5
  1818. if test -z "$INSTALL"; then
  1819. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  1820. for ac_dir in $PATH; do
  1821. # Account for people who put trailing slashes in PATH elements.
  1822. case "$ac_dir/" in
  1823. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1824. *)
  1825. # OSF1 and SCO ODT 3.0 have their own names for install.
  1826. # Don't use installbsd from OSF since it installs stuff as root
  1827. # by default.
  1828. for ac_prog in ginstall scoinst install; do
  1829. if test -f $ac_dir/$ac_prog; then
  1830. if test $ac_prog = install &&
  1831. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1832. # AIX install. It has an incompatible calling convention.
  1833. :
  1834. else
  1835. ac_cv_path_install="$ac_dir/$ac_prog -c"
  1836. break 2
  1837. fi
  1838. fi
  1839. done
  1840. ;;
  1841. esac
  1842. done
  1843. IFS="$ac_save_IFS"
  1844. if test "${ac_cv_path_install+set}" = set; then
  1845. INSTALL="$ac_cv_path_install"
  1846. else
  1847. # As a last resort, use the slow shell script. We don't cache a
  1848. # path for INSTALL within a source directory, because that will
  1849. # break other packages using the cache if that directory is
  1850. # removed, or if the path is relative.
  1851. INSTALL="$ac_install_sh"
  1852. fi
  1853. fi
  1854. echo "$ac_t""$INSTALL" 1>&6
  1855. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1856. # It thinks the first close brace ends the variable substitution.
  1857. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1858. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  1859. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1860. # Extract the first word of "flex", so it can be a program name with args.
  1861. set dummy flex; ac_word=$2
  1862. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1863. echo "configure:2344: checking for $ac_word" >&5
  1864. if test -n "$LEX"; then
  1865. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  1866. else
  1867. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1868. ac_dummy="$PATH"
  1869. for ac_dir in $ac_dummy; do
  1870. test -z "$ac_dir" && ac_dir=.
  1871. if test -f $ac_dir/$ac_word; then
  1872. ac_cv_prog_LEX="flex"
  1873. break
  1874. fi
  1875. done
  1876. IFS="$ac_save_ifs"
  1877. test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
  1878. fi
  1879. LEX="$ac_cv_prog_LEX"
  1880. if test -n "$LEX"; then
  1881. echo "$ac_t""$LEX" 1>&6
  1882. else
  1883. echo "$ac_t""no" 1>&6
  1884. fi
  1885. if test -z "$LEXLIB"
  1886. then
  1887. case "$LEX" in
  1888. flex*) ac_lib=fl ;;
  1889. *) ac_lib=l ;;
  1890. esac
  1891. echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
  1892. echo "configure:2375: checking for yywrap in -l$ac_lib" >&5
  1893. ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
  1894. ac_save_LIBS="$LIBS"
  1895. LIBS="-l$ac_lib $LIBS"
  1896. cat > conftest.$ac_ext <<EOF
  1897. #line 2381 "configure"
  1898. #include "confdefs.h"
  1899. /* Override any gcc2 internal prototype to avoid an error. */
  1900. /* We use char because int might match the return type of a gcc2
  1901. builtin and then its argument prototype would still apply. */
  1902. char yywrap();
  1903. int main() {
  1904. yywrap()
  1905. ; return 0; }
  1906. EOF
  1907. if { (eval echo configure:2392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1908. rm -rf conftest*
  1909. eval "ac_cv_lib_$ac_lib_var=yes"
  1910. else
  1911. echo "configure: failed program was:" >&5
  1912. cat conftest.$ac_ext >&5
  1913. rm -rf conftest*
  1914. eval "ac_cv_lib_$ac_lib_var=no"
  1915. fi
  1916. rm -f conftest*
  1917. LIBS="$ac_save_LIBS"
  1918. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1919. echo "$ac_t""yes" 1>&6
  1920. LEXLIB="-l$ac_lib"
  1921. else
  1922. echo "$ac_t""no" 1>&6
  1923. fi
  1924. fi
  1925. if test "$LEX" = "lex"; then
  1926. # Extract the first word of "lex", so it can be a program name with args.
  1927. set dummy lex; ac_word=$2
  1928. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1929. echo "configure:2417: checking for $ac_word" >&5
  1930. case "$LEXPATH" in
  1931. /*)
  1932. ac_cv_path_LEXPATH="$LEXPATH" # Let the user override the test with a path.
  1933. ;;
  1934. ?:/*)
  1935. ac_cv_path_LEXPATH="$LEXPATH" # Let the user override the test with a dos path.
  1936. ;;
  1937. *)
  1938. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1939. ac_dummy="$PATH"
  1940. for ac_dir in $ac_dummy; do
  1941. test -z "$ac_dir" && ac_dir=.
  1942. if test -f $ac_dir/$ac_word; then
  1943. ac_cv_path_LEXPATH="$ac_dir/$ac_word"
  1944. break
  1945. fi
  1946. done
  1947. IFS="$ac_save_ifs"
  1948. test -z "$ac_cv_path_LEXPATH" && ac_cv_path_LEXPATH="no"
  1949. ;;
  1950. esac
  1951. LEXPATH="$ac_cv_path_LEXPATH"
  1952. if test -n "$LEXPATH"; then
  1953. echo "$ac_t""$LEXPATH" 1>&6
  1954. else
  1955. echo "$ac_t""no" 1>&6
  1956. fi
  1957. if test "$LEXPATH" = "no"; then
  1958. { echo "configure: error: *** Unable to locate lex." 1>&2; exit 1; }
  1959. fi
  1960. fi
  1961. for ac_prog in 'bison -y' byacc
  1962. do
  1963. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1964. set dummy $ac_prog; ac_word=$2
  1965. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1966. echo "configure:2457: checking for $ac_word" >&5
  1967. if test -n "$YACC"; then
  1968. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  1969. else
  1970. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1971. ac_dummy="$PATH"
  1972. for ac_dir in $ac_dummy; do
  1973. test -z "$ac_dir" && ac_dir=.
  1974. if test -f $ac_dir/$ac_word; then
  1975. ac_cv_prog_YACC="$ac_prog"
  1976. break
  1977. fi
  1978. done
  1979. IFS="$ac_save_ifs"
  1980. fi
  1981. YACC="$ac_cv_prog_YACC"
  1982. if test -n "$YACC"; then
  1983. echo "$ac_t""$YACC" 1>&6
  1984. else
  1985. echo "$ac_t""no" 1>&6
  1986. fi
  1987. test -n "$YACC" && break
  1988. done
  1989. test -n "$YACC" || YACC="yacc"
  1990. if test "$YACC" = "yacc"; then
  1991. # Extract the first word of "yacc", so it can be a program name with args.
  1992. set dummy yacc; ac_word=$2
  1993. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1994. echo "configure:2488: checking for $ac_word" >&5
  1995. case "$YACCPATH" in
  1996. /*)
  1997. ac_cv_path_YACCPATH="$YACCPATH" # Let the user override the test with a path.
  1998. ;;
  1999. ?:/*)
  2000. ac_cv_path_YACCPATH="$YACCPATH" # Let the user override the test with a dos path.
  2001. ;;
  2002. *)
  2003. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2004. ac_dummy="$PATH"
  2005. for ac_dir in $ac_dummy; do
  2006. test -z "$ac_dir" && ac_dir=.
  2007. if test -f $ac_dir/$ac_word; then
  2008. ac_cv_path_YACCPATH="$ac_dir/$ac_word"
  2009. break
  2010. fi
  2011. done
  2012. IFS="$ac_save_ifs"
  2013. test -z "$ac_cv_path_YACCPATH" && ac_cv_path_YACCPATH="no"
  2014. ;;
  2015. esac
  2016. YACCPATH="$ac_cv_path_YACCPATH"
  2017. if test -n "$YACCPATH"; then
  2018. echo "$ac_t""$YACCPATH" 1>&6
  2019. else
  2020. echo "$ac_t""no" 1>&6
  2021. fi
  2022. if test "$YACCPATH" = "no"; then
  2023. { echo "configure: error: *** Unable to locate yacc." 1>&2; exit 1; }
  2024. fi
  2025. fi
  2026. # Extract the first word of "ranlib", so it can be a program name with args.
  2027. set dummy ranlib; ac_word=$2
  2028. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2029. echo "configure:2526: checking for $ac_word" >&5
  2030. if test -n "$RANLIB"; then
  2031. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2032. else
  2033. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2034. ac_dummy="$PATH"
  2035. for ac_dir in $ac_dummy; do
  2036. test -z "$ac_dir" && ac_dir=.
  2037. if test -f $ac_dir/$ac_word; then
  2038. ac_cv_prog_RANLIB="ranlib"
  2039. break
  2040. fi
  2041. done
  2042. IFS="$ac_save_ifs"
  2043. test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  2044. fi
  2045. RANLIB="$ac_cv_prog_RANLIB"
  2046. if test -n "$RANLIB"; then
  2047. echo "$ac_t""$RANLIB" 1>&6
  2048. else
  2049. echo "$ac_t""no" 1>&6
  2050. fi
  2051. for ac_prog in ar
  2052. do
  2053. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2054. set dummy $ac_prog; ac_word=$2
  2055. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2056. echo "configure:2555: checking for $ac_word" >&5
  2057. if test -n "$AR"; then
  2058. ac_cv_prog_AR="$AR" # Let the user override the test.
  2059. else
  2060. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2061. ac_dummy="$PATH"
  2062. for ac_dir in $ac_dummy; do
  2063. test -z "$ac_dir" && ac_dir=.
  2064. if test -f $ac_dir/$ac_word; then
  2065. ac_cv_prog_AR="$ac_prog"
  2066. break
  2067. fi
  2068. done
  2069. IFS="$ac_save_ifs"
  2070. fi
  2071. AR="$ac_cv_prog_AR"
  2072. if test -n "$AR"; then
  2073. echo "$ac_t""$AR" 1>&6
  2074. else
  2075. echo "$ac_t""no" 1>&6
  2076. fi
  2077. test -n "$AR" && break
  2078. done
  2079. for ac_prog in env
  2080. do
  2081. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2082. set dummy $ac_prog; ac_word=$2
  2083. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2084. echo "configure:2586: checking for $ac_word" >&5
  2085. if test -n "$ENV"; then
  2086. ac_cv_prog_ENV="$ENV" # Let the user override the test.
  2087. else
  2088. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2089. ac_dummy="$PATH"
  2090. for ac_dir in $ac_dummy; do
  2091. test -z "$ac_dir" && ac_dir=.
  2092. if test -f $ac_dir/$ac_word; then
  2093. ac_cv_prog_ENV="$ac_prog"
  2094. break
  2095. fi
  2096. done
  2097. IFS="$ac_save_ifs"
  2098. fi
  2099. ENV="$ac_cv_prog_ENV"
  2100. if test -n "$ENV"; then
  2101. echo "$ac_t""$ENV" 1>&6
  2102. else
  2103. echo "$ac_t""no" 1>&6
  2104. fi
  2105. test -n "$ENV" && break
  2106. done
  2107. # Extract the first word of "perl", so it can be a program name with args.
  2108. set dummy perl; ac_word=$2
  2109. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2110. echo "configure:2615: checking for $ac_word" >&5
  2111. case "$PERL" in
  2112. /*)
  2113. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  2114. ;;
  2115. ?:/*)
  2116. ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
  2117. ;;
  2118. *)
  2119. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2120. ac_dummy="$PATH"
  2121. for ac_dir in $ac_dummy; do
  2122. test -z "$ac_dir" && ac_dir=.
  2123. if test -f $ac_dir/$ac_word; then
  2124. ac_cv_path_PERL="$ac_dir/$ac_word"
  2125. break
  2126. fi
  2127. done
  2128. IFS="$ac_save_ifs"
  2129. test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
  2130. ;;
  2131. esac
  2132. PERL="$ac_cv_path_PERL"
  2133. if test -n "$PERL"; then
  2134. echo "$ac_t""$PERL" 1>&6
  2135. else
  2136. echo "$ac_t""no" 1>&6
  2137. fi
  2138. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  2139. echo "configure:2646: checking how to run the C preprocessor" >&5
  2140. # On Suns, sometimes $CPP names a directory.
  2141. if test -n "$CPP" && test -d "$CPP"; then
  2142. CPP=
  2143. fi
  2144. if test -z "$CPP"; then
  2145. # This must be in double quotes, not single quotes, because CPP may get
  2146. # substituted into the Makefile and "${CC-cc}" will confuse make.
  2147. CPP="${CC-cc} -E"
  2148. # On the NeXT, cc -E runs the code through the compiler's parser,
  2149. # not just through cpp.
  2150. cat > conftest.$ac_ext <<EOF
  2151. #line 2659 "configure"
  2152. #include "confdefs.h"
  2153. #include <assert.h>
  2154. Syntax Error
  2155. EOF
  2156. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2157. { (eval echo configure:2665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2158. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2159. if test -z "$ac_err"; then
  2160. :
  2161. else
  2162. echo "$ac_err" >&5
  2163. echo "configure: failed program was:" >&5
  2164. cat conftest.$ac_ext >&5
  2165. rm -rf conftest*
  2166. CPP="${CC-cc} -E -traditional-cpp"
  2167. cat > conftest.$ac_ext <<EOF
  2168. #line 2676 "configure"
  2169. #include "confdefs.h"
  2170. #include <assert.h>
  2171. Syntax Error
  2172. EOF
  2173. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2174. { (eval echo configure:2682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2175. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2176. if test -z "$ac_err"; then
  2177. :
  2178. else
  2179. echo "$ac_err" >&5
  2180. echo "configure: failed program was:" >&5
  2181. cat conftest.$ac_ext >&5
  2182. rm -rf conftest*
  2183. CPP="${CC-cc} -nologo -E"
  2184. cat > conftest.$ac_ext <<EOF
  2185. #line 2693 "configure"
  2186. #include "confdefs.h"
  2187. #include <assert.h>
  2188. Syntax Error
  2189. EOF
  2190. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2191. { (eval echo configure:2699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2192. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2193. if test -z "$ac_err"; then
  2194. :
  2195. else
  2196. echo "$ac_err" >&5
  2197. echo "configure: failed program was:" >&5
  2198. cat conftest.$ac_ext >&5
  2199. rm -rf conftest*
  2200. CPP=/lib/cpp
  2201. fi
  2202. rm -f conftest*
  2203. fi
  2204. rm -f conftest*
  2205. fi
  2206. rm -f conftest*
  2207. ac_cv_prog_CPP="$CPP"
  2208. CPP="$ac_cv_prog_CPP"
  2209. else
  2210. ac_cv_prog_CPP="$CPP"
  2211. fi
  2212. echo "$ac_t""$CPP" 1>&6
  2213. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  2214. echo "configure:2723: checking for ANSI C header files" >&5
  2215. cat > conftest.$ac_ext <<EOF
  2216. #line 2726 "configure"
  2217. #include "confdefs.h"
  2218. #include <stdlib.h>
  2219. #include <stdarg.h>
  2220. #include <string.h>
  2221. #include <float.h>
  2222. EOF
  2223. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2224. { (eval echo configure:2734: \"$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. rm -rf conftest*
  2228. ac_cv_header_stdc=yes
  2229. else
  2230. echo "$ac_err" >&5
  2231. echo "configure: failed program was:" >&5
  2232. cat conftest.$ac_ext >&5
  2233. rm -rf conftest*
  2234. ac_cv_header_stdc=no
  2235. fi
  2236. rm -f conftest*
  2237. if test $ac_cv_header_stdc = yes; then
  2238. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2239. cat > conftest.$ac_ext <<EOF
  2240. #line 2751 "configure"
  2241. #include "confdefs.h"
  2242. #include <string.h>
  2243. EOF
  2244. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2245. egrep "memchr" >/dev/null 2>&1; then
  2246. :
  2247. else
  2248. rm -rf conftest*
  2249. ac_cv_header_stdc=no
  2250. fi
  2251. rm -f conftest*
  2252. fi
  2253. if test $ac_cv_header_stdc = yes; then
  2254. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2255. cat > conftest.$ac_ext <<EOF
  2256. #line 2769 "configure"
  2257. #include "confdefs.h"
  2258. #include <stdlib.h>
  2259. EOF
  2260. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2261. egrep "free" >/dev/null 2>&1; then
  2262. :
  2263. else
  2264. rm -rf conftest*
  2265. ac_cv_header_stdc=no
  2266. fi
  2267. rm -f conftest*
  2268. fi
  2269. if test $ac_cv_header_stdc = yes; then
  2270. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2271. if test "$cross_compiling" = yes; then
  2272. :
  2273. else
  2274. cat > conftest.$ac_ext <<EOF
  2275. #line 2790 "configure"
  2276. #include "confdefs.h"
  2277. #include <ctype.h>
  2278. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2279. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2280. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2281. int main () { int i; for (i = 0; i < 256; i++)
  2282. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  2283. exit (0); }
  2284. EOF
  2285. if { (eval echo configure:2801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2286. then
  2287. :
  2288. else
  2289. echo "configure: failed program was:" >&5
  2290. cat conftest.$ac_ext >&5
  2291. rm -fr conftest*
  2292. ac_cv_header_stdc=no
  2293. fi
  2294. rm -fr conftest*
  2295. fi
  2296. fi
  2297. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  2298. if test $ac_cv_header_stdc = yes; then
  2299. cat >> confdefs.h <<\EOF
  2300. #define STDC_HEADERS 1
  2301. EOF
  2302. fi
  2303. #AC_CHECK_HEADERS(curses.h limits.h termio.h termios.h unistd.h values.h)
  2304. for ac_hdr in limits.h termio.h termios.h unistd.h values.h f2c.h g2c.h
  2305. do
  2306. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2307. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2308. echo "configure:2828: checking for $ac_hdr" >&5
  2309. cat > conftest.$ac_ext <<EOF
  2310. #line 2831 "configure"
  2311. #include "confdefs.h"
  2312. #include <$ac_hdr>
  2313. EOF
  2314. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2315. { (eval echo configure:2836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2316. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2317. if test -z "$ac_err"; then
  2318. rm -rf conftest*
  2319. eval "ac_cv_header_$ac_safe=yes"
  2320. else
  2321. echo "$ac_err" >&5
  2322. echo "configure: failed program was:" >&5
  2323. cat conftest.$ac_ext >&5
  2324. rm -rf conftest*
  2325. eval "ac_cv_header_$ac_safe=no"
  2326. fi
  2327. rm -f conftest*
  2328. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2329. echo "$ac_t""yes" 1>&6
  2330. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2331. cat >> confdefs.h <<EOF
  2332. #define $ac_tr_hdr 1
  2333. EOF
  2334. else
  2335. echo "$ac_t""no" 1>&6
  2336. fi
  2337. done
  2338. for ac_hdr in sys/ioctl.h sys/mtio.h sys/resource.h sys/time.h
  2339. do
  2340. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2341. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2342. echo "configure:2865: checking for $ac_hdr" >&5
  2343. cat > conftest.$ac_ext <<EOF
  2344. #line 2868 "configure"
  2345. #include "confdefs.h"
  2346. #include <$ac_hdr>
  2347. EOF
  2348. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2349. { (eval echo configure:2873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2350. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2351. if test -z "$ac_err"; then
  2352. rm -rf conftest*
  2353. eval "ac_cv_header_$ac_safe=yes"
  2354. else
  2355. echo "$ac_err" >&5
  2356. echo "configure: failed program was:" >&5
  2357. cat conftest.$ac_ext >&5
  2358. rm -rf conftest*
  2359. eval "ac_cv_header_$ac_safe=no"
  2360. fi
  2361. rm -f conftest*
  2362. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2363. echo "$ac_t""yes" 1>&6
  2364. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2365. cat >> confdefs.h <<EOF
  2366. #define $ac_tr_hdr 1
  2367. EOF
  2368. else
  2369. echo "$ac_t""no" 1>&6
  2370. fi
  2371. done
  2372. for ac_hdr in sys/timeb.h sys/types.h sys/utsname.h
  2373. do
  2374. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2375. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2376. echo "configure:2902: checking for $ac_hdr" >&5
  2377. cat > conftest.$ac_ext <<EOF
  2378. #line 2905 "configure"
  2379. #include "confdefs.h"
  2380. #include <$ac_hdr>
  2381. EOF
  2382. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2383. { (eval echo configure:2910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2384. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2385. if test -z "$ac_err"; then
  2386. rm -rf conftest*
  2387. eval "ac_cv_header_$ac_safe=yes"
  2388. else
  2389. echo "$ac_err" >&5
  2390. echo "configure: failed program was:" >&5
  2391. cat conftest.$ac_ext >&5
  2392. rm -rf conftest*
  2393. eval "ac_cv_header_$ac_safe=no"
  2394. fi
  2395. rm -f conftest*
  2396. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2397. echo "$ac_t""yes" 1>&6
  2398. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2399. cat >> confdefs.h <<EOF
  2400. #define $ac_tr_hdr 1
  2401. EOF
  2402. else
  2403. echo "$ac_t""no" 1>&6
  2404. fi
  2405. done
  2406. for ac_hdr in libintl.h iconv.h
  2407. do
  2408. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2409. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2410. echo "configure:2939: checking for $ac_hdr" >&5
  2411. cat > conftest.$ac_ext <<EOF
  2412. #line 2942 "configure"
  2413. #include "confdefs.h"
  2414. #include <$ac_hdr>
  2415. EOF
  2416. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2417. { (eval echo configure:2947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2418. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2419. if test -z "$ac_err"; then
  2420. rm -rf conftest*
  2421. eval "ac_cv_header_$ac_safe=yes"
  2422. else
  2423. echo "$ac_err" >&5
  2424. echo "configure: failed program was:" >&5
  2425. cat conftest.$ac_ext >&5
  2426. rm -rf conftest*
  2427. eval "ac_cv_header_$ac_safe=no"
  2428. fi
  2429. rm -f conftest*
  2430. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2431. echo "$ac_t""yes" 1>&6
  2432. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2433. cat >> confdefs.h <<EOF
  2434. #define $ac_tr_hdr 1
  2435. EOF
  2436. else
  2437. echo "$ac_t""no" 1>&6
  2438. fi
  2439. done
  2440. for ac_hdr in langinfo.h
  2441. do
  2442. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2443. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2444. echo "configure:2976: checking for $ac_hdr" >&5
  2445. cat > conftest.$ac_ext <<EOF
  2446. #line 2979 "configure"
  2447. #include "confdefs.h"
  2448. #include <$ac_hdr>
  2449. EOF
  2450. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2451. { (eval echo configure:2984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2452. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2453. if test -z "$ac_err"; then
  2454. rm -rf conftest*
  2455. eval "ac_cv_header_$ac_safe=yes"
  2456. else
  2457. echo "$ac_err" >&5
  2458. echo "configure: failed program was:" >&5
  2459. cat conftest.$ac_ext >&5
  2460. rm -rf conftest*
  2461. eval "ac_cv_header_$ac_safe=no"
  2462. fi
  2463. rm -f conftest*
  2464. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2465. echo "$ac_t""yes" 1>&6
  2466. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2467. cat >> confdefs.h <<EOF
  2468. #define $ac_tr_hdr 1
  2469. EOF
  2470. else
  2471. echo "$ac_t""no" 1>&6
  2472. fi
  2473. done
  2474. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  2475. echo "configure:3010: checking whether time.h and sys/time.h may both be included" >&5
  2476. cat > conftest.$ac_ext <<EOF
  2477. #line 3013 "configure"
  2478. #include "confdefs.h"
  2479. #include <sys/types.h>
  2480. #include <sys/time.h>
  2481. #include <time.h>
  2482. int main() {
  2483. struct tm *tp;
  2484. ; return 0; }
  2485. EOF
  2486. if { (eval echo configure:3022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2487. rm -rf conftest*
  2488. ac_cv_header_time=yes
  2489. else
  2490. echo "configure: failed program was:" >&5
  2491. cat conftest.$ac_ext >&5
  2492. rm -rf conftest*
  2493. ac_cv_header_time=no
  2494. fi
  2495. rm -f conftest*
  2496. echo "$ac_t""$ac_cv_header_time" 1>&6
  2497. if test $ac_cv_header_time = yes; then
  2498. cat >> confdefs.h <<\EOF
  2499. #define TIME_WITH_SYS_TIME 1
  2500. EOF
  2501. fi
  2502. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  2503. echo "configure:3042: checking for off_t" >&5
  2504. cat > conftest.$ac_ext <<EOF
  2505. #line 3045 "configure"
  2506. #include "confdefs.h"
  2507. #include <sys/types.h>
  2508. #if STDC_HEADERS
  2509. #include <stdlib.h>
  2510. #include <stddef.h>
  2511. #endif
  2512. EOF
  2513. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2514. egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2515. rm -rf conftest*
  2516. ac_cv_type_off_t=yes
  2517. else
  2518. rm -rf conftest*
  2519. ac_cv_type_off_t=no
  2520. fi
  2521. rm -f conftest*
  2522. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  2523. if test $ac_cv_type_off_t = no; then
  2524. cat >> confdefs.h <<\EOF
  2525. #define off_t long
  2526. EOF
  2527. fi
  2528. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  2529. echo "configure:3072: checking for uid_t in sys/types.h" >&5
  2530. cat > conftest.$ac_ext <<EOF
  2531. #line 3075 "configure"
  2532. #include "confdefs.h"
  2533. #include <sys/types.h>
  2534. EOF
  2535. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2536. egrep "uid_t" >/dev/null 2>&1; then
  2537. rm -rf conftest*
  2538. ac_cv_type_uid_t=yes
  2539. else
  2540. rm -rf conftest*
  2541. ac_cv_type_uid_t=no
  2542. fi
  2543. rm -f conftest*
  2544. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  2545. if test $ac_cv_type_uid_t = no; then
  2546. cat >> confdefs.h <<\EOF
  2547. #define uid_t int
  2548. EOF
  2549. cat >> confdefs.h <<\EOF
  2550. #define gid_t int
  2551. EOF
  2552. fi
  2553. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  2554. echo "configure:3103: checking return type of signal handlers" >&5
  2555. cat > conftest.$ac_ext <<EOF
  2556. #line 3106 "configure"
  2557. #include "confdefs.h"
  2558. #include <sys/types.h>
  2559. #include <signal.h>
  2560. #ifdef signal
  2561. #undef signal
  2562. #endif
  2563. #ifdef __cplusplus
  2564. extern "C" void (*signal (int, void (*)(int)))(int);
  2565. #else
  2566. void (*signal ()) ();
  2567. #endif
  2568. int main() {
  2569. int i;
  2570. ; return 0; }
  2571. EOF
  2572. if { (eval echo configure:3123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2573. rm -rf conftest*
  2574. ac_cv_type_signal=void
  2575. else
  2576. echo "configure: failed program was:" >&5
  2577. cat conftest.$ac_ext >&5
  2578. rm -rf conftest*
  2579. ac_cv_type_signal=int
  2580. fi
  2581. rm -f conftest*
  2582. echo "$ac_t""$ac_cv_type_signal" 1>&6
  2583. cat >> confdefs.h <<EOF
  2584. #define RETSIGTYPE $ac_cv_type_signal
  2585. EOF
  2586. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  2587. echo "configure:3141: checking for Cygwin environment" >&5
  2588. cat > conftest.$ac_ext <<EOF
  2589. #line 3144 "configure"
  2590. #include "confdefs.h"
  2591. int main() {
  2592. #ifndef __CYGWIN__
  2593. #define __CYGWIN__ __CYGWIN32__
  2594. #endif
  2595. return __CYGWIN__;
  2596. ; return 0; }
  2597. EOF
  2598. if { (eval echo configure:3155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2599. rm -rf conftest*
  2600. ac_cv_cygwin=yes
  2601. else
  2602. echo "configure: failed program was:" >&5
  2603. cat conftest.$ac_ext >&5
  2604. rm -rf conftest*
  2605. ac_cv_cygwin=no
  2606. fi
  2607. rm -f conftest*
  2608. rm -f conftest*
  2609. echo "$ac_t""$ac_cv_cygwin" 1>&6
  2610. CYGWIN=
  2611. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  2612. for ac_func in ftime gethostname gettimeofday lseek nice time uname
  2613. do
  2614. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2615. echo "configure:3173: checking for $ac_func" >&5
  2616. cat > conftest.$ac_ext <<EOF
  2617. #line 3176 "configure"
  2618. #include "confdefs.h"
  2619. /* System header to define __stub macros and hopefully few prototypes,
  2620. which can conflict with char $ac_func(); below. */
  2621. #include <assert.h>
  2622. /* Override any gcc2 internal prototype to avoid an error. */
  2623. /* We use char because int might match the return type of a gcc2
  2624. builtin and then its argument prototype would still apply. */
  2625. char $ac_func();
  2626. int main() {
  2627. /* The GNU C library defines this for functions which it implements
  2628. to always fail with ENOSYS. Some functions are actually named
  2629. something starting with __ and the normal name is an alias. */
  2630. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2631. choke me
  2632. #else
  2633. $ac_func();
  2634. #endif
  2635. ; return 0; }
  2636. EOF
  2637. if { (eval echo configure:3199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2638. rm -rf conftest*
  2639. eval "ac_cv_func_$ac_func=yes"
  2640. else
  2641. echo "configure: failed program was:" >&5
  2642. cat conftest.$ac_ext >&5
  2643. rm -rf conftest*
  2644. eval "ac_cv_func_$ac_func=no"
  2645. fi
  2646. rm -f conftest*
  2647. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2648. echo "$ac_t""yes" 1>&6
  2649. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2650. cat >> confdefs.h <<EOF
  2651. #define $ac_tr_func 1
  2652. EOF
  2653. else
  2654. echo "$ac_t""no" 1>&6
  2655. fi
  2656. done
  2657. for ac_func in seteuid setpriority setreuid setruid
  2658. do
  2659. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2660. echo "configure:3225: checking for $ac_func" >&5
  2661. cat > conftest.$ac_ext <<EOF
  2662. #line 3228 "configure"
  2663. #include "confdefs.h"
  2664. /* System header to define __stub macros and hopefully few prototypes,
  2665. which can conflict with char $ac_func(); below. */
  2666. #include <assert.h>
  2667. /* Override any gcc2 internal prototype to avoid an error. */
  2668. /* We use char because int might match the return type of a gcc2
  2669. builtin and then its argument prototype would still apply. */
  2670. char $ac_func();
  2671. int main() {
  2672. /* The GNU C library defines this for functions which it implements
  2673. to always fail with ENOSYS. Some functions are actually named
  2674. something starting with __ and the normal name is an alias. */
  2675. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2676. choke me
  2677. #else
  2678. $ac_func();
  2679. #endif
  2680. ; return 0; }
  2681. EOF
  2682. if { (eval echo configure:3251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2683. rm -rf conftest*
  2684. eval "ac_cv_func_$ac_func=yes"
  2685. else
  2686. echo "configure: failed program was:" >&5
  2687. cat conftest.$ac_ext >&5
  2688. rm -rf conftest*
  2689. eval "ac_cv_func_$ac_func=no"
  2690. fi
  2691. rm -f conftest*
  2692. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2693. echo "$ac_t""yes" 1>&6
  2694. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2695. cat >> confdefs.h <<EOF
  2696. #define $ac_tr_func 1
  2697. EOF
  2698. else
  2699. echo "$ac_t""no" 1>&6
  2700. fi
  2701. done
  2702. for ac_func in drand48
  2703. do
  2704. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2705. echo "configure:3277: checking for $ac_func" >&5
  2706. cat > conftest.$ac_ext <<EOF
  2707. #line 3280 "configure"
  2708. #include "confdefs.h"
  2709. /* System header to define __stub macros and hopefully few prototypes,
  2710. which can conflict with char $ac_func(); below. */
  2711. #include <assert.h>
  2712. /* Override any gcc2 internal prototype to avoid an error. */
  2713. /* We use char because int might match the return type of a gcc2
  2714. builtin and then its argument prototype would still apply. */
  2715. char $ac_func();
  2716. int main() {
  2717. /* The GNU C library defines this for functions which it implements
  2718. to always fail with ENOSYS. Some functions are actually named
  2719. something starting with __ and the normal name is an alias. */
  2720. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2721. choke me
  2722. #else
  2723. $ac_func();
  2724. #endif
  2725. ; return 0; }
  2726. EOF
  2727. if { (eval echo configure:3303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2728. rm -rf conftest*
  2729. eval "ac_cv_func_$ac_func=yes"
  2730. else
  2731. echo "configure: failed program was:" >&5
  2732. cat conftest.$ac_ext >&5
  2733. rm -rf conftest*
  2734. eval "ac_cv_func_$ac_func=no"
  2735. fi
  2736. rm -f conftest*
  2737. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2738. echo "$ac_t""yes" 1>&6
  2739. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2740. cat >> confdefs.h <<EOF
  2741. #define $ac_tr_func 1
  2742. EOF
  2743. else
  2744. echo "$ac_t""no" 1>&6
  2745. fi
  2746. done
  2747. for ac_func in putenv setenv
  2748. do
  2749. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2750. echo "configure:3329: checking for $ac_func" >&5
  2751. cat > conftest.$ac_ext <<EOF
  2752. #line 3332 "configure"
  2753. #include "confdefs.h"
  2754. /* System header to define __stub macros and hopefully few prototypes,
  2755. which can conflict with char $ac_func(); below. */
  2756. #include <assert.h>
  2757. /* Override any gcc2 internal prototype to avoid an error. */
  2758. /* We use char because int might match the return type of a gcc2
  2759. builtin and then its argument prototype would still apply. */
  2760. char $ac_func();
  2761. int main() {
  2762. /* The GNU C library defines this for functions which it implements
  2763. to always fail with ENOSYS. Some functions are actually named
  2764. something starting with __ and the normal name is an alias. */
  2765. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2766. choke me
  2767. #else
  2768. $ac_func();
  2769. #endif
  2770. ; return 0; }
  2771. EOF
  2772. if { (eval echo configure:3355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2773. rm -rf conftest*
  2774. eval "ac_cv_func_$ac_func=yes"
  2775. else
  2776. echo "configure: failed program was:" >&5
  2777. cat conftest.$ac_ext >&5
  2778. rm -rf conftest*
  2779. eval "ac_cv_func_$ac_func=no"
  2780. fi
  2781. rm -f conftest*
  2782. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2783. echo "$ac_t""yes" 1>&6
  2784. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2785. cat >> confdefs.h <<EOF
  2786. #define $ac_tr_func 1
  2787. EOF
  2788. else
  2789. echo "$ac_t""no" 1>&6
  2790. fi
  2791. done
  2792. for ac_func in nanosleep
  2793. do
  2794. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2795. echo "configure:3381: checking for $ac_func" >&5
  2796. cat > conftest.$ac_ext <<EOF
  2797. #line 3384 "configure"
  2798. #include "confdefs.h"
  2799. /* System header to define __stub macros and hopefully few prototypes,
  2800. which can conflict with char $ac_func(); below. */
  2801. #include <assert.h>
  2802. /* Override any gcc2 internal prototype to avoid an error. */
  2803. /* We use char because int might match the return type of a gcc2
  2804. builtin and then its argument prototype would still apply. */
  2805. char $ac_func();
  2806. int main() {
  2807. /* The GNU C library defines this for functions which it implements
  2808. to always fail with ENOSYS. Some functions are actually named
  2809. something starting with __ and the normal name is an alias. */
  2810. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2811. choke me
  2812. #else
  2813. $ac_func();
  2814. #endif
  2815. ; return 0; }
  2816. EOF
  2817. if { (eval echo configure:3407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2818. rm -rf conftest*
  2819. eval "ac_cv_func_$ac_func=yes"
  2820. else
  2821. echo "configure: failed program was:" >&5
  2822. cat conftest.$ac_ext >&5
  2823. rm -rf conftest*
  2824. eval "ac_cv_func_$ac_func=no"
  2825. fi
  2826. rm -f conftest*
  2827. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2828. echo "$ac_t""yes" 1>&6
  2829. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2830. cat >> confdefs.h <<EOF
  2831. #define $ac_tr_func 1
  2832. EOF
  2833. else
  2834. echo "$ac_t""no" 1>&6
  2835. fi
  2836. done
  2837. if test "$cross_compiling" != "yes" ; then
  2838. echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
  2839. echo "configure:3432: checking whether setpgrp takes no argument" >&5
  2840. if test "$cross_compiling" = yes; then
  2841. { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
  2842. else
  2843. cat > conftest.$ac_ext <<EOF
  2844. #line 3438 "configure"
  2845. #include "confdefs.h"
  2846. #ifdef HAVE_UNISTD_H
  2847. #include <unistd.h>
  2848. #endif
  2849. /*
  2850. * If this system has a BSD-style setpgrp, which takes arguments, exit
  2851. * successfully.
  2852. */
  2853. main()
  2854. {
  2855. if (setpgrp(1,1) == -1)
  2856. exit(0);
  2857. else
  2858. exit(1);
  2859. }
  2860. EOF
  2861. if { (eval echo configure:3458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2862. then
  2863. ac_cv_func_setpgrp_void=no
  2864. else
  2865. echo "configure: failed program was:" >&5
  2866. cat conftest.$ac_ext >&5
  2867. rm -fr conftest*
  2868. ac_cv_func_setpgrp_void=yes
  2869. fi
  2870. rm -fr conftest*
  2871. fi
  2872. echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
  2873. if test $ac_cv_func_setpgrp_void = yes; then
  2874. cat >> confdefs.h <<\EOF
  2875. #define SETPGRP_VOID 1
  2876. EOF
  2877. fi
  2878. else
  2879. CROSS_COMPILING=1
  2880. fi
  2881. echo $ac_n "checking for long long int""... $ac_c" 1>&6
  2882. echo "configure:3486: checking for long long int" >&5
  2883. cat > conftest.$ac_ext <<EOF
  2884. #line 3488 "configure"
  2885. #include "confdefs.h"
  2886. int main() {
  2887. long long int x;
  2888. ; return 0; }
  2889. EOF
  2890. if { (eval echo configure:3495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2891. rm -rf conftest*
  2892. echo "$ac_t""yes" 1>&6
  2893. cat >> confdefs.h <<\EOF
  2894. #define HAVE_LONG_LONG_INT 1
  2895. EOF
  2896. else
  2897. echo "configure: failed program was:" >&5
  2898. cat conftest.$ac_ext >&5
  2899. rm -rf conftest*
  2900. echo "$ac_t""no" 1>&6
  2901. fi
  2902. rm -f conftest*
  2903. echo $ac_n "checking for W11""... $ac_c" 1>&6
  2904. echo "configure:3515: checking for W11" >&5
  2905. case "$enable_w11" in
  2906. yes|no) echo "$ac_t"""$enable_w11"" 1>&6 ;;
  2907. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  2908. esac
  2909. USE_X11=
  2910. USE_W11=
  2911. XLIB=
  2912. XTLIB=
  2913. if test "$enable_w11" = "yes" ; then
  2914. X_CFLAGS=-I${SRCDIR}/display/drivers/windows/libW11
  2915. X_LIBS='-L$(LIBDIR)'
  2916. USE_W11="1"
  2917. USE_X11="1"
  2918. XLIB=-lX11
  2919. CFLAGS="$CFLAGS -D__W98__"
  2920. else
  2921. # If we find X, set shell vars x_includes and x_libraries to the
  2922. # paths, otherwise set no_x=yes.
  2923. # Uses ac_ vars as temps to allow command line to override cache and checks.
  2924. # --without-x overrides everything else, but does not touch the cache.
  2925. echo $ac_n "checking for X""... $ac_c" 1>&6
  2926. echo "configure:3543: checking for X" >&5
  2927. # Check whether --with-x or --without-x was given.
  2928. if test "${with_x+set}" = set; then
  2929. withval="$with_x"
  2930. :
  2931. fi
  2932. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  2933. if test "x$with_x" = xno; then
  2934. # The user explicitly disabled X.
  2935. have_x=disabled
  2936. else
  2937. if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  2938. # Both variables are already set.
  2939. have_x=yes
  2940. else
  2941. # One or both of the vars are not set, and there is no cached value.
  2942. ac_x_includes=NO ac_x_libraries=NO
  2943. rm -fr conftestdir
  2944. if mkdir conftestdir; then
  2945. cd conftestdir
  2946. # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  2947. cat > Imakefile <<'EOF'
  2948. acfindx:
  2949. @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  2950. EOF
  2951. if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  2952. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2953. eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  2954. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  2955. for ac_extension in a so sl; do
  2956. if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  2957. test -f $ac_im_libdir/libX11.$ac_extension; then
  2958. ac_im_usrlibdir=$ac_im_libdir; break
  2959. fi
  2960. done
  2961. # Screen out bogus values from the imake configuration. They are
  2962. # bogus both because they are the default anyway, and because
  2963. # using them would break gcc on systems where it needs fixed includes.
  2964. case "$ac_im_incroot" in
  2965. /usr/include) ;;
  2966. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
  2967. esac
  2968. case "$ac_im_usrlibdir" in
  2969. /usr/lib | /lib) ;;
  2970. *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
  2971. esac
  2972. fi
  2973. cd ..
  2974. rm -fr conftestdir
  2975. fi
  2976. if test "$ac_x_includes" = NO; then
  2977. # Guess where to find include files, by looking for this one X11 .h file.
  2978. test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  2979. # First, try using that file with no special directory specified.
  2980. cat > conftest.$ac_ext <<EOF
  2981. #line 3603 "configure"
  2982. #include "confdefs.h"
  2983. #include <$x_direct_test_include>
  2984. EOF
  2985. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2986. { (eval echo configure:3608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2987. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2988. if test -z "$ac_err"; then
  2989. rm -rf conftest*
  2990. # We can compile using X headers with no special include directory.
  2991. ac_x_includes=
  2992. else
  2993. echo "$ac_err" >&5
  2994. echo "configure: failed program was:" >&5
  2995. cat conftest.$ac_ext >&5
  2996. rm -rf conftest*
  2997. # Look for the header file in a standard set of common directories.
  2998. # Check X11 before X11Rn because it is often a symlink to the current release.
  2999. for ac_dir in \
  3000. /usr/X11/include \
  3001. /usr/X11R6/include \
  3002. /usr/X11R5/include \
  3003. /usr/X11R4/include \
  3004. \
  3005. /usr/include/X11 \
  3006. /usr/include/X11R6 \
  3007. /usr/include/X11R5 \
  3008. /usr/include/X11R4 \
  3009. \
  3010. /usr/local/X11/include \
  3011. /usr/local/X11R6/include \
  3012. /usr/local/X11R5/include \
  3013. /usr/local/X11R4/include \
  3014. \
  3015. /usr/local/include/X11 \
  3016. /usr/local/include/X11R6 \
  3017. /usr/local/include/X11R5 \
  3018. /usr/local/include/X11R4 \
  3019. \
  3020. /usr/X386/include \
  3021. /usr/x386/include \
  3022. /usr/XFree86/include/X11 \
  3023. \
  3024. /usr/include \
  3025. /usr/local/include \
  3026. /usr/unsupported/include \
  3027. /usr/athena/include \
  3028. /usr/local/x11r5/include \
  3029. /usr/lpp/Xamples/include \
  3030. \
  3031. /usr/openwin/include \
  3032. /usr/openwin/share/include \
  3033. ; \
  3034. do
  3035. if test -r "$ac_dir/$x_direct_test_include"; then
  3036. ac_x_includes=$ac_dir
  3037. break
  3038. fi
  3039. done
  3040. fi
  3041. rm -f conftest*
  3042. fi # $ac_x_includes = NO
  3043. if test "$ac_x_libraries" = NO; then
  3044. # Check for the libraries.
  3045. test -z "$x_direct_test_library" && x_direct_test_library=Xt
  3046. test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  3047. # See if we find them without any special options.
  3048. # Don't add to $LIBS permanently.
  3049. ac_save_LIBS="$LIBS"
  3050. LIBS="-l$x_direct_test_library $LIBS"
  3051. cat > conftest.$ac_ext <<EOF
  3052. #line 3677 "configure"
  3053. #include "confdefs.h"
  3054. int main() {
  3055. ${x_direct_test_function}()
  3056. ; return 0; }
  3057. EOF
  3058. if { (eval echo configure:3684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3059. rm -rf conftest*
  3060. LIBS="$ac_save_LIBS"
  3061. # We can link X programs with no special library path.
  3062. ac_x_libraries=
  3063. else
  3064. echo "configure: failed program was:" >&5
  3065. cat conftest.$ac_ext >&5
  3066. rm -rf conftest*
  3067. LIBS="$ac_save_LIBS"
  3068. # First see if replacing the include by lib works.
  3069. # Check X11 before X11Rn because it is often a symlink to the current release.
  3070. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  3071. /usr/X11/lib \
  3072. /usr/X11R6/lib \
  3073. /usr/X11R5/lib \
  3074. /usr/X11R4/lib \
  3075. \
  3076. /usr/lib/X11 \
  3077. /usr/lib/X11R6 \
  3078. /usr/lib/X11R5 \
  3079. /usr/lib/X11R4 \
  3080. \
  3081. /usr/local/X11/lib \
  3082. /usr/local/X11R6/lib \
  3083. /usr/local/X11R5/lib \
  3084. /usr/local/X11R4/lib \
  3085. \
  3086. /usr/local/lib/X11 \
  3087. /usr/local/lib/X11R6 \
  3088. /usr/local/lib/X11R5 \
  3089. /usr/local/lib/X11R4 \
  3090. \
  3091. /usr/X386/lib \
  3092. /usr/x386/lib \
  3093. /usr/XFree86/lib/X11 \
  3094. \
  3095. /usr/lib \
  3096. /usr/local/lib \
  3097. /usr/unsupported/lib \
  3098. /usr/athena/lib \
  3099. /usr/local/x11r5/lib \
  3100. /usr/lpp/Xamples/lib \
  3101. /lib/usr/lib/X11 \
  3102. \
  3103. /usr/openwin/lib \
  3104. /usr/openwin/share/lib \
  3105. ; \
  3106. do
  3107. for ac_extension in a so sl; do
  3108. if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  3109. ac_x_libraries=$ac_dir
  3110. break 2
  3111. fi
  3112. done
  3113. done
  3114. fi
  3115. rm -f conftest*
  3116. fi # $ac_x_libraries = NO
  3117. if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
  3118. # Didn't find X anywhere. Cache the known absence of X.
  3119. ac_cv_have_x="have_x=no"
  3120. else
  3121. # Record where we found X for the cache.
  3122. ac_cv_have_x="have_x=yes \
  3123. ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  3124. fi
  3125. fi
  3126. eval "$ac_cv_have_x"
  3127. fi # $with_x != no
  3128. if test "$have_x" != yes; then
  3129. echo "$ac_t""$have_x" 1>&6
  3130. no_x=yes
  3131. else
  3132. # If each of the values was on the command line, it overrides each guess.
  3133. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  3134. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  3135. # Update the cache value to reflect the command line values.
  3136. ac_cv_have_x="have_x=yes \
  3137. ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  3138. echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
  3139. fi
  3140. if test "$no_x" = yes; then
  3141. # Not all programs may use this symbol, but it does not hurt to define it.
  3142. cat >> confdefs.h <<\EOF
  3143. #define X_DISPLAY_MISSING 1
  3144. EOF
  3145. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  3146. else
  3147. if test -n "$x_includes"; then
  3148. X_CFLAGS="$X_CFLAGS -I$x_includes"
  3149. fi
  3150. # It would also be nice to do this for all -L options, not just this one.
  3151. if test -n "$x_libraries"; then
  3152. X_LIBS="$X_LIBS -L$x_libraries"
  3153. # For Solaris; some versions of Sun CC require a space after -R and
  3154. # others require no space. Words are not sufficient . . . .
  3155. case "`(uname -sr) 2>/dev/null`" in
  3156. "SunOS 5"*)
  3157. echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
  3158. echo "configure:3789: checking whether -R must be followed by a space" >&5
  3159. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
  3160. cat > conftest.$ac_ext <<EOF
  3161. #line 3792 "configure"
  3162. #include "confdefs.h"
  3163. int main() {
  3164. ; return 0; }
  3165. EOF
  3166. if { (eval echo configure:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3167. rm -rf conftest*
  3168. ac_R_nospace=yes
  3169. else
  3170. echo "configure: failed program was:" >&5
  3171. cat conftest.$ac_ext >&5
  3172. rm -rf conftest*
  3173. ac_R_nospace=no
  3174. fi
  3175. rm -f conftest*
  3176. if test $ac_R_nospace = yes; then
  3177. echo "$ac_t""no" 1>&6
  3178. X_LIBS="$X_LIBS -R$x_libraries"
  3179. else
  3180. LIBS="$ac_xsave_LIBS -R $x_libraries"
  3181. cat > conftest.$ac_ext <<EOF
  3182. #line 3815 "configure"
  3183. #include "confdefs.h"
  3184. int main() {
  3185. ; return 0; }
  3186. EOF
  3187. if { (eval echo configure:3822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3188. rm -rf conftest*
  3189. ac_R_space=yes
  3190. else
  3191. echo "configure: failed program was:" >&5
  3192. cat conftest.$ac_ext >&5
  3193. rm -rf conftest*
  3194. ac_R_space=no
  3195. fi
  3196. rm -f conftest*
  3197. if test $ac_R_space = yes; then
  3198. echo "$ac_t""yes" 1>&6
  3199. X_LIBS="$X_LIBS -R $x_libraries"
  3200. else
  3201. echo "$ac_t""neither works" 1>&6
  3202. fi
  3203. fi
  3204. LIBS="$ac_xsave_LIBS"
  3205. esac
  3206. fi
  3207. # Check for system-dependent libraries X programs must link with.
  3208. # Do this before checking for the system-independent R6 libraries
  3209. # (-lICE), since we may need -lsocket or whatever for X linking.
  3210. if test "$ISC" = yes; then
  3211. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  3212. else
  3213. # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  3214. # libraries were built with DECnet support. And karl@cs.umb.edu says
  3215. # the Alpha needs dnet_stub (dnet does not exist).
  3216. echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
  3217. echo "configure:3854: checking for dnet_ntoa in -ldnet" >&5
  3218. ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  3219. ac_save_LIBS="$LIBS"
  3220. LIBS="-ldnet $LIBS"
  3221. cat > conftest.$ac_ext <<EOF
  3222. #line 3860 "configure"
  3223. #include "confdefs.h"
  3224. /* Override any gcc2 internal prototype to avoid an error. */
  3225. /* We use char because int might match the return type of a gcc2
  3226. builtin and then its argument prototype would still apply. */
  3227. char dnet_ntoa();
  3228. int main() {
  3229. dnet_ntoa()
  3230. ; return 0; }
  3231. EOF
  3232. if { (eval echo configure:3871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3233. rm -rf conftest*
  3234. eval "ac_cv_lib_$ac_lib_var=yes"
  3235. else
  3236. echo "configure: failed program was:" >&5
  3237. cat conftest.$ac_ext >&5
  3238. rm -rf conftest*
  3239. eval "ac_cv_lib_$ac_lib_var=no"
  3240. fi
  3241. rm -f conftest*
  3242. LIBS="$ac_save_LIBS"
  3243. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3244. echo "$ac_t""yes" 1>&6
  3245. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  3246. else
  3247. echo "$ac_t""no" 1>&6
  3248. fi
  3249. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  3250. echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
  3251. echo "configure:3892: checking for dnet_ntoa in -ldnet_stub" >&5
  3252. ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  3253. ac_save_LIBS="$LIBS"
  3254. LIBS="-ldnet_stub $LIBS"
  3255. cat > conftest.$ac_ext <<EOF
  3256. #line 3898 "configure"
  3257. #include "confdefs.h"
  3258. /* Override any gcc2 internal prototype to avoid an error. */
  3259. /* We use char because int might match the return type of a gcc2
  3260. builtin and then its argument prototype would still apply. */
  3261. char dnet_ntoa();
  3262. int main() {
  3263. dnet_ntoa()
  3264. ; return 0; }
  3265. EOF
  3266. if { (eval echo configure:3909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3267. rm -rf conftest*
  3268. eval "ac_cv_lib_$ac_lib_var=yes"
  3269. else
  3270. echo "configure: failed program was:" >&5
  3271. cat conftest.$ac_ext >&5
  3272. rm -rf conftest*
  3273. eval "ac_cv_lib_$ac_lib_var=no"
  3274. fi
  3275. rm -f conftest*
  3276. LIBS="$ac_save_LIBS"
  3277. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3278. echo "$ac_t""yes" 1>&6
  3279. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  3280. else
  3281. echo "$ac_t""no" 1>&6
  3282. fi
  3283. fi
  3284. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  3285. # to get the SysV transport functions.
  3286. # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
  3287. # needs -lnsl.
  3288. # The nsl library prevents programs from opening the X display
  3289. # on Irix 5.2, according to dickey@clark.net.
  3290. echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
  3291. echo "configure:3937: checking for gethostbyname" >&5
  3292. cat > conftest.$ac_ext <<EOF
  3293. #line 3940 "configure"
  3294. #include "confdefs.h"
  3295. /* System header to define __stub macros and hopefully few prototypes,
  3296. which can conflict with char gethostbyname(); below. */
  3297. #include <assert.h>
  3298. /* Override any gcc2 internal prototype to avoid an error. */
  3299. /* We use char because int might match the return type of a gcc2
  3300. builtin and then its argument prototype would still apply. */
  3301. char gethostbyname();
  3302. int main() {
  3303. /* The GNU C library defines this for functions which it implements
  3304. to always fail with ENOSYS. Some functions are actually named
  3305. something starting with __ and the normal name is an alias. */
  3306. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  3307. choke me
  3308. #else
  3309. gethostbyname();
  3310. #endif
  3311. ; return 0; }
  3312. EOF
  3313. if { (eval echo configure:3963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3314. rm -rf conftest*
  3315. eval "ac_cv_func_gethostbyname=yes"
  3316. else
  3317. echo "configure: failed program was:" >&5
  3318. cat conftest.$ac_ext >&5
  3319. rm -rf conftest*
  3320. eval "ac_cv_func_gethostbyname=no"
  3321. fi
  3322. rm -f conftest*
  3323. if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  3324. echo "$ac_t""yes" 1>&6
  3325. :
  3326. else
  3327. echo "$ac_t""no" 1>&6
  3328. fi
  3329. if test $ac_cv_func_gethostbyname = no; then
  3330. echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  3331. echo "configure:3983: checking for gethostbyname in -lnsl" >&5
  3332. ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  3333. ac_save_LIBS="$LIBS"
  3334. LIBS="-lnsl $LIBS"
  3335. cat > conftest.$ac_ext <<EOF
  3336. #line 3989 "configure"
  3337. #include "confdefs.h"
  3338. /* Override any gcc2 internal prototype to avoid an error. */
  3339. /* We use char because int might match the return type of a gcc2
  3340. builtin and then its argument prototype would still apply. */
  3341. char gethostbyname();
  3342. int main() {
  3343. gethostbyname()
  3344. ; return 0; }
  3345. EOF
  3346. if { (eval echo configure:4000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3347. rm -rf conftest*
  3348. eval "ac_cv_lib_$ac_lib_var=yes"
  3349. else
  3350. echo "configure: failed program was:" >&5
  3351. cat conftest.$ac_ext >&5
  3352. rm -rf conftest*
  3353. eval "ac_cv_lib_$ac_lib_var=no"
  3354. fi
  3355. rm -f conftest*
  3356. LIBS="$ac_save_LIBS"
  3357. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3358. echo "$ac_t""yes" 1>&6
  3359. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  3360. else
  3361. echo "$ac_t""no" 1>&6
  3362. fi
  3363. fi
  3364. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  3365. # socket/setsockopt and other routines are undefined under SCO ODT
  3366. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  3367. # on later versions), says simon@lia.di.epfl.ch: it contains
  3368. # gethostby* variants that don't use the nameserver (or something).
  3369. # -lsocket must be given before -lnsl if both are needed.
  3370. # We assume that if connect needs -lnsl, so does gethostbyname.
  3371. echo $ac_n "checking for connect""... $ac_c" 1>&6
  3372. echo "configure:4029: checking for connect" >&5
  3373. cat > conftest.$ac_ext <<EOF
  3374. #line 4032 "configure"
  3375. #include "confdefs.h"
  3376. /* System header to define __stub macros and hopefully few prototypes,
  3377. which can conflict with char connect(); below. */
  3378. #include <assert.h>
  3379. /* Override any gcc2 internal prototype to avoid an error. */
  3380. /* We use char because int might match the return type of a gcc2
  3381. builtin and then its argument prototype would still apply. */
  3382. char connect();
  3383. int main() {
  3384. /* The GNU C library defines this for functions which it implements
  3385. to always fail with ENOSYS. Some functions are actually named
  3386. something starting with __ and the normal name is an alias. */
  3387. #if defined (__stub_connect) || defined (__stub___connect)
  3388. choke me
  3389. #else
  3390. connect();
  3391. #endif
  3392. ; return 0; }
  3393. EOF
  3394. if { (eval echo configure:4055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3395. rm -rf conftest*
  3396. eval "ac_cv_func_connect=yes"
  3397. else
  3398. echo "configure: failed program was:" >&5
  3399. cat conftest.$ac_ext >&5
  3400. rm -rf conftest*
  3401. eval "ac_cv_func_connect=no"
  3402. fi
  3403. rm -f conftest*
  3404. if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  3405. echo "$ac_t""yes" 1>&6
  3406. :
  3407. else
  3408. echo "$ac_t""no" 1>&6
  3409. fi
  3410. if test $ac_cv_func_connect = no; then
  3411. echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
  3412. echo "configure:4075: checking for connect in -lsocket" >&5
  3413. ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
  3414. ac_save_LIBS="$LIBS"
  3415. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  3416. cat > conftest.$ac_ext <<EOF
  3417. #line 4081 "configure"
  3418. #include "confdefs.h"
  3419. /* Override any gcc2 internal prototype to avoid an error. */
  3420. /* We use char because int might match the return type of a gcc2
  3421. builtin and then its argument prototype would still apply. */
  3422. char connect();
  3423. int main() {
  3424. connect()
  3425. ; return 0; }
  3426. EOF
  3427. if { (eval echo configure:4092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3428. rm -rf conftest*
  3429. eval "ac_cv_lib_$ac_lib_var=yes"
  3430. else
  3431. echo "configure: failed program was:" >&5
  3432. cat conftest.$ac_ext >&5
  3433. rm -rf conftest*
  3434. eval "ac_cv_lib_$ac_lib_var=no"
  3435. fi
  3436. rm -f conftest*
  3437. LIBS="$ac_save_LIBS"
  3438. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3439. echo "$ac_t""yes" 1>&6
  3440. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  3441. else
  3442. echo "$ac_t""no" 1>&6
  3443. fi
  3444. fi
  3445. # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
  3446. echo $ac_n "checking for remove""... $ac_c" 1>&6
  3447. echo "configure:4115: checking for remove" >&5
  3448. cat > conftest.$ac_ext <<EOF
  3449. #line 4118 "configure"
  3450. #include "confdefs.h"
  3451. /* System header to define __stub macros and hopefully few prototypes,
  3452. which can conflict with char remove(); below. */
  3453. #include <assert.h>
  3454. /* Override any gcc2 internal prototype to avoid an error. */
  3455. /* We use char because int might match the return type of a gcc2
  3456. builtin and then its argument prototype would still apply. */
  3457. char remove();
  3458. int main() {
  3459. /* The GNU C library defines this for functions which it implements
  3460. to always fail with ENOSYS. Some functions are actually named
  3461. something starting with __ and the normal name is an alias. */
  3462. #if defined (__stub_remove) || defined (__stub___remove)
  3463. choke me
  3464. #else
  3465. remove();
  3466. #endif
  3467. ; return 0; }
  3468. EOF
  3469. if { (eval echo configure:4141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3470. rm -rf conftest*
  3471. eval "ac_cv_func_remove=yes"
  3472. else
  3473. echo "configure: failed program was:" >&5
  3474. cat conftest.$ac_ext >&5
  3475. rm -rf conftest*
  3476. eval "ac_cv_func_remove=no"
  3477. fi
  3478. rm -f conftest*
  3479. if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
  3480. echo "$ac_t""yes" 1>&6
  3481. :
  3482. else
  3483. echo "$ac_t""no" 1>&6
  3484. fi
  3485. if test $ac_cv_func_remove = no; then
  3486. echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
  3487. echo "configure:4161: checking for remove in -lposix" >&5
  3488. ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
  3489. ac_save_LIBS="$LIBS"
  3490. LIBS="-lposix $LIBS"
  3491. cat > conftest.$ac_ext <<EOF
  3492. #line 4167 "configure"
  3493. #include "confdefs.h"
  3494. /* Override any gcc2 internal prototype to avoid an error. */
  3495. /* We use char because int might match the return type of a gcc2
  3496. builtin and then its argument prototype would still apply. */
  3497. char remove();
  3498. int main() {
  3499. remove()
  3500. ; return 0; }
  3501. EOF
  3502. if { (eval echo configure:4178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3503. rm -rf conftest*
  3504. eval "ac_cv_lib_$ac_lib_var=yes"
  3505. else
  3506. echo "configure: failed program was:" >&5
  3507. cat conftest.$ac_ext >&5
  3508. rm -rf conftest*
  3509. eval "ac_cv_lib_$ac_lib_var=no"
  3510. fi
  3511. rm -f conftest*
  3512. LIBS="$ac_save_LIBS"
  3513. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3514. echo "$ac_t""yes" 1>&6
  3515. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  3516. else
  3517. echo "$ac_t""no" 1>&6
  3518. fi
  3519. fi
  3520. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  3521. echo $ac_n "checking for shmat""... $ac_c" 1>&6
  3522. echo "configure:4201: checking for shmat" >&5
  3523. cat > conftest.$ac_ext <<EOF
  3524. #line 4204 "configure"
  3525. #include "confdefs.h"
  3526. /* System header to define __stub macros and hopefully few prototypes,
  3527. which can conflict with char shmat(); below. */
  3528. #include <assert.h>
  3529. /* Override any gcc2 internal prototype to avoid an error. */
  3530. /* We use char because int might match the return type of a gcc2
  3531. builtin and then its argument prototype would still apply. */
  3532. char shmat();
  3533. int main() {
  3534. /* The GNU C library defines this for functions which it implements
  3535. to always fail with ENOSYS. Some functions are actually named
  3536. something starting with __ and the normal name is an alias. */
  3537. #if defined (__stub_shmat) || defined (__stub___shmat)
  3538. choke me
  3539. #else
  3540. shmat();
  3541. #endif
  3542. ; return 0; }
  3543. EOF
  3544. if { (eval echo configure:4227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3545. rm -rf conftest*
  3546. eval "ac_cv_func_shmat=yes"
  3547. else
  3548. echo "configure: failed program was:" >&5
  3549. cat conftest.$ac_ext >&5
  3550. rm -rf conftest*
  3551. eval "ac_cv_func_shmat=no"
  3552. fi
  3553. rm -f conftest*
  3554. if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
  3555. echo "$ac_t""yes" 1>&6
  3556. :
  3557. else
  3558. echo "$ac_t""no" 1>&6
  3559. fi
  3560. if test $ac_cv_func_shmat = no; then
  3561. echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
  3562. echo "configure:4247: checking for shmat in -lipc" >&5
  3563. ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
  3564. ac_save_LIBS="$LIBS"
  3565. LIBS="-lipc $LIBS"
  3566. cat > conftest.$ac_ext <<EOF
  3567. #line 4253 "configure"
  3568. #include "confdefs.h"
  3569. /* Override any gcc2 internal prototype to avoid an error. */
  3570. /* We use char because int might match the return type of a gcc2
  3571. builtin and then its argument prototype would still apply. */
  3572. char shmat();
  3573. int main() {
  3574. shmat()
  3575. ; return 0; }
  3576. EOF
  3577. if { (eval echo configure:4264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3578. rm -rf conftest*
  3579. eval "ac_cv_lib_$ac_lib_var=yes"
  3580. else
  3581. echo "configure: failed program was:" >&5
  3582. cat conftest.$ac_ext >&5
  3583. rm -rf conftest*
  3584. eval "ac_cv_lib_$ac_lib_var=no"
  3585. fi
  3586. rm -f conftest*
  3587. LIBS="$ac_save_LIBS"
  3588. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3589. echo "$ac_t""yes" 1>&6
  3590. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  3591. else
  3592. echo "$ac_t""no" 1>&6
  3593. fi
  3594. fi
  3595. fi
  3596. # Check for libraries that X11R6 Xt/Xaw programs need.
  3597. ac_save_LDFLAGS="$LDFLAGS"
  3598. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  3599. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  3600. # check for ICE first), but we must link in the order -lSM -lICE or
  3601. # we get undefined symbols. So assume we have SM if we have ICE.
  3602. # These have to be linked with before -lX11, unlike the other
  3603. # libraries we check for below, so use a different variable.
  3604. # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  3605. echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
  3606. echo "configure:4296: checking for IceConnectionNumber in -lICE" >&5
  3607. ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
  3608. ac_save_LIBS="$LIBS"
  3609. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  3610. cat > conftest.$ac_ext <<EOF
  3611. #line 4302 "configure"
  3612. #include "confdefs.h"
  3613. /* Override any gcc2 internal prototype to avoid an error. */
  3614. /* We use char because int might match the return type of a gcc2
  3615. builtin and then its argument prototype would still apply. */
  3616. char IceConnectionNumber();
  3617. int main() {
  3618. IceConnectionNumber()
  3619. ; return 0; }
  3620. EOF
  3621. if { (eval echo configure:4313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3622. rm -rf conftest*
  3623. eval "ac_cv_lib_$ac_lib_var=yes"
  3624. else
  3625. echo "configure: failed program was:" >&5
  3626. cat conftest.$ac_ext >&5
  3627. rm -rf conftest*
  3628. eval "ac_cv_lib_$ac_lib_var=no"
  3629. fi
  3630. rm -f conftest*
  3631. LIBS="$ac_save_LIBS"
  3632. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3633. echo "$ac_t""yes" 1>&6
  3634. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  3635. else
  3636. echo "$ac_t""no" 1>&6
  3637. fi
  3638. LDFLAGS="$ac_save_LDFLAGS"
  3639. fi
  3640. if test "$no_x" != "yes"; then
  3641. USE_X11="1"
  3642. XLIB=-lX11
  3643. XTLIB=-lXt
  3644. fi
  3645. fi
  3646. # Note that some systems (FreeBSD for example) need an extra library for
  3647. # cuserid
  3648. ac_save_libs="$LIBS"
  3649. LIBS=""
  3650. echo $ac_n "checking for library containing cuserid""... $ac_c" 1>&6
  3651. echo "configure:4353: checking for library containing cuserid" >&5
  3652. ac_func_search_save_LIBS="$LIBS"
  3653. ac_cv_search_cuserid="no"
  3654. cat > conftest.$ac_ext <<EOF
  3655. #line 4358 "configure"
  3656. #include "confdefs.h"
  3657. /* Override any gcc2 internal prototype to avoid an error. */
  3658. /* We use char because int might match the return type of a gcc2
  3659. builtin and then its argument prototype would still apply. */
  3660. char cuserid();
  3661. int main() {
  3662. cuserid()
  3663. ; return 0; }
  3664. EOF
  3665. if { (eval echo configure:4369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3666. rm -rf conftest*
  3667. ac_cv_search_cuserid="none required"
  3668. else
  3669. echo "configure: failed program was:" >&5
  3670. cat conftest.$ac_ext >&5
  3671. fi
  3672. rm -f conftest*
  3673. test "$ac_cv_search_cuserid" = "no" && for i in compat; do
  3674. LIBS="-l$i $ac_func_search_save_LIBS"
  3675. cat > conftest.$ac_ext <<EOF
  3676. #line 4380 "configure"
  3677. #include "confdefs.h"
  3678. /* Override any gcc2 internal prototype to avoid an error. */
  3679. /* We use char because int might match the return type of a gcc2
  3680. builtin and then its argument prototype would still apply. */
  3681. char cuserid();
  3682. int main() {
  3683. cuserid()
  3684. ; return 0; }
  3685. EOF
  3686. if { (eval echo configure:4391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3687. rm -rf conftest*
  3688. ac_cv_search_cuserid="-l$i"
  3689. break
  3690. else
  3691. echo "configure: failed program was:" >&5
  3692. cat conftest.$ac_ext >&5
  3693. fi
  3694. rm -f conftest*
  3695. done
  3696. LIBS="$ac_func_search_save_LIBS"
  3697. echo "$ac_t""$ac_cv_search_cuserid" 1>&6
  3698. if test "$ac_cv_search_cuserid" != "no"; then
  3699. test "$ac_cv_search_cuserid" = "none required" || LIBS="$ac_cv_search_cuserid $LIBS"
  3700. else :
  3701. fi
  3702. DBMIEXTRALIB="$LIBS"
  3703. LIBS="$ac_save_libs"
  3704. for ac_func in asprintf
  3705. do
  3706. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3707. echo "configure:4417: checking for $ac_func" >&5
  3708. cat > conftest.$ac_ext <<EOF
  3709. #line 4420 "configure"
  3710. #include "confdefs.h"
  3711. /* System header to define __stub macros and hopefully few prototypes,
  3712. which can conflict with char $ac_func(); below. */
  3713. #include <assert.h>
  3714. /* Override any gcc2 internal prototype to avoid an error. */
  3715. /* We use char because int might match the return type of a gcc2
  3716. builtin and then its argument prototype would still apply. */
  3717. char $ac_func();
  3718. int main() {
  3719. /* The GNU C library defines this for functions which it implements
  3720. to always fail with ENOSYS. Some functions are actually named
  3721. something starting with __ and the normal name is an alias. */
  3722. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3723. choke me
  3724. #else
  3725. $ac_func();
  3726. #endif
  3727. ; return 0; }
  3728. EOF
  3729. if { (eval echo configure:4443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3730. rm -rf conftest*
  3731. eval "ac_cv_func_$ac_func=yes"
  3732. else
  3733. echo "configure: failed program was:" >&5
  3734. cat conftest.$ac_ext >&5
  3735. rm -rf conftest*
  3736. eval "ac_cv_func_$ac_func=no"
  3737. fi
  3738. rm -f conftest*
  3739. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3740. echo "$ac_t""yes" 1>&6
  3741. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3742. cat >> confdefs.h <<EOF
  3743. #define $ac_tr_func 1
  3744. EOF
  3745. else
  3746. echo "$ac_t""no" 1>&6
  3747. fi
  3748. done
  3749. # Test if mathlib needs -lm flag or is included with libc
  3750. echo $ac_n "checking for atan""... $ac_c" 1>&6
  3751. echo "configure:4470: checking for atan" >&5
  3752. cat > conftest.$ac_ext <<EOF
  3753. #line 4473 "configure"
  3754. #include "confdefs.h"
  3755. /* System header to define __stub macros and hopefully few prototypes,
  3756. which can conflict with char atan(); below. */
  3757. #include <assert.h>
  3758. /* Override any gcc2 internal prototype to avoid an error. */
  3759. /* We use char because int might match the return type of a gcc2
  3760. builtin and then its argument prototype would still apply. */
  3761. char atan();
  3762. int main() {
  3763. /* The GNU C library defines this for functions which it implements
  3764. to always fail with ENOSYS. Some functions are actually named
  3765. something starting with __ and the normal name is an alias. */
  3766. #if defined (__stub_atan) || defined (__stub___atan)
  3767. choke me
  3768. #else
  3769. atan();
  3770. #endif
  3771. ; return 0; }
  3772. EOF
  3773. if { (eval echo configure:4496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3774. rm -rf conftest*
  3775. eval "ac_cv_func_atan=yes"
  3776. else
  3777. echo "configure: failed program was:" >&5
  3778. cat conftest.$ac_ext >&5
  3779. rm -rf conftest*
  3780. eval "ac_cv_func_atan=no"
  3781. fi
  3782. rm -f conftest*
  3783. if eval "test \"`echo '$ac_cv_func_'atan`\" = yes"; then
  3784. echo "$ac_t""yes" 1>&6
  3785. MATHLIB=
  3786. else
  3787. echo "$ac_t""no" 1>&6
  3788. echo $ac_n "checking for atan in -lm""... $ac_c" 1>&6
  3789. echo "configure:4514: checking for atan in -lm" >&5
  3790. ac_lib_var=`echo m'_'atan | sed 'y%./+-%__p_%'`
  3791. ac_save_LIBS="$LIBS"
  3792. LIBS="-lm $LIBS"
  3793. cat > conftest.$ac_ext <<EOF
  3794. #line 4520 "configure"
  3795. #include "confdefs.h"
  3796. /* Override any gcc2 internal prototype to avoid an error. */
  3797. /* We use char because int might match the return type of a gcc2
  3798. builtin and then its argument prototype would still apply. */
  3799. char atan();
  3800. int main() {
  3801. atan()
  3802. ; return 0; }
  3803. EOF
  3804. if { (eval echo configure:4531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3805. rm -rf conftest*
  3806. eval "ac_cv_lib_$ac_lib_var=yes"
  3807. else
  3808. echo "configure: failed program was:" >&5
  3809. cat conftest.$ac_ext >&5
  3810. rm -rf conftest*
  3811. eval "ac_cv_lib_$ac_lib_var=no"
  3812. fi
  3813. rm -f conftest*
  3814. LIBS="$ac_save_LIBS"
  3815. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3816. echo "$ac_t""yes" 1>&6
  3817. MATHLIB=-lm
  3818. else
  3819. echo "$ac_t""no" 1>&6
  3820. { echo "configure: error: *** Failed check for math library." 1>&2; exit 1; }
  3821. fi
  3822. fi
  3823. echo $ac_n "checking for dlsym""... $ac_c" 1>&6
  3824. echo "configure:4558: checking for dlsym" >&5
  3825. cat > conftest.$ac_ext <<EOF
  3826. #line 4561 "configure"
  3827. #include "confdefs.h"
  3828. /* System header to define __stub macros and hopefully few prototypes,
  3829. which can conflict with char dlsym(); below. */
  3830. #include <assert.h>
  3831. /* Override any gcc2 internal prototype to avoid an error. */
  3832. /* We use char because int might match the return type of a gcc2
  3833. builtin and then its argument prototype would still apply. */
  3834. char dlsym();
  3835. int main() {
  3836. /* The GNU C library defines this for functions which it implements
  3837. to always fail with ENOSYS. Some functions are actually named
  3838. something starting with __ and the normal name is an alias. */
  3839. #if defined (__stub_dlsym) || defined (__stub___dlsym)
  3840. choke me
  3841. #else
  3842. dlsym();
  3843. #endif
  3844. ; return 0; }
  3845. EOF
  3846. if { (eval echo configure:4584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3847. rm -rf conftest*
  3848. eval "ac_cv_func_dlsym=yes"
  3849. else
  3850. echo "configure: failed program was:" >&5
  3851. cat conftest.$ac_ext >&5
  3852. rm -rf conftest*
  3853. eval "ac_cv_func_dlsym=no"
  3854. fi
  3855. rm -f conftest*
  3856. if eval "test \"`echo '$ac_cv_func_'dlsym`\" = yes"; then
  3857. echo "$ac_t""yes" 1>&6
  3858. DLLIB=
  3859. else
  3860. echo "$ac_t""no" 1>&6
  3861. echo $ac_n "checking for dlsym in -ldl""... $ac_c" 1>&6
  3862. echo "configure:4602: checking for dlsym in -ldl" >&5
  3863. ac_lib_var=`echo dl'_'dlsym | sed 'y%./+-%__p_%'`
  3864. ac_save_LIBS="$LIBS"
  3865. LIBS="-ldl $LIBS"
  3866. cat > conftest.$ac_ext <<EOF
  3867. #line 4608 "configure"
  3868. #include "confdefs.h"
  3869. /* Override any gcc2 internal prototype to avoid an error. */
  3870. /* We use char because int might match the return type of a gcc2
  3871. builtin and then its argument prototype would still apply. */
  3872. char dlsym();
  3873. int main() {
  3874. dlsym()
  3875. ; return 0; }
  3876. EOF
  3877. if { (eval echo configure:4619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3878. rm -rf conftest*
  3879. eval "ac_cv_lib_$ac_lib_var=yes"
  3880. else
  3881. echo "configure: failed program was:" >&5
  3882. cat conftest.$ac_ext >&5
  3883. rm -rf conftest*
  3884. eval "ac_cv_lib_$ac_lib_var=no"
  3885. fi
  3886. rm -f conftest*
  3887. LIBS="$ac_save_LIBS"
  3888. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3889. echo "$ac_t""yes" 1>&6
  3890. DLLIB=-ldl
  3891. else
  3892. echo "$ac_t""no" 1>&6
  3893. DLLIB=
  3894. fi
  3895. fi
  3896. echo $ac_n "checking for iconv""... $ac_c" 1>&6
  3897. echo "configure:4646: checking for iconv" >&5
  3898. cat > conftest.$ac_ext <<EOF
  3899. #line 4649 "configure"
  3900. #include "confdefs.h"
  3901. /* System header to define __stub macros and hopefully few prototypes,
  3902. which can conflict with char iconv(); below. */
  3903. #include <assert.h>
  3904. /* Override any gcc2 internal prototype to avoid an error. */
  3905. /* We use char because int might match the return type of a gcc2
  3906. builtin and then its argument prototype would still apply. */
  3907. char iconv();
  3908. int main() {
  3909. /* The GNU C library defines this for functions which it implements
  3910. to always fail with ENOSYS. Some functions are actually named
  3911. something starting with __ and the normal name is an alias. */
  3912. #if defined (__stub_iconv) || defined (__stub___iconv)
  3913. choke me
  3914. #else
  3915. iconv();
  3916. #endif
  3917. ; return 0; }
  3918. EOF
  3919. if { (eval echo configure:4672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3920. rm -rf conftest*
  3921. eval "ac_cv_func_iconv=yes"
  3922. else
  3923. echo "configure: failed program was:" >&5
  3924. cat conftest.$ac_ext >&5
  3925. rm -rf conftest*
  3926. eval "ac_cv_func_iconv=no"
  3927. fi
  3928. rm -f conftest*
  3929. if eval "test \"`echo '$ac_cv_func_'iconv`\" = yes"; then
  3930. echo "$ac_t""yes" 1>&6
  3931. ICONVLIB=
  3932. else
  3933. echo "$ac_t""no" 1>&6
  3934. echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
  3935. echo "configure:4690: checking for iconv in -liconv" >&5
  3936. ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
  3937. ac_save_LIBS="$LIBS"
  3938. LIBS="-liconv $LIBS"
  3939. cat > conftest.$ac_ext <<EOF
  3940. #line 4696 "configure"
  3941. #include "confdefs.h"
  3942. /* Override any gcc2 internal prototype to avoid an error. */
  3943. /* We use char because int might match the return type of a gcc2
  3944. builtin and then its argument prototype would still apply. */
  3945. char iconv();
  3946. int main() {
  3947. iconv()
  3948. ; return 0; }
  3949. EOF
  3950. if { (eval echo configure:4707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3951. rm -rf conftest*
  3952. eval "ac_cv_lib_$ac_lib_var=yes"
  3953. else
  3954. echo "configure: failed program was:" >&5
  3955. cat conftest.$ac_ext >&5
  3956. rm -rf conftest*
  3957. eval "ac_cv_lib_$ac_lib_var=no"
  3958. fi
  3959. rm -f conftest*
  3960. LIBS="$ac_save_LIBS"
  3961. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3962. echo "$ac_t""yes" 1>&6
  3963. ICONVLIB=-liconv
  3964. else
  3965. echo "$ac_t""no" 1>&6
  3966. echo $ac_n "checking for iconv in -lgiconv""... $ac_c" 1>&6
  3967. echo "configure:4726: checking for iconv in -lgiconv" >&5
  3968. ac_lib_var=`echo giconv'_'iconv | sed 'y%./+-%__p_%'`
  3969. ac_save_LIBS="$LIBS"
  3970. LIBS="-lgiconv $LIBS"
  3971. cat > conftest.$ac_ext <<EOF
  3972. #line 4732 "configure"
  3973. #include "confdefs.h"
  3974. /* Override any gcc2 internal prototype to avoid an error. */
  3975. /* We use char because int might match the return type of a gcc2
  3976. builtin and then its argument prototype would still apply. */
  3977. char iconv();
  3978. int main() {
  3979. iconv()
  3980. ; return 0; }
  3981. EOF
  3982. if { (eval echo configure:4743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3983. rm -rf conftest*
  3984. eval "ac_cv_lib_$ac_lib_var=yes"
  3985. else
  3986. echo "configure: failed program was:" >&5
  3987. cat conftest.$ac_ext >&5
  3988. rm -rf conftest*
  3989. eval "ac_cv_lib_$ac_lib_var=no"
  3990. fi
  3991. rm -f conftest*
  3992. LIBS="$ac_save_LIBS"
  3993. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3994. echo "$ac_t""yes" 1>&6
  3995. ICONVLIB=-lgiconv
  3996. else
  3997. echo "$ac_t""no" 1>&6
  3998. echo $ac_n "checking for libiconv""... $ac_c" 1>&6
  3999. echo "configure:4762: checking for libiconv" >&5
  4000. cat > conftest.$ac_ext <<EOF
  4001. #line 4765 "configure"
  4002. #include "confdefs.h"
  4003. /* System header to define __stub macros and hopefully few prototypes,
  4004. which can conflict with char libiconv(); below. */
  4005. #include <assert.h>
  4006. /* Override any gcc2 internal prototype to avoid an error. */
  4007. /* We use char because int might match the return type of a gcc2
  4008. builtin and then its argument prototype would still apply. */
  4009. char libiconv();
  4010. int main() {
  4011. /* The GNU C library defines this for functions which it implements
  4012. to always fail with ENOSYS. Some functions are actually named
  4013. something starting with __ and the normal name is an alias. */
  4014. #if defined (__stub_libiconv) || defined (__stub___libiconv)
  4015. choke me
  4016. #else
  4017. libiconv();
  4018. #endif
  4019. ; return 0; }
  4020. EOF
  4021. if { (eval echo configure:4788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4022. rm -rf conftest*
  4023. eval "ac_cv_func_libiconv=yes"
  4024. else
  4025. echo "configure: failed program was:" >&5
  4026. cat conftest.$ac_ext >&5
  4027. rm -rf conftest*
  4028. eval "ac_cv_func_libiconv=no"
  4029. fi
  4030. rm -f conftest*
  4031. if eval "test \"`echo '$ac_cv_func_'libiconv`\" = yes"; then
  4032. echo "$ac_t""yes" 1>&6
  4033. ICONVLIB=
  4034. else
  4035. echo "$ac_t""no" 1>&6
  4036. echo $ac_n "checking for libiconv in -liconv""... $ac_c" 1>&6
  4037. echo "configure:4806: checking for libiconv in -liconv" >&5
  4038. ac_lib_var=`echo iconv'_'libiconv | sed 'y%./+-%__p_%'`
  4039. ac_save_LIBS="$LIBS"
  4040. LIBS="-liconv $LIBS"
  4041. cat > conftest.$ac_ext <<EOF
  4042. #line 4812 "configure"
  4043. #include "confdefs.h"
  4044. /* Override any gcc2 internal prototype to avoid an error. */
  4045. /* We use char because int might match the return type of a gcc2
  4046. builtin and then its argument prototype would still apply. */
  4047. char libiconv();
  4048. int main() {
  4049. libiconv()
  4050. ; return 0; }
  4051. EOF
  4052. if { (eval echo configure:4823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4053. rm -rf conftest*
  4054. eval "ac_cv_lib_$ac_lib_var=yes"
  4055. else
  4056. echo "configure: failed program was:" >&5
  4057. cat conftest.$ac_ext >&5
  4058. rm -rf conftest*
  4059. eval "ac_cv_lib_$ac_lib_var=no"
  4060. fi
  4061. rm -f conftest*
  4062. LIBS="$ac_save_LIBS"
  4063. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4064. echo "$ac_t""yes" 1>&6
  4065. ICONVLIB=-liconv
  4066. else
  4067. echo "$ac_t""no" 1>&6
  4068. echo $ac_n "checking for libiconv in -lgiconv""... $ac_c" 1>&6
  4069. echo "configure:4842: checking for libiconv in -lgiconv" >&5
  4070. ac_lib_var=`echo giconv'_'libiconv | sed 'y%./+-%__p_%'`
  4071. ac_save_LIBS="$LIBS"
  4072. LIBS="-lgiconv $LIBS"
  4073. cat > conftest.$ac_ext <<EOF
  4074. #line 4848 "configure"
  4075. #include "confdefs.h"
  4076. /* Override any gcc2 internal prototype to avoid an error. */
  4077. /* We use char because int might match the return type of a gcc2
  4078. builtin and then its argument prototype would still apply. */
  4079. char libiconv();
  4080. int main() {
  4081. libiconv()
  4082. ; return 0; }
  4083. EOF
  4084. if { (eval echo configure:4859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4085. rm -rf conftest*
  4086. eval "ac_cv_lib_$ac_lib_var=yes"
  4087. else
  4088. echo "configure: failed program was:" >&5
  4089. cat conftest.$ac_ext >&5
  4090. rm -rf conftest*
  4091. eval "ac_cv_lib_$ac_lib_var=no"
  4092. fi
  4093. rm -f conftest*
  4094. LIBS="$ac_save_LIBS"
  4095. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4096. echo "$ac_t""yes" 1>&6
  4097. ICONVLIB=-lgiconv
  4098. else
  4099. echo "$ac_t""no" 1>&6
  4100. echo "configure: warning: *** Unable to locate iconv() function." 1>&2
  4101. ICONVLIB=
  4102. fi
  4103. fi
  4104. fi
  4105. fi
  4106. fi
  4107. fi
  4108. have_socket=1
  4109. echo $ac_n "checking for socket""... $ac_c" 1>&6
  4110. echo "configure:4896: checking for socket" >&5
  4111. cat > conftest.$ac_ext <<EOF
  4112. #line 4899 "configure"
  4113. #include "confdefs.h"
  4114. /* System header to define __stub macros and hopefully few prototypes,
  4115. which can conflict with char socket(); below. */
  4116. #include <assert.h>
  4117. /* Override any gcc2 internal prototype to avoid an error. */
  4118. /* We use char because int might match the return type of a gcc2
  4119. builtin and then its argument prototype would still apply. */
  4120. char socket();
  4121. int main() {
  4122. /* The GNU C library defines this for functions which it implements
  4123. to always fail with ENOSYS. Some functions are actually named
  4124. something starting with __ and the normal name is an alias. */
  4125. #if defined (__stub_socket) || defined (__stub___socket)
  4126. choke me
  4127. #else
  4128. socket();
  4129. #endif
  4130. ; return 0; }
  4131. EOF
  4132. if { (eval echo configure:4922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4133. rm -rf conftest*
  4134. eval "ac_cv_func_socket=yes"
  4135. else
  4136. echo "configure: failed program was:" >&5
  4137. cat conftest.$ac_ext >&5
  4138. rm -rf conftest*
  4139. eval "ac_cv_func_socket=no"
  4140. fi
  4141. rm -f conftest*
  4142. if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
  4143. echo "$ac_t""yes" 1>&6
  4144. SOCKLIB=
  4145. else
  4146. echo "$ac_t""no" 1>&6
  4147. echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
  4148. echo "configure:4940: checking for socket in -lsocket" >&5
  4149. ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
  4150. ac_save_LIBS="$LIBS"
  4151. LIBS="-lsocket $LIBS"
  4152. cat > conftest.$ac_ext <<EOF
  4153. #line 4946 "configure"
  4154. #include "confdefs.h"
  4155. /* Override any gcc2 internal prototype to avoid an error. */
  4156. /* We use char because int might match the return type of a gcc2
  4157. builtin and then its argument prototype would still apply. */
  4158. char socket();
  4159. int main() {
  4160. socket()
  4161. ; return 0; }
  4162. EOF
  4163. if { (eval echo configure:4957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4164. rm -rf conftest*
  4165. eval "ac_cv_lib_$ac_lib_var=yes"
  4166. else
  4167. echo "configure: failed program was:" >&5
  4168. cat conftest.$ac_ext >&5
  4169. rm -rf conftest*
  4170. eval "ac_cv_lib_$ac_lib_var=no"
  4171. fi
  4172. rm -f conftest*
  4173. LIBS="$ac_save_LIBS"
  4174. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4175. echo "$ac_t""yes" 1>&6
  4176. SOCKLIB=-lsocket
  4177. else
  4178. echo "$ac_t""no" 1>&6
  4179. have_socket=0
  4180. echo "configure: warning: *** Unable to locate socket() function." 1>&2
  4181. fi
  4182. fi
  4183. if test "$have_socket" = 1 ; then
  4184. HAVE_SOCKET=1
  4185. cat >> confdefs.h <<\EOF
  4186. #define HAVE_SOCKET 1
  4187. EOF
  4188. else
  4189. HAVE_SOCKET=
  4190. fi
  4191. # Mandatory zlib dependency
  4192. ZLIBLIBPATH=
  4193. ZLIBINCPATH=
  4194. ZLIB=
  4195. # With zlib includes directory
  4196. echo $ac_n "checking for location of zlib includes""... $ac_c" 1>&6
  4197. echo "configure:5005: checking for location of zlib includes" >&5
  4198. case "$with_zlib_includes" in
  4199. y | ye | yes | n | no)
  4200. { echo "configure: error: *** You must supply a directory to --with-zlib-includes." 1>&2; exit 1; }
  4201. ;;
  4202. esac
  4203. echo "$ac_t""$with_zlib_includes" 1>&6
  4204. if test -n "$with_zlib_includes" ; then
  4205. for dir in $with_zlib_includes; do
  4206. if test -d "$dir"; then
  4207. ZLIBINCPATH="$ZLIBINCPATH -I$dir"
  4208. else
  4209. { echo "configure: error: *** zlib includes directory $dir does not exist." 1>&2; exit 1; }
  4210. fi
  4211. done
  4212. fi
  4213. ac_save_cppflags="$CPPFLAGS"
  4214. CPPFLAGS="$ZLIBINCPATH $CPPFLAGS"
  4215. for ac_hdr in zlib.h
  4216. do
  4217. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4218. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4219. echo "configure:5031: checking for $ac_hdr" >&5
  4220. cat > conftest.$ac_ext <<EOF
  4221. #line 5034 "configure"
  4222. #include "confdefs.h"
  4223. #include <$ac_hdr>
  4224. EOF
  4225. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4226. { (eval echo configure:5039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4227. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4228. if test -z "$ac_err"; then
  4229. rm -rf conftest*
  4230. eval "ac_cv_header_$ac_safe=yes"
  4231. else
  4232. echo "$ac_err" >&5
  4233. echo "configure: failed program was:" >&5
  4234. cat conftest.$ac_ext >&5
  4235. rm -rf conftest*
  4236. eval "ac_cv_header_$ac_safe=no"
  4237. fi
  4238. rm -f conftest*
  4239. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4240. echo "$ac_t""yes" 1>&6
  4241. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4242. cat >> confdefs.h <<EOF
  4243. #define $ac_tr_hdr 1
  4244. EOF
  4245. else
  4246. echo "$ac_t""no" 1>&6
  4247. { echo "configure: error: *** Unable to locate zlib includes." 1>&2; exit 1; }
  4248. fi
  4249. done
  4250. CPPFLAGS=$ac_save_cppflags
  4251. # With zlib library directory
  4252. echo $ac_n "checking for location of zlib library""... $ac_c" 1>&6
  4253. echo "configure:5073: checking for location of zlib library" >&5
  4254. case "$with_zlib_libs" in
  4255. y | ye | yes | n | no)
  4256. { echo "configure: error: *** You must supply a directory to --with-zlib-libs." 1>&2; exit 1; }
  4257. ;;
  4258. esac
  4259. echo "$ac_t""$with_zlib_libs" 1>&6
  4260. if test -n "$with_zlib_libs"; then
  4261. for dir in $with_zlib_libs; do
  4262. if test -d "$dir"; then
  4263. ZLIBLIBPATH="$ZLIBLIBPATH -L$dir"
  4264. else
  4265. { echo "configure: error: *** zlib library directory $dir does not exist." 1>&2; exit 1; }
  4266. fi
  4267. done
  4268. fi
  4269. ac_save_ldflags="$LDFLAGS"
  4270. LDFLAGS="$ZLIBLIBPATH $LDFLAGS"
  4271. echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
  4272. echo "configure:5098: checking for deflate in -lz" >&5
  4273. ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
  4274. ac_save_LIBS="$LIBS"
  4275. LIBS="-lz $LIBS"
  4276. cat > conftest.$ac_ext <<EOF
  4277. #line 5104 "configure"
  4278. #include "confdefs.h"
  4279. /* Override any gcc2 internal prototype to avoid an error. */
  4280. /* We use char because int might match the return type of a gcc2
  4281. builtin and then its argument prototype would still apply. */
  4282. char deflate();
  4283. int main() {
  4284. deflate()
  4285. ; return 0; }
  4286. EOF
  4287. if { (eval echo configure:5115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4288. rm -rf conftest*
  4289. eval "ac_cv_lib_$ac_lib_var=yes"
  4290. else
  4291. echo "configure: failed program was:" >&5
  4292. cat conftest.$ac_ext >&5
  4293. rm -rf conftest*
  4294. eval "ac_cv_lib_$ac_lib_var=no"
  4295. fi
  4296. rm -f conftest*
  4297. LIBS="$ac_save_LIBS"
  4298. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4299. echo "$ac_t""yes" 1>&6
  4300. ZLIB="$ZLIB -lz "
  4301. else
  4302. echo "$ac_t""no" 1>&6
  4303. LDFLAGS=${ac_save_ldflags}
  4304. { echo "configure: error: *** Unable to locate zlib library." 1>&2; exit 1; }
  4305. fi
  4306. LDFLAGS=${ac_save_ldflags}
  4307. #
  4308. # Done checking zlib
  4309. # Mandatory PROJ dependency
  4310. PROJINC=
  4311. PROJLIB=
  4312. PROJSHARE=
  4313. # With PROJ includes directory
  4314. echo $ac_n "checking for location of External PROJ.4 includes""... $ac_c" 1>&6
  4315. echo "configure:5163: checking for location of External PROJ.4 includes" >&5
  4316. case "$with_proj_includes" in
  4317. y | ye | yes | n | no)
  4318. { echo "configure: error: *** You must supply a directory to --with-proj-includes." 1>&2; exit 1; }
  4319. ;;
  4320. esac
  4321. echo "$ac_t""$with_proj_includes" 1>&6
  4322. if test -n "$with_proj_includes" ; then
  4323. for dir in $with_proj_includes; do
  4324. if test -d "$dir"; then
  4325. PROJINC="$PROJINC -I$dir"
  4326. else
  4327. { echo "configure: error: *** External PROJ.4 includes directory $dir does not exist." 1>&2; exit 1; }
  4328. fi
  4329. done
  4330. fi
  4331. ac_save_cppflags="$CPPFLAGS"
  4332. CPPFLAGS="$PROJINC $CPPFLAGS"
  4333. for ac_hdr in proj_api.h
  4334. do
  4335. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4336. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4337. echo "configure:5189: checking for $ac_hdr" >&5
  4338. cat > conftest.$ac_ext <<EOF
  4339. #line 5192 "configure"
  4340. #include "confdefs.h"
  4341. #include <$ac_hdr>
  4342. EOF
  4343. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4344. { (eval echo configure:5197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4345. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4346. if test -z "$ac_err"; then
  4347. rm -rf conftest*
  4348. eval "ac_cv_header_$ac_safe=yes"
  4349. else
  4350. echo "$ac_err" >&5
  4351. echo "configure: failed program was:" >&5
  4352. cat conftest.$ac_ext >&5
  4353. rm -rf conftest*
  4354. eval "ac_cv_header_$ac_safe=no"
  4355. fi
  4356. rm -f conftest*
  4357. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4358. echo "$ac_t""yes" 1>&6
  4359. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4360. cat >> confdefs.h <<EOF
  4361. #define $ac_tr_hdr 1
  4362. EOF
  4363. else
  4364. echo "$ac_t""no" 1>&6
  4365. { echo "configure: error: *** Unable to locate External PROJ.4 includes." 1>&2; exit 1; }
  4366. fi
  4367. done
  4368. CPPFLAGS=$ac_save_cppflags
  4369. # PROJ version check
  4370. if test "$cross_compiling" = yes; then
  4371. echo "configure: warning: *** Cannot check PROJ.4 version (cross-compiling)." 1>&2
  4372. else
  4373. echo $ac_n "checking External PROJ.4 version""... $ac_c" 1>&6
  4374. echo "configure:5234: checking External PROJ.4 version" >&5
  4375. ac_save_cppflags="$CPPFLAGS"
  4376. CPPFLAGS="$PROJINC $CPPFLAGS"
  4377. if test "$cross_compiling" = yes; then
  4378. proj_ver=0
  4379. echo "$ac_t""unknown (cross-compiling)" 1>&6
  4380. else
  4381. cat > conftest.$ac_ext <<EOF
  4382. #line 5242 "configure"
  4383. #include "confdefs.h"
  4384. #include <stdio.h>
  4385. #include <proj_api.h>
  4386. int main(void) {
  4387. FILE *fp = fopen("conftestdata","w");
  4388. fprintf(fp, "%d", PJ_VERSION);
  4389. return 0;
  4390. }
  4391. EOF
  4392. if { (eval echo configure:5254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4393. then
  4394. proj_ver=`cat conftestdata`
  4395. echo "$ac_t""$proj_ver" 1>&6
  4396. else
  4397. echo "configure: failed program was:" >&5
  4398. cat conftest.$ac_ext >&5
  4399. rm -fr conftest*
  4400. { echo "configure: error: *** Could not determine External PROJ.4 version." 1>&2; exit 1; }
  4401. fi
  4402. rm -fr conftest*
  4403. fi
  4404. CPPFLAGS=$ac_save_cppflags
  4405. if test `expr "$proj_ver" \< 446` = 1 ; then
  4406. { echo "configure: error: *** PROJ.4.4.6 or later is required." 1>&2; exit 1; }
  4407. fi
  4408. fi
  4409. # With PROJ library directory
  4410. echo $ac_n "checking for location of External PROJ.4 library""... $ac_c" 1>&6
  4411. echo "configure:5279: checking for location of External PROJ.4 library" >&5
  4412. case "$with_proj_libs" in
  4413. y | ye | yes | n | no)
  4414. { echo "configure: error: *** You must supply a directory to --with-proj-libs." 1>&2; exit 1; }
  4415. ;;
  4416. esac
  4417. echo "$ac_t""$with_proj_libs" 1>&6
  4418. if test -n "$with_proj_libs"; then
  4419. for dir in $with_proj_libs; do
  4420. if test -d "$dir"; then
  4421. PROJLIB="$PROJLIB -L$dir"
  4422. else
  4423. { echo "configure: error: *** External PROJ.4 library directory $dir does not exist." 1>&2; exit 1; }
  4424. fi
  4425. done
  4426. fi
  4427. ac_save_ldflags="$LDFLAGS"
  4428. LDFLAGS="$PROJLIB $LDFLAGS"
  4429. echo $ac_n "checking for pj_get_def in -lproj""... $ac_c" 1>&6
  4430. echo "configure:5304: checking for pj_get_def in -lproj" >&5
  4431. ac_lib_var=`echo proj'_'pj_get_def | sed 'y%./+-%__p_%'`
  4432. ac_save_LIBS="$LIBS"
  4433. LIBS="-lproj $LIBS"
  4434. cat > conftest.$ac_ext <<EOF
  4435. #line 5310 "configure"
  4436. #include "confdefs.h"
  4437. /* Override any gcc2 internal prototype to avoid an error. */
  4438. /* We use char because int might match the return type of a gcc2
  4439. builtin and then its argument prototype would still apply. */
  4440. char pj_get_def();
  4441. int main() {
  4442. pj_get_def()
  4443. ; return 0; }
  4444. EOF
  4445. if { (eval echo configure:5321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4446. rm -rf conftest*
  4447. eval "ac_cv_lib_$ac_lib_var=yes"
  4448. else
  4449. echo "configure: failed program was:" >&5
  4450. cat conftest.$ac_ext >&5
  4451. rm -rf conftest*
  4452. eval "ac_cv_lib_$ac_lib_var=no"
  4453. fi
  4454. rm -f conftest*
  4455. LIBS="$ac_save_LIBS"
  4456. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4457. echo "$ac_t""yes" 1>&6
  4458. PROJLIB="$PROJLIB -lproj "
  4459. else
  4460. echo "$ac_t""no" 1>&6
  4461. LDFLAGS=${ac_save_ldflags}
  4462. { echo "configure: error: *** Unable to locate External PROJ.4 library." 1>&2; exit 1; }
  4463. fi
  4464. LDFLAGS=${ac_save_ldflags}
  4465. # With PROJ share directory
  4466. echo $ac_n "checking for location of External PROJ.4 data files""... $ac_c" 1>&6
  4467. echo "configure:5355: checking for location of External PROJ.4 data files" >&5
  4468. case "$with_proj_share" in
  4469. y | ye | yes | n | no)
  4470. { echo "configure: error: *** You must supply a directory to --with-proj-share." 1>&2; exit 1; }
  4471. ;;
  4472. esac
  4473. echo "$ac_t""$with_proj_share" 1>&6
  4474. if test -n "$with_proj_share" ; then
  4475. if test -d "$with_proj_share"; then
  4476. PROJSHARE="$with_proj_share"
  4477. else
  4478. { echo "configure: error: *** External PROJ.4 data directory $dir does not exist." 1>&2; exit 1; }
  4479. fi
  4480. fi
  4481. if test -z "$PROJSHARE" ; then
  4482. echo "configure: warning: *** External PROJ.4 directory not specified; default will be used" 1>&2
  4483. PROJSHARE=/usr/local/share/proj
  4484. fi
  4485. # LOC_CHECK_SHARE does not work when cross compiling
  4486. if test "$cross_compiling" = "yes" ; then
  4487. echo $ac_n "checking for epsg""... $ac_c" 1>&6
  4488. echo "configure:5379: checking for epsg" >&5
  4489. echo "$ac_t""unknown (cross-compiling)" 1>&6
  4490. else
  4491. ac_safe=`echo "$PROJSHARE/epsg" | sed 'y%./+-%__p_%'`
  4492. echo $ac_n "checking for $PROJSHARE/epsg""... $ac_c" 1>&6
  4493. echo "configure:5386: checking for $PROJSHARE/epsg" >&5
  4494. if test "$cross_compiling" = yes; then
  4495. { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
  4496. else
  4497. if test -r $PROJSHARE/epsg; then
  4498. eval "ac_cv_file_$ac_safe=yes"
  4499. else
  4500. eval "ac_cv_file_$ac_safe=no"
  4501. fi
  4502. fi
  4503. if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
  4504. echo "$ac_t""yes" 1>&6
  4505. :
  4506. else
  4507. echo "$ac_t""no" 1>&6
  4508. echo "configure: warning: *** Unable to locate PROJ data files." 1>&2
  4509. fi
  4510. fi
  4511. # nad2bin needs to be in path for installing datum gridshift files
  4512. # Extract the first word of "nad2bin", so it can be a program name with args.
  4513. set dummy nad2bin; ac_word=$2
  4514. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  4515. echo "configure:5418: checking for $ac_word" >&5
  4516. case "$NAD2BIN" in
  4517. /*)
  4518. ac_cv_path_NAD2BIN="$NAD2BIN" # Let the user override the test with a path.
  4519. ;;
  4520. ?:/*)
  4521. ac_cv_path_NAD2BIN="$NAD2BIN" # Let the user override the test with a dos path.
  4522. ;;
  4523. *)
  4524. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  4525. ac_dummy="$PATH"
  4526. for ac_dir in $ac_dummy; do
  4527. test -z "$ac_dir" && ac_dir=.
  4528. if test -f $ac_dir/$ac_word; then
  4529. ac_cv_path_NAD2BIN="$ac_dir/$ac_word"
  4530. break
  4531. fi
  4532. done
  4533. IFS="$ac_save_ifs"
  4534. test -z "$ac_cv_path_NAD2BIN" && ac_cv_path_NAD2BIN="no"
  4535. ;;
  4536. esac
  4537. NAD2BIN="$ac_cv_path_NAD2BIN"
  4538. if test -n "$NAD2BIN"; then
  4539. echo "$ac_t""$NAD2BIN" 1>&6
  4540. else
  4541. echo "$ac_t""no" 1>&6
  4542. fi
  4543. if test "$NAD2BIN" = "no"; then
  4544. { echo "configure: error: *** Unable to locate nad2bin (needs to be in PATH)." 1>&2; exit 1; }
  4545. fi
  4546. # Done checking PROJ
  4547. # Enable regex option
  4548. echo $ac_n "checking whether to use regex""... $ac_c" 1>&6
  4549. echo "configure:5458: checking whether to use regex" >&5
  4550. echo "$ac_t"""$with_regex"" 1>&6
  4551. case "$with_regex" in
  4552. "no") USE_REGEX= ;;
  4553. "yes") USE_REGEX="1" ;;
  4554. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  4555. esac
  4556. REGEXINCPATH=
  4557. REGEXLIBPATH=
  4558. REGEXLIB=
  4559. if test -n "$USE_REGEX"; then
  4560. # With regex includes directory
  4561. echo $ac_n "checking for location of regex includes""... $ac_c" 1>&6
  4562. echo "configure:5478: checking for location of regex includes" >&5
  4563. case "$with_regex_includes" in
  4564. y | ye | yes | n | no)
  4565. { echo "configure: error: *** You must supply a directory to --with-regex-includes." 1>&2; exit 1; }
  4566. ;;
  4567. esac
  4568. echo "$ac_t""$with_regex_includes" 1>&6
  4569. if test -n "$with_regex_includes" ; then
  4570. for dir in $with_regex_includes; do
  4571. if test -d "$dir"; then
  4572. REGEXINCPATH="$REGEXINCPATH -I$dir"
  4573. else
  4574. { echo "configure: error: *** regex includes directory $dir does not exist." 1>&2; exit 1; }
  4575. fi
  4576. done
  4577. fi
  4578. ac_save_cppflags="$CPPFLAGS"
  4579. CPPFLAGS="$REGEXINCPATH $CPPFLAGS"
  4580. for ac_hdr in regex.h
  4581. do
  4582. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4583. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4584. echo "configure:5504: checking for $ac_hdr" >&5
  4585. cat > conftest.$ac_ext <<EOF
  4586. #line 5507 "configure"
  4587. #include "confdefs.h"
  4588. #include <$ac_hdr>
  4589. EOF
  4590. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4591. { (eval echo configure:5512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4592. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4593. if test -z "$ac_err"; then
  4594. rm -rf conftest*
  4595. eval "ac_cv_header_$ac_safe=yes"
  4596. else
  4597. echo "$ac_err" >&5
  4598. echo "configure: failed program was:" >&5
  4599. cat conftest.$ac_ext >&5
  4600. rm -rf conftest*
  4601. eval "ac_cv_header_$ac_safe=no"
  4602. fi
  4603. rm -f conftest*
  4604. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4605. echo "$ac_t""yes" 1>&6
  4606. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4607. cat >> confdefs.h <<EOF
  4608. #define $ac_tr_hdr 1
  4609. EOF
  4610. else
  4611. echo "$ac_t""no" 1>&6
  4612. { echo "configure: error: *** Unable to locate regex includes." 1>&2; exit 1; }
  4613. fi
  4614. done
  4615. CPPFLAGS=$ac_save_cppflags
  4616. # With regex library directory
  4617. echo $ac_n "checking for location of regex library""... $ac_c" 1>&6
  4618. echo "configure:5546: checking for location of regex library" >&5
  4619. case "$with_regex_libs" in
  4620. y | ye | yes | n | no)
  4621. { echo "configure: error: *** You must supply a directory to --with-regex-libs." 1>&2; exit 1; }
  4622. ;;
  4623. esac
  4624. echo "$ac_t""$with_regex_libs" 1>&6
  4625. if test -n "$with_regex_libs"; then
  4626. for dir in $with_regex_libs; do
  4627. if test -d "$dir"; then
  4628. REGEXLIBPATH="$REGEXLIBPATH -L$dir"
  4629. else
  4630. { echo "configure: error: *** regex library directory $dir does not exist." 1>&2; exit 1; }
  4631. fi
  4632. done
  4633. fi
  4634. ac_save_libs="$LIBS"
  4635. ac_save_ldflags="$LDFLAGS"
  4636. LIBS=" $LIBS"
  4637. LDFLAGS=" $LDFLAGS"
  4638. echo $ac_n "checking for regcomp""... $ac_c" 1>&6
  4639. echo "configure:5571: checking for regcomp" >&5
  4640. cat > conftest.$ac_ext <<EOF
  4641. #line 5574 "configure"
  4642. #include "confdefs.h"
  4643. /* System header to define __stub macros and hopefully few prototypes,
  4644. which can conflict with char regcomp(); below. */
  4645. #include <assert.h>
  4646. /* Override any gcc2 internal prototype to avoid an error. */
  4647. /* We use char because int might match the return type of a gcc2
  4648. builtin and then its argument prototype would still apply. */
  4649. char regcomp();
  4650. int main() {
  4651. /* The GNU C library defines this for functions which it implements
  4652. to always fail with ENOSYS. Some functions are actually named
  4653. something starting with __ and the normal name is an alias. */
  4654. #if defined (__stub_regcomp) || defined (__stub___regcomp)
  4655. choke me
  4656. #else
  4657. regcomp();
  4658. #endif
  4659. ; return 0; }
  4660. EOF
  4661. if { (eval echo configure:5597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4662. rm -rf conftest*
  4663. eval "ac_cv_func_regcomp=yes"
  4664. else
  4665. echo "configure: failed program was:" >&5
  4666. cat conftest.$ac_ext >&5
  4667. rm -rf conftest*
  4668. eval "ac_cv_func_regcomp=no"
  4669. fi
  4670. rm -f conftest*
  4671. if eval "test \"`echo '$ac_cv_func_'regcomp`\" = yes"; then
  4672. echo "$ac_t""yes" 1>&6
  4673. REGEXLIB="$REGEXLIB "
  4674. else
  4675. echo "$ac_t""no" 1>&6
  4676. ac_save_ldflags="$LDFLAGS"
  4677. LDFLAGS="$REGEXLIBPATH $LDFLAGS"
  4678. echo $ac_n "checking for regcomp in -lregex""... $ac_c" 1>&6
  4679. echo "configure:5624: checking for regcomp in -lregex" >&5
  4680. ac_lib_var=`echo regex'_'regcomp | sed 'y%./+-%__p_%'`
  4681. ac_save_LIBS="$LIBS"
  4682. LIBS="-lregex $LIBS"
  4683. cat > conftest.$ac_ext <<EOF
  4684. #line 5630 "configure"
  4685. #include "confdefs.h"
  4686. /* Override any gcc2 internal prototype to avoid an error. */
  4687. /* We use char because int might match the return type of a gcc2
  4688. builtin and then its argument prototype would still apply. */
  4689. char regcomp();
  4690. int main() {
  4691. regcomp()
  4692. ; return 0; }
  4693. EOF
  4694. if { (eval echo configure:5641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4695. rm -rf conftest*
  4696. eval "ac_cv_lib_$ac_lib_var=yes"
  4697. else
  4698. echo "configure: failed program was:" >&5
  4699. cat conftest.$ac_ext >&5
  4700. rm -rf conftest*
  4701. eval "ac_cv_lib_$ac_lib_var=no"
  4702. fi
  4703. rm -f conftest*
  4704. LIBS="$ac_save_LIBS"
  4705. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4706. echo "$ac_t""yes" 1>&6
  4707. REGEXLIB="$REGEXLIB -lregex "
  4708. else
  4709. echo "$ac_t""no" 1>&6
  4710. LDFLAGS=${ac_save_ldflags}
  4711. { echo "configure: error: *** Unable to locate regex library." 1>&2; exit 1; }
  4712. fi
  4713. LDFLAGS=${ac_save_ldflags}
  4714. fi
  4715. LIBS=${ac_save_libs}
  4716. LDFLAGS=${ac_save_ldflags}
  4717. fi # $USE_REGEX
  4718. # Done checking regex
  4719. # Enable Readline option
  4720. echo $ac_n "checking whether to use Readline""... $ac_c" 1>&6
  4721. echo "configure:5691: checking whether to use Readline" >&5
  4722. echo "$ac_t"""$with_readline"" 1>&6
  4723. case "$with_readline" in
  4724. "no") USE_READLINE= ;;
  4725. "yes") USE_READLINE="1" ;;
  4726. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  4727. esac
  4728. READLINEINCPATH=
  4729. READLINELIBPATH=
  4730. READLINELIB=
  4731. HISTORYLIB=
  4732. if test -n "$USE_READLINE"; then
  4733. # With Readline includes directory
  4734. echo $ac_n "checking for location of Readline includes""... $ac_c" 1>&6
  4735. echo "configure:5712: checking for location of Readline includes" >&5
  4736. case "$with_readline_includes" in
  4737. y | ye | yes | n | no)
  4738. { echo "configure: error: *** You must supply a directory to --with-readline-includes." 1>&2; exit 1; }
  4739. ;;
  4740. esac
  4741. echo "$ac_t""$with_readline_includes" 1>&6
  4742. if test -n "$with_readline_includes" ; then
  4743. for dir in $with_readline_includes; do
  4744. if test -d "$dir"; then
  4745. READLINEINCPATH="$READLINEINCPATH -I$dir"
  4746. else
  4747. { echo "configure: error: *** Readline includes directory $dir does not exist." 1>&2; exit 1; }
  4748. fi
  4749. done
  4750. fi
  4751. ac_save_cppflags="$CPPFLAGS"
  4752. CPPFLAGS="$READLINEINCPATH $CPPFLAGS"
  4753. for ac_hdr in readline/readline.h
  4754. do
  4755. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4756. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4757. echo "configure:5738: checking for $ac_hdr" >&5
  4758. cat > conftest.$ac_ext <<EOF
  4759. #line 5741 "configure"
  4760. #include "confdefs.h"
  4761. #include <$ac_hdr>
  4762. EOF
  4763. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4764. { (eval echo configure:5746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4765. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4766. if test -z "$ac_err"; then
  4767. rm -rf conftest*
  4768. eval "ac_cv_header_$ac_safe=yes"
  4769. else
  4770. echo "$ac_err" >&5
  4771. echo "configure: failed program was:" >&5
  4772. cat conftest.$ac_ext >&5
  4773. rm -rf conftest*
  4774. eval "ac_cv_header_$ac_safe=no"
  4775. fi
  4776. rm -f conftest*
  4777. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4778. echo "$ac_t""yes" 1>&6
  4779. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4780. cat >> confdefs.h <<EOF
  4781. #define $ac_tr_hdr 1
  4782. EOF
  4783. else
  4784. echo "$ac_t""no" 1>&6
  4785. { echo "configure: error: *** Unable to locate Readline includes." 1>&2; exit 1; }
  4786. fi
  4787. done
  4788. CPPFLAGS=$ac_save_cppflags
  4789. ac_save_cppflags="$CPPFLAGS"
  4790. CPPFLAGS="$READLINEINCPATH $CPPFLAGS"
  4791. for ac_hdr in readline/history.h
  4792. do
  4793. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4794. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4795. echo "configure:5782: checking for $ac_hdr" >&5
  4796. cat > conftest.$ac_ext <<EOF
  4797. #line 5785 "configure"
  4798. #include "confdefs.h"
  4799. #include <$ac_hdr>
  4800. EOF
  4801. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4802. { (eval echo configure:5790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4803. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4804. if test -z "$ac_err"; then
  4805. rm -rf conftest*
  4806. eval "ac_cv_header_$ac_safe=yes"
  4807. else
  4808. echo "$ac_err" >&5
  4809. echo "configure: failed program was:" >&5
  4810. cat conftest.$ac_ext >&5
  4811. rm -rf conftest*
  4812. eval "ac_cv_header_$ac_safe=no"
  4813. fi
  4814. rm -f conftest*
  4815. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4816. echo "$ac_t""yes" 1>&6
  4817. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4818. cat >> confdefs.h <<EOF
  4819. #define $ac_tr_hdr 1
  4820. EOF
  4821. else
  4822. echo "$ac_t""no" 1>&6
  4823. { echo "configure: error: *** Unable to locate Readline includes." 1>&2; exit 1; }
  4824. fi
  4825. done
  4826. CPPFLAGS=$ac_save_cppflags
  4827. # With Readline library directory
  4828. echo $ac_n "checking for location of Readline library""... $ac_c" 1>&6
  4829. echo "configure:5824: checking for location of Readline library" >&5
  4830. case "$with_readline_libs" in
  4831. y | ye | yes | n | no)
  4832. { echo "configure: error: *** You must supply a directory to --with-readline-libs." 1>&2; exit 1; }
  4833. ;;
  4834. esac
  4835. echo "$ac_t""$with_readline_libs" 1>&6
  4836. if test -n "$with_readline_libs"; then
  4837. for dir in $with_readline_libs; do
  4838. if test -d "$dir"; then
  4839. READLINELIBPATH="$READLINELIBPATH -L$dir"
  4840. else
  4841. { echo "configure: error: *** Readline library directory $dir does not exist." 1>&2; exit 1; }
  4842. fi
  4843. done
  4844. fi
  4845. ac_save_ldflags="$LDFLAGS"
  4846. LDFLAGS="$READLINELIBPATH $LDFLAGS"
  4847. echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
  4848. echo "configure:5849: checking for readline in -lreadline" >&5
  4849. ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
  4850. ac_save_LIBS="$LIBS"
  4851. LIBS="-lreadline $LIBS"
  4852. cat > conftest.$ac_ext <<EOF
  4853. #line 5855 "configure"
  4854. #include "confdefs.h"
  4855. /* Override any gcc2 internal prototype to avoid an error. */
  4856. /* We use char because int might match the return type of a gcc2
  4857. builtin and then its argument prototype would still apply. */
  4858. char readline();
  4859. int main() {
  4860. readline()
  4861. ; return 0; }
  4862. EOF
  4863. if { (eval echo configure:5866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4864. rm -rf conftest*
  4865. eval "ac_cv_lib_$ac_lib_var=yes"
  4866. else
  4867. echo "configure: failed program was:" >&5
  4868. cat conftest.$ac_ext >&5
  4869. rm -rf conftest*
  4870. eval "ac_cv_lib_$ac_lib_var=no"
  4871. fi
  4872. rm -f conftest*
  4873. LIBS="$ac_save_LIBS"
  4874. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4875. echo "$ac_t""yes" 1>&6
  4876. READLINELIB="$READLINELIB -lreadline "
  4877. else
  4878. echo "$ac_t""no" 1>&6
  4879. LDFLAGS=${ac_save_ldflags}
  4880. { echo "configure: error: *** Unable to locate Readline library." 1>&2; exit 1; }
  4881. fi
  4882. LDFLAGS=${ac_save_ldflags}
  4883. ac_save_ldflags="$LDFLAGS"
  4884. LDFLAGS="$READLINELIBPATH $LDFLAGS"
  4885. echo $ac_n "checking for add_history in -lhistory""... $ac_c" 1>&6
  4886. echo "configure:5901: checking for add_history in -lhistory" >&5
  4887. ac_lib_var=`echo history'_'add_history | sed 'y%./+-%__p_%'`
  4888. ac_save_LIBS="$LIBS"
  4889. LIBS="-lhistory $LIBS"
  4890. cat > conftest.$ac_ext <<EOF
  4891. #line 5907 "configure"
  4892. #include "confdefs.h"
  4893. /* Override any gcc2 internal prototype to avoid an error. */
  4894. /* We use char because int might match the return type of a gcc2
  4895. builtin and then its argument prototype would still apply. */
  4896. char add_history();
  4897. int main() {
  4898. add_history()
  4899. ; return 0; }
  4900. EOF
  4901. if { (eval echo configure:5918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4902. rm -rf conftest*
  4903. eval "ac_cv_lib_$ac_lib_var=yes"
  4904. else
  4905. echo "configure: failed program was:" >&5
  4906. cat conftest.$ac_ext >&5
  4907. rm -rf conftest*
  4908. eval "ac_cv_lib_$ac_lib_var=no"
  4909. fi
  4910. rm -f conftest*
  4911. LIBS="$ac_save_LIBS"
  4912. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4913. echo "$ac_t""yes" 1>&6
  4914. HISTORYLIB="$HISTORYLIB -lhistory "
  4915. else
  4916. echo "$ac_t""no" 1>&6
  4917. LDFLAGS=${ac_save_ldflags}
  4918. { echo "configure: error: *** Unable to locate History library." 1>&2; exit 1; }
  4919. fi
  4920. LDFLAGS=${ac_save_ldflags}
  4921. fi # $USE_READLINE
  4922. # Done checking Readline
  4923. # GDAL option
  4924. echo $ac_n "checking whether to use GDAL""... $ac_c" 1>&6
  4925. echo "configure:5960: checking whether to use GDAL" >&5
  4926. GDAL_LIBS=
  4927. GDAL_CFLAGS=
  4928. USE_GDAL=
  4929. USE_OGR=
  4930. if test "`basename xx/$with_gdal`" = "gdal-config" ; then
  4931. GDAL_CONFIG="$with_gdal"
  4932. fi
  4933. if test "$with_gdal" = "no" ; then
  4934. echo "$ac_t""no" 1>&6
  4935. else
  4936. echo "$ac_t""yes" 1>&6
  4937. # Extract the first word of "gdal-config", so it can be a program name with args.
  4938. set dummy gdal-config; ac_word=$2
  4939. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  4940. echo "configure:5978: checking for $ac_word" >&5
  4941. case "$GDAL_CONFIG" in
  4942. /*)
  4943. ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a path.
  4944. ;;
  4945. ?:/*)
  4946. ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a dos path.
  4947. ;;
  4948. *)
  4949. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  4950. ac_dummy="$PATH"
  4951. for ac_dir in $ac_dummy; do
  4952. test -z "$ac_dir" && ac_dir=.
  4953. if test -f $ac_dir/$ac_word; then
  4954. ac_cv_path_GDAL_CONFIG="$ac_dir/$ac_word"
  4955. break
  4956. fi
  4957. done
  4958. IFS="$ac_save_ifs"
  4959. test -z "$ac_cv_path_GDAL_CONFIG" && ac_cv_path_GDAL_CONFIG="no"
  4960. ;;
  4961. esac
  4962. GDAL_CONFIG="$ac_cv_path_GDAL_CONFIG"
  4963. if test -n "$GDAL_CONFIG"; then
  4964. echo "$ac_t""$GDAL_CONFIG" 1>&6
  4965. else
  4966. echo "$ac_t""no" 1>&6
  4967. fi
  4968. if test "$GDAL_CONFIG" = "no" ; then
  4969. { echo "configure: error: *** couldn't find gdal-config" 1>&2; exit 1; }
  4970. fi
  4971. if test "$GDAL_CONFIG" != "" ; then
  4972. GDAL_LIBS=`"$GDAL_CONFIG" --libs`
  4973. GDAL_DEP_LIBS=`"$GDAL_CONFIG" --dep-libs`
  4974. GDAL_CFLAGS=`"$GDAL_CONFIG" --cflags`
  4975. USE_GDAL=1
  4976. if test `"$GDAL_CONFIG" --ogr-enabled` = "yes" ; then
  4977. cat >> confdefs.h <<\EOF
  4978. #define HAVE_OGR 1
  4979. EOF
  4980. USE_OGR=1
  4981. fi
  4982. fi
  4983. GDAL=
  4984. ac_save_libs="$LIBS"
  4985. ac_save_cflags="$CFLAGS"
  4986. LIBS="$LIBS $GDAL_LIBS"
  4987. CFLAGS="$CFLAGS $GDAL_CFLAGS"
  4988. cat > conftest.$ac_ext <<EOF
  4989. #line 6033 "configure"
  4990. #include "confdefs.h"
  4991. #include <gdal.h>
  4992. int main() {
  4993. GDALOpen("foo", GA_ReadOnly);
  4994. ; return 0; }
  4995. EOF
  4996. if { (eval echo configure:6040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4997. :
  4998. else
  4999. echo "configure: failed program was:" >&5
  5000. cat conftest.$ac_ext >&5
  5001. rm -rf conftest*
  5002. LIBS="$LIBS $GDAL_DEP_LIBS"
  5003. cat > conftest.$ac_ext <<EOF
  5004. #line 6049 "configure"
  5005. #include "confdefs.h"
  5006. #include <gdal.h>
  5007. int main() {
  5008. GDALOpen("foo", GA_ReadOnly);
  5009. ; return 0; }
  5010. EOF
  5011. if { (eval echo configure:6056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5012. rm -rf conftest*
  5013. GDAL_LIBS="$GDAL_LIBS $GDAL_DEP_LIBS"
  5014. else
  5015. echo "configure: failed program was:" >&5
  5016. cat conftest.$ac_ext >&5
  5017. rm -rf conftest*
  5018. { echo "configure: error: *** Unable to locate GDAL library." 1>&2; exit 1; }
  5019. fi
  5020. rm -f conftest*
  5021. fi
  5022. rm -f conftest*
  5023. LIBS=${ac_save_libs}
  5024. CFLAGS=${ac_save_cflags}
  5025. cat >> confdefs.h <<\EOF
  5026. #define HAVE_GDAL 1
  5027. EOF
  5028. fi
  5029. # libLAS option
  5030. echo $ac_n "checking whether to use libLAS""... $ac_c" 1>&6
  5031. echo "configure:6088: checking whether to use libLAS" >&5
  5032. LIBLAS_LIBS=
  5033. LIBLAS_CFLAGS=
  5034. USE_LIBLAS=
  5035. if test "`basename xx/$with_liblas`" = "liblas-config" ; then
  5036. LIBLAS_CONFIG="$with_liblas"
  5037. fi
  5038. if test "$with_liblas" = "no" ; then
  5039. echo "$ac_t""no" 1>&6
  5040. else
  5041. echo "$ac_t""yes" 1>&6
  5042. # Extract the first word of "liblas-config", so it can be a program name with args.
  5043. set dummy liblas-config; ac_word=$2
  5044. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5045. echo "configure:6105: checking for $ac_word" >&5
  5046. case "$LIBLAS_CONFIG" in
  5047. /*)
  5048. ac_cv_path_LIBLAS_CONFIG="$LIBLAS_CONFIG" # Let the user override the test with a path.
  5049. ;;
  5050. ?:/*)
  5051. ac_cv_path_LIBLAS_CONFIG="$LIBLAS_CONFIG" # Let the user override the test with a dos path.
  5052. ;;
  5053. *)
  5054. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5055. ac_dummy="$PATH"
  5056. for ac_dir in $ac_dummy; do
  5057. test -z "$ac_dir" && ac_dir=.
  5058. if test -f $ac_dir/$ac_word; then
  5059. ac_cv_path_LIBLAS_CONFIG="$ac_dir/$ac_word"
  5060. break
  5061. fi
  5062. done
  5063. IFS="$ac_save_ifs"
  5064. test -z "$ac_cv_path_LIBLAS_CONFIG" && ac_cv_path_LIBLAS_CONFIG="no"
  5065. ;;
  5066. esac
  5067. LIBLAS_CONFIG="$ac_cv_path_LIBLAS_CONFIG"
  5068. if test -n "$LIBLAS_CONFIG"; then
  5069. echo "$ac_t""$LIBLAS_CONFIG" 1>&6
  5070. else
  5071. echo "$ac_t""no" 1>&6
  5072. fi
  5073. if test "$LIBLAS_CONFIG" = "no" ; then
  5074. { echo "configure: error: *** couldn't find liblas-config" 1>&2; exit 1; }
  5075. fi
  5076. if test "$LIBLAS_CONFIG" != "" ; then
  5077. LIBLAS_LIBS=`"$LIBLAS_CONFIG" --libs`
  5078. LIBLAS_CFLAGS=`"$LIBLAS_CONFIG" --cflags`
  5079. LIBLAS_INC=`"$LIBLAS_CONFIG" --includes`
  5080. USE_LIBLAS=1
  5081. fi
  5082. LIBLAS=
  5083. ac_save_libs="$LIBS"
  5084. ac_save_cflags="$CFLAGS"
  5085. LIBS="$LIBS $LIBLAS_LIBS"
  5086. CFLAGS="$CFLAGS $LIBLAS_CFLAGS"
  5087. cat > conftest.$ac_ext <<EOF
  5088. #line 6153 "configure"
  5089. #include "confdefs.h"
  5090. #include <liblas/capi/liblas.h>
  5091. int main() {
  5092. LASReader_Create("foo");
  5093. ; return 0; }
  5094. EOF
  5095. if { (eval echo configure:6160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5096. :
  5097. else
  5098. echo "configure: failed program was:" >&5
  5099. cat conftest.$ac_ext >&5
  5100. rm -rf conftest*
  5101. cat > conftest.$ac_ext <<EOF
  5102. #line 6168 "configure"
  5103. #include "confdefs.h"
  5104. #include <liblas/capi/liblas.h>
  5105. int main() {
  5106. LASReader_Create("foo");
  5107. ; return 0; }
  5108. EOF
  5109. if { (eval echo configure:6175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5110. rm -rf conftest*
  5111. LAS_LIBS="$LAS_LIBS"
  5112. else
  5113. echo "configure: failed program was:" >&5
  5114. cat conftest.$ac_ext >&5
  5115. rm -rf conftest*
  5116. { echo "configure: error: *** Unable to locate libLAS library." 1>&2; exit 1; }
  5117. fi
  5118. rm -f conftest*
  5119. fi
  5120. rm -f conftest*
  5121. LIBS=${ac_save_libs}
  5122. CFLAGS=${ac_save_cflags}
  5123. cat >> confdefs.h <<\EOF
  5124. #define HAVE_LIBLAS 1
  5125. EOF
  5126. fi
  5127. # NetCDF option
  5128. echo $ac_n "checking whether to use NetCDF""... $ac_c" 1>&6
  5129. echo "configure:6207: checking whether to use NetCDF" >&5
  5130. NETCDF_LIBS=
  5131. NETCDF_CFLAGS=
  5132. USE_NETCDF=
  5133. if test "`basename xx/$with_netcdf`" = "nc-config" ; then
  5134. NETCDF_CONFIG="$with_netcdf"
  5135. fi
  5136. if test "$with_netcdf" = "no" ; then
  5137. echo "$ac_t""no" 1>&6
  5138. else
  5139. echo "$ac_t""yes" 1>&6
  5140. # Extract the first word of "nc-config", so it can be a program name with args.
  5141. set dummy nc-config; ac_word=$2
  5142. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5143. echo "configure:6224: checking for $ac_word" >&5
  5144. case "$NETCDF_CONFIG" in
  5145. /*)
  5146. ac_cv_path_NETCDF_CONFIG="$NETCDF_CONFIG" # Let the user override the test with a path.
  5147. ;;
  5148. ?:/*)
  5149. ac_cv_path_NETCDF_CONFIG="$NETCDF_CONFIG" # Let the user override the test with a dos path.
  5150. ;;
  5151. *)
  5152. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5153. ac_dummy="$PATH"
  5154. for ac_dir in $ac_dummy; do
  5155. test -z "$ac_dir" && ac_dir=.
  5156. if test -f $ac_dir/$ac_word; then
  5157. ac_cv_path_NETCDF_CONFIG="$ac_dir/$ac_word"
  5158. break
  5159. fi
  5160. done
  5161. IFS="$ac_save_ifs"
  5162. test -z "$ac_cv_path_NETCDF_CONFIG" && ac_cv_path_NETCDF_CONFIG="no"
  5163. ;;
  5164. esac
  5165. NETCDF_CONFIG="$ac_cv_path_NETCDF_CONFIG"
  5166. if test -n "$NETCDF_CONFIG"; then
  5167. echo "$ac_t""$NETCDF_CONFIG" 1>&6
  5168. else
  5169. echo "$ac_t""no" 1>&6
  5170. fi
  5171. if test "$NETCDF_CONFIG" = "no" ; then
  5172. { echo "configure: error: *** couldn't find nc-config" 1>&2; exit 1; }
  5173. fi
  5174. if test "$NETCDF_CONFIG" != "" ; then
  5175. NETCDF_LIBS=`"$NETCDF_CONFIG" --libs`
  5176. NETCDF_CFLAGS=`"$NETCDF_CONFIG" --cflags`
  5177. USE_NETCDF=1
  5178. fi
  5179. NETCDF=
  5180. ac_save_libs="$LIBS"
  5181. ac_save_cflags="$CFLAGS"
  5182. LIBS="$LIBS $NETCDF_LIBS"
  5183. CFLAGS="$CFLAGS $NETCDF_CFLAGS"
  5184. cat > conftest.$ac_ext <<EOF
  5185. #line 6271 "configure"
  5186. #include "confdefs.h"
  5187. #include <netcdf.h>
  5188. int main() {
  5189. nc_create("foo", NC_CLOBBER, NULL);
  5190. ; return 0; }
  5191. EOF
  5192. if { (eval echo configure:6278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5193. :
  5194. else
  5195. echo "configure: failed program was:" >&5
  5196. cat conftest.$ac_ext >&5
  5197. rm -rf conftest*
  5198. cat > conftest.$ac_ext <<EOF
  5199. #line 6286 "configure"
  5200. #include "confdefs.h"
  5201. #include <netcdf.h>
  5202. int main() {
  5203. nc_create("foo", NC_CLOBBER, NULL);
  5204. ; return 0; }
  5205. EOF
  5206. if { (eval echo configure:6293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5207. rm -rf conftest*
  5208. NETCDF_LIBS="$NETCDF_LIBS"
  5209. else
  5210. echo "configure: failed program was:" >&5
  5211. cat conftest.$ac_ext >&5
  5212. rm -rf conftest*
  5213. { echo "configure: error: *** Unable to locate NetCDF library." 1>&2; exit 1; }
  5214. fi
  5215. rm -f conftest*
  5216. fi
  5217. rm -f conftest*
  5218. LIBS=${ac_save_libs}
  5219. CFLAGS=${ac_save_cflags}
  5220. cat >> confdefs.h <<\EOF
  5221. #define HAVE_NETCDF 1
  5222. EOF
  5223. fi
  5224. # GEOS option
  5225. echo $ac_n "checking whether to use GEOS""... $ac_c" 1>&6
  5226. echo "configure:6324: checking whether to use GEOS" >&5
  5227. GEOS_LIBS=
  5228. GEOS_CFLAGS=
  5229. USE_GEOS=
  5230. # FIXME: "quote" $with_geos ?
  5231. if test "`basename xx/$with_geos`" = "geos-config" ; then
  5232. GEOS_CONFIG="$with_geos"
  5233. fi
  5234. if test "$with_geos" = "no" ; then
  5235. echo "$ac_t""no" 1>&6
  5236. else
  5237. echo "$ac_t""yes" 1>&6
  5238. # Extract the first word of "geos-config", so it can be a program name with args.
  5239. set dummy geos-config; ac_word=$2
  5240. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5241. echo "configure:6342: checking for $ac_word" >&5
  5242. case "$GEOS_CONFIG" in
  5243. /*)
  5244. ac_cv_path_GEOS_CONFIG="$GEOS_CONFIG" # Let the user override the test with a path.
  5245. ;;
  5246. ?:/*)
  5247. ac_cv_path_GEOS_CONFIG="$GEOS_CONFIG" # Let the user override the test with a dos path.
  5248. ;;
  5249. *)
  5250. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5251. ac_dummy="$PATH"
  5252. for ac_dir in $ac_dummy; do
  5253. test -z "$ac_dir" && ac_dir=.
  5254. if test -f $ac_dir/$ac_word; then
  5255. ac_cv_path_GEOS_CONFIG="$ac_dir/$ac_word"
  5256. break
  5257. fi
  5258. done
  5259. IFS="$ac_save_ifs"
  5260. test -z "$ac_cv_path_GEOS_CONFIG" && ac_cv_path_GEOS_CONFIG="no"
  5261. ;;
  5262. esac
  5263. GEOS_CONFIG="$ac_cv_path_GEOS_CONFIG"
  5264. if test -n "$GEOS_CONFIG"; then
  5265. echo "$ac_t""$GEOS_CONFIG" 1>&6
  5266. else
  5267. echo "$ac_t""no" 1>&6
  5268. fi
  5269. if test "$GEOS_CONFIG" = "no" ; then
  5270. { echo "configure: error: *** couldn't find geos-config" 1>&2; exit 1; }
  5271. fi
  5272. if test "$GEOS_CONFIG" != "" ; then
  5273. GEOS_LIBS=`"$GEOS_CONFIG" --libs`
  5274. GEOS_CFLAGS=`"$GEOS_CONFIG" --cflags`
  5275. USE_GEOS=1
  5276. fi
  5277. ac_save_cppflags="$CPPFLAGS"
  5278. CPPFLAGS="$GEOS_CFLAGS $CPPFLAGS"
  5279. for ac_hdr in geos_c.h
  5280. do
  5281. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5282. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5283. echo "configure:6390: checking for $ac_hdr" >&5
  5284. cat > conftest.$ac_ext <<EOF
  5285. #line 6393 "configure"
  5286. #include "confdefs.h"
  5287. #include <$ac_hdr>
  5288. EOF
  5289. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5290. { (eval echo configure:6398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5291. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5292. if test -z "$ac_err"; then
  5293. rm -rf conftest*
  5294. eval "ac_cv_header_$ac_safe=yes"
  5295. else
  5296. echo "$ac_err" >&5
  5297. echo "configure: failed program was:" >&5
  5298. cat conftest.$ac_ext >&5
  5299. rm -rf conftest*
  5300. eval "ac_cv_header_$ac_safe=no"
  5301. fi
  5302. rm -f conftest*
  5303. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5304. echo "$ac_t""yes" 1>&6
  5305. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5306. cat >> confdefs.h <<EOF
  5307. #define $ac_tr_hdr 1
  5308. EOF
  5309. else
  5310. echo "$ac_t""no" 1>&6
  5311. { echo "configure: error: *** Unable to locate GEOS includes." 1>&2; exit 1; }
  5312. fi
  5313. done
  5314. CPPFLAGS=$ac_save_cppflags
  5315. ### 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
  5316. # if test "$MINGW32" = yes ; then
  5317. # LOC_CHECK_LIBS(geos_c_i,initGEOS,GEOS,$GEOS_LIBS,GEOS_LIBS)
  5318. # else
  5319. ac_save_ldflags="$LDFLAGS"
  5320. LDFLAGS="$GEOS_LIBS $LDFLAGS"
  5321. echo $ac_n "checking for initGEOS in -lgeos_c""... $ac_c" 1>&6
  5322. echo "configure:6437: checking for initGEOS in -lgeos_c" >&5
  5323. ac_lib_var=`echo geos_c'_'initGEOS | sed 'y%./+-%__p_%'`
  5324. ac_save_LIBS="$LIBS"
  5325. LIBS="-lgeos_c $LIBS"
  5326. cat > conftest.$ac_ext <<EOF
  5327. #line 6443 "configure"
  5328. #include "confdefs.h"
  5329. /* Override any gcc2 internal prototype to avoid an error. */
  5330. /* We use char because int might match the return type of a gcc2
  5331. builtin and then its argument prototype would still apply. */
  5332. char initGEOS();
  5333. int main() {
  5334. initGEOS()
  5335. ; return 0; }
  5336. EOF
  5337. if { (eval echo configure:6454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5338. rm -rf conftest*
  5339. eval "ac_cv_lib_$ac_lib_var=yes"
  5340. else
  5341. echo "configure: failed program was:" >&5
  5342. cat conftest.$ac_ext >&5
  5343. rm -rf conftest*
  5344. eval "ac_cv_lib_$ac_lib_var=no"
  5345. fi
  5346. rm -f conftest*
  5347. LIBS="$ac_save_LIBS"
  5348. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5349. echo "$ac_t""yes" 1>&6
  5350. GEOS_LIBS="$GEOS_LIBS -lgeos_c "
  5351. else
  5352. echo "$ac_t""no" 1>&6
  5353. LDFLAGS=${ac_save_ldflags}
  5354. { echo "configure: error: *** Unable to locate GEOS library." 1>&2; exit 1; }
  5355. fi
  5356. LDFLAGS=${ac_save_ldflags}
  5357. # fi
  5358. cat >> confdefs.h <<\EOF
  5359. #define HAVE_GEOS 1
  5360. EOF
  5361. fi
  5362. # Enable TIFF option
  5363. echo $ac_n "checking whether to use TIFF""... $ac_c" 1>&6
  5364. echo "configure:6498: checking whether to use TIFF" >&5
  5365. echo "$ac_t"""$with_tiff"" 1>&6
  5366. case "$with_tiff" in
  5367. "no") USE_TIFF= ;;
  5368. "yes") USE_TIFF="1" ;;
  5369. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  5370. esac
  5371. TIFF_INCLUDE_DIRS=
  5372. TIFF_LIBRARY_DIRS=
  5373. TIFFLIB=
  5374. if test -n "$USE_TIFF"; then
  5375. # With TIFF includes directory
  5376. echo $ac_n "checking for location of TIFF includes""... $ac_c" 1>&6
  5377. echo "configure:6518: checking for location of TIFF includes" >&5
  5378. case "$with_tiff_includes" in
  5379. y | ye | yes | n | no)
  5380. { echo "configure: error: *** You must supply a directory to --with-tiff-includes." 1>&2; exit 1; }
  5381. ;;
  5382. esac
  5383. echo "$ac_t""$with_tiff_includes" 1>&6
  5384. if test -n "$with_tiff_includes" ; then
  5385. for dir in $with_tiff_includes; do
  5386. if test -d "$dir"; then
  5387. TIFF_INCLUDE_DIRS="$TIFF_INCLUDE_DIRS -I$dir"
  5388. else
  5389. { echo "configure: error: *** TIFF includes directory $dir does not exist." 1>&2; exit 1; }
  5390. fi
  5391. done
  5392. fi
  5393. ac_save_cppflags="$CPPFLAGS"
  5394. CPPFLAGS="$TIFF_INCLUDE_DIRS $CPPFLAGS"
  5395. for ac_hdr in tiffio.h
  5396. do
  5397. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5398. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5399. echo "configure:6544: checking for $ac_hdr" >&5
  5400. cat > conftest.$ac_ext <<EOF
  5401. #line 6547 "configure"
  5402. #include "confdefs.h"
  5403. #include <$ac_hdr>
  5404. EOF
  5405. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5406. { (eval echo configure:6552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5407. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5408. if test -z "$ac_err"; then
  5409. rm -rf conftest*
  5410. eval "ac_cv_header_$ac_safe=yes"
  5411. else
  5412. echo "$ac_err" >&5
  5413. echo "configure: failed program was:" >&5
  5414. cat conftest.$ac_ext >&5
  5415. rm -rf conftest*
  5416. eval "ac_cv_header_$ac_safe=no"
  5417. fi
  5418. rm -f conftest*
  5419. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5420. echo "$ac_t""yes" 1>&6
  5421. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5422. cat >> confdefs.h <<EOF
  5423. #define $ac_tr_hdr 1
  5424. EOF
  5425. else
  5426. echo "$ac_t""no" 1>&6
  5427. { echo "configure: error: *** Unable to locate TIFF includes." 1>&2; exit 1; }
  5428. fi
  5429. done
  5430. CPPFLAGS=$ac_save_cppflags
  5431. # With TIFF library directory
  5432. echo $ac_n "checking for location of TIFF library""... $ac_c" 1>&6
  5433. echo "configure:6586: checking for location of TIFF library" >&5
  5434. case "$with_tiff_libs" in
  5435. y | ye | yes | n | no)
  5436. { echo "configure: error: *** You must supply a directory to --with-tiff-libs." 1>&2; exit 1; }
  5437. ;;
  5438. esac
  5439. echo "$ac_t""$with_tiff_libs" 1>&6
  5440. if test -n "$with_tiff_libs"; then
  5441. for dir in $with_tiff_libs; do
  5442. if test -d "$dir"; then
  5443. TIFF_LIBRARY_DIRS="$TIFF_LIBRARY_DIRS -L$dir"
  5444. else
  5445. { echo "configure: error: *** TIFF library directory $dir does not exist." 1>&2; exit 1; }
  5446. fi
  5447. done
  5448. fi
  5449. ac_save_ldflags="$LDFLAGS"
  5450. LDFLAGS="$TIFF_LIBRARY_DIRS $LDFLAGS"
  5451. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5452. echo "configure:6617: checking for TIFFOpen in -ltiff" >&5
  5453. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5454. ac_save_LIBS="$LIBS"
  5455. LIBS="-ltiff $LIBS"
  5456. cat > conftest.$ac_ext <<EOF
  5457. #line 6623 "configure"
  5458. #include "confdefs.h"
  5459. /* Override any gcc2 internal prototype to avoid an error. */
  5460. /* We use char because int might match the return type of a gcc2
  5461. builtin and then its argument prototype would still apply. */
  5462. char TIFFOpen();
  5463. int main() {
  5464. TIFFOpen()
  5465. ; return 0; }
  5466. EOF
  5467. if { (eval echo configure:6634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5468. rm -rf conftest*
  5469. eval "ac_cv_lib_$ac_lib_var=yes"
  5470. else
  5471. echo "configure: failed program was:" >&5
  5472. cat conftest.$ac_ext >&5
  5473. rm -rf conftest*
  5474. eval "ac_cv_lib_$ac_lib_var=no"
  5475. fi
  5476. rm -f conftest*
  5477. LIBS="$ac_save_LIBS"
  5478. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5479. echo "$ac_t""yes" 1>&6
  5480. TIFFLIB="$TIFFLIB -ltiff "
  5481. else
  5482. echo "$ac_t""no" 1>&6
  5483. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5484. echo "configure:6653: checking for TIFFOpen in -ltiff" >&5
  5485. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5486. ac_save_LIBS="$LIBS"
  5487. LIBS="-ltiff $MATHLIB $LIBS"
  5488. cat > conftest.$ac_ext <<EOF
  5489. #line 6659 "configure"
  5490. #include "confdefs.h"
  5491. /* Override any gcc2 internal prototype to avoid an error. */
  5492. /* We use char because int might match the return type of a gcc2
  5493. builtin and then its argument prototype would still apply. */
  5494. char TIFFOpen();
  5495. int main() {
  5496. TIFFOpen()
  5497. ; return 0; }
  5498. EOF
  5499. if { (eval echo configure:6670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5500. rm -rf conftest*
  5501. eval "ac_cv_lib_$ac_lib_var=yes"
  5502. else
  5503. echo "configure: failed program was:" >&5
  5504. cat conftest.$ac_ext >&5
  5505. rm -rf conftest*
  5506. eval "ac_cv_lib_$ac_lib_var=no"
  5507. fi
  5508. rm -f conftest*
  5509. LIBS="$ac_save_LIBS"
  5510. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5511. echo "$ac_t""yes" 1>&6
  5512. TIFFLIB="$TIFFLIB -ltiff $MATHLIB"
  5513. else
  5514. echo "$ac_t""no" 1>&6
  5515. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5516. echo "configure:6689: checking for TIFFOpen in -ltiff" >&5
  5517. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5518. ac_save_LIBS="$LIBS"
  5519. LIBS="-ltiff $ZLIB $LIBS"
  5520. cat > conftest.$ac_ext <<EOF
  5521. #line 6695 "configure"
  5522. #include "confdefs.h"
  5523. /* Override any gcc2 internal prototype to avoid an error. */
  5524. /* We use char because int might match the return type of a gcc2
  5525. builtin and then its argument prototype would still apply. */
  5526. char TIFFOpen();
  5527. int main() {
  5528. TIFFOpen()
  5529. ; return 0; }
  5530. EOF
  5531. if { (eval echo configure:6706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5532. rm -rf conftest*
  5533. eval "ac_cv_lib_$ac_lib_var=yes"
  5534. else
  5535. echo "configure: failed program was:" >&5
  5536. cat conftest.$ac_ext >&5
  5537. rm -rf conftest*
  5538. eval "ac_cv_lib_$ac_lib_var=no"
  5539. fi
  5540. rm -f conftest*
  5541. LIBS="$ac_save_LIBS"
  5542. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5543. echo "$ac_t""yes" 1>&6
  5544. TIFFLIB="$TIFFLIB -ltiff $ZLIB"
  5545. else
  5546. echo "$ac_t""no" 1>&6
  5547. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5548. echo "configure:6725: checking for TIFFOpen in -ltiff" >&5
  5549. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5550. ac_save_LIBS="$LIBS"
  5551. LIBS="-ltiff $ZLIB $MATHLIB $LIBS"
  5552. cat > conftest.$ac_ext <<EOF
  5553. #line 6731 "configure"
  5554. #include "confdefs.h"
  5555. /* Override any gcc2 internal prototype to avoid an error. */
  5556. /* We use char because int might match the return type of a gcc2
  5557. builtin and then its argument prototype would still apply. */
  5558. char TIFFOpen();
  5559. int main() {
  5560. TIFFOpen()
  5561. ; return 0; }
  5562. EOF
  5563. if { (eval echo configure:6742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5564. rm -rf conftest*
  5565. eval "ac_cv_lib_$ac_lib_var=yes"
  5566. else
  5567. echo "configure: failed program was:" >&5
  5568. cat conftest.$ac_ext >&5
  5569. rm -rf conftest*
  5570. eval "ac_cv_lib_$ac_lib_var=no"
  5571. fi
  5572. rm -f conftest*
  5573. LIBS="$ac_save_LIBS"
  5574. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5575. echo "$ac_t""yes" 1>&6
  5576. TIFFLIB="$TIFFLIB -ltiff $ZLIB $MATHLIB"
  5577. else
  5578. echo "$ac_t""no" 1>&6
  5579. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5580. echo "configure:6761: checking for TIFFOpen in -ltiff" >&5
  5581. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5582. ac_save_LIBS="$LIBS"
  5583. LIBS="-ltiff -ljpeg $LIBS"
  5584. cat > conftest.$ac_ext <<EOF
  5585. #line 6767 "configure"
  5586. #include "confdefs.h"
  5587. /* Override any gcc2 internal prototype to avoid an error. */
  5588. /* We use char because int might match the return type of a gcc2
  5589. builtin and then its argument prototype would still apply. */
  5590. char TIFFOpen();
  5591. int main() {
  5592. TIFFOpen()
  5593. ; return 0; }
  5594. EOF
  5595. if { (eval echo configure:6778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5596. rm -rf conftest*
  5597. eval "ac_cv_lib_$ac_lib_var=yes"
  5598. else
  5599. echo "configure: failed program was:" >&5
  5600. cat conftest.$ac_ext >&5
  5601. rm -rf conftest*
  5602. eval "ac_cv_lib_$ac_lib_var=no"
  5603. fi
  5604. rm -f conftest*
  5605. LIBS="$ac_save_LIBS"
  5606. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5607. echo "$ac_t""yes" 1>&6
  5608. TIFFLIB="$TIFFLIB -ltiff -ljpeg"
  5609. else
  5610. echo "$ac_t""no" 1>&6
  5611. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5612. echo "configure:6797: checking for TIFFOpen in -ltiff" >&5
  5613. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5614. ac_save_LIBS="$LIBS"
  5615. LIBS="-ltiff -ljpeg $MATHLIB $LIBS"
  5616. cat > conftest.$ac_ext <<EOF
  5617. #line 6803 "configure"
  5618. #include "confdefs.h"
  5619. /* Override any gcc2 internal prototype to avoid an error. */
  5620. /* We use char because int might match the return type of a gcc2
  5621. builtin and then its argument prototype would still apply. */
  5622. char TIFFOpen();
  5623. int main() {
  5624. TIFFOpen()
  5625. ; return 0; }
  5626. EOF
  5627. if { (eval echo configure:6814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5628. rm -rf conftest*
  5629. eval "ac_cv_lib_$ac_lib_var=yes"
  5630. else
  5631. echo "configure: failed program was:" >&5
  5632. cat conftest.$ac_ext >&5
  5633. rm -rf conftest*
  5634. eval "ac_cv_lib_$ac_lib_var=no"
  5635. fi
  5636. rm -f conftest*
  5637. LIBS="$ac_save_LIBS"
  5638. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5639. echo "$ac_t""yes" 1>&6
  5640. TIFFLIB="$TIFFLIB -ltiff -ljpeg $MATHLIB"
  5641. else
  5642. echo "$ac_t""no" 1>&6
  5643. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5644. echo "configure:6833: checking for TIFFOpen in -ltiff" >&5
  5645. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5646. ac_save_LIBS="$LIBS"
  5647. LIBS="-ltiff -ljpeg $ZLIB $LIBS"
  5648. cat > conftest.$ac_ext <<EOF
  5649. #line 6839 "configure"
  5650. #include "confdefs.h"
  5651. /* Override any gcc2 internal prototype to avoid an error. */
  5652. /* We use char because int might match the return type of a gcc2
  5653. builtin and then its argument prototype would still apply. */
  5654. char TIFFOpen();
  5655. int main() {
  5656. TIFFOpen()
  5657. ; return 0; }
  5658. EOF
  5659. if { (eval echo configure:6850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5660. rm -rf conftest*
  5661. eval "ac_cv_lib_$ac_lib_var=yes"
  5662. else
  5663. echo "configure: failed program was:" >&5
  5664. cat conftest.$ac_ext >&5
  5665. rm -rf conftest*
  5666. eval "ac_cv_lib_$ac_lib_var=no"
  5667. fi
  5668. rm -f conftest*
  5669. LIBS="$ac_save_LIBS"
  5670. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5671. echo "$ac_t""yes" 1>&6
  5672. TIFFLIB="$TIFFLIB -ltiff -ljpeg $ZLIB"
  5673. else
  5674. echo "$ac_t""no" 1>&6
  5675. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5676. echo "configure:6869: checking for TIFFOpen in -ltiff" >&5
  5677. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5678. ac_save_LIBS="$LIBS"
  5679. LIBS="-ltiff -ljpeg $ZLIB $MATHLIB $LIBS"
  5680. cat > conftest.$ac_ext <<EOF
  5681. #line 6875 "configure"
  5682. #include "confdefs.h"
  5683. /* Override any gcc2 internal prototype to avoid an error. */
  5684. /* We use char because int might match the return type of a gcc2
  5685. builtin and then its argument prototype would still apply. */
  5686. char TIFFOpen();
  5687. int main() {
  5688. TIFFOpen()
  5689. ; return 0; }
  5690. EOF
  5691. if { (eval echo configure:6886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5692. rm -rf conftest*
  5693. eval "ac_cv_lib_$ac_lib_var=yes"
  5694. else
  5695. echo "configure: failed program was:" >&5
  5696. cat conftest.$ac_ext >&5
  5697. rm -rf conftest*
  5698. eval "ac_cv_lib_$ac_lib_var=no"
  5699. fi
  5700. rm -f conftest*
  5701. LIBS="$ac_save_LIBS"
  5702. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5703. echo "$ac_t""yes" 1>&6
  5704. TIFFLIB="$TIFFLIB -ltiff -ljpeg $ZLIB $MATHLIB"
  5705. else
  5706. echo "$ac_t""no" 1>&6
  5707. LDFLAGS=${ac_save_ldflags}
  5708. { echo "configure: error: *** Unable to locate TIFF library." 1>&2; exit 1; }
  5709. fi
  5710. fi
  5711. fi
  5712. fi
  5713. fi
  5714. fi
  5715. fi
  5716. fi
  5717. LDFLAGS=${ac_save_ldflags}
  5718. fi # $USE_TIFF
  5719. # Done checking TIFF
  5720. # Enable PNG option
  5721. echo $ac_n "checking whether to use PNG""... $ac_c" 1>&6
  5722. echo "configure:6984: checking whether to use PNG" >&5
  5723. echo "$ac_t"""$with_png"" 1>&6
  5724. case "$with_png" in
  5725. "no") USE_PNG= ;;
  5726. "yes") USE_PNG="1" ;;
  5727. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  5728. esac
  5729. PNGINC=
  5730. PNGLIB=
  5731. if test -n "$USE_PNG"; then
  5732. # With PNG includes directory
  5733. echo $ac_n "checking for location of PNG includes""... $ac_c" 1>&6
  5734. echo "configure:7003: checking for location of PNG includes" >&5
  5735. case "$with_png_includes" in
  5736. y | ye | yes | n | no)
  5737. { echo "configure: error: *** You must supply a directory to --with-png-includes." 1>&2; exit 1; }
  5738. ;;
  5739. esac
  5740. echo "$ac_t""$with_png_includes" 1>&6
  5741. if test -n "$with_png_includes" ; then
  5742. for dir in $with_png_includes; do
  5743. if test -d "$dir"; then
  5744. PNGINC="$PNGINC -I$dir"
  5745. else
  5746. { echo "configure: error: *** PNG includes directory $dir does not exist." 1>&2; exit 1; }
  5747. fi
  5748. done
  5749. fi
  5750. ac_save_cppflags="$CPPFLAGS"
  5751. CPPFLAGS="$PNGINC $CPPFLAGS"
  5752. for ac_hdr in png.h
  5753. do
  5754. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5755. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5756. echo "configure:7029: checking for $ac_hdr" >&5
  5757. cat > conftest.$ac_ext <<EOF
  5758. #line 7032 "configure"
  5759. #include "confdefs.h"
  5760. #include <$ac_hdr>
  5761. EOF
  5762. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5763. { (eval echo configure:7037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5764. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5765. if test -z "$ac_err"; then
  5766. rm -rf conftest*
  5767. eval "ac_cv_header_$ac_safe=yes"
  5768. else
  5769. echo "$ac_err" >&5
  5770. echo "configure: failed program was:" >&5
  5771. cat conftest.$ac_ext >&5
  5772. rm -rf conftest*
  5773. eval "ac_cv_header_$ac_safe=no"
  5774. fi
  5775. rm -f conftest*
  5776. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5777. echo "$ac_t""yes" 1>&6
  5778. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5779. cat >> confdefs.h <<EOF
  5780. #define $ac_tr_hdr 1
  5781. EOF
  5782. else
  5783. echo "$ac_t""no" 1>&6
  5784. { echo "configure: error: *** Unable to locate PNG includes." 1>&2; exit 1; }
  5785. fi
  5786. done
  5787. CPPFLAGS=$ac_save_cppflags
  5788. # With PNG library directory
  5789. echo $ac_n "checking for location of PNG library""... $ac_c" 1>&6
  5790. echo "configure:7071: checking for location of PNG library" >&5
  5791. case "$with_png_libs" in
  5792. y | ye | yes | n | no)
  5793. { echo "configure: error: *** You must supply a directory to --with-png-libs." 1>&2; exit 1; }
  5794. ;;
  5795. esac
  5796. echo "$ac_t""$with_png_libs" 1>&6
  5797. if test -n "$with_png_libs"; then
  5798. for dir in $with_png_libs; do
  5799. if test -d "$dir"; then
  5800. PNGLIB="$PNGLIB -L$dir"
  5801. else
  5802. { echo "configure: error: *** PNG library directory $dir does not exist." 1>&2; exit 1; }
  5803. fi
  5804. done
  5805. fi
  5806. ac_save_ldflags="$LDFLAGS"
  5807. LDFLAGS="$PNGLIB $LDFLAGS"
  5808. echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
  5809. echo "configure:7096: checking for png_read_image in -lpng" >&5
  5810. ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
  5811. ac_save_LIBS="$LIBS"
  5812. LIBS="-lpng $ZLIB $MATHLIB $LIBS"
  5813. cat > conftest.$ac_ext <<EOF
  5814. #line 7102 "configure"
  5815. #include "confdefs.h"
  5816. /* Override any gcc2 internal prototype to avoid an error. */
  5817. /* We use char because int might match the return type of a gcc2
  5818. builtin and then its argument prototype would still apply. */
  5819. char png_read_image();
  5820. int main() {
  5821. png_read_image()
  5822. ; return 0; }
  5823. EOF
  5824. if { (eval echo configure:7113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5825. rm -rf conftest*
  5826. eval "ac_cv_lib_$ac_lib_var=yes"
  5827. else
  5828. echo "configure: failed program was:" >&5
  5829. cat conftest.$ac_ext >&5
  5830. rm -rf conftest*
  5831. eval "ac_cv_lib_$ac_lib_var=no"
  5832. fi
  5833. rm -f conftest*
  5834. LIBS="$ac_save_LIBS"
  5835. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5836. echo "$ac_t""yes" 1>&6
  5837. PNGLIB="$PNGLIB -lpng $ZLIB $MATHLIB"
  5838. else
  5839. echo "$ac_t""no" 1>&6
  5840. LDFLAGS=${ac_save_ldflags}
  5841. { echo "configure: error: *** Unable to locate PNG library." 1>&2; exit 1; }
  5842. fi
  5843. LDFLAGS=${ac_save_ldflags}
  5844. fi # $USE_PNG
  5845. # Done checking PNG
  5846. # Enable PostgreSQL option
  5847. echo $ac_n "checking whether to use PostgreSQL""... $ac_c" 1>&6
  5848. echo "configure:7155: checking whether to use PostgreSQL" >&5
  5849. echo "$ac_t"""$with_postgres"" 1>&6
  5850. case "$with_postgres" in
  5851. "no") USE_POSTGRES= ;;
  5852. "yes") USE_POSTGRES="1" ;;
  5853. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  5854. esac
  5855. if test -n "$USE_POSTGRES"; then
  5856. cat >> confdefs.h <<\EOF
  5857. #define HAVE_POSTGRES 1
  5858. EOF
  5859. fi # $USE_POSTGRES
  5860. PQINCPATH=
  5861. PQLIBPATH=
  5862. PQLIB=
  5863. if test -n "$USE_POSTGRES"; then
  5864. # With PostgreSQL includes directory
  5865. echo $ac_n "checking for location of PostgreSQL includes""... $ac_c" 1>&6
  5866. echo "configure:7182: checking for location of PostgreSQL includes" >&5
  5867. case "$with_postgres_includes" in
  5868. y | ye | yes | n | no)
  5869. { echo "configure: error: *** You must supply a directory to --with-postgres-includes." 1>&2; exit 1; }
  5870. ;;
  5871. esac
  5872. echo "$ac_t""$with_postgres_includes" 1>&6
  5873. if test -n "$with_postgres_includes" ; then
  5874. for dir in $with_postgres_includes; do
  5875. if test -d "$dir"; then
  5876. PQINCPATH="$PQINCPATH -I$dir"
  5877. else
  5878. { echo "configure: error: *** PostgreSQL includes directory $dir does not exist." 1>&2; exit 1; }
  5879. fi
  5880. done
  5881. fi
  5882. ac_save_cppflags="$CPPFLAGS"
  5883. CPPFLAGS="$PQINCPATH $CPPFLAGS"
  5884. for ac_hdr in libpq-fe.h
  5885. do
  5886. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5887. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5888. echo "configure:7208: checking for $ac_hdr" >&5
  5889. cat > conftest.$ac_ext <<EOF
  5890. #line 7211 "configure"
  5891. #include "confdefs.h"
  5892. #include <$ac_hdr>
  5893. EOF
  5894. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5895. { (eval echo configure:7216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5896. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5897. if test -z "$ac_err"; then
  5898. rm -rf conftest*
  5899. eval "ac_cv_header_$ac_safe=yes"
  5900. else
  5901. echo "$ac_err" >&5
  5902. echo "configure: failed program was:" >&5
  5903. cat conftest.$ac_ext >&5
  5904. rm -rf conftest*
  5905. eval "ac_cv_header_$ac_safe=no"
  5906. fi
  5907. rm -f conftest*
  5908. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5909. echo "$ac_t""yes" 1>&6
  5910. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5911. cat >> confdefs.h <<EOF
  5912. #define $ac_tr_hdr 1
  5913. EOF
  5914. else
  5915. echo "$ac_t""no" 1>&6
  5916. { echo "configure: error: *** Unable to locate PostgreSQL includes." 1>&2; exit 1; }
  5917. fi
  5918. done
  5919. CPPFLAGS=$ac_save_cppflags
  5920. fi # $USE_POSTGRES
  5921. if test -n "$USE_POSTGRES"; then
  5922. # With PostgreSQL library directory
  5923. echo $ac_n "checking for location of PostgreSQL library""... $ac_c" 1>&6
  5924. echo "configure:7254: checking for location of PostgreSQL library" >&5
  5925. case "$with_postgres_libs" in
  5926. y | ye | yes | n | no)
  5927. { echo "configure: error: *** You must supply a directory to --with-postgres-libs." 1>&2; exit 1; }
  5928. ;;
  5929. esac
  5930. echo "$ac_t""$with_postgres_libs" 1>&6
  5931. if test -n "$with_postgres_libs"; then
  5932. for dir in $with_postgres_libs; do
  5933. if test -d "$dir"; then
  5934. PQLIBPATH="$PQLIBPATH -L$dir"
  5935. else
  5936. { echo "configure: error: *** PostgreSQL library directory $dir does not exist." 1>&2; exit 1; }
  5937. fi
  5938. done
  5939. fi
  5940. ac_save_ldflags="$LDFLAGS"
  5941. LDFLAGS="$PQLIBPATH $LDFLAGS"
  5942. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  5943. echo "configure:7283: checking for PQsetdbLogin in -lpq" >&5
  5944. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  5945. ac_save_LIBS="$LIBS"
  5946. LIBS="-lpq $LIBS"
  5947. cat > conftest.$ac_ext <<EOF
  5948. #line 7289 "configure"
  5949. #include "confdefs.h"
  5950. /* Override any gcc2 internal prototype to avoid an error. */
  5951. /* We use char because int might match the return type of a gcc2
  5952. builtin and then its argument prototype would still apply. */
  5953. char PQsetdbLogin();
  5954. int main() {
  5955. PQsetdbLogin()
  5956. ; return 0; }
  5957. EOF
  5958. if { (eval echo configure:7300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5959. rm -rf conftest*
  5960. eval "ac_cv_lib_$ac_lib_var=yes"
  5961. else
  5962. echo "configure: failed program was:" >&5
  5963. cat conftest.$ac_ext >&5
  5964. rm -rf conftest*
  5965. eval "ac_cv_lib_$ac_lib_var=no"
  5966. fi
  5967. rm -f conftest*
  5968. LIBS="$ac_save_LIBS"
  5969. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5970. echo "$ac_t""yes" 1>&6
  5971. PQLIB="$PQLIB -lpq "
  5972. else
  5973. echo "$ac_t""no" 1>&6
  5974. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  5975. echo "configure:7319: checking for PQsetdbLogin in -lpq" >&5
  5976. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  5977. ac_save_LIBS="$LIBS"
  5978. LIBS="-lpq -lssl -lcrypto $LIBS"
  5979. cat > conftest.$ac_ext <<EOF
  5980. #line 7325 "configure"
  5981. #include "confdefs.h"
  5982. /* Override any gcc2 internal prototype to avoid an error. */
  5983. /* We use char because int might match the return type of a gcc2
  5984. builtin and then its argument prototype would still apply. */
  5985. char PQsetdbLogin();
  5986. int main() {
  5987. PQsetdbLogin()
  5988. ; return 0; }
  5989. EOF
  5990. if { (eval echo configure:7336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5991. rm -rf conftest*
  5992. eval "ac_cv_lib_$ac_lib_var=yes"
  5993. else
  5994. echo "configure: failed program was:" >&5
  5995. cat conftest.$ac_ext >&5
  5996. rm -rf conftest*
  5997. eval "ac_cv_lib_$ac_lib_var=no"
  5998. fi
  5999. rm -f conftest*
  6000. LIBS="$ac_save_LIBS"
  6001. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6002. echo "$ac_t""yes" 1>&6
  6003. PQLIB="$PQLIB -lpq -lssl -lcrypto"
  6004. else
  6005. echo "$ac_t""no" 1>&6
  6006. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6007. echo "configure:7355: checking for PQsetdbLogin in -lpq" >&5
  6008. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6009. ac_save_LIBS="$LIBS"
  6010. LIBS="-lpq -lcrypt $LIBS"
  6011. cat > conftest.$ac_ext <<EOF
  6012. #line 7361 "configure"
  6013. #include "confdefs.h"
  6014. /* Override any gcc2 internal prototype to avoid an error. */
  6015. /* We use char because int might match the return type of a gcc2
  6016. builtin and then its argument prototype would still apply. */
  6017. char PQsetdbLogin();
  6018. int main() {
  6019. PQsetdbLogin()
  6020. ; return 0; }
  6021. EOF
  6022. if { (eval echo configure:7372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6023. rm -rf conftest*
  6024. eval "ac_cv_lib_$ac_lib_var=yes"
  6025. else
  6026. echo "configure: failed program was:" >&5
  6027. cat conftest.$ac_ext >&5
  6028. rm -rf conftest*
  6029. eval "ac_cv_lib_$ac_lib_var=no"
  6030. fi
  6031. rm -f conftest*
  6032. LIBS="$ac_save_LIBS"
  6033. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6034. echo "$ac_t""yes" 1>&6
  6035. PQLIB="$PQLIB -lpq -lcrypt"
  6036. else
  6037. echo "$ac_t""no" 1>&6
  6038. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6039. echo "configure:7391: checking for PQsetdbLogin in -lpq" >&5
  6040. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6041. ac_save_LIBS="$LIBS"
  6042. LIBS="-lpq -lcrypt -lssl -lcrypto $LIBS"
  6043. cat > conftest.$ac_ext <<EOF
  6044. #line 7397 "configure"
  6045. #include "confdefs.h"
  6046. /* Override any gcc2 internal prototype to avoid an error. */
  6047. /* We use char because int might match the return type of a gcc2
  6048. builtin and then its argument prototype would still apply. */
  6049. char PQsetdbLogin();
  6050. int main() {
  6051. PQsetdbLogin()
  6052. ; return 0; }
  6053. EOF
  6054. if { (eval echo configure:7408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6055. rm -rf conftest*
  6056. eval "ac_cv_lib_$ac_lib_var=yes"
  6057. else
  6058. echo "configure: failed program was:" >&5
  6059. cat conftest.$ac_ext >&5
  6060. rm -rf conftest*
  6061. eval "ac_cv_lib_$ac_lib_var=no"
  6062. fi
  6063. rm -f conftest*
  6064. LIBS="$ac_save_LIBS"
  6065. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6066. echo "$ac_t""yes" 1>&6
  6067. PQLIB="$PQLIB -lpq -lcrypt -lssl -lcrypto"
  6068. else
  6069. echo "$ac_t""no" 1>&6
  6070. LDFLAGS=${ac_save_ldflags}
  6071. { echo "configure: error: *** Unable to locate PostgreSQL library." 1>&2; exit 1; }
  6072. fi
  6073. fi
  6074. fi
  6075. fi
  6076. LDFLAGS=${ac_save_ldflags}
  6077. ac_save_ldflags="$LDFLAGS"
  6078. LDFLAGS="$LDFLAGS $PQLIBPATH"
  6079. echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
  6080. echo "configure:7465: checking for PQcmdTuples in -lpq" >&5
  6081. ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
  6082. ac_save_LIBS="$LIBS"
  6083. LIBS="-lpq $LIBS"
  6084. cat > conftest.$ac_ext <<EOF
  6085. #line 7471 "configure"
  6086. #include "confdefs.h"
  6087. /* Override any gcc2 internal prototype to avoid an error. */
  6088. /* We use char because int might match the return type of a gcc2
  6089. builtin and then its argument prototype would still apply. */
  6090. char PQcmdTuples();
  6091. int main() {
  6092. PQcmdTuples()
  6093. ; return 0; }
  6094. EOF
  6095. if { (eval echo configure:7482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6096. rm -rf conftest*
  6097. eval "ac_cv_lib_$ac_lib_var=yes"
  6098. else
  6099. echo "configure: failed program was:" >&5
  6100. cat conftest.$ac_ext >&5
  6101. rm -rf conftest*
  6102. eval "ac_cv_lib_$ac_lib_var=no"
  6103. fi
  6104. rm -f conftest*
  6105. LIBS="$ac_save_LIBS"
  6106. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6107. echo "$ac_t""yes" 1>&6
  6108. cat >> confdefs.h <<\EOF
  6109. #define HAVE_PQCMDTUPLES 1
  6110. EOF
  6111. else
  6112. echo "$ac_t""no" 1>&6
  6113. echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
  6114. echo "configure:7504: checking for PQcmdTuples in -lpq" >&5
  6115. ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
  6116. ac_save_LIBS="$LIBS"
  6117. LIBS="-lpq -lcrypt $LIBS"
  6118. cat > conftest.$ac_ext <<EOF
  6119. #line 7510 "configure"
  6120. #include "confdefs.h"
  6121. /* Override any gcc2 internal prototype to avoid an error. */
  6122. /* We use char because int might match the return type of a gcc2
  6123. builtin and then its argument prototype would still apply. */
  6124. char PQcmdTuples();
  6125. int main() {
  6126. PQcmdTuples()
  6127. ; return 0; }
  6128. EOF
  6129. if { (eval echo configure:7521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6130. rm -rf conftest*
  6131. eval "ac_cv_lib_$ac_lib_var=yes"
  6132. else
  6133. echo "configure: failed program was:" >&5
  6134. cat conftest.$ac_ext >&5
  6135. rm -rf conftest*
  6136. eval "ac_cv_lib_$ac_lib_var=no"
  6137. fi
  6138. rm -f conftest*
  6139. LIBS="$ac_save_LIBS"
  6140. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6141. echo "$ac_t""yes" 1>&6
  6142. cat >> confdefs.h <<\EOF
  6143. #define HAVE_PQCMDTUPLES 1
  6144. EOF
  6145. else
  6146. echo "$ac_t""no" 1>&6
  6147. fi
  6148. fi
  6149. LDFLAGS="${ac_save_ldflags}"
  6150. fi # $USE_POSTGRES
  6151. # Done checking PostgreSQL
  6152. # Enable MySQL option
  6153. echo $ac_n "checking whether to use MySQL""... $ac_c" 1>&6
  6154. echo "configure:7564: checking whether to use MySQL" >&5
  6155. echo "$ac_t"""$with_mysql"" 1>&6
  6156. case "$with_mysql" in
  6157. "no") USE_MYSQL= ;;
  6158. "yes") USE_MYSQL="1" ;;
  6159. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6160. esac
  6161. MYSQLINCPATH=
  6162. MYSQLLIBPATH=
  6163. MYSQLLIB=
  6164. if test -n "$USE_MYSQL"; then
  6165. # With MySQL includes directory
  6166. echo $ac_n "checking for location of MySQL includes""... $ac_c" 1>&6
  6167. echo "configure:7584: checking for location of MySQL includes" >&5
  6168. case "$with_mysql_includes" in
  6169. y | ye | yes | n | no)
  6170. { echo "configure: error: *** You must supply a directory to --with-mysql-includes." 1>&2; exit 1; }
  6171. ;;
  6172. esac
  6173. echo "$ac_t""$with_mysql_includes" 1>&6
  6174. if test -n "$with_mysql_includes" ; then
  6175. for dir in $with_mysql_includes; do
  6176. if test -d "$dir"; then
  6177. MYSQLINCPATH="$MYSQLINCPATH -I$dir"
  6178. else
  6179. { echo "configure: error: *** MySQL includes directory $dir does not exist." 1>&2; exit 1; }
  6180. fi
  6181. done
  6182. fi
  6183. ac_save_cppflags="$CPPFLAGS"
  6184. CPPFLAGS="$MYSQLINCPATH $CPPFLAGS"
  6185. for ac_hdr in mysql.h
  6186. do
  6187. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6188. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6189. echo "configure:7610: checking for $ac_hdr" >&5
  6190. cat > conftest.$ac_ext <<EOF
  6191. #line 7613 "configure"
  6192. #include "confdefs.h"
  6193. #include <$ac_hdr>
  6194. EOF
  6195. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6196. { (eval echo configure:7618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6197. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6198. if test -z "$ac_err"; then
  6199. rm -rf conftest*
  6200. eval "ac_cv_header_$ac_safe=yes"
  6201. else
  6202. echo "$ac_err" >&5
  6203. echo "configure: failed program was:" >&5
  6204. cat conftest.$ac_ext >&5
  6205. rm -rf conftest*
  6206. eval "ac_cv_header_$ac_safe=no"
  6207. fi
  6208. rm -f conftest*
  6209. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6210. echo "$ac_t""yes" 1>&6
  6211. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6212. cat >> confdefs.h <<EOF
  6213. #define $ac_tr_hdr 1
  6214. EOF
  6215. else
  6216. echo "$ac_t""no" 1>&6
  6217. { echo "configure: error: *** Unable to locate MySQL includes." 1>&2; exit 1; }
  6218. fi
  6219. done
  6220. CPPFLAGS=$ac_save_cppflags
  6221. fi # $USE_MYSQL
  6222. if test -n "$USE_MYSQL"; then
  6223. # With MySQL library directory
  6224. echo $ac_n "checking for location of MySQL library""... $ac_c" 1>&6
  6225. echo "configure:7655: checking for location of MySQL library" >&5
  6226. case "$with_mysql_libs" in
  6227. y | ye | yes | n | no)
  6228. { echo "configure: error: *** You must supply a directory to --with-mysql-libs." 1>&2; exit 1; }
  6229. ;;
  6230. esac
  6231. echo "$ac_t""$with_mysql_libs" 1>&6
  6232. if test -n "$with_mysql_libs"; then
  6233. for dir in $with_mysql_libs; do
  6234. if test -d "$dir"; then
  6235. MYSQLLIBPATH="$MYSQLLIBPATH -L$dir"
  6236. else
  6237. { echo "configure: error: *** MySQL library directory $dir does not exist." 1>&2; exit 1; }
  6238. fi
  6239. done
  6240. fi
  6241. ac_save_ldflags="$LDFLAGS"
  6242. LDFLAGS="$MYSQLLIBPATH $LDFLAGS"
  6243. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6244. echo "configure:7686: checking for mysql_query in -lmysqlclient" >&5
  6245. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6246. ac_save_LIBS="$LIBS"
  6247. LIBS="-lmysqlclient $LIBS"
  6248. cat > conftest.$ac_ext <<EOF
  6249. #line 7692 "configure"
  6250. #include "confdefs.h"
  6251. /* Override any gcc2 internal prototype to avoid an error. */
  6252. /* We use char because int might match the return type of a gcc2
  6253. builtin and then its argument prototype would still apply. */
  6254. char mysql_query();
  6255. int main() {
  6256. mysql_query()
  6257. ; return 0; }
  6258. EOF
  6259. if { (eval echo configure:7703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6260. rm -rf conftest*
  6261. eval "ac_cv_lib_$ac_lib_var=yes"
  6262. else
  6263. echo "configure: failed program was:" >&5
  6264. cat conftest.$ac_ext >&5
  6265. rm -rf conftest*
  6266. eval "ac_cv_lib_$ac_lib_var=no"
  6267. fi
  6268. rm -f conftest*
  6269. LIBS="$ac_save_LIBS"
  6270. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6271. echo "$ac_t""yes" 1>&6
  6272. MYSQLLIB="$MYSQLLIB -lmysqlclient "
  6273. else
  6274. echo "$ac_t""no" 1>&6
  6275. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6276. echo "configure:7722: checking for mysql_query in -lmysqlclient" >&5
  6277. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6278. ac_save_LIBS="$LIBS"
  6279. LIBS="-lmysqlclient $MATHLIB $LIBS"
  6280. cat > conftest.$ac_ext <<EOF
  6281. #line 7728 "configure"
  6282. #include "confdefs.h"
  6283. /* Override any gcc2 internal prototype to avoid an error. */
  6284. /* We use char because int might match the return type of a gcc2
  6285. builtin and then its argument prototype would still apply. */
  6286. char mysql_query();
  6287. int main() {
  6288. mysql_query()
  6289. ; return 0; }
  6290. EOF
  6291. if { (eval echo configure:7739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6292. rm -rf conftest*
  6293. eval "ac_cv_lib_$ac_lib_var=yes"
  6294. else
  6295. echo "configure: failed program was:" >&5
  6296. cat conftest.$ac_ext >&5
  6297. rm -rf conftest*
  6298. eval "ac_cv_lib_$ac_lib_var=no"
  6299. fi
  6300. rm -f conftest*
  6301. LIBS="$ac_save_LIBS"
  6302. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6303. echo "$ac_t""yes" 1>&6
  6304. MYSQLLIB="$MYSQLLIB -lmysqlclient $MATHLIB"
  6305. else
  6306. echo "$ac_t""no" 1>&6
  6307. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6308. echo "configure:7758: checking for mysql_query in -lmysqlclient" >&5
  6309. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6310. ac_save_LIBS="$LIBS"
  6311. LIBS="-lmysqlclient $SOCKLIB $LIBS"
  6312. cat > conftest.$ac_ext <<EOF
  6313. #line 7764 "configure"
  6314. #include "confdefs.h"
  6315. /* Override any gcc2 internal prototype to avoid an error. */
  6316. /* We use char because int might match the return type of a gcc2
  6317. builtin and then its argument prototype would still apply. */
  6318. char mysql_query();
  6319. int main() {
  6320. mysql_query()
  6321. ; return 0; }
  6322. EOF
  6323. if { (eval echo configure:7775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6324. rm -rf conftest*
  6325. eval "ac_cv_lib_$ac_lib_var=yes"
  6326. else
  6327. echo "configure: failed program was:" >&5
  6328. cat conftest.$ac_ext >&5
  6329. rm -rf conftest*
  6330. eval "ac_cv_lib_$ac_lib_var=no"
  6331. fi
  6332. rm -f conftest*
  6333. LIBS="$ac_save_LIBS"
  6334. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6335. echo "$ac_t""yes" 1>&6
  6336. MYSQLLIB="$MYSQLLIB -lmysqlclient $SOCKLIB"
  6337. else
  6338. echo "$ac_t""no" 1>&6
  6339. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6340. echo "configure:7794: checking for mysql_query in -lmysqlclient" >&5
  6341. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6342. ac_save_LIBS="$LIBS"
  6343. LIBS="-lmysqlclient $SOCKLIB $MATHLIB $LIBS"
  6344. cat > conftest.$ac_ext <<EOF
  6345. #line 7800 "configure"
  6346. #include "confdefs.h"
  6347. /* Override any gcc2 internal prototype to avoid an error. */
  6348. /* We use char because int might match the return type of a gcc2
  6349. builtin and then its argument prototype would still apply. */
  6350. char mysql_query();
  6351. int main() {
  6352. mysql_query()
  6353. ; return 0; }
  6354. EOF
  6355. if { (eval echo configure:7811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6356. rm -rf conftest*
  6357. eval "ac_cv_lib_$ac_lib_var=yes"
  6358. else
  6359. echo "configure: failed program was:" >&5
  6360. cat conftest.$ac_ext >&5
  6361. rm -rf conftest*
  6362. eval "ac_cv_lib_$ac_lib_var=no"
  6363. fi
  6364. rm -f conftest*
  6365. LIBS="$ac_save_LIBS"
  6366. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6367. echo "$ac_t""yes" 1>&6
  6368. MYSQLLIB="$MYSQLLIB -lmysqlclient $SOCKLIB $MATHLIB"
  6369. else
  6370. echo "$ac_t""no" 1>&6
  6371. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6372. echo "configure:7830: checking for mysql_query in -lmysqlclient" >&5
  6373. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6374. ac_save_LIBS="$LIBS"
  6375. LIBS="-lmysqlclient $ZLIB $LIBS"
  6376. cat > conftest.$ac_ext <<EOF
  6377. #line 7836 "configure"
  6378. #include "confdefs.h"
  6379. /* Override any gcc2 internal prototype to avoid an error. */
  6380. /* We use char because int might match the return type of a gcc2
  6381. builtin and then its argument prototype would still apply. */
  6382. char mysql_query();
  6383. int main() {
  6384. mysql_query()
  6385. ; return 0; }
  6386. EOF
  6387. if { (eval echo configure:7847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6388. rm -rf conftest*
  6389. eval "ac_cv_lib_$ac_lib_var=yes"
  6390. else
  6391. echo "configure: failed program was:" >&5
  6392. cat conftest.$ac_ext >&5
  6393. rm -rf conftest*
  6394. eval "ac_cv_lib_$ac_lib_var=no"
  6395. fi
  6396. rm -f conftest*
  6397. LIBS="$ac_save_LIBS"
  6398. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6399. echo "$ac_t""yes" 1>&6
  6400. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB"
  6401. else
  6402. echo "$ac_t""no" 1>&6
  6403. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6404. echo "configure:7866: checking for mysql_query in -lmysqlclient" >&5
  6405. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6406. ac_save_LIBS="$LIBS"
  6407. LIBS="-lmysqlclient $ZLIB $MATHLIB $LIBS"
  6408. cat > conftest.$ac_ext <<EOF
  6409. #line 7872 "configure"
  6410. #include "confdefs.h"
  6411. /* Override any gcc2 internal prototype to avoid an error. */
  6412. /* We use char because int might match the return type of a gcc2
  6413. builtin and then its argument prototype would still apply. */
  6414. char mysql_query();
  6415. int main() {
  6416. mysql_query()
  6417. ; return 0; }
  6418. EOF
  6419. if { (eval echo configure:7883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6420. rm -rf conftest*
  6421. eval "ac_cv_lib_$ac_lib_var=yes"
  6422. else
  6423. echo "configure: failed program was:" >&5
  6424. cat conftest.$ac_ext >&5
  6425. rm -rf conftest*
  6426. eval "ac_cv_lib_$ac_lib_var=no"
  6427. fi
  6428. rm -f conftest*
  6429. LIBS="$ac_save_LIBS"
  6430. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6431. echo "$ac_t""yes" 1>&6
  6432. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $MATHLIB"
  6433. else
  6434. echo "$ac_t""no" 1>&6
  6435. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6436. echo "configure:7902: checking for mysql_query in -lmysqlclient" >&5
  6437. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6438. ac_save_LIBS="$LIBS"
  6439. LIBS="-lmysqlclient $ZLIB $SOCKLIB $LIBS"
  6440. cat > conftest.$ac_ext <<EOF
  6441. #line 7908 "configure"
  6442. #include "confdefs.h"
  6443. /* Override any gcc2 internal prototype to avoid an error. */
  6444. /* We use char because int might match the return type of a gcc2
  6445. builtin and then its argument prototype would still apply. */
  6446. char mysql_query();
  6447. int main() {
  6448. mysql_query()
  6449. ; return 0; }
  6450. EOF
  6451. if { (eval echo configure:7919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6452. rm -rf conftest*
  6453. eval "ac_cv_lib_$ac_lib_var=yes"
  6454. else
  6455. echo "configure: failed program was:" >&5
  6456. cat conftest.$ac_ext >&5
  6457. rm -rf conftest*
  6458. eval "ac_cv_lib_$ac_lib_var=no"
  6459. fi
  6460. rm -f conftest*
  6461. LIBS="$ac_save_LIBS"
  6462. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6463. echo "$ac_t""yes" 1>&6
  6464. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $SOCKLIB"
  6465. else
  6466. echo "$ac_t""no" 1>&6
  6467. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6468. echo "configure:7938: checking for mysql_query in -lmysqlclient" >&5
  6469. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6470. ac_save_LIBS="$LIBS"
  6471. LIBS="-lmysqlclient $ZLIB $SOCKLIB $MATHLIB $LIBS"
  6472. cat > conftest.$ac_ext <<EOF
  6473. #line 7944 "configure"
  6474. #include "confdefs.h"
  6475. /* Override any gcc2 internal prototype to avoid an error. */
  6476. /* We use char because int might match the return type of a gcc2
  6477. builtin and then its argument prototype would still apply. */
  6478. char mysql_query();
  6479. int main() {
  6480. mysql_query()
  6481. ; return 0; }
  6482. EOF
  6483. if { (eval echo configure:7955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6484. rm -rf conftest*
  6485. eval "ac_cv_lib_$ac_lib_var=yes"
  6486. else
  6487. echo "configure: failed program was:" >&5
  6488. cat conftest.$ac_ext >&5
  6489. rm -rf conftest*
  6490. eval "ac_cv_lib_$ac_lib_var=no"
  6491. fi
  6492. rm -f conftest*
  6493. LIBS="$ac_save_LIBS"
  6494. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6495. echo "$ac_t""yes" 1>&6
  6496. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $SOCKLIB $MATHLIB"
  6497. else
  6498. echo "$ac_t""no" 1>&6
  6499. LDFLAGS=${ac_save_ldflags}
  6500. { echo "configure: error: *** Unable to locate MySQL library." 1>&2; exit 1; }
  6501. fi
  6502. fi
  6503. fi
  6504. fi
  6505. fi
  6506. fi
  6507. fi
  6508. fi
  6509. LDFLAGS=${ac_save_ldflags}
  6510. # Check for libmysqld (for embeded version of the driver)
  6511. # Extract the first word of "mysql_config", so it can be a program name with args.
  6512. set dummy mysql_config; ac_word=$2
  6513. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  6514. echo "configure:8045: checking for $ac_word" >&5
  6515. case "$MYSQLD_CONFIG" in
  6516. /*)
  6517. ac_cv_path_MYSQLD_CONFIG="$MYSQLD_CONFIG" # Let the user override the test with a path.
  6518. ;;
  6519. ?:/*)
  6520. ac_cv_path_MYSQLD_CONFIG="$MYSQLD_CONFIG" # Let the user override the test with a dos path.
  6521. ;;
  6522. *)
  6523. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  6524. ac_dummy="$PATH"
  6525. for ac_dir in $ac_dummy; do
  6526. test -z "$ac_dir" && ac_dir=.
  6527. if test -f $ac_dir/$ac_word; then
  6528. ac_cv_path_MYSQLD_CONFIG="$ac_dir/$ac_word"
  6529. break
  6530. fi
  6531. done
  6532. IFS="$ac_save_ifs"
  6533. test -z "$ac_cv_path_MYSQLD_CONFIG" && ac_cv_path_MYSQLD_CONFIG="no"
  6534. ;;
  6535. esac
  6536. MYSQLD_CONFIG="$ac_cv_path_MYSQLD_CONFIG"
  6537. if test -n "$MYSQLD_CONFIG"; then
  6538. echo "$ac_t""$MYSQLD_CONFIG" 1>&6
  6539. else
  6540. echo "$ac_t""no" 1>&6
  6541. fi
  6542. if test "$MYSQLD_CONFIG" = "no" ; then
  6543. { echo "configure: error: *** couldn't find mysql_config" 1>&2; exit 1; }
  6544. fi
  6545. if test "$MYSQLD_CONFIG" != "" ; then
  6546. ac_ext=C
  6547. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6548. ac_cpp='$CXXCPP $CPPFLAGS'
  6549. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6550. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6551. cross_compiling=$ac_cv_prog_cxx_cross
  6552. ac_save_libs="$LIBS"
  6553. MYSQLDLIB=`"$MYSQLD_CONFIG" --libmysqld-libs`
  6554. LIBS="$MYSQLDLIB $LIBS"
  6555. echo $ac_n "checking for mysql_server_init""... $ac_c" 1>&6
  6556. echo "configure:8094: checking for mysql_server_init" >&5
  6557. cat > conftest.$ac_ext <<EOF
  6558. #line 8097 "configure"
  6559. #include "confdefs.h"
  6560. /* System header to define __stub macros and hopefully few prototypes,
  6561. which can conflict with char mysql_server_init(); below. */
  6562. #include <assert.h>
  6563. /* Override any gcc2 internal prototype to avoid an error. */
  6564. #ifdef __cplusplus
  6565. extern "C"
  6566. #endif
  6567. /* We use char because int might match the return type of a gcc2
  6568. builtin and then its argument prototype would still apply. */
  6569. char mysql_server_init();
  6570. int main() {
  6571. /* The GNU C library defines this for functions which it implements
  6572. to always fail with ENOSYS. Some functions are actually named
  6573. something starting with __ and the normal name is an alias. */
  6574. #if defined (__stub_mysql_server_init) || defined (__stub___mysql_server_init)
  6575. choke me
  6576. #else
  6577. mysql_server_init();
  6578. #endif
  6579. ; return 0; }
  6580. EOF
  6581. if { (eval echo configure:8123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6582. rm -rf conftest*
  6583. eval "ac_cv_func_mysql_server_init=yes"
  6584. else
  6585. echo "configure: failed program was:" >&5
  6586. cat conftest.$ac_ext >&5
  6587. rm -rf conftest*
  6588. eval "ac_cv_func_mysql_server_init=no"
  6589. fi
  6590. rm -f conftest*
  6591. if eval "test \"`echo '$ac_cv_func_'mysql_server_init`\" = yes"; then
  6592. echo "$ac_t""yes" 1>&6
  6593. :
  6594. else
  6595. echo "$ac_t""no" 1>&6
  6596. MYSQLDLIB="";
  6597. echo "configure: warning: libmysqld not found" 1>&2
  6598. fi
  6599. LIBS=$ac_save_libs
  6600. ac_ext=c
  6601. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6602. ac_cpp='$CPP $CPPFLAGS'
  6603. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6604. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6605. cross_compiling=$ac_cv_prog_cc_cross
  6606. ac_ext=c
  6607. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6608. ac_cpp='$CPP $CPPFLAGS'
  6609. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6610. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6611. cross_compiling=$ac_cv_prog_cc_cross
  6612. fi
  6613. fi # $USE_MYSQL
  6614. # Done checking MySQL
  6615. # Enable SQLite option
  6616. echo $ac_n "checking whether to use SQLite""... $ac_c" 1>&6
  6617. echo "configure:8175: checking whether to use SQLite" >&5
  6618. echo "$ac_t"""$with_sqlite"" 1>&6
  6619. case "$with_sqlite" in
  6620. "no") USE_SQLITE= ;;
  6621. "yes") USE_SQLITE="1" ;;
  6622. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6623. esac
  6624. SQLITEINCPATH=
  6625. SQLITELIBPATH=
  6626. SQLITELIB=
  6627. if test -n "$USE_SQLITE"; then
  6628. # With SQLite includes directory
  6629. echo $ac_n "checking for location of SQLite includes""... $ac_c" 1>&6
  6630. echo "configure:8195: checking for location of SQLite includes" >&5
  6631. case "$with_sqlite_includes" in
  6632. y | ye | yes | n | no)
  6633. { echo "configure: error: *** You must supply a directory to --with-sqlite-includes." 1>&2; exit 1; }
  6634. ;;
  6635. esac
  6636. echo "$ac_t""$with_sqlite_includes" 1>&6
  6637. if test -n "$with_sqlite_includes" ; then
  6638. for dir in $with_sqlite_includes; do
  6639. if test -d "$dir"; then
  6640. SQLITEINCPATH="$SQLITEINCPATH -I$dir"
  6641. else
  6642. { echo "configure: error: *** SQLite includes directory $dir does not exist." 1>&2; exit 1; }
  6643. fi
  6644. done
  6645. fi
  6646. ac_save_cppflags="$CPPFLAGS"
  6647. CPPFLAGS="$SQLITEINCPATH $CPPFLAGS"
  6648. for ac_hdr in sqlite3.h
  6649. do
  6650. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6651. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6652. echo "configure:8221: checking for $ac_hdr" >&5
  6653. cat > conftest.$ac_ext <<EOF
  6654. #line 8224 "configure"
  6655. #include "confdefs.h"
  6656. #include <$ac_hdr>
  6657. EOF
  6658. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6659. { (eval echo configure:8229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6660. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6661. if test -z "$ac_err"; then
  6662. rm -rf conftest*
  6663. eval "ac_cv_header_$ac_safe=yes"
  6664. else
  6665. echo "$ac_err" >&5
  6666. echo "configure: failed program was:" >&5
  6667. cat conftest.$ac_ext >&5
  6668. rm -rf conftest*
  6669. eval "ac_cv_header_$ac_safe=no"
  6670. fi
  6671. rm -f conftest*
  6672. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6673. echo "$ac_t""yes" 1>&6
  6674. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6675. cat >> confdefs.h <<EOF
  6676. #define $ac_tr_hdr 1
  6677. EOF
  6678. else
  6679. echo "$ac_t""no" 1>&6
  6680. { echo "configure: error: *** Unable to locate SQLite includes." 1>&2; exit 1; }
  6681. fi
  6682. done
  6683. CPPFLAGS=$ac_save_cppflags
  6684. cat >> confdefs.h <<\EOF
  6685. #define HAVE_SQLITE 1
  6686. EOF
  6687. fi # $USE_SQLITE
  6688. if test -n "$USE_SQLITE"; then
  6689. # With SQLite library directory
  6690. echo $ac_n "checking for location of SQLite library""... $ac_c" 1>&6
  6691. echo "configure:8272: checking for location of SQLite library" >&5
  6692. case "$with_sqlite_libs" in
  6693. y | ye | yes | n | no)
  6694. { echo "configure: error: *** You must supply a directory to --with-sqlite-libs." 1>&2; exit 1; }
  6695. ;;
  6696. esac
  6697. echo "$ac_t""$with_sqlite_libs" 1>&6
  6698. if test -n "$with_sqlite_libs"; then
  6699. for dir in $with_sqlite_libs; do
  6700. if test -d "$dir"; then
  6701. SQLITELIBPATH="$SQLITELIBPATH -L$dir"
  6702. else
  6703. { echo "configure: error: *** SQLite library directory $dir does not exist." 1>&2; exit 1; }
  6704. fi
  6705. done
  6706. fi
  6707. ac_save_ldflags="$LDFLAGS"
  6708. LDFLAGS="$SQLITELIBPATH $LDFLAGS"
  6709. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  6710. echo "configure:8301: checking for sqlite3_open in -lsqlite3" >&5
  6711. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  6712. ac_save_LIBS="$LIBS"
  6713. LIBS="-lsqlite3 $LIBS"
  6714. cat > conftest.$ac_ext <<EOF
  6715. #line 8307 "configure"
  6716. #include "confdefs.h"
  6717. /* Override any gcc2 internal prototype to avoid an error. */
  6718. /* We use char because int might match the return type of a gcc2
  6719. builtin and then its argument prototype would still apply. */
  6720. char sqlite3_open();
  6721. int main() {
  6722. sqlite3_open()
  6723. ; return 0; }
  6724. EOF
  6725. if { (eval echo configure:8318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6726. rm -rf conftest*
  6727. eval "ac_cv_lib_$ac_lib_var=yes"
  6728. else
  6729. echo "configure: failed program was:" >&5
  6730. cat conftest.$ac_ext >&5
  6731. rm -rf conftest*
  6732. eval "ac_cv_lib_$ac_lib_var=no"
  6733. fi
  6734. rm -f conftest*
  6735. LIBS="$ac_save_LIBS"
  6736. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6737. echo "$ac_t""yes" 1>&6
  6738. SQLITELIB="$SQLITELIB -lsqlite3 "
  6739. else
  6740. echo "$ac_t""no" 1>&6
  6741. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  6742. echo "configure:8337: checking for sqlite3_open in -lsqlite3" >&5
  6743. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  6744. ac_save_LIBS="$LIBS"
  6745. LIBS="-lsqlite3 $DLLIB $LIBS"
  6746. cat > conftest.$ac_ext <<EOF
  6747. #line 8343 "configure"
  6748. #include "confdefs.h"
  6749. /* Override any gcc2 internal prototype to avoid an error. */
  6750. /* We use char because int might match the return type of a gcc2
  6751. builtin and then its argument prototype would still apply. */
  6752. char sqlite3_open();
  6753. int main() {
  6754. sqlite3_open()
  6755. ; return 0; }
  6756. EOF
  6757. if { (eval echo configure:8354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6758. rm -rf conftest*
  6759. eval "ac_cv_lib_$ac_lib_var=yes"
  6760. else
  6761. echo "configure: failed program was:" >&5
  6762. cat conftest.$ac_ext >&5
  6763. rm -rf conftest*
  6764. eval "ac_cv_lib_$ac_lib_var=no"
  6765. fi
  6766. rm -f conftest*
  6767. LIBS="$ac_save_LIBS"
  6768. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6769. echo "$ac_t""yes" 1>&6
  6770. SQLITELIB="$SQLITELIB -lsqlite3 $DLLIB"
  6771. else
  6772. echo "$ac_t""no" 1>&6
  6773. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  6774. echo "configure:8373: checking for sqlite3_open in -lsqlite3" >&5
  6775. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  6776. ac_save_LIBS="$LIBS"
  6777. LIBS="-lsqlite3 $MATHLIB $LIBS"
  6778. cat > conftest.$ac_ext <<EOF
  6779. #line 8379 "configure"
  6780. #include "confdefs.h"
  6781. /* Override any gcc2 internal prototype to avoid an error. */
  6782. /* We use char because int might match the return type of a gcc2
  6783. builtin and then its argument prototype would still apply. */
  6784. char sqlite3_open();
  6785. int main() {
  6786. sqlite3_open()
  6787. ; return 0; }
  6788. EOF
  6789. if { (eval echo configure:8390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6790. rm -rf conftest*
  6791. eval "ac_cv_lib_$ac_lib_var=yes"
  6792. else
  6793. echo "configure: failed program was:" >&5
  6794. cat conftest.$ac_ext >&5
  6795. rm -rf conftest*
  6796. eval "ac_cv_lib_$ac_lib_var=no"
  6797. fi
  6798. rm -f conftest*
  6799. LIBS="$ac_save_LIBS"
  6800. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6801. echo "$ac_t""yes" 1>&6
  6802. SQLITELIB="$SQLITELIB -lsqlite3 $MATHLIB"
  6803. else
  6804. echo "$ac_t""no" 1>&6
  6805. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  6806. echo "configure:8409: checking for sqlite3_open in -lsqlite3" >&5
  6807. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  6808. ac_save_LIBS="$LIBS"
  6809. LIBS="-lsqlite3 $MATHLIB $DLLIB $LIBS"
  6810. cat > conftest.$ac_ext <<EOF
  6811. #line 8415 "configure"
  6812. #include "confdefs.h"
  6813. /* Override any gcc2 internal prototype to avoid an error. */
  6814. /* We use char because int might match the return type of a gcc2
  6815. builtin and then its argument prototype would still apply. */
  6816. char sqlite3_open();
  6817. int main() {
  6818. sqlite3_open()
  6819. ; return 0; }
  6820. EOF
  6821. if { (eval echo configure:8426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6822. rm -rf conftest*
  6823. eval "ac_cv_lib_$ac_lib_var=yes"
  6824. else
  6825. echo "configure: failed program was:" >&5
  6826. cat conftest.$ac_ext >&5
  6827. rm -rf conftest*
  6828. eval "ac_cv_lib_$ac_lib_var=no"
  6829. fi
  6830. rm -f conftest*
  6831. LIBS="$ac_save_LIBS"
  6832. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6833. echo "$ac_t""yes" 1>&6
  6834. SQLITELIB="$SQLITELIB -lsqlite3 $MATHLIB $DLLIB"
  6835. else
  6836. echo "$ac_t""no" 1>&6
  6837. LDFLAGS=${ac_save_ldflags}
  6838. { echo "configure: error: *** Unable to locate SQLite library." 1>&2; exit 1; }
  6839. fi
  6840. fi
  6841. fi
  6842. fi
  6843. LDFLAGS=${ac_save_ldflags}
  6844. fi # $USE_SQLITE
  6845. # Done checking SQLite
  6846. # Enable FFMPEG option
  6847. echo $ac_n "checking whether to use FFMPEG""... $ac_c" 1>&6
  6848. echo "configure:8495: checking whether to use FFMPEG" >&5
  6849. echo "$ac_t"""$with_ffmpeg"" 1>&6
  6850. case "$with_ffmpeg" in
  6851. "no") USE_FFMPEG= ;;
  6852. "yes") USE_FFMPEG="1" ;;
  6853. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6854. esac
  6855. FFMPEGINCPATH=
  6856. FFMPEGLIBPATH=
  6857. FFMPEGLIB=
  6858. if test -n "$USE_FFMPEG"; then
  6859. # With FFMPEG includes directory
  6860. echo $ac_n "checking for location of FFMPEG includes""... $ac_c" 1>&6
  6861. echo "configure:8515: checking for location of FFMPEG includes" >&5
  6862. case "$with_ffmpeg_includes" in
  6863. y | ye | yes | n | no)
  6864. { echo "configure: error: *** You must supply a directory to --with-ffmpeg-includes." 1>&2; exit 1; }
  6865. ;;
  6866. esac
  6867. echo "$ac_t""$with_ffmpeg_includes" 1>&6
  6868. if test -n "$with_ffmpeg_includes" ; then
  6869. for dir in $with_ffmpeg_includes; do
  6870. if test -d "$dir"; then
  6871. FFMPEGINCPATH="$FFMPEGINCPATH -I$dir"
  6872. else
  6873. { echo "configure: error: *** FFMPEG includes directory $dir does not exist." 1>&2; exit 1; }
  6874. fi
  6875. done
  6876. fi
  6877. ac_save_cppflags="$CPPFLAGS"
  6878. CPPFLAGS="$FFMPEGINCPATH $CPPFLAGS"
  6879. for ac_hdr in avcodec.h
  6880. do
  6881. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6882. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6883. echo "configure:8541: checking for $ac_hdr" >&5
  6884. cat > conftest.$ac_ext <<EOF
  6885. #line 8544 "configure"
  6886. #include "confdefs.h"
  6887. #include <$ac_hdr>
  6888. EOF
  6889. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6890. { (eval echo configure:8549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6891. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6892. if test -z "$ac_err"; then
  6893. rm -rf conftest*
  6894. eval "ac_cv_header_$ac_safe=yes"
  6895. else
  6896. echo "$ac_err" >&5
  6897. echo "configure: failed program was:" >&5
  6898. cat conftest.$ac_ext >&5
  6899. rm -rf conftest*
  6900. eval "ac_cv_header_$ac_safe=no"
  6901. fi
  6902. rm -f conftest*
  6903. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6904. echo "$ac_t""yes" 1>&6
  6905. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6906. cat >> confdefs.h <<EOF
  6907. #define $ac_tr_hdr 1
  6908. EOF
  6909. else
  6910. echo "$ac_t""no" 1>&6
  6911. { echo "configure: error: *** Unable to locate FFMPEG includes." 1>&2; exit 1; }
  6912. fi
  6913. done
  6914. CPPFLAGS=$ac_save_cppflags
  6915. ac_save_cppflags="$CPPFLAGS"
  6916. CPPFLAGS="$FFMPEGINCPATH $CPPFLAGS"
  6917. for ac_hdr in avformat.h
  6918. do
  6919. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6920. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6921. echo "configure:8585: checking for $ac_hdr" >&5
  6922. cat > conftest.$ac_ext <<EOF
  6923. #line 8588 "configure"
  6924. #include "confdefs.h"
  6925. #include <$ac_hdr>
  6926. EOF
  6927. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6928. { (eval echo configure:8593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6929. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6930. if test -z "$ac_err"; then
  6931. rm -rf conftest*
  6932. eval "ac_cv_header_$ac_safe=yes"
  6933. else
  6934. echo "$ac_err" >&5
  6935. echo "configure: failed program was:" >&5
  6936. cat conftest.$ac_ext >&5
  6937. rm -rf conftest*
  6938. eval "ac_cv_header_$ac_safe=no"
  6939. fi
  6940. rm -f conftest*
  6941. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6942. echo "$ac_t""yes" 1>&6
  6943. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6944. cat >> confdefs.h <<EOF
  6945. #define $ac_tr_hdr 1
  6946. EOF
  6947. else
  6948. echo "$ac_t""no" 1>&6
  6949. { echo "configure: error: *** Unable to locate FFMPEG includes." 1>&2; exit 1; }
  6950. fi
  6951. done
  6952. CPPFLAGS=$ac_save_cppflags
  6953. ac_save_cppflags="$CPPFLAGS"
  6954. CPPFLAGS="$FFMPEGINCPATH $CPPFLAGS"
  6955. for ac_hdr in swscale.h
  6956. do
  6957. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6958. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6959. echo "configure:8629: checking for $ac_hdr" >&5
  6960. cat > conftest.$ac_ext <<EOF
  6961. #line 8632 "configure"
  6962. #include "confdefs.h"
  6963. #include <$ac_hdr>
  6964. EOF
  6965. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6966. { (eval echo configure:8637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6967. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6968. if test -z "$ac_err"; then
  6969. rm -rf conftest*
  6970. eval "ac_cv_header_$ac_safe=yes"
  6971. else
  6972. echo "$ac_err" >&5
  6973. echo "configure: failed program was:" >&5
  6974. cat conftest.$ac_ext >&5
  6975. rm -rf conftest*
  6976. eval "ac_cv_header_$ac_safe=no"
  6977. fi
  6978. rm -f conftest*
  6979. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6980. echo "$ac_t""yes" 1>&6
  6981. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6982. cat >> confdefs.h <<EOF
  6983. #define $ac_tr_hdr 1
  6984. EOF
  6985. else
  6986. echo "$ac_t""no" 1>&6
  6987. { echo "configure: error: *** Unable to locate FFMPEG includes." 1>&2; exit 1; }
  6988. fi
  6989. done
  6990. CPPFLAGS=$ac_save_cppflags
  6991. cat >> confdefs.h <<\EOF
  6992. #define HAVE_FFMPEG 1
  6993. EOF
  6994. fi # $USE_FFMPEG
  6995. if test -n "$USE_FFMPEG"; then
  6996. # With FFMPEG library directory
  6997. echo $ac_n "checking for location of FFMPEG library""... $ac_c" 1>&6
  6998. echo "configure:8680: checking for location of FFMPEG library" >&5
  6999. case "$with_ffmpeg_libs" in
  7000. y | ye | yes | n | no)
  7001. { echo "configure: error: *** You must supply a directory to --with-ffmpeg-libs." 1>&2; exit 1; }
  7002. ;;
  7003. esac
  7004. echo "$ac_t""$with_ffmpeg_libs" 1>&6
  7005. if test -n "$with_ffmpeg_libs"; then
  7006. for dir in $with_ffmpeg_libs; do
  7007. if test -d "$dir"; then
  7008. FFMPEGLIBPATH="$FFMPEGLIBPATH -L$dir"
  7009. else
  7010. { echo "configure: error: *** FFMPEG library directory $dir does not exist." 1>&2; exit 1; }
  7011. fi
  7012. done
  7013. fi
  7014. ac_save_ldflags="$LDFLAGS"
  7015. LDFLAGS="$FFMPEGLIBPATH $LDFLAGS"
  7016. echo $ac_n "checking for av_free in -lavutil""... $ac_c" 1>&6
  7017. echo "configure:8707: checking for av_free in -lavutil" >&5
  7018. ac_lib_var=`echo avutil'_'av_free | sed 'y%./+-%__p_%'`
  7019. ac_save_LIBS="$LIBS"
  7020. LIBS="-lavutil $LIBS"
  7021. cat > conftest.$ac_ext <<EOF
  7022. #line 8713 "configure"
  7023. #include "confdefs.h"
  7024. /* Override any gcc2 internal prototype to avoid an error. */
  7025. /* We use char because int might match the return type of a gcc2
  7026. builtin and then its argument prototype would still apply. */
  7027. char av_free();
  7028. int main() {
  7029. av_free()
  7030. ; return 0; }
  7031. EOF
  7032. if { (eval echo configure:8724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7033. rm -rf conftest*
  7034. eval "ac_cv_lib_$ac_lib_var=yes"
  7035. else
  7036. echo "configure: failed program was:" >&5
  7037. cat conftest.$ac_ext >&5
  7038. rm -rf conftest*
  7039. eval "ac_cv_lib_$ac_lib_var=no"
  7040. fi
  7041. rm -f conftest*
  7042. LIBS="$ac_save_LIBS"
  7043. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7044. echo "$ac_t""yes" 1>&6
  7045. FFMPEGLIB="$FFMPEGLIB -lavutil "
  7046. else
  7047. echo "$ac_t""no" 1>&6
  7048. echo $ac_n "checking for av_free in -lavutil""... $ac_c" 1>&6
  7049. echo "configure:8743: checking for av_free in -lavutil" >&5
  7050. ac_lib_var=`echo avutil'_'av_free | sed 'y%./+-%__p_%'`
  7051. ac_save_LIBS="$LIBS"
  7052. LIBS="-lavutil $MATHLIB $LIBS"
  7053. cat > conftest.$ac_ext <<EOF
  7054. #line 8749 "configure"
  7055. #include "confdefs.h"
  7056. /* Override any gcc2 internal prototype to avoid an error. */
  7057. /* We use char because int might match the return type of a gcc2
  7058. builtin and then its argument prototype would still apply. */
  7059. char av_free();
  7060. int main() {
  7061. av_free()
  7062. ; return 0; }
  7063. EOF
  7064. if { (eval echo configure:8760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7065. rm -rf conftest*
  7066. eval "ac_cv_lib_$ac_lib_var=yes"
  7067. else
  7068. echo "configure: failed program was:" >&5
  7069. cat conftest.$ac_ext >&5
  7070. rm -rf conftest*
  7071. eval "ac_cv_lib_$ac_lib_var=no"
  7072. fi
  7073. rm -f conftest*
  7074. LIBS="$ac_save_LIBS"
  7075. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7076. echo "$ac_t""yes" 1>&6
  7077. FFMPEGLIB="$FFMPEGLIB -lavutil $MATHLIB"
  7078. else
  7079. echo "$ac_t""no" 1>&6
  7080. LDFLAGS=${ac_save_ldflags}
  7081. { echo "configure: error: *** Unable to locate FFMPEG library." 1>&2; exit 1; }
  7082. fi
  7083. fi
  7084. LDFLAGS=${ac_save_ldflags}
  7085. ac_save_ldflags="$LDFLAGS"
  7086. LDFLAGS="$FFMPEGLIBPATH $LDFLAGS"
  7087. echo $ac_n "checking for avcodec_register in -lavcodec""... $ac_c" 1>&6
  7088. echo "configure:8805: checking for avcodec_register in -lavcodec" >&5
  7089. ac_lib_var=`echo avcodec'_'avcodec_register | sed 'y%./+-%__p_%'`
  7090. ac_save_LIBS="$LIBS"
  7091. LIBS="-lavcodec $FFMPEGLIB $LIBS"
  7092. cat > conftest.$ac_ext <<EOF
  7093. #line 8811 "configure"
  7094. #include "confdefs.h"
  7095. /* Override any gcc2 internal prototype to avoid an error. */
  7096. /* We use char because int might match the return type of a gcc2
  7097. builtin and then its argument prototype would still apply. */
  7098. char avcodec_register();
  7099. int main() {
  7100. avcodec_register()
  7101. ; return 0; }
  7102. EOF
  7103. if { (eval echo configure:8822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7104. rm -rf conftest*
  7105. eval "ac_cv_lib_$ac_lib_var=yes"
  7106. else
  7107. echo "configure: failed program was:" >&5
  7108. cat conftest.$ac_ext >&5
  7109. rm -rf conftest*
  7110. eval "ac_cv_lib_$ac_lib_var=no"
  7111. fi
  7112. rm -f conftest*
  7113. LIBS="$ac_save_LIBS"
  7114. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7115. echo "$ac_t""yes" 1>&6
  7116. FFMPEGLIB="$FFMPEGLIB -lavcodec "
  7117. else
  7118. echo "$ac_t""no" 1>&6
  7119. echo $ac_n "checking for avcodec_register in -lavcodec""... $ac_c" 1>&6
  7120. echo "configure:8841: checking for avcodec_register in -lavcodec" >&5
  7121. ac_lib_var=`echo avcodec'_'avcodec_register | sed 'y%./+-%__p_%'`
  7122. ac_save_LIBS="$LIBS"
  7123. LIBS="-lavcodec $FFMPEGLIB $MATHLIB $LIBS"
  7124. cat > conftest.$ac_ext <<EOF
  7125. #line 8847 "configure"
  7126. #include "confdefs.h"
  7127. /* Override any gcc2 internal prototype to avoid an error. */
  7128. /* We use char because int might match the return type of a gcc2
  7129. builtin and then its argument prototype would still apply. */
  7130. char avcodec_register();
  7131. int main() {
  7132. avcodec_register()
  7133. ; return 0; }
  7134. EOF
  7135. if { (eval echo configure:8858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7136. rm -rf conftest*
  7137. eval "ac_cv_lib_$ac_lib_var=yes"
  7138. else
  7139. echo "configure: failed program was:" >&5
  7140. cat conftest.$ac_ext >&5
  7141. rm -rf conftest*
  7142. eval "ac_cv_lib_$ac_lib_var=no"
  7143. fi
  7144. rm -f conftest*
  7145. LIBS="$ac_save_LIBS"
  7146. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7147. echo "$ac_t""yes" 1>&6
  7148. FFMPEGLIB="$FFMPEGLIB -lavcodec $MATHLIB"
  7149. else
  7150. echo "$ac_t""no" 1>&6
  7151. LDFLAGS=${ac_save_ldflags}
  7152. { echo "configure: error: *** Unable to locate FFMPEG library." 1>&2; exit 1; }
  7153. fi
  7154. fi
  7155. LDFLAGS=${ac_save_ldflags}
  7156. ac_save_ldflags="$LDFLAGS"
  7157. LDFLAGS="$FFMPEGLIBPATH $LDFLAGS"
  7158. echo $ac_n "checking for avformat_alloc_context in -lavformat""... $ac_c" 1>&6
  7159. echo "configure:8903: checking for avformat_alloc_context in -lavformat" >&5
  7160. ac_lib_var=`echo avformat'_'avformat_alloc_context | sed 'y%./+-%__p_%'`
  7161. ac_save_LIBS="$LIBS"
  7162. LIBS="-lavformat $FFMPEGLIB $LIBS"
  7163. cat > conftest.$ac_ext <<EOF
  7164. #line 8909 "configure"
  7165. #include "confdefs.h"
  7166. /* Override any gcc2 internal prototype to avoid an error. */
  7167. /* We use char because int might match the return type of a gcc2
  7168. builtin and then its argument prototype would still apply. */
  7169. char avformat_alloc_context();
  7170. int main() {
  7171. avformat_alloc_context()
  7172. ; return 0; }
  7173. EOF
  7174. if { (eval echo configure:8920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7175. rm -rf conftest*
  7176. eval "ac_cv_lib_$ac_lib_var=yes"
  7177. else
  7178. echo "configure: failed program was:" >&5
  7179. cat conftest.$ac_ext >&5
  7180. rm -rf conftest*
  7181. eval "ac_cv_lib_$ac_lib_var=no"
  7182. fi
  7183. rm -f conftest*
  7184. LIBS="$ac_save_LIBS"
  7185. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7186. echo "$ac_t""yes" 1>&6
  7187. FFMPEGLIB="$FFMPEGLIB -lavformat "
  7188. else
  7189. echo "$ac_t""no" 1>&6
  7190. echo $ac_n "checking for avformat_alloc_context in -lavformat""... $ac_c" 1>&6
  7191. echo "configure:8939: checking for avformat_alloc_context in -lavformat" >&5
  7192. ac_lib_var=`echo avformat'_'avformat_alloc_context | sed 'y%./+-%__p_%'`
  7193. ac_save_LIBS="$LIBS"
  7194. LIBS="-lavformat $FFMPEGLIB $MATHLIB $LIBS"
  7195. cat > conftest.$ac_ext <<EOF
  7196. #line 8945 "configure"
  7197. #include "confdefs.h"
  7198. /* Override any gcc2 internal prototype to avoid an error. */
  7199. /* We use char because int might match the return type of a gcc2
  7200. builtin and then its argument prototype would still apply. */
  7201. char avformat_alloc_context();
  7202. int main() {
  7203. avformat_alloc_context()
  7204. ; return 0; }
  7205. EOF
  7206. if { (eval echo configure:8956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7207. rm -rf conftest*
  7208. eval "ac_cv_lib_$ac_lib_var=yes"
  7209. else
  7210. echo "configure: failed program was:" >&5
  7211. cat conftest.$ac_ext >&5
  7212. rm -rf conftest*
  7213. eval "ac_cv_lib_$ac_lib_var=no"
  7214. fi
  7215. rm -f conftest*
  7216. LIBS="$ac_save_LIBS"
  7217. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7218. echo "$ac_t""yes" 1>&6
  7219. FFMPEGLIB="$FFMPEGLIB -lavformat $MATHLIB"
  7220. else
  7221. echo "$ac_t""no" 1>&6
  7222. LDFLAGS=${ac_save_ldflags}
  7223. { echo "configure: error: *** Unable to locate FFMPEG library." 1>&2; exit 1; }
  7224. fi
  7225. fi
  7226. LDFLAGS=${ac_save_ldflags}
  7227. fi # $USE_FFMPEG
  7228. # Done checking FFMPEG
  7229. # Enable OpenGL option
  7230. OPENGLINC=
  7231. OPENGLLIB=
  7232. OPENGLULIB=
  7233. USE_OPENGL=
  7234. OPENGL_X11=
  7235. OPENGL_AQUA=
  7236. OPENGL_WINDOWS=
  7237. echo $ac_n "checking whether to use OpenGL""... $ac_c" 1>&6
  7238. echo "configure:9015: checking whether to use OpenGL" >&5
  7239. echo "$ac_t"""$with_opengl"" 1>&6
  7240. case "$with_opengl" in
  7241. n|no)
  7242. OPENGL_TYPE=none
  7243. ;;
  7244. y|yes|x|x11|glx)
  7245. OPENGL_TYPE=X11
  7246. USE_OPENGL=1
  7247. OPENGL_X11=1
  7248. ;;
  7249. aqua|mac|osx|macosx|agl)
  7250. OPENGL_TYPE=Aqua
  7251. USE_OPENGL=1
  7252. OPENGL_AQUA=1
  7253. ;;
  7254. win|windows|mswin|wgl)
  7255. OPENGL_TYPE=Windows
  7256. USE_OPENGL=1
  7257. OPENGL_WINDOWS=1
  7258. ;;
  7259. *)
  7260. { echo "configure: error: *** Valid arguments for --with-opengl= are yes,no,x11,aqua,windows." 1>&2; exit 1; }
  7261. ;;
  7262. esac
  7263. if test -n "$USE_OPENGL" ; then
  7264. if test "$OPENGL_X11" = 1 ; then
  7265. # With OpenGL includes directory
  7266. echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
  7267. echo "configure:9049: checking for location of OpenGL includes" >&5
  7268. case "$with_opengl_includes" in
  7269. y | ye | yes | n | no)
  7270. { echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
  7271. ;;
  7272. esac
  7273. echo "$ac_t""$with_opengl_includes" 1>&6
  7274. if test -n "$with_opengl_includes" ; then
  7275. for dir in $with_opengl_includes; do
  7276. if test -d "$dir"; then
  7277. OPENGLINC="$OPENGLINC -I$dir"
  7278. else
  7279. { echo "configure: error: *** OpenGL includes directory $dir does not exist." 1>&2; exit 1; }
  7280. fi
  7281. done
  7282. fi
  7283. ac_save_cppflags="$CPPFLAGS"
  7284. CPPFLAGS="$OPENGLINC $X_CFLAGS $CPPFLAGS"
  7285. for ac_hdr in GL/gl.h GL/glu.h
  7286. do
  7287. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7288. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7289. echo "configure:9075: checking for $ac_hdr" >&5
  7290. cat > conftest.$ac_ext <<EOF
  7291. #line 9078 "configure"
  7292. #include "confdefs.h"
  7293. #include <$ac_hdr>
  7294. EOF
  7295. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7296. { (eval echo configure:9083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7297. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7298. if test -z "$ac_err"; then
  7299. rm -rf conftest*
  7300. eval "ac_cv_header_$ac_safe=yes"
  7301. else
  7302. echo "$ac_err" >&5
  7303. echo "configure: failed program was:" >&5
  7304. cat conftest.$ac_ext >&5
  7305. rm -rf conftest*
  7306. eval "ac_cv_header_$ac_safe=no"
  7307. fi
  7308. rm -f conftest*
  7309. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7310. echo "$ac_t""yes" 1>&6
  7311. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7312. cat >> confdefs.h <<EOF
  7313. #define $ac_tr_hdr 1
  7314. EOF
  7315. else
  7316. echo "$ac_t""no" 1>&6
  7317. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  7318. fi
  7319. done
  7320. CPPFLAGS=$ac_save_cppflags
  7321. # With OpenGL library directory
  7322. echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
  7323. echo "configure:9117: checking for location of OpenGL library" >&5
  7324. case "$with_opengl_libs" in
  7325. y | ye | yes | n | no)
  7326. { echo "configure: error: *** You must supply a directory to --with-opengl-libs." 1>&2; exit 1; }
  7327. ;;
  7328. esac
  7329. echo "$ac_t""$with_opengl_libs" 1>&6
  7330. if test -n "$with_opengl_libs"; then
  7331. for dir in $with_opengl_libs; do
  7332. if test -d "$dir"; then
  7333. OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
  7334. else
  7335. { echo "configure: error: *** OpenGL library directory $dir does not exist." 1>&2; exit 1; }
  7336. fi
  7337. done
  7338. fi
  7339. ac_save_ldflags="$LDFLAGS"
  7340. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7341. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7342. echo "configure:9146: checking for glBegin in -lGL" >&5
  7343. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7344. ac_save_LIBS="$LIBS"
  7345. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
  7346. cat > conftest.$ac_ext <<EOF
  7347. #line 9152 "configure"
  7348. #include "confdefs.h"
  7349. /* Override any gcc2 internal prototype to avoid an error. */
  7350. /* We use char because int might match the return type of a gcc2
  7351. builtin and then its argument prototype would still apply. */
  7352. char glBegin();
  7353. int main() {
  7354. glBegin()
  7355. ; return 0; }
  7356. EOF
  7357. if { (eval echo configure:9163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7358. rm -rf conftest*
  7359. eval "ac_cv_lib_$ac_lib_var=yes"
  7360. else
  7361. echo "configure: failed program was:" >&5
  7362. cat conftest.$ac_ext >&5
  7363. rm -rf conftest*
  7364. eval "ac_cv_lib_$ac_lib_var=no"
  7365. fi
  7366. rm -f conftest*
  7367. LIBS="$ac_save_LIBS"
  7368. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7369. echo "$ac_t""yes" 1>&6
  7370. OPENGLLIB="$OPENGLLIB -lGL "
  7371. else
  7372. echo "$ac_t""no" 1>&6
  7373. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7374. echo "configure:9182: checking for glBegin in -lGL" >&5
  7375. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7376. ac_save_LIBS="$LIBS"
  7377. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lXext $LIBS"
  7378. cat > conftest.$ac_ext <<EOF
  7379. #line 9188 "configure"
  7380. #include "confdefs.h"
  7381. /* Override any gcc2 internal prototype to avoid an error. */
  7382. /* We use char because int might match the return type of a gcc2
  7383. builtin and then its argument prototype would still apply. */
  7384. char glBegin();
  7385. int main() {
  7386. glBegin()
  7387. ; return 0; }
  7388. EOF
  7389. if { (eval echo configure:9199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7390. rm -rf conftest*
  7391. eval "ac_cv_lib_$ac_lib_var=yes"
  7392. else
  7393. echo "configure: failed program was:" >&5
  7394. cat conftest.$ac_ext >&5
  7395. rm -rf conftest*
  7396. eval "ac_cv_lib_$ac_lib_var=no"
  7397. fi
  7398. rm -f conftest*
  7399. LIBS="$ac_save_LIBS"
  7400. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7401. echo "$ac_t""yes" 1>&6
  7402. OPENGLLIB="$OPENGLLIB -lGL -lXext"
  7403. else
  7404. echo "$ac_t""no" 1>&6
  7405. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7406. echo "configure:9218: checking for glBegin in -lGL" >&5
  7407. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7408. ac_save_LIBS="$LIBS"
  7409. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread $LIBS"
  7410. cat > conftest.$ac_ext <<EOF
  7411. #line 9224 "configure"
  7412. #include "confdefs.h"
  7413. /* Override any gcc2 internal prototype to avoid an error. */
  7414. /* We use char because int might match the return type of a gcc2
  7415. builtin and then its argument prototype would still apply. */
  7416. char glBegin();
  7417. int main() {
  7418. glBegin()
  7419. ; return 0; }
  7420. EOF
  7421. if { (eval echo configure:9235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7422. rm -rf conftest*
  7423. eval "ac_cv_lib_$ac_lib_var=yes"
  7424. else
  7425. echo "configure: failed program was:" >&5
  7426. cat conftest.$ac_ext >&5
  7427. rm -rf conftest*
  7428. eval "ac_cv_lib_$ac_lib_var=no"
  7429. fi
  7430. rm -f conftest*
  7431. LIBS="$ac_save_LIBS"
  7432. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7433. echo "$ac_t""yes" 1>&6
  7434. OPENGLLIB="$OPENGLLIB -lGL -lpthread"
  7435. else
  7436. echo "$ac_t""no" 1>&6
  7437. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7438. echo "configure:9254: checking for glBegin in -lGL" >&5
  7439. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7440. ac_save_LIBS="$LIBS"
  7441. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread -lXext $LIBS"
  7442. cat > conftest.$ac_ext <<EOF
  7443. #line 9260 "configure"
  7444. #include "confdefs.h"
  7445. /* Override any gcc2 internal prototype to avoid an error. */
  7446. /* We use char because int might match the return type of a gcc2
  7447. builtin and then its argument prototype would still apply. */
  7448. char glBegin();
  7449. int main() {
  7450. glBegin()
  7451. ; return 0; }
  7452. EOF
  7453. if { (eval echo configure:9271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7454. rm -rf conftest*
  7455. eval "ac_cv_lib_$ac_lib_var=yes"
  7456. else
  7457. echo "configure: failed program was:" >&5
  7458. cat conftest.$ac_ext >&5
  7459. rm -rf conftest*
  7460. eval "ac_cv_lib_$ac_lib_var=no"
  7461. fi
  7462. rm -f conftest*
  7463. LIBS="$ac_save_LIBS"
  7464. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7465. echo "$ac_t""yes" 1>&6
  7466. OPENGLLIB="$OPENGLLIB -lGL -lpthread -lXext"
  7467. else
  7468. echo "$ac_t""no" 1>&6
  7469. LDFLAGS=${ac_save_ldflags}
  7470. { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
  7471. fi
  7472. fi
  7473. fi
  7474. fi
  7475. LDFLAGS=${ac_save_ldflags}
  7476. ac_save_ldflags="$LDFLAGS"
  7477. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7478. echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
  7479. echo "configure:9333: checking for gluBeginCurve in -lGLU" >&5
  7480. ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
  7481. ac_save_LIBS="$LIBS"
  7482. LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
  7483. cat > conftest.$ac_ext <<EOF
  7484. #line 9339 "configure"
  7485. #include "confdefs.h"
  7486. /* Override any gcc2 internal prototype to avoid an error. */
  7487. /* We use char because int might match the return type of a gcc2
  7488. builtin and then its argument prototype would still apply. */
  7489. char gluBeginCurve();
  7490. int main() {
  7491. gluBeginCurve()
  7492. ; return 0; }
  7493. EOF
  7494. if { (eval echo configure:9350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7495. rm -rf conftest*
  7496. eval "ac_cv_lib_$ac_lib_var=yes"
  7497. else
  7498. echo "configure: failed program was:" >&5
  7499. cat conftest.$ac_ext >&5
  7500. rm -rf conftest*
  7501. eval "ac_cv_lib_$ac_lib_var=no"
  7502. fi
  7503. rm -f conftest*
  7504. LIBS="$ac_save_LIBS"
  7505. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7506. echo "$ac_t""yes" 1>&6
  7507. OPENGLULIB="$OPENGLULIB -lGLU "
  7508. else
  7509. echo "$ac_t""no" 1>&6
  7510. echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
  7511. echo "configure:9369: checking for gluBeginCurve in -lGLU" >&5
  7512. ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
  7513. ac_save_LIBS="$LIBS"
  7514. LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lstdc++ $LIBS"
  7515. cat > conftest.$ac_ext <<EOF
  7516. #line 9375 "configure"
  7517. #include "confdefs.h"
  7518. /* Override any gcc2 internal prototype to avoid an error. */
  7519. /* We use char because int might match the return type of a gcc2
  7520. builtin and then its argument prototype would still apply. */
  7521. char gluBeginCurve();
  7522. int main() {
  7523. gluBeginCurve()
  7524. ; return 0; }
  7525. EOF
  7526. if { (eval echo configure:9386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7527. rm -rf conftest*
  7528. eval "ac_cv_lib_$ac_lib_var=yes"
  7529. else
  7530. echo "configure: failed program was:" >&5
  7531. cat conftest.$ac_ext >&5
  7532. rm -rf conftest*
  7533. eval "ac_cv_lib_$ac_lib_var=no"
  7534. fi
  7535. rm -f conftest*
  7536. LIBS="$ac_save_LIBS"
  7537. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7538. echo "$ac_t""yes" 1>&6
  7539. OPENGLULIB="$OPENGLULIB -lGLU -lstdc++"
  7540. else
  7541. echo "$ac_t""no" 1>&6
  7542. LDFLAGS=${ac_save_ldflags}
  7543. { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
  7544. fi
  7545. fi
  7546. LDFLAGS=${ac_save_ldflags}
  7547. OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
  7548. OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
  7549. ac_save_libs="$LIBS"
  7550. ac_save_ldflags="$LDFLAGS"
  7551. LIBS=" $OPENGLLIB $LIBS"
  7552. LDFLAGS=" $LDFLAGS"
  7553. echo $ac_n "checking for glXCreatePbuffer""... $ac_c" 1>&6
  7554. echo "configure:9433: checking for glXCreatePbuffer" >&5
  7555. cat > conftest.$ac_ext <<EOF
  7556. #line 9436 "configure"
  7557. #include "confdefs.h"
  7558. /* System header to define __stub macros and hopefully few prototypes,
  7559. which can conflict with char glXCreatePbuffer(); below. */
  7560. #include <assert.h>
  7561. /* Override any gcc2 internal prototype to avoid an error. */
  7562. /* We use char because int might match the return type of a gcc2
  7563. builtin and then its argument prototype would still apply. */
  7564. char glXCreatePbuffer();
  7565. int main() {
  7566. /* The GNU C library defines this for functions which it implements
  7567. to always fail with ENOSYS. Some functions are actually named
  7568. something starting with __ and the normal name is an alias. */
  7569. #if defined (__stub_glXCreatePbuffer) || defined (__stub___glXCreatePbuffer)
  7570. choke me
  7571. #else
  7572. glXCreatePbuffer();
  7573. #endif
  7574. ; return 0; }
  7575. EOF
  7576. if { (eval echo configure:9459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7577. rm -rf conftest*
  7578. eval "ac_cv_func_glXCreatePbuffer=yes"
  7579. else
  7580. echo "configure: failed program was:" >&5
  7581. cat conftest.$ac_ext >&5
  7582. rm -rf conftest*
  7583. eval "ac_cv_func_glXCreatePbuffer=no"
  7584. fi
  7585. rm -f conftest*
  7586. if eval "test \"`echo '$ac_cv_func_'glXCreatePbuffer`\" = yes"; then
  7587. echo "$ac_t""yes" 1>&6
  7588. cat >> confdefs.h <<\EOF
  7589. #define HAVE_PBUFFERS 1
  7590. EOF
  7591. else
  7592. echo "$ac_t""no" 1>&6
  7593. { echo "configure: error: *** Unable to locate glXCreatePbuffer." 1>&2; exit 1; }
  7594. fi
  7595. LIBS=${ac_save_libs}
  7596. LDFLAGS=${ac_save_ldflags}
  7597. ac_save_libs="$LIBS"
  7598. ac_save_ldflags="$LDFLAGS"
  7599. LIBS=" $OPENGLLIB $LIBS"
  7600. LDFLAGS=" $LDFLAGS"
  7601. echo $ac_n "checking for glXCreateGLXPixmap""... $ac_c" 1>&6
  7602. echo "configure:9496: checking for glXCreateGLXPixmap" >&5
  7603. cat > conftest.$ac_ext <<EOF
  7604. #line 9499 "configure"
  7605. #include "confdefs.h"
  7606. /* System header to define __stub macros and hopefully few prototypes,
  7607. which can conflict with char glXCreateGLXPixmap(); below. */
  7608. #include <assert.h>
  7609. /* Override any gcc2 internal prototype to avoid an error. */
  7610. /* We use char because int might match the return type of a gcc2
  7611. builtin and then its argument prototype would still apply. */
  7612. char glXCreateGLXPixmap();
  7613. int main() {
  7614. /* The GNU C library defines this for functions which it implements
  7615. to always fail with ENOSYS. Some functions are actually named
  7616. something starting with __ and the normal name is an alias. */
  7617. #if defined (__stub_glXCreateGLXPixmap) || defined (__stub___glXCreateGLXPixmap)
  7618. choke me
  7619. #else
  7620. glXCreateGLXPixmap();
  7621. #endif
  7622. ; return 0; }
  7623. EOF
  7624. if { (eval echo configure:9522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7625. rm -rf conftest*
  7626. eval "ac_cv_func_glXCreateGLXPixmap=yes"
  7627. else
  7628. echo "configure: failed program was:" >&5
  7629. cat conftest.$ac_ext >&5
  7630. rm -rf conftest*
  7631. eval "ac_cv_func_glXCreateGLXPixmap=no"
  7632. fi
  7633. rm -f conftest*
  7634. if eval "test \"`echo '$ac_cv_func_'glXCreateGLXPixmap`\" = yes"; then
  7635. echo "$ac_t""yes" 1>&6
  7636. cat >> confdefs.h <<\EOF
  7637. #define HAVE_PIXMAPS 1
  7638. EOF
  7639. else
  7640. echo "$ac_t""no" 1>&6
  7641. { echo "configure: error: *** Unable to locate glXCreateGLXPixmap." 1>&2; exit 1; }
  7642. fi
  7643. LIBS=${ac_save_libs}
  7644. LDFLAGS=${ac_save_ldflags}
  7645. cat >> confdefs.h <<\EOF
  7646. #define OPENGL_X11 1
  7647. EOF
  7648. fi # $OPENGL_X11
  7649. if test "$OPENGL_AQUA" = 1 ; then
  7650. echo $ac_n "checking for location of OpenGL framework""... $ac_c" 1>&6
  7651. echo "configure:9565: checking for location of OpenGL framework" >&5
  7652. case "$with_opengl_framework" in
  7653. y | ye | yes | n | no)
  7654. { echo "configure: error: *** You must supply a directory to --with-opengl-framework." 1>&2; exit 1; }
  7655. ;;
  7656. esac
  7657. echo "$ac_t""$with_opengl_framework" 1>&6
  7658. if test -n "$with_opengl_framework"; then
  7659. if test -d $with_opengl_framework; then
  7660. OPENGLPATH="$OPENGLPATH -F$with_opengl_framework"
  7661. else
  7662. { echo "configure: error: *** OpenGL framework directory $dir does not exist." 1>&2; exit 1; }
  7663. fi
  7664. fi
  7665. ac_save_cppflags="$CPPFLAGS"
  7666. CPPFLAGS="$OPENGLPATH $CPPFLAGS"
  7667. for ac_hdr in OpenGL/gl.h OpenGL/glu.h
  7668. do
  7669. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7670. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7671. echo "configure:9589: checking for $ac_hdr" >&5
  7672. cat > conftest.$ac_ext <<EOF
  7673. #line 9592 "configure"
  7674. #include "confdefs.h"
  7675. #include <$ac_hdr>
  7676. EOF
  7677. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7678. { (eval echo configure:9597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7679. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7680. if test -z "$ac_err"; then
  7681. rm -rf conftest*
  7682. eval "ac_cv_header_$ac_safe=yes"
  7683. else
  7684. echo "$ac_err" >&5
  7685. echo "configure: failed program was:" >&5
  7686. cat conftest.$ac_ext >&5
  7687. rm -rf conftest*
  7688. eval "ac_cv_header_$ac_safe=no"
  7689. fi
  7690. rm -f conftest*
  7691. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7692. echo "$ac_t""yes" 1>&6
  7693. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7694. cat >> confdefs.h <<EOF
  7695. #define $ac_tr_hdr 1
  7696. EOF
  7697. else
  7698. echo "$ac_t""no" 1>&6
  7699. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  7700. fi
  7701. done
  7702. CPPFLAGS=$ac_save_cppflags
  7703. ac_save_libs="$LIBS"
  7704. ac_save_ldflags="$LDFLAGS"
  7705. LIBS="-framework OpenGL -framework AGL -framework ApplicationServices $LIBS"
  7706. LDFLAGS="$OPENGLPATH $LDFLAGS"
  7707. echo $ac_n "checking for glBegin""... $ac_c" 1>&6
  7708. echo "configure:9633: checking for glBegin" >&5
  7709. cat > conftest.$ac_ext <<EOF
  7710. #line 9636 "configure"
  7711. #include "confdefs.h"
  7712. /* System header to define __stub macros and hopefully few prototypes,
  7713. which can conflict with char glBegin(); below. */
  7714. #include <assert.h>
  7715. /* Override any gcc2 internal prototype to avoid an error. */
  7716. /* We use char because int might match the return type of a gcc2
  7717. builtin and then its argument prototype would still apply. */
  7718. char glBegin();
  7719. int main() {
  7720. /* The GNU C library defines this for functions which it implements
  7721. to always fail with ENOSYS. Some functions are actually named
  7722. something starting with __ and the normal name is an alias. */
  7723. #if defined (__stub_glBegin) || defined (__stub___glBegin)
  7724. choke me
  7725. #else
  7726. glBegin();
  7727. #endif
  7728. ; return 0; }
  7729. EOF
  7730. if { (eval echo configure:9659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7731. rm -rf conftest*
  7732. eval "ac_cv_func_glBegin=yes"
  7733. else
  7734. echo "configure: failed program was:" >&5
  7735. cat conftest.$ac_ext >&5
  7736. rm -rf conftest*
  7737. eval "ac_cv_func_glBegin=no"
  7738. fi
  7739. rm -f conftest*
  7740. if eval "test \"`echo '$ac_cv_func_'glBegin`\" = yes"; then
  7741. echo "$ac_t""yes" 1>&6
  7742. OPENGLLIB="$OPENGLLIB -framework OpenGL -framework AGL -framework ApplicationServices"
  7743. else
  7744. echo "$ac_t""no" 1>&6
  7745. { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
  7746. fi
  7747. LIBS=${ac_save_libs}
  7748. LDFLAGS=${ac_save_ldflags}
  7749. ac_save_libs="$LIBS"
  7750. ac_save_ldflags="$LDFLAGS"
  7751. LIBS=" $OPENGLLIB $LIBS"
  7752. LDFLAGS="$OPENGLPATH $LDFLAGS"
  7753. echo $ac_n "checking for gluBeginCurve""... $ac_c" 1>&6
  7754. echo "configure:9696: checking for gluBeginCurve" >&5
  7755. cat > conftest.$ac_ext <<EOF
  7756. #line 9699 "configure"
  7757. #include "confdefs.h"
  7758. /* System header to define __stub macros and hopefully few prototypes,
  7759. which can conflict with char gluBeginCurve(); below. */
  7760. #include <assert.h>
  7761. /* Override any gcc2 internal prototype to avoid an error. */
  7762. /* We use char because int might match the return type of a gcc2
  7763. builtin and then its argument prototype would still apply. */
  7764. char gluBeginCurve();
  7765. int main() {
  7766. /* The GNU C library defines this for functions which it implements
  7767. to always fail with ENOSYS. Some functions are actually named
  7768. something starting with __ and the normal name is an alias. */
  7769. #if defined (__stub_gluBeginCurve) || defined (__stub___gluBeginCurve)
  7770. choke me
  7771. #else
  7772. gluBeginCurve();
  7773. #endif
  7774. ; return 0; }
  7775. EOF
  7776. if { (eval echo configure:9722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7777. rm -rf conftest*
  7778. eval "ac_cv_func_gluBeginCurve=yes"
  7779. else
  7780. echo "configure: failed program was:" >&5
  7781. cat conftest.$ac_ext >&5
  7782. rm -rf conftest*
  7783. eval "ac_cv_func_gluBeginCurve=no"
  7784. fi
  7785. rm -f conftest*
  7786. if eval "test \"`echo '$ac_cv_func_'gluBeginCurve`\" = yes"; then
  7787. echo "$ac_t""yes" 1>&6
  7788. OPENGLLIB="$OPENGLLIB "
  7789. else
  7790. echo "$ac_t""no" 1>&6
  7791. { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
  7792. fi
  7793. LIBS=${ac_save_libs}
  7794. LDFLAGS=${ac_save_ldflags}
  7795. OPENGLINC="$OPENGLPATH"
  7796. OPENGLLIBPATH="$OPENGLPATH"
  7797. cat >> confdefs.h <<\EOF
  7798. #define OPENGL_AQUA 1
  7799. EOF
  7800. fi # $OPENGL_AQUA
  7801. if test "$OPENGL_WINDOWS" = 1 ; then
  7802. # With OpenGL includes directory
  7803. echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
  7804. echo "configure:9770: checking for location of OpenGL includes" >&5
  7805. case "$with_opengl_includes" in
  7806. y | ye | yes | n | no)
  7807. { echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
  7808. ;;
  7809. esac
  7810. echo "$ac_t""$with_opengl_includes" 1>&6
  7811. if test -n "$with_opengl_includes" ; then
  7812. for dir in $with_opengl_includes; do
  7813. if test -d "$dir"; then
  7814. OPENGLINC="$OPENGLINC -I$dir"
  7815. else
  7816. { echo "configure: error: *** OpenGL includes directory $dir does not exist." 1>&2; exit 1; }
  7817. fi
  7818. done
  7819. fi
  7820. ac_save_cppflags="$CPPFLAGS"
  7821. CPPFLAGS="$OPENGLINC $CPPFLAGS"
  7822. for ac_hdr in GL/gl.h GL/glu.h
  7823. do
  7824. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7825. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7826. echo "configure:9796: checking for $ac_hdr" >&5
  7827. cat > conftest.$ac_ext <<EOF
  7828. #line 9799 "configure"
  7829. #include "confdefs.h"
  7830. #include <$ac_hdr>
  7831. EOF
  7832. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7833. { (eval echo configure:9804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7834. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7835. if test -z "$ac_err"; then
  7836. rm -rf conftest*
  7837. eval "ac_cv_header_$ac_safe=yes"
  7838. else
  7839. echo "$ac_err" >&5
  7840. echo "configure: failed program was:" >&5
  7841. cat conftest.$ac_ext >&5
  7842. rm -rf conftest*
  7843. eval "ac_cv_header_$ac_safe=no"
  7844. fi
  7845. rm -f conftest*
  7846. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7847. echo "$ac_t""yes" 1>&6
  7848. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7849. cat >> confdefs.h <<EOF
  7850. #define $ac_tr_hdr 1
  7851. EOF
  7852. else
  7853. echo "$ac_t""no" 1>&6
  7854. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  7855. fi
  7856. done
  7857. CPPFLAGS=$ac_save_cppflags
  7858. # With OpenGL library directory
  7859. echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
  7860. echo "configure:9838: checking for location of OpenGL library" >&5
  7861. case "$with_opengl_libs" in
  7862. y | ye | yes | n | no)
  7863. { echo "configure: error: *** You must supply a directory to --with-opengl-libs." 1>&2; exit 1; }
  7864. ;;
  7865. esac
  7866. echo "$ac_t""$with_opengl_libs" 1>&6
  7867. if test -n "$with_opengl_libs"; then
  7868. for dir in $with_opengl_libs; do
  7869. if test -d "$dir"; then
  7870. OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
  7871. else
  7872. { echo "configure: error: *** OpenGL library directory $dir does not exist." 1>&2; exit 1; }
  7873. fi
  7874. done
  7875. fi
  7876. ac_save_cflags="$CFLAGS"
  7877. CFLAGS="$CFLAGS $OPENGLINC"
  7878. ac_save_ldflags="$LDFLAGS"
  7879. ac_save_libs="$LIBS"
  7880. echo $ac_n "checking for OpenGL library""... $ac_c" 1>&6
  7881. echo "configure:9863: checking for OpenGL library" >&5
  7882. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7883. LIBS="-lopengl32 "
  7884. cat > conftest.$ac_ext <<EOF
  7885. #line 9867 "configure"
  7886. #include "confdefs.h"
  7887. #include <GL/gl.h>
  7888. int main() {
  7889. glEnd();
  7890. ; return 0; }
  7891. EOF
  7892. if { (eval echo configure:9874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7893. rm -rf conftest*
  7894. echo "$ac_t""found" 1>&6
  7895. OPENGLLIB="$OPENGLLIB -lopengl32 "
  7896. else
  7897. echo "configure: failed program was:" >&5
  7898. cat conftest.$ac_ext >&5
  7899. rm -rf conftest*
  7900. { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
  7901. fi
  7902. rm -f conftest*
  7903. LIBS=${ac_save_libs}
  7904. LDFLAGS=${ac_save_ldflags}
  7905. ac_save_ldflags="$LDFLAGS"
  7906. ac_save_libs="$LIBS"
  7907. echo $ac_n "checking for GLU library""... $ac_c" 1>&6
  7908. echo "configure:9898: checking for GLU library" >&5
  7909. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7910. LIBS="-lglu32 $OPENGLLIB "
  7911. cat > conftest.$ac_ext <<EOF
  7912. #line 9902 "configure"
  7913. #include "confdefs.h"
  7914. #include <GL/glu.h>
  7915. int main() {
  7916. gluNewQuadric();
  7917. ; return 0; }
  7918. EOF
  7919. if { (eval echo configure:9909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7920. rm -rf conftest*
  7921. echo "$ac_t""found" 1>&6
  7922. OPENGLULIB="$OPENGLULIB -lglu32 "
  7923. else
  7924. echo "configure: failed program was:" >&5
  7925. cat conftest.$ac_ext >&5
  7926. rm -rf conftest*
  7927. { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
  7928. fi
  7929. rm -f conftest*
  7930. LIBS=${ac_save_libs}
  7931. LDFLAGS=${ac_save_ldflags}
  7932. CFLAGS="${ac_save_cflags}"
  7933. OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
  7934. OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
  7935. cat >> confdefs.h <<\EOF
  7936. #define OPENGL_WINDOWS 1
  7937. EOF
  7938. fi # $OPENGL_WINDOWS
  7939. fi # $USE_OPENGL
  7940. # Done checking OpenGL
  7941. # Enable ODBC option
  7942. echo $ac_n "checking whether to use ODBC""... $ac_c" 1>&6
  7943. echo "configure:9958: checking whether to use ODBC" >&5
  7944. echo "$ac_t"""$with_odbc"" 1>&6
  7945. case "$with_odbc" in
  7946. "no") USE_ODBC= ;;
  7947. "yes") USE_ODBC="1" ;;
  7948. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  7949. esac
  7950. ODBCINC=
  7951. ODBCLIB=
  7952. if test -n "$USE_ODBC"; then
  7953. # With ODBC includes directory
  7954. echo $ac_n "checking for location of ODBC includes""... $ac_c" 1>&6
  7955. echo "configure:9977: checking for location of ODBC includes" >&5
  7956. case "$with_odbc_includes" in
  7957. y | ye | yes | n | no)
  7958. { echo "configure: error: *** You must supply a directory to --with-odbc-includes." 1>&2; exit 1; }
  7959. ;;
  7960. esac
  7961. echo "$ac_t""$with_odbc_includes" 1>&6
  7962. if test -n "$with_odbc_includes" ; then
  7963. for dir in $with_odbc_includes; do
  7964. if test -d "$dir"; then
  7965. ODBCINC="$ODBCINC -I$dir"
  7966. else
  7967. { echo "configure: error: *** ODBC includes directory $dir does not exist." 1>&2; exit 1; }
  7968. fi
  7969. done
  7970. fi
  7971. ac_save_cppflags="$CPPFLAGS"
  7972. CPPFLAGS="$ODBCINC $CPPFLAGS"
  7973. for ac_hdr in sql.h
  7974. do
  7975. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7976. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7977. echo "configure:10003: checking for $ac_hdr" >&5
  7978. cat > conftest.$ac_ext <<EOF
  7979. #line 10006 "configure"
  7980. #include "confdefs.h"
  7981. #include <$ac_hdr>
  7982. EOF
  7983. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7984. { (eval echo configure:10011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7985. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7986. if test -z "$ac_err"; then
  7987. rm -rf conftest*
  7988. eval "ac_cv_header_$ac_safe=yes"
  7989. else
  7990. echo "$ac_err" >&5
  7991. echo "configure: failed program was:" >&5
  7992. cat conftest.$ac_ext >&5
  7993. rm -rf conftest*
  7994. eval "ac_cv_header_$ac_safe=no"
  7995. fi
  7996. rm -f conftest*
  7997. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7998. echo "$ac_t""yes" 1>&6
  7999. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8000. cat >> confdefs.h <<EOF
  8001. #define $ac_tr_hdr 1
  8002. EOF
  8003. else
  8004. echo "$ac_t""no" 1>&6
  8005. { echo "configure: error: *** Unable to locate ODBC includes." 1>&2; exit 1; }
  8006. fi
  8007. done
  8008. CPPFLAGS=$ac_save_cppflags
  8009. # With ODBC library directory
  8010. echo $ac_n "checking for location of ODBC library""... $ac_c" 1>&6
  8011. echo "configure:10045: checking for location of ODBC library" >&5
  8012. case "$with_odbc_libs" in
  8013. y | ye | yes | n | no)
  8014. { echo "configure: error: *** You must supply a directory to --with-odbc-libs." 1>&2; exit 1; }
  8015. ;;
  8016. esac
  8017. echo "$ac_t""$with_odbc_libs" 1>&6
  8018. if test -n "$with_odbc_libs"; then
  8019. for dir in $with_odbc_libs; do
  8020. if test -d "$dir"; then
  8021. ODBCLIB="$ODBCLIB -L$dir"
  8022. else
  8023. { echo "configure: error: *** ODBC library directory $dir does not exist." 1>&2; exit 1; }
  8024. fi
  8025. done
  8026. fi
  8027. ac_save_ldflags="$LDFLAGS"
  8028. LDFLAGS="$ODBCLIB $LDFLAGS"
  8029. echo $ac_n "checking for SQLConnect in -lodbc""... $ac_c" 1>&6
  8030. echo "configure:10070: checking for SQLConnect in -lodbc" >&5
  8031. ac_lib_var=`echo odbc'_'SQLConnect | sed 'y%./+-%__p_%'`
  8032. ac_save_LIBS="$LIBS"
  8033. LIBS="-lodbc $ICONVLIB $LIBS"
  8034. cat > conftest.$ac_ext <<EOF
  8035. #line 10076 "configure"
  8036. #include "confdefs.h"
  8037. /* Override any gcc2 internal prototype to avoid an error. */
  8038. /* We use char because int might match the return type of a gcc2
  8039. builtin and then its argument prototype would still apply. */
  8040. char SQLConnect();
  8041. int main() {
  8042. SQLConnect()
  8043. ; return 0; }
  8044. EOF
  8045. if { (eval echo configure:10087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8046. rm -rf conftest*
  8047. eval "ac_cv_lib_$ac_lib_var=yes"
  8048. else
  8049. echo "configure: failed program was:" >&5
  8050. cat conftest.$ac_ext >&5
  8051. rm -rf conftest*
  8052. eval "ac_cv_lib_$ac_lib_var=no"
  8053. fi
  8054. rm -f conftest*
  8055. LIBS="$ac_save_LIBS"
  8056. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8057. echo "$ac_t""yes" 1>&6
  8058. ODBCLIB="$ODBCLIB -lodbc "
  8059. else
  8060. echo "$ac_t""no" 1>&6
  8061. LDFLAGS=${ac_save_ldflags}
  8062. ac_save_ldflags="$LDFLAGS"
  8063. LDFLAGS="$ODBCLIB $LDFLAGS"
  8064. echo $ac_n "checking for SQLConnect in -liodbc""... $ac_c" 1>&6
  8065. echo "configure:10112: checking for SQLConnect in -liodbc" >&5
  8066. ac_lib_var=`echo iodbc'_'SQLConnect | sed 'y%./+-%__p_%'`
  8067. ac_save_LIBS="$LIBS"
  8068. LIBS="-liodbc $LIBS"
  8069. cat > conftest.$ac_ext <<EOF
  8070. #line 10118 "configure"
  8071. #include "confdefs.h"
  8072. /* Override any gcc2 internal prototype to avoid an error. */
  8073. /* We use char because int might match the return type of a gcc2
  8074. builtin and then its argument prototype would still apply. */
  8075. char SQLConnect();
  8076. int main() {
  8077. SQLConnect()
  8078. ; return 0; }
  8079. EOF
  8080. if { (eval echo configure:10129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8081. rm -rf conftest*
  8082. eval "ac_cv_lib_$ac_lib_var=yes"
  8083. else
  8084. echo "configure: failed program was:" >&5
  8085. cat conftest.$ac_ext >&5
  8086. rm -rf conftest*
  8087. eval "ac_cv_lib_$ac_lib_var=no"
  8088. fi
  8089. rm -f conftest*
  8090. LIBS="$ac_save_LIBS"
  8091. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8092. echo "$ac_t""yes" 1>&6
  8093. ODBCLIB="$ODBCLIB -liodbc "
  8094. else
  8095. echo "$ac_t""no" 1>&6
  8096. LDFLAGS=${ac_save_ldflags}
  8097. ac_save_cflags="$CFLAGS"
  8098. CFLAGS="$CFLAGS $ODBCINC"
  8099. ac_save_ldflags="$LDFLAGS"
  8100. ac_save_libs="$LIBS"
  8101. echo $ac_n "checking for ODBC library""... $ac_c" 1>&6
  8102. echo "configure:10154: checking for ODBC library" >&5
  8103. LDFLAGS="$ODBCLIB $LDFLAGS"
  8104. LIBS="-lodbc32 "
  8105. cat > conftest.$ac_ext <<EOF
  8106. #line 10158 "configure"
  8107. #include "confdefs.h"
  8108. #include <windows.h>
  8109. #include <sql.h>
  8110. int main() {
  8111. SQLAllocEnv((SQLHENV *)0);
  8112. ; return 0; }
  8113. EOF
  8114. if { (eval echo configure:10166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8115. rm -rf conftest*
  8116. echo "$ac_t""found" 1>&6
  8117. ODBCLIB="$ODBCLIB -lodbc32 "
  8118. else
  8119. echo "configure: failed program was:" >&5
  8120. cat conftest.$ac_ext >&5
  8121. rm -rf conftest*
  8122. { echo "configure: error: *** Unable to locate ODBC library." 1>&2; exit 1; }
  8123. fi
  8124. rm -f conftest*
  8125. LIBS=${ac_save_libs}
  8126. LDFLAGS=${ac_save_ldflags}
  8127. CFLAGS="${ac_save_cflags}"
  8128. fi
  8129. LDFLAGS=${ac_save_ldflags}
  8130. fi
  8131. LDFLAGS=${ac_save_ldflags}
  8132. fi # $USE_ODBC
  8133. # Done checking ODBC
  8134. # Enable FFTW option
  8135. echo $ac_n "checking whether to use FFTW""... $ac_c" 1>&6
  8136. echo "configure:10215: checking whether to use FFTW" >&5
  8137. echo "$ac_t"""$with_fftw"" 1>&6
  8138. case "$with_fftw" in
  8139. "no") USE_FFTW= ;;
  8140. "yes") USE_FFTW="1" ;;
  8141. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8142. esac
  8143. FFTWINC=
  8144. FFTWLIB=
  8145. if test -n "$USE_FFTW"; then
  8146. # With FFTW includes directory
  8147. echo $ac_n "checking for location of FFTW includes""... $ac_c" 1>&6
  8148. echo "configure:10234: checking for location of FFTW includes" >&5
  8149. case "$with_fftw_includes" in
  8150. y | ye | yes | n | no)
  8151. { echo "configure: error: *** You must supply a directory to --with-fftw-includes." 1>&2; exit 1; }
  8152. ;;
  8153. esac
  8154. echo "$ac_t""$with_fftw_includes" 1>&6
  8155. if test -n "$with_fftw_includes" ; then
  8156. for dir in $with_fftw_includes; do
  8157. if test -d "$dir"; then
  8158. FFTWINC="$FFTWINC -I$dir"
  8159. else
  8160. { echo "configure: error: *** FFTW includes directory $dir does not exist." 1>&2; exit 1; }
  8161. fi
  8162. done
  8163. fi
  8164. ac_save_cppflags="$CPPFLAGS"
  8165. CPPFLAGS="$FFTWINC $CPPFLAGS"
  8166. for ac_hdr in fftw3.h
  8167. do
  8168. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8169. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8170. echo "configure:10260: checking for $ac_hdr" >&5
  8171. cat > conftest.$ac_ext <<EOF
  8172. #line 10263 "configure"
  8173. #include "confdefs.h"
  8174. #include <$ac_hdr>
  8175. EOF
  8176. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8177. { (eval echo configure:10268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8178. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8179. if test -z "$ac_err"; then
  8180. rm -rf conftest*
  8181. eval "ac_cv_header_$ac_safe=yes"
  8182. else
  8183. echo "$ac_err" >&5
  8184. echo "configure: failed program was:" >&5
  8185. cat conftest.$ac_ext >&5
  8186. rm -rf conftest*
  8187. eval "ac_cv_header_$ac_safe=no"
  8188. fi
  8189. rm -f conftest*
  8190. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8191. echo "$ac_t""yes" 1>&6
  8192. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8193. cat >> confdefs.h <<EOF
  8194. #define $ac_tr_hdr 1
  8195. EOF
  8196. else
  8197. echo "$ac_t""no" 1>&6
  8198. ac_save_cppflags="$CPPFLAGS"
  8199. CPPFLAGS=" $CPPFLAGS"
  8200. for ac_hdr in fftw.h
  8201. do
  8202. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8203. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8204. echo "configure:10296: checking for $ac_hdr" >&5
  8205. cat > conftest.$ac_ext <<EOF
  8206. #line 10299 "configure"
  8207. #include "confdefs.h"
  8208. #include <$ac_hdr>
  8209. EOF
  8210. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8211. { (eval echo configure:10304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8212. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8213. if test -z "$ac_err"; then
  8214. rm -rf conftest*
  8215. eval "ac_cv_header_$ac_safe=yes"
  8216. else
  8217. echo "$ac_err" >&5
  8218. echo "configure: failed program was:" >&5
  8219. cat conftest.$ac_ext >&5
  8220. rm -rf conftest*
  8221. eval "ac_cv_header_$ac_safe=no"
  8222. fi
  8223. rm -f conftest*
  8224. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8225. echo "$ac_t""yes" 1>&6
  8226. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8227. cat >> confdefs.h <<EOF
  8228. #define $ac_tr_hdr 1
  8229. EOF
  8230. else
  8231. echo "$ac_t""no" 1>&6
  8232. ac_save_cppflags="$CPPFLAGS"
  8233. CPPFLAGS=" $CPPFLAGS"
  8234. for ac_hdr in dfftw.h
  8235. do
  8236. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8237. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8238. echo "configure:10332: checking for $ac_hdr" >&5
  8239. cat > conftest.$ac_ext <<EOF
  8240. #line 10335 "configure"
  8241. #include "confdefs.h"
  8242. #include <$ac_hdr>
  8243. EOF
  8244. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8245. { (eval echo configure:10340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8246. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8247. if test -z "$ac_err"; then
  8248. rm -rf conftest*
  8249. eval "ac_cv_header_$ac_safe=yes"
  8250. else
  8251. echo "$ac_err" >&5
  8252. echo "configure: failed program was:" >&5
  8253. cat conftest.$ac_ext >&5
  8254. rm -rf conftest*
  8255. eval "ac_cv_header_$ac_safe=no"
  8256. fi
  8257. rm -f conftest*
  8258. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8259. echo "$ac_t""yes" 1>&6
  8260. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8261. cat >> confdefs.h <<EOF
  8262. #define $ac_tr_hdr 1
  8263. EOF
  8264. else
  8265. echo "$ac_t""no" 1>&6
  8266. { echo "configure: error: *** Unable to locate FFTW includes." 1>&2; exit 1; }
  8267. fi
  8268. done
  8269. CPPFLAGS=$ac_save_cppflags
  8270. fi
  8271. done
  8272. CPPFLAGS=$ac_save_cppflags
  8273. fi
  8274. done
  8275. CPPFLAGS=$ac_save_cppflags
  8276. # With FFTW library directory
  8277. echo $ac_n "checking for location of FFTW library""... $ac_c" 1>&6
  8278. echo "configure:10386: checking for location of FFTW library" >&5
  8279. case "$with_fftw_libs" in
  8280. y | ye | yes | n | no)
  8281. { echo "configure: error: *** You must supply a directory to --with-fftw-libs." 1>&2; exit 1; }
  8282. ;;
  8283. esac
  8284. echo "$ac_t""$with_fftw_libs" 1>&6
  8285. if test -n "$with_fftw_libs"; then
  8286. for dir in $with_fftw_libs; do
  8287. if test -d "$dir"; then
  8288. FFTWLIB="$FFTWLIB -L$dir"
  8289. else
  8290. { echo "configure: error: *** FFTW library directory $dir does not exist." 1>&2; exit 1; }
  8291. fi
  8292. done
  8293. fi
  8294. ac_save_ldflags="$LDFLAGS"
  8295. LDFLAGS="$FFTWLIB $LDFLAGS"
  8296. echo $ac_n "checking for fftw_execute in -lfftw3""... $ac_c" 1>&6
  8297. echo "configure:10411: checking for fftw_execute in -lfftw3" >&5
  8298. ac_lib_var=`echo fftw3'_'fftw_execute | sed 'y%./+-%__p_%'`
  8299. ac_save_LIBS="$LIBS"
  8300. LIBS="-lfftw3 $MATHLIB $LIBS"
  8301. cat > conftest.$ac_ext <<EOF
  8302. #line 10417 "configure"
  8303. #include "confdefs.h"
  8304. /* Override any gcc2 internal prototype to avoid an error. */
  8305. /* We use char because int might match the return type of a gcc2
  8306. builtin and then its argument prototype would still apply. */
  8307. char fftw_execute();
  8308. int main() {
  8309. fftw_execute()
  8310. ; return 0; }
  8311. EOF
  8312. if { (eval echo configure:10428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8313. rm -rf conftest*
  8314. eval "ac_cv_lib_$ac_lib_var=yes"
  8315. else
  8316. echo "configure: failed program was:" >&5
  8317. cat conftest.$ac_ext >&5
  8318. rm -rf conftest*
  8319. eval "ac_cv_lib_$ac_lib_var=no"
  8320. fi
  8321. rm -f conftest*
  8322. LIBS="$ac_save_LIBS"
  8323. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8324. echo "$ac_t""yes" 1>&6
  8325. FFTWLIB="$FFTWLIB -lfftw3 $MATHLIB"
  8326. else
  8327. echo "$ac_t""no" 1>&6
  8328. LDFLAGS=${ac_save_ldflags}
  8329. ac_save_ldflags="$LDFLAGS"
  8330. LDFLAGS="$FFTWLIB $LDFLAGS"
  8331. echo $ac_n "checking for fftwnd_one in -lfftw""... $ac_c" 1>&6
  8332. echo "configure:10453: checking for fftwnd_one in -lfftw" >&5
  8333. ac_lib_var=`echo fftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
  8334. ac_save_LIBS="$LIBS"
  8335. LIBS="-lfftw $MATHLIB $LIBS"
  8336. cat > conftest.$ac_ext <<EOF
  8337. #line 10459 "configure"
  8338. #include "confdefs.h"
  8339. /* Override any gcc2 internal prototype to avoid an error. */
  8340. /* We use char because int might match the return type of a gcc2
  8341. builtin and then its argument prototype would still apply. */
  8342. char fftwnd_one();
  8343. int main() {
  8344. fftwnd_one()
  8345. ; return 0; }
  8346. EOF
  8347. if { (eval echo configure:10470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8348. rm -rf conftest*
  8349. eval "ac_cv_lib_$ac_lib_var=yes"
  8350. else
  8351. echo "configure: failed program was:" >&5
  8352. cat conftest.$ac_ext >&5
  8353. rm -rf conftest*
  8354. eval "ac_cv_lib_$ac_lib_var=no"
  8355. fi
  8356. rm -f conftest*
  8357. LIBS="$ac_save_LIBS"
  8358. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8359. echo "$ac_t""yes" 1>&6
  8360. FFTWLIB="$FFTWLIB -lfftw $MATHLIB"
  8361. else
  8362. echo "$ac_t""no" 1>&6
  8363. LDFLAGS=${ac_save_ldflags}
  8364. ac_save_ldflags="$LDFLAGS"
  8365. LDFLAGS="$FFTWLIB $LDFLAGS"
  8366. echo $ac_n "checking for fftwnd_one in -ldfftw""... $ac_c" 1>&6
  8367. echo "configure:10495: checking for fftwnd_one in -ldfftw" >&5
  8368. ac_lib_var=`echo dfftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
  8369. ac_save_LIBS="$LIBS"
  8370. LIBS="-ldfftw $MATHLIB $LIBS"
  8371. cat > conftest.$ac_ext <<EOF
  8372. #line 10501 "configure"
  8373. #include "confdefs.h"
  8374. /* Override any gcc2 internal prototype to avoid an error. */
  8375. /* We use char because int might match the return type of a gcc2
  8376. builtin and then its argument prototype would still apply. */
  8377. char fftwnd_one();
  8378. int main() {
  8379. fftwnd_one()
  8380. ; return 0; }
  8381. EOF
  8382. if { (eval echo configure:10512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8383. rm -rf conftest*
  8384. eval "ac_cv_lib_$ac_lib_var=yes"
  8385. else
  8386. echo "configure: failed program was:" >&5
  8387. cat conftest.$ac_ext >&5
  8388. rm -rf conftest*
  8389. eval "ac_cv_lib_$ac_lib_var=no"
  8390. fi
  8391. rm -f conftest*
  8392. LIBS="$ac_save_LIBS"
  8393. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8394. echo "$ac_t""yes" 1>&6
  8395. FFTWLIB="$FFTWLIB -ldfftw $MATHLIB"
  8396. else
  8397. echo "$ac_t""no" 1>&6
  8398. LDFLAGS=${ac_save_ldflags}
  8399. { echo "configure: error: *** Unable to locate FFTW library." 1>&2; exit 1; }
  8400. fi
  8401. LDFLAGS=${ac_save_ldflags}
  8402. fi
  8403. LDFLAGS=${ac_save_ldflags}
  8404. fi
  8405. LDFLAGS=${ac_save_ldflags}
  8406. fi # $USE_FFTW
  8407. # Done checking FFTW
  8408. # Enable BLAS option
  8409. echo $ac_n "checking whether to use BLAS""... $ac_c" 1>&6
  8410. echo "configure:10569: checking whether to use BLAS" >&5
  8411. echo "$ac_t"""$with_blas"" 1>&6
  8412. case "$with_blas" in
  8413. "no") USE_BLAS= ;;
  8414. "yes") USE_BLAS="1" ;;
  8415. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8416. esac
  8417. BLASLIB=
  8418. BLASINC=
  8419. if test -n "$USE_BLAS"; then
  8420. # With BLAS includes directory
  8421. # BLAS doesn't have includes (FORTRAN library)
  8422. # With BLAS library directory
  8423. echo $ac_n "checking for location of BLAS includes""... $ac_c" 1>&6
  8424. echo "configure:10590: checking for location of BLAS includes" >&5
  8425. case "$with_blas_includes" in
  8426. y | ye | yes | n | no)
  8427. { echo "configure: error: *** You must supply a directory to --with-blas-includes." 1>&2; exit 1; }
  8428. ;;
  8429. esac
  8430. echo "$ac_t""$with_blas_includes" 1>&6
  8431. if test -n "$with_blas_includes" ; then
  8432. for dir in $with_blas_includes; do
  8433. if test -d "$dir"; then
  8434. BLASINC="$BLASINC -I$dir"
  8435. else
  8436. { echo "configure: error: *** BLAS includes directory $dir does not exist." 1>&2; exit 1; }
  8437. fi
  8438. done
  8439. fi
  8440. echo $ac_n "checking for location of BLAS library""... $ac_c" 1>&6
  8441. echo "configure:10610: checking for location of BLAS library" >&5
  8442. case "$with_blas_libs" in
  8443. y | ye | yes | n | no)
  8444. { echo "configure: error: *** You must supply a directory to --with-blas-libs." 1>&2; exit 1; }
  8445. ;;
  8446. esac
  8447. echo "$ac_t""$with_blas_libs" 1>&6
  8448. if test -n "$with_blas_libs"; then
  8449. for dir in $with_blas_libs; do
  8450. if test -d "$dir"; then
  8451. BLASLIB="$BLASLIB -L$dir"
  8452. else
  8453. { echo "configure: error: *** BLAS library directory $dir does not exist." 1>&2; exit 1; }
  8454. fi
  8455. done
  8456. fi
  8457. # See if cblas.h exists (CBLAS,ATLAS,others)
  8458. save_CPPFLAGS="$CPPFLAGS"
  8459. CPPFLAGS="$BLASINC $CPPFLAGS"
  8460. for ac_hdr in cblas.h
  8461. do
  8462. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8463. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8464. echo "configure:10636: checking for $ac_hdr" >&5
  8465. cat > conftest.$ac_ext <<EOF
  8466. #line 10639 "configure"
  8467. #include "confdefs.h"
  8468. #include <$ac_hdr>
  8469. EOF
  8470. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8471. { (eval echo configure:10644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8472. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8473. if test -z "$ac_err"; then
  8474. rm -rf conftest*
  8475. eval "ac_cv_header_$ac_safe=yes"
  8476. else
  8477. echo "$ac_err" >&5
  8478. echo "configure: failed program was:" >&5
  8479. cat conftest.$ac_ext >&5
  8480. rm -rf conftest*
  8481. eval "ac_cv_header_$ac_safe=no"
  8482. fi
  8483. rm -f conftest*
  8484. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8485. echo "$ac_t""yes" 1>&6
  8486. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8487. cat >> confdefs.h <<EOF
  8488. #define $ac_tr_hdr 1
  8489. EOF
  8490. else
  8491. echo "$ac_t""no" 1>&6
  8492. fi
  8493. done
  8494. CPPFLAGS="$save_CPPFLAGS"
  8495. ac_save_ldflags="$LDFLAGS"
  8496. LDFLAGS="$BLASLIB $LDFLAGS"
  8497. echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
  8498. echo "configure:10679: checking for dnrm2_ in -lblas" >&5
  8499. ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
  8500. ac_save_LIBS="$LIBS"
  8501. LIBS="-lblas $MATHLIB $LIBS"
  8502. cat > conftest.$ac_ext <<EOF
  8503. #line 10685 "configure"
  8504. #include "confdefs.h"
  8505. /* Override any gcc2 internal prototype to avoid an error. */
  8506. /* We use char because int might match the return type of a gcc2
  8507. builtin and then its argument prototype would still apply. */
  8508. char dnrm2_();
  8509. int main() {
  8510. dnrm2_()
  8511. ; return 0; }
  8512. EOF
  8513. if { (eval echo configure:10696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8514. rm -rf conftest*
  8515. eval "ac_cv_lib_$ac_lib_var=yes"
  8516. else
  8517. echo "configure: failed program was:" >&5
  8518. cat conftest.$ac_ext >&5
  8519. rm -rf conftest*
  8520. eval "ac_cv_lib_$ac_lib_var=no"
  8521. fi
  8522. rm -f conftest*
  8523. LIBS="$ac_save_LIBS"
  8524. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8525. echo "$ac_t""yes" 1>&6
  8526. BLASLIB="$BLASLIB -lblas "
  8527. else
  8528. echo "$ac_t""no" 1>&6
  8529. echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
  8530. echo "configure:10715: checking for dnrm2_ in -lblas" >&5
  8531. ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
  8532. ac_save_LIBS="$LIBS"
  8533. LIBS="-lblas $MATHLIB -lg2c $LIBS"
  8534. cat > conftest.$ac_ext <<EOF
  8535. #line 10721 "configure"
  8536. #include "confdefs.h"
  8537. /* Override any gcc2 internal prototype to avoid an error. */
  8538. /* We use char because int might match the return type of a gcc2
  8539. builtin and then its argument prototype would still apply. */
  8540. char dnrm2_();
  8541. int main() {
  8542. dnrm2_()
  8543. ; return 0; }
  8544. EOF
  8545. if { (eval echo configure:10732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8546. rm -rf conftest*
  8547. eval "ac_cv_lib_$ac_lib_var=yes"
  8548. else
  8549. echo "configure: failed program was:" >&5
  8550. cat conftest.$ac_ext >&5
  8551. rm -rf conftest*
  8552. eval "ac_cv_lib_$ac_lib_var=no"
  8553. fi
  8554. rm -f conftest*
  8555. LIBS="$ac_save_LIBS"
  8556. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8557. echo "$ac_t""yes" 1>&6
  8558. BLASLIB="$BLASLIB -lblas -lg2c"
  8559. else
  8560. echo "$ac_t""no" 1>&6
  8561. LDFLAGS=${ac_save_ldflags}
  8562. { echo "configure: error: *** Unable to locate BLAS library." 1>&2; exit 1; }
  8563. fi
  8564. fi
  8565. LDFLAGS=${ac_save_ldflags}
  8566. blas_ok=no
  8567. # Check for ATLAS
  8568. save_LDFLAGS="$LDFLAGS"
  8569. LDFLAGS="$BLASLIB $LDFLAGS"
  8570. echo $ac_n "checking for ATL_xerbla in -latlas""... $ac_c" 1>&6
  8571. echo "configure:10776: checking for ATL_xerbla in -latlas" >&5
  8572. ac_lib_var=`echo atlas'_'ATL_xerbla | sed 'y%./+-%__p_%'`
  8573. ac_save_LIBS="$LIBS"
  8574. LIBS="-latlas $LIBS"
  8575. cat > conftest.$ac_ext <<EOF
  8576. #line 10782 "configure"
  8577. #include "confdefs.h"
  8578. /* Override any gcc2 internal prototype to avoid an error. */
  8579. /* We use char because int might match the return type of a gcc2
  8580. builtin and then its argument prototype would still apply. */
  8581. char ATL_xerbla();
  8582. int main() {
  8583. ATL_xerbla()
  8584. ; return 0; }
  8585. EOF
  8586. if { (eval echo configure:10793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8587. rm -rf conftest*
  8588. eval "ac_cv_lib_$ac_lib_var=yes"
  8589. else
  8590. echo "configure: failed program was:" >&5
  8591. cat conftest.$ac_ext >&5
  8592. rm -rf conftest*
  8593. eval "ac_cv_lib_$ac_lib_var=no"
  8594. fi
  8595. rm -f conftest*
  8596. LIBS="$ac_save_LIBS"
  8597. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8598. echo "$ac_t""yes" 1>&6
  8599. echo $ac_n "checking for sgemm_ in -lf77blas""... $ac_c" 1>&6
  8600. echo "configure:10808: checking for sgemm_ in -lf77blas" >&5
  8601. ac_lib_var=`echo f77blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  8602. ac_save_LIBS="$LIBS"
  8603. LIBS="-lf77blas -latlas $LIBS"
  8604. cat > conftest.$ac_ext <<EOF
  8605. #line 10814 "configure"
  8606. #include "confdefs.h"
  8607. /* Override any gcc2 internal prototype to avoid an error. */
  8608. /* We use char because int might match the return type of a gcc2
  8609. builtin and then its argument prototype would still apply. */
  8610. char sgemm_();
  8611. int main() {
  8612. sgemm_()
  8613. ; return 0; }
  8614. EOF
  8615. if { (eval echo configure:10825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8616. rm -rf conftest*
  8617. eval "ac_cv_lib_$ac_lib_var=yes"
  8618. else
  8619. echo "configure: failed program was:" >&5
  8620. cat conftest.$ac_ext >&5
  8621. rm -rf conftest*
  8622. eval "ac_cv_lib_$ac_lib_var=no"
  8623. fi
  8624. rm -f conftest*
  8625. LIBS="$ac_save_LIBS"
  8626. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8627. echo "$ac_t""yes" 1>&6
  8628. echo $ac_n "checking for cblas_dgemm in -lcblas""... $ac_c" 1>&6
  8629. echo "configure:10840: checking for cblas_dgemm in -lcblas" >&5
  8630. ac_lib_var=`echo cblas'_'cblas_dgemm | sed 'y%./+-%__p_%'`
  8631. ac_save_LIBS="$LIBS"
  8632. LIBS="-lcblas -lf77blas -latlas $LIBS"
  8633. cat > conftest.$ac_ext <<EOF
  8634. #line 10846 "configure"
  8635. #include "confdefs.h"
  8636. /* Override any gcc2 internal prototype to avoid an error. */
  8637. /* We use char because int might match the return type of a gcc2
  8638. builtin and then its argument prototype would still apply. */
  8639. char cblas_dgemm();
  8640. int main() {
  8641. cblas_dgemm()
  8642. ; return 0; }
  8643. EOF
  8644. if { (eval echo configure:10857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8645. rm -rf conftest*
  8646. eval "ac_cv_lib_$ac_lib_var=yes"
  8647. else
  8648. echo "configure: failed program was:" >&5
  8649. cat conftest.$ac_ext >&5
  8650. rm -rf conftest*
  8651. eval "ac_cv_lib_$ac_lib_var=no"
  8652. fi
  8653. rm -f conftest*
  8654. LIBS="$ac_save_LIBS"
  8655. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8656. echo "$ac_t""yes" 1>&6
  8657. blas_ok=yes; BLASLIB="-lcblas -lf77blas -latlas"
  8658. else
  8659. echo "$ac_t""no" 1>&6
  8660. fi
  8661. else
  8662. echo "$ac_t""no" 1>&6
  8663. fi
  8664. else
  8665. echo "$ac_t""no" 1>&6
  8666. fi
  8667. LDFLAGS="$save_LDFLAGS"
  8668. # Do we have ATLAS?
  8669. if test $blas_ok = yes; then
  8670. cat >> confdefs.h <<\EOF
  8671. #define HAVE_LIBATLAS 1
  8672. EOF
  8673. fi
  8674. # BLAS in Apple vecLib framework? (Mac OS-X)
  8675. # not dependent on APP build
  8676. #if test -n "$MACOSX_APP"; then
  8677. if test $blas_ok = no; then
  8678. vlib_flags="-framework vecLib"
  8679. save_LIBS="$LIBS"
  8680. LIBS="$vlib_flags $LIBS"
  8681. echo $ac_n "checking for sgemm in $vlib_flags""... $ac_c" 1>&6
  8682. echo "configure:10903: checking for sgemm in $vlib_flags" >&5
  8683. cat > conftest.$ac_ext <<EOF
  8684. #line 10905 "configure"
  8685. #include "confdefs.h"
  8686. int main() {
  8687. sgemm
  8688. ; return 0; }
  8689. EOF
  8690. if { (eval echo configure:10912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8691. rm -rf conftest*
  8692. blas_ok=yes; BLASLIB="$vlib_flags"
  8693. else
  8694. echo "configure: failed program was:" >&5
  8695. cat conftest.$ac_ext >&5
  8696. rm -rf conftest*
  8697. BLASLIB=""
  8698. fi
  8699. rm -f conftest*
  8700. echo "$ac_t""$blas_ok" 1>&6
  8701. LIBS="$save_LIBS"
  8702. fi
  8703. #fi # $MACOSX_APP
  8704. # BLAS in PhiPACK libraries? (requires generic BLAS, too)
  8705. if test $blas_ok = no; then
  8706. echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
  8707. echo "configure:10930: checking for sgemm_ in -lblas" >&5
  8708. ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  8709. ac_save_LIBS="$LIBS"
  8710. LIBS="-lblas $LIBS"
  8711. cat > conftest.$ac_ext <<EOF
  8712. #line 10936 "configure"
  8713. #include "confdefs.h"
  8714. /* Override any gcc2 internal prototype to avoid an error. */
  8715. /* We use char because int might match the return type of a gcc2
  8716. builtin and then its argument prototype would still apply. */
  8717. char sgemm_();
  8718. int main() {
  8719. sgemm_()
  8720. ; return 0; }
  8721. EOF
  8722. if { (eval echo configure:10947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8723. rm -rf conftest*
  8724. eval "ac_cv_lib_$ac_lib_var=yes"
  8725. else
  8726. echo "configure: failed program was:" >&5
  8727. cat conftest.$ac_ext >&5
  8728. rm -rf conftest*
  8729. eval "ac_cv_lib_$ac_lib_var=no"
  8730. fi
  8731. rm -f conftest*
  8732. LIBS="$ac_save_LIBS"
  8733. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8734. echo "$ac_t""yes" 1>&6
  8735. echo $ac_n "checking for dgemm_ in -ldgemm""... $ac_c" 1>&6
  8736. echo "configure:10962: checking for dgemm_ in -ldgemm" >&5
  8737. ac_lib_var=`echo dgemm'_'dgemm_ | sed 'y%./+-%__p_%'`
  8738. ac_save_LIBS="$LIBS"
  8739. LIBS="-ldgemm -lblas $LIBS"
  8740. cat > conftest.$ac_ext <<EOF
  8741. #line 10968 "configure"
  8742. #include "confdefs.h"
  8743. /* Override any gcc2 internal prototype to avoid an error. */
  8744. /* We use char because int might match the return type of a gcc2
  8745. builtin and then its argument prototype would still apply. */
  8746. char dgemm_();
  8747. int main() {
  8748. dgemm_()
  8749. ; return 0; }
  8750. EOF
  8751. if { (eval echo configure:10979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8752. rm -rf conftest*
  8753. eval "ac_cv_lib_$ac_lib_var=yes"
  8754. else
  8755. echo "configure: failed program was:" >&5
  8756. cat conftest.$ac_ext >&5
  8757. rm -rf conftest*
  8758. eval "ac_cv_lib_$ac_lib_var=no"
  8759. fi
  8760. rm -f conftest*
  8761. LIBS="$ac_save_LIBS"
  8762. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8763. echo "$ac_t""yes" 1>&6
  8764. echo $ac_n "checking for sgemm_ in -lsgemm""... $ac_c" 1>&6
  8765. echo "configure:10994: checking for sgemm_ in -lsgemm" >&5
  8766. ac_lib_var=`echo sgemm'_'sgemm_ | sed 'y%./+-%__p_%'`
  8767. ac_save_LIBS="$LIBS"
  8768. LIBS="-lsgemm -lblas $LIBS"
  8769. cat > conftest.$ac_ext <<EOF
  8770. #line 11000 "configure"
  8771. #include "confdefs.h"
  8772. /* Override any gcc2 internal prototype to avoid an error. */
  8773. /* We use char because int might match the return type of a gcc2
  8774. builtin and then its argument prototype would still apply. */
  8775. char sgemm_();
  8776. int main() {
  8777. sgemm_()
  8778. ; return 0; }
  8779. EOF
  8780. if { (eval echo configure:11011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8781. rm -rf conftest*
  8782. eval "ac_cv_lib_$ac_lib_var=yes"
  8783. else
  8784. echo "configure: failed program was:" >&5
  8785. cat conftest.$ac_ext >&5
  8786. rm -rf conftest*
  8787. eval "ac_cv_lib_$ac_lib_var=no"
  8788. fi
  8789. rm -f conftest*
  8790. LIBS="$ac_save_LIBS"
  8791. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8792. echo "$ac_t""yes" 1>&6
  8793. blas_ok=yes; BLASLIB="-lsgemm -ldgemm -lblas"
  8794. else
  8795. echo "$ac_t""no" 1>&6
  8796. fi
  8797. else
  8798. echo "$ac_t""no" 1>&6
  8799. fi
  8800. else
  8801. echo "$ac_t""no" 1>&6
  8802. fi
  8803. fi
  8804. # BLAS in Sun Performance library?
  8805. if test $blas_ok = no; then
  8806. if test "x$GCC" != xyes; then # only works with Sun CC
  8807. echo $ac_n "checking for acosp in -lsunmath""... $ac_c" 1>&6
  8808. echo "configure:11045: checking for acosp in -lsunmath" >&5
  8809. ac_lib_var=`echo sunmath'_'acosp | sed 'y%./+-%__p_%'`
  8810. ac_save_LIBS="$LIBS"
  8811. LIBS="-lsunmath $LIBS"
  8812. cat > conftest.$ac_ext <<EOF
  8813. #line 11051 "configure"
  8814. #include "confdefs.h"
  8815. /* Override any gcc2 internal prototype to avoid an error. */
  8816. /* We use char because int might match the return type of a gcc2
  8817. builtin and then its argument prototype would still apply. */
  8818. char acosp();
  8819. int main() {
  8820. acosp()
  8821. ; return 0; }
  8822. EOF
  8823. if { (eval echo configure:11062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8824. rm -rf conftest*
  8825. eval "ac_cv_lib_$ac_lib_var=yes"
  8826. else
  8827. echo "configure: failed program was:" >&5
  8828. cat conftest.$ac_ext >&5
  8829. rm -rf conftest*
  8830. eval "ac_cv_lib_$ac_lib_var=no"
  8831. fi
  8832. rm -f conftest*
  8833. LIBS="$ac_save_LIBS"
  8834. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8835. echo "$ac_t""yes" 1>&6
  8836. echo $ac_n "checking for sgemm_ in -lsunperf""... $ac_c" 1>&6
  8837. echo "configure:11077: checking for sgemm_ in -lsunperf" >&5
  8838. ac_lib_var=`echo sunperf'_'sgemm_ | sed 'y%./+-%__p_%'`
  8839. ac_save_LIBS="$LIBS"
  8840. LIBS="-lsunperf -lsunmath $LIBS"
  8841. cat > conftest.$ac_ext <<EOF
  8842. #line 11083 "configure"
  8843. #include "confdefs.h"
  8844. /* Override any gcc2 internal prototype to avoid an error. */
  8845. /* We use char because int might match the return type of a gcc2
  8846. builtin and then its argument prototype would still apply. */
  8847. char sgemm_();
  8848. int main() {
  8849. sgemm_()
  8850. ; return 0; }
  8851. EOF
  8852. if { (eval echo configure:11094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8853. rm -rf conftest*
  8854. eval "ac_cv_lib_$ac_lib_var=yes"
  8855. else
  8856. echo "configure: failed program was:" >&5
  8857. cat conftest.$ac_ext >&5
  8858. rm -rf conftest*
  8859. eval "ac_cv_lib_$ac_lib_var=no"
  8860. fi
  8861. rm -f conftest*
  8862. LIBS="$ac_save_LIBS"
  8863. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8864. echo "$ac_t""yes" 1>&6
  8865. blas_ok=yes; BLASLIB="-xlic_lib=sunperf -lsunmath"
  8866. else
  8867. echo "$ac_t""no" 1>&6
  8868. fi
  8869. else
  8870. echo "$ac_t""no" 1>&6
  8871. fi
  8872. fi
  8873. fi
  8874. # Generic BLAS library
  8875. if test $blas_ok = no; then
  8876. echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
  8877. echo "configure:11124: checking for sgemm_ in -lblas" >&5
  8878. ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  8879. ac_save_LIBS="$LIBS"
  8880. LIBS="-lblas $LIBS"
  8881. cat > conftest.$ac_ext <<EOF
  8882. #line 11130 "configure"
  8883. #include "confdefs.h"
  8884. /* Override any gcc2 internal prototype to avoid an error. */
  8885. /* We use char because int might match the return type of a gcc2
  8886. builtin and then its argument prototype would still apply. */
  8887. char sgemm_();
  8888. int main() {
  8889. sgemm_()
  8890. ; return 0; }
  8891. EOF
  8892. if { (eval echo configure:11141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8893. rm -rf conftest*
  8894. eval "ac_cv_lib_$ac_lib_var=yes"
  8895. else
  8896. echo "configure: failed program was:" >&5
  8897. cat conftest.$ac_ext >&5
  8898. rm -rf conftest*
  8899. eval "ac_cv_lib_$ac_lib_var=no"
  8900. fi
  8901. rm -f conftest*
  8902. LIBS="$ac_save_LIBS"
  8903. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8904. echo "$ac_t""yes" 1>&6
  8905. blas_ok=yes; BLASLIB="-lblas"
  8906. else
  8907. echo "$ac_t""no" 1>&6
  8908. fi
  8909. fi
  8910. if test $blas_ok = yes; then
  8911. cat >> confdefs.h <<\EOF
  8912. #define HAVE_LIBBLAS 1
  8913. EOF
  8914. fi
  8915. fi # $USE_BLAS
  8916. # Done checking BLAS
  8917. # Enable LAPACK option
  8918. echo $ac_n "checking whether to use LAPACK""... $ac_c" 1>&6
  8919. echo "configure:11180: checking whether to use LAPACK" >&5
  8920. echo "$ac_t"""$with_lapack"" 1>&6
  8921. case "$with_lapack" in
  8922. "no") USE_LAPACK= ;;
  8923. "yes") USE_LAPACK="1" ;;
  8924. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8925. esac
  8926. LAPACKLIB=
  8927. LAPACKINC=
  8928. # LAPACK is useless without BLAS
  8929. if test -n "$USE_BLAS"; then
  8930. if test -n "$USE_LAPACK"; then
  8931. # With LAPACK includes directory
  8932. # LAPACK doesn't have includes (FORTRAN library)
  8933. # With LAPACK library directory
  8934. lapack_ok=no
  8935. echo $ac_n "checking for location of LAPACK includes""... $ac_c" 1>&6
  8936. echo "configure:11205: checking for location of LAPACK includes" >&5
  8937. case "$with_lapack_includes" in
  8938. y | ye | yes | n | no)
  8939. { echo "configure: error: *** You must supply a directory to --with-lapack-includes." 1>&2; exit 1; }
  8940. ;;
  8941. esac
  8942. echo "$ac_t""$with_lapack_includes" 1>&6
  8943. if test -n "$with_lapack_includes" ; then
  8944. for dir in $with_lapack_includes; do
  8945. if test -d "$dir"; then
  8946. LAPACKINC="$LAPACKINC -I$dir"
  8947. else
  8948. { echo "configure: error: *** LAPACK includes directory $dir does not exist." 1>&2; exit 1; }
  8949. fi
  8950. done
  8951. fi
  8952. echo $ac_n "checking for location of LAPACK library""... $ac_c" 1>&6
  8953. echo "configure:11225: checking for location of LAPACK library" >&5
  8954. case "$with_lapack_libs" in
  8955. y | ye | yes | n | no)
  8956. { echo "configure: error: *** You must supply a directory to --with-lapack-libs." 1>&2; exit 1; }
  8957. ;;
  8958. esac
  8959. echo "$ac_t""$with_lapack_libs" 1>&6
  8960. if test -n "$with_lapack_libs"; then
  8961. for dir in $with_lapack_libs; do
  8962. if test -d "$dir"; then
  8963. LAPACKLIB="$LAPACKLIB -L$dir"
  8964. else
  8965. { echo "configure: error: *** LAPACK library directory $dir does not exist." 1>&2; exit 1; }
  8966. fi
  8967. done
  8968. fi
  8969. # See if clapack.h exists (ATLAS)
  8970. save_CPPFLAGS="$CPPFLAGS"
  8971. CPPFLAGS="$LAPACKINC $CPPFLAGS"
  8972. for ac_hdr in clapack.h
  8973. do
  8974. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8975. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8976. echo "configure:11251: checking for $ac_hdr" >&5
  8977. cat > conftest.$ac_ext <<EOF
  8978. #line 11254 "configure"
  8979. #include "confdefs.h"
  8980. #include <$ac_hdr>
  8981. EOF
  8982. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8983. { (eval echo configure:11259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8984. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8985. if test -z "$ac_err"; then
  8986. rm -rf conftest*
  8987. eval "ac_cv_header_$ac_safe=yes"
  8988. else
  8989. echo "$ac_err" >&5
  8990. echo "configure: failed program was:" >&5
  8991. cat conftest.$ac_ext >&5
  8992. rm -rf conftest*
  8993. eval "ac_cv_header_$ac_safe=no"
  8994. fi
  8995. rm -f conftest*
  8996. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8997. echo "$ac_t""yes" 1>&6
  8998. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8999. cat >> confdefs.h <<EOF
  9000. #define $ac_tr_hdr 1
  9001. EOF
  9002. else
  9003. echo "$ac_t""no" 1>&6
  9004. fi
  9005. done
  9006. CPPFLAGS="$save_CPPFLAGS"
  9007. # LAPACK linked to by default?
  9008. if test lapack_ok=no; then
  9009. save_LIBS="$LIBS"; LIBS="$LIBS $BLASLIB $MATHLIB $FLIBS"
  9010. save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
  9011. echo $ac_n "checking for dsegv_""... $ac_c" 1>&6
  9012. echo "configure:11291: checking for dsegv_" >&5
  9013. cat > conftest.$ac_ext <<EOF
  9014. #line 11294 "configure"
  9015. #include "confdefs.h"
  9016. /* System header to define __stub macros and hopefully few prototypes,
  9017. which can conflict with char dsegv_(); below. */
  9018. #include <assert.h>
  9019. /* Override any gcc2 internal prototype to avoid an error. */
  9020. /* We use char because int might match the return type of a gcc2
  9021. builtin and then its argument prototype would still apply. */
  9022. char dsegv_();
  9023. int main() {
  9024. /* The GNU C library defines this for functions which it implements
  9025. to always fail with ENOSYS. Some functions are actually named
  9026. something starting with __ and the normal name is an alias. */
  9027. #if defined (__stub_dsegv_) || defined (__stub___dsegv_)
  9028. choke me
  9029. #else
  9030. dsegv_();
  9031. #endif
  9032. ; return 0; }
  9033. EOF
  9034. if { (eval echo configure:11317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9035. rm -rf conftest*
  9036. eval "ac_cv_func_dsegv_=yes"
  9037. else
  9038. echo "configure: failed program was:" >&5
  9039. cat conftest.$ac_ext >&5
  9040. rm -rf conftest*
  9041. eval "ac_cv_func_dsegv_=no"
  9042. fi
  9043. rm -f conftest*
  9044. if eval "test \"`echo '$ac_cv_func_'dsegv_`\" = yes"; then
  9045. echo "$ac_t""yes" 1>&6
  9046. lapack_ok=yes
  9047. else
  9048. echo "$ac_t""no" 1>&6
  9049. fi
  9050. LIBS="$save_LIBS"
  9051. LDFLAGS="$save_LDFLAGS"
  9052. fi
  9053. # Generic LAPACK library?
  9054. if test $lapack_ok = no; then
  9055. save_libs="$LIBS"; LIBS="$BLASLIB $MATHLIB $LIBS"
  9056. save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
  9057. echo $ac_n "checking for desgv_ in -llapack""... $ac_c" 1>&6
  9058. echo "configure:11344: checking for desgv_ in -llapack" >&5
  9059. ac_lib_var=`echo lapack'_'desgv_ | sed 'y%./+-%__p_%'`
  9060. ac_save_LIBS="$LIBS"
  9061. LIBS="-llapack $FLIBS $LIBS"
  9062. cat > conftest.$ac_ext <<EOF
  9063. #line 11350 "configure"
  9064. #include "confdefs.h"
  9065. /* Override any gcc2 internal prototype to avoid an error. */
  9066. /* We use char because int might match the return type of a gcc2
  9067. builtin and then its argument prototype would still apply. */
  9068. char desgv_();
  9069. int main() {
  9070. desgv_()
  9071. ; return 0; }
  9072. EOF
  9073. if { (eval echo configure:11361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9074. rm -rf conftest*
  9075. eval "ac_cv_lib_$ac_lib_var=yes"
  9076. else
  9077. echo "configure: failed program was:" >&5
  9078. cat conftest.$ac_ext >&5
  9079. rm -rf conftest*
  9080. eval "ac_cv_lib_$ac_lib_var=no"
  9081. fi
  9082. rm -f conftest*
  9083. LIBS="$ac_save_LIBS"
  9084. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9085. echo "$ac_t""yes" 1>&6
  9086. lapack_ok=yes; LAPACKLIB="-llapack"
  9087. else
  9088. echo "$ac_t""no" 1>&6
  9089. fi
  9090. LIBS="$save_LIBS"
  9091. LDFLAGS="$save_LDFLAGS"
  9092. fi
  9093. if test $lapack_ok = no; then
  9094. ac_save_ldflags="$LDFLAGS"
  9095. LDFLAGS="$LAPACKLIB $LDFLAGS"
  9096. echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
  9097. echo "configure:11393: checking for dgesv_ in -llapack" >&5
  9098. ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
  9099. ac_save_LIBS="$LIBS"
  9100. LIBS="-llapack $BLASLIB $MATHLIB $LIBS"
  9101. cat > conftest.$ac_ext <<EOF
  9102. #line 11399 "configure"
  9103. #include "confdefs.h"
  9104. /* Override any gcc2 internal prototype to avoid an error. */
  9105. /* We use char because int might match the return type of a gcc2
  9106. builtin and then its argument prototype would still apply. */
  9107. char dgesv_();
  9108. int main() {
  9109. dgesv_()
  9110. ; return 0; }
  9111. EOF
  9112. if { (eval echo configure:11410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9113. rm -rf conftest*
  9114. eval "ac_cv_lib_$ac_lib_var=yes"
  9115. else
  9116. echo "configure: failed program was:" >&5
  9117. cat conftest.$ac_ext >&5
  9118. rm -rf conftest*
  9119. eval "ac_cv_lib_$ac_lib_var=no"
  9120. fi
  9121. rm -f conftest*
  9122. LIBS="$ac_save_LIBS"
  9123. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9124. echo "$ac_t""yes" 1>&6
  9125. LAPACKLIB="$LAPACKLIB -llapack "
  9126. else
  9127. echo "$ac_t""no" 1>&6
  9128. echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
  9129. echo "configure:11429: checking for dgesv_ in -llapack" >&5
  9130. ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
  9131. ac_save_LIBS="$LIBS"
  9132. LIBS="-llapack $BLASLIB $MATHLIB -lg2c $LIBS"
  9133. cat > conftest.$ac_ext <<EOF
  9134. #line 11435 "configure"
  9135. #include "confdefs.h"
  9136. /* Override any gcc2 internal prototype to avoid an error. */
  9137. /* We use char because int might match the return type of a gcc2
  9138. builtin and then its argument prototype would still apply. */
  9139. char dgesv_();
  9140. int main() {
  9141. dgesv_()
  9142. ; return 0; }
  9143. EOF
  9144. if { (eval echo configure:11446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9145. rm -rf conftest*
  9146. eval "ac_cv_lib_$ac_lib_var=yes"
  9147. else
  9148. echo "configure: failed program was:" >&5
  9149. cat conftest.$ac_ext >&5
  9150. rm -rf conftest*
  9151. eval "ac_cv_lib_$ac_lib_var=no"
  9152. fi
  9153. rm -f conftest*
  9154. LIBS="$ac_save_LIBS"
  9155. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9156. echo "$ac_t""yes" 1>&6
  9157. LAPACKLIB="$LAPACKLIB -llapack -lg2c"
  9158. else
  9159. echo "$ac_t""no" 1>&6
  9160. LDFLAGS=${ac_save_ldflags}
  9161. { echo "configure: error: *** Unable to locate LAPACK library." 1>&2; exit 1; }
  9162. fi
  9163. fi
  9164. LDFLAGS=${ac_save_ldflags}
  9165. fi
  9166. cat >> confdefs.h <<\EOF
  9167. #define HAVE_LIBLAPACK 1
  9168. EOF
  9169. fi # $USE_LAPACK
  9170. fi # $USE_BLAS
  9171. # Done checking LAPACK
  9172. # Enable Cairo display driver option
  9173. echo $ac_n "checking whether to use Cairo""... $ac_c" 1>&6
  9174. echo "configure:11502: checking whether to use Cairo" >&5
  9175. echo "$ac_t"""$with_cairo"" 1>&6
  9176. case "$with_cairo" in
  9177. "no") USE_CAIRO= ;;
  9178. "yes") USE_CAIRO="1" ;;
  9179. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9180. esac
  9181. CAIROINC=
  9182. CAIROLIB=
  9183. if test -n "$USE_CAIRO"; then
  9184. cairo="cairo"
  9185. pkgs="cairo-ft cairo-fc cairo-pdf cairo-ps cairo-svg"
  9186. if test -n "$USE_X11"; then
  9187. pkgs="$pkgs cairo-xlib cairo-xlib-xrender"
  9188. fi
  9189. for pkg in $pkgs ; do
  9190. if pkg-config --exists $pkg ; then
  9191. cairo="$cairo $pkg"
  9192. fi
  9193. done
  9194. # With Cairo includes directory
  9195. #FIXME: somehow quote dirs with spaces in $cairo ?
  9196. CAIROINC=`pkg-config --cflags $cairo`
  9197. echo $ac_n "checking for location of cairo includes""... $ac_c" 1>&6
  9198. echo "configure:11534: checking for location of cairo includes" >&5
  9199. case "$with_cairo_includes" in
  9200. y | ye | yes | n | no)
  9201. { echo "configure: error: *** You must supply a directory to --with-cairo-includes." 1>&2; exit 1; }
  9202. ;;
  9203. esac
  9204. echo "$ac_t""$with_cairo_includes" 1>&6
  9205. if test -n "$with_cairo_includes" ; then
  9206. for dir in $with_cairo_includes; do
  9207. if test -d "$dir"; then
  9208. CAIROINC="$CAIROINC -I$dir"
  9209. else
  9210. { echo "configure: error: *** cairo includes directory $dir does not exist." 1>&2; exit 1; }
  9211. fi
  9212. done
  9213. fi
  9214. ac_save_cppflags="$CPPFLAGS"
  9215. CPPFLAGS="$CAIROINC $CPPFLAGS"
  9216. for ac_hdr in cairo.h
  9217. do
  9218. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9219. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9220. echo "configure:11560: checking for $ac_hdr" >&5
  9221. cat > conftest.$ac_ext <<EOF
  9222. #line 11563 "configure"
  9223. #include "confdefs.h"
  9224. #include <$ac_hdr>
  9225. EOF
  9226. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9227. { (eval echo configure:11568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9228. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9229. if test -z "$ac_err"; then
  9230. rm -rf conftest*
  9231. eval "ac_cv_header_$ac_safe=yes"
  9232. else
  9233. echo "$ac_err" >&5
  9234. echo "configure: failed program was:" >&5
  9235. cat conftest.$ac_ext >&5
  9236. rm -rf conftest*
  9237. eval "ac_cv_header_$ac_safe=no"
  9238. fi
  9239. rm -f conftest*
  9240. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9241. echo "$ac_t""yes" 1>&6
  9242. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9243. cat >> confdefs.h <<EOF
  9244. #define $ac_tr_hdr 1
  9245. EOF
  9246. else
  9247. echo "$ac_t""no" 1>&6
  9248. { echo "configure: error: *** Unable to locate Cairo includes." 1>&2; exit 1; }
  9249. fi
  9250. done
  9251. CPPFLAGS=$ac_save_cppflags
  9252. # With Cairo library directory
  9253. CAIROLIB=`pkg-config --libs $cairo`
  9254. echo $ac_n "checking for location of cairo library""... $ac_c" 1>&6
  9255. echo "configure:11604: checking for location of cairo library" >&5
  9256. case "$with_cairo_libs" in
  9257. y | ye | yes | n | no)
  9258. { echo "configure: error: *** You must supply a directory to --with-cairo-libs." 1>&2; exit 1; }
  9259. ;;
  9260. esac
  9261. echo "$ac_t""$with_cairo_libs" 1>&6
  9262. if test -n "$with_cairo_libs"; then
  9263. for dir in $with_cairo_libs; do
  9264. if test -d "$dir"; then
  9265. CAIROLIB="$CAIROLIB -L$dir"
  9266. else
  9267. { echo "configure: error: *** cairo library directory $dir does not exist." 1>&2; exit 1; }
  9268. fi
  9269. done
  9270. fi
  9271. echo $ac_n "checking for cairo linking flags""... $ac_c" 1>&6
  9272. echo "configure:11624: checking for cairo linking flags" >&5
  9273. case "$with_cairo_ldflags" in
  9274. y | ye | yes | n | no)
  9275. { echo "configure: error: *** You must supply a directory to --with-cairo-ldflags." 1>&2; exit 1; }
  9276. ;;
  9277. esac
  9278. echo "$ac_t""$with_cairo_ldflags" 1>&6
  9279. CAIROLIB="$CAIROLIB $with_cairo_ldflags"
  9280. ac_save_libs="$LIBS"
  9281. ac_save_ldflags="$LDFLAGS"
  9282. LIBS=" $CAIROLIB $LIBS"
  9283. LDFLAGS=" $LDFLAGS"
  9284. echo $ac_n "checking for cairo_create""... $ac_c" 1>&6
  9285. echo "configure:11640: checking for cairo_create" >&5
  9286. cat > conftest.$ac_ext <<EOF
  9287. #line 11643 "configure"
  9288. #include "confdefs.h"
  9289. /* System header to define __stub macros and hopefully few prototypes,
  9290. which can conflict with char cairo_create(); below. */
  9291. #include <assert.h>
  9292. /* Override any gcc2 internal prototype to avoid an error. */
  9293. /* We use char because int might match the return type of a gcc2
  9294. builtin and then its argument prototype would still apply. */
  9295. char cairo_create();
  9296. int main() {
  9297. /* The GNU C library defines this for functions which it implements
  9298. to always fail with ENOSYS. Some functions are actually named
  9299. something starting with __ and the normal name is an alias. */
  9300. #if defined (__stub_cairo_create) || defined (__stub___cairo_create)
  9301. choke me
  9302. #else
  9303. cairo_create();
  9304. #endif
  9305. ; return 0; }
  9306. EOF
  9307. if { (eval echo configure:11666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9308. rm -rf conftest*
  9309. eval "ac_cv_func_cairo_create=yes"
  9310. else
  9311. echo "configure: failed program was:" >&5
  9312. cat conftest.$ac_ext >&5
  9313. rm -rf conftest*
  9314. eval "ac_cv_func_cairo_create=no"
  9315. fi
  9316. rm -f conftest*
  9317. if eval "test \"`echo '$ac_cv_func_'cairo_create`\" = yes"; then
  9318. echo "$ac_t""yes" 1>&6
  9319. :
  9320. else
  9321. echo "$ac_t""no" 1>&6
  9322. { echo "configure: error: *** Unable to locate cairo_create." 1>&2; exit 1; }
  9323. fi
  9324. LIBS=${ac_save_libs}
  9325. LDFLAGS=${ac_save_ldflags}
  9326. ac_save_libs="$LIBS"
  9327. ac_save_ldflags="$LDFLAGS"
  9328. LIBS=" $CAIROLIB $LIBS"
  9329. LDFLAGS=" $LDFLAGS"
  9330. echo $ac_n "checking for cairo_xlib_surface_create_with_xrender_format""... $ac_c" 1>&6
  9331. echo "configure:11700: checking for cairo_xlib_surface_create_with_xrender_format" >&5
  9332. cat > conftest.$ac_ext <<EOF
  9333. #line 11703 "configure"
  9334. #include "confdefs.h"
  9335. /* System header to define __stub macros and hopefully few prototypes,
  9336. which can conflict with char cairo_xlib_surface_create_with_xrender_format(); below. */
  9337. #include <assert.h>
  9338. /* Override any gcc2 internal prototype to avoid an error. */
  9339. /* We use char because int might match the return type of a gcc2
  9340. builtin and then its argument prototype would still apply. */
  9341. char cairo_xlib_surface_create_with_xrender_format();
  9342. int main() {
  9343. /* The GNU C library defines this for functions which it implements
  9344. to always fail with ENOSYS. Some functions are actually named
  9345. something starting with __ and the normal name is an alias. */
  9346. #if defined (__stub_cairo_xlib_surface_create_with_xrender_format) || defined (__stub___cairo_xlib_surface_create_with_xrender_format)
  9347. choke me
  9348. #else
  9349. cairo_xlib_surface_create_with_xrender_format();
  9350. #endif
  9351. ; return 0; }
  9352. EOF
  9353. if { (eval echo configure:11726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9354. rm -rf conftest*
  9355. eval "ac_cv_func_cairo_xlib_surface_create_with_xrender_format=yes"
  9356. else
  9357. echo "configure: failed program was:" >&5
  9358. cat conftest.$ac_ext >&5
  9359. rm -rf conftest*
  9360. eval "ac_cv_func_cairo_xlib_surface_create_with_xrender_format=no"
  9361. fi
  9362. rm -f conftest*
  9363. if eval "test \"`echo '$ac_cv_func_'cairo_xlib_surface_create_with_xrender_format`\" = yes"; then
  9364. echo "$ac_t""yes" 1>&6
  9365. CAIRO_HAS_XRENDER=1
  9366. else
  9367. echo "$ac_t""no" 1>&6
  9368. CAIRO_HAS_XRENDER=
  9369. fi
  9370. LIBS=${ac_save_libs}
  9371. LDFLAGS=${ac_save_ldflags}
  9372. ac_save_libs="$LIBS"
  9373. ac_save_ldflags="$LDFLAGS"
  9374. LIBS=" $CAIROLIB $LIBS"
  9375. LDFLAGS=" $LDFLAGS"
  9376. echo $ac_n "checking for cairo_xlib_surface_get_xrender_format""... $ac_c" 1>&6
  9377. echo "configure:11759: checking for cairo_xlib_surface_get_xrender_format" >&5
  9378. cat > conftest.$ac_ext <<EOF
  9379. #line 11762 "configure"
  9380. #include "confdefs.h"
  9381. /* System header to define __stub macros and hopefully few prototypes,
  9382. which can conflict with char cairo_xlib_surface_get_xrender_format(); below. */
  9383. #include <assert.h>
  9384. /* Override any gcc2 internal prototype to avoid an error. */
  9385. /* We use char because int might match the return type of a gcc2
  9386. builtin and then its argument prototype would still apply. */
  9387. char cairo_xlib_surface_get_xrender_format();
  9388. int main() {
  9389. /* The GNU C library defines this for functions which it implements
  9390. to always fail with ENOSYS. Some functions are actually named
  9391. something starting with __ and the normal name is an alias. */
  9392. #if defined (__stub_cairo_xlib_surface_get_xrender_format) || defined (__stub___cairo_xlib_surface_get_xrender_format)
  9393. choke me
  9394. #else
  9395. cairo_xlib_surface_get_xrender_format();
  9396. #endif
  9397. ; return 0; }
  9398. EOF
  9399. if { (eval echo configure:11785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9400. rm -rf conftest*
  9401. eval "ac_cv_func_cairo_xlib_surface_get_xrender_format=yes"
  9402. else
  9403. echo "configure: failed program was:" >&5
  9404. cat conftest.$ac_ext >&5
  9405. rm -rf conftest*
  9406. eval "ac_cv_func_cairo_xlib_surface_get_xrender_format=no"
  9407. fi
  9408. rm -f conftest*
  9409. if eval "test \"`echo '$ac_cv_func_'cairo_xlib_surface_get_xrender_format`\" = yes"; then
  9410. echo "$ac_t""yes" 1>&6
  9411. CAIRO_HAS_XRENDER_SURFACE=1
  9412. else
  9413. echo "$ac_t""no" 1>&6
  9414. CAIRO_HAS_XRENDER_SURFACE=
  9415. fi
  9416. LIBS=${ac_save_libs}
  9417. LDFLAGS=${ac_save_ldflags}
  9418. CAIROLIB="$CAIROLIB $CAIROLDFLAGS"
  9419. fi # $USE_CAIRO
  9420. # Done checking Cairo
  9421. # Enable FreeType option
  9422. echo $ac_n "checking whether to use FreeType""... $ac_c" 1>&6
  9423. echo "configure:11827: checking whether to use FreeType" >&5
  9424. echo "$ac_t"""$with_freetype"" 1>&6
  9425. case "$with_freetype" in
  9426. "no") USE_FREETYPE= ;;
  9427. "yes") USE_FREETYPE="1" ;;
  9428. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9429. esac
  9430. FTINC=
  9431. FTLIB=
  9432. if test -n "$USE_FREETYPE"; then
  9433. # With FreeType includes directory
  9434. echo $ac_n "checking for location of FreeType includes""... $ac_c" 1>&6
  9435. echo "configure:11846: checking for location of FreeType includes" >&5
  9436. case "$with_freetype_includes" in
  9437. y | ye | yes | n | no)
  9438. { echo "configure: error: *** You must supply a directory to --with-freetype-includes." 1>&2; exit 1; }
  9439. ;;
  9440. esac
  9441. echo "$ac_t""$with_freetype_includes" 1>&6
  9442. if test -n "$with_freetype_includes" ; then
  9443. for dir in $with_freetype_includes; do
  9444. if test -d "$dir"; then
  9445. FTINC="$FTINC -I$dir"
  9446. else
  9447. { echo "configure: error: *** FreeType includes directory $dir does not exist." 1>&2; exit 1; }
  9448. fi
  9449. done
  9450. fi
  9451. ac_save_cppflags="$CPPFLAGS"
  9452. CPPFLAGS="$FTINC $CPPFLAGS"
  9453. for ac_hdr in ft2build.h
  9454. do
  9455. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9456. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9457. echo "configure:11872: checking for $ac_hdr" >&5
  9458. cat > conftest.$ac_ext <<EOF
  9459. #line 11875 "configure"
  9460. #include "confdefs.h"
  9461. #include <$ac_hdr>
  9462. EOF
  9463. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9464. { (eval echo configure:11880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9465. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9466. if test -z "$ac_err"; then
  9467. rm -rf conftest*
  9468. eval "ac_cv_header_$ac_safe=yes"
  9469. else
  9470. echo "$ac_err" >&5
  9471. echo "configure: failed program was:" >&5
  9472. cat conftest.$ac_ext >&5
  9473. rm -rf conftest*
  9474. eval "ac_cv_header_$ac_safe=no"
  9475. fi
  9476. rm -f conftest*
  9477. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9478. echo "$ac_t""yes" 1>&6
  9479. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9480. cat >> confdefs.h <<EOF
  9481. #define $ac_tr_hdr 1
  9482. EOF
  9483. else
  9484. echo "$ac_t""no" 1>&6
  9485. { echo "configure: error: *** Unable to locate FreeType includes." 1>&2; exit 1; }
  9486. fi
  9487. done
  9488. CPPFLAGS=$ac_save_cppflags
  9489. # With FreeType library directory
  9490. echo $ac_n "checking for location of FreeType library""... $ac_c" 1>&6
  9491. echo "configure:11914: checking for location of FreeType library" >&5
  9492. case "$with_freetype_libs" in
  9493. y | ye | yes | n | no)
  9494. { echo "configure: error: *** You must supply a directory to --with-freetype-libs." 1>&2; exit 1; }
  9495. ;;
  9496. esac
  9497. echo "$ac_t""$with_freetype_libs" 1>&6
  9498. if test -n "$with_freetype_libs"; then
  9499. for dir in $with_freetype_libs; do
  9500. if test -d "$dir"; then
  9501. FTLIB="$FTLIB -L$dir"
  9502. else
  9503. { echo "configure: error: *** FreeType library directory $dir does not exist." 1>&2; exit 1; }
  9504. fi
  9505. done
  9506. fi
  9507. ac_save_ldflags="$LDFLAGS"
  9508. LDFLAGS="$FTLIB $LDFLAGS"
  9509. echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
  9510. echo "configure:11939: checking for FT_Init_FreeType in -lfreetype" >&5
  9511. ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
  9512. ac_save_LIBS="$LIBS"
  9513. LIBS="-lfreetype $LIBS"
  9514. cat > conftest.$ac_ext <<EOF
  9515. #line 11945 "configure"
  9516. #include "confdefs.h"
  9517. /* Override any gcc2 internal prototype to avoid an error. */
  9518. /* We use char because int might match the return type of a gcc2
  9519. builtin and then its argument prototype would still apply. */
  9520. char FT_Init_FreeType();
  9521. int main() {
  9522. FT_Init_FreeType()
  9523. ; return 0; }
  9524. EOF
  9525. if { (eval echo configure:11956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9526. rm -rf conftest*
  9527. eval "ac_cv_lib_$ac_lib_var=yes"
  9528. else
  9529. echo "configure: failed program was:" >&5
  9530. cat conftest.$ac_ext >&5
  9531. rm -rf conftest*
  9532. eval "ac_cv_lib_$ac_lib_var=no"
  9533. fi
  9534. rm -f conftest*
  9535. LIBS="$ac_save_LIBS"
  9536. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9537. echo "$ac_t""yes" 1>&6
  9538. FTLIB="$FTLIB -lfreetype "
  9539. else
  9540. echo "$ac_t""no" 1>&6
  9541. LDFLAGS=${ac_save_ldflags}
  9542. { echo "configure: error: *** Unable to locate FreeType library." 1>&2; exit 1; }
  9543. fi
  9544. LDFLAGS=${ac_save_ldflags}
  9545. fi # $USE_FREETYPE
  9546. # Done checking FreeType
  9547. # Enable NLS option
  9548. echo $ac_n "checking whether to use NLS""... $ac_c" 1>&6
  9549. echo "configure:11997: checking whether to use NLS" >&5
  9550. echo "$ac_t"""$with_nls"" 1>&6
  9551. case "$with_nls" in
  9552. "no") USE_NLS= ;;
  9553. "yes") USE_NLS="1" ;;
  9554. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9555. esac
  9556. INTLLIB=
  9557. HAVE_NLS=
  9558. if test -n "${USE_NLS}" ; then
  9559. cat >> confdefs.h <<\EOF
  9560. #define USE_NLS 1
  9561. EOF
  9562. echo $ac_n "checking for gettext""... $ac_c" 1>&6
  9563. echo "configure:12017: checking for gettext" >&5
  9564. cat > conftest.$ac_ext <<EOF
  9565. #line 12020 "configure"
  9566. #include "confdefs.h"
  9567. /* System header to define __stub macros and hopefully few prototypes,
  9568. which can conflict with char gettext(); below. */
  9569. #include <assert.h>
  9570. /* Override any gcc2 internal prototype to avoid an error. */
  9571. /* We use char because int might match the return type of a gcc2
  9572. builtin and then its argument prototype would still apply. */
  9573. char gettext();
  9574. int main() {
  9575. /* The GNU C library defines this for functions which it implements
  9576. to always fail with ENOSYS. Some functions are actually named
  9577. something starting with __ and the normal name is an alias. */
  9578. #if defined (__stub_gettext) || defined (__stub___gettext)
  9579. choke me
  9580. #else
  9581. gettext();
  9582. #endif
  9583. ; return 0; }
  9584. EOF
  9585. if { (eval echo configure:12043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9586. rm -rf conftest*
  9587. eval "ac_cv_func_gettext=yes"
  9588. else
  9589. echo "configure: failed program was:" >&5
  9590. cat conftest.$ac_ext >&5
  9591. rm -rf conftest*
  9592. eval "ac_cv_func_gettext=no"
  9593. fi
  9594. rm -f conftest*
  9595. if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
  9596. echo "$ac_t""yes" 1>&6
  9597. INTLLIB=
  9598. else
  9599. echo "$ac_t""no" 1>&6
  9600. echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
  9601. echo "configure:12061: checking for gettext in -lintl" >&5
  9602. ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
  9603. ac_save_LIBS="$LIBS"
  9604. LIBS="-lintl $LIBS"
  9605. cat > conftest.$ac_ext <<EOF
  9606. #line 12067 "configure"
  9607. #include "confdefs.h"
  9608. /* Override any gcc2 internal prototype to avoid an error. */
  9609. /* We use char because int might match the return type of a gcc2
  9610. builtin and then its argument prototype would still apply. */
  9611. char gettext();
  9612. int main() {
  9613. gettext()
  9614. ; return 0; }
  9615. EOF
  9616. if { (eval echo configure:12078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9617. rm -rf conftest*
  9618. eval "ac_cv_lib_$ac_lib_var=yes"
  9619. else
  9620. echo "configure: failed program was:" >&5
  9621. cat conftest.$ac_ext >&5
  9622. rm -rf conftest*
  9623. eval "ac_cv_lib_$ac_lib_var=no"
  9624. fi
  9625. rm -f conftest*
  9626. LIBS="$ac_save_LIBS"
  9627. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9628. echo "$ac_t""yes" 1>&6
  9629. INTLLIB=-lintl
  9630. else
  9631. echo "$ac_t""no" 1>&6
  9632. { echo "configure: error: *** Unable to locate gettext() function." 1>&2; exit 1; }
  9633. fi
  9634. fi
  9635. HAVE_NLS=1
  9636. fi
  9637. # Enable C++ option
  9638. echo $ac_n "checking whether to use C++""... $ac_c" 1>&6
  9639. echo "configure:12113: checking whether to use C++" >&5
  9640. echo "$ac_t"""$with_cxx"" 1>&6
  9641. case "$with_cxx" in
  9642. "no") USE_CXX= ;;
  9643. "yes") USE_CXX="1" ;;
  9644. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9645. esac
  9646. if test -n "$USE_CXX"; then
  9647. for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
  9648. do
  9649. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9650. set dummy $ac_prog; ac_word=$2
  9651. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  9652. echo "configure:12129: checking for $ac_word" >&5
  9653. if test -n "$CXX"; then
  9654. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  9655. else
  9656. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  9657. ac_dummy="$PATH"
  9658. for ac_dir in $ac_dummy; do
  9659. test -z "$ac_dir" && ac_dir=.
  9660. if test -f $ac_dir/$ac_word; then
  9661. ac_cv_prog_CXX="$ac_prog"
  9662. break
  9663. fi
  9664. done
  9665. IFS="$ac_save_ifs"
  9666. fi
  9667. CXX="$ac_cv_prog_CXX"
  9668. if test -n "$CXX"; then
  9669. echo "$ac_t""$CXX" 1>&6
  9670. else
  9671. echo "$ac_t""no" 1>&6
  9672. fi
  9673. test -n "$CXX" && break
  9674. done
  9675. test -n "$CXX" || CXX="gcc"
  9676. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  9677. echo "configure:12158: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  9678. ac_ext=C
  9679. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  9680. ac_cpp='$CXXCPP $CPPFLAGS'
  9681. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  9682. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  9683. cross_compiling=$ac_cv_prog_cxx_cross
  9684. cat > conftest.$ac_ext << EOF
  9685. #line 12169 "configure"
  9686. #include "confdefs.h"
  9687. int main(){return(0);}
  9688. EOF
  9689. if { (eval echo configure:12174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9690. ac_cv_prog_cxx_works=yes
  9691. # If we can't run a trivial program, we are probably using a cross compiler.
  9692. if (./conftest; exit) 2>/dev/null; then
  9693. ac_cv_prog_cxx_cross=no
  9694. else
  9695. ac_cv_prog_cxx_cross=yes
  9696. fi
  9697. else
  9698. echo "configure: failed program was:" >&5
  9699. cat conftest.$ac_ext >&5
  9700. ac_cv_prog_cxx_works=no
  9701. fi
  9702. rm -fr conftest*
  9703. ac_ext=c
  9704. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  9705. ac_cpp='$CPP $CPPFLAGS'
  9706. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  9707. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  9708. cross_compiling=$ac_cv_prog_cc_cross
  9709. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  9710. if test $ac_cv_prog_cxx_works = no; then
  9711. { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  9712. fi
  9713. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  9714. echo "configure:12200: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  9715. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  9716. cross_compiling=$ac_cv_prog_cxx_cross
  9717. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  9718. echo "configure:12205: checking whether we are using GNU C++" >&5
  9719. cat > conftest.C <<EOF
  9720. #ifdef __GNUC__
  9721. yes;
  9722. #endif
  9723. EOF
  9724. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:12212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  9725. ac_cv_prog_gxx=yes
  9726. else
  9727. ac_cv_prog_gxx=no
  9728. fi
  9729. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  9730. if test $ac_cv_prog_gxx = yes; then
  9731. GXX=yes
  9732. else
  9733. GXX=
  9734. fi
  9735. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  9736. ac_save_CXXFLAGS="$CXXFLAGS"
  9737. CXXFLAGS=
  9738. echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  9739. echo "configure:12230: checking whether ${CXX-g++} accepts -g" >&5
  9740. echo 'void f(){}' > conftest.cc
  9741. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  9742. ac_cv_prog_cxx_g=yes
  9743. else
  9744. ac_cv_prog_cxx_g=no
  9745. fi
  9746. rm -f conftest*
  9747. echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  9748. if test "$ac_test_CXXFLAGS" = set; then
  9749. CXXFLAGS="$ac_save_CXXFLAGS"
  9750. elif test $ac_cv_prog_cxx_g = yes; then
  9751. if test "$GXX" = yes; then
  9752. CXXFLAGS="-g -O2"
  9753. else
  9754. CXXFLAGS="-g"
  9755. fi
  9756. else
  9757. if test "$GXX" = yes; then
  9758. CXXFLAGS="-O2"
  9759. else
  9760. CXXFLAGS=
  9761. fi
  9762. fi
  9763. else
  9764. CXX=
  9765. CXXFLAGS=
  9766. fi
  9767. # Done checking C++
  9768. # Enable openDWG option
  9769. echo $ac_n "checking whether to use openDWG""... $ac_c" 1>&6
  9770. echo "configure:12271: checking whether to use openDWG" >&5
  9771. echo "$ac_t"""$with_opendwg"" 1>&6
  9772. case "$with_opendwg" in
  9773. "no") USE_OPENDWG= ;;
  9774. "yes") USE_OPENDWG="1" ;;
  9775. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9776. esac
  9777. OPENDWGINCPATH=
  9778. OPENDWGLIBPATH=
  9779. OPENDWGLIB=
  9780. if test -n "${USE_OPENDWG}"; then
  9781. # With OPENDWG includes directory
  9782. echo $ac_n "checking for location of openDGW includes""... $ac_c" 1>&6
  9783. echo "configure:12291: checking for location of openDGW includes" >&5
  9784. case "$with_opendwg_includes" in
  9785. y | ye | yes | n | no)
  9786. { echo "configure: error: *** You must supply a directory to --with-opendwg-includes." 1>&2; exit 1; }
  9787. ;;
  9788. esac
  9789. echo "$ac_t""$with_opendwg_includes" 1>&6
  9790. if test -n "$with_opendwg_includes" ; then
  9791. for dir in $with_opendwg_includes; do
  9792. if test -d "$dir"; then
  9793. OPENDWGINCPATH="$OPENDWGINCPATH -I$dir"
  9794. else
  9795. { echo "configure: error: *** openDGW includes directory $dir does not exist." 1>&2; exit 1; }
  9796. fi
  9797. done
  9798. fi
  9799. ac_save_cppflags="$CPPFLAGS"
  9800. CPPFLAGS="$OPENDWGINCPATH $CPPFLAGS"
  9801. for ac_hdr in ad2.h
  9802. do
  9803. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9804. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9805. echo "configure:12317: checking for $ac_hdr" >&5
  9806. cat > conftest.$ac_ext <<EOF
  9807. #line 12320 "configure"
  9808. #include "confdefs.h"
  9809. #include <$ac_hdr>
  9810. EOF
  9811. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9812. { (eval echo configure:12325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9813. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9814. if test -z "$ac_err"; then
  9815. rm -rf conftest*
  9816. eval "ac_cv_header_$ac_safe=yes"
  9817. else
  9818. echo "$ac_err" >&5
  9819. echo "configure: failed program was:" >&5
  9820. cat conftest.$ac_ext >&5
  9821. rm -rf conftest*
  9822. eval "ac_cv_header_$ac_safe=no"
  9823. fi
  9824. rm -f conftest*
  9825. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9826. echo "$ac_t""yes" 1>&6
  9827. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9828. cat >> confdefs.h <<EOF
  9829. #define $ac_tr_hdr 1
  9830. EOF
  9831. else
  9832. echo "$ac_t""no" 1>&6
  9833. { echo "configure: error: *** Unable to locate openDWG includes." 1>&2; exit 1; }
  9834. fi
  9835. done
  9836. CPPFLAGS=$ac_save_cppflags
  9837. # With OPENDWG library directory
  9838. echo $ac_n "checking for location of openDWG library""... $ac_c" 1>&6
  9839. echo "configure:12359: checking for location of openDWG library" >&5
  9840. case "$with_opendwg_libs" in
  9841. y | ye | yes | n | no)
  9842. { echo "configure: error: *** You must supply a directory to --with-opendwg-libs." 1>&2; exit 1; }
  9843. ;;
  9844. esac
  9845. echo "$ac_t""$with_opendwg_libs" 1>&6
  9846. if test -n "$with_opendwg_libs"; then
  9847. for dir in $with_opendwg_libs; do
  9848. if test -d "$dir"; then
  9849. OPENDWGLIBPATH="$OPENDWGLIBPATH -L$dir"
  9850. else
  9851. { echo "configure: error: *** openDWG library directory $dir does not exist." 1>&2; exit 1; }
  9852. fi
  9853. done
  9854. fi
  9855. #search for ad2.a, ad3.a ... in openDWG toolkit directory:
  9856. #FIX ME how to program this test??
  9857. #LOC_CHECK_LIBS(ad?.a,adSeekLayer,openDWG,$OPENDWGLIBPATH,OPENDWGLIB,,)
  9858. #
  9859. #for now hack (but working):
  9860. TRUEOPENDWGLIBPATH=`echo "$OPENDWGLIBPATH" | cut -b3-`
  9861. adlib=`ls -1 "$TRUEOPENDWGLIBPATH"/ad?.a | tail -1`
  9862. OPENDWGLIB="$adlib"
  9863. fi # $USE_OPENDWG
  9864. # Done checking OPENDWG
  9865. # Enable pthread option
  9866. echo $ac_n "checking whether to use POSIX threads""... $ac_c" 1>&6
  9867. echo "configure:12400: checking whether to use POSIX threads" >&5
  9868. echo "$ac_t"""$with_pthread"" 1>&6
  9869. case "$with_pthread" in
  9870. "no") USE_PTHREAD= ;;
  9871. "yes") USE_PTHREAD="1" ;;
  9872. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9873. esac
  9874. PTHREADINCPATH=
  9875. PTHREADLIBPATH=
  9876. PTHREADLIB=
  9877. if test -n "$USE_PTHREAD"; then
  9878. # With pthread includes directory
  9879. echo $ac_n "checking for location of POSIX threads includes""... $ac_c" 1>&6
  9880. echo "configure:12420: checking for location of POSIX threads includes" >&5
  9881. case "$with_pthread_includes" in
  9882. y | ye | yes | n | no)
  9883. { echo "configure: error: *** You must supply a directory to --with-pthread-includes." 1>&2; exit 1; }
  9884. ;;
  9885. esac
  9886. echo "$ac_t""$with_pthread_includes" 1>&6
  9887. if test -n "$with_pthread_includes" ; then
  9888. for dir in $with_pthread_includes; do
  9889. if test -d "$dir"; then
  9890. PTHREADINCPATH="$PTHREADINCPATH -I$dir"
  9891. else
  9892. { echo "configure: error: *** POSIX threads includes directory $dir does not exist." 1>&2; exit 1; }
  9893. fi
  9894. done
  9895. fi
  9896. ac_save_cppflags="$CPPFLAGS"
  9897. CPPFLAGS="$PTHREADINCPATH $CPPFLAGS"
  9898. for ac_hdr in pthread.h
  9899. do
  9900. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9901. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9902. echo "configure:12446: checking for $ac_hdr" >&5
  9903. cat > conftest.$ac_ext <<EOF
  9904. #line 12449 "configure"
  9905. #include "confdefs.h"
  9906. #include <$ac_hdr>
  9907. EOF
  9908. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9909. { (eval echo configure:12454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9910. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9911. if test -z "$ac_err"; then
  9912. rm -rf conftest*
  9913. eval "ac_cv_header_$ac_safe=yes"
  9914. else
  9915. echo "$ac_err" >&5
  9916. echo "configure: failed program was:" >&5
  9917. cat conftest.$ac_ext >&5
  9918. rm -rf conftest*
  9919. eval "ac_cv_header_$ac_safe=no"
  9920. fi
  9921. rm -f conftest*
  9922. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9923. echo "$ac_t""yes" 1>&6
  9924. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9925. cat >> confdefs.h <<EOF
  9926. #define $ac_tr_hdr 1
  9927. EOF
  9928. else
  9929. echo "$ac_t""no" 1>&6
  9930. { echo "configure: error: *** Unable to locate POSIX threads includes." 1>&2; exit 1; }
  9931. fi
  9932. done
  9933. CPPFLAGS=$ac_save_cppflags
  9934. # With pthread library directory
  9935. echo $ac_n "checking for location of POSIX threads library""... $ac_c" 1>&6
  9936. echo "configure:12488: checking for location of POSIX threads library" >&5
  9937. case "$with_pthread_libs" in
  9938. y | ye | yes | n | no)
  9939. { echo "configure: error: *** You must supply a directory to --with-pthread-libs." 1>&2; exit 1; }
  9940. ;;
  9941. esac
  9942. echo "$ac_t""$with_pthread_libs" 1>&6
  9943. if test -n "$with_pthread_libs"; then
  9944. for dir in $with_pthread_libs; do
  9945. if test -d "$dir"; then
  9946. PTHREADLIBPATH="$PTHREADLIBPATH -L$dir"
  9947. else
  9948. { echo "configure: error: *** POSIX threads library directory $dir does not exist." 1>&2; exit 1; }
  9949. fi
  9950. done
  9951. fi
  9952. ac_save_libs="$LIBS"
  9953. ac_save_ldflags="$LDFLAGS"
  9954. LIBS=" $LIBS"
  9955. LDFLAGS=" $LDFLAGS"
  9956. echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
  9957. echo "configure:12513: checking for pthread_create" >&5
  9958. cat > conftest.$ac_ext <<EOF
  9959. #line 12516 "configure"
  9960. #include "confdefs.h"
  9961. /* System header to define __stub macros and hopefully few prototypes,
  9962. which can conflict with char pthread_create(); below. */
  9963. #include <assert.h>
  9964. /* Override any gcc2 internal prototype to avoid an error. */
  9965. /* We use char because int might match the return type of a gcc2
  9966. builtin and then its argument prototype would still apply. */
  9967. char pthread_create();
  9968. int main() {
  9969. /* The GNU C library defines this for functions which it implements
  9970. to always fail with ENOSYS. Some functions are actually named
  9971. something starting with __ and the normal name is an alias. */
  9972. #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
  9973. choke me
  9974. #else
  9975. pthread_create();
  9976. #endif
  9977. ; return 0; }
  9978. EOF
  9979. if { (eval echo configure:12539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9980. rm -rf conftest*
  9981. eval "ac_cv_func_pthread_create=yes"
  9982. else
  9983. echo "configure: failed program was:" >&5
  9984. cat conftest.$ac_ext >&5
  9985. rm -rf conftest*
  9986. eval "ac_cv_func_pthread_create=no"
  9987. fi
  9988. rm -f conftest*
  9989. if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
  9990. echo "$ac_t""yes" 1>&6
  9991. PTHREADLIB="$PTHREADLIB "
  9992. else
  9993. echo "$ac_t""no" 1>&6
  9994. ac_save_ldflags="$LDFLAGS"
  9995. LDFLAGS="$PTHREADLIBPATH $LDFLAGS"
  9996. echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
  9997. echo "configure:12566: checking for pthread_create in -lpthread" >&5
  9998. ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
  9999. ac_save_LIBS="$LIBS"
  10000. LIBS="-lpthread $LIBS"
  10001. cat > conftest.$ac_ext <<EOF
  10002. #line 12572 "configure"
  10003. #include "confdefs.h"
  10004. /* Override any gcc2 internal prototype to avoid an error. */
  10005. /* We use char because int might match the return type of a gcc2
  10006. builtin and then its argument prototype would still apply. */
  10007. char pthread_create();
  10008. int main() {
  10009. pthread_create()
  10010. ; return 0; }
  10011. EOF
  10012. if { (eval echo configure:12583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10013. rm -rf conftest*
  10014. eval "ac_cv_lib_$ac_lib_var=yes"
  10015. else
  10016. echo "configure: failed program was:" >&5
  10017. cat conftest.$ac_ext >&5
  10018. rm -rf conftest*
  10019. eval "ac_cv_lib_$ac_lib_var=no"
  10020. fi
  10021. rm -f conftest*
  10022. LIBS="$ac_save_LIBS"
  10023. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10024. echo "$ac_t""yes" 1>&6
  10025. PTHREADLIB="$PTHREADLIB -lpthread "
  10026. else
  10027. echo "$ac_t""no" 1>&6
  10028. LDFLAGS=${ac_save_ldflags}
  10029. { echo "configure: error: *** Unable to locate POSIX threads library." 1>&2; exit 1; }
  10030. fi
  10031. LDFLAGS=${ac_save_ldflags}
  10032. fi
  10033. LIBS=${ac_save_libs}
  10034. LDFLAGS=${ac_save_ldflags}
  10035. fi # $USE_PTHREAD
  10036. # Done checking pthread
  10037. # Enable OpenMP option
  10038. echo $ac_n "checking whether to use OpenMP""... $ac_c" 1>&6
  10039. echo "configure:12633: checking whether to use OpenMP" >&5
  10040. echo "$ac_t"""$with_openmp"" 1>&6
  10041. case "$with_openmp" in
  10042. "no") USE_OPENMP= ;;
  10043. "yes") USE_OPENMP="1" ;;
  10044. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10045. esac
  10046. OMPINCPATH=
  10047. OMPLIBPATH=
  10048. OMPLIB=
  10049. OMPCFLAGS=
  10050. if test -n "$USE_OPENMP"; then
  10051. # With OpenMP includes directory
  10052. echo $ac_n "checking for location of OpenMP includes""... $ac_c" 1>&6
  10053. echo "configure:12654: checking for location of OpenMP includes" >&5
  10054. case "$with_openmp_includes" in
  10055. y | ye | yes | n | no)
  10056. { echo "configure: error: *** You must supply a directory to --with-openmp-includes." 1>&2; exit 1; }
  10057. ;;
  10058. esac
  10059. echo "$ac_t""$with_openmp_includes" 1>&6
  10060. if test -n "$with_openmp_includes" ; then
  10061. for dir in $with_openmp_includes; do
  10062. if test -d "$dir"; then
  10063. OMPINCPATH="$OMPINCPATH -I$dir"
  10064. else
  10065. { echo "configure: error: *** OpenMP includes directory $dir does not exist." 1>&2; exit 1; }
  10066. fi
  10067. done
  10068. fi
  10069. ac_save_cppflags="$CPPFLAGS"
  10070. CPPFLAGS="$OMPINCPATH $CPPFLAGS"
  10071. for ac_hdr in omp.h
  10072. do
  10073. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10074. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10075. echo "configure:12680: checking for $ac_hdr" >&5
  10076. cat > conftest.$ac_ext <<EOF
  10077. #line 12683 "configure"
  10078. #include "confdefs.h"
  10079. #include <$ac_hdr>
  10080. EOF
  10081. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10082. { (eval echo configure:12688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10083. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10084. if test -z "$ac_err"; then
  10085. rm -rf conftest*
  10086. eval "ac_cv_header_$ac_safe=yes"
  10087. else
  10088. echo "$ac_err" >&5
  10089. echo "configure: failed program was:" >&5
  10090. cat conftest.$ac_ext >&5
  10091. rm -rf conftest*
  10092. eval "ac_cv_header_$ac_safe=no"
  10093. fi
  10094. rm -f conftest*
  10095. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10096. echo "$ac_t""yes" 1>&6
  10097. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10098. cat >> confdefs.h <<EOF
  10099. #define $ac_tr_hdr 1
  10100. EOF
  10101. else
  10102. echo "$ac_t""no" 1>&6
  10103. { echo "configure: error: *** Unable to locate OpenMP includes." 1>&2; exit 1; }
  10104. fi
  10105. done
  10106. CPPFLAGS=$ac_save_cppflags
  10107. # With OpenMP library directory
  10108. # GCC et al.: -lgomp
  10109. # Solaris cc: -lmtsk
  10110. # AIX xlc: -lxlsmp
  10111. # SGI IRIX 6.5 MIPSpro C/C++: -lmp
  10112. echo $ac_n "checking for location of OpenMP library""... $ac_c" 1>&6
  10113. echo "configure:12726: checking for location of OpenMP library" >&5
  10114. case "$with_gomp_libs" in
  10115. y | ye | yes | n | no)
  10116. { echo "configure: error: *** You must supply a directory to --with-gomp-libs." 1>&2; exit 1; }
  10117. ;;
  10118. esac
  10119. echo "$ac_t""$with_gomp_libs" 1>&6
  10120. if test -n "$with_gomp_libs"; then
  10121. for dir in $with_gomp_libs; do
  10122. if test -d "$dir"; then
  10123. OMPLIBPATH="$OMPLIBPATH -L$dir"
  10124. else
  10125. { echo "configure: error: *** OpenMP library directory $dir does not exist." 1>&2; exit 1; }
  10126. fi
  10127. done
  10128. fi
  10129. ac_save_libs="$LIBS"
  10130. ac_save_ldflags="$LDFLAGS"
  10131. LIBS=" $LIBS"
  10132. LDFLAGS=" $LDFLAGS"
  10133. echo $ac_n "checking for GOMP_parallel_start""... $ac_c" 1>&6
  10134. echo "configure:12751: checking for GOMP_parallel_start" >&5
  10135. cat > conftest.$ac_ext <<EOF
  10136. #line 12754 "configure"
  10137. #include "confdefs.h"
  10138. /* System header to define __stub macros and hopefully few prototypes,
  10139. which can conflict with char GOMP_parallel_start(); below. */
  10140. #include <assert.h>
  10141. /* Override any gcc2 internal prototype to avoid an error. */
  10142. /* We use char because int might match the return type of a gcc2
  10143. builtin and then its argument prototype would still apply. */
  10144. char GOMP_parallel_start();
  10145. int main() {
  10146. /* The GNU C library defines this for functions which it implements
  10147. to always fail with ENOSYS. Some functions are actually named
  10148. something starting with __ and the normal name is an alias. */
  10149. #if defined (__stub_GOMP_parallel_start) || defined (__stub___GOMP_parallel_start)
  10150. choke me
  10151. #else
  10152. GOMP_parallel_start();
  10153. #endif
  10154. ; return 0; }
  10155. EOF
  10156. if { (eval echo configure:12777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10157. rm -rf conftest*
  10158. eval "ac_cv_func_GOMP_parallel_start=yes"
  10159. else
  10160. echo "configure: failed program was:" >&5
  10161. cat conftest.$ac_ext >&5
  10162. rm -rf conftest*
  10163. eval "ac_cv_func_GOMP_parallel_start=no"
  10164. fi
  10165. rm -f conftest*
  10166. if eval "test \"`echo '$ac_cv_func_'GOMP_parallel_start`\" = yes"; then
  10167. echo "$ac_t""yes" 1>&6
  10168. OMPLIB="$OMPLIB "
  10169. else
  10170. echo "$ac_t""no" 1>&6
  10171. ac_save_ldflags="$LDFLAGS"
  10172. LDFLAGS="$OMPLIBPATH $LDFLAGS"
  10173. echo $ac_n "checking for GOMP_parallel_start in -lgomp""... $ac_c" 1>&6
  10174. echo "configure:12804: checking for GOMP_parallel_start in -lgomp" >&5
  10175. ac_lib_var=`echo gomp'_'GOMP_parallel_start | sed 'y%./+-%__p_%'`
  10176. ac_save_LIBS="$LIBS"
  10177. LIBS="-lgomp $LIBS"
  10178. cat > conftest.$ac_ext <<EOF
  10179. #line 12810 "configure"
  10180. #include "confdefs.h"
  10181. /* Override any gcc2 internal prototype to avoid an error. */
  10182. /* We use char because int might match the return type of a gcc2
  10183. builtin and then its argument prototype would still apply. */
  10184. char GOMP_parallel_start();
  10185. int main() {
  10186. GOMP_parallel_start()
  10187. ; return 0; }
  10188. EOF
  10189. if { (eval echo configure:12821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10190. rm -rf conftest*
  10191. eval "ac_cv_lib_$ac_lib_var=yes"
  10192. else
  10193. echo "configure: failed program was:" >&5
  10194. cat conftest.$ac_ext >&5
  10195. rm -rf conftest*
  10196. eval "ac_cv_lib_$ac_lib_var=no"
  10197. fi
  10198. rm -f conftest*
  10199. LIBS="$ac_save_LIBS"
  10200. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10201. echo "$ac_t""yes" 1>&6
  10202. OMPLIB="$OMPLIB -lgomp "
  10203. else
  10204. echo "$ac_t""no" 1>&6
  10205. LDFLAGS=${ac_save_ldflags}
  10206. { echo "configure: error: *** Unable to locate OpenMP library." 1>&2; exit 1; }
  10207. fi
  10208. LDFLAGS=${ac_save_ldflags}
  10209. fi
  10210. LIBS=${ac_save_libs}
  10211. LDFLAGS=${ac_save_ldflags}
  10212. # compiler dependent
  10213. #if test ${CC} = "gcc" ; then
  10214. if test x$GCC = xyes ; then
  10215. # GNU C compiler (>= 4.2.1)
  10216. OMPCFLAGS=-fopenmp
  10217. elif test ${CC} = "icc" ; then
  10218. # Intel compiler
  10219. OMPCFLAGS=-openmp
  10220. elif test ${CC} = "opencc" ; then
  10221. # AMD's x86 Open64 compiler
  10222. OMPCFLAGS=-mp
  10223. elif test ${CC} = "pgcc" ; then
  10224. # Portland Group's compiler
  10225. OMPCFLAGS=-mp
  10226. # ... anybody else?
  10227. fi
  10228. # try to build a test program with "$CC $OMPCLFAGS" to confirm it works
  10229. #...how?
  10230. #echo "int main() {return 0;}" > test.c
  10231. #$CC $OMPCLFAGS test.c -o test
  10232. fi # $USE_OPENMP
  10233. # Done checking OpenMP
  10234. # Enable LFS (from cdr-tools)
  10235. # Check whether --enable-largefile or --disable-largefile was given.
  10236. if test "${enable_largefile+set}" = set; then
  10237. enableval="$enable_largefile"
  10238. :
  10239. fi
  10240. if test "$enable_largefile" = yes; then
  10241. echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
  10242. echo "configure:12900: checking for special C compiler options needed for large files" >&5
  10243. ac_cv_sys_largefile_CC=no
  10244. largefile_cc_opt=""
  10245. if test "$GCC" != yes; then
  10246. # IRIX 6.2 and later do not support large files by default,
  10247. # so use the C compiler's -n32 option if that helps.
  10248. cat > conftest.$ac_ext <<EOF
  10249. #line 12908 "configure"
  10250. #include "confdefs.h"
  10251. #include <sys/types.h>
  10252. /* Check that off_t can represent 2**63 - 1 correctly.
  10253. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10254. since some C++ compilers masquerading as C compilers
  10255. incorrectly reject 9223372036854775807. */
  10256. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10257. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10258. && LARGE_OFF_T % 2147483647 == 1)
  10259. ? 1 : -1];
  10260. int main() {
  10261. ; return 0; }
  10262. EOF
  10263. if { (eval echo configure:12924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10264. :
  10265. else
  10266. echo "configure: failed program was:" >&5
  10267. cat conftest.$ac_ext >&5
  10268. rm -rf conftest*
  10269. ac_save_CC="${CC-cc}"
  10270. CC="$CC -n32"
  10271. cat > conftest.$ac_ext <<EOF
  10272. #line 12933 "configure"
  10273. #include "confdefs.h"
  10274. #include <sys/types.h>
  10275. /* Check that off_t can represent 2**63 - 1 correctly.
  10276. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10277. since some C++ compilers masquerading as C compilers
  10278. incorrectly reject 9223372036854775807. */
  10279. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10280. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10281. && LARGE_OFF_T % 2147483647 == 1)
  10282. ? 1 : -1];
  10283. int main() {
  10284. ; return 0; }
  10285. EOF
  10286. if { (eval echo configure:12949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10287. rm -rf conftest*
  10288. ac_cv_sys_largefile_CC=' -n32'
  10289. else
  10290. echo "configure: failed program was:" >&5
  10291. cat conftest.$ac_ext >&5
  10292. fi
  10293. rm -f conftest*
  10294. CC="$ac_save_CC"
  10295. fi
  10296. rm -f conftest*
  10297. fi
  10298. echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6
  10299. if test "$ac_cv_sys_largefile_CC" != no; then
  10300. CC="$CC$ac_cv_sys_largefile_CC"
  10301. largefile_cc_opt="$ac_cv_sys_largefile_CC"
  10302. fi
  10303. echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
  10304. echo "configure:12969: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  10305. ac_cv_sys_file_offset_bits=no
  10306. cat > conftest.$ac_ext <<EOF
  10307. #line 12973 "configure"
  10308. #include "confdefs.h"
  10309. #include <sys/types.h>
  10310. /* Check that off_t can represent 2**63 - 1 correctly.
  10311. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10312. since some C++ compilers masquerading as C compilers
  10313. incorrectly reject 9223372036854775807. */
  10314. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10315. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10316. && LARGE_OFF_T % 2147483647 == 1)
  10317. ? 1 : -1];
  10318. int main() {
  10319. ; return 0; }
  10320. EOF
  10321. if { (eval echo configure:12989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10322. :
  10323. else
  10324. echo "configure: failed program was:" >&5
  10325. cat conftest.$ac_ext >&5
  10326. rm -rf conftest*
  10327. cat > conftest.$ac_ext <<EOF
  10328. #line 12996 "configure"
  10329. #include "confdefs.h"
  10330. #define _FILE_OFFSET_BITS 64
  10331. #include <sys/types.h>
  10332. /* Check that off_t can represent 2**63 - 1 correctly.
  10333. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10334. since some C++ compilers masquerading as C compilers
  10335. incorrectly reject 9223372036854775807. */
  10336. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10337. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10338. && LARGE_OFF_T % 2147483647 == 1)
  10339. ? 1 : -1];
  10340. int main() {
  10341. ; return 0; }
  10342. EOF
  10343. if { (eval echo configure:13014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10344. rm -rf conftest*
  10345. ac_cv_sys_file_offset_bits=64
  10346. else
  10347. echo "configure: failed program was:" >&5
  10348. cat conftest.$ac_ext >&5
  10349. fi
  10350. rm -f conftest*
  10351. fi
  10352. rm -f conftest*
  10353. echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
  10354. if test "$ac_cv_sys_file_offset_bits" != no; then
  10355. cat >> confdefs.h <<EOF
  10356. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  10357. EOF
  10358. fi
  10359. echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
  10360. echo "configure:13033: checking for _LARGE_FILES value needed for large files" >&5
  10361. ac_cv_sys_large_files=no
  10362. cat > conftest.$ac_ext <<EOF
  10363. #line 13037 "configure"
  10364. #include "confdefs.h"
  10365. #include <sys/types.h>
  10366. /* Check that off_t can represent 2**63 - 1 correctly.
  10367. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10368. since some C++ compilers masquerading as C compilers
  10369. incorrectly reject 9223372036854775807. */
  10370. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10371. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10372. && LARGE_OFF_T % 2147483647 == 1)
  10373. ? 1 : -1];
  10374. int main() {
  10375. ; return 0; }
  10376. EOF
  10377. if { (eval echo configure:13053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10378. :
  10379. else
  10380. echo "configure: failed program was:" >&5
  10381. cat conftest.$ac_ext >&5
  10382. rm -rf conftest*
  10383. cat > conftest.$ac_ext <<EOF
  10384. #line 13060 "configure"
  10385. #include "confdefs.h"
  10386. #define _LARGE_FILES 1
  10387. #include <sys/types.h>
  10388. /* Check that off_t can represent 2**63 - 1 correctly.
  10389. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10390. since some C++ compilers masquerading as C compilers
  10391. incorrectly reject 9223372036854775807. */
  10392. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10393. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10394. && LARGE_OFF_T % 2147483647 == 1)
  10395. ? 1 : -1];
  10396. int main() {
  10397. ; return 0; }
  10398. EOF
  10399. if { (eval echo configure:13078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10400. rm -rf conftest*
  10401. ac_cv_sys_large_files=1
  10402. else
  10403. echo "configure: failed program was:" >&5
  10404. cat conftest.$ac_ext >&5
  10405. fi
  10406. rm -f conftest*
  10407. fi
  10408. rm -f conftest*
  10409. echo "$ac_t""$ac_cv_sys_large_files" 1>&6
  10410. if test "$ac_cv_sys_large_files" != no; then
  10411. cat >> confdefs.h <<EOF
  10412. #define _LARGE_FILES $ac_cv_sys_large_files
  10413. EOF
  10414. fi
  10415. echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
  10416. echo "configure:13097: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  10417. ac_cv_sys_largefile_source=no
  10418. cat > conftest.$ac_ext <<EOF
  10419. #line 13101 "configure"
  10420. #include "confdefs.h"
  10421. #include <stdio.h>
  10422. int main() {
  10423. return !fseeko;
  10424. ; return 0; }
  10425. EOF
  10426. if { (eval echo configure:13108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10427. :
  10428. else
  10429. echo "configure: failed program was:" >&5
  10430. cat conftest.$ac_ext >&5
  10431. rm -rf conftest*
  10432. cat > conftest.$ac_ext <<EOF
  10433. #line 13115 "configure"
  10434. #include "confdefs.h"
  10435. #define _LARGEFILE_SOURCE 1
  10436. #include <stdio.h>
  10437. int main() {
  10438. return !fseeko;
  10439. ; return 0; }
  10440. EOF
  10441. if { (eval echo configure:13124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10442. rm -rf conftest*
  10443. ac_cv_sys_largefile_source=1
  10444. else
  10445. echo "configure: failed program was:" >&5
  10446. cat conftest.$ac_ext >&5
  10447. fi
  10448. rm -f conftest*
  10449. fi
  10450. rm -f conftest*
  10451. echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
  10452. if test "$ac_cv_sys_largefile_source" != no; then
  10453. cat >> confdefs.h <<EOF
  10454. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  10455. EOF
  10456. fi
  10457. fi
  10458. echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
  10459. echo "configure:13145: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  10460. ac_cv_sys_largefile_source=no
  10461. cat > conftest.$ac_ext <<EOF
  10462. #line 13149 "configure"
  10463. #include "confdefs.h"
  10464. #include <stdio.h>
  10465. int main() {
  10466. return !fseeko;
  10467. ; return 0; }
  10468. EOF
  10469. if { (eval echo configure:13156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10470. :
  10471. else
  10472. echo "configure: failed program was:" >&5
  10473. cat conftest.$ac_ext >&5
  10474. rm -rf conftest*
  10475. cat > conftest.$ac_ext <<EOF
  10476. #line 13163 "configure"
  10477. #include "confdefs.h"
  10478. #define _LARGEFILE_SOURCE 1
  10479. #include <stdio.h>
  10480. int main() {
  10481. return !fseeko;
  10482. ; return 0; }
  10483. EOF
  10484. if { (eval echo configure:13172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10485. rm -rf conftest*
  10486. ac_cv_sys_largefile_source=1
  10487. else
  10488. echo "configure: failed program was:" >&5
  10489. cat conftest.$ac_ext >&5
  10490. fi
  10491. rm -f conftest*
  10492. fi
  10493. rm -f conftest*
  10494. echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
  10495. if test "$ac_cv_sys_largefile_source" != no; then
  10496. cat >> confdefs.h <<EOF
  10497. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  10498. EOF
  10499. fi
  10500. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  10501. # in glibc 2.1.3, but that breaks too many other things.
  10502. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  10503. echo $ac_n "checking for fseeko""... $ac_c" 1>&6
  10504. echo "configure:13195: checking for fseeko" >&5
  10505. ac_cv_func_fseeko=no
  10506. cat > conftest.$ac_ext <<EOF
  10507. #line 13199 "configure"
  10508. #include "confdefs.h"
  10509. #include <stdio.h>
  10510. int main() {
  10511. return fseeko && fseeko (stdin, 0, 0);
  10512. ; return 0; }
  10513. EOF
  10514. if { (eval echo configure:13206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10515. rm -rf conftest*
  10516. ac_cv_func_fseeko=yes
  10517. else
  10518. echo "configure: failed program was:" >&5
  10519. cat conftest.$ac_ext >&5
  10520. fi
  10521. rm -f conftest*
  10522. echo "$ac_t""$ac_cv_func_fseeko" 1>&6
  10523. if test $ac_cv_func_fseeko != no; then
  10524. cat >> confdefs.h <<\EOF
  10525. #define HAVE_FSEEKO 1
  10526. EOF
  10527. fi
  10528. echo $ac_n "checking if system supports Large Files at all""... $ac_c" 1>&6
  10529. echo "configure:13223: checking if system supports Large Files at all" >&5
  10530. cat > conftest.$ac_ext <<EOF
  10531. #line 13226 "configure"
  10532. #include "confdefs.h"
  10533. #include <stdio.h>
  10534. #include <sys/types.h>
  10535. int main() {
  10536. /*
  10537. * Check that off_t can represent 2**63 - 1 correctly.
  10538. * We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10539. * since some C++ compilers masquerading as C compilers
  10540. * incorrectly reject 9223372036854775807.
  10541. *
  10542. * For MinGW, off64_t should be used and __MSVCRT_VERSION__ >= 0x0601
  10543. * (msvcrt.dll version 6.10 or higher) is needed for _fstat64 and _stat64.
  10544. */
  10545. #ifdef __MINGW32__
  10546. # define LARGE_OFF_T (((off64_t) 1 << 62) - 1 + ((off64_t) 1 << 62))
  10547. #else
  10548. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10549. #endif
  10550. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10551. && LARGE_OFF_T % 2147483647 == 1)
  10552. ? 1 : -1];
  10553. #ifdef __MINGW32__
  10554. return !fseeko64;
  10555. return !ftello64;
  10556. #else
  10557. return !fseeko;
  10558. return !ftello;
  10559. #endif
  10560. ; return 0; }
  10561. EOF
  10562. if { (eval echo configure:13258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10563. rm -rf conftest*
  10564. ac_cv_largefiles=yes
  10565. else
  10566. echo "configure: failed program was:" >&5
  10567. cat conftest.$ac_ext >&5
  10568. rm -rf conftest*
  10569. ac_cv_largefiles=no
  10570. fi
  10571. rm -f conftest*
  10572. echo "$ac_t""$ac_cv_largefiles" 1>&6
  10573. if test $ac_cv_largefiles = yes; then
  10574. cat >> confdefs.h <<\EOF
  10575. #define HAVE_LARGEFILES 1
  10576. EOF
  10577. fi
  10578. USE_LARGEFILES=
  10579. if test $ac_cv_largefiles = yes; then
  10580. USE_LARGEFILES=1
  10581. fi
  10582. # Done large file support
  10583. # Enable wxWidgets support (for wxGUI)
  10584. echo $ac_n "checking whether to use wxWidgets""... $ac_c" 1>&6
  10585. echo "configure:13287: checking whether to use wxWidgets" >&5
  10586. WXVERSION=
  10587. WXWIDGETSCXXFLAGS=
  10588. WXWIDGETSCPPFLAGS=
  10589. WXWIDGETSLIB=
  10590. USE_WXWIDGETS=
  10591. MACOSX_ARCHS_WXPYTHON=
  10592. if test "$with_wxwidgets" = "no" ; then
  10593. echo "$ac_t""no" 1>&6
  10594. else
  10595. echo "$ac_t""yes" 1>&6
  10596. USE_WXWIDGETS="1"
  10597. if test "$with_wxwidgets" != "yes" ; then
  10598. WX_CONFIG="$with_wxwidgets"
  10599. fi
  10600. # Extract the first word of "wx-config", so it can be a program name with args.
  10601. set dummy wx-config; ac_word=$2
  10602. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  10603. echo "configure:13308: checking for $ac_word" >&5
  10604. case "$WX_CONFIG" in
  10605. /*)
  10606. ac_cv_path_WX_CONFIG="$WX_CONFIG" # Let the user override the test with a path.
  10607. ;;
  10608. ?:/*)
  10609. ac_cv_path_WX_CONFIG="$WX_CONFIG" # Let the user override the test with a dos path.
  10610. ;;
  10611. *)
  10612. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  10613. ac_dummy="$PATH"
  10614. for ac_dir in $ac_dummy; do
  10615. test -z "$ac_dir" && ac_dir=.
  10616. if test -f $ac_dir/$ac_word; then
  10617. ac_cv_path_WX_CONFIG="$ac_dir/$ac_word"
  10618. break
  10619. fi
  10620. done
  10621. IFS="$ac_save_ifs"
  10622. test -z "$ac_cv_path_WX_CONFIG" && ac_cv_path_WX_CONFIG="no"
  10623. ;;
  10624. esac
  10625. WX_CONFIG="$ac_cv_path_WX_CONFIG"
  10626. if test -n "$WX_CONFIG"; then
  10627. echo "$ac_t""$WX_CONFIG" 1>&6
  10628. else
  10629. echo "$ac_t""no" 1>&6
  10630. fi
  10631. if test "$WX_CONFIG" = "no" ; then
  10632. { echo "configure: error: *** couldn't find wx-config
  10633. wxWidgets must be installed on your system.
  10634. Please check that wx-config is in path, the directory
  10635. where wxWidgets libraries are installed (returned by
  10636. 'wx-config --libs' or 'wx-config --static --libs' command)
  10637. is in LD_LIBRARY_PATH or equivalent variable and
  10638. wxWidgets version is 2.8.1 or above." 1>&2; exit 1; }
  10639. fi
  10640. # Check wxWidgets version
  10641. REQWX="2.8.1"
  10642. echo $ac_n "checking wxWidgets version""... $ac_c" 1>&6
  10643. echo "configure:13356: checking wxWidgets version" >&5
  10644. if WXVERSION=`"$WX_CONFIG" --version`; then
  10645. echo "$ac_t""$WXVERSION" 1>&6
  10646. else
  10647. echo "$ac_t""not found" 1>&6
  10648. { echo "configure: error: wxWidgets is required." 1>&2; exit 1; }
  10649. fi
  10650. if test `expr "$WXVERSION" \< "$REQWX"` = 1 ; then
  10651. { echo "configure: error: *** wxWidgets "$REQWX" or later is required." 1>&2; exit 1; }
  10652. fi
  10653. # With wxWidgets includes directory
  10654. WXWIDGETSCXXFLAGS=`"$WX_CONFIG" --cxxflags`
  10655. WXWIDGETSCPPFLAGS=`"$WX_CONFIG" --cppflags`
  10656. ac_save_cppflags="$CPPFLAGS"
  10657. CPPFLAGS="$WXWIDGETSCPPFLAGS $CPPFLAGS"
  10658. for ac_hdr in wx/wxprec.h
  10659. do
  10660. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10661. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10662. echo "configure:13379: checking for $ac_hdr" >&5
  10663. cat > conftest.$ac_ext <<EOF
  10664. #line 13382 "configure"
  10665. #include "confdefs.h"
  10666. #include <$ac_hdr>
  10667. EOF
  10668. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10669. { (eval echo configure:13387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10670. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10671. if test -z "$ac_err"; then
  10672. rm -rf conftest*
  10673. eval "ac_cv_header_$ac_safe=yes"
  10674. else
  10675. echo "$ac_err" >&5
  10676. echo "configure: failed program was:" >&5
  10677. cat conftest.$ac_ext >&5
  10678. rm -rf conftest*
  10679. eval "ac_cv_header_$ac_safe=no"
  10680. fi
  10681. rm -f conftest*
  10682. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10683. echo "$ac_t""yes" 1>&6
  10684. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10685. cat >> confdefs.h <<EOF
  10686. #define $ac_tr_hdr 1
  10687. EOF
  10688. else
  10689. echo "$ac_t""no" 1>&6
  10690. { echo "configure: error: *** Unable to locate wxWidgets includes." 1>&2; exit 1; }
  10691. fi
  10692. done
  10693. CPPFLAGS=$ac_save_cppflags
  10694. # With wxWidgets library directory
  10695. WXWIDGETSLIB=`"$WX_CONFIG" --libs`
  10696. # shouldn't have arch flags in C/LD flags on OSX
  10697. for a in i386 ppc x86_64 ppc64
  10698. do
  10699. WXWIDGETSCXXFLAGS=`echo "$WXWIDGETSCXXFLAGS" | sed "s/-arch *$a//g"`
  10700. WXWIDGETSCPPFLAGS=`echo "$WXWIDGETSCPPFLAGS" | sed "s/-arch *$a//g"`
  10701. WXWIDGETSLIB=`echo "$WXWIDGETSLIB" | sed "s/-arch *$a//g"`
  10702. done
  10703. # check for available OSX archs in wxPython
  10704. if test -n "$MACOSX_ARCHS" ; then
  10705. wxver=`"$WX_CONFIG" --version`
  10706. wxlib=`"$WX_CONFIG" --prefix`/lib/lib`"$WX_CONFIG" --basename`-`echo "$wxver" | cut -d . -f1,2`.dylib
  10707. wxlibinfo=`file "$wxlib"`
  10708. for a in i386 ppc x86_64 ppc64
  10709. do
  10710. # add only if in MACOSX_ARCHS
  10711. if test -n "`echo \"$wxlibinfo\" | grep \"library $a\"`" ; then
  10712. if test -n "`echo \"$MACOSX_ARCHS\" | grep $a`" ; then
  10713. MACOSX_ARCHS_WXPYTHON="$MACOSX_ARCHS_WXPYTHON -arch $a"
  10714. fi
  10715. fi
  10716. done
  10717. fi
  10718. fi # $USE_WXWIDGETS
  10719. # Done checking wxWidgets
  10720. USE_TERMIO=
  10721. STRIPFLAG=
  10722. GRASS_HOME="${DSTDIR}"
  10723. trap '' 1 2 15
  10724. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  10725. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10726. # Let make expand exec_prefix.
  10727. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10728. # Any assignment to VPATH causes Sun make to only execute
  10729. # the first set of double-colon rules, so remove it if not needed.
  10730. # If there is a colon in the path, we need to keep it.
  10731. if test "x$srcdir" = x.; then
  10732. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  10733. fi
  10734. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  10735. DEFS=-DHAVE_CONFIG_H
  10736. # Without the "./", some shells look in PATH for config.status.
  10737. : ${CONFIG_STATUS=./config.status}
  10738. echo creating $CONFIG_STATUS
  10739. rm -f $CONFIG_STATUS
  10740. cat > $CONFIG_STATUS <<EOF
  10741. #! /bin/sh
  10742. # Generated automatically by configure.
  10743. # Run this file to recreate the current configuration.
  10744. # This directory was configured as follows,
  10745. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  10746. #
  10747. # $0 $ac_configure_args
  10748. #
  10749. # Compiler output produced by configure, useful for debugging
  10750. # configure, is in ./config.log if it exists.
  10751. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  10752. for ac_option
  10753. do
  10754. case "\$ac_option" in
  10755. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10756. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  10757. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  10758. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  10759. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  10760. exit 0 ;;
  10761. -help | --help | --hel | --he | --h)
  10762. echo "\$ac_cs_usage"; exit 0 ;;
  10763. *) echo "\$ac_cs_usage"; exit 1 ;;
  10764. esac
  10765. done
  10766. ac_given_srcdir=$srcdir
  10767. ac_given_INSTALL="$INSTALL"
  10768. 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
  10769. EOF
  10770. cat >> $CONFIG_STATUS <<EOF
  10771. # Protect against being on the right side of a sed subst in config.status.
  10772. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  10773. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  10774. $ac_vpsub
  10775. $extrasub
  10776. s%@SHELL@%$SHELL%g
  10777. s%@CFLAGS@%$CFLAGS%g
  10778. s%@CPPFLAGS@%$CPPFLAGS%g
  10779. s%@CXXFLAGS@%$CXXFLAGS%g
  10780. s%@FFLAGS@%$FFLAGS%g
  10781. s%@DEFS@%$DEFS%g
  10782. s%@LDFLAGS@%$LDFLAGS%g
  10783. s%@LIBS@%$LIBS%g
  10784. s%@exec_prefix@%$exec_prefix%g
  10785. s%@prefix@%$prefix%g
  10786. s%@program_transform_name@%$program_transform_name%g
  10787. s%@bindir@%$bindir%g
  10788. s%@sbindir@%$sbindir%g
  10789. s%@libexecdir@%$libexecdir%g
  10790. s%@datadir@%$datadir%g
  10791. s%@sysconfdir@%$sysconfdir%g
  10792. s%@sharedstatedir@%$sharedstatedir%g
  10793. s%@localstatedir@%$localstatedir%g
  10794. s%@libdir@%$libdir%g
  10795. s%@includedir@%$includedir%g
  10796. s%@oldincludedir@%$oldincludedir%g
  10797. s%@infodir@%$infodir%g
  10798. s%@mandir@%$mandir%g
  10799. s%@host@%$host%g
  10800. s%@host_alias@%$host_alias%g
  10801. s%@host_cpu@%$host_cpu%g
  10802. s%@host_vendor@%$host_vendor%g
  10803. s%@host_os@%$host_os%g
  10804. s%@CC@%$CC%g
  10805. s%@EXEEXT@%$EXEEXT%g
  10806. s%@MINGW32@%$MINGW32%g
  10807. s%@BINDIR@%$BINDIR%g
  10808. s%@pwd@%$pwd%g
  10809. s%@SRCDIR@%$SRCDIR%g
  10810. s%@DSTDIR@%$DSTDIR%g
  10811. s%@ARCH@%$ARCH%g
  10812. s%@GISBASE@%$GISBASE%g
  10813. s%@GRASS_BIN@%$GRASS_BIN%g
  10814. s%@SVN_VERSION@%$SVN_VERSION%g
  10815. s%@GRASS_VERSION_FILE@%$GRASS_VERSION_FILE%g
  10816. s%@GRASS_VERSION_MAJOR@%$GRASS_VERSION_MAJOR%g
  10817. s%@GRASS_VERSION_MINOR@%$GRASS_VERSION_MINOR%g
  10818. s%@GRASS_VERSION_RELEASE@%$GRASS_VERSION_RELEASE%g
  10819. s%@GRASS_VERSION_NUMBER@%$GRASS_VERSION_NUMBER%g
  10820. s%@GRASS_VERSION_DATE@%$GRASS_VERSION_DATE%g
  10821. s%@GRASS_VERSION_SVN@%$GRASS_VERSION_SVN%g
  10822. s%@NAME_VER@%$NAME_VER%g
  10823. s%@LIB_VER@%$LIB_VER%g
  10824. s%@MACOSX_APP@%$MACOSX_APP%g
  10825. s%@MACOSX_ARCHS@%$MACOSX_ARCHS%g
  10826. s%@MACOSX_SDK@%$MACOSX_SDK%g
  10827. s%@INSTDIR@%$INSTDIR%g
  10828. s%@GRASS_LIBRARY_TYPE@%$GRASS_LIBRARY_TYPE%g
  10829. s%@PLAT_OBJS@%$PLAT_OBJS%g
  10830. s%@CC_SEARCH_FLAGS@%$CC_SEARCH_FLAGS%g
  10831. s%@LD_SEARCH_FLAGS@%$LD_SEARCH_FLAGS%g
  10832. s%@LD_LIBRARY_PATH_VAR@%$LD_LIBRARY_PATH_VAR%g
  10833. s%@SHLIB_LD@%$SHLIB_LD%g
  10834. s%@SHLIB_LD_FLAGS@%$SHLIB_LD_FLAGS%g
  10835. s%@SHLIB_LD_LIBS@%$SHLIB_LD_LIBS%g
  10836. s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
  10837. s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
  10838. s%@STLIB_LD@%$STLIB_LD%g
  10839. s%@STLIB_SUFFIX@%$STLIB_SUFFIX%g
  10840. s%@INCLUDE_DIRS@%$INCLUDE_DIRS%g
  10841. s%@LIBRARY_DIRS@%$LIBRARY_DIRS%g
  10842. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  10843. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  10844. s%@INSTALL_DATA@%$INSTALL_DATA%g
  10845. s%@LEX@%$LEX%g
  10846. s%@LEXLIB@%$LEXLIB%g
  10847. s%@LEXPATH@%$LEXPATH%g
  10848. s%@YACC@%$YACC%g
  10849. s%@YACCPATH@%$YACCPATH%g
  10850. s%@RANLIB@%$RANLIB%g
  10851. s%@AR@%$AR%g
  10852. s%@ENV@%$ENV%g
  10853. s%@PERL@%$PERL%g
  10854. s%@CPP@%$CPP%g
  10855. s%@CROSS_COMPILING@%$CROSS_COMPILING%g
  10856. s%@X_CFLAGS@%$X_CFLAGS%g
  10857. s%@X_LIBS@%$X_LIBS%g
  10858. s%@X_PRE_LIBS@%$X_PRE_LIBS%g
  10859. s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  10860. s%@XLIB@%$XLIB%g
  10861. s%@XTLIB@%$XTLIB%g
  10862. s%@USE_X11@%$USE_X11%g
  10863. s%@DBMIEXTRALIB@%$DBMIEXTRALIB%g
  10864. s%@HAVE_ASPRINTF@%$HAVE_ASPRINTF%g
  10865. s%@MATHLIB@%$MATHLIB%g
  10866. s%@DLLIB@%$DLLIB%g
  10867. s%@ICONVLIB@%$ICONVLIB%g
  10868. s%@SOCKLIB@%$SOCKLIB%g
  10869. s%@HAVE_SOCKET@%$HAVE_SOCKET%g
  10870. s%@ZLIBINCPATH@%$ZLIBINCPATH%g
  10871. s%@ZLIBLIBPATH@%$ZLIBLIBPATH%g
  10872. s%@ZLIB@%$ZLIB%g
  10873. s%@PROJINC@%$PROJINC%g
  10874. s%@PROJLIB@%$PROJLIB%g
  10875. s%@PROJSHARE@%$PROJSHARE%g
  10876. s%@NAD2BIN@%$NAD2BIN%g
  10877. s%@REGEXINCPATH@%$REGEXINCPATH%g
  10878. s%@REGEXLIBPATH@%$REGEXLIBPATH%g
  10879. s%@REGEXLIB@%$REGEXLIB%g
  10880. s%@USE_REGEX@%$USE_REGEX%g
  10881. s%@READLINEINCPATH@%$READLINEINCPATH%g
  10882. s%@READLINELIBPATH@%$READLINELIBPATH%g
  10883. s%@READLINELIB@%$READLINELIB%g
  10884. s%@HISTORYLIB@%$HISTORYLIB%g
  10885. s%@GDAL_CONFIG@%$GDAL_CONFIG%g
  10886. s%@GDAL_LIBS@%$GDAL_LIBS%g
  10887. s%@GDAL_CFLAGS@%$GDAL_CFLAGS%g
  10888. s%@USE_GDAL@%$USE_GDAL%g
  10889. s%@USE_OGR@%$USE_OGR%g
  10890. s%@LIBLAS_CONFIG@%$LIBLAS_CONFIG%g
  10891. s%@LIBLAS_LIBS@%$LIBLAS_LIBS%g
  10892. s%@LIBLAS_CFLAGS@%$LIBLAS_CFLAGS%g
  10893. s%@LIBLAS_INC@%$LIBLAS_INC%g
  10894. s%@USE_LIBLAS@%$USE_LIBLAS%g
  10895. s%@NETCDF_CONFIG@%$NETCDF_CONFIG%g
  10896. s%@NETCDF_LIBS@%$NETCDF_LIBS%g
  10897. s%@NETCDF_CFLAGS@%$NETCDF_CFLAGS%g
  10898. s%@USE_NETCDF@%$USE_NETCDF%g
  10899. s%@GEOS_CONFIG@%$GEOS_CONFIG%g
  10900. s%@GEOS_LIBS@%$GEOS_LIBS%g
  10901. s%@GEOS_CFLAGS@%$GEOS_CFLAGS%g
  10902. s%@USE_GEOS@%$USE_GEOS%g
  10903. s%@TIFF_INCLUDE_DIRS@%$TIFF_INCLUDE_DIRS%g
  10904. s%@TIFF_LIBRARY_DIRS@%$TIFF_LIBRARY_DIRS%g
  10905. s%@TIFFLIB@%$TIFFLIB%g
  10906. s%@PNGINC@%$PNGINC%g
  10907. s%@PNGLIB@%$PNGLIB%g
  10908. s%@USE_PNG@%$USE_PNG%g
  10909. s%@USE_POSTGRES@%$USE_POSTGRES%g
  10910. s%@PQINCPATH@%$PQINCPATH%g
  10911. s%@PQLIBPATH@%$PQLIBPATH%g
  10912. s%@PQLIB@%$PQLIB%g
  10913. s%@MYSQLD_CONFIG@%$MYSQLD_CONFIG%g
  10914. s%@USE_MYSQL@%$USE_MYSQL%g
  10915. s%@MYSQLINCPATH@%$MYSQLINCPATH%g
  10916. s%@MYSQLLIBPATH@%$MYSQLLIBPATH%g
  10917. s%@MYSQLLIB@%$MYSQLLIB%g
  10918. s%@MYSQLDLIB@%$MYSQLDLIB%g
  10919. s%@USE_SQLITE@%$USE_SQLITE%g
  10920. s%@SQLITEINCPATH@%$SQLITEINCPATH%g
  10921. s%@SQLITELIBPATH@%$SQLITELIBPATH%g
  10922. s%@SQLITELIB@%$SQLITELIB%g
  10923. s%@USE_FFMPEG@%$USE_FFMPEG%g
  10924. s%@FFMPEGINCPATH@%$FFMPEGINCPATH%g
  10925. s%@FFMPEGLIBPATH@%$FFMPEGLIBPATH%g
  10926. s%@FFMPEGLIB@%$FFMPEGLIB%g
  10927. s%@USE_OPENGL@%$USE_OPENGL%g
  10928. s%@OPENGL_X11@%$OPENGL_X11%g
  10929. s%@OPENGL_AQUA@%$OPENGL_AQUA%g
  10930. s%@OPENGL_WINDOWS@%$OPENGL_WINDOWS%g
  10931. s%@OPENGLINC@%$OPENGLINC%g
  10932. s%@OPENGLLIB@%$OPENGLLIB%g
  10933. s%@OPENGLULIB@%$OPENGLULIB%g
  10934. s%@ODBCINC@%$ODBCINC%g
  10935. s%@ODBCLIB@%$ODBCLIB%g
  10936. s%@FFTWINC@%$FFTWINC%g
  10937. s%@FFTWLIB@%$FFTWLIB%g
  10938. s%@BLASLIB@%$BLASLIB%g
  10939. s%@BLASINC@%$BLASINC%g
  10940. s%@LAPACKLIB@%$LAPACKLIB%g
  10941. s%@LAPACKINC@%$LAPACKINC%g
  10942. s%@CAIRO_HAS_XRENDER@%$CAIRO_HAS_XRENDER%g
  10943. s%@CAIRO_HAS_XRENDER_SURFACE@%$CAIRO_HAS_XRENDER_SURFACE%g
  10944. s%@CAIROINC@%$CAIROINC%g
  10945. s%@CAIROLIB@%$CAIROLIB%g
  10946. s%@USE_CAIRO@%$USE_CAIRO%g
  10947. s%@FTINC@%$FTINC%g
  10948. s%@FTLIB@%$FTLIB%g
  10949. s%@INTLLIB@%$INTLLIB%g
  10950. s%@HAVE_NLS@%$HAVE_NLS%g
  10951. s%@CXX@%$CXX%g
  10952. s%@OPENDWGINCPATH@%$OPENDWGINCPATH%g
  10953. s%@OPENDWGLIBPATH@%$OPENDWGLIBPATH%g
  10954. s%@OPENDWGLIB@%$OPENDWGLIB%g
  10955. s%@USE_OPENDWG@%$USE_OPENDWG%g
  10956. s%@PTHREADINCPATH@%$PTHREADINCPATH%g
  10957. s%@PTHREADLIBPATH@%$PTHREADLIBPATH%g
  10958. s%@PTHREADLIB@%$PTHREADLIB%g
  10959. s%@USE_PTHREAD@%$USE_PTHREAD%g
  10960. s%@OMPINCPATH@%$OMPINCPATH%g
  10961. s%@OMPLIBPATH@%$OMPLIBPATH%g
  10962. s%@OMPLIB@%$OMPLIB%g
  10963. s%@OMPCFLAGS@%$OMPCFLAGS%g
  10964. s%@USE_OPENMP@%$USE_OPENMP%g
  10965. s%@USE_LARGEFILES@%$USE_LARGEFILES%g
  10966. s%@WX_CONFIG@%$WX_CONFIG%g
  10967. s%@WXVERSION@%$WXVERSION%g
  10968. s%@WXWIDGETSCXXFLAGS@%$WXWIDGETSCXXFLAGS%g
  10969. s%@WXWIDGETSCPPFLAGS@%$WXWIDGETSCPPFLAGS%g
  10970. s%@WXWIDGETSLIB@%$WXWIDGETSLIB%g
  10971. s%@USE_WXWIDGETS@%$USE_WXWIDGETS%g
  10972. s%@MACOSX_ARCHS_WXPYTHON@%$MACOSX_ARCHS_WXPYTHON%g
  10973. s%@USE_TERMIO@%$USE_TERMIO%g
  10974. s%@STRIPFLAG@%$STRIPFLAG%g
  10975. s%@GRASS_HOME@%$GRASS_HOME%g
  10976. CEOF
  10977. EOF
  10978. cat >> $CONFIG_STATUS <<\EOF
  10979. # Split the substitutions into bite-sized pieces for seds with
  10980. # small command number limits, like on Digital OSF/1 and HP-UX.
  10981. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  10982. ac_file=1 # Number of current file.
  10983. ac_beg=1 # First line for current file.
  10984. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  10985. ac_more_lines=:
  10986. ac_sed_cmds=""
  10987. while $ac_more_lines; do
  10988. if test $ac_beg -gt 1; then
  10989. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  10990. else
  10991. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  10992. fi
  10993. if test ! -s conftest.s$ac_file; then
  10994. ac_more_lines=false
  10995. rm -f conftest.s$ac_file
  10996. else
  10997. if test -z "$ac_sed_cmds"; then
  10998. ac_sed_cmds="sed -f conftest.s$ac_file"
  10999. else
  11000. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  11001. fi
  11002. ac_file=`expr $ac_file + 1`
  11003. ac_beg=$ac_end
  11004. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  11005. fi
  11006. done
  11007. if test -z "$ac_sed_cmds"; then
  11008. ac_sed_cmds=cat
  11009. fi
  11010. EOF
  11011. cat >> $CONFIG_STATUS <<EOF
  11012. CONFIG_FILES=\${CONFIG_FILES-"include/Make/Platform.make include/Make/Doxyfile_arch_html include/Make/Doxyfile_arch_latex include/version.h grass.pc"}
  11013. EOF
  11014. cat >> $CONFIG_STATUS <<\EOF
  11015. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  11016. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11017. case "$ac_file" in
  11018. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  11019. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11020. *) ac_file_in="${ac_file}.in" ;;
  11021. esac
  11022. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  11023. # Remove last slash and all that follows it. Not all systems have dirname.
  11024. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  11025. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  11026. # The file is in a subdirectory.
  11027. test ! -d "$ac_dir" && mkdir "$ac_dir"
  11028. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  11029. # A "../" for each directory in $ac_dir_suffix.
  11030. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  11031. else
  11032. ac_dir_suffix= ac_dots=
  11033. fi
  11034. case "$ac_given_srcdir" in
  11035. .) srcdir=.
  11036. if test -z "$ac_dots"; then top_srcdir=.
  11037. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  11038. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  11039. *) # Relative path.
  11040. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  11041. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  11042. esac
  11043. case "$ac_given_INSTALL" in
  11044. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  11045. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  11046. esac
  11047. echo creating "$ac_file"
  11048. rm -f "$ac_file"
  11049. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  11050. case "$ac_file" in
  11051. *Makefile*) ac_comsub="1i\\
  11052. # $configure_input" ;;
  11053. *) ac_comsub= ;;
  11054. esac
  11055. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  11056. sed -e "$ac_comsub
  11057. s%@configure_input@%$configure_input%g
  11058. s%@srcdir@%$srcdir%g
  11059. s%@top_srcdir@%$top_srcdir%g
  11060. s%@INSTALL@%$INSTALL%g
  11061. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  11062. fi; done
  11063. rm -f conftest.s*
  11064. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11065. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11066. #
  11067. # ac_d sets the value in "#define NAME VALUE" lines.
  11068. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11069. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  11070. ac_dC='\3'
  11071. ac_dD='%g'
  11072. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  11073. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11074. ac_uB='\([ ]\)%\1#\2define\3'
  11075. ac_uC=' '
  11076. ac_uD='\4%g'
  11077. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11078. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11079. ac_eB='$%\1#\2define\3'
  11080. ac_eC=' '
  11081. ac_eD='%g'
  11082. if test "${CONFIG_HEADERS+set}" != set; then
  11083. EOF
  11084. cat >> $CONFIG_STATUS <<EOF
  11085. CONFIG_HEADERS="include/config.h"
  11086. EOF
  11087. cat >> $CONFIG_STATUS <<\EOF
  11088. fi
  11089. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  11090. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11091. case "$ac_file" in
  11092. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  11093. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11094. *) ac_file_in="${ac_file}.in" ;;
  11095. esac
  11096. echo creating $ac_file
  11097. rm -f conftest.frag conftest.in conftest.out
  11098. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  11099. cat $ac_file_inputs > conftest.in
  11100. EOF
  11101. # Transform confdefs.h into a sed script conftest.vals that substitutes
  11102. # the proper values into config.h.in to produce config.h. And first:
  11103. # Protect against being on the right side of a sed subst in config.status.
  11104. # Protect against being in an unquoted here document in config.status.
  11105. rm -f conftest.vals
  11106. cat > conftest.hdr <<\EOF
  11107. s/[\\&%]/\\&/g
  11108. s%[\\$`]%\\&%g
  11109. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  11110. s%ac_d%ac_u%gp
  11111. s%ac_u%ac_e%gp
  11112. EOF
  11113. sed -n -f conftest.hdr confdefs.h > conftest.vals
  11114. rm -f conftest.hdr
  11115. # This sed command replaces #undef with comments. This is necessary, for
  11116. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11117. # on some systems where configure will not decide to define it.
  11118. cat >> conftest.vals <<\EOF
  11119. s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  11120. EOF
  11121. # Break up conftest.vals because some shells have a limit on
  11122. # the size of here documents, and old seds have small limits too.
  11123. rm -f conftest.tail
  11124. while :
  11125. do
  11126. ac_lines=`grep -c . conftest.vals`
  11127. # grep -c gives empty output for an empty file on some AIX systems.
  11128. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  11129. # Write a limited-size here document to conftest.frag.
  11130. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  11131. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  11132. echo 'CEOF
  11133. sed -f conftest.frag conftest.in > conftest.out
  11134. rm -f conftest.in
  11135. mv conftest.out conftest.in
  11136. ' >> $CONFIG_STATUS
  11137. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  11138. rm -f conftest.vals
  11139. mv conftest.tail conftest.vals
  11140. done
  11141. rm -f conftest.vals
  11142. cat >> $CONFIG_STATUS <<\EOF
  11143. rm -f conftest.frag conftest.h
  11144. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  11145. cat conftest.in >> conftest.h
  11146. rm -f conftest.in
  11147. if cmp -s $ac_file conftest.h 2>/dev/null; then
  11148. echo "$ac_file is unchanged"
  11149. rm -f conftest.h
  11150. else
  11151. # Remove last slash and all that follows it. Not all systems have dirname.
  11152. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  11153. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  11154. # The file is in a subdirectory.
  11155. test ! -d "$ac_dir" && mkdir "$ac_dir"
  11156. fi
  11157. rm -f $ac_file
  11158. mv conftest.h $ac_file
  11159. fi
  11160. fi; done
  11161. EOF
  11162. cat >> $CONFIG_STATUS <<EOF
  11163. EOF
  11164. cat >> $CONFIG_STATUS <<\EOF
  11165. exit 0
  11166. EOF
  11167. chmod +x $CONFIG_STATUS
  11168. rm -fr confdefs* $ac_clean_files
  11169. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  11170. echo "Copying config.status to config.status.${ARCH}"
  11171. cp -f config.status config.status.${ARCH}
  11172. # Display configuration status
  11173. echo ""
  11174. echo "GRASS is now configured for: ${host}"
  11175. echo ""
  11176. echo " Source directory: ${SRCDIR}"
  11177. echo " Build directory: ${DSTDIR}"
  11178. echo " Installation directory: ${INSTDIR}"
  11179. echo " Startup script in directory:${bindir}"
  11180. echo " C compiler: ${CC} ${CFLAGS}"
  11181. echo " C++ compiler: ${CXX} ${CXXFLAGS}"
  11182. echo " Building shared libraries: ${shared_ok}"
  11183. echo " OpenGL platform: ${OPENGL_TYPE}"
  11184. echo ""
  11185. echo " MacOSX application: `if test -n "${MACOSX_APP}" ; then echo yes ; else echo no ; fi`"
  11186. echo " MacOSX architectures: ${MACOSX_ARCHS}"
  11187. echo " MacOSX SDK: ${MACOSX_SDK}"
  11188. echo ""
  11189. echo " BLAS support: `if test -n "${USE_BLAS}" ; then echo yes ; else echo no ; fi`"
  11190. echo " C++ support: `if test -n "${USE_CXX}" ; then echo yes ; else echo no ; fi`"
  11191. echo " Cairo support: `if test -n "${USE_CAIRO}" ; then echo yes ; else echo no ; fi`"
  11192. echo " DWG support: `if test -n "${USE_OPENDWG}" ; then echo yes ; else echo no ; fi`"
  11193. echo " FFMPEG support: `if test -n "${USE_FFMPEG}" ; then echo yes ; else echo no ; fi`"
  11194. echo " FFTW support: `if test -n "${USE_FFTW}" ; then echo yes ; else echo no ; fi`"
  11195. echo " FreeType support: `if test -n "${USE_FREETYPE}" ; then echo yes ; else echo no ; fi`"
  11196. echo " GDAL support: `if test -n "${USE_GDAL}" ; then echo yes ; else echo no ; fi`"
  11197. echo " NETCDF support: `if test -n "${USE_NETCDF}" ; then echo yes ; else echo no ; fi`"
  11198. echo " GEOS support: `if test -n "${USE_GEOS}" ; then echo yes ; else echo no ; fi`"
  11199. echo " LAPACK support: `if test -n "${USE_LAPACK}" ; then echo yes ; else echo no ; fi`"
  11200. echo " Large File support (LFS): `if test -n "${USE_LARGEFILES}" ; then echo yes ; else echo no ; fi`"
  11201. echo " libLAS support: `if test -n "${USE_LIBLAS}" ; then echo yes ; else echo no ; fi`"
  11202. echo " MySQL support: `if test -n "${USE_MYSQL}" ; then echo yes ; else echo no ; fi`"
  11203. echo " NLS support: `if test -n "${USE_NLS}" ; then echo yes ; else echo no ; fi`"
  11204. echo " ODBC support: `if test -n "${USE_ODBC}" ; then echo yes ; else echo no ; fi`"
  11205. echo " OGR support: `if test -n "${USE_OGR}" ; then echo yes ; else echo no ; fi`"
  11206. echo " OpenGL support: `if test -n "${USE_OPENGL}" ; then echo yes ; else echo no ; fi`"
  11207. echo " OpenMP support: `if test -n "${USE_OPENMP}" ; then echo yes ; else echo no ; fi`"
  11208. echo " PNG support: `if test -n "${USE_PNG}" ; then echo yes ; else echo no ; fi`"
  11209. echo " POSIX thread support: `if test -n "${USE_PTHREAD}" ; then echo yes ; else echo no ; fi`"
  11210. echo " PostgreSQL support: `if test -n "${USE_POSTGRES}" ; then echo yes ; else echo no ; fi`"
  11211. echo " Readline support: `if test -n "${USE_READLINE}" ; then echo yes ; else echo no ; fi`"
  11212. echo " Regex support: `if test -n "${USE_REGEX}" ; then echo yes ; else echo no ; fi`"
  11213. echo " SQLite support: `if test -n "${USE_SQLITE}" ; then echo yes ; else echo no ; fi`"
  11214. echo " TIFF support: `if test -n "${USE_TIFF}" ; then echo yes ; else echo no ; fi`"
  11215. echo " wxWidgets support: `if test -n "${USE_WXWIDGETS}" ; then echo yes ; else echo no ; fi`"
  11216. echo " X11 support: `if test -n "${USE_X11}" ; then echo yes ; else echo no ; fi`"
  11217. echo ""