configure 420 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1"
  186. if (eval "$as_required") 2>/dev/null; then :
  187. as_have_required=yes
  188. else
  189. as_have_required=no
  190. fi
  191. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  192. else
  193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  194. as_found=false
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. as_found=:
  200. case $as_dir in #(
  201. /*)
  202. for as_base in sh bash ksh sh5; do
  203. # Try only shells that exist, to save several forks.
  204. as_shell=$as_dir/$as_base
  205. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  206. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  207. CONFIG_SHELL=$as_shell as_have_required=yes
  208. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. break 2
  210. fi
  211. fi
  212. done;;
  213. esac
  214. as_found=false
  215. done
  216. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  217. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  218. CONFIG_SHELL=$SHELL as_have_required=yes
  219. fi; }
  220. IFS=$as_save_IFS
  221. if test "x$CONFIG_SHELL" != x; then :
  222. export CONFIG_SHELL
  223. # We cannot yet assume a decent shell, so we have to provide a
  224. # neutralization value for shells without unset; and this also
  225. # works around shells that cannot unset nonexistent variables.
  226. # Preserve -v and -x to the replacement shell.
  227. BASH_ENV=/dev/null
  228. ENV=/dev/null
  229. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  230. case $- in # ((((
  231. *v*x* | *x*v* ) as_opts=-vx ;;
  232. *v* ) as_opts=-v ;;
  233. *x* ) as_opts=-x ;;
  234. * ) as_opts= ;;
  235. esac
  236. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  237. # Admittedly, this is quite paranoid, since all the known shells bail
  238. # out after a failed `exec'.
  239. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  240. exit 255
  241. fi
  242. if test x$as_have_required = xno; then :
  243. $as_echo "$0: This script requires a shell more modern than all"
  244. $as_echo "$0: the shells that I found on your system."
  245. if test x${ZSH_VERSION+set} = xset ; then
  246. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  247. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  248. else
  249. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  250. $0: including any error possibly output before this
  251. $0: message. Then install a modern shell, or manually run
  252. $0: the script under such a shell if you do have one."
  253. fi
  254. exit 1
  255. fi
  256. fi
  257. fi
  258. SHELL=${CONFIG_SHELL-/bin/sh}
  259. export SHELL
  260. # Unset more variables known to interfere with behavior of common tools.
  261. CLICOLOR_FORCE= GREP_OPTIONS=
  262. unset CLICOLOR_FORCE GREP_OPTIONS
  263. ## --------------------- ##
  264. ## M4sh Shell Functions. ##
  265. ## --------------------- ##
  266. # as_fn_unset VAR
  267. # ---------------
  268. # Portably unset VAR.
  269. as_fn_unset ()
  270. {
  271. { eval $1=; unset $1;}
  272. }
  273. as_unset=as_fn_unset
  274. # as_fn_set_status STATUS
  275. # -----------------------
  276. # Set $? to STATUS, without forking.
  277. as_fn_set_status ()
  278. {
  279. return $1
  280. } # as_fn_set_status
  281. # as_fn_exit STATUS
  282. # -----------------
  283. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  284. as_fn_exit ()
  285. {
  286. set +e
  287. as_fn_set_status $1
  288. exit $1
  289. } # as_fn_exit
  290. # as_fn_mkdir_p
  291. # -------------
  292. # Create "$as_dir" as a directory, including parents if necessary.
  293. as_fn_mkdir_p ()
  294. {
  295. case $as_dir in #(
  296. -*) as_dir=./$as_dir;;
  297. esac
  298. test -d "$as_dir" || eval $as_mkdir_p || {
  299. as_dirs=
  300. while :; do
  301. case $as_dir in #(
  302. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  303. *) as_qdir=$as_dir;;
  304. esac
  305. as_dirs="'$as_qdir' $as_dirs"
  306. as_dir=`$as_dirname -- "$as_dir" ||
  307. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  308. X"$as_dir" : 'X\(//\)[^/]' \| \
  309. X"$as_dir" : 'X\(//\)$' \| \
  310. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  311. $as_echo X"$as_dir" |
  312. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  313. s//\1/
  314. q
  315. }
  316. /^X\(\/\/\)[^/].*/{
  317. s//\1/
  318. q
  319. }
  320. /^X\(\/\/\)$/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\).*/{
  325. s//\1/
  326. q
  327. }
  328. s/.*/./; q'`
  329. test -d "$as_dir" && break
  330. done
  331. test -z "$as_dirs" || eval "mkdir $as_dirs"
  332. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  333. } # as_fn_mkdir_p
  334. # as_fn_executable_p FILE
  335. # -----------------------
  336. # Test if FILE is an executable regular file.
  337. as_fn_executable_p ()
  338. {
  339. test -f "$1" && test -x "$1"
  340. } # as_fn_executable_p
  341. # as_fn_append VAR VALUE
  342. # ----------------------
  343. # Append the text in VALUE to the end of the definition contained in VAR. Take
  344. # advantage of any shell optimizations that allow amortized linear growth over
  345. # repeated appends, instead of the typical quadratic growth present in naive
  346. # implementations.
  347. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  348. eval 'as_fn_append ()
  349. {
  350. eval $1+=\$2
  351. }'
  352. else
  353. as_fn_append ()
  354. {
  355. eval $1=\$$1\$2
  356. }
  357. fi # as_fn_append
  358. # as_fn_arith ARG...
  359. # ------------------
  360. # Perform arithmetic evaluation on the ARGs, and store the result in the
  361. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  362. # must be portable across $(()) and expr.
  363. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  364. eval 'as_fn_arith ()
  365. {
  366. as_val=$(( $* ))
  367. }'
  368. else
  369. as_fn_arith ()
  370. {
  371. as_val=`expr "$@" || test $? -eq 1`
  372. }
  373. fi # as_fn_arith
  374. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  375. # ----------------------------------------
  376. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  377. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  378. # script with STATUS, using 1 if that was 0.
  379. as_fn_error ()
  380. {
  381. as_status=$1; test $as_status -eq 0 && as_status=1
  382. if test "$4"; then
  383. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  384. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  385. fi
  386. $as_echo "$as_me: error: $2" >&2
  387. as_fn_exit $as_status
  388. } # as_fn_error
  389. if expr a : '\(a\)' >/dev/null 2>&1 &&
  390. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  391. as_expr=expr
  392. else
  393. as_expr=false
  394. fi
  395. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  396. as_basename=basename
  397. else
  398. as_basename=false
  399. fi
  400. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  401. as_dirname=dirname
  402. else
  403. as_dirname=false
  404. fi
  405. as_me=`$as_basename -- "$0" ||
  406. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  407. X"$0" : 'X\(//\)$' \| \
  408. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  409. $as_echo X/"$0" |
  410. sed '/^.*\/\([^/][^/]*\)\/*$/{
  411. s//\1/
  412. q
  413. }
  414. /^X\/\(\/\/\)$/{
  415. s//\1/
  416. q
  417. }
  418. /^X\/\(\/\).*/{
  419. s//\1/
  420. q
  421. }
  422. s/.*/./; q'`
  423. # Avoid depending upon Character Ranges.
  424. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  425. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  426. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  427. as_cr_digits='0123456789'
  428. as_cr_alnum=$as_cr_Letters$as_cr_digits
  429. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  430. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  431. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  432. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  433. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  434. sed -n '
  435. p
  436. /[$]LINENO/=
  437. ' <$as_myself |
  438. sed '
  439. s/[$]LINENO.*/&-/
  440. t lineno
  441. b
  442. :lineno
  443. N
  444. :loop
  445. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  446. t loop
  447. s/-\n.*//
  448. ' >$as_me.lineno &&
  449. chmod +x "$as_me.lineno" ||
  450. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  451. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  452. # already done that, so ensure we don't try to do so again and fall
  453. # in an infinite loop. This has already happened in practice.
  454. _as_can_reexec=no; export _as_can_reexec
  455. # Don't try to exec as it changes $[0], causing all sort of problems
  456. # (the dirname of $[0] is not the place where we might find the
  457. # original and so on. Autoconf is especially sensitive to this).
  458. . "./$as_me.lineno"
  459. # Exit status is that of the last command.
  460. exit
  461. }
  462. ECHO_C= ECHO_N= ECHO_T=
  463. case `echo -n x` in #(((((
  464. -n*)
  465. case `echo 'xy\c'` in
  466. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  467. xy) ECHO_C='\c';;
  468. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  469. ECHO_T=' ';;
  470. esac;;
  471. *)
  472. ECHO_N='-n';;
  473. esac
  474. rm -f conf$$ conf$$.exe conf$$.file
  475. if test -d conf$$.dir; then
  476. rm -f conf$$.dir/conf$$.file
  477. else
  478. rm -f conf$$.dir
  479. mkdir conf$$.dir 2>/dev/null
  480. fi
  481. if (echo >conf$$.file) 2>/dev/null; then
  482. if ln -s conf$$.file conf$$ 2>/dev/null; then
  483. as_ln_s='ln -s'
  484. # ... but there are two gotchas:
  485. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  486. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  487. # In both cases, we have to default to `cp -pR'.
  488. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  489. as_ln_s='cp -pR'
  490. elif ln conf$$.file conf$$ 2>/dev/null; then
  491. as_ln_s=ln
  492. else
  493. as_ln_s='cp -pR'
  494. fi
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  499. rmdir conf$$.dir 2>/dev/null
  500. if mkdir -p . 2>/dev/null; then
  501. as_mkdir_p='mkdir -p "$as_dir"'
  502. else
  503. test -d ./-p && rmdir ./-p
  504. as_mkdir_p=false
  505. fi
  506. as_test_x='test -x'
  507. as_executable_p=as_fn_executable_p
  508. # Sed expression to map a string onto a valid CPP name.
  509. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  510. # Sed expression to map a string onto a valid variable name.
  511. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  512. test -n "$DJDIR" || exec 7<&0 </dev/null
  513. exec 6>&1
  514. # Name of the host.
  515. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  516. # so uname gets run too.
  517. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  518. #
  519. # Initializations.
  520. #
  521. ac_default_prefix=/usr/local
  522. ac_clean_files=
  523. ac_config_libobj_dir=.
  524. LIBOBJS=
  525. cross_compiling=no
  526. subdirs=
  527. MFLAGS=
  528. MAKEFLAGS=
  529. # Identity of this package.
  530. PACKAGE_NAME=
  531. PACKAGE_TARNAME=
  532. PACKAGE_VERSION=
  533. PACKAGE_STRING=
  534. PACKAGE_BUGREPORT=
  535. PACKAGE_URL=
  536. ac_unique_file="configure.ac"
  537. # Factoring default headers for most tests.
  538. ac_includes_default="\
  539. #include <stdio.h>
  540. #ifdef HAVE_SYS_TYPES_H
  541. # include <sys/types.h>
  542. #endif
  543. #ifdef HAVE_SYS_STAT_H
  544. # include <sys/stat.h>
  545. #endif
  546. #ifdef STDC_HEADERS
  547. # include <stdlib.h>
  548. # include <stddef.h>
  549. #else
  550. # ifdef HAVE_STDLIB_H
  551. # include <stdlib.h>
  552. # endif
  553. #endif
  554. #ifdef HAVE_STRING_H
  555. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  556. # include <memory.h>
  557. # endif
  558. # include <string.h>
  559. #endif
  560. #ifdef HAVE_STRINGS_H
  561. # include <strings.h>
  562. #endif
  563. #ifdef HAVE_INTTYPES_H
  564. # include <inttypes.h>
  565. #endif
  566. #ifdef HAVE_STDINT_H
  567. # include <stdint.h>
  568. #endif
  569. #ifdef HAVE_UNISTD_H
  570. # include <unistd.h>
  571. #endif"
  572. ac_subst_vars='LTLIBOBJS
  573. LIBOBJS
  574. GRASS_HOME
  575. STRIPFLAG
  576. USE_TERMIO
  577. LFS_CFLAGS
  578. USE_LARGEFILES
  579. USE_OPENCL
  580. OCLLIB
  581. OCLLIBPATH
  582. OCLINCPATH
  583. USE_OPENMP
  584. OMPCFLAGS
  585. OMPLIB
  586. OMPLIBPATH
  587. OMPINCPATH
  588. USE_PTHREAD
  589. PTHREADLIB
  590. PTHREADLIBPATH
  591. PTHREADINCPATH
  592. USE_OPENDWG
  593. OPENDWGLIB
  594. OPENDWGLIBPATH
  595. OPENDWGINCPATH
  596. HAVE_NLS
  597. INTLLIB
  598. FTLIB
  599. FTINC
  600. USE_CAIRO
  601. CAIROLIB
  602. CAIROINC
  603. CAIRO_HAS_XRENDER_SURFACE
  604. CAIRO_HAS_XRENDER
  605. LAPACKINC
  606. LAPACKLIB
  607. BLASINC
  608. BLASLIB
  609. FFTWLIB
  610. FFTWINC
  611. ODBCLIB
  612. ODBCINC
  613. OPENGLULIB
  614. OPENGLLIB
  615. OPENGLINC
  616. OPENGL_WINDOWS
  617. OPENGL_AQUA
  618. OPENGL_X11
  619. USE_OPENGL
  620. SQLITELIB
  621. SQLITELIBPATH
  622. SQLITEINCPATH
  623. USE_SQLITE
  624. MYSQLDLIB
  625. MYSQLLIB
  626. MYSQLLIBPATH
  627. MYSQLINCPATH
  628. USE_MYSQL
  629. MYSQLD_CONFIG
  630. PQLIB
  631. PQLIBPATH
  632. PQINCPATH
  633. USE_POSTGRES
  634. USE_PNG
  635. PNGLIB
  636. PNGINC
  637. TIFFLIB
  638. TIFF_LIBRARY_DIRS
  639. TIFF_INCLUDE_DIRS
  640. USE_GEOS
  641. GEOS_CFLAGS
  642. GEOS_LIBS
  643. GEOS_CONFIG
  644. USE_NETCDF
  645. NETCDF_CFLAGS
  646. NETCDF_LIBS
  647. NETCDF_CONFIG
  648. USE_PDAL
  649. PDAL_INC
  650. PDAL_CPPFLAGS
  651. PDAL_LIBS
  652. ac_ct_CXX
  653. CXXFLAGS
  654. CXX
  655. PDAL_CONFIG
  656. USE_LIBLAS
  657. LIBLAS_INC
  658. LIBLAS_CFLAGS
  659. LIBLAS_LIBS
  660. LIBLAS_CONFIG
  661. USE_OGR
  662. USE_GDAL
  663. GDAL_CFLAGS
  664. GDAL_LIBS
  665. GDAL_CONFIG
  666. HISTORYLIB
  667. READLINELIB
  668. READLINELIBPATH
  669. READLINEINCPATH
  670. USE_REGEX
  671. REGEXLIB
  672. REGEXLIBPATH
  673. REGEXINCPATH
  674. PROJSHARE
  675. PROJLIB
  676. PROJINC
  677. ZSTDLIB
  678. ZSTDLIBPATH
  679. ZSTDINCPATH
  680. BZIP2LIB
  681. BZIP2LIBPATH
  682. BZIP2INCPATH
  683. ZLIB
  684. ZLIBLIBPATH
  685. ZLIBINCPATH
  686. HAVE_SOCKET
  687. SOCKLIB
  688. ICONVLIB
  689. DLLIB
  690. MATHLIB
  691. HAVE_ASPRINTF
  692. DBMIEXTRALIB
  693. USE_X11
  694. XTLIB
  695. XLIB
  696. X_EXTRA_LIBS
  697. X_PRE_LIBS
  698. XMKMF
  699. X_LIBS
  700. X_CFLAGS
  701. CROSS_COMPILING
  702. EGREP
  703. GREP
  704. CPP
  705. PERL
  706. ENV
  707. AR
  708. RANLIB
  709. YACCPATH
  710. YFLAGS
  711. YACC
  712. LEXPATH
  713. LEXLIB
  714. LEX_OUTPUT_ROOT
  715. LEX
  716. INSTALL_DATA
  717. INSTALL_SCRIPT
  718. INSTALL_PROGRAM
  719. LIBRARY_DIRS
  720. INCLUDE_DIRS
  721. STLIB_SUFFIX
  722. STLIB_LD
  723. SHLIB_SUFFIX
  724. SHLIB_CFLAGS
  725. SHLIB_LD_FLAGS
  726. SHLIB_LD
  727. LD_LIBRARY_PATH_VAR
  728. LD_SEARCH_FLAGS
  729. GRASS_LIBRARY_TYPE
  730. INSTDIR
  731. MACOSX_SDK
  732. MACOSX_ARCHS
  733. MACOSX_APP
  734. LIB_VER
  735. NAME_VER
  736. GRASS_HEADERS_GIT_DATE
  737. GRASS_HEADERS_GIT_HASH
  738. GRASS_VERSION_GIT
  739. GRASS_VERSION_DATE
  740. GRASS_VERSION_NUMBER
  741. GRASS_VERSION_RELEASE
  742. GRASS_VERSION_MINOR
  743. GRASS_VERSION_MAJOR
  744. GRASS_VERSION_FILE
  745. GIT
  746. GRASS_BIN
  747. GISBASE
  748. ARCH
  749. DSTDIR
  750. SRCDIR
  751. pwd
  752. BINDIR
  753. MINGW32
  754. OBJEXT
  755. EXEEXT
  756. ac_ct_CC
  757. CPPFLAGS
  758. LDFLAGS
  759. CFLAGS
  760. CC
  761. host_os
  762. host_vendor
  763. host_cpu
  764. host
  765. build_os
  766. build_vendor
  767. build_cpu
  768. build
  769. target_alias
  770. host_alias
  771. build_alias
  772. LIBS
  773. ECHO_T
  774. ECHO_N
  775. ECHO_C
  776. DEFS
  777. mandir
  778. localedir
  779. libdir
  780. psdir
  781. pdfdir
  782. dvidir
  783. htmldir
  784. infodir
  785. docdir
  786. oldincludedir
  787. includedir
  788. localstatedir
  789. sharedstatedir
  790. sysconfdir
  791. datadir
  792. datarootdir
  793. libexecdir
  794. sbindir
  795. bindir
  796. program_transform_name
  797. prefix
  798. exec_prefix
  799. PACKAGE_URL
  800. PACKAGE_BUGREPORT
  801. PACKAGE_STRING
  802. PACKAGE_VERSION
  803. PACKAGE_TARNAME
  804. PACKAGE_NAME
  805. PATH_SEPARATOR
  806. SHELL'
  807. ac_subst_files=''
  808. ac_user_opts='
  809. enable_option_checking
  810. enable_macosx_app
  811. enable_shared
  812. enable_w11
  813. with_cxx
  814. with_macosx_archs
  815. with_macosx_sdk
  816. with_tiff
  817. with_png
  818. with_postgres
  819. with_mysql
  820. with_sqlite
  821. with_opengl
  822. with_odbc
  823. with_fftw
  824. with_blas
  825. with_lapack
  826. with_cairo
  827. with_freetype
  828. with_nls
  829. with_readline
  830. with_opendwg
  831. with_regex
  832. with_pthread
  833. with_openmp
  834. with_opencl
  835. with_bzlib
  836. with_zstd
  837. with_gdal
  838. with_liblas
  839. with_pdal
  840. with_wxwidgets
  841. with_netcdf
  842. with_geos
  843. with_includes
  844. with_libs
  845. with_zlib_includes
  846. with_zlib_libs
  847. with_bzlib_includes
  848. with_bzlib_libs
  849. with_zstd_includes
  850. with_zstd_libs
  851. with_readline_includes
  852. with_readline_libs
  853. with_tiff_includes
  854. with_tiff_libs
  855. with_png_includes
  856. with_png_libs
  857. with_postgres_includes
  858. with_postgres_libs
  859. with_mysql_includes
  860. with_mysql_libs
  861. with_sqlite_includes
  862. with_sqlite_libs
  863. with_opengl_includes
  864. with_opengl_libs
  865. with_opengl_framework
  866. with_odbc_includes
  867. with_odbc_libs
  868. with_fftw_includes
  869. with_fftw_libs
  870. with_blas_includes
  871. with_blas_libs
  872. with_lapack_includes
  873. with_lapack_libs
  874. with_cairo_includes
  875. with_cairo_libs
  876. with_cairo_ldflags
  877. with_freetype_includes
  878. with_freetype_libs
  879. with_proj_includes
  880. with_proj_libs
  881. with_proj_share
  882. with_opendwg_includes
  883. with_opendwg_libs
  884. with_regex_includes
  885. with_regex_libs
  886. with_pthread_includes
  887. with_pthread_libs
  888. with_openmp_includes
  889. with_openmp_libs
  890. with_opencl_includes
  891. with_opencl_libs
  892. with_x
  893. enable_largefile
  894. '
  895. ac_precious_vars='build_alias
  896. host_alias
  897. target_alias
  898. CC
  899. CFLAGS
  900. LDFLAGS
  901. LIBS
  902. CPPFLAGS
  903. YACC
  904. YFLAGS
  905. CPP
  906. XMKMF
  907. CXX
  908. CXXFLAGS
  909. CCC'
  910. # Initialize some variables set by options.
  911. ac_init_help=
  912. ac_init_version=false
  913. ac_unrecognized_opts=
  914. ac_unrecognized_sep=
  915. # The variables have the same names as the options, with
  916. # dashes changed to underlines.
  917. cache_file=/dev/null
  918. exec_prefix=NONE
  919. no_create=
  920. no_recursion=
  921. prefix=NONE
  922. program_prefix=NONE
  923. program_suffix=NONE
  924. program_transform_name=s,x,x,
  925. silent=
  926. site=
  927. srcdir=
  928. verbose=
  929. x_includes=NONE
  930. x_libraries=NONE
  931. # Installation directory options.
  932. # These are left unexpanded so users can "make install exec_prefix=/foo"
  933. # and all the variables that are supposed to be based on exec_prefix
  934. # by default will actually change.
  935. # Use braces instead of parens because sh, perl, etc. also accept them.
  936. # (The list follows the same order as the GNU Coding Standards.)
  937. bindir='${exec_prefix}/bin'
  938. sbindir='${exec_prefix}/sbin'
  939. libexecdir='${exec_prefix}/libexec'
  940. datarootdir='${prefix}/share'
  941. datadir='${datarootdir}'
  942. sysconfdir='${prefix}/etc'
  943. sharedstatedir='${prefix}/com'
  944. localstatedir='${prefix}/var'
  945. includedir='${prefix}/include'
  946. oldincludedir='/usr/include'
  947. docdir='${datarootdir}/doc/${PACKAGE}'
  948. infodir='${datarootdir}/info'
  949. htmldir='${docdir}'
  950. dvidir='${docdir}'
  951. pdfdir='${docdir}'
  952. psdir='${docdir}'
  953. libdir='${exec_prefix}/lib'
  954. localedir='${datarootdir}/locale'
  955. mandir='${datarootdir}/man'
  956. ac_prev=
  957. ac_dashdash=
  958. for ac_option
  959. do
  960. # If the previous option needs an argument, assign it.
  961. if test -n "$ac_prev"; then
  962. eval $ac_prev=\$ac_option
  963. ac_prev=
  964. continue
  965. fi
  966. case $ac_option in
  967. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  968. *=) ac_optarg= ;;
  969. *) ac_optarg=yes ;;
  970. esac
  971. # Accept the important Cygnus configure options, so we can diagnose typos.
  972. case $ac_dashdash$ac_option in
  973. --)
  974. ac_dashdash=yes ;;
  975. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  976. ac_prev=bindir ;;
  977. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  978. bindir=$ac_optarg ;;
  979. -build | --build | --buil | --bui | --bu)
  980. ac_prev=build_alias ;;
  981. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  982. build_alias=$ac_optarg ;;
  983. -cache-file | --cache-file | --cache-fil | --cache-fi \
  984. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  985. ac_prev=cache_file ;;
  986. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  987. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  988. cache_file=$ac_optarg ;;
  989. --config-cache | -C)
  990. cache_file=config.cache ;;
  991. -datadir | --datadir | --datadi | --datad)
  992. ac_prev=datadir ;;
  993. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  994. datadir=$ac_optarg ;;
  995. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  996. | --dataroo | --dataro | --datar)
  997. ac_prev=datarootdir ;;
  998. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  999. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1000. datarootdir=$ac_optarg ;;
  1001. -disable-* | --disable-*)
  1002. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1003. # Reject names that are not valid shell variable names.
  1004. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1005. as_fn_error $? "invalid feature name: $ac_useropt"
  1006. ac_useropt_orig=$ac_useropt
  1007. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1008. case $ac_user_opts in
  1009. *"
  1010. "enable_$ac_useropt"
  1011. "*) ;;
  1012. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1013. ac_unrecognized_sep=', ';;
  1014. esac
  1015. eval enable_$ac_useropt=no ;;
  1016. -docdir | --docdir | --docdi | --doc | --do)
  1017. ac_prev=docdir ;;
  1018. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1019. docdir=$ac_optarg ;;
  1020. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1021. ac_prev=dvidir ;;
  1022. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1023. dvidir=$ac_optarg ;;
  1024. -enable-* | --enable-*)
  1025. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1026. # Reject names that are not valid shell variable names.
  1027. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1028. as_fn_error $? "invalid feature name: $ac_useropt"
  1029. ac_useropt_orig=$ac_useropt
  1030. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1031. case $ac_user_opts in
  1032. *"
  1033. "enable_$ac_useropt"
  1034. "*) ;;
  1035. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1036. ac_unrecognized_sep=', ';;
  1037. esac
  1038. eval enable_$ac_useropt=\$ac_optarg ;;
  1039. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1040. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1041. | --exec | --exe | --ex)
  1042. ac_prev=exec_prefix ;;
  1043. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1044. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1045. | --exec=* | --exe=* | --ex=*)
  1046. exec_prefix=$ac_optarg ;;
  1047. -gas | --gas | --ga | --g)
  1048. # Obsolete; use --with-gas.
  1049. with_gas=yes ;;
  1050. -help | --help | --hel | --he | -h)
  1051. ac_init_help=long ;;
  1052. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1053. ac_init_help=recursive ;;
  1054. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1055. ac_init_help=short ;;
  1056. -host | --host | --hos | --ho)
  1057. ac_prev=host_alias ;;
  1058. -host=* | --host=* | --hos=* | --ho=*)
  1059. host_alias=$ac_optarg ;;
  1060. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1061. ac_prev=htmldir ;;
  1062. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1063. | --ht=*)
  1064. htmldir=$ac_optarg ;;
  1065. -includedir | --includedir | --includedi | --included | --include \
  1066. | --includ | --inclu | --incl | --inc)
  1067. ac_prev=includedir ;;
  1068. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1069. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1070. includedir=$ac_optarg ;;
  1071. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1072. ac_prev=infodir ;;
  1073. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1074. infodir=$ac_optarg ;;
  1075. -libdir | --libdir | --libdi | --libd)
  1076. ac_prev=libdir ;;
  1077. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1078. libdir=$ac_optarg ;;
  1079. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1080. | --libexe | --libex | --libe)
  1081. ac_prev=libexecdir ;;
  1082. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1083. | --libexe=* | --libex=* | --libe=*)
  1084. libexecdir=$ac_optarg ;;
  1085. -localedir | --localedir | --localedi | --localed | --locale)
  1086. ac_prev=localedir ;;
  1087. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1088. localedir=$ac_optarg ;;
  1089. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1090. | --localstate | --localstat | --localsta | --localst | --locals)
  1091. ac_prev=localstatedir ;;
  1092. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1093. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1094. localstatedir=$ac_optarg ;;
  1095. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1096. ac_prev=mandir ;;
  1097. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1098. mandir=$ac_optarg ;;
  1099. -nfp | --nfp | --nf)
  1100. # Obsolete; use --without-fp.
  1101. with_fp=no ;;
  1102. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1103. | --no-cr | --no-c | -n)
  1104. no_create=yes ;;
  1105. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1106. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1107. no_recursion=yes ;;
  1108. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1109. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1110. | --oldin | --oldi | --old | --ol | --o)
  1111. ac_prev=oldincludedir ;;
  1112. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1113. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1114. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1115. oldincludedir=$ac_optarg ;;
  1116. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1117. ac_prev=prefix ;;
  1118. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1119. prefix=$ac_optarg ;;
  1120. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1121. | --program-pre | --program-pr | --program-p)
  1122. ac_prev=program_prefix ;;
  1123. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1124. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1125. program_prefix=$ac_optarg ;;
  1126. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1127. | --program-suf | --program-su | --program-s)
  1128. ac_prev=program_suffix ;;
  1129. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1130. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1131. program_suffix=$ac_optarg ;;
  1132. -program-transform-name | --program-transform-name \
  1133. | --program-transform-nam | --program-transform-na \
  1134. | --program-transform-n | --program-transform- \
  1135. | --program-transform | --program-transfor \
  1136. | --program-transfo | --program-transf \
  1137. | --program-trans | --program-tran \
  1138. | --progr-tra | --program-tr | --program-t)
  1139. ac_prev=program_transform_name ;;
  1140. -program-transform-name=* | --program-transform-name=* \
  1141. | --program-transform-nam=* | --program-transform-na=* \
  1142. | --program-transform-n=* | --program-transform-=* \
  1143. | --program-transform=* | --program-transfor=* \
  1144. | --program-transfo=* | --program-transf=* \
  1145. | --program-trans=* | --program-tran=* \
  1146. | --progr-tra=* | --program-tr=* | --program-t=*)
  1147. program_transform_name=$ac_optarg ;;
  1148. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1149. ac_prev=pdfdir ;;
  1150. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1151. pdfdir=$ac_optarg ;;
  1152. -psdir | --psdir | --psdi | --psd | --ps)
  1153. ac_prev=psdir ;;
  1154. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1155. psdir=$ac_optarg ;;
  1156. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1157. | -silent | --silent | --silen | --sile | --sil)
  1158. silent=yes ;;
  1159. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1160. ac_prev=sbindir ;;
  1161. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1162. | --sbi=* | --sb=*)
  1163. sbindir=$ac_optarg ;;
  1164. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1165. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1166. | --sharedst | --shareds | --shared | --share | --shar \
  1167. | --sha | --sh)
  1168. ac_prev=sharedstatedir ;;
  1169. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1170. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1171. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1172. | --sha=* | --sh=*)
  1173. sharedstatedir=$ac_optarg ;;
  1174. -site | --site | --sit)
  1175. ac_prev=site ;;
  1176. -site=* | --site=* | --sit=*)
  1177. site=$ac_optarg ;;
  1178. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1179. ac_prev=srcdir ;;
  1180. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1181. srcdir=$ac_optarg ;;
  1182. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1183. | --syscon | --sysco | --sysc | --sys | --sy)
  1184. ac_prev=sysconfdir ;;
  1185. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1186. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1187. sysconfdir=$ac_optarg ;;
  1188. -target | --target | --targe | --targ | --tar | --ta | --t)
  1189. ac_prev=target_alias ;;
  1190. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1191. target_alias=$ac_optarg ;;
  1192. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1193. verbose=yes ;;
  1194. -version | --version | --versio | --versi | --vers | -V)
  1195. ac_init_version=: ;;
  1196. -with-* | --with-*)
  1197. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1198. # Reject names that are not valid shell variable names.
  1199. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1200. as_fn_error $? "invalid package name: $ac_useropt"
  1201. ac_useropt_orig=$ac_useropt
  1202. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1203. case $ac_user_opts in
  1204. *"
  1205. "with_$ac_useropt"
  1206. "*) ;;
  1207. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1208. ac_unrecognized_sep=', ';;
  1209. esac
  1210. eval with_$ac_useropt=\$ac_optarg ;;
  1211. -without-* | --without-*)
  1212. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1213. # Reject names that are not valid shell variable names.
  1214. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1215. as_fn_error $? "invalid package name: $ac_useropt"
  1216. ac_useropt_orig=$ac_useropt
  1217. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1218. case $ac_user_opts in
  1219. *"
  1220. "with_$ac_useropt"
  1221. "*) ;;
  1222. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1223. ac_unrecognized_sep=', ';;
  1224. esac
  1225. eval with_$ac_useropt=no ;;
  1226. --x)
  1227. # Obsolete; use --with-x.
  1228. with_x=yes ;;
  1229. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1230. | --x-incl | --x-inc | --x-in | --x-i)
  1231. ac_prev=x_includes ;;
  1232. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1233. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1234. x_includes=$ac_optarg ;;
  1235. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1236. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1237. ac_prev=x_libraries ;;
  1238. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1239. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1240. x_libraries=$ac_optarg ;;
  1241. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1242. Try \`$0 --help' for more information"
  1243. ;;
  1244. *=*)
  1245. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1246. # Reject names that are not valid shell variable names.
  1247. case $ac_envvar in #(
  1248. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1249. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1250. esac
  1251. eval $ac_envvar=\$ac_optarg
  1252. export $ac_envvar ;;
  1253. *)
  1254. # FIXME: should be removed in autoconf 3.0.
  1255. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1256. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1257. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1258. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1259. ;;
  1260. esac
  1261. done
  1262. if test -n "$ac_prev"; then
  1263. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1264. as_fn_error $? "missing argument to $ac_option"
  1265. fi
  1266. if test -n "$ac_unrecognized_opts"; then
  1267. case $enable_option_checking in
  1268. no) ;;
  1269. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1270. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1271. esac
  1272. fi
  1273. # Check all directory arguments for consistency.
  1274. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1275. datadir sysconfdir sharedstatedir localstatedir includedir \
  1276. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1277. libdir localedir mandir
  1278. do
  1279. eval ac_val=\$$ac_var
  1280. # Remove trailing slashes.
  1281. case $ac_val in
  1282. */ )
  1283. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1284. eval $ac_var=\$ac_val;;
  1285. esac
  1286. # Be sure to have absolute directory names.
  1287. case $ac_val in
  1288. [\\/$]* | ?:[\\/]* ) continue;;
  1289. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1290. esac
  1291. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1292. done
  1293. # There might be people who depend on the old broken behavior: `$host'
  1294. # used to hold the argument of --host etc.
  1295. # FIXME: To remove some day.
  1296. build=$build_alias
  1297. host=$host_alias
  1298. target=$target_alias
  1299. # FIXME: To remove some day.
  1300. if test "x$host_alias" != x; then
  1301. if test "x$build_alias" = x; then
  1302. cross_compiling=maybe
  1303. elif test "x$build_alias" != "x$host_alias"; then
  1304. cross_compiling=yes
  1305. fi
  1306. fi
  1307. ac_tool_prefix=
  1308. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1309. test "$silent" = yes && exec 6>/dev/null
  1310. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1311. ac_ls_di=`ls -di .` &&
  1312. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1313. as_fn_error $? "working directory cannot be determined"
  1314. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1315. as_fn_error $? "pwd does not report name of working directory"
  1316. # Find the source files, if location was not specified.
  1317. if test -z "$srcdir"; then
  1318. ac_srcdir_defaulted=yes
  1319. # Try the directory containing this script, then the parent directory.
  1320. ac_confdir=`$as_dirname -- "$as_myself" ||
  1321. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1322. X"$as_myself" : 'X\(//\)[^/]' \| \
  1323. X"$as_myself" : 'X\(//\)$' \| \
  1324. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1325. $as_echo X"$as_myself" |
  1326. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1327. s//\1/
  1328. q
  1329. }
  1330. /^X\(\/\/\)[^/].*/{
  1331. s//\1/
  1332. q
  1333. }
  1334. /^X\(\/\/\)$/{
  1335. s//\1/
  1336. q
  1337. }
  1338. /^X\(\/\).*/{
  1339. s//\1/
  1340. q
  1341. }
  1342. s/.*/./; q'`
  1343. srcdir=$ac_confdir
  1344. if test ! -r "$srcdir/$ac_unique_file"; then
  1345. srcdir=..
  1346. fi
  1347. else
  1348. ac_srcdir_defaulted=no
  1349. fi
  1350. if test ! -r "$srcdir/$ac_unique_file"; then
  1351. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1352. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1353. fi
  1354. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1355. ac_abs_confdir=`(
  1356. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1357. pwd)`
  1358. # When building in place, set srcdir=.
  1359. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1360. srcdir=.
  1361. fi
  1362. # Remove unnecessary trailing slashes from srcdir.
  1363. # Double slashes in file names in object file debugging info
  1364. # mess up M-x gdb in Emacs.
  1365. case $srcdir in
  1366. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1367. esac
  1368. for ac_var in $ac_precious_vars; do
  1369. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1370. eval ac_env_${ac_var}_value=\$${ac_var}
  1371. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1372. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1373. done
  1374. #
  1375. # Report the --help message.
  1376. #
  1377. if test "$ac_init_help" = "long"; then
  1378. # Omit some internal or obsolete options to make the list less imposing.
  1379. # This message is too long to be a string in the A/UX 3.1 sh.
  1380. cat <<_ACEOF
  1381. \`configure' configures this package to adapt to many kinds of systems.
  1382. Usage: $0 [OPTION]... [VAR=VALUE]...
  1383. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1384. VAR=VALUE. See below for descriptions of some of the useful variables.
  1385. Defaults for the options are specified in brackets.
  1386. Configuration:
  1387. -h, --help display this help and exit
  1388. --help=short display options specific to this package
  1389. --help=recursive display the short help of all the included packages
  1390. -V, --version display version information and exit
  1391. -q, --quiet, --silent do not print \`checking ...' messages
  1392. --cache-file=FILE cache test results in FILE [disabled]
  1393. -C, --config-cache alias for \`--cache-file=config.cache'
  1394. -n, --no-create do not create output files
  1395. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1396. Installation directories:
  1397. --prefix=PREFIX install architecture-independent files in PREFIX
  1398. [$ac_default_prefix]
  1399. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1400. [PREFIX]
  1401. By default, \`make install' will install all the files in
  1402. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1403. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1404. for instance \`--prefix=\$HOME'.
  1405. For better control, use the options below.
  1406. Fine tuning of the installation directories:
  1407. --bindir=DIR user executables [EPREFIX/bin]
  1408. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1409. --libexecdir=DIR program executables [EPREFIX/libexec]
  1410. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1411. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1412. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1413. --libdir=DIR object code libraries [EPREFIX/lib]
  1414. --includedir=DIR C header files [PREFIX/include]
  1415. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1416. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1417. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1418. --infodir=DIR info documentation [DATAROOTDIR/info]
  1419. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1420. --mandir=DIR man documentation [DATAROOTDIR/man]
  1421. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1422. --htmldir=DIR html documentation [DOCDIR]
  1423. --dvidir=DIR dvi documentation [DOCDIR]
  1424. --pdfdir=DIR pdf documentation [DOCDIR]
  1425. --psdir=DIR ps documentation [DOCDIR]
  1426. _ACEOF
  1427. cat <<\_ACEOF
  1428. X features:
  1429. --x-includes=DIR X include files are in DIR
  1430. --x-libraries=DIR X library files are in DIR
  1431. System types:
  1432. --build=BUILD configure for building on BUILD [guessed]
  1433. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1434. _ACEOF
  1435. fi
  1436. if test -n "$ac_init_help"; then
  1437. cat <<\_ACEOF
  1438. Optional Features:
  1439. --disable-option-checking ignore unrecognized --enable/--with options
  1440. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1441. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1442. --enable-macosx-app create a MacOSX application
  1443. --enable-shared build and link with shared libraries --enable-shared
  1444. --enable-w11 use W11 library for Windows X11 emulation
  1445. --disable-largefile omit support for large files (LFS)
  1446. Optional Packages:
  1447. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1448. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1449. --with-cxx support C++ functionality (default: yes)
  1450. --with-macosx-archs=arch list
  1451. compile multiple architectures on MacOSX, ie.
  1452. universal. Valid architectures are i386, ppc,
  1453. x86_64 and ppc64. (default: no native)
  1454. --with-macosx-sdk=path/sdk
  1455. compile with a system SDK on MacOSX. (default: no)
  1456. --with-tiff support TIFF functionality (default: yes)
  1457. --with-png support PNG functionality (default: yes)
  1458. --with-postgres support PostgreSQL functionality (default: no)
  1459. --with-mysql support MySQL functionality (default: no)
  1460. --with-sqlite support SQLite functionality (default: yes)
  1461. --with-opengl support OpenGL functionality (default: yes)
  1462. --with-odbc support ODBC functionality (default: no)
  1463. --with-fftw support FFTW functionality (default: yes)
  1464. --with-blas support BLAS functionality (default: no)
  1465. --with-lapack support LAPACK functionality (default: no)
  1466. --with-cairo support Cairo functionality (default: yes)
  1467. --with-freetype support FreeType functionality (default: yes)
  1468. --with-nls support NLS functionality (default: no)
  1469. --with-readline support Readline functionality (default: no)
  1470. --with-opendwg support openDWG functionality (default: no)
  1471. --with-regex support regex functionality (default: yes)
  1472. --with-pthread support POSIX threads functionality (default: no)
  1473. --with-openmp support OpenMP functionality (default: no)
  1474. --with-opencl support OpenCL functionality (default: no)
  1475. --with-bzlib support BZIP2 functionality (default: no)
  1476. --with-zstd support Zstandard functionality (default: yes)
  1477. --with-gdal=path/gdal-config
  1478. enable GDAL/OGR support (gdal-config with path,
  1479. e.g. '--with-gdal=/usr/local/bin/gdal-config')
  1480. --with-liblas=path/liblas-config
  1481. enable libLAS support (liblas-config with path,
  1482. e.g. '--with-liblas=/usr/local/bin/liblas-config',
  1483. default: no)
  1484. --with-pdal=path/pdal-config
  1485. enable PDAL support (pdal-config with path,
  1486. e.g. '--with-pdal=/usr/local/bin/pdal-config',
  1487. default: no)
  1488. --with-wxwidgets=path/wx-config
  1489. enable wxWidgets support (wx-config with path,
  1490. e.g. '--with-wxwidgets=/usr/local/bin/wx-config',
  1491. default: no)
  1492. --with-netcdf=path/nc-config
  1493. enable NetCDF support (nc-config with path,
  1494. e.g. '--with-nc=/usr/local/bin/nc-config',
  1495. default: no)
  1496. --with-geos=path/geos-config
  1497. enable GEOS support (geos-config with path,
  1498. e.g. '--with-geos=/usr/local/bin/geos-config',
  1499. default: no)
  1500. --with-includes=DIRS site include files are in DIRS
  1501. --with-libs=DIRS site library files are in DIRS
  1502. --with-zlib-includes=DIRS
  1503. zlib include files are in DIRS
  1504. --with-zlib-libs=DIRS zlib library files are in DIRS
  1505. --with-bzlib-includes=DIRS
  1506. BZIP2 include files are in DIRS
  1507. --with-bzlib-libs=DIRS BZIP2 library files are in DIRS
  1508. --with-zstd-includes=DIRS
  1509. ZSTD include files are in DIRS
  1510. --with-zstd-libs=DIRS ZSTD library files are in DIRS
  1511. --with-readline-includes=DIRS
  1512. Readline include files are in DIRS
  1513. --with-readline-libs=DIRS
  1514. Readline library files are in DIRS
  1515. --with-tiff-includes=DIRS
  1516. TIFF include files are in DIRS
  1517. --with-tiff-libs=DIRS TIFF library files are in DIRS
  1518. --with-png-includes=DIRS
  1519. PNG include files are in DIRS
  1520. --with-png-libs=DIRS PNG library files are in DIRS
  1521. --with-postgres-includes=DIRS
  1522. PostgreSQL include files are in DIRS
  1523. --with-postgres-libs=DIRS
  1524. PostgreSQL library files are in DIRS
  1525. --with-mysql-includes=DIRS
  1526. MySQL include files are in DIRS
  1527. --with-mysql-libs=DIRS MySQL library files are in DIRS
  1528. --with-sqlite-includes=DIRS
  1529. SQLite include files are in DIRS
  1530. --with-sqlite-libs=DIRS SQLite library files are in DIRS
  1531. --with-opengl-includes=DIRS
  1532. OpenGL include files are in DIRS
  1533. --with-opengl-libs=DIRS OpenGL library files are in DIRS
  1534. --with-opengl-framework=DIR
  1535. OpenGL framework is in DIR
  1536. --with-odbc-includes=DIRS
  1537. ODBC include files are in DIRS
  1538. --with-odbc-libs=DIRS ODBC library files are in DIRS
  1539. --with-fftw-includes=DIRS
  1540. FFTW include files are in DIRS
  1541. --with-fftw-libs=DIRS FFTW library files are in DIRS
  1542. --with-blas-includes=DIRS
  1543. BLAS include files are in DIRS
  1544. --with-blas-libs=DIRS BLAS library files are in DIRS
  1545. --with-lapack-includes=DIRS
  1546. LAPACK include files are in DIRS
  1547. --with-lapack-libs=DIRS LAPACK library files are in DIRS
  1548. --with-cairo-includes=DIRS
  1549. cairo include files are in DIRS
  1550. --with-cairo-libs=DIRS cairo library files are in DIRS
  1551. --with-cairo-ldflags=FLAGS
  1552. cairo needs FLAGS when linking
  1553. --with-freetype-includes=DIRS
  1554. FreeType include files are in DIRS
  1555. --with-freetype-libs=DIRS
  1556. FreeType library files are in DIRS
  1557. --with-proj-includes=DIRS
  1558. External PROJ.4 include files are in DIRS
  1559. --with-proj-libs=DIRS External PROJ.4 library files are in DIRS
  1560. --with-proj-share=DIR External PROJ.4 data files are in DIR
  1561. --with-opendwg-includes=DIRS
  1562. openDWG include files are in DIRS
  1563. --with-opendwg-libs=DIRS
  1564. openDWG library files are in DIRS
  1565. --with-regex-includes=DIRS
  1566. regex include files are in DIRS
  1567. --with-regex-libs=DIRS regex library files are in DIRS
  1568. --with-pthread-includes=DIRS
  1569. POSIX threads include files are in DIRS
  1570. --with-pthread-libs=DIRS
  1571. POSIX threads library files are in DIRS
  1572. --with-openmp-includes=DIRS
  1573. OpenMP include files are in DIRS
  1574. --with-openmp-libs=DIRS OpenMP library files are in DIRS
  1575. --with-opencl-includes=DIRS
  1576. OpenCL include files are in DIRS
  1577. --with-opencl-libs=DIRS OpenCL library files are in DIRS
  1578. --with-x use the X Window System
  1579. Some influential environment variables:
  1580. CC C compiler command
  1581. CFLAGS C compiler flags
  1582. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1583. nonstandard directory <lib dir>
  1584. LIBS libraries to pass to the linker, e.g. -l<library>
  1585. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1586. you have headers in a nonstandard directory <include dir>
  1587. YACC The `Yet Another Compiler Compiler' implementation to use.
  1588. Defaults to the first program found out of: `bison -y', `byacc',
  1589. `yacc'.
  1590. YFLAGS The list of arguments that will be passed by default to $YACC.
  1591. This script will default YFLAGS to the empty string to avoid a
  1592. default value of `-d' given by some make applications.
  1593. CPP C preprocessor
  1594. XMKMF Path to xmkmf, Makefile generator for X Window System
  1595. CXX C++ compiler command
  1596. CXXFLAGS C++ compiler flags
  1597. Use these variables to override the choices made by `configure' or to help
  1598. it to find libraries and programs with nonstandard names/locations.
  1599. Report bugs to the package provider.
  1600. _ACEOF
  1601. ac_status=$?
  1602. fi
  1603. if test "$ac_init_help" = "recursive"; then
  1604. # If there are subdirs, report their specific --help.
  1605. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1606. test -d "$ac_dir" ||
  1607. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1608. continue
  1609. ac_builddir=.
  1610. case "$ac_dir" in
  1611. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1612. *)
  1613. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1614. # A ".." for each directory in $ac_dir_suffix.
  1615. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1616. case $ac_top_builddir_sub in
  1617. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1618. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1619. esac ;;
  1620. esac
  1621. ac_abs_top_builddir=$ac_pwd
  1622. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1623. # for backward compatibility:
  1624. ac_top_builddir=$ac_top_build_prefix
  1625. case $srcdir in
  1626. .) # We are building in place.
  1627. ac_srcdir=.
  1628. ac_top_srcdir=$ac_top_builddir_sub
  1629. ac_abs_top_srcdir=$ac_pwd ;;
  1630. [\\/]* | ?:[\\/]* ) # Absolute name.
  1631. ac_srcdir=$srcdir$ac_dir_suffix;
  1632. ac_top_srcdir=$srcdir
  1633. ac_abs_top_srcdir=$srcdir ;;
  1634. *) # Relative name.
  1635. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1636. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1637. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1638. esac
  1639. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1640. cd "$ac_dir" || { ac_status=$?; continue; }
  1641. # Check for guested configure.
  1642. if test -f "$ac_srcdir/configure.gnu"; then
  1643. echo &&
  1644. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1645. elif test -f "$ac_srcdir/configure"; then
  1646. echo &&
  1647. $SHELL "$ac_srcdir/configure" --help=recursive
  1648. else
  1649. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1650. fi || ac_status=$?
  1651. cd "$ac_pwd" || { ac_status=$?; break; }
  1652. done
  1653. fi
  1654. test -n "$ac_init_help" && exit $ac_status
  1655. if $ac_init_version; then
  1656. cat <<\_ACEOF
  1657. configure
  1658. generated by GNU Autoconf 2.69
  1659. Copyright (C) 2012 Free Software Foundation, Inc.
  1660. This configure script is free software; the Free Software Foundation
  1661. gives unlimited permission to copy, distribute and modify it.
  1662. _ACEOF
  1663. exit
  1664. fi
  1665. ## ------------------------ ##
  1666. ## Autoconf initialization. ##
  1667. ## ------------------------ ##
  1668. # ac_fn_c_try_compile LINENO
  1669. # --------------------------
  1670. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1671. ac_fn_c_try_compile ()
  1672. {
  1673. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1674. rm -f conftest.$ac_objext
  1675. if { { ac_try="$ac_compile"
  1676. case "(($ac_try" in
  1677. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1678. *) ac_try_echo=$ac_try;;
  1679. esac
  1680. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1681. $as_echo "$ac_try_echo"; } >&5
  1682. (eval "$ac_compile") 2>conftest.err
  1683. ac_status=$?
  1684. if test -s conftest.err; then
  1685. grep -v '^ *+' conftest.err >conftest.er1
  1686. cat conftest.er1 >&5
  1687. mv -f conftest.er1 conftest.err
  1688. fi
  1689. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1690. test $ac_status = 0; } && {
  1691. test -z "$ac_c_werror_flag" ||
  1692. test ! -s conftest.err
  1693. } && test -s conftest.$ac_objext; then :
  1694. ac_retval=0
  1695. else
  1696. $as_echo "$as_me: failed program was:" >&5
  1697. sed 's/^/| /' conftest.$ac_ext >&5
  1698. ac_retval=1
  1699. fi
  1700. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1701. as_fn_set_status $ac_retval
  1702. } # ac_fn_c_try_compile
  1703. # ac_fn_c_try_run LINENO
  1704. # ----------------------
  1705. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1706. # that executables *can* be run.
  1707. ac_fn_c_try_run ()
  1708. {
  1709. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1710. if { { ac_try="$ac_link"
  1711. case "(($ac_try" in
  1712. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1713. *) ac_try_echo=$ac_try;;
  1714. esac
  1715. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1716. $as_echo "$ac_try_echo"; } >&5
  1717. (eval "$ac_link") 2>&5
  1718. ac_status=$?
  1719. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1720. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1721. { { case "(($ac_try" in
  1722. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1723. *) ac_try_echo=$ac_try;;
  1724. esac
  1725. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1726. $as_echo "$ac_try_echo"; } >&5
  1727. (eval "$ac_try") 2>&5
  1728. ac_status=$?
  1729. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1730. test $ac_status = 0; }; }; then :
  1731. ac_retval=0
  1732. else
  1733. $as_echo "$as_me: program exited with status $ac_status" >&5
  1734. $as_echo "$as_me: failed program was:" >&5
  1735. sed 's/^/| /' conftest.$ac_ext >&5
  1736. ac_retval=$ac_status
  1737. fi
  1738. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1739. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1740. as_fn_set_status $ac_retval
  1741. } # ac_fn_c_try_run
  1742. # ac_fn_c_try_link LINENO
  1743. # -----------------------
  1744. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1745. ac_fn_c_try_link ()
  1746. {
  1747. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1748. rm -f conftest.$ac_objext conftest$ac_exeext
  1749. if { { ac_try="$ac_link"
  1750. case "(($ac_try" in
  1751. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1752. *) ac_try_echo=$ac_try;;
  1753. esac
  1754. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1755. $as_echo "$ac_try_echo"; } >&5
  1756. (eval "$ac_link") 2>conftest.err
  1757. ac_status=$?
  1758. if test -s conftest.err; then
  1759. grep -v '^ *+' conftest.err >conftest.er1
  1760. cat conftest.er1 >&5
  1761. mv -f conftest.er1 conftest.err
  1762. fi
  1763. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1764. test $ac_status = 0; } && {
  1765. test -z "$ac_c_werror_flag" ||
  1766. test ! -s conftest.err
  1767. } && test -s conftest$ac_exeext && {
  1768. test "$cross_compiling" = yes ||
  1769. test -x conftest$ac_exeext
  1770. }; then :
  1771. ac_retval=0
  1772. else
  1773. $as_echo "$as_me: failed program was:" >&5
  1774. sed 's/^/| /' conftest.$ac_ext >&5
  1775. ac_retval=1
  1776. fi
  1777. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1778. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1779. # interfere with the next link command; also delete a directory that is
  1780. # left behind by Apple's compiler. We do this before executing the actions.
  1781. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1782. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1783. as_fn_set_status $ac_retval
  1784. } # ac_fn_c_try_link
  1785. # ac_fn_c_try_cpp LINENO
  1786. # ----------------------
  1787. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1788. ac_fn_c_try_cpp ()
  1789. {
  1790. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1791. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1792. case "(($ac_try" in
  1793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1794. *) ac_try_echo=$ac_try;;
  1795. esac
  1796. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1797. $as_echo "$ac_try_echo"; } >&5
  1798. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1799. ac_status=$?
  1800. if test -s conftest.err; then
  1801. grep -v '^ *+' conftest.err >conftest.er1
  1802. cat conftest.er1 >&5
  1803. mv -f conftest.er1 conftest.err
  1804. fi
  1805. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1806. test $ac_status = 0; } > conftest.i && {
  1807. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1808. test ! -s conftest.err
  1809. }; then :
  1810. ac_retval=0
  1811. else
  1812. $as_echo "$as_me: failed program was:" >&5
  1813. sed 's/^/| /' conftest.$ac_ext >&5
  1814. ac_retval=1
  1815. fi
  1816. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1817. as_fn_set_status $ac_retval
  1818. } # ac_fn_c_try_cpp
  1819. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1820. # -------------------------------------------------------
  1821. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1822. # the include files in INCLUDES and setting the cache variable VAR
  1823. # accordingly.
  1824. ac_fn_c_check_header_mongrel ()
  1825. {
  1826. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1827. if eval \${$3+:} false; then :
  1828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1829. $as_echo_n "checking for $2... " >&6; }
  1830. eval ac_res=\$$3
  1831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1832. $as_echo "$ac_res" >&6; }
  1833. else
  1834. # Is the header compilable?
  1835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1836. $as_echo_n "checking $2 usability... " >&6; }
  1837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1838. /* end confdefs.h. */
  1839. $4
  1840. #include <$2>
  1841. _ACEOF
  1842. if ac_fn_c_try_compile "$LINENO"; then :
  1843. ac_header_compiler=yes
  1844. else
  1845. ac_header_compiler=no
  1846. fi
  1847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1849. $as_echo "$ac_header_compiler" >&6; }
  1850. # Is the header present?
  1851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1852. $as_echo_n "checking $2 presence... " >&6; }
  1853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1854. /* end confdefs.h. */
  1855. #include <$2>
  1856. _ACEOF
  1857. if ac_fn_c_try_cpp "$LINENO"; then :
  1858. ac_header_preproc=yes
  1859. else
  1860. ac_header_preproc=no
  1861. fi
  1862. rm -f conftest.err conftest.i conftest.$ac_ext
  1863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1864. $as_echo "$ac_header_preproc" >&6; }
  1865. # So? What about this header?
  1866. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1867. yes:no: )
  1868. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1869. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1870. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1871. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1872. ;;
  1873. no:yes:* )
  1874. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1875. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1876. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1877. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1878. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1879. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1880. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1881. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1882. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1883. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1884. ;;
  1885. esac
  1886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1887. $as_echo_n "checking for $2... " >&6; }
  1888. eval "$3=\$ac_header_compiler"
  1889. eval ac_res=\$$3
  1890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1891. $as_echo "$ac_res" >&6; }
  1892. fi
  1893. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1894. } # ac_fn_c_check_header_mongrel
  1895. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1896. # -------------------------------------------------------
  1897. # Tests whether HEADER exists and can be compiled using the include files in
  1898. # INCLUDES, setting the cache variable VAR accordingly.
  1899. ac_fn_c_check_header_compile ()
  1900. {
  1901. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1903. $as_echo_n "checking for $2... " >&6; }
  1904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1905. /* end confdefs.h. */
  1906. $4
  1907. #include <$2>
  1908. _ACEOF
  1909. if ac_fn_c_try_compile "$LINENO"; then :
  1910. eval "$3=yes"
  1911. else
  1912. eval "$3=no"
  1913. fi
  1914. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1915. eval ac_res=\$$3
  1916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1917. $as_echo "$ac_res" >&6; }
  1918. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1919. } # ac_fn_c_check_header_compile
  1920. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1921. # -------------------------------------------
  1922. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1923. # variable VAR accordingly.
  1924. ac_fn_c_check_type ()
  1925. {
  1926. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1928. $as_echo_n "checking for $2... " >&6; }
  1929. eval "$3=no"
  1930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1931. /* end confdefs.h. */
  1932. $4
  1933. int
  1934. main ()
  1935. {
  1936. if (sizeof ($2))
  1937. return 0;
  1938. ;
  1939. return 0;
  1940. }
  1941. _ACEOF
  1942. if ac_fn_c_try_compile "$LINENO"; then :
  1943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1944. /* end confdefs.h. */
  1945. $4
  1946. int
  1947. main ()
  1948. {
  1949. if (sizeof (($2)))
  1950. return 0;
  1951. ;
  1952. return 0;
  1953. }
  1954. _ACEOF
  1955. if ac_fn_c_try_compile "$LINENO"; then :
  1956. else
  1957. eval "$3=yes"
  1958. fi
  1959. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1960. fi
  1961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1962. eval ac_res=\$$3
  1963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1964. $as_echo "$ac_res" >&6; }
  1965. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1966. } # ac_fn_c_check_type
  1967. # ac_fn_c_check_func LINENO FUNC VAR
  1968. # ----------------------------------
  1969. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1970. ac_fn_c_check_func ()
  1971. {
  1972. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1974. $as_echo_n "checking for $2... " >&6; }
  1975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1976. /* end confdefs.h. */
  1977. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1978. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1979. #define $2 innocuous_$2
  1980. /* System header to define __stub macros and hopefully few prototypes,
  1981. which can conflict with char $2 (); below.
  1982. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1983. <limits.h> exists even on freestanding compilers. */
  1984. #ifdef __STDC__
  1985. # include <limits.h>
  1986. #else
  1987. # include <assert.h>
  1988. #endif
  1989. #undef $2
  1990. /* Override any GCC internal prototype to avoid an error.
  1991. Use char because int might match the return type of a GCC
  1992. builtin and then its argument prototype would still apply. */
  1993. #ifdef __cplusplus
  1994. extern "C"
  1995. #endif
  1996. char $2 ();
  1997. /* The GNU C library defines this for functions which it implements
  1998. to always fail with ENOSYS. Some functions are actually named
  1999. something starting with __ and the normal name is an alias. */
  2000. #if defined __stub_$2 || defined __stub___$2
  2001. choke me
  2002. #endif
  2003. int
  2004. main ()
  2005. {
  2006. return $2 ();
  2007. ;
  2008. return 0;
  2009. }
  2010. _ACEOF
  2011. if ac_fn_c_try_link "$LINENO"; then :
  2012. eval "$3=yes"
  2013. else
  2014. eval "$3=no"
  2015. fi
  2016. rm -f core conftest.err conftest.$ac_objext \
  2017. conftest$ac_exeext conftest.$ac_ext
  2018. eval ac_res=\$$3
  2019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2020. $as_echo "$ac_res" >&6; }
  2021. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2022. } # ac_fn_c_check_func
  2023. # ac_fn_cxx_try_compile LINENO
  2024. # ----------------------------
  2025. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  2026. ac_fn_cxx_try_compile ()
  2027. {
  2028. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2029. rm -f conftest.$ac_objext
  2030. if { { ac_try="$ac_compile"
  2031. case "(($ac_try" in
  2032. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2033. *) ac_try_echo=$ac_try;;
  2034. esac
  2035. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2036. $as_echo "$ac_try_echo"; } >&5
  2037. (eval "$ac_compile") 2>conftest.err
  2038. ac_status=$?
  2039. if test -s conftest.err; then
  2040. grep -v '^ *+' conftest.err >conftest.er1
  2041. cat conftest.er1 >&5
  2042. mv -f conftest.er1 conftest.err
  2043. fi
  2044. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2045. test $ac_status = 0; } && {
  2046. test -z "$ac_cxx_werror_flag" ||
  2047. test ! -s conftest.err
  2048. } && test -s conftest.$ac_objext; then :
  2049. ac_retval=0
  2050. else
  2051. $as_echo "$as_me: failed program was:" >&5
  2052. sed 's/^/| /' conftest.$ac_ext >&5
  2053. ac_retval=1
  2054. fi
  2055. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2056. as_fn_set_status $ac_retval
  2057. } # ac_fn_cxx_try_compile
  2058. # ac_fn_cxx_try_link LINENO
  2059. # -------------------------
  2060. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2061. ac_fn_cxx_try_link ()
  2062. {
  2063. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2064. rm -f conftest.$ac_objext conftest$ac_exeext
  2065. if { { ac_try="$ac_link"
  2066. case "(($ac_try" in
  2067. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2068. *) ac_try_echo=$ac_try;;
  2069. esac
  2070. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2071. $as_echo "$ac_try_echo"; } >&5
  2072. (eval "$ac_link") 2>conftest.err
  2073. ac_status=$?
  2074. if test -s conftest.err; then
  2075. grep -v '^ *+' conftest.err >conftest.er1
  2076. cat conftest.er1 >&5
  2077. mv -f conftest.er1 conftest.err
  2078. fi
  2079. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2080. test $ac_status = 0; } && {
  2081. test -z "$ac_cxx_werror_flag" ||
  2082. test ! -s conftest.err
  2083. } && test -s conftest$ac_exeext && {
  2084. test "$cross_compiling" = yes ||
  2085. test -x conftest$ac_exeext
  2086. }; then :
  2087. ac_retval=0
  2088. else
  2089. $as_echo "$as_me: failed program was:" >&5
  2090. sed 's/^/| /' conftest.$ac_ext >&5
  2091. ac_retval=1
  2092. fi
  2093. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2094. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2095. # interfere with the next link command; also delete a directory that is
  2096. # left behind by Apple's compiler. We do this before executing the actions.
  2097. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2098. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2099. as_fn_set_status $ac_retval
  2100. } # ac_fn_cxx_try_link
  2101. # ac_fn_cxx_check_func LINENO FUNC VAR
  2102. # ------------------------------------
  2103. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2104. ac_fn_cxx_check_func ()
  2105. {
  2106. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2108. $as_echo_n "checking for $2... " >&6; }
  2109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2110. /* end confdefs.h. */
  2111. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2112. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  2113. #define $2 innocuous_$2
  2114. /* System header to define __stub macros and hopefully few prototypes,
  2115. which can conflict with char $2 (); below.
  2116. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2117. <limits.h> exists even on freestanding compilers. */
  2118. #ifdef __STDC__
  2119. # include <limits.h>
  2120. #else
  2121. # include <assert.h>
  2122. #endif
  2123. #undef $2
  2124. /* Override any GCC internal prototype to avoid an error.
  2125. Use char because int might match the return type of a GCC
  2126. builtin and then its argument prototype would still apply. */
  2127. #ifdef __cplusplus
  2128. extern "C"
  2129. #endif
  2130. char $2 ();
  2131. /* The GNU C library defines this for functions which it implements
  2132. to always fail with ENOSYS. Some functions are actually named
  2133. something starting with __ and the normal name is an alias. */
  2134. #if defined __stub_$2 || defined __stub___$2
  2135. choke me
  2136. #endif
  2137. int
  2138. main ()
  2139. {
  2140. return $2 ();
  2141. ;
  2142. return 0;
  2143. }
  2144. _ACEOF
  2145. if ac_fn_cxx_try_link "$LINENO"; then :
  2146. eval "$3=yes"
  2147. else
  2148. eval "$3=no"
  2149. fi
  2150. rm -f core conftest.err conftest.$ac_objext \
  2151. conftest$ac_exeext conftest.$ac_ext
  2152. eval ac_res=\$$3
  2153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2154. $as_echo "$ac_res" >&6; }
  2155. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2156. } # ac_fn_cxx_check_func
  2157. cat >config.log <<_ACEOF
  2158. This file contains any messages produced by compilers while
  2159. running configure, to aid debugging if configure makes a mistake.
  2160. It was created by $as_me, which was
  2161. generated by GNU Autoconf 2.69. Invocation command line was
  2162. $ $0 $@
  2163. _ACEOF
  2164. exec 5>>config.log
  2165. {
  2166. cat <<_ASUNAME
  2167. ## --------- ##
  2168. ## Platform. ##
  2169. ## --------- ##
  2170. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2171. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2172. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2173. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2174. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2175. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2176. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2177. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2178. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2179. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2180. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2181. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2182. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2183. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2184. _ASUNAME
  2185. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2186. for as_dir in $PATH
  2187. do
  2188. IFS=$as_save_IFS
  2189. test -z "$as_dir" && as_dir=.
  2190. $as_echo "PATH: $as_dir"
  2191. done
  2192. IFS=$as_save_IFS
  2193. } >&5
  2194. cat >&5 <<_ACEOF
  2195. ## ----------- ##
  2196. ## Core tests. ##
  2197. ## ----------- ##
  2198. _ACEOF
  2199. # Keep a trace of the command line.
  2200. # Strip out --no-create and --no-recursion so they do not pile up.
  2201. # Strip out --silent because we don't want to record it for future runs.
  2202. # Also quote any args containing shell meta-characters.
  2203. # Make two passes to allow for proper duplicate-argument suppression.
  2204. ac_configure_args=
  2205. ac_configure_args0=
  2206. ac_configure_args1=
  2207. ac_must_keep_next=false
  2208. for ac_pass in 1 2
  2209. do
  2210. for ac_arg
  2211. do
  2212. case $ac_arg in
  2213. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2214. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2215. | -silent | --silent | --silen | --sile | --sil)
  2216. continue ;;
  2217. *\'*)
  2218. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2219. esac
  2220. case $ac_pass in
  2221. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2222. 2)
  2223. as_fn_append ac_configure_args1 " '$ac_arg'"
  2224. if test $ac_must_keep_next = true; then
  2225. ac_must_keep_next=false # Got value, back to normal.
  2226. else
  2227. case $ac_arg in
  2228. *=* | --config-cache | -C | -disable-* | --disable-* \
  2229. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2230. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2231. | -with-* | --with-* | -without-* | --without-* | --x)
  2232. case "$ac_configure_args0 " in
  2233. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2234. esac
  2235. ;;
  2236. -* ) ac_must_keep_next=true ;;
  2237. esac
  2238. fi
  2239. as_fn_append ac_configure_args " '$ac_arg'"
  2240. ;;
  2241. esac
  2242. done
  2243. done
  2244. { ac_configure_args0=; unset ac_configure_args0;}
  2245. { ac_configure_args1=; unset ac_configure_args1;}
  2246. # When interrupted or exit'd, cleanup temporary files, and complete
  2247. # config.log. We remove comments because anyway the quotes in there
  2248. # would cause problems or look ugly.
  2249. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2250. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2251. trap 'exit_status=$?
  2252. # Save into config.log some information that might help in debugging.
  2253. {
  2254. echo
  2255. $as_echo "## ---------------- ##
  2256. ## Cache variables. ##
  2257. ## ---------------- ##"
  2258. echo
  2259. # The following way of writing the cache mishandles newlines in values,
  2260. (
  2261. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2262. eval ac_val=\$$ac_var
  2263. case $ac_val in #(
  2264. *${as_nl}*)
  2265. case $ac_var in #(
  2266. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2267. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2268. esac
  2269. case $ac_var in #(
  2270. _ | IFS | as_nl) ;; #(
  2271. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2272. *) { eval $ac_var=; unset $ac_var;} ;;
  2273. esac ;;
  2274. esac
  2275. done
  2276. (set) 2>&1 |
  2277. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2278. *${as_nl}ac_space=\ *)
  2279. sed -n \
  2280. "s/'\''/'\''\\\\'\'''\''/g;
  2281. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2282. ;; #(
  2283. *)
  2284. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2285. ;;
  2286. esac |
  2287. sort
  2288. )
  2289. echo
  2290. $as_echo "## ----------------- ##
  2291. ## Output variables. ##
  2292. ## ----------------- ##"
  2293. echo
  2294. for ac_var in $ac_subst_vars
  2295. do
  2296. eval ac_val=\$$ac_var
  2297. case $ac_val in
  2298. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2299. esac
  2300. $as_echo "$ac_var='\''$ac_val'\''"
  2301. done | sort
  2302. echo
  2303. if test -n "$ac_subst_files"; then
  2304. $as_echo "## ------------------- ##
  2305. ## File substitutions. ##
  2306. ## ------------------- ##"
  2307. echo
  2308. for ac_var in $ac_subst_files
  2309. do
  2310. eval ac_val=\$$ac_var
  2311. case $ac_val in
  2312. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2313. esac
  2314. $as_echo "$ac_var='\''$ac_val'\''"
  2315. done | sort
  2316. echo
  2317. fi
  2318. if test -s confdefs.h; then
  2319. $as_echo "## ----------- ##
  2320. ## confdefs.h. ##
  2321. ## ----------- ##"
  2322. echo
  2323. cat confdefs.h
  2324. echo
  2325. fi
  2326. test "$ac_signal" != 0 &&
  2327. $as_echo "$as_me: caught signal $ac_signal"
  2328. $as_echo "$as_me: exit $exit_status"
  2329. } >&5
  2330. rm -f core *.core core.conftest.* &&
  2331. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2332. exit $exit_status
  2333. ' 0
  2334. for ac_signal in 1 2 13 15; do
  2335. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2336. done
  2337. ac_signal=0
  2338. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2339. rm -f -r conftest* confdefs.h
  2340. $as_echo "/* confdefs.h */" > confdefs.h
  2341. # Predefined preprocessor variables.
  2342. cat >>confdefs.h <<_ACEOF
  2343. #define PACKAGE_NAME "$PACKAGE_NAME"
  2344. _ACEOF
  2345. cat >>confdefs.h <<_ACEOF
  2346. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2347. _ACEOF
  2348. cat >>confdefs.h <<_ACEOF
  2349. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2350. _ACEOF
  2351. cat >>confdefs.h <<_ACEOF
  2352. #define PACKAGE_STRING "$PACKAGE_STRING"
  2353. _ACEOF
  2354. cat >>confdefs.h <<_ACEOF
  2355. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2356. _ACEOF
  2357. cat >>confdefs.h <<_ACEOF
  2358. #define PACKAGE_URL "$PACKAGE_URL"
  2359. _ACEOF
  2360. # Let the site file select an alternate cache file if it wants to.
  2361. # Prefer an explicitly selected file to automatically selected ones.
  2362. ac_site_file1=NONE
  2363. ac_site_file2=NONE
  2364. if test -n "$CONFIG_SITE"; then
  2365. # We do not want a PATH search for config.site.
  2366. case $CONFIG_SITE in #((
  2367. -*) ac_site_file1=./$CONFIG_SITE;;
  2368. */*) ac_site_file1=$CONFIG_SITE;;
  2369. *) ac_site_file1=./$CONFIG_SITE;;
  2370. esac
  2371. elif test "x$prefix" != xNONE; then
  2372. ac_site_file1=$prefix/share/config.site
  2373. ac_site_file2=$prefix/etc/config.site
  2374. else
  2375. ac_site_file1=$ac_default_prefix/share/config.site
  2376. ac_site_file2=$ac_default_prefix/etc/config.site
  2377. fi
  2378. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2379. do
  2380. test "x$ac_site_file" = xNONE && continue
  2381. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2382. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2383. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2384. sed 's/^/| /' "$ac_site_file" >&5
  2385. . "$ac_site_file" \
  2386. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2387. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2388. as_fn_error $? "failed to load site script $ac_site_file
  2389. See \`config.log' for more details" "$LINENO" 5; }
  2390. fi
  2391. done
  2392. # Check that the precious variables saved in the cache have kept the same
  2393. # value.
  2394. ac_cache_corrupted=false
  2395. for ac_var in $ac_precious_vars; do
  2396. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2397. eval ac_new_set=\$ac_env_${ac_var}_set
  2398. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2399. eval ac_new_val=\$ac_env_${ac_var}_value
  2400. case $ac_old_set,$ac_new_set in
  2401. set,)
  2402. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2403. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2404. ac_cache_corrupted=: ;;
  2405. ,set)
  2406. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2407. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2408. ac_cache_corrupted=: ;;
  2409. ,);;
  2410. *)
  2411. if test "x$ac_old_val" != "x$ac_new_val"; then
  2412. # differences in whitespace do not lead to failure.
  2413. ac_old_val_w=`echo x $ac_old_val`
  2414. ac_new_val_w=`echo x $ac_new_val`
  2415. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2416. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2417. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2418. ac_cache_corrupted=:
  2419. else
  2420. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2421. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2422. eval $ac_var=\$ac_old_val
  2423. fi
  2424. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2425. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2426. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2427. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2428. fi;;
  2429. esac
  2430. # Pass precious variables to config.status.
  2431. if test "$ac_new_set" = set; then
  2432. case $ac_new_val in
  2433. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2434. *) ac_arg=$ac_var=$ac_new_val ;;
  2435. esac
  2436. case " $ac_configure_args " in
  2437. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2438. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2439. esac
  2440. fi
  2441. done
  2442. if $ac_cache_corrupted; then
  2443. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2444. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2445. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2446. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2447. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2448. fi
  2449. ## -------------------- ##
  2450. ## Main body of script. ##
  2451. ## -------------------- ##
  2452. ac_ext=c
  2453. ac_cpp='$CPP $CPPFLAGS'
  2454. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2455. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2456. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2457. ac_config_headers="$ac_config_headers include/config.h"
  2458. ac_aux_dir=
  2459. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2460. if test -f "$ac_dir/install-sh"; then
  2461. ac_aux_dir=$ac_dir
  2462. ac_install_sh="$ac_aux_dir/install-sh -c"
  2463. break
  2464. elif test -f "$ac_dir/install.sh"; then
  2465. ac_aux_dir=$ac_dir
  2466. ac_install_sh="$ac_aux_dir/install.sh -c"
  2467. break
  2468. elif test -f "$ac_dir/shtool"; then
  2469. ac_aux_dir=$ac_dir
  2470. ac_install_sh="$ac_aux_dir/shtool install -c"
  2471. break
  2472. fi
  2473. done
  2474. if test -z "$ac_aux_dir"; then
  2475. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2476. fi
  2477. # These three variables are undocumented and unsupported,
  2478. # and are intended to be withdrawn in a future Autoconf release.
  2479. # They can cause serious problems if a builder's source tree is in a directory
  2480. # whose full name contains unusual characters.
  2481. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2482. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2483. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2484. # Make sure we can run config.sub.
  2485. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2486. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2488. $as_echo_n "checking build system type... " >&6; }
  2489. ac_build_alias=$build_alias
  2490. test "x$ac_build_alias" = x &&
  2491. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2492. test "x$ac_build_alias" = x &&
  2493. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2494. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2495. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2497. $as_echo "$ac_cv_build" >&6; }
  2498. case $ac_cv_build in
  2499. *-*-*) ;;
  2500. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2501. esac
  2502. build=$ac_cv_build
  2503. ac_save_IFS=$IFS; IFS='-'
  2504. set x $ac_cv_build
  2505. shift
  2506. build_cpu=$1
  2507. build_vendor=$2
  2508. shift; shift
  2509. # Remember, the first character of IFS is used to create $*,
  2510. # except with old shells:
  2511. build_os=$*
  2512. IFS=$ac_save_IFS
  2513. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2515. $as_echo_n "checking host system type... " >&6; }
  2516. if test "x$host_alias" = x; then
  2517. ac_cv_host=$ac_cv_build
  2518. else
  2519. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2520. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2521. fi
  2522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2523. $as_echo "$ac_cv_host" >&6; }
  2524. case $ac_cv_host in
  2525. *-*-*) ;;
  2526. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2527. esac
  2528. host=$ac_cv_host
  2529. ac_save_IFS=$IFS; IFS='-'
  2530. set x $ac_cv_host
  2531. shift
  2532. host_cpu=$1
  2533. host_vendor=$2
  2534. shift; shift
  2535. # Remember, the first character of IFS is used to create $*,
  2536. # except with old shells:
  2537. host_os=$*
  2538. IFS=$ac_save_IFS
  2539. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2540. ac_ext=c
  2541. ac_cpp='$CPP $CPPFLAGS'
  2542. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2543. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2544. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2545. if test -n "$ac_tool_prefix"; then
  2546. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2547. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2549. $as_echo_n "checking for $ac_word... " >&6; }
  2550. if test -n "$CC"; then
  2551. ac_cv_prog_CC="$CC" # Let the user override the test.
  2552. else
  2553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2554. for as_dir in $PATH
  2555. do
  2556. IFS=$as_save_IFS
  2557. test -z "$as_dir" && as_dir=.
  2558. for ac_exec_ext in '' $ac_executable_extensions; do
  2559. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2560. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2561. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2562. break 2
  2563. fi
  2564. done
  2565. done
  2566. IFS=$as_save_IFS
  2567. fi
  2568. CC=$ac_cv_prog_CC
  2569. if test -n "$CC"; then
  2570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2571. $as_echo "$CC" >&6; }
  2572. else
  2573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2574. $as_echo "no" >&6; }
  2575. fi
  2576. fi
  2577. if test -z "$ac_cv_prog_CC"; then
  2578. ac_ct_CC=$CC
  2579. # Extract the first word of "gcc", so it can be a program name with args.
  2580. set dummy gcc; ac_word=$2
  2581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2582. $as_echo_n "checking for $ac_word... " >&6; }
  2583. if test -n "$ac_ct_CC"; then
  2584. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2585. else
  2586. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2587. for as_dir in $PATH
  2588. do
  2589. IFS=$as_save_IFS
  2590. test -z "$as_dir" && as_dir=.
  2591. for ac_exec_ext in '' $ac_executable_extensions; do
  2592. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2593. ac_cv_prog_ac_ct_CC="gcc"
  2594. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2595. break 2
  2596. fi
  2597. done
  2598. done
  2599. IFS=$as_save_IFS
  2600. fi
  2601. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2602. if test -n "$ac_ct_CC"; then
  2603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2604. $as_echo "$ac_ct_CC" >&6; }
  2605. else
  2606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2607. $as_echo "no" >&6; }
  2608. fi
  2609. if test "x$ac_ct_CC" = x; then
  2610. CC=""
  2611. else
  2612. case $cross_compiling:$ac_tool_warned in
  2613. yes:)
  2614. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2615. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2616. ac_tool_warned=yes ;;
  2617. esac
  2618. CC=$ac_ct_CC
  2619. fi
  2620. else
  2621. CC="$ac_cv_prog_CC"
  2622. fi
  2623. if test -z "$CC"; then
  2624. if test -n "$ac_tool_prefix"; then
  2625. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2626. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2628. $as_echo_n "checking for $ac_word... " >&6; }
  2629. if test -n "$CC"; then
  2630. ac_cv_prog_CC="$CC" # Let the user override the test.
  2631. else
  2632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2633. for as_dir in $PATH
  2634. do
  2635. IFS=$as_save_IFS
  2636. test -z "$as_dir" && as_dir=.
  2637. for ac_exec_ext in '' $ac_executable_extensions; do
  2638. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2639. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2640. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2641. break 2
  2642. fi
  2643. done
  2644. done
  2645. IFS=$as_save_IFS
  2646. fi
  2647. CC=$ac_cv_prog_CC
  2648. if test -n "$CC"; then
  2649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2650. $as_echo "$CC" >&6; }
  2651. else
  2652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2653. $as_echo "no" >&6; }
  2654. fi
  2655. fi
  2656. fi
  2657. if test -z "$CC"; then
  2658. # Extract the first word of "cc", so it can be a program name with args.
  2659. set dummy cc; ac_word=$2
  2660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2661. $as_echo_n "checking for $ac_word... " >&6; }
  2662. if test -n "$CC"; then
  2663. ac_cv_prog_CC="$CC" # Let the user override the test.
  2664. else
  2665. ac_prog_rejected=no
  2666. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2667. for as_dir in $PATH
  2668. do
  2669. IFS=$as_save_IFS
  2670. test -z "$as_dir" && as_dir=.
  2671. for ac_exec_ext in '' $ac_executable_extensions; do
  2672. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2673. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2674. ac_prog_rejected=yes
  2675. continue
  2676. fi
  2677. ac_cv_prog_CC="cc"
  2678. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2679. break 2
  2680. fi
  2681. done
  2682. done
  2683. IFS=$as_save_IFS
  2684. if test $ac_prog_rejected = yes; then
  2685. # We found a bogon in the path, so make sure we never use it.
  2686. set dummy $ac_cv_prog_CC
  2687. shift
  2688. if test $# != 0; then
  2689. # We chose a different compiler from the bogus one.
  2690. # However, it has the same basename, so the bogon will be chosen
  2691. # first if we set CC to just the basename; use the full file name.
  2692. shift
  2693. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2694. fi
  2695. fi
  2696. fi
  2697. CC=$ac_cv_prog_CC
  2698. if test -n "$CC"; then
  2699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2700. $as_echo "$CC" >&6; }
  2701. else
  2702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2703. $as_echo "no" >&6; }
  2704. fi
  2705. fi
  2706. if test -z "$CC"; then
  2707. if test -n "$ac_tool_prefix"; then
  2708. for ac_prog in cl.exe
  2709. do
  2710. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2711. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2713. $as_echo_n "checking for $ac_word... " >&6; }
  2714. if test -n "$CC"; then
  2715. ac_cv_prog_CC="$CC" # Let the user override the test.
  2716. else
  2717. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2718. for as_dir in $PATH
  2719. do
  2720. IFS=$as_save_IFS
  2721. test -z "$as_dir" && as_dir=.
  2722. for ac_exec_ext in '' $ac_executable_extensions; do
  2723. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2724. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2725. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2726. break 2
  2727. fi
  2728. done
  2729. done
  2730. IFS=$as_save_IFS
  2731. fi
  2732. CC=$ac_cv_prog_CC
  2733. if test -n "$CC"; then
  2734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2735. $as_echo "$CC" >&6; }
  2736. else
  2737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2738. $as_echo "no" >&6; }
  2739. fi
  2740. test -n "$CC" && break
  2741. done
  2742. fi
  2743. if test -z "$CC"; then
  2744. ac_ct_CC=$CC
  2745. for ac_prog in cl.exe
  2746. do
  2747. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2748. set dummy $ac_prog; ac_word=$2
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2750. $as_echo_n "checking for $ac_word... " >&6; }
  2751. if test -n "$ac_ct_CC"; then
  2752. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2753. else
  2754. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2755. for as_dir in $PATH
  2756. do
  2757. IFS=$as_save_IFS
  2758. test -z "$as_dir" && as_dir=.
  2759. for ac_exec_ext in '' $ac_executable_extensions; do
  2760. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2761. ac_cv_prog_ac_ct_CC="$ac_prog"
  2762. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2763. break 2
  2764. fi
  2765. done
  2766. done
  2767. IFS=$as_save_IFS
  2768. fi
  2769. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2770. if test -n "$ac_ct_CC"; then
  2771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2772. $as_echo "$ac_ct_CC" >&6; }
  2773. else
  2774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2775. $as_echo "no" >&6; }
  2776. fi
  2777. test -n "$ac_ct_CC" && break
  2778. done
  2779. if test "x$ac_ct_CC" = x; then
  2780. CC=""
  2781. else
  2782. case $cross_compiling:$ac_tool_warned in
  2783. yes:)
  2784. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2785. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2786. ac_tool_warned=yes ;;
  2787. esac
  2788. CC=$ac_ct_CC
  2789. fi
  2790. fi
  2791. fi
  2792. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2793. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2794. as_fn_error $? "no acceptable C compiler found in \$PATH
  2795. See \`config.log' for more details" "$LINENO" 5; }
  2796. # Provide some information about the compiler.
  2797. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2798. set X $ac_compile
  2799. ac_compiler=$2
  2800. for ac_option in --version -v -V -qversion; do
  2801. { { ac_try="$ac_compiler $ac_option >&5"
  2802. case "(($ac_try" in
  2803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2804. *) ac_try_echo=$ac_try;;
  2805. esac
  2806. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2807. $as_echo "$ac_try_echo"; } >&5
  2808. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2809. ac_status=$?
  2810. if test -s conftest.err; then
  2811. sed '10a\
  2812. ... rest of stderr output deleted ...
  2813. 10q' conftest.err >conftest.er1
  2814. cat conftest.er1 >&5
  2815. fi
  2816. rm -f conftest.er1 conftest.err
  2817. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2818. test $ac_status = 0; }
  2819. done
  2820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2821. /* end confdefs.h. */
  2822. int
  2823. main ()
  2824. {
  2825. ;
  2826. return 0;
  2827. }
  2828. _ACEOF
  2829. ac_clean_files_save=$ac_clean_files
  2830. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2831. # Try to create an executable without -o first, disregard a.out.
  2832. # It will help us diagnose broken compilers, and finding out an intuition
  2833. # of exeext.
  2834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2835. $as_echo_n "checking whether the C compiler works... " >&6; }
  2836. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2837. # The possible output files:
  2838. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2839. ac_rmfiles=
  2840. for ac_file in $ac_files
  2841. do
  2842. case $ac_file in
  2843. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2844. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2845. esac
  2846. done
  2847. rm -f $ac_rmfiles
  2848. if { { ac_try="$ac_link_default"
  2849. case "(($ac_try" in
  2850. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2851. *) ac_try_echo=$ac_try;;
  2852. esac
  2853. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2854. $as_echo "$ac_try_echo"; } >&5
  2855. (eval "$ac_link_default") 2>&5
  2856. ac_status=$?
  2857. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2858. test $ac_status = 0; }; then :
  2859. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2860. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2861. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2862. # so that the user can short-circuit this test for compilers unknown to
  2863. # Autoconf.
  2864. for ac_file in $ac_files ''
  2865. do
  2866. test -f "$ac_file" || continue
  2867. case $ac_file in
  2868. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2869. ;;
  2870. [ab].out )
  2871. # We found the default executable, but exeext='' is most
  2872. # certainly right.
  2873. break;;
  2874. *.* )
  2875. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2876. then :; else
  2877. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2878. fi
  2879. # We set ac_cv_exeext here because the later test for it is not
  2880. # safe: cross compilers may not add the suffix if given an `-o'
  2881. # argument, so we may need to know it at that point already.
  2882. # Even if this section looks crufty: it has the advantage of
  2883. # actually working.
  2884. break;;
  2885. * )
  2886. break;;
  2887. esac
  2888. done
  2889. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2890. else
  2891. ac_file=''
  2892. fi
  2893. if test -z "$ac_file"; then :
  2894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2895. $as_echo "no" >&6; }
  2896. $as_echo "$as_me: failed program was:" >&5
  2897. sed 's/^/| /' conftest.$ac_ext >&5
  2898. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2899. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2900. as_fn_error 77 "C compiler cannot create executables
  2901. See \`config.log' for more details" "$LINENO" 5; }
  2902. else
  2903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2904. $as_echo "yes" >&6; }
  2905. fi
  2906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2907. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2909. $as_echo "$ac_file" >&6; }
  2910. ac_exeext=$ac_cv_exeext
  2911. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2912. ac_clean_files=$ac_clean_files_save
  2913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2914. $as_echo_n "checking for suffix of executables... " >&6; }
  2915. if { { ac_try="$ac_link"
  2916. case "(($ac_try" in
  2917. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2918. *) ac_try_echo=$ac_try;;
  2919. esac
  2920. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2921. $as_echo "$ac_try_echo"; } >&5
  2922. (eval "$ac_link") 2>&5
  2923. ac_status=$?
  2924. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2925. test $ac_status = 0; }; then :
  2926. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2927. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2928. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2929. # `rm'.
  2930. for ac_file in conftest.exe conftest conftest.*; do
  2931. test -f "$ac_file" || continue
  2932. case $ac_file in
  2933. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2934. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2935. break;;
  2936. * ) break;;
  2937. esac
  2938. done
  2939. else
  2940. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2941. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2942. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2943. See \`config.log' for more details" "$LINENO" 5; }
  2944. fi
  2945. rm -f conftest conftest$ac_cv_exeext
  2946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2947. $as_echo "$ac_cv_exeext" >&6; }
  2948. rm -f conftest.$ac_ext
  2949. EXEEXT=$ac_cv_exeext
  2950. ac_exeext=$EXEEXT
  2951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2952. /* end confdefs.h. */
  2953. #include <stdio.h>
  2954. int
  2955. main ()
  2956. {
  2957. FILE *f = fopen ("conftest.out", "w");
  2958. return ferror (f) || fclose (f) != 0;
  2959. ;
  2960. return 0;
  2961. }
  2962. _ACEOF
  2963. ac_clean_files="$ac_clean_files conftest.out"
  2964. # Check that the compiler produces executables we can run. If not, either
  2965. # the compiler is broken, or we cross compile.
  2966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2967. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2968. if test "$cross_compiling" != yes; then
  2969. { { ac_try="$ac_link"
  2970. case "(($ac_try" in
  2971. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2972. *) ac_try_echo=$ac_try;;
  2973. esac
  2974. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2975. $as_echo "$ac_try_echo"; } >&5
  2976. (eval "$ac_link") 2>&5
  2977. ac_status=$?
  2978. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2979. test $ac_status = 0; }
  2980. if { ac_try='./conftest$ac_cv_exeext'
  2981. { { case "(($ac_try" in
  2982. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2983. *) ac_try_echo=$ac_try;;
  2984. esac
  2985. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2986. $as_echo "$ac_try_echo"; } >&5
  2987. (eval "$ac_try") 2>&5
  2988. ac_status=$?
  2989. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2990. test $ac_status = 0; }; }; then
  2991. cross_compiling=no
  2992. else
  2993. if test "$cross_compiling" = maybe; then
  2994. cross_compiling=yes
  2995. else
  2996. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2997. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2998. as_fn_error $? "cannot run C compiled programs.
  2999. If you meant to cross compile, use \`--host'.
  3000. See \`config.log' for more details" "$LINENO" 5; }
  3001. fi
  3002. fi
  3003. fi
  3004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3005. $as_echo "$cross_compiling" >&6; }
  3006. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3007. ac_clean_files=$ac_clean_files_save
  3008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3009. $as_echo_n "checking for suffix of object files... " >&6; }
  3010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3011. /* end confdefs.h. */
  3012. int
  3013. main ()
  3014. {
  3015. ;
  3016. return 0;
  3017. }
  3018. _ACEOF
  3019. rm -f conftest.o conftest.obj
  3020. if { { ac_try="$ac_compile"
  3021. case "(($ac_try" in
  3022. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3023. *) ac_try_echo=$ac_try;;
  3024. esac
  3025. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3026. $as_echo "$ac_try_echo"; } >&5
  3027. (eval "$ac_compile") 2>&5
  3028. ac_status=$?
  3029. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3030. test $ac_status = 0; }; then :
  3031. for ac_file in conftest.o conftest.obj conftest.*; do
  3032. test -f "$ac_file" || continue;
  3033. case $ac_file in
  3034. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3035. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3036. break;;
  3037. esac
  3038. done
  3039. else
  3040. $as_echo "$as_me: failed program was:" >&5
  3041. sed 's/^/| /' conftest.$ac_ext >&5
  3042. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3043. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3044. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3045. See \`config.log' for more details" "$LINENO" 5; }
  3046. fi
  3047. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3049. $as_echo "$ac_cv_objext" >&6; }
  3050. OBJEXT=$ac_cv_objext
  3051. ac_objext=$OBJEXT
  3052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3053. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3055. /* end confdefs.h. */
  3056. int
  3057. main ()
  3058. {
  3059. #ifndef __GNUC__
  3060. choke me
  3061. #endif
  3062. ;
  3063. return 0;
  3064. }
  3065. _ACEOF
  3066. if ac_fn_c_try_compile "$LINENO"; then :
  3067. ac_compiler_gnu=yes
  3068. else
  3069. ac_compiler_gnu=no
  3070. fi
  3071. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3072. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3074. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3075. if test $ac_compiler_gnu = yes; then
  3076. GCC=yes
  3077. else
  3078. GCC=
  3079. fi
  3080. ac_test_CFLAGS=${CFLAGS+set}
  3081. ac_save_CFLAGS=$CFLAGS
  3082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3083. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3084. ac_save_c_werror_flag=$ac_c_werror_flag
  3085. ac_c_werror_flag=yes
  3086. ac_cv_prog_cc_g=no
  3087. CFLAGS="-g"
  3088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3089. /* end confdefs.h. */
  3090. int
  3091. main ()
  3092. {
  3093. ;
  3094. return 0;
  3095. }
  3096. _ACEOF
  3097. if ac_fn_c_try_compile "$LINENO"; then :
  3098. ac_cv_prog_cc_g=yes
  3099. else
  3100. CFLAGS=""
  3101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3102. /* end confdefs.h. */
  3103. int
  3104. main ()
  3105. {
  3106. ;
  3107. return 0;
  3108. }
  3109. _ACEOF
  3110. if ac_fn_c_try_compile "$LINENO"; then :
  3111. else
  3112. ac_c_werror_flag=$ac_save_c_werror_flag
  3113. CFLAGS="-g"
  3114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3115. /* end confdefs.h. */
  3116. int
  3117. main ()
  3118. {
  3119. ;
  3120. return 0;
  3121. }
  3122. _ACEOF
  3123. if ac_fn_c_try_compile "$LINENO"; then :
  3124. ac_cv_prog_cc_g=yes
  3125. fi
  3126. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3127. fi
  3128. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3129. fi
  3130. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3131. ac_c_werror_flag=$ac_save_c_werror_flag
  3132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3133. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3134. if test "$ac_test_CFLAGS" = set; then
  3135. CFLAGS=$ac_save_CFLAGS
  3136. elif test $ac_cv_prog_cc_g = yes; then
  3137. if test "$GCC" = yes; then
  3138. CFLAGS="-g -O2"
  3139. else
  3140. CFLAGS="-g"
  3141. fi
  3142. else
  3143. if test "$GCC" = yes; then
  3144. CFLAGS="-O2"
  3145. else
  3146. CFLAGS=
  3147. fi
  3148. fi
  3149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3150. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3151. ac_cv_prog_cc_c89=no
  3152. ac_save_CC=$CC
  3153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3154. /* end confdefs.h. */
  3155. #include <stdarg.h>
  3156. #include <stdio.h>
  3157. struct stat;
  3158. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3159. struct buf { int x; };
  3160. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3161. static char *e (p, i)
  3162. char **p;
  3163. int i;
  3164. {
  3165. return p[i];
  3166. }
  3167. static char *f (char * (*g) (char **, int), char **p, ...)
  3168. {
  3169. char *s;
  3170. va_list v;
  3171. va_start (v,p);
  3172. s = g (p, va_arg (v,int));
  3173. va_end (v);
  3174. return s;
  3175. }
  3176. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3177. function prototypes and stuff, but not '\xHH' hex character constants.
  3178. These don't provoke an error unfortunately, instead are silently treated
  3179. as 'x'. The following induces an error, until -std is added to get
  3180. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3181. array size at least. It's necessary to write '\x00'==0 to get something
  3182. that's true only with -std. */
  3183. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3184. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3185. inside strings and character constants. */
  3186. #define FOO(x) 'x'
  3187. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3188. int test (int i, double x);
  3189. struct s1 {int (*f) (int a);};
  3190. struct s2 {int (*f) (double a);};
  3191. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3192. int argc;
  3193. char **argv;
  3194. int
  3195. main ()
  3196. {
  3197. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3198. ;
  3199. return 0;
  3200. }
  3201. _ACEOF
  3202. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3203. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3204. do
  3205. CC="$ac_save_CC $ac_arg"
  3206. if ac_fn_c_try_compile "$LINENO"; then :
  3207. ac_cv_prog_cc_c89=$ac_arg
  3208. fi
  3209. rm -f core conftest.err conftest.$ac_objext
  3210. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3211. done
  3212. rm -f conftest.$ac_ext
  3213. CC=$ac_save_CC
  3214. # AC_CACHE_VAL
  3215. case "x$ac_cv_prog_cc_c89" in
  3216. x)
  3217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3218. $as_echo "none needed" >&6; } ;;
  3219. xno)
  3220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3221. $as_echo "unsupported" >&6; } ;;
  3222. *)
  3223. CC="$CC $ac_cv_prog_cc_c89"
  3224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3225. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3226. esac
  3227. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3228. fi
  3229. ac_ext=c
  3230. ac_cpp='$CPP $CPPFLAGS'
  3231. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3232. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3233. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3234. case $host_os in
  3235. *cygwin* ) CYGWIN=yes;;
  3236. esac
  3237. case $host_os in
  3238. *mingw32* ) MINGW32=yes;;
  3239. esac
  3240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for executable suffix" >&5
  3241. $as_echo_n "checking for executable suffix... " >&6; }
  3242. if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
  3243. ac_cv_exeext=.exe
  3244. else
  3245. ac_cv_exeext=no
  3246. fi
  3247. EXEEXT=""
  3248. test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
  3249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_exeext}" >&5
  3250. $as_echo "${ac_cv_exeext}" >&6; }
  3251. ac_exeext=$EXEEXT
  3252. # Check for full floating-point support, including Infinity and NaN
  3253. IEEEFLAG=
  3254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for full floating-point support" >&5
  3255. $as_echo_n "checking for full floating-point support... " >&6; }
  3256. if test "$cross_compiling" = yes; then :
  3257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown (cross-compiling)" >&5
  3258. $as_echo "unknown (cross-compiling)" >&6; }
  3259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \"cc -mieee\" works" >&5
  3260. $as_echo_n "checking whether \"cc -mieee\" works... " >&6; }
  3261. ac_save_cflags=${CFLAGS}
  3262. CFLAGS="$CFLAGS -mieee"
  3263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3264. /* end confdefs.h. */
  3265. int
  3266. main ()
  3267. {
  3268. ;
  3269. return 0;
  3270. }
  3271. _ACEOF
  3272. if ac_fn_c_try_compile "$LINENO"; then :
  3273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3274. $as_echo "yes" >&6; }
  3275. IEEEFLAG="-mieee"
  3276. else
  3277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3278. $as_echo "no" >&6; }
  3279. fi
  3280. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3281. CFLAGS=${ac_save_cflags}
  3282. else
  3283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3284. /* end confdefs.h. */
  3285. #include <float.h>
  3286. int main(void) {
  3287. double one = 1.0;
  3288. double zero = 0.0;
  3289. if (one/zero > DBL_MAX) /* infinity */
  3290. if (zero/zero != zero/zero) /* NaN */
  3291. return 0;
  3292. return 1;
  3293. }
  3294. _ACEOF
  3295. if ac_fn_c_try_run "$LINENO"; then :
  3296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3297. $as_echo "yes" >&6; }
  3298. else
  3299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3300. $as_echo "no" >&6; }
  3301. ac_save_cflags=${CFLAGS}
  3302. CFLAGS=-mieee
  3303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for full floating-point support with -mieee" >&5
  3304. $as_echo_n "checking for full floating-point support with -mieee... " >&6; }
  3305. if test "$cross_compiling" = yes; then :
  3306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown (cross-compiling)" >&5
  3307. $as_echo "unknown (cross-compiling)" >&6; }
  3308. as_fn_error $? "*** INTERNAL CONFIGURE ERROR" "$LINENO" 5
  3309. else
  3310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3311. /* end confdefs.h. */
  3312. #include <float.h>
  3313. int main(void) {
  3314. double one = 1.0;
  3315. double zero = 0.0;
  3316. if (one/zero > DBL_MAX) /* infinity */
  3317. if (zero/zero != zero/zero) /* NaN */
  3318. return 0;
  3319. return 1;
  3320. }
  3321. _ACEOF
  3322. if ac_fn_c_try_run "$LINENO"; then :
  3323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3324. $as_echo "yes" >&6; }
  3325. IEEEFLAG="-mieee"
  3326. else
  3327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3328. $as_echo "no" >&6; }
  3329. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Incomplete floating-point support." >&5
  3330. $as_echo "$as_me: WARNING: *** Incomplete floating-point support." >&2;}
  3331. fi
  3332. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3333. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3334. fi
  3335. CFLAGS=${ac_save_cflags}
  3336. fi
  3337. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3338. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3339. fi
  3340. CFLAGS="$CFLAGS $IEEEFLAG"
  3341. # Set BINDIR
  3342. if test -n "${bindir}"; then
  3343. BINDIR="${bindir}"
  3344. else
  3345. BINDIR=/usr/local/bin
  3346. fi
  3347. # Set SRCDIR and DSTDIR
  3348. # Extract the first word of "pwd", so it can be a program name with args.
  3349. set dummy pwd; ac_word=$2
  3350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3351. $as_echo_n "checking for $ac_word... " >&6; }
  3352. case $pwd in
  3353. [\\/]* | ?:[\\/]*)
  3354. ac_cv_path_pwd="$pwd" # Let the user override the test with a path.
  3355. ;;
  3356. *)
  3357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3358. for as_dir in $PATH
  3359. do
  3360. IFS=$as_save_IFS
  3361. test -z "$as_dir" && as_dir=.
  3362. for ac_exec_ext in '' $ac_executable_extensions; do
  3363. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3364. ac_cv_path_pwd="$as_dir/$ac_word$ac_exec_ext"
  3365. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3366. break 2
  3367. fi
  3368. done
  3369. done
  3370. IFS=$as_save_IFS
  3371. test -z "$ac_cv_path_pwd" && ac_cv_path_pwd="pwd"
  3372. ;;
  3373. esac
  3374. pwd=$ac_cv_path_pwd
  3375. if test -n "$pwd"; then
  3376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pwd" >&5
  3377. $as_echo "$pwd" >&6; }
  3378. else
  3379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3380. $as_echo "no" >&6; }
  3381. fi
  3382. if test "$MINGW32" = yes ; then
  3383. winpwd="pwd -W"
  3384. else
  3385. winpwd="$pwd"
  3386. fi
  3387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for source directory" >&5
  3388. $as_echo_n "checking for source directory... " >&6; }
  3389. if test -z "$srcdir" ; then
  3390. SRCDIR=`$pwd`
  3391. else
  3392. SRCDIR=`(cd "$srcdir" ; $pwd)`
  3393. fi
  3394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$SRCDIR\"" >&5
  3395. $as_echo "\"$SRCDIR\"" >&6; }
  3396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directory" >&5
  3397. $as_echo_n "checking for build directory... " >&6; }
  3398. DSTDIR=`$pwd`
  3399. WINDSTDIR=`$winpwd`
  3400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$DSTDIR\"" >&5
  3401. $as_echo "\"$DSTDIR\"" >&6; }
  3402. # Set ARCH
  3403. ARCH=
  3404. if test -z "${host}"; then
  3405. ARCH="unknown"
  3406. else
  3407. ARCH="${host}"
  3408. fi
  3409. # Set GISBASE and GRASS_BIN
  3410. GISBASE="${WINDSTDIR}/dist.${ARCH}"
  3411. GRASS_BIN="${DSTDIR}/bin.${ARCH}"
  3412. # Set GRASS_VERSION_*
  3413. GRASS_VERSION_FILE=include/VERSION
  3414. GRASS_VERSION_MAJOR=`sed -n 1p "${GRASS_VERSION_FILE}"`
  3415. GRASS_VERSION_MINOR=`sed -n 2p "${GRASS_VERSION_FILE}"`
  3416. GRASS_VERSION_RELEASE=`sed -n 3p "${GRASS_VERSION_FILE}"`
  3417. GRASS_VERSION_DATE=`sed -n 4p "${GRASS_VERSION_FILE}"`
  3418. GRASS_VERSION_NUMBER=`echo ${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.${GRASS_VERSION_RELEASE}`
  3419. NAME_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/\..*//'`
  3420. LIB_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/^\([0-9.]*\).*$/\1/'`
  3421. GRASS_VERSION_GIT="exported"
  3422. # get git short hash + date of last change in GRASS headers
  3423. # (and anything else in include)
  3424. GRASS_HEADERS_GIT_HASH=`date -u +%FT%T%z | sed 's/\(..\)$/:\1/'`
  3425. GRASS_HEADERS_GIT_DATE=`date -u +%FT%T%z | sed 's/\(..\)$/:\1/'`
  3426. # Extract the first word of "git", so it can be a program name with args.
  3427. set dummy git; ac_word=$2
  3428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3429. $as_echo_n "checking for $ac_word... " >&6; }
  3430. case $GIT in
  3431. [\\/]* | ?:[\\/]*)
  3432. ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
  3433. ;;
  3434. *)
  3435. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3436. for as_dir in $PATH
  3437. do
  3438. IFS=$as_save_IFS
  3439. test -z "$as_dir" && as_dir=.
  3440. for ac_exec_ext in '' $ac_executable_extensions; do
  3441. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3442. ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
  3443. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3444. break 2
  3445. fi
  3446. done
  3447. done
  3448. IFS=$as_save_IFS
  3449. test -z "$ac_cv_path_GIT" && ac_cv_path_GIT="no"
  3450. ;;
  3451. esac
  3452. GIT=$ac_cv_path_GIT
  3453. if test -n "$GIT"; then
  3454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
  3455. $as_echo "$GIT" >&6; }
  3456. else
  3457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3458. $as_echo "no" >&6; }
  3459. fi
  3460. if test "$GIT" != "no" ; then
  3461. GRASS_VERSION_GIT=`$GIT rev-parse --short HEAD 2>/dev/null`
  3462. if test -z "$GRASS_VERSION_GIT"; then
  3463. GRASS_VERSION_GIT="exported"
  3464. fi
  3465. GRASS_HEADERS_GIT_HASH=`$GIT log -1 --pretty=format:"%h" -- "${SRCDIR}/include" 2>/dev/null`
  3466. if test -z "$GRASS_HEADERS_GIT_HASH"; then
  3467. GRASS_HEADERS_GIT_HASH=`date -u +%FT%T%z | sed 's/\(..\)$/:\1/'`
  3468. fi
  3469. GRASS_HEADERS_GIT_DATE=`date -d $($GIT log -1 --pretty=format:"%cI" -- "${SRCDIR}/include") -u +%FT%T%z | sed 's/\(..\)$/:\1/'` 2>/dev/null
  3470. if test -z "$GRASS_HEADERS_GIT_DATE"; then
  3471. GRASS_HEADERS_GIT_DATE=`date -u +%FT%T%z | sed 's/\(..\)$/:\1/'`
  3472. fi
  3473. fi
  3474. # Check for MacOSX App
  3475. # Check whether --enable-macosx-app was given.
  3476. if test "${enable_macosx_app+set}" = set; then :
  3477. enableval=$enable_macosx_app;
  3478. else
  3479. enable_macosx_app=no
  3480. fi
  3481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MacOSX App" >&5
  3482. $as_echo_n "checking for MacOSX App... " >&6; }
  3483. case "$enable_macosx_app" in
  3484. yes) MACOSX_APP=1 ;;
  3485. no) MACOSX_APP= ;;
  3486. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  3487. esac
  3488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$enable_macosx_app\"" >&5
  3489. $as_echo "\"$enable_macosx_app\"" >&6; }
  3490. # Check for MacOSX archs
  3491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MacOSX architectures" >&5
  3492. $as_echo_n "checking for MacOSX architectures... " >&6; }
  3493. MACOSX_ARCHS=
  3494. if test -z "$with_macosx_archs" ; then
  3495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3496. $as_echo "no" >&6; }
  3497. else
  3498. for a in $with_macosx_archs
  3499. do
  3500. # check if valid arch?
  3501. case "$a" in
  3502. i386|ppc|x86_64|ppc64)
  3503. MACOSX_ARCHS="$MACOSX_ARCHS -arch $a"
  3504. ;;
  3505. esac
  3506. done
  3507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_ARCHS" >&5
  3508. $as_echo "$MACOSX_ARCHS" >&6; }
  3509. LDFLAGS="$LDFLAGS $MACOSX_ARCHS"
  3510. CFLAGS="$CFLAGS $MACOSX_ARCHS"
  3511. CXXFLAGS="$CXXFLAGS $MACOSX_ARCHS"
  3512. fi
  3513. # Done checking MacOSX archs
  3514. # Check for MacOSX SDK
  3515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MacOSX SDK" >&5
  3516. $as_echo_n "checking for MacOSX SDK... " >&6; }
  3517. MACOSX_SDK=
  3518. if test -z "$with_macosx_sdk" ; then
  3519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3520. $as_echo "no" >&6; }
  3521. else
  3522. as_ac_File=`$as_echo "ac_cv_file_$with_macosx_sdk/SDKSettings.plist" | $as_tr_sh`
  3523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $with_macosx_sdk/SDKSettings.plist" >&5
  3524. $as_echo_n "checking for $with_macosx_sdk/SDKSettings.plist... " >&6; }
  3525. test "$cross_compiling" = yes &&
  3526. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  3527. if test -r "$with_macosx_sdk/SDKSettings.plist"; then
  3528. eval "$as_ac_File=yes"
  3529. else
  3530. eval "$as_ac_File=no"
  3531. fi
  3532. eval ac_res=\$$as_ac_File
  3533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3534. $as_echo "$ac_res" >&6; }
  3535. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  3536. MACOSX_SDK="-isysroot $with_macosx_sdk"
  3537. else
  3538. as_fn_error $? "*** specified SDK does not exist or is not a SDK" "$LINENO" 5
  3539. fi
  3540. LDFLAGS="$LDFLAGS $MACOSX_SDK"
  3541. CFLAGS="$CFLAGS $MACOSX_SDK"
  3542. CXXFLAGS="$CXXFLAGS $MACOSX_SDK"
  3543. fi
  3544. # Done checking MacOSX SDK
  3545. # Set INST_DIR
  3546. if test -n "$MACOSX_APP" ; then
  3547. INSTDIR='${prefix}'"/GRASS-${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.app/Contents/MacOS"
  3548. else
  3549. INSTDIR='${prefix}'"/grass${GRASS_VERSION_MAJOR}${GRASS_VERSION_MINOR}"
  3550. fi
  3551. # Get flags for building shared libraries
  3552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5
  3553. $as_echo_n "checking how to build libraries... " >&6; }
  3554. # Check whether --enable-shared was given.
  3555. if test "${enable_shared+set}" = set; then :
  3556. enableval=$enable_shared; shared_ok=$enableval
  3557. else
  3558. shared_ok=yes
  3559. fi
  3560. if test "${enable_shared+set}" = set; then
  3561. enableval="$enable_shared"
  3562. shared_ok=$enableval
  3563. else
  3564. shared_ok=yes
  3565. fi
  3566. if test "$shared_ok" = "yes" ; then
  3567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: shared" >&5
  3568. $as_echo "shared" >&6; }
  3569. SHARED_BUILD=1
  3570. GRASS_LIBRARY_TYPE='shlib'
  3571. else
  3572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
  3573. $as_echo "static" >&6; }
  3574. SHARED_BUILD=0
  3575. $as_echo "#define STATIC_BUILD 1" >>confdefs.h
  3576. GRASS_LIBRARY_TYPE='stlib'
  3577. fi
  3578. ac_save_ldflags="$LDFLAGS"
  3579. SHLIB_CFLAGS=""
  3580. SHLIB_LD_FLAGS=""
  3581. SHLIB_SUFFIX=""
  3582. SHLIB_LD=""
  3583. STLIB_LD='${AR} cr'
  3584. STLIB_SUFFIX='.a'
  3585. GRASS_TRIM_DOTS='`echo ${LIB_VER} | tr -d .`'
  3586. GRASS_LIB_VERSIONS_OK=ok
  3587. LDFLAGS=""
  3588. LD_SEARCH_FLAGS=""
  3589. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  3590. case $host in
  3591. *-linux-* | *-gnu* | *-kfreebsd*-gnu)
  3592. SHLIB_CFLAGS="-fPIC"
  3593. SHLIB_LD_FLAGS="-Wl,-soname,\$(notdir \$@)"
  3594. SHLIB_SUFFIX=".so"
  3595. SHLIB_LD="${CC} -shared"
  3596. LDFLAGS="-Wl,--export-dynamic"
  3597. LD_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
  3598. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  3599. ;;
  3600. *-pc-cygwin)
  3601. SHLIB_SUFFIX=".dll"
  3602. SHLIB_LD="${CC} -shared"
  3603. LDFLAGS="-Wl,--export-dynamic"
  3604. LD_LIBRARY_PATH_VAR="PATH"
  3605. ;;
  3606. *-pc-mingw32 | *-w64-mingw32 | *-pc-msys)
  3607. SHLIB_SUFFIX=".dll"
  3608. SHLIB_LD="${CC} -shared"
  3609. LDFLAGS="-Wl,--export-dynamic,--enable-runtime-pseudo-reloc"
  3610. LD_LIBRARY_PATH_VAR="PATH"
  3611. ;;
  3612. *-apple-darwin*)
  3613. SHLIB_CFLAGS="-fno-common"
  3614. SHLIB_SUFFIX=".dylib"
  3615. 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}"
  3616. LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
  3617. ;;
  3618. *-sun-solaris*)
  3619. # Note: If _REENTRANT isn't defined, then Solaris
  3620. # won't define thread-safe library routines.
  3621. $as_echo "#define _REENTRANT 1" >>confdefs.h
  3622. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3623. # Note: need the LIBS below, otherwise Tk won't find Tcl's
  3624. # symbols when dynamically loaded into tclsh.
  3625. if test "$GCC" = "yes" ; then
  3626. SHLIB_CFLAGS="-fPIC"
  3627. SHLIB_LD="$CC -shared"
  3628. LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
  3629. else
  3630. SHLIB_CFLAGS="-KPIC"
  3631. SHLIB_LD="/usr/ccs/bin/ld -G -z text"
  3632. LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
  3633. fi
  3634. SHLIB_SUFFIX=".so"
  3635. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  3636. ;;
  3637. *-solaris2*)
  3638. # Note: Solaris is as of 2010 Oracle Solaris, not Sun Solaris
  3639. # Oracle Solaris derives from Solaris 2
  3640. # derives from SunOS 5
  3641. # derives from UNIX System V Release 4
  3642. # Note: If _REENTRANT isn't defined, then Solaris
  3643. # won't define thread-safe library routines.
  3644. $as_echo "#define _REENTRANT 1" >>confdefs.h
  3645. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3646. # Note: need the LIBS below, otherwise Tk won't find Tcl's
  3647. # symbols when dynamically loaded into tclsh.
  3648. if test "$GCC" = "yes" ; then
  3649. SHLIB_CFLAGS="-fPIC"
  3650. SHLIB_LD="$CC -shared"
  3651. LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
  3652. else
  3653. SHLIB_CFLAGS="-KPIC"
  3654. SHLIB_LD="/usr/ccs/bin/ld -G -z text"
  3655. LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
  3656. fi
  3657. SHLIB_SUFFIX=".so"
  3658. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  3659. ;;
  3660. *-freebsd*)
  3661. # NOTE: only FreeBSD 4+ is supported
  3662. # FreeBSD 3.* and greater have ELF.
  3663. SHLIB_CFLAGS="-fPIC"
  3664. #SHLIB_LD="ld -Bshareable -x"
  3665. SHLIB_LD="${CC} -shared"
  3666. SHLIB_LD_FLAGS="-Wl,-soname,\$(notdir \$@)"
  3667. SHLIB_SUFFIX=".so"
  3668. LDFLAGS="-Wl,--export-dynamic"
  3669. #LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
  3670. LD_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
  3671. # TODO: add optional pthread support with any combination of:
  3672. # CFLAGS="$CFLAGS -pthread"
  3673. # LDFLAGS="$LDFLAGS -lpthread"
  3674. # AC_DEFINE(_REENTRANT, 1, [define _REENTRANT flag (for SunOS)])
  3675. # AC_DEFINE(_POSIX_PTHREAD_SEMANTICS, 1, [enable threading extensions on Solaris])
  3676. ;;
  3677. *-netbsd*)
  3678. # NetBSD has ELF.
  3679. SHLIB_CFLAGS="-fPIC"
  3680. SHLIB_LD="${CC} -shared"
  3681. SHLIB_LD_LIBS="${LIBS}"
  3682. LDFLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -export-dynamic'
  3683. SHLIB_LD_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -export-dynamic'
  3684. LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -L${LIB_RUNTIME_DIR}'
  3685. # some older NetBSD versions do not handle version numbers with dots.
  3686. #STLIB_SUFFIX='${GRASS_TRIM_DOTS}.a'
  3687. #SHLIB_SUFFIX='${GRASS_TRIM_DOTS}.so'
  3688. #GRASS_LIB_VERSIONS_OK=nodots
  3689. # NetBSD 6 does handle version numbers with dots.
  3690. STLIB_SUFFIX=".a"
  3691. SHLIB_SUFFIX=".so"
  3692. # TODO: add optional pthread support with any combination of:
  3693. # CFLAGS="$CFLAGS -pthread"
  3694. # LDFLAGS="$LDFLAGS -lpthread"
  3695. # AC_DEFINE(_REENTRANT, 1, [define _REENTRANT flag (for SunOS)])
  3696. # AC_DEFINE(_POSIX_PTHREAD_SEMANTICS, 1, [enable threading extensions on Solaris])
  3697. ;;
  3698. *aix*)
  3699. # NOTE: do we need to support aix < 6 ?
  3700. LIBS="$LIBS -lc"
  3701. SHLIB_CFLAGS=""
  3702. LDFLAGS=""
  3703. if test "$GCC" = "yes" ; then
  3704. SHLIB_CFLAGS="-fPIC"
  3705. SHLIB_LD="$CC -shared"
  3706. LD_SEARCH_FLAGS='-Wl,-bsvr4,-R,${LIB_RUNTIME_DIR}'
  3707. else
  3708. # assume xlc
  3709. SHLIB_CFLAGS="-qmkshrobj"
  3710. SHLIB_LD="$CC -shared"
  3711. LD_SEARCH_FLAGS='-Wl,-bsvr4,-R,${LIB_RUNTIME_DIR}'
  3712. fi
  3713. SHLIB_SUFFIX=".so"
  3714. LD_LIBRARY_PATH_VAR="LIBPATH"
  3715. GRASS_NEEDS_EXP_FILE=1
  3716. GRASS_EXPORT_FILE_SUFFIX='${LIB_VER}.exp'
  3717. ;;
  3718. *)
  3719. as_fn_error $? "***Unknown platform: $host***" "$LINENO" 5
  3720. ;;
  3721. esac
  3722. LDFLAGS="${ac_save_ldflags} $LDFLAGS"
  3723. # Enable options
  3724. # Check whether --enable-w11 was given.
  3725. if test "${enable_w11+set}" = set; then :
  3726. enableval=$enable_w11;
  3727. else
  3728. enable_w11=no
  3729. fi
  3730. # With options
  3731. # Check whether --with-cxx was given.
  3732. if test "${with_cxx+set}" = set; then :
  3733. withval=$with_cxx;
  3734. else
  3735. with_cxx=yes
  3736. fi
  3737. #LOC_ARG_WITH(g77, GNU Fortran 77, no)
  3738. # Check whether --with-macosx-archs was given.
  3739. if test "${with_macosx_archs+set}" = set; then :
  3740. withval=$with_macosx_archs;
  3741. else
  3742. with_macosx_archs="no"
  3743. fi
  3744. # Check whether --with-macosx-sdk was given.
  3745. if test "${with_macosx_sdk+set}" = set; then :
  3746. withval=$with_macosx_sdk;
  3747. else
  3748. with_macosx_sdk="no"
  3749. fi
  3750. # Check whether --with-tiff was given.
  3751. if test "${with_tiff+set}" = set; then :
  3752. withval=$with_tiff;
  3753. else
  3754. with_tiff=yes
  3755. fi
  3756. # Check whether --with-png was given.
  3757. if test "${with_png+set}" = set; then :
  3758. withval=$with_png;
  3759. else
  3760. with_png=yes
  3761. fi
  3762. # Check whether --with-postgres was given.
  3763. if test "${with_postgres+set}" = set; then :
  3764. withval=$with_postgres;
  3765. else
  3766. with_postgres=no
  3767. fi
  3768. # Check whether --with-mysql was given.
  3769. if test "${with_mysql+set}" = set; then :
  3770. withval=$with_mysql;
  3771. else
  3772. with_mysql=no
  3773. fi
  3774. # Check whether --with-sqlite was given.
  3775. if test "${with_sqlite+set}" = set; then :
  3776. withval=$with_sqlite;
  3777. else
  3778. with_sqlite=yes
  3779. fi
  3780. # Check whether --with-opengl was given.
  3781. if test "${with_opengl+set}" = set; then :
  3782. withval=$with_opengl;
  3783. else
  3784. with_opengl=yes
  3785. fi
  3786. # Check whether --with-odbc was given.
  3787. if test "${with_odbc+set}" = set; then :
  3788. withval=$with_odbc;
  3789. else
  3790. with_odbc=no
  3791. fi
  3792. # Check whether --with-fftw was given.
  3793. if test "${with_fftw+set}" = set; then :
  3794. withval=$with_fftw;
  3795. else
  3796. with_fftw=yes
  3797. fi
  3798. # Check whether --with-blas was given.
  3799. if test "${with_blas+set}" = set; then :
  3800. withval=$with_blas;
  3801. else
  3802. with_blas=no
  3803. fi
  3804. # Check whether --with-lapack was given.
  3805. if test "${with_lapack+set}" = set; then :
  3806. withval=$with_lapack;
  3807. else
  3808. with_lapack=no
  3809. fi
  3810. # Check whether --with-cairo was given.
  3811. if test "${with_cairo+set}" = set; then :
  3812. withval=$with_cairo;
  3813. else
  3814. with_cairo=yes
  3815. fi
  3816. # Check whether --with-freetype was given.
  3817. if test "${with_freetype+set}" = set; then :
  3818. withval=$with_freetype;
  3819. else
  3820. with_freetype=yes
  3821. fi
  3822. # Check whether --with-nls was given.
  3823. if test "${with_nls+set}" = set; then :
  3824. withval=$with_nls;
  3825. else
  3826. with_nls=no
  3827. fi
  3828. # Check whether --with-readline was given.
  3829. if test "${with_readline+set}" = set; then :
  3830. withval=$with_readline;
  3831. else
  3832. with_readline=no
  3833. fi
  3834. # Check whether --with-opendwg was given.
  3835. if test "${with_opendwg+set}" = set; then :
  3836. withval=$with_opendwg;
  3837. else
  3838. with_opendwg=no
  3839. fi
  3840. # Check whether --with-regex was given.
  3841. if test "${with_regex+set}" = set; then :
  3842. withval=$with_regex;
  3843. else
  3844. with_regex=yes
  3845. fi
  3846. # Check whether --with-pthread was given.
  3847. if test "${with_pthread+set}" = set; then :
  3848. withval=$with_pthread;
  3849. else
  3850. with_pthread=no
  3851. fi
  3852. # Check whether --with-openmp was given.
  3853. if test "${with_openmp+set}" = set; then :
  3854. withval=$with_openmp;
  3855. else
  3856. with_openmp=no
  3857. fi
  3858. # Check whether --with-opencl was given.
  3859. if test "${with_opencl+set}" = set; then :
  3860. withval=$with_opencl;
  3861. else
  3862. with_opencl=no
  3863. fi
  3864. # Check whether --with-bzlib was given.
  3865. if test "${with_bzlib+set}" = set; then :
  3866. withval=$with_bzlib;
  3867. else
  3868. with_bzlib=no
  3869. fi
  3870. # Check whether --with-zstd was given.
  3871. if test "${with_zstd+set}" = set; then :
  3872. withval=$with_zstd;
  3873. else
  3874. with_zstd=yes
  3875. fi
  3876. # Check whether --with-gdal was given.
  3877. if test "${with_gdal+set}" = set; then :
  3878. withval=$with_gdal;
  3879. fi
  3880. # Check whether --with-liblas was given.
  3881. if test "${with_liblas+set}" = set; then :
  3882. withval=$with_liblas;
  3883. else
  3884. with_liblas="no"
  3885. fi
  3886. # Check whether --with-pdal was given.
  3887. if test "${with_pdal+set}" = set; then :
  3888. withval=$with_pdal;
  3889. else
  3890. with_pdal="no"
  3891. fi
  3892. # Check whether --with-wxwidgets was given.
  3893. if test "${with_wxwidgets+set}" = set; then :
  3894. withval=$with_wxwidgets;
  3895. else
  3896. with_wxwidgets="no"
  3897. fi
  3898. # Check whether --with-netcdf was given.
  3899. if test "${with_netcdf+set}" = set; then :
  3900. withval=$with_netcdf;
  3901. else
  3902. with_netcdf="no"
  3903. fi
  3904. # With includes and libs options
  3905. # Check whether --with-geos was given.
  3906. if test "${with_geos+set}" = set; then :
  3907. withval=$with_geos;
  3908. else
  3909. with_geos="no"
  3910. fi
  3911. # Check whether --with-includes was given.
  3912. if test "${with_includes+set}" = set; then :
  3913. withval=$with_includes;
  3914. fi
  3915. # Check whether --with-libs was given.
  3916. if test "${with_libs+set}" = set; then :
  3917. withval=$with_libs;
  3918. fi
  3919. # Check whether --with-zlib-includes was given.
  3920. if test "${with_zlib_includes+set}" = set; then :
  3921. withval=$with_zlib_includes;
  3922. fi
  3923. # Check whether --with-zlib-libs was given.
  3924. if test "${with_zlib_libs+set}" = set; then :
  3925. withval=$with_zlib_libs;
  3926. fi
  3927. # Check whether --with-bzlib-includes was given.
  3928. if test "${with_bzlib_includes+set}" = set; then :
  3929. withval=$with_bzlib_includes;
  3930. fi
  3931. # Check whether --with-bzlib-libs was given.
  3932. if test "${with_bzlib_libs+set}" = set; then :
  3933. withval=$with_bzlib_libs;
  3934. fi
  3935. # Check whether --with-zstd-includes was given.
  3936. if test "${with_zstd_includes+set}" = set; then :
  3937. withval=$with_zstd_includes;
  3938. fi
  3939. # Check whether --with-zstd-libs was given.
  3940. if test "${with_zstd_libs+set}" = set; then :
  3941. withval=$with_zstd_libs;
  3942. fi
  3943. # Check whether --with-readline-includes was given.
  3944. if test "${with_readline_includes+set}" = set; then :
  3945. withval=$with_readline_includes;
  3946. fi
  3947. # Check whether --with-readline-libs was given.
  3948. if test "${with_readline_libs+set}" = set; then :
  3949. withval=$with_readline_libs;
  3950. fi
  3951. # Check whether --with-tiff-includes was given.
  3952. if test "${with_tiff_includes+set}" = set; then :
  3953. withval=$with_tiff_includes;
  3954. fi
  3955. # Check whether --with-tiff-libs was given.
  3956. if test "${with_tiff_libs+set}" = set; then :
  3957. withval=$with_tiff_libs;
  3958. fi
  3959. # Check whether --with-png-includes was given.
  3960. if test "${with_png_includes+set}" = set; then :
  3961. withval=$with_png_includes;
  3962. fi
  3963. # Check whether --with-png-libs was given.
  3964. if test "${with_png_libs+set}" = set; then :
  3965. withval=$with_png_libs;
  3966. fi
  3967. # Check whether --with-postgres-includes was given.
  3968. if test "${with_postgres_includes+set}" = set; then :
  3969. withval=$with_postgres_includes;
  3970. fi
  3971. # Check whether --with-postgres-libs was given.
  3972. if test "${with_postgres_libs+set}" = set; then :
  3973. withval=$with_postgres_libs;
  3974. fi
  3975. # Check whether --with-mysql-includes was given.
  3976. if test "${with_mysql_includes+set}" = set; then :
  3977. withval=$with_mysql_includes;
  3978. fi
  3979. # Check whether --with-mysql-libs was given.
  3980. if test "${with_mysql_libs+set}" = set; then :
  3981. withval=$with_mysql_libs;
  3982. fi
  3983. # Check whether --with-sqlite-includes was given.
  3984. if test "${with_sqlite_includes+set}" = set; then :
  3985. withval=$with_sqlite_includes;
  3986. fi
  3987. # Check whether --with-sqlite-libs was given.
  3988. if test "${with_sqlite_libs+set}" = set; then :
  3989. withval=$with_sqlite_libs;
  3990. fi
  3991. # Check whether --with-opengl-includes was given.
  3992. if test "${with_opengl_includes+set}" = set; then :
  3993. withval=$with_opengl_includes;
  3994. fi
  3995. # Check whether --with-opengl-libs was given.
  3996. if test "${with_opengl_libs+set}" = set; then :
  3997. withval=$with_opengl_libs;
  3998. fi
  3999. # Check whether --with-opengl-framework was given.
  4000. if test "${with_opengl_framework+set}" = set; then :
  4001. withval=$with_opengl_framework;
  4002. fi
  4003. # Check whether --with-odbc-includes was given.
  4004. if test "${with_odbc_includes+set}" = set; then :
  4005. withval=$with_odbc_includes;
  4006. fi
  4007. # Check whether --with-odbc-libs was given.
  4008. if test "${with_odbc_libs+set}" = set; then :
  4009. withval=$with_odbc_libs;
  4010. fi
  4011. # Check whether --with-fftw-includes was given.
  4012. if test "${with_fftw_includes+set}" = set; then :
  4013. withval=$with_fftw_includes;
  4014. fi
  4015. # Check whether --with-fftw-libs was given.
  4016. if test "${with_fftw_libs+set}" = set; then :
  4017. withval=$with_fftw_libs;
  4018. fi
  4019. # Check whether --with-blas-includes was given.
  4020. if test "${with_blas_includes+set}" = set; then :
  4021. withval=$with_blas_includes;
  4022. fi
  4023. # Check whether --with-blas-libs was given.
  4024. if test "${with_blas_libs+set}" = set; then :
  4025. withval=$with_blas_libs;
  4026. fi
  4027. # Check whether --with-lapack-includes was given.
  4028. if test "${with_lapack_includes+set}" = set; then :
  4029. withval=$with_lapack_includes;
  4030. fi
  4031. # Check whether --with-lapack-libs was given.
  4032. if test "${with_lapack_libs+set}" = set; then :
  4033. withval=$with_lapack_libs;
  4034. fi
  4035. # Check whether --with-cairo-includes was given.
  4036. if test "${with_cairo_includes+set}" = set; then :
  4037. withval=$with_cairo_includes;
  4038. fi
  4039. # Check whether --with-cairo-libs was given.
  4040. if test "${with_cairo_libs+set}" = set; then :
  4041. withval=$with_cairo_libs;
  4042. fi
  4043. # Check whether --with-cairo-ldflags was given.
  4044. if test "${with_cairo_ldflags+set}" = set; then :
  4045. withval=$with_cairo_ldflags;
  4046. fi
  4047. # Check whether --with-freetype-includes was given.
  4048. if test "${with_freetype_includes+set}" = set; then :
  4049. withval=$with_freetype_includes;
  4050. fi
  4051. # Check whether --with-freetype-libs was given.
  4052. if test "${with_freetype_libs+set}" = set; then :
  4053. withval=$with_freetype_libs;
  4054. fi
  4055. # Check whether --with-proj-includes was given.
  4056. if test "${with_proj_includes+set}" = set; then :
  4057. withval=$with_proj_includes;
  4058. fi
  4059. # Check whether --with-proj-libs was given.
  4060. if test "${with_proj_libs+set}" = set; then :
  4061. withval=$with_proj_libs;
  4062. fi
  4063. # Check whether --with-proj-share was given.
  4064. if test "${with_proj_share+set}" = set; then :
  4065. withval=$with_proj_share;
  4066. fi
  4067. # Check whether --with-opendwg-includes was given.
  4068. if test "${with_opendwg_includes+set}" = set; then :
  4069. withval=$with_opendwg_includes;
  4070. fi
  4071. # Check whether --with-opendwg-libs was given.
  4072. if test "${with_opendwg_libs+set}" = set; then :
  4073. withval=$with_opendwg_libs;
  4074. fi
  4075. # Check whether --with-regex-includes was given.
  4076. if test "${with_regex_includes+set}" = set; then :
  4077. withval=$with_regex_includes;
  4078. fi
  4079. # Check whether --with-regex-libs was given.
  4080. if test "${with_regex_libs+set}" = set; then :
  4081. withval=$with_regex_libs;
  4082. fi
  4083. # Check whether --with-pthread-includes was given.
  4084. if test "${with_pthread_includes+set}" = set; then :
  4085. withval=$with_pthread_includes;
  4086. fi
  4087. # Check whether --with-pthread-libs was given.
  4088. if test "${with_pthread_libs+set}" = set; then :
  4089. withval=$with_pthread_libs;
  4090. fi
  4091. # Check whether --with-openmp-includes was given.
  4092. if test "${with_openmp_includes+set}" = set; then :
  4093. withval=$with_openmp_includes;
  4094. fi
  4095. # Check whether --with-openmp-libs was given.
  4096. if test "${with_openmp_libs+set}" = set; then :
  4097. withval=$with_openmp_libs;
  4098. fi
  4099. # Check whether --with-opencl-includes was given.
  4100. if test "${with_opencl_includes+set}" = set; then :
  4101. withval=$with_opencl_includes;
  4102. fi
  4103. # Check whether --with-opencl-libs was given.
  4104. if test "${with_opencl_libs+set}" = set; then :
  4105. withval=$with_opencl_libs;
  4106. fi
  4107. #LOC_ARG_WITH_FRAMEWORK(opencl, OpenCL)
  4108. # Put this early on so CPPFLAGS and LDFLAGS have any additional dirs
  4109. # With includes option
  4110. # Handle Fortran compiler choice
  4111. #LOC_CHECK_USE(g77, GNU Fortran 77, USE_G77)
  4112. # Done checking fortran
  4113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional include dirs" >&5
  4114. $as_echo_n "checking for additional include dirs... " >&6; }
  4115. case "$with_includes" in
  4116. y | ye | yes | n | no)
  4117. as_fn_error $? "*** You must supply a directory to list --with-includes." "$LINENO" 5
  4118. ;;
  4119. esac
  4120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_includes" >&5
  4121. $as_echo "$with_includes" >&6; }
  4122. if test -n "$with_includes"; then
  4123. for dir in $with_includes; do
  4124. if test -d "$dir"; then
  4125. INCLUDE_DIRS="$INCLUDE_DIRS -I$dir"
  4126. else
  4127. as_fn_error $? "*** Include directory $dir does not exist." "$LINENO" 5
  4128. fi
  4129. done
  4130. CPPFLAGS="$CPPFLAGS $INCLUDE_DIRS"
  4131. fi
  4132. # With libs option
  4133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional library dirs" >&5
  4134. $as_echo_n "checking for additional library dirs... " >&6; }
  4135. case "$with_libs" in
  4136. y | ye | yes | n | no)
  4137. as_fn_error $? "*** You must supply a directory list to --with-libs." "$LINENO" 5
  4138. ;;
  4139. esac
  4140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libs" >&5
  4141. $as_echo "$with_libs" >&6; }
  4142. if test -n "$with_libs"; then
  4143. for dir in $with_libs; do
  4144. if test -d "$dir"; then
  4145. LIBRARY_DIRS="$LIBRARY_DIRS -L$dir"
  4146. else
  4147. as_fn_error $? "*** Library directory $dir does not exist." "$LINENO" 5
  4148. fi
  4149. done
  4150. LDFLAGS="$LDFLAGS $LIBRARY_DIRS"
  4151. fi
  4152. # Programs and standard headers, libraries, functions
  4153. # Find a good install program. We prefer a C program (faster),
  4154. # so one script is as good as another. But avoid the broken or
  4155. # incompatible versions:
  4156. # SysV /etc/install, /usr/sbin/install
  4157. # SunOS /usr/etc/install
  4158. # IRIX /sbin/install
  4159. # AIX /bin/install
  4160. # AmigaOS /C/install, which installs bootblocks on floppy discs
  4161. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4162. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4163. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4164. # OS/2's system install, which has a completely different semantic
  4165. # ./install, which can be erroneously created by make from ./install.sh.
  4166. # Reject install programs that cannot install multiple files.
  4167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  4168. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  4169. if test -z "$INSTALL"; then
  4170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4171. for as_dir in $PATH
  4172. do
  4173. IFS=$as_save_IFS
  4174. test -z "$as_dir" && as_dir=.
  4175. # Account for people who put trailing slashes in PATH elements.
  4176. case $as_dir/ in #((
  4177. ./ | .// | /[cC]/* | \
  4178. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4179. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  4180. /usr/ucb/* ) ;;
  4181. *)
  4182. # OSF1 and SCO ODT 3.0 have their own names for install.
  4183. # Don't use installbsd from OSF since it installs stuff as root
  4184. # by default.
  4185. for ac_prog in ginstall scoinst install; do
  4186. for ac_exec_ext in '' $ac_executable_extensions; do
  4187. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  4188. if test $ac_prog = install &&
  4189. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4190. # AIX install. It has an incompatible calling convention.
  4191. :
  4192. elif test $ac_prog = install &&
  4193. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4194. # program-specific install script used by HP pwplus--don't use.
  4195. :
  4196. else
  4197. rm -rf conftest.one conftest.two conftest.dir
  4198. echo one > conftest.one
  4199. echo two > conftest.two
  4200. mkdir conftest.dir
  4201. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  4202. test -s conftest.one && test -s conftest.two &&
  4203. test -s conftest.dir/conftest.one &&
  4204. test -s conftest.dir/conftest.two
  4205. then
  4206. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4207. break 3
  4208. fi
  4209. fi
  4210. fi
  4211. done
  4212. done
  4213. ;;
  4214. esac
  4215. done
  4216. IFS=$as_save_IFS
  4217. rm -rf conftest.one conftest.two conftest.dir
  4218. if test "${ac_cv_path_install+set}" = set; then
  4219. INSTALL=$ac_cv_path_install
  4220. else
  4221. # As a last resort, use the slow shell script. Don't cache a
  4222. # value for INSTALL within a source directory, because that will
  4223. # break other packages using the cache if that directory is
  4224. # removed, or if the value is a relative name.
  4225. INSTALL=$ac_install_sh
  4226. fi
  4227. fi
  4228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  4229. $as_echo "$INSTALL" >&6; }
  4230. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4231. # It thinks the first close brace ends the variable substitution.
  4232. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4233. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4234. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4235. for ac_prog in flex lex
  4236. do
  4237. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4238. set dummy $ac_prog; ac_word=$2
  4239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4240. $as_echo_n "checking for $ac_word... " >&6; }
  4241. if test -n "$LEX"; then
  4242. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  4243. else
  4244. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4245. for as_dir in $PATH
  4246. do
  4247. IFS=$as_save_IFS
  4248. test -z "$as_dir" && as_dir=.
  4249. for ac_exec_ext in '' $ac_executable_extensions; do
  4250. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4251. ac_cv_prog_LEX="$ac_prog"
  4252. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4253. break 2
  4254. fi
  4255. done
  4256. done
  4257. IFS=$as_save_IFS
  4258. fi
  4259. LEX=$ac_cv_prog_LEX
  4260. if test -n "$LEX"; then
  4261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
  4262. $as_echo "$LEX" >&6; }
  4263. else
  4264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4265. $as_echo "no" >&6; }
  4266. fi
  4267. test -n "$LEX" && break
  4268. done
  4269. test -n "$LEX" || LEX=":"
  4270. if test "x$LEX" != "x:"; then
  4271. cat >conftest.l <<_ACEOF
  4272. %%
  4273. a { ECHO; }
  4274. b { REJECT; }
  4275. c { yymore (); }
  4276. d { yyless (1); }
  4277. e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
  4278. yyless ((input () != 0)); }
  4279. f { unput (yytext[0]); }
  4280. . { BEGIN INITIAL; }
  4281. %%
  4282. #ifdef YYTEXT_POINTER
  4283. extern char *yytext;
  4284. #endif
  4285. int
  4286. main (void)
  4287. {
  4288. return ! yylex () + ! yywrap ();
  4289. }
  4290. _ACEOF
  4291. { { ac_try="$LEX conftest.l"
  4292. case "(($ac_try" in
  4293. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4294. *) ac_try_echo=$ac_try;;
  4295. esac
  4296. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4297. $as_echo "$ac_try_echo"; } >&5
  4298. (eval "$LEX conftest.l") 2>&5
  4299. ac_status=$?
  4300. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4301. test $ac_status = 0; }
  4302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
  4303. $as_echo_n "checking lex output file root... " >&6; }
  4304. if test -f lex.yy.c; then
  4305. ac_cv_prog_lex_root=lex.yy
  4306. elif test -f lexyy.c; then
  4307. ac_cv_prog_lex_root=lexyy
  4308. else
  4309. as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
  4310. fi
  4311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
  4312. $as_echo "$ac_cv_prog_lex_root" >&6; }
  4313. LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
  4314. if test -z "${LEXLIB+set}"; then
  4315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
  4316. $as_echo_n "checking lex library... " >&6; }
  4317. ac_save_LIBS=$LIBS
  4318. ac_cv_lib_lex='none needed'
  4319. for ac_lib in '' -lfl -ll; do
  4320. LIBS="$ac_lib $ac_save_LIBS"
  4321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4322. /* end confdefs.h. */
  4323. `cat $LEX_OUTPUT_ROOT.c`
  4324. _ACEOF
  4325. if ac_fn_c_try_link "$LINENO"; then :
  4326. ac_cv_lib_lex=$ac_lib
  4327. fi
  4328. rm -f core conftest.err conftest.$ac_objext \
  4329. conftest$ac_exeext conftest.$ac_ext
  4330. test "$ac_cv_lib_lex" != 'none needed' && break
  4331. done
  4332. LIBS=$ac_save_LIBS
  4333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
  4334. $as_echo "$ac_cv_lib_lex" >&6; }
  4335. test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
  4336. fi
  4337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
  4338. $as_echo_n "checking whether yytext is a pointer... " >&6; }
  4339. # POSIX says lex can declare yytext either as a pointer or an array; the
  4340. # default is implementation-dependent. Figure out which it is, since
  4341. # not all implementations provide the %pointer and %array declarations.
  4342. ac_cv_prog_lex_yytext_pointer=no
  4343. ac_save_LIBS=$LIBS
  4344. LIBS="$LEXLIB $ac_save_LIBS"
  4345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4346. /* end confdefs.h. */
  4347. #define YYTEXT_POINTER 1
  4348. `cat $LEX_OUTPUT_ROOT.c`
  4349. _ACEOF
  4350. if ac_fn_c_try_link "$LINENO"; then :
  4351. ac_cv_prog_lex_yytext_pointer=yes
  4352. fi
  4353. rm -f core conftest.err conftest.$ac_objext \
  4354. conftest$ac_exeext conftest.$ac_ext
  4355. LIBS=$ac_save_LIBS
  4356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
  4357. $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
  4358. if test $ac_cv_prog_lex_yytext_pointer = yes; then
  4359. $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
  4360. fi
  4361. rm -f conftest.l $LEX_OUTPUT_ROOT.c
  4362. fi
  4363. if test "$LEX" = "lex"; then
  4364. # Extract the first word of "lex", so it can be a program name with args.
  4365. set dummy lex; ac_word=$2
  4366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4367. $as_echo_n "checking for $ac_word... " >&6; }
  4368. case $LEXPATH in
  4369. [\\/]* | ?:[\\/]*)
  4370. ac_cv_path_LEXPATH="$LEXPATH" # Let the user override the test with a path.
  4371. ;;
  4372. *)
  4373. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4374. for as_dir in $PATH
  4375. do
  4376. IFS=$as_save_IFS
  4377. test -z "$as_dir" && as_dir=.
  4378. for ac_exec_ext in '' $ac_executable_extensions; do
  4379. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4380. ac_cv_path_LEXPATH="$as_dir/$ac_word$ac_exec_ext"
  4381. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4382. break 2
  4383. fi
  4384. done
  4385. done
  4386. IFS=$as_save_IFS
  4387. test -z "$ac_cv_path_LEXPATH" && ac_cv_path_LEXPATH="no"
  4388. ;;
  4389. esac
  4390. LEXPATH=$ac_cv_path_LEXPATH
  4391. if test -n "$LEXPATH"; then
  4392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEXPATH" >&5
  4393. $as_echo "$LEXPATH" >&6; }
  4394. else
  4395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4396. $as_echo "no" >&6; }
  4397. fi
  4398. if test "$LEXPATH" = "no"; then
  4399. as_fn_error $? "*** Unable to locate lex." "$LINENO" 5
  4400. fi
  4401. fi
  4402. for ac_prog in 'bison -y' byacc
  4403. do
  4404. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4405. set dummy $ac_prog; ac_word=$2
  4406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4407. $as_echo_n "checking for $ac_word... " >&6; }
  4408. if test -n "$YACC"; then
  4409. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4410. else
  4411. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4412. for as_dir in $PATH
  4413. do
  4414. IFS=$as_save_IFS
  4415. test -z "$as_dir" && as_dir=.
  4416. for ac_exec_ext in '' $ac_executable_extensions; do
  4417. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4418. ac_cv_prog_YACC="$ac_prog"
  4419. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4420. break 2
  4421. fi
  4422. done
  4423. done
  4424. IFS=$as_save_IFS
  4425. fi
  4426. YACC=$ac_cv_prog_YACC
  4427. if test -n "$YACC"; then
  4428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  4429. $as_echo "$YACC" >&6; }
  4430. else
  4431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4432. $as_echo "no" >&6; }
  4433. fi
  4434. test -n "$YACC" && break
  4435. done
  4436. test -n "$YACC" || YACC="yacc"
  4437. if test "$YACC" = "yacc"; then
  4438. # Extract the first word of "yacc", so it can be a program name with args.
  4439. set dummy yacc; ac_word=$2
  4440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4441. $as_echo_n "checking for $ac_word... " >&6; }
  4442. case $YACCPATH in
  4443. [\\/]* | ?:[\\/]*)
  4444. ac_cv_path_YACCPATH="$YACCPATH" # Let the user override the test with a path.
  4445. ;;
  4446. *)
  4447. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4448. for as_dir in $PATH
  4449. do
  4450. IFS=$as_save_IFS
  4451. test -z "$as_dir" && as_dir=.
  4452. for ac_exec_ext in '' $ac_executable_extensions; do
  4453. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4454. ac_cv_path_YACCPATH="$as_dir/$ac_word$ac_exec_ext"
  4455. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4456. break 2
  4457. fi
  4458. done
  4459. done
  4460. IFS=$as_save_IFS
  4461. test -z "$ac_cv_path_YACCPATH" && ac_cv_path_YACCPATH="no"
  4462. ;;
  4463. esac
  4464. YACCPATH=$ac_cv_path_YACCPATH
  4465. if test -n "$YACCPATH"; then
  4466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACCPATH" >&5
  4467. $as_echo "$YACCPATH" >&6; }
  4468. else
  4469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4470. $as_echo "no" >&6; }
  4471. fi
  4472. if test "$YACCPATH" = "no"; then
  4473. as_fn_error $? "*** Unable to locate yacc." "$LINENO" 5
  4474. fi
  4475. fi
  4476. if test -n "$ac_tool_prefix"; then
  4477. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4478. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4480. $as_echo_n "checking for $ac_word... " >&6; }
  4481. if test -n "$RANLIB"; then
  4482. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4483. else
  4484. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4485. for as_dir in $PATH
  4486. do
  4487. IFS=$as_save_IFS
  4488. test -z "$as_dir" && as_dir=.
  4489. for ac_exec_ext in '' $ac_executable_extensions; do
  4490. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4491. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4492. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4493. break 2
  4494. fi
  4495. done
  4496. done
  4497. IFS=$as_save_IFS
  4498. fi
  4499. RANLIB=$ac_cv_prog_RANLIB
  4500. if test -n "$RANLIB"; then
  4501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4502. $as_echo "$RANLIB" >&6; }
  4503. else
  4504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4505. $as_echo "no" >&6; }
  4506. fi
  4507. fi
  4508. if test -z "$ac_cv_prog_RANLIB"; then
  4509. ac_ct_RANLIB=$RANLIB
  4510. # Extract the first word of "ranlib", so it can be a program name with args.
  4511. set dummy ranlib; ac_word=$2
  4512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4513. $as_echo_n "checking for $ac_word... " >&6; }
  4514. if test -n "$ac_ct_RANLIB"; then
  4515. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4516. else
  4517. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4518. for as_dir in $PATH
  4519. do
  4520. IFS=$as_save_IFS
  4521. test -z "$as_dir" && as_dir=.
  4522. for ac_exec_ext in '' $ac_executable_extensions; do
  4523. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4524. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4525. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4526. break 2
  4527. fi
  4528. done
  4529. done
  4530. IFS=$as_save_IFS
  4531. fi
  4532. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4533. if test -n "$ac_ct_RANLIB"; then
  4534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4535. $as_echo "$ac_ct_RANLIB" >&6; }
  4536. else
  4537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4538. $as_echo "no" >&6; }
  4539. fi
  4540. if test "x$ac_ct_RANLIB" = x; then
  4541. RANLIB=":"
  4542. else
  4543. case $cross_compiling:$ac_tool_warned in
  4544. yes:)
  4545. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4546. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4547. ac_tool_warned=yes ;;
  4548. esac
  4549. RANLIB=$ac_ct_RANLIB
  4550. fi
  4551. else
  4552. RANLIB="$ac_cv_prog_RANLIB"
  4553. fi
  4554. for ac_prog in ar
  4555. do
  4556. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4557. set dummy $ac_prog; ac_word=$2
  4558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4559. $as_echo_n "checking for $ac_word... " >&6; }
  4560. if test -n "$AR"; then
  4561. ac_cv_prog_AR="$AR" # Let the user override the test.
  4562. else
  4563. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4564. for as_dir in $PATH
  4565. do
  4566. IFS=$as_save_IFS
  4567. test -z "$as_dir" && as_dir=.
  4568. for ac_exec_ext in '' $ac_executable_extensions; do
  4569. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4570. ac_cv_prog_AR="$ac_prog"
  4571. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4572. break 2
  4573. fi
  4574. done
  4575. done
  4576. IFS=$as_save_IFS
  4577. fi
  4578. AR=$ac_cv_prog_AR
  4579. if test -n "$AR"; then
  4580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4581. $as_echo "$AR" >&6; }
  4582. else
  4583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4584. $as_echo "no" >&6; }
  4585. fi
  4586. test -n "$AR" && break
  4587. done
  4588. for ac_prog in env
  4589. do
  4590. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4591. set dummy $ac_prog; ac_word=$2
  4592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4593. $as_echo_n "checking for $ac_word... " >&6; }
  4594. if test -n "$ENV"; then
  4595. ac_cv_prog_ENV="$ENV" # Let the user override the test.
  4596. else
  4597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4598. for as_dir in $PATH
  4599. do
  4600. IFS=$as_save_IFS
  4601. test -z "$as_dir" && as_dir=.
  4602. for ac_exec_ext in '' $ac_executable_extensions; do
  4603. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4604. ac_cv_prog_ENV="$ac_prog"
  4605. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4606. break 2
  4607. fi
  4608. done
  4609. done
  4610. IFS=$as_save_IFS
  4611. fi
  4612. ENV=$ac_cv_prog_ENV
  4613. if test -n "$ENV"; then
  4614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENV" >&5
  4615. $as_echo "$ENV" >&6; }
  4616. else
  4617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4618. $as_echo "no" >&6; }
  4619. fi
  4620. test -n "$ENV" && break
  4621. done
  4622. # Extract the first word of "perl", so it can be a program name with args.
  4623. set dummy perl; ac_word=$2
  4624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4625. $as_echo_n "checking for $ac_word... " >&6; }
  4626. case $PERL in
  4627. [\\/]* | ?:[\\/]*)
  4628. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  4629. ;;
  4630. *)
  4631. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4632. for as_dir in $PATH
  4633. do
  4634. IFS=$as_save_IFS
  4635. test -z "$as_dir" && as_dir=.
  4636. for ac_exec_ext in '' $ac_executable_extensions; do
  4637. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4638. ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  4639. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4640. break 2
  4641. fi
  4642. done
  4643. done
  4644. IFS=$as_save_IFS
  4645. test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
  4646. ;;
  4647. esac
  4648. PERL=$ac_cv_path_PERL
  4649. if test -n "$PERL"; then
  4650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
  4651. $as_echo "$PERL" >&6; }
  4652. else
  4653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4654. $as_echo "no" >&6; }
  4655. fi
  4656. ac_ext=c
  4657. ac_cpp='$CPP $CPPFLAGS'
  4658. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4659. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4660. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4662. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4663. # On Suns, sometimes $CPP names a directory.
  4664. if test -n "$CPP" && test -d "$CPP"; then
  4665. CPP=
  4666. fi
  4667. if test -z "$CPP"; then
  4668. # Double quotes because CPP needs to be expanded
  4669. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4670. do
  4671. ac_preproc_ok=false
  4672. for ac_c_preproc_warn_flag in '' yes
  4673. do
  4674. # Use a header file that comes with gcc, so configuring glibc
  4675. # with a fresh cross-compiler works.
  4676. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4677. # <limits.h> exists even on freestanding compilers.
  4678. # On the NeXT, cc -E runs the code through the compiler's parser,
  4679. # not just through cpp. "Syntax error" is here to catch this case.
  4680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4681. /* end confdefs.h. */
  4682. #ifdef __STDC__
  4683. # include <limits.h>
  4684. #else
  4685. # include <assert.h>
  4686. #endif
  4687. Syntax error
  4688. _ACEOF
  4689. if ac_fn_c_try_cpp "$LINENO"; then :
  4690. else
  4691. # Broken: fails on valid input.
  4692. continue
  4693. fi
  4694. rm -f conftest.err conftest.i conftest.$ac_ext
  4695. # OK, works on sane cases. Now check whether nonexistent headers
  4696. # can be detected and how.
  4697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4698. /* end confdefs.h. */
  4699. #include <ac_nonexistent.h>
  4700. _ACEOF
  4701. if ac_fn_c_try_cpp "$LINENO"; then :
  4702. # Broken: success on invalid input.
  4703. continue
  4704. else
  4705. # Passes both tests.
  4706. ac_preproc_ok=:
  4707. break
  4708. fi
  4709. rm -f conftest.err conftest.i conftest.$ac_ext
  4710. done
  4711. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4712. rm -f conftest.i conftest.err conftest.$ac_ext
  4713. if $ac_preproc_ok; then :
  4714. break
  4715. fi
  4716. done
  4717. ac_cv_prog_CPP=$CPP
  4718. CPP=$ac_cv_prog_CPP
  4719. else
  4720. ac_cv_prog_CPP=$CPP
  4721. fi
  4722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4723. $as_echo "$CPP" >&6; }
  4724. ac_preproc_ok=false
  4725. for ac_c_preproc_warn_flag in '' yes
  4726. do
  4727. # Use a header file that comes with gcc, so configuring glibc
  4728. # with a fresh cross-compiler works.
  4729. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4730. # <limits.h> exists even on freestanding compilers.
  4731. # On the NeXT, cc -E runs the code through the compiler's parser,
  4732. # not just through cpp. "Syntax error" is here to catch this case.
  4733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4734. /* end confdefs.h. */
  4735. #ifdef __STDC__
  4736. # include <limits.h>
  4737. #else
  4738. # include <assert.h>
  4739. #endif
  4740. Syntax error
  4741. _ACEOF
  4742. if ac_fn_c_try_cpp "$LINENO"; then :
  4743. else
  4744. # Broken: fails on valid input.
  4745. continue
  4746. fi
  4747. rm -f conftest.err conftest.i conftest.$ac_ext
  4748. # OK, works on sane cases. Now check whether nonexistent headers
  4749. # can be detected and how.
  4750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4751. /* end confdefs.h. */
  4752. #include <ac_nonexistent.h>
  4753. _ACEOF
  4754. if ac_fn_c_try_cpp "$LINENO"; then :
  4755. # Broken: success on invalid input.
  4756. continue
  4757. else
  4758. # Passes both tests.
  4759. ac_preproc_ok=:
  4760. break
  4761. fi
  4762. rm -f conftest.err conftest.i conftest.$ac_ext
  4763. done
  4764. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4765. rm -f conftest.i conftest.err conftest.$ac_ext
  4766. if $ac_preproc_ok; then :
  4767. else
  4768. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4769. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4770. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4771. See \`config.log' for more details" "$LINENO" 5; }
  4772. fi
  4773. ac_ext=c
  4774. ac_cpp='$CPP $CPPFLAGS'
  4775. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4776. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4777. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4779. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4780. if test -z "$GREP"; then
  4781. ac_path_GREP_found=false
  4782. # Loop through the user's path and test for each of PROGNAME-LIST
  4783. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4784. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4785. do
  4786. IFS=$as_save_IFS
  4787. test -z "$as_dir" && as_dir=.
  4788. for ac_prog in grep ggrep; do
  4789. for ac_exec_ext in '' $ac_executable_extensions; do
  4790. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4791. as_fn_executable_p "$ac_path_GREP" || continue
  4792. # Check for GNU ac_path_GREP and select it if it is found.
  4793. # Check for GNU $ac_path_GREP
  4794. case `"$ac_path_GREP" --version 2>&1` in
  4795. *GNU*)
  4796. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4797. *)
  4798. ac_count=0
  4799. $as_echo_n 0123456789 >"conftest.in"
  4800. while :
  4801. do
  4802. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4803. mv "conftest.tmp" "conftest.in"
  4804. cp "conftest.in" "conftest.nl"
  4805. $as_echo 'GREP' >> "conftest.nl"
  4806. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4807. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4808. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4809. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4810. # Best one so far, save it but keep looking for a better one
  4811. ac_cv_path_GREP="$ac_path_GREP"
  4812. ac_path_GREP_max=$ac_count
  4813. fi
  4814. # 10*(2^10) chars as input seems more than enough
  4815. test $ac_count -gt 10 && break
  4816. done
  4817. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4818. esac
  4819. $ac_path_GREP_found && break 3
  4820. done
  4821. done
  4822. done
  4823. IFS=$as_save_IFS
  4824. if test -z "$ac_cv_path_GREP"; then
  4825. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4826. fi
  4827. else
  4828. ac_cv_path_GREP=$GREP
  4829. fi
  4830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4831. $as_echo "$ac_cv_path_GREP" >&6; }
  4832. GREP="$ac_cv_path_GREP"
  4833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4834. $as_echo_n "checking for egrep... " >&6; }
  4835. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4836. then ac_cv_path_EGREP="$GREP -E"
  4837. else
  4838. if test -z "$EGREP"; then
  4839. ac_path_EGREP_found=false
  4840. # Loop through the user's path and test for each of PROGNAME-LIST
  4841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4842. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4843. do
  4844. IFS=$as_save_IFS
  4845. test -z "$as_dir" && as_dir=.
  4846. for ac_prog in egrep; do
  4847. for ac_exec_ext in '' $ac_executable_extensions; do
  4848. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4849. as_fn_executable_p "$ac_path_EGREP" || continue
  4850. # Check for GNU ac_path_EGREP and select it if it is found.
  4851. # Check for GNU $ac_path_EGREP
  4852. case `"$ac_path_EGREP" --version 2>&1` in
  4853. *GNU*)
  4854. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4855. *)
  4856. ac_count=0
  4857. $as_echo_n 0123456789 >"conftest.in"
  4858. while :
  4859. do
  4860. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4861. mv "conftest.tmp" "conftest.in"
  4862. cp "conftest.in" "conftest.nl"
  4863. $as_echo 'EGREP' >> "conftest.nl"
  4864. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4865. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4866. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4867. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4868. # Best one so far, save it but keep looking for a better one
  4869. ac_cv_path_EGREP="$ac_path_EGREP"
  4870. ac_path_EGREP_max=$ac_count
  4871. fi
  4872. # 10*(2^10) chars as input seems more than enough
  4873. test $ac_count -gt 10 && break
  4874. done
  4875. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4876. esac
  4877. $ac_path_EGREP_found && break 3
  4878. done
  4879. done
  4880. done
  4881. IFS=$as_save_IFS
  4882. if test -z "$ac_cv_path_EGREP"; then
  4883. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4884. fi
  4885. else
  4886. ac_cv_path_EGREP=$EGREP
  4887. fi
  4888. fi
  4889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4890. $as_echo "$ac_cv_path_EGREP" >&6; }
  4891. EGREP="$ac_cv_path_EGREP"
  4892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4893. $as_echo_n "checking for ANSI C header files... " >&6; }
  4894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4895. /* end confdefs.h. */
  4896. #include <stdlib.h>
  4897. #include <stdarg.h>
  4898. #include <string.h>
  4899. #include <float.h>
  4900. int
  4901. main ()
  4902. {
  4903. ;
  4904. return 0;
  4905. }
  4906. _ACEOF
  4907. if ac_fn_c_try_compile "$LINENO"; then :
  4908. ac_cv_header_stdc=yes
  4909. else
  4910. ac_cv_header_stdc=no
  4911. fi
  4912. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4913. if test $ac_cv_header_stdc = yes; then
  4914. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4916. /* end confdefs.h. */
  4917. #include <string.h>
  4918. _ACEOF
  4919. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4920. $EGREP "memchr" >/dev/null 2>&1; then :
  4921. else
  4922. ac_cv_header_stdc=no
  4923. fi
  4924. rm -f conftest*
  4925. fi
  4926. if test $ac_cv_header_stdc = yes; then
  4927. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4929. /* end confdefs.h. */
  4930. #include <stdlib.h>
  4931. _ACEOF
  4932. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4933. $EGREP "free" >/dev/null 2>&1; then :
  4934. else
  4935. ac_cv_header_stdc=no
  4936. fi
  4937. rm -f conftest*
  4938. fi
  4939. if test $ac_cv_header_stdc = yes; then
  4940. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4941. if test "$cross_compiling" = yes; then :
  4942. :
  4943. else
  4944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4945. /* end confdefs.h. */
  4946. #include <ctype.h>
  4947. #include <stdlib.h>
  4948. #if ((' ' & 0x0FF) == 0x020)
  4949. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4950. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4951. #else
  4952. # define ISLOWER(c) \
  4953. (('a' <= (c) && (c) <= 'i') \
  4954. || ('j' <= (c) && (c) <= 'r') \
  4955. || ('s' <= (c) && (c) <= 'z'))
  4956. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4957. #endif
  4958. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4959. int
  4960. main ()
  4961. {
  4962. int i;
  4963. for (i = 0; i < 256; i++)
  4964. if (XOR (islower (i), ISLOWER (i))
  4965. || toupper (i) != TOUPPER (i))
  4966. return 2;
  4967. return 0;
  4968. }
  4969. _ACEOF
  4970. if ac_fn_c_try_run "$LINENO"; then :
  4971. else
  4972. ac_cv_header_stdc=no
  4973. fi
  4974. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4975. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4976. fi
  4977. fi
  4978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4979. $as_echo "$ac_cv_header_stdc" >&6; }
  4980. if test $ac_cv_header_stdc = yes; then
  4981. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4982. fi
  4983. #AC_CHECK_HEADERS(curses.h limits.h termio.h termios.h unistd.h values.h)
  4984. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4985. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4986. inttypes.h stdint.h unistd.h
  4987. do :
  4988. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4989. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4990. "
  4991. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4992. cat >>confdefs.h <<_ACEOF
  4993. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4994. _ACEOF
  4995. fi
  4996. done
  4997. for ac_header in limits.h termio.h termios.h unistd.h values.h f2c.h g2c.h
  4998. do :
  4999. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5000. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5001. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5002. cat >>confdefs.h <<_ACEOF
  5003. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5004. _ACEOF
  5005. fi
  5006. done
  5007. for ac_header in sys/ioctl.h sys/mtio.h sys/resource.h sys/time.h
  5008. do :
  5009. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5010. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5011. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5012. cat >>confdefs.h <<_ACEOF
  5013. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5014. _ACEOF
  5015. fi
  5016. done
  5017. for ac_header in sys/timeb.h sys/types.h sys/utsname.h
  5018. do :
  5019. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5020. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5021. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5022. cat >>confdefs.h <<_ACEOF
  5023. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5024. _ACEOF
  5025. fi
  5026. done
  5027. for ac_header in libintl.h iconv.h
  5028. do :
  5029. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5030. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5031. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5032. cat >>confdefs.h <<_ACEOF
  5033. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5034. _ACEOF
  5035. fi
  5036. done
  5037. for ac_header in langinfo.h
  5038. do :
  5039. ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
  5040. if test "x$ac_cv_header_langinfo_h" = xyes; then :
  5041. cat >>confdefs.h <<_ACEOF
  5042. #define HAVE_LANGINFO_H 1
  5043. _ACEOF
  5044. fi
  5045. done
  5046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  5047. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  5048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5049. /* end confdefs.h. */
  5050. #include <sys/types.h>
  5051. #include <sys/time.h>
  5052. #include <time.h>
  5053. int
  5054. main ()
  5055. {
  5056. if ((struct tm *) 0)
  5057. return 0;
  5058. ;
  5059. return 0;
  5060. }
  5061. _ACEOF
  5062. if ac_fn_c_try_compile "$LINENO"; then :
  5063. ac_cv_header_time=yes
  5064. else
  5065. ac_cv_header_time=no
  5066. fi
  5067. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  5069. $as_echo "$ac_cv_header_time" >&6; }
  5070. if test $ac_cv_header_time = yes; then
  5071. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  5072. fi
  5073. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  5074. if test "x$ac_cv_type_off_t" = xyes; then :
  5075. else
  5076. cat >>confdefs.h <<_ACEOF
  5077. #define off_t long int
  5078. _ACEOF
  5079. fi
  5080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  5081. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  5082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5083. /* end confdefs.h. */
  5084. #include <sys/types.h>
  5085. _ACEOF
  5086. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5087. $EGREP "uid_t" >/dev/null 2>&1; then :
  5088. ac_cv_type_uid_t=yes
  5089. else
  5090. ac_cv_type_uid_t=no
  5091. fi
  5092. rm -f conftest*
  5093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  5094. $as_echo "$ac_cv_type_uid_t" >&6; }
  5095. if test $ac_cv_type_uid_t = no; then
  5096. $as_echo "#define uid_t int" >>confdefs.h
  5097. $as_echo "#define gid_t int" >>confdefs.h
  5098. fi
  5099. case $host_os in
  5100. *cygwin* ) CYGWIN=yes;;
  5101. * ) CYGWIN=no;;
  5102. esac
  5103. for ac_func in ftime gethostname gettimeofday lseek nice time uname
  5104. do :
  5105. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5106. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5107. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5108. cat >>confdefs.h <<_ACEOF
  5109. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5110. _ACEOF
  5111. fi
  5112. done
  5113. for ac_func in seteuid setpriority setreuid setruid
  5114. do :
  5115. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5116. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5117. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5118. cat >>confdefs.h <<_ACEOF
  5119. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5120. _ACEOF
  5121. fi
  5122. done
  5123. for ac_func in drand48
  5124. do :
  5125. ac_fn_c_check_func "$LINENO" "drand48" "ac_cv_func_drand48"
  5126. if test "x$ac_cv_func_drand48" = xyes; then :
  5127. cat >>confdefs.h <<_ACEOF
  5128. #define HAVE_DRAND48 1
  5129. _ACEOF
  5130. fi
  5131. done
  5132. for ac_func in putenv setenv
  5133. do :
  5134. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5135. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5136. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5137. cat >>confdefs.h <<_ACEOF
  5138. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5139. _ACEOF
  5140. fi
  5141. done
  5142. for ac_func in nanosleep
  5143. do :
  5144. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  5145. if test "x$ac_cv_func_nanosleep" = xyes; then :
  5146. cat >>confdefs.h <<_ACEOF
  5147. #define HAVE_NANOSLEEP 1
  5148. _ACEOF
  5149. fi
  5150. done
  5151. if test "$cross_compiling" != "yes" ; then
  5152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
  5153. $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
  5154. if test "$cross_compiling" = yes; then :
  5155. as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
  5156. else
  5157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5158. /* end confdefs.h. */
  5159. $ac_includes_default
  5160. int
  5161. main ()
  5162. {
  5163. /* If this system has a BSD-style setpgrp which takes arguments,
  5164. setpgrp(1, 1) will fail with ESRCH and return -1, in that case
  5165. exit successfully. */
  5166. return setpgrp (1,1) != -1;
  5167. ;
  5168. return 0;
  5169. }
  5170. _ACEOF
  5171. if ac_fn_c_try_run "$LINENO"; then :
  5172. ac_cv_func_setpgrp_void=no
  5173. else
  5174. ac_cv_func_setpgrp_void=yes
  5175. fi
  5176. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5177. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5178. fi
  5179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
  5180. $as_echo "$ac_cv_func_setpgrp_void" >&6; }
  5181. if test $ac_cv_func_setpgrp_void = yes; then
  5182. $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
  5183. fi
  5184. else
  5185. CROSS_COMPILING=1
  5186. fi
  5187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  5188. $as_echo_n "checking for long long int... " >&6; }
  5189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5190. /* end confdefs.h. */
  5191. int
  5192. main ()
  5193. {
  5194. long long int x;
  5195. ;
  5196. return 0;
  5197. }
  5198. _ACEOF
  5199. if ac_fn_c_try_compile "$LINENO"; then :
  5200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5201. $as_echo "yes" >&6; }
  5202. $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
  5203. else
  5204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5205. $as_echo "no" >&6; }
  5206. fi
  5207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t" >&5
  5209. $as_echo_n "checking for int64_t... " >&6; }
  5210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5211. /* end confdefs.h. */
  5212. #include <sys/types.h>
  5213. int
  5214. main ()
  5215. {
  5216. int64_t x;
  5217. ;
  5218. return 0;
  5219. }
  5220. _ACEOF
  5221. if ac_fn_c_try_compile "$LINENO"; then :
  5222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5223. $as_echo "yes" >&6; }
  5224. $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
  5225. else
  5226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5227. $as_echo "no" >&6; }
  5228. fi
  5229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for W11" >&5
  5231. $as_echo_n "checking for W11... " >&6; }
  5232. case "$enable_w11" in
  5233. yes|no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$enable_w11\"" >&5
  5234. $as_echo "\"$enable_w11\"" >&6; } ;;
  5235. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  5236. esac
  5237. USE_X11=
  5238. USE_W11=
  5239. XLIB=
  5240. XTLIB=
  5241. if test "$enable_w11" = "yes" ; then
  5242. X_CFLAGS=-I${SRCDIR}/display/drivers/windows/libW11
  5243. X_LIBS='-L$(LIBDIR)'
  5244. USE_W11="1"
  5245. USE_X11="1"
  5246. XLIB=-lX11
  5247. CFLAGS="$CFLAGS -D__W98__"
  5248. else
  5249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  5250. $as_echo_n "checking for X... " >&6; }
  5251. # Check whether --with-x was given.
  5252. if test "${with_x+set}" = set; then :
  5253. withval=$with_x;
  5254. fi
  5255. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  5256. if test "x$with_x" = xno; then
  5257. # The user explicitly disabled X.
  5258. have_x=disabled
  5259. else
  5260. case $x_includes,$x_libraries in #(
  5261. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  5262. *,NONE | NONE,*)
  5263. # One or both of the vars are not set, and there is no cached value.
  5264. ac_x_includes=no ac_x_libraries=no
  5265. rm -f -r conftest.dir
  5266. if mkdir conftest.dir; then
  5267. cd conftest.dir
  5268. cat >Imakefile <<'_ACEOF'
  5269. incroot:
  5270. @echo incroot='${INCROOT}'
  5271. usrlibdir:
  5272. @echo usrlibdir='${USRLIBDIR}'
  5273. libdir:
  5274. @echo libdir='${LIBDIR}'
  5275. _ACEOF
  5276. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  5277. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  5278. for ac_var in incroot usrlibdir libdir; do
  5279. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  5280. done
  5281. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  5282. for ac_extension in a so sl dylib la dll; do
  5283. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  5284. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  5285. ac_im_usrlibdir=$ac_im_libdir; break
  5286. fi
  5287. done
  5288. # Screen out bogus values from the imake configuration. They are
  5289. # bogus both because they are the default anyway, and because
  5290. # using them would break gcc on systems where it needs fixed includes.
  5291. case $ac_im_incroot in
  5292. /usr/include) ac_x_includes= ;;
  5293. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  5294. esac
  5295. case $ac_im_usrlibdir in
  5296. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  5297. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  5298. esac
  5299. fi
  5300. cd ..
  5301. rm -f -r conftest.dir
  5302. fi
  5303. # Standard set of common directories for X headers.
  5304. # Check X11 before X11Rn because it is often a symlink to the current release.
  5305. ac_x_header_dirs='
  5306. /usr/X11/include
  5307. /usr/X11R7/include
  5308. /usr/X11R6/include
  5309. /usr/X11R5/include
  5310. /usr/X11R4/include
  5311. /usr/include/X11
  5312. /usr/include/X11R7
  5313. /usr/include/X11R6
  5314. /usr/include/X11R5
  5315. /usr/include/X11R4
  5316. /usr/local/X11/include
  5317. /usr/local/X11R7/include
  5318. /usr/local/X11R6/include
  5319. /usr/local/X11R5/include
  5320. /usr/local/X11R4/include
  5321. /usr/local/include/X11
  5322. /usr/local/include/X11R7
  5323. /usr/local/include/X11R6
  5324. /usr/local/include/X11R5
  5325. /usr/local/include/X11R4
  5326. /usr/X386/include
  5327. /usr/x386/include
  5328. /usr/XFree86/include/X11
  5329. /usr/include
  5330. /usr/local/include
  5331. /usr/unsupported/include
  5332. /usr/athena/include
  5333. /usr/local/x11r5/include
  5334. /usr/lpp/Xamples/include
  5335. /usr/openwin/include
  5336. /usr/openwin/share/include'
  5337. if test "$ac_x_includes" = no; then
  5338. # Guess where to find include files, by looking for Xlib.h.
  5339. # First, try using that file with no special directory specified.
  5340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5341. /* end confdefs.h. */
  5342. #include <X11/Xlib.h>
  5343. _ACEOF
  5344. if ac_fn_c_try_cpp "$LINENO"; then :
  5345. # We can compile using X headers with no special include directory.
  5346. ac_x_includes=
  5347. else
  5348. for ac_dir in $ac_x_header_dirs; do
  5349. if test -r "$ac_dir/X11/Xlib.h"; then
  5350. ac_x_includes=$ac_dir
  5351. break
  5352. fi
  5353. done
  5354. fi
  5355. rm -f conftest.err conftest.i conftest.$ac_ext
  5356. fi # $ac_x_includes = no
  5357. if test "$ac_x_libraries" = no; then
  5358. # Check for the libraries.
  5359. # See if we find them without any special options.
  5360. # Don't add to $LIBS permanently.
  5361. ac_save_LIBS=$LIBS
  5362. LIBS="-lX11 $LIBS"
  5363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5364. /* end confdefs.h. */
  5365. #include <X11/Xlib.h>
  5366. int
  5367. main ()
  5368. {
  5369. XrmInitialize ()
  5370. ;
  5371. return 0;
  5372. }
  5373. _ACEOF
  5374. if ac_fn_c_try_link "$LINENO"; then :
  5375. LIBS=$ac_save_LIBS
  5376. # We can link X programs with no special library path.
  5377. ac_x_libraries=
  5378. else
  5379. LIBS=$ac_save_LIBS
  5380. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  5381. do
  5382. # Don't even attempt the hair of trying to link an X program!
  5383. for ac_extension in a so sl dylib la dll; do
  5384. if test -r "$ac_dir/libX11.$ac_extension"; then
  5385. ac_x_libraries=$ac_dir
  5386. break 2
  5387. fi
  5388. done
  5389. done
  5390. fi
  5391. rm -f core conftest.err conftest.$ac_objext \
  5392. conftest$ac_exeext conftest.$ac_ext
  5393. fi # $ac_x_libraries = no
  5394. case $ac_x_includes,$ac_x_libraries in #(
  5395. no,* | *,no | *\'*)
  5396. # Didn't find X, or a directory has "'" in its name.
  5397. ac_cv_have_x="have_x=no";; #(
  5398. *)
  5399. # Record where we found X for the cache.
  5400. ac_cv_have_x="have_x=yes\
  5401. ac_x_includes='$ac_x_includes'\
  5402. ac_x_libraries='$ac_x_libraries'"
  5403. esac
  5404. ;; #(
  5405. *) have_x=yes;;
  5406. esac
  5407. eval "$ac_cv_have_x"
  5408. fi # $with_x != no
  5409. if test "$have_x" != yes; then
  5410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  5411. $as_echo "$have_x" >&6; }
  5412. no_x=yes
  5413. else
  5414. # If each of the values was on the command line, it overrides each guess.
  5415. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  5416. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  5417. # Update the cache value to reflect the command line values.
  5418. ac_cv_have_x="have_x=yes\
  5419. ac_x_includes='$x_includes'\
  5420. ac_x_libraries='$x_libraries'"
  5421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  5422. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  5423. fi
  5424. if test "$no_x" = yes; then
  5425. # Not all programs may use this symbol, but it does not hurt to define it.
  5426. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  5427. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  5428. else
  5429. if test -n "$x_includes"; then
  5430. X_CFLAGS="$X_CFLAGS -I$x_includes"
  5431. fi
  5432. # It would also be nice to do this for all -L options, not just this one.
  5433. if test -n "$x_libraries"; then
  5434. X_LIBS="$X_LIBS -L$x_libraries"
  5435. # For Solaris; some versions of Sun CC require a space after -R and
  5436. # others require no space. Words are not sufficient . . . .
  5437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  5438. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  5439. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  5440. ac_xsave_c_werror_flag=$ac_c_werror_flag
  5441. ac_c_werror_flag=yes
  5442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5443. /* end confdefs.h. */
  5444. int
  5445. main ()
  5446. {
  5447. ;
  5448. return 0;
  5449. }
  5450. _ACEOF
  5451. if ac_fn_c_try_link "$LINENO"; then :
  5452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5453. $as_echo "no" >&6; }
  5454. X_LIBS="$X_LIBS -R$x_libraries"
  5455. else
  5456. LIBS="$ac_xsave_LIBS -R $x_libraries"
  5457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5458. /* end confdefs.h. */
  5459. int
  5460. main ()
  5461. {
  5462. ;
  5463. return 0;
  5464. }
  5465. _ACEOF
  5466. if ac_fn_c_try_link "$LINENO"; then :
  5467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5468. $as_echo "yes" >&6; }
  5469. X_LIBS="$X_LIBS -R $x_libraries"
  5470. else
  5471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  5472. $as_echo "neither works" >&6; }
  5473. fi
  5474. rm -f core conftest.err conftest.$ac_objext \
  5475. conftest$ac_exeext conftest.$ac_ext
  5476. fi
  5477. rm -f core conftest.err conftest.$ac_objext \
  5478. conftest$ac_exeext conftest.$ac_ext
  5479. ac_c_werror_flag=$ac_xsave_c_werror_flag
  5480. LIBS=$ac_xsave_LIBS
  5481. fi
  5482. # Check for system-dependent libraries X programs must link with.
  5483. # Do this before checking for the system-independent R6 libraries
  5484. # (-lICE), since we may need -lsocket or whatever for X linking.
  5485. if test "$ISC" = yes; then
  5486. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  5487. else
  5488. # Martyn Johnson says this is needed for Ultrix, if the X
  5489. # libraries were built with DECnet support. And Karl Berry says
  5490. # the Alpha needs dnet_stub (dnet does not exist).
  5491. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  5492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5493. /* end confdefs.h. */
  5494. /* Override any GCC internal prototype to avoid an error.
  5495. Use char because int might match the return type of a GCC
  5496. builtin and then its argument prototype would still apply. */
  5497. #ifdef __cplusplus
  5498. extern "C"
  5499. #endif
  5500. char XOpenDisplay ();
  5501. int
  5502. main ()
  5503. {
  5504. return XOpenDisplay ();
  5505. ;
  5506. return 0;
  5507. }
  5508. _ACEOF
  5509. if ac_fn_c_try_link "$LINENO"; then :
  5510. else
  5511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  5512. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  5513. ac_check_lib_save_LIBS=$LIBS
  5514. LIBS="-ldnet $LIBS"
  5515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5516. /* end confdefs.h. */
  5517. /* Override any GCC internal prototype to avoid an error.
  5518. Use char because int might match the return type of a GCC
  5519. builtin and then its argument prototype would still apply. */
  5520. #ifdef __cplusplus
  5521. extern "C"
  5522. #endif
  5523. char dnet_ntoa ();
  5524. int
  5525. main ()
  5526. {
  5527. return dnet_ntoa ();
  5528. ;
  5529. return 0;
  5530. }
  5531. _ACEOF
  5532. if ac_fn_c_try_link "$LINENO"; then :
  5533. ac_cv_lib_dnet_dnet_ntoa=yes
  5534. else
  5535. ac_cv_lib_dnet_dnet_ntoa=no
  5536. fi
  5537. rm -f core conftest.err conftest.$ac_objext \
  5538. conftest$ac_exeext conftest.$ac_ext
  5539. LIBS=$ac_check_lib_save_LIBS
  5540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  5541. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  5542. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  5543. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  5544. fi
  5545. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  5546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  5547. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  5548. ac_check_lib_save_LIBS=$LIBS
  5549. LIBS="-ldnet_stub $LIBS"
  5550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5551. /* end confdefs.h. */
  5552. /* Override any GCC internal prototype to avoid an error.
  5553. Use char because int might match the return type of a GCC
  5554. builtin and then its argument prototype would still apply. */
  5555. #ifdef __cplusplus
  5556. extern "C"
  5557. #endif
  5558. char dnet_ntoa ();
  5559. int
  5560. main ()
  5561. {
  5562. return dnet_ntoa ();
  5563. ;
  5564. return 0;
  5565. }
  5566. _ACEOF
  5567. if ac_fn_c_try_link "$LINENO"; then :
  5568. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  5569. else
  5570. ac_cv_lib_dnet_stub_dnet_ntoa=no
  5571. fi
  5572. rm -f core conftest.err conftest.$ac_objext \
  5573. conftest$ac_exeext conftest.$ac_ext
  5574. LIBS=$ac_check_lib_save_LIBS
  5575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  5576. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  5577. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  5578. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  5579. fi
  5580. fi
  5581. fi
  5582. rm -f core conftest.err conftest.$ac_objext \
  5583. conftest$ac_exeext conftest.$ac_ext
  5584. LIBS="$ac_xsave_LIBS"
  5585. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  5586. # to get the SysV transport functions.
  5587. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  5588. # needs -lnsl.
  5589. # The nsl library prevents programs from opening the X display
  5590. # on Irix 5.2, according to T.E. Dickey.
  5591. # The functions gethostbyname, getservbyname, and inet_addr are
  5592. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  5593. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  5594. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  5595. fi
  5596. if test $ac_cv_func_gethostbyname = no; then
  5597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  5598. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  5599. ac_check_lib_save_LIBS=$LIBS
  5600. LIBS="-lnsl $LIBS"
  5601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5602. /* end confdefs.h. */
  5603. /* Override any GCC internal prototype to avoid an error.
  5604. Use char because int might match the return type of a GCC
  5605. builtin and then its argument prototype would still apply. */
  5606. #ifdef __cplusplus
  5607. extern "C"
  5608. #endif
  5609. char gethostbyname ();
  5610. int
  5611. main ()
  5612. {
  5613. return gethostbyname ();
  5614. ;
  5615. return 0;
  5616. }
  5617. _ACEOF
  5618. if ac_fn_c_try_link "$LINENO"; then :
  5619. ac_cv_lib_nsl_gethostbyname=yes
  5620. else
  5621. ac_cv_lib_nsl_gethostbyname=no
  5622. fi
  5623. rm -f core conftest.err conftest.$ac_objext \
  5624. conftest$ac_exeext conftest.$ac_ext
  5625. LIBS=$ac_check_lib_save_LIBS
  5626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  5627. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  5628. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  5629. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  5630. fi
  5631. if test $ac_cv_lib_nsl_gethostbyname = no; then
  5632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  5633. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  5634. ac_check_lib_save_LIBS=$LIBS
  5635. LIBS="-lbsd $LIBS"
  5636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5637. /* end confdefs.h. */
  5638. /* Override any GCC internal prototype to avoid an error.
  5639. Use char because int might match the return type of a GCC
  5640. builtin and then its argument prototype would still apply. */
  5641. #ifdef __cplusplus
  5642. extern "C"
  5643. #endif
  5644. char gethostbyname ();
  5645. int
  5646. main ()
  5647. {
  5648. return gethostbyname ();
  5649. ;
  5650. return 0;
  5651. }
  5652. _ACEOF
  5653. if ac_fn_c_try_link "$LINENO"; then :
  5654. ac_cv_lib_bsd_gethostbyname=yes
  5655. else
  5656. ac_cv_lib_bsd_gethostbyname=no
  5657. fi
  5658. rm -f core conftest.err conftest.$ac_objext \
  5659. conftest$ac_exeext conftest.$ac_ext
  5660. LIBS=$ac_check_lib_save_LIBS
  5661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  5662. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  5663. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  5664. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  5665. fi
  5666. fi
  5667. fi
  5668. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  5669. # socket/setsockopt and other routines are undefined under SCO ODT
  5670. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  5671. # on later versions), says Simon Leinen: it contains gethostby*
  5672. # variants that don't use the name server (or something). -lsocket
  5673. # must be given before -lnsl if both are needed. We assume that
  5674. # if connect needs -lnsl, so does gethostbyname.
  5675. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  5676. if test "x$ac_cv_func_connect" = xyes; then :
  5677. fi
  5678. if test $ac_cv_func_connect = no; then
  5679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  5680. $as_echo_n "checking for connect in -lsocket... " >&6; }
  5681. ac_check_lib_save_LIBS=$LIBS
  5682. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  5683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5684. /* end confdefs.h. */
  5685. /* Override any GCC internal prototype to avoid an error.
  5686. Use char because int might match the return type of a GCC
  5687. builtin and then its argument prototype would still apply. */
  5688. #ifdef __cplusplus
  5689. extern "C"
  5690. #endif
  5691. char connect ();
  5692. int
  5693. main ()
  5694. {
  5695. return connect ();
  5696. ;
  5697. return 0;
  5698. }
  5699. _ACEOF
  5700. if ac_fn_c_try_link "$LINENO"; then :
  5701. ac_cv_lib_socket_connect=yes
  5702. else
  5703. ac_cv_lib_socket_connect=no
  5704. fi
  5705. rm -f core conftest.err conftest.$ac_objext \
  5706. conftest$ac_exeext conftest.$ac_ext
  5707. LIBS=$ac_check_lib_save_LIBS
  5708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  5709. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  5710. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  5711. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  5712. fi
  5713. fi
  5714. # Guillermo Gomez says -lposix is necessary on A/UX.
  5715. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  5716. if test "x$ac_cv_func_remove" = xyes; then :
  5717. fi
  5718. if test $ac_cv_func_remove = no; then
  5719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  5720. $as_echo_n "checking for remove in -lposix... " >&6; }
  5721. ac_check_lib_save_LIBS=$LIBS
  5722. LIBS="-lposix $LIBS"
  5723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5724. /* end confdefs.h. */
  5725. /* Override any GCC internal prototype to avoid an error.
  5726. Use char because int might match the return type of a GCC
  5727. builtin and then its argument prototype would still apply. */
  5728. #ifdef __cplusplus
  5729. extern "C"
  5730. #endif
  5731. char remove ();
  5732. int
  5733. main ()
  5734. {
  5735. return remove ();
  5736. ;
  5737. return 0;
  5738. }
  5739. _ACEOF
  5740. if ac_fn_c_try_link "$LINENO"; then :
  5741. ac_cv_lib_posix_remove=yes
  5742. else
  5743. ac_cv_lib_posix_remove=no
  5744. fi
  5745. rm -f core conftest.err conftest.$ac_objext \
  5746. conftest$ac_exeext conftest.$ac_ext
  5747. LIBS=$ac_check_lib_save_LIBS
  5748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  5749. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  5750. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  5751. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  5752. fi
  5753. fi
  5754. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  5755. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  5756. if test "x$ac_cv_func_shmat" = xyes; then :
  5757. fi
  5758. if test $ac_cv_func_shmat = no; then
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  5760. $as_echo_n "checking for shmat in -lipc... " >&6; }
  5761. ac_check_lib_save_LIBS=$LIBS
  5762. LIBS="-lipc $LIBS"
  5763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5764. /* end confdefs.h. */
  5765. /* Override any GCC internal prototype to avoid an error.
  5766. Use char because int might match the return type of a GCC
  5767. builtin and then its argument prototype would still apply. */
  5768. #ifdef __cplusplus
  5769. extern "C"
  5770. #endif
  5771. char shmat ();
  5772. int
  5773. main ()
  5774. {
  5775. return shmat ();
  5776. ;
  5777. return 0;
  5778. }
  5779. _ACEOF
  5780. if ac_fn_c_try_link "$LINENO"; then :
  5781. ac_cv_lib_ipc_shmat=yes
  5782. else
  5783. ac_cv_lib_ipc_shmat=no
  5784. fi
  5785. rm -f core conftest.err conftest.$ac_objext \
  5786. conftest$ac_exeext conftest.$ac_ext
  5787. LIBS=$ac_check_lib_save_LIBS
  5788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  5789. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  5790. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  5791. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  5792. fi
  5793. fi
  5794. fi
  5795. # Check for libraries that X11R6 Xt/Xaw programs need.
  5796. ac_save_LDFLAGS=$LDFLAGS
  5797. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  5798. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  5799. # check for ICE first), but we must link in the order -lSM -lICE or
  5800. # we get undefined symbols. So assume we have SM if we have ICE.
  5801. # These have to be linked with before -lX11, unlike the other
  5802. # libraries we check for below, so use a different variable.
  5803. # John Interrante, Karl Berry
  5804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  5805. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  5806. ac_check_lib_save_LIBS=$LIBS
  5807. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  5808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5809. /* end confdefs.h. */
  5810. /* Override any GCC internal prototype to avoid an error.
  5811. Use char because int might match the return type of a GCC
  5812. builtin and then its argument prototype would still apply. */
  5813. #ifdef __cplusplus
  5814. extern "C"
  5815. #endif
  5816. char IceConnectionNumber ();
  5817. int
  5818. main ()
  5819. {
  5820. return IceConnectionNumber ();
  5821. ;
  5822. return 0;
  5823. }
  5824. _ACEOF
  5825. if ac_fn_c_try_link "$LINENO"; then :
  5826. ac_cv_lib_ICE_IceConnectionNumber=yes
  5827. else
  5828. ac_cv_lib_ICE_IceConnectionNumber=no
  5829. fi
  5830. rm -f core conftest.err conftest.$ac_objext \
  5831. conftest$ac_exeext conftest.$ac_ext
  5832. LIBS=$ac_check_lib_save_LIBS
  5833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  5834. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  5835. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  5836. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  5837. fi
  5838. LDFLAGS=$ac_save_LDFLAGS
  5839. fi
  5840. if test "$no_x" != "yes"; then
  5841. USE_X11="1"
  5842. XLIB=-lX11
  5843. XTLIB=-lXt
  5844. fi
  5845. fi
  5846. # Note that some systems (FreeBSD for example) need an extra library for
  5847. # cuserid
  5848. ac_save_libs="$LIBS"
  5849. LIBS=""
  5850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cuserid" >&5
  5851. $as_echo_n "checking for library containing cuserid... " >&6; }
  5852. ac_func_search_save_LIBS=$LIBS
  5853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5854. /* end confdefs.h. */
  5855. /* Override any GCC internal prototype to avoid an error.
  5856. Use char because int might match the return type of a GCC
  5857. builtin and then its argument prototype would still apply. */
  5858. #ifdef __cplusplus
  5859. extern "C"
  5860. #endif
  5861. char cuserid ();
  5862. int
  5863. main ()
  5864. {
  5865. return cuserid ();
  5866. ;
  5867. return 0;
  5868. }
  5869. _ACEOF
  5870. for ac_lib in '' compat; do
  5871. if test -z "$ac_lib"; then
  5872. ac_res="none required"
  5873. else
  5874. ac_res=-l$ac_lib
  5875. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5876. fi
  5877. if ac_fn_c_try_link "$LINENO"; then :
  5878. ac_cv_search_cuserid=$ac_res
  5879. fi
  5880. rm -f core conftest.err conftest.$ac_objext \
  5881. conftest$ac_exeext
  5882. if ${ac_cv_search_cuserid+:} false; then :
  5883. break
  5884. fi
  5885. done
  5886. if ${ac_cv_search_cuserid+:} false; then :
  5887. else
  5888. ac_cv_search_cuserid=no
  5889. fi
  5890. rm conftest.$ac_ext
  5891. LIBS=$ac_func_search_save_LIBS
  5892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cuserid" >&5
  5893. $as_echo "$ac_cv_search_cuserid" >&6; }
  5894. ac_res=$ac_cv_search_cuserid
  5895. if test "$ac_res" != no; then :
  5896. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5897. fi
  5898. DBMIEXTRALIB="$LIBS"
  5899. LIBS="$ac_save_libs"
  5900. for ac_func in asprintf
  5901. do :
  5902. ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
  5903. if test "x$ac_cv_func_asprintf" = xyes; then :
  5904. cat >>confdefs.h <<_ACEOF
  5905. #define HAVE_ASPRINTF 1
  5906. _ACEOF
  5907. fi
  5908. done
  5909. # Test if mathlib needs -lm flag or is included with libc
  5910. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  5911. if test "x$ac_cv_func_atan" = xyes; then :
  5912. MATHLIB=
  5913. else
  5914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan in -lm" >&5
  5915. $as_echo_n "checking for atan in -lm... " >&6; }
  5916. ac_check_lib_save_LIBS=$LIBS
  5917. LIBS="-lm $LIBS"
  5918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5919. /* end confdefs.h. */
  5920. /* Override any GCC internal prototype to avoid an error.
  5921. Use char because int might match the return type of a GCC
  5922. builtin and then its argument prototype would still apply. */
  5923. #ifdef __cplusplus
  5924. extern "C"
  5925. #endif
  5926. char atan ();
  5927. int
  5928. main ()
  5929. {
  5930. return atan ();
  5931. ;
  5932. return 0;
  5933. }
  5934. _ACEOF
  5935. if ac_fn_c_try_link "$LINENO"; then :
  5936. ac_cv_lib_m_atan=yes
  5937. else
  5938. ac_cv_lib_m_atan=no
  5939. fi
  5940. rm -f core conftest.err conftest.$ac_objext \
  5941. conftest$ac_exeext conftest.$ac_ext
  5942. LIBS=$ac_check_lib_save_LIBS
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atan" >&5
  5944. $as_echo "$ac_cv_lib_m_atan" >&6; }
  5945. if test "x$ac_cv_lib_m_atan" = xyes; then :
  5946. MATHLIB=-lm
  5947. else
  5948. as_fn_error $? "*** Failed check for math library." "$LINENO" 5
  5949. fi
  5950. fi
  5951. ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
  5952. if test "x$ac_cv_func_dlsym" = xyes; then :
  5953. DLLIB=
  5954. else
  5955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
  5956. $as_echo_n "checking for dlsym in -ldl... " >&6; }
  5957. ac_check_lib_save_LIBS=$LIBS
  5958. LIBS="-ldl $LIBS"
  5959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5960. /* end confdefs.h. */
  5961. /* Override any GCC internal prototype to avoid an error.
  5962. Use char because int might match the return type of a GCC
  5963. builtin and then its argument prototype would still apply. */
  5964. #ifdef __cplusplus
  5965. extern "C"
  5966. #endif
  5967. char dlsym ();
  5968. int
  5969. main ()
  5970. {
  5971. return dlsym ();
  5972. ;
  5973. return 0;
  5974. }
  5975. _ACEOF
  5976. if ac_fn_c_try_link "$LINENO"; then :
  5977. ac_cv_lib_dl_dlsym=yes
  5978. else
  5979. ac_cv_lib_dl_dlsym=no
  5980. fi
  5981. rm -f core conftest.err conftest.$ac_objext \
  5982. conftest$ac_exeext conftest.$ac_ext
  5983. LIBS=$ac_check_lib_save_LIBS
  5984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
  5985. $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
  5986. if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
  5987. DLLIB=-ldl
  5988. else
  5989. DLLIB=
  5990. fi
  5991. fi
  5992. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  5993. if test "x$ac_cv_func_iconv" = xyes; then :
  5994. ICONVLIB=
  5995. else
  5996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -liconv" >&5
  5997. $as_echo_n "checking for iconv in -liconv... " >&6; }
  5998. ac_check_lib_save_LIBS=$LIBS
  5999. LIBS="-liconv $LIBS"
  6000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6001. /* end confdefs.h. */
  6002. /* Override any GCC internal prototype to avoid an error.
  6003. Use char because int might match the return type of a GCC
  6004. builtin and then its argument prototype would still apply. */
  6005. #ifdef __cplusplus
  6006. extern "C"
  6007. #endif
  6008. char iconv ();
  6009. int
  6010. main ()
  6011. {
  6012. return iconv ();
  6013. ;
  6014. return 0;
  6015. }
  6016. _ACEOF
  6017. if ac_fn_c_try_link "$LINENO"; then :
  6018. ac_cv_lib_iconv_iconv=yes
  6019. else
  6020. ac_cv_lib_iconv_iconv=no
  6021. fi
  6022. rm -f core conftest.err conftest.$ac_objext \
  6023. conftest$ac_exeext conftest.$ac_ext
  6024. LIBS=$ac_check_lib_save_LIBS
  6025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv" >&5
  6026. $as_echo "$ac_cv_lib_iconv_iconv" >&6; }
  6027. if test "x$ac_cv_lib_iconv_iconv" = xyes; then :
  6028. ICONVLIB=-liconv
  6029. else
  6030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -lgiconv" >&5
  6031. $as_echo_n "checking for iconv in -lgiconv... " >&6; }
  6032. ac_check_lib_save_LIBS=$LIBS
  6033. LIBS="-lgiconv $LIBS"
  6034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6035. /* end confdefs.h. */
  6036. /* Override any GCC internal prototype to avoid an error.
  6037. Use char because int might match the return type of a GCC
  6038. builtin and then its argument prototype would still apply. */
  6039. #ifdef __cplusplus
  6040. extern "C"
  6041. #endif
  6042. char iconv ();
  6043. int
  6044. main ()
  6045. {
  6046. return iconv ();
  6047. ;
  6048. return 0;
  6049. }
  6050. _ACEOF
  6051. if ac_fn_c_try_link "$LINENO"; then :
  6052. ac_cv_lib_giconv_iconv=yes
  6053. else
  6054. ac_cv_lib_giconv_iconv=no
  6055. fi
  6056. rm -f core conftest.err conftest.$ac_objext \
  6057. conftest$ac_exeext conftest.$ac_ext
  6058. LIBS=$ac_check_lib_save_LIBS
  6059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_giconv_iconv" >&5
  6060. $as_echo "$ac_cv_lib_giconv_iconv" >&6; }
  6061. if test "x$ac_cv_lib_giconv_iconv" = xyes; then :
  6062. ICONVLIB=-lgiconv
  6063. else
  6064. ac_fn_c_check_func "$LINENO" "libiconv" "ac_cv_func_libiconv"
  6065. if test "x$ac_cv_func_libiconv" = xyes; then :
  6066. ICONVLIB=
  6067. else
  6068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv in -liconv" >&5
  6069. $as_echo_n "checking for libiconv in -liconv... " >&6; }
  6070. ac_check_lib_save_LIBS=$LIBS
  6071. LIBS="-liconv $LIBS"
  6072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6073. /* end confdefs.h. */
  6074. /* Override any GCC internal prototype to avoid an error.
  6075. Use char because int might match the return type of a GCC
  6076. builtin and then its argument prototype would still apply. */
  6077. #ifdef __cplusplus
  6078. extern "C"
  6079. #endif
  6080. char libiconv ();
  6081. int
  6082. main ()
  6083. {
  6084. return libiconv ();
  6085. ;
  6086. return 0;
  6087. }
  6088. _ACEOF
  6089. if ac_fn_c_try_link "$LINENO"; then :
  6090. ac_cv_lib_iconv_libiconv=yes
  6091. else
  6092. ac_cv_lib_iconv_libiconv=no
  6093. fi
  6094. rm -f core conftest.err conftest.$ac_objext \
  6095. conftest$ac_exeext conftest.$ac_ext
  6096. LIBS=$ac_check_lib_save_LIBS
  6097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv" >&5
  6098. $as_echo "$ac_cv_lib_iconv_libiconv" >&6; }
  6099. if test "x$ac_cv_lib_iconv_libiconv" = xyes; then :
  6100. ICONVLIB=-liconv
  6101. else
  6102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv in -lgiconv" >&5
  6103. $as_echo_n "checking for libiconv in -lgiconv... " >&6; }
  6104. ac_check_lib_save_LIBS=$LIBS
  6105. LIBS="-lgiconv $LIBS"
  6106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6107. /* end confdefs.h. */
  6108. /* Override any GCC internal prototype to avoid an error.
  6109. Use char because int might match the return type of a GCC
  6110. builtin and then its argument prototype would still apply. */
  6111. #ifdef __cplusplus
  6112. extern "C"
  6113. #endif
  6114. char libiconv ();
  6115. int
  6116. main ()
  6117. {
  6118. return libiconv ();
  6119. ;
  6120. return 0;
  6121. }
  6122. _ACEOF
  6123. if ac_fn_c_try_link "$LINENO"; then :
  6124. ac_cv_lib_giconv_libiconv=yes
  6125. else
  6126. ac_cv_lib_giconv_libiconv=no
  6127. fi
  6128. rm -f core conftest.err conftest.$ac_objext \
  6129. conftest$ac_exeext conftest.$ac_ext
  6130. LIBS=$ac_check_lib_save_LIBS
  6131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_giconv_libiconv" >&5
  6132. $as_echo "$ac_cv_lib_giconv_libiconv" >&6; }
  6133. if test "x$ac_cv_lib_giconv_libiconv" = xyes; then :
  6134. ICONVLIB=-lgiconv
  6135. else
  6136. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unable to locate iconv() function." >&5
  6137. $as_echo "$as_me: WARNING: *** Unable to locate iconv() function." >&2;}
  6138. ICONVLIB=
  6139. fi
  6140. fi
  6141. fi
  6142. fi
  6143. fi
  6144. fi
  6145. have_socket=1
  6146. ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
  6147. if test "x$ac_cv_func_socket" = xyes; then :
  6148. SOCKLIB=
  6149. else
  6150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  6151. $as_echo_n "checking for socket in -lsocket... " >&6; }
  6152. ac_check_lib_save_LIBS=$LIBS
  6153. LIBS="-lsocket $LIBS"
  6154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6155. /* end confdefs.h. */
  6156. /* Override any GCC internal prototype to avoid an error.
  6157. Use char because int might match the return type of a GCC
  6158. builtin and then its argument prototype would still apply. */
  6159. #ifdef __cplusplus
  6160. extern "C"
  6161. #endif
  6162. char socket ();
  6163. int
  6164. main ()
  6165. {
  6166. return socket ();
  6167. ;
  6168. return 0;
  6169. }
  6170. _ACEOF
  6171. if ac_fn_c_try_link "$LINENO"; then :
  6172. ac_cv_lib_socket_socket=yes
  6173. else
  6174. ac_cv_lib_socket_socket=no
  6175. fi
  6176. rm -f core conftest.err conftest.$ac_objext \
  6177. conftest$ac_exeext conftest.$ac_ext
  6178. LIBS=$ac_check_lib_save_LIBS
  6179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  6180. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  6181. if test "x$ac_cv_lib_socket_socket" = xyes; then :
  6182. SOCKLIB=-lsocket
  6183. else
  6184. have_socket=0
  6185. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unable to locate socket() function." >&5
  6186. $as_echo "$as_me: WARNING: *** Unable to locate socket() function." >&2;}
  6187. fi
  6188. fi
  6189. if test "$have_socket" = 1 ; then
  6190. HAVE_SOCKET=1
  6191. $as_echo "#define HAVE_SOCKET 1" >>confdefs.h
  6192. else
  6193. HAVE_SOCKET=
  6194. fi
  6195. # Mandatory zlib dependency
  6196. ZLIBLIBPATH=
  6197. ZLIBINCPATH=
  6198. ZLIB=
  6199. # With zlib includes directory
  6200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of zlib includes" >&5
  6201. $as_echo_n "checking for location of zlib includes... " >&6; }
  6202. case "$with_zlib_includes" in
  6203. y | ye | yes | n | no)
  6204. as_fn_error $? "*** You must supply a directory to --with-zlib-includes." "$LINENO" 5
  6205. ;;
  6206. esac
  6207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_zlib_includes" >&5
  6208. $as_echo "$with_zlib_includes" >&6; }
  6209. if test -n "$with_zlib_includes" ; then
  6210. for dir in $with_zlib_includes; do
  6211. if test -d "$dir"; then
  6212. ZLIBINCPATH="$ZLIBINCPATH -I$dir"
  6213. else
  6214. as_fn_error $? "*** zlib includes directory $dir does not exist." "$LINENO" 5
  6215. fi
  6216. done
  6217. fi
  6218. ac_save_cppflags="$CPPFLAGS"
  6219. CPPFLAGS="$ZLIBINCPATH $CPPFLAGS"
  6220. for ac_header in zlib.h
  6221. do :
  6222. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  6223. if test "x$ac_cv_header_zlib_h" = xyes; then :
  6224. cat >>confdefs.h <<_ACEOF
  6225. #define HAVE_ZLIB_H 1
  6226. _ACEOF
  6227. else
  6228. as_fn_error $? "*** Unable to locate zlib includes." "$LINENO" 5
  6229. fi
  6230. done
  6231. CPPFLAGS=$ac_save_cppflags
  6232. # With zlib library directory
  6233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of zlib library" >&5
  6234. $as_echo_n "checking for location of zlib library... " >&6; }
  6235. case "$with_zlib_libs" in
  6236. y | ye | yes | n | no)
  6237. as_fn_error $? "*** You must supply a directory to --with-zlib-libs." "$LINENO" 5
  6238. ;;
  6239. esac
  6240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_zlib_libs" >&5
  6241. $as_echo "$with_zlib_libs" >&6; }
  6242. if test -n "$with_zlib_libs"; then
  6243. for dir in $with_zlib_libs; do
  6244. if test -d "$dir"; then
  6245. ZLIBLIBPATH="$ZLIBLIBPATH -L$dir"
  6246. else
  6247. as_fn_error $? "*** zlib library directory $dir does not exist." "$LINENO" 5
  6248. fi
  6249. done
  6250. fi
  6251. ac_save_ldflags="$LDFLAGS"
  6252. LDFLAGS="$ZLIBLIBPATH $LDFLAGS"
  6253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
  6254. $as_echo_n "checking for deflate in -lz... " >&6; }
  6255. ac_check_lib_save_LIBS=$LIBS
  6256. LIBS="-lz $LIBS"
  6257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6258. /* end confdefs.h. */
  6259. /* Override any GCC internal prototype to avoid an error.
  6260. Use char because int might match the return type of a GCC
  6261. builtin and then its argument prototype would still apply. */
  6262. #ifdef __cplusplus
  6263. extern "C"
  6264. #endif
  6265. char deflate ();
  6266. int
  6267. main ()
  6268. {
  6269. return deflate ();
  6270. ;
  6271. return 0;
  6272. }
  6273. _ACEOF
  6274. if ac_fn_c_try_link "$LINENO"; then :
  6275. ac_cv_lib_z_deflate=yes
  6276. else
  6277. ac_cv_lib_z_deflate=no
  6278. fi
  6279. rm -f core conftest.err conftest.$ac_objext \
  6280. conftest$ac_exeext conftest.$ac_ext
  6281. LIBS=$ac_check_lib_save_LIBS
  6282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
  6283. $as_echo "$ac_cv_lib_z_deflate" >&6; }
  6284. if test "x$ac_cv_lib_z_deflate" = xyes; then :
  6285. ZLIB="$ZLIB -lz "
  6286. else
  6287. LDFLAGS=${ac_save_ldflags}
  6288. as_fn_error $? "*** Unable to locate zlib library." "$LINENO" 5
  6289. fi
  6290. LDFLAGS=${ac_save_ldflags}
  6291. #
  6292. # Done checking zlib
  6293. # bzip2 support
  6294. BZIP2LIBPATH=
  6295. BZIP2INCPATH=
  6296. BZIP2LIB=
  6297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use bzlib" >&5
  6298. $as_echo_n "checking whether to use bzlib... " >&6; }
  6299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_bzlib\"" >&5
  6300. $as_echo "\"$with_bzlib\"" >&6; }
  6301. case "$with_bzlib" in
  6302. "no") USE_BZIP2= ;;
  6303. "yes") USE_BZIP2="1" ;;
  6304. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  6305. esac
  6306. if test -n "$USE_BZIP2"; then
  6307. # With bzip2 includes directory
  6308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of bzlib includes" >&5
  6309. $as_echo_n "checking for location of bzlib includes... " >&6; }
  6310. case "$with_bzlib_includes" in
  6311. y | ye | yes | n | no)
  6312. as_fn_error $? "*** You must supply a directory to --with-bzlib-includes." "$LINENO" 5
  6313. ;;
  6314. esac
  6315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bzlib_includes" >&5
  6316. $as_echo "$with_bzlib_includes" >&6; }
  6317. if test -n "$with_bzlib_includes" ; then
  6318. for dir in $with_bzlib_includes; do
  6319. if test -d "$dir"; then
  6320. BZIP2INCPATH="$BZIP2INCPATH -I$dir"
  6321. else
  6322. as_fn_error $? "*** bzlib includes directory $dir does not exist." "$LINENO" 5
  6323. fi
  6324. done
  6325. fi
  6326. ac_save_cppflags="$CPPFLAGS"
  6327. CPPFLAGS="$BZIP2INCPATH $CPPFLAGS"
  6328. for ac_header in bzlib.h
  6329. do :
  6330. ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
  6331. if test "x$ac_cv_header_bzlib_h" = xyes; then :
  6332. cat >>confdefs.h <<_ACEOF
  6333. #define HAVE_BZLIB_H 1
  6334. _ACEOF
  6335. else
  6336. as_fn_error $? "*** Unable to locate bzlib includes." "$LINENO" 5
  6337. fi
  6338. done
  6339. CPPFLAGS=$ac_save_cppflags
  6340. # With bzip2 library directory
  6341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of bzlib library" >&5
  6342. $as_echo_n "checking for location of bzlib library... " >&6; }
  6343. case "$with_bzlib_libs" in
  6344. y | ye | yes | n | no)
  6345. as_fn_error $? "*** You must supply a directory to --with-bzlib-libs." "$LINENO" 5
  6346. ;;
  6347. esac
  6348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bzlib_libs" >&5
  6349. $as_echo "$with_bzlib_libs" >&6; }
  6350. if test -n "$with_bzlib_libs"; then
  6351. for dir in $with_bzlib_libs; do
  6352. if test -d "$dir"; then
  6353. BZIP2LIBPATH="$BZIP2LIBPATH -L$dir"
  6354. else
  6355. as_fn_error $? "*** bzlib library directory $dir does not exist." "$LINENO" 5
  6356. fi
  6357. done
  6358. fi
  6359. ac_save_ldflags="$LDFLAGS"
  6360. LDFLAGS="$BZIP2LIBPATH $LDFLAGS"
  6361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzBuffToBuffCompress in -lbz2" >&5
  6362. $as_echo_n "checking for BZ2_bzBuffToBuffCompress in -lbz2... " >&6; }
  6363. ac_check_lib_save_LIBS=$LIBS
  6364. LIBS="-lbz2 $LIBS"
  6365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6366. /* end confdefs.h. */
  6367. /* Override any GCC internal prototype to avoid an error.
  6368. Use char because int might match the return type of a GCC
  6369. builtin and then its argument prototype would still apply. */
  6370. #ifdef __cplusplus
  6371. extern "C"
  6372. #endif
  6373. char BZ2_bzBuffToBuffCompress ();
  6374. int
  6375. main ()
  6376. {
  6377. return BZ2_bzBuffToBuffCompress ();
  6378. ;
  6379. return 0;
  6380. }
  6381. _ACEOF
  6382. if ac_fn_c_try_link "$LINENO"; then :
  6383. ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress=yes
  6384. else
  6385. ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress=no
  6386. fi
  6387. rm -f core conftest.err conftest.$ac_objext \
  6388. conftest$ac_exeext conftest.$ac_ext
  6389. LIBS=$ac_check_lib_save_LIBS
  6390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" >&5
  6391. $as_echo "$ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" >&6; }
  6392. if test "x$ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" = xyes; then :
  6393. BZIP2LIB="$BZIP2LIB -lbz2 "
  6394. else
  6395. LDFLAGS=${ac_save_ldflags}
  6396. as_fn_error $? "*** Unable to locate bzlib library." "$LINENO" 5
  6397. fi
  6398. LDFLAGS=${ac_save_ldflags}
  6399. #
  6400. fi # $USE_BZIP2
  6401. # Done checking bzip2
  6402. # zstd support
  6403. ZSTDLIBPATH=
  6404. ZSTDINCPATH=
  6405. ZSTDLIB=
  6406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use zstd" >&5
  6407. $as_echo_n "checking whether to use zstd... " >&6; }
  6408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_zstd\"" >&5
  6409. $as_echo "\"$with_zstd\"" >&6; }
  6410. case "$with_zstd" in
  6411. "no") USE_ZSTD= ;;
  6412. "yes") USE_ZSTD="1" ;;
  6413. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  6414. esac
  6415. if test -n "$USE_ZSTD"; then
  6416. # With zstd includes directory
  6417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of zstd includes" >&5
  6418. $as_echo_n "checking for location of zstd includes... " >&6; }
  6419. case "$with_zstd_includes" in
  6420. y | ye | yes | n | no)
  6421. as_fn_error $? "*** You must supply a directory to --with-zstd-includes." "$LINENO" 5
  6422. ;;
  6423. esac
  6424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_zstd_includes" >&5
  6425. $as_echo "$with_zstd_includes" >&6; }
  6426. if test -n "$with_zstd_includes" ; then
  6427. for dir in $with_zstd_includes; do
  6428. if test -d "$dir"; then
  6429. ZSTDINCPATH="$ZSTDINCPATH -I$dir"
  6430. else
  6431. as_fn_error $? "*** zstd includes directory $dir does not exist." "$LINENO" 5
  6432. fi
  6433. done
  6434. fi
  6435. ac_save_cppflags="$CPPFLAGS"
  6436. CPPFLAGS="$ZSTDINCPATH $CPPFLAGS"
  6437. for ac_header in zstd.h
  6438. do :
  6439. ac_fn_c_check_header_mongrel "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
  6440. if test "x$ac_cv_header_zstd_h" = xyes; then :
  6441. cat >>confdefs.h <<_ACEOF
  6442. #define HAVE_ZSTD_H 1
  6443. _ACEOF
  6444. else
  6445. as_fn_error $? "*** Unable to locate zstd includes." "$LINENO" 5
  6446. fi
  6447. done
  6448. CPPFLAGS=$ac_save_cppflags
  6449. # With zstd library directory
  6450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of zstd library" >&5
  6451. $as_echo_n "checking for location of zstd library... " >&6; }
  6452. case "$with_zstd_libs" in
  6453. y | ye | yes | n | no)
  6454. as_fn_error $? "*** You must supply a directory to --with-zstd-libs." "$LINENO" 5
  6455. ;;
  6456. esac
  6457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_zstd_libs" >&5
  6458. $as_echo "$with_zstd_libs" >&6; }
  6459. if test -n "$with_zstd_libs"; then
  6460. for dir in $with_zstd_libs; do
  6461. if test -d "$dir"; then
  6462. ZSTDLIBPATH="$ZSTDLIBPATH -L$dir"
  6463. else
  6464. as_fn_error $? "*** zstd library directory $dir does not exist." "$LINENO" 5
  6465. fi
  6466. done
  6467. fi
  6468. ac_save_ldflags="$LDFLAGS"
  6469. LDFLAGS="$ZSTDLIBPATH $LDFLAGS"
  6470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD_compress in -lzstd" >&5
  6471. $as_echo_n "checking for ZSTD_compress in -lzstd... " >&6; }
  6472. ac_check_lib_save_LIBS=$LIBS
  6473. LIBS="-lzstd $LIBS"
  6474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6475. /* end confdefs.h. */
  6476. /* Override any GCC internal prototype to avoid an error.
  6477. Use char because int might match the return type of a GCC
  6478. builtin and then its argument prototype would still apply. */
  6479. #ifdef __cplusplus
  6480. extern "C"
  6481. #endif
  6482. char ZSTD_compress ();
  6483. int
  6484. main ()
  6485. {
  6486. return ZSTD_compress ();
  6487. ;
  6488. return 0;
  6489. }
  6490. _ACEOF
  6491. if ac_fn_c_try_link "$LINENO"; then :
  6492. ac_cv_lib_zstd_ZSTD_compress=yes
  6493. else
  6494. ac_cv_lib_zstd_ZSTD_compress=no
  6495. fi
  6496. rm -f core conftest.err conftest.$ac_objext \
  6497. conftest$ac_exeext conftest.$ac_ext
  6498. LIBS=$ac_check_lib_save_LIBS
  6499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_compress" >&5
  6500. $as_echo "$ac_cv_lib_zstd_ZSTD_compress" >&6; }
  6501. if test "x$ac_cv_lib_zstd_ZSTD_compress" = xyes; then :
  6502. ZSTDLIB="$ZSTDLIB -lzstd "
  6503. else
  6504. LDFLAGS=${ac_save_ldflags}
  6505. as_fn_error $? "*** Unable to locate zstd library." "$LINENO" 5
  6506. fi
  6507. LDFLAGS=${ac_save_ldflags}
  6508. #
  6509. fi # $USE_ZSTD
  6510. # Done checking zstd
  6511. # Mandatory PROJ dependency
  6512. PROJINC=
  6513. PROJLIB=
  6514. PROJSHARE=
  6515. PROJ4API=0
  6516. PROJMAJOR=4
  6517. # With PROJ includes directory
  6518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of External PROJ includes" >&5
  6519. $as_echo_n "checking for location of External PROJ includes... " >&6; }
  6520. case "$with_proj_includes" in
  6521. y | ye | yes | n | no)
  6522. as_fn_error $? "*** You must supply a directory to --with-proj-includes." "$LINENO" 5
  6523. ;;
  6524. esac
  6525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_proj_includes" >&5
  6526. $as_echo "$with_proj_includes" >&6; }
  6527. if test -n "$with_proj_includes" ; then
  6528. for dir in $with_proj_includes; do
  6529. if test -d "$dir"; then
  6530. PROJINC="$PROJINC -I$dir"
  6531. else
  6532. as_fn_error $? "*** External PROJ includes directory $dir does not exist." "$LINENO" 5
  6533. fi
  6534. done
  6535. fi
  6536. # PROJ version check: if proj.h exists, it must be proj 5+
  6537. ac_save_cppflags="$CPPFLAGS"
  6538. CPPFLAGS="$PROJINC $CPPFLAGS"
  6539. for ac_header in proj.h
  6540. do :
  6541. ac_fn_c_check_header_mongrel "$LINENO" "proj.h" "ac_cv_header_proj_h" "$ac_includes_default"
  6542. if test "x$ac_cv_header_proj_h" = xyes; then :
  6543. cat >>confdefs.h <<_ACEOF
  6544. #define HAVE_PROJ_H 1
  6545. _ACEOF
  6546. else
  6547. PROJ4API=1
  6548. fi
  6549. done
  6550. CPPFLAGS=$ac_save_cppflags
  6551. if test $PROJ4API = 0 ; then
  6552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking External PROJ major version" >&5
  6553. $as_echo_n "checking External PROJ major version... " >&6; }
  6554. ac_save_cppflags="$CPPFLAGS"
  6555. CPPFLAGS="$PROJINC $CPPFLAGS"
  6556. if test "$cross_compiling" = yes; then :
  6557. proj_ver_major=0
  6558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown (cross-compiling)" >&5
  6559. $as_echo "unknown (cross-compiling)" >&6; }
  6560. else
  6561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6562. /* end confdefs.h. */
  6563. #include <stdio.h>
  6564. #include <proj.h>
  6565. int main(void) {
  6566. FILE *fp = fopen("conftestdata","w");
  6567. fprintf(fp, "%d", PROJ_VERSION_MAJOR);
  6568. return 0;
  6569. }
  6570. _ACEOF
  6571. if ac_fn_c_try_run "$LINENO"; then :
  6572. proj_ver_major=`cat conftestdata`
  6573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $proj_ver_major" >&5
  6574. $as_echo "$proj_ver_major" >&6; }
  6575. else
  6576. as_fn_error $? "*** Could not determine External PROJ major version." "$LINENO" 5
  6577. fi
  6578. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6579. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6580. fi
  6581. CPPFLAGS=$ac_save_cppflags
  6582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking External PROJ minor version" >&5
  6583. $as_echo_n "checking External PROJ minor version... " >&6; }
  6584. ac_save_cppflags="$CPPFLAGS"
  6585. CPPFLAGS="$PROJINC $CPPFLAGS"
  6586. if test "$cross_compiling" = yes; then :
  6587. proj_ver_minor=0
  6588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown (cross-compiling)" >&5
  6589. $as_echo "unknown (cross-compiling)" >&6; }
  6590. else
  6591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6592. /* end confdefs.h. */
  6593. #include <stdio.h>
  6594. #include <proj.h>
  6595. int main(void) {
  6596. FILE *fp = fopen("conftestdata","w");
  6597. fprintf(fp, "%d", PROJ_VERSION_MINOR);
  6598. return 0;
  6599. }
  6600. _ACEOF
  6601. if ac_fn_c_try_run "$LINENO"; then :
  6602. proj_ver_minor=`cat conftestdata`
  6603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $proj_ver_minor" >&5
  6604. $as_echo "$proj_ver_minor" >&6; }
  6605. else
  6606. as_fn_error $? "*** Could not determine External PROJ minor version." "$LINENO" 5
  6607. fi
  6608. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6609. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6610. fi
  6611. CPPFLAGS=$ac_save_cppflags
  6612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking External PROJ patch version" >&5
  6613. $as_echo_n "checking External PROJ patch version... " >&6; }
  6614. ac_save_cppflags="$CPPFLAGS"
  6615. CPPFLAGS="$PROJINC $CPPFLAGS"
  6616. if test "$cross_compiling" = yes; then :
  6617. proj_ver_patch=0
  6618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown (cross-compiling)" >&5
  6619. $as_echo "unknown (cross-compiling)" >&6; }
  6620. else
  6621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6622. /* end confdefs.h. */
  6623. #include <stdio.h>
  6624. #include <proj.h>
  6625. int main(void) {
  6626. FILE *fp = fopen("conftestdata","w");
  6627. fprintf(fp, "%d", PROJ_VERSION_PATCH);
  6628. return 0;
  6629. }
  6630. _ACEOF
  6631. if ac_fn_c_try_run "$LINENO"; then :
  6632. proj_ver_patch=`cat conftestdata`
  6633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $proj_ver_patch" >&5
  6634. $as_echo "$proj_ver_patch" >&6; }
  6635. else
  6636. as_fn_error $? "*** Could not determine External PROJ patch version." "$LINENO" 5
  6637. fi
  6638. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6639. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6640. fi
  6641. CPPFLAGS=$ac_save_cppflags
  6642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found PROJ version \"${proj_ver_major}.${proj_ver_minor}.${proj_ver_patch}\"" >&5
  6643. $as_echo "found PROJ version \"${proj_ver_major}.${proj_ver_minor}.${proj_ver_patch}\"" >&6; }
  6644. PROJMAJOR=${proj_ver_major}
  6645. # minimum required PROJ 5+ version to use the new PROJ API: 5.1.0
  6646. if test ${proj_ver_major} = 5 && test `expr ${proj_ver_minor} \< 1` = 1 ; then
  6647. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: At least PROJ version \"5.1.0\" is required for the new API " >&5
  6648. $as_echo "$as_me: WARNING: At least PROJ version \"5.1.0\" is required for the new API " >&2;}
  6649. PROJ4API=1
  6650. fi
  6651. else
  6652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking External PROJ.4 version" >&5
  6653. $as_echo_n "checking External PROJ.4 version... " >&6; }
  6654. ac_save_cppflags="$CPPFLAGS"
  6655. CPPFLAGS="$PROJINC $CPPFLAGS"
  6656. if test "$cross_compiling" = yes; then :
  6657. proj_ver=0
  6658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown (cross-compiling)" >&5
  6659. $as_echo "unknown (cross-compiling)" >&6; }
  6660. else
  6661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6662. /* end confdefs.h. */
  6663. #include <stdio.h>
  6664. #include <proj_api.h>
  6665. int main(void) {
  6666. FILE *fp = fopen("conftestdata","w");
  6667. fprintf(fp, "%d", PJ_VERSION);
  6668. return 0;
  6669. }
  6670. _ACEOF
  6671. if ac_fn_c_try_run "$LINENO"; then :
  6672. proj_ver=`cat conftestdata`
  6673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $proj_ver" >&5
  6674. $as_echo "$proj_ver" >&6; }
  6675. else
  6676. as_fn_error $? "*** Could not determine External PROJ.4 version." "$LINENO" 5
  6677. fi
  6678. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6679. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6680. fi
  6681. CPPFLAGS=$ac_save_cppflags
  6682. if test `expr ${proj_ver} \>= 600` = 1 ; then
  6683. PROJMAJOR=6
  6684. elif test `expr ${proj_ver} \>= 500` = 1 ; then
  6685. PROJMAJOR=5
  6686. elif test `expr ${proj_ver} \>= 400` = 1 ; then
  6687. PROJMAJOR=4
  6688. fi
  6689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found PROJ version \"${proj_ver}\"" >&5
  6690. $as_echo "found PROJ version \"${proj_ver}\"" >&6; }
  6691. fi
  6692. if test $PROJ4API = 0 ; then
  6693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using new PROJ version 5+ API" >&5
  6694. $as_echo "using new PROJ version 5+ API" >&6; }
  6695. # With PROJ library directory
  6696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of External PROJ library" >&5
  6697. $as_echo_n "checking for location of External PROJ library... " >&6; }
  6698. case "$with_proj_libs" in
  6699. y | ye | yes | n | no)
  6700. as_fn_error $? "*** You must supply a directory to --with-proj-libs." "$LINENO" 5
  6701. ;;
  6702. esac
  6703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_proj_libs" >&5
  6704. $as_echo "$with_proj_libs" >&6; }
  6705. if test -n "$with_proj_libs"; then
  6706. for dir in $with_proj_libs; do
  6707. if test -d "$dir"; then
  6708. PROJLIB="$PROJLIB -L$dir"
  6709. else
  6710. as_fn_error $? "*** External PROJ library directory $dir does not exist." "$LINENO" 5
  6711. fi
  6712. done
  6713. fi
  6714. ac_save_ldflags="$LDFLAGS"
  6715. LDFLAGS="$PROJLIB $LDFLAGS"
  6716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for proj_pj_info in -lproj" >&5
  6717. $as_echo_n "checking for proj_pj_info in -lproj... " >&6; }
  6718. ac_check_lib_save_LIBS=$LIBS
  6719. LIBS="-lproj $LIBS"
  6720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6721. /* end confdefs.h. */
  6722. /* Override any GCC internal prototype to avoid an error.
  6723. Use char because int might match the return type of a GCC
  6724. builtin and then its argument prototype would still apply. */
  6725. #ifdef __cplusplus
  6726. extern "C"
  6727. #endif
  6728. char proj_pj_info ();
  6729. int
  6730. main ()
  6731. {
  6732. return proj_pj_info ();
  6733. ;
  6734. return 0;
  6735. }
  6736. _ACEOF
  6737. if ac_fn_c_try_link "$LINENO"; then :
  6738. ac_cv_lib_proj_proj_pj_info=yes
  6739. else
  6740. ac_cv_lib_proj_proj_pj_info=no
  6741. fi
  6742. rm -f core conftest.err conftest.$ac_objext \
  6743. conftest$ac_exeext conftest.$ac_ext
  6744. LIBS=$ac_check_lib_save_LIBS
  6745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_proj_proj_pj_info" >&5
  6746. $as_echo "$ac_cv_lib_proj_proj_pj_info" >&6; }
  6747. if test "x$ac_cv_lib_proj_proj_pj_info" = xyes; then :
  6748. PROJLIB="$PROJLIB -lproj "
  6749. else
  6750. LDFLAGS=${ac_save_ldflags}
  6751. as_fn_error $? "*** Unable to locate External PROJ library." "$LINENO" 5
  6752. fi
  6753. LDFLAGS=${ac_save_ldflags}
  6754. else
  6755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using old PROJ version 4 API" >&5
  6756. $as_echo "using old PROJ version 4 API" >&6; }
  6757. $as_echo "#define USE_PROJ4API 1" >>confdefs.h
  6758. ac_save_cppflags="$CPPFLAGS"
  6759. CPPFLAGS="$PROJINC $CPPFLAGS"
  6760. for ac_header in proj_api.h
  6761. do :
  6762. ac_fn_c_check_header_mongrel "$LINENO" "proj_api.h" "ac_cv_header_proj_api_h" "$ac_includes_default"
  6763. if test "x$ac_cv_header_proj_api_h" = xyes; then :
  6764. cat >>confdefs.h <<_ACEOF
  6765. #define HAVE_PROJ_API_H 1
  6766. _ACEOF
  6767. else
  6768. as_fn_error $? "*** Unable to locate External PROJ includes." "$LINENO" 5
  6769. fi
  6770. done
  6771. CPPFLAGS=$ac_save_cppflags
  6772. # PROJ version check for v4.x
  6773. if test "$cross_compiling" = yes; then
  6774. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Cannot check PROJ.4 version (cross-compiling)." >&5
  6775. $as_echo "$as_me: WARNING: *** Cannot check PROJ.4 version (cross-compiling)." >&2;}
  6776. else
  6777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking External PROJ.4 version" >&5
  6778. $as_echo_n "checking External PROJ.4 version... " >&6; }
  6779. ac_save_cppflags="$CPPFLAGS"
  6780. CPPFLAGS="$PROJINC $CPPFLAGS"
  6781. if test "$cross_compiling" = yes; then :
  6782. proj_ver=0
  6783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown (cross-compiling)" >&5
  6784. $as_echo "unknown (cross-compiling)" >&6; }
  6785. else
  6786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6787. /* end confdefs.h. */
  6788. #include <stdio.h>
  6789. #include <proj_api.h>
  6790. int main(void) {
  6791. FILE *fp = fopen("conftestdata","w");
  6792. fprintf(fp, "%d", PJ_VERSION);
  6793. return 0;
  6794. }
  6795. _ACEOF
  6796. if ac_fn_c_try_run "$LINENO"; then :
  6797. proj_ver=`cat conftestdata`
  6798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $proj_ver" >&5
  6799. $as_echo "$proj_ver" >&6; }
  6800. else
  6801. as_fn_error $? "*** Could not determine External PROJ.4 version." "$LINENO" 5
  6802. fi
  6803. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6804. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6805. fi
  6806. CPPFLAGS=$ac_save_cppflags
  6807. if test `expr ${proj_ver} \< 446` = 1 ; then
  6808. as_fn_error $? "*** PROJ.4.4.6 or later is required." "$LINENO" 5
  6809. fi
  6810. fi
  6811. # With PROJ library directory
  6812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of External PROJ.4 library" >&5
  6813. $as_echo_n "checking for location of External PROJ.4 library... " >&6; }
  6814. case "$with_proj_libs" in
  6815. y | ye | yes | n | no)
  6816. as_fn_error $? "*** You must supply a directory to --with-proj-libs." "$LINENO" 5
  6817. ;;
  6818. esac
  6819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_proj_libs" >&5
  6820. $as_echo "$with_proj_libs" >&6; }
  6821. if test -n "$with_proj_libs"; then
  6822. for dir in $with_proj_libs; do
  6823. if test -d "$dir"; then
  6824. PROJLIB="$PROJLIB -L$dir"
  6825. else
  6826. as_fn_error $? "*** External PROJ.4 library directory $dir does not exist." "$LINENO" 5
  6827. fi
  6828. done
  6829. fi
  6830. ac_save_ldflags="$LDFLAGS"
  6831. LDFLAGS="$PROJLIB $LDFLAGS"
  6832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pj_get_def in -lproj" >&5
  6833. $as_echo_n "checking for pj_get_def in -lproj... " >&6; }
  6834. ac_check_lib_save_LIBS=$LIBS
  6835. LIBS="-lproj $LIBS"
  6836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6837. /* end confdefs.h. */
  6838. /* Override any GCC internal prototype to avoid an error.
  6839. Use char because int might match the return type of a GCC
  6840. builtin and then its argument prototype would still apply. */
  6841. #ifdef __cplusplus
  6842. extern "C"
  6843. #endif
  6844. char pj_get_def ();
  6845. int
  6846. main ()
  6847. {
  6848. return pj_get_def ();
  6849. ;
  6850. return 0;
  6851. }
  6852. _ACEOF
  6853. if ac_fn_c_try_link "$LINENO"; then :
  6854. ac_cv_lib_proj_pj_get_def=yes
  6855. else
  6856. ac_cv_lib_proj_pj_get_def=no
  6857. fi
  6858. rm -f core conftest.err conftest.$ac_objext \
  6859. conftest$ac_exeext conftest.$ac_ext
  6860. LIBS=$ac_check_lib_save_LIBS
  6861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_proj_pj_get_def" >&5
  6862. $as_echo "$ac_cv_lib_proj_pj_get_def" >&6; }
  6863. if test "x$ac_cv_lib_proj_pj_get_def" = xyes; then :
  6864. PROJLIB="$PROJLIB -lproj "
  6865. else
  6866. LDFLAGS=${ac_save_ldflags}
  6867. as_fn_error $? "*** Unable to locate External PROJ.4 library." "$LINENO" 5
  6868. fi
  6869. LDFLAGS=${ac_save_ldflags}
  6870. fi
  6871. # With PROJ share directory
  6872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of External PROJ data files" >&5
  6873. $as_echo_n "checking for location of External PROJ data files... " >&6; }
  6874. case "$with_proj_share" in
  6875. y | ye | yes | n | no)
  6876. as_fn_error $? "*** You must supply a directory to --with-proj-share." "$LINENO" 5
  6877. ;;
  6878. esac
  6879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_proj_share" >&5
  6880. $as_echo "$with_proj_share" >&6; }
  6881. if test -n "$with_proj_share" ; then
  6882. if test -d "$with_proj_share"; then
  6883. PROJSHARE="$with_proj_share"
  6884. else
  6885. as_fn_error $? "*** External PROJ data directory $dir does not exist." "$LINENO" 5
  6886. fi
  6887. fi
  6888. if test -z "$PROJSHARE" ; then
  6889. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** External PROJ directory not specified; default will be used" >&5
  6890. $as_echo "$as_me: WARNING: *** External PROJ directory not specified; default will be used" >&2;}
  6891. PROJSHARE=/usr/share/proj
  6892. fi
  6893. # check if share/proj/epsg exists only for PROJ < 6
  6894. if test `expr ${PROJMAJOR} \< 6` = 1 ; then
  6895. # LOC_CHECK_SHARE does not work when cross compiling
  6896. if test "$cross_compiling" = "yes" ; then
  6897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epsg" >&5
  6898. $as_echo_n "checking for epsg... " >&6; }
  6899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown (cross-compiling)" >&5
  6900. $as_echo "unknown (cross-compiling)" >&6; }
  6901. else
  6902. as_ac_File=`$as_echo "ac_cv_file_$PROJSHARE/epsg" | $as_tr_sh`
  6903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PROJSHARE/epsg" >&5
  6904. $as_echo_n "checking for $PROJSHARE/epsg... " >&6; }
  6905. test "$cross_compiling" = yes &&
  6906. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  6907. if test -r "$PROJSHARE/epsg"; then
  6908. eval "$as_ac_File=yes"
  6909. else
  6910. eval "$as_ac_File=no"
  6911. fi
  6912. eval ac_res=\$$as_ac_File
  6913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6914. $as_echo "$ac_res" >&6; }
  6915. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  6916. else
  6917. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unable to locate PROJ data files." >&5
  6918. $as_echo "$as_me: WARNING: *** Unable to locate PROJ data files." >&2;}
  6919. fi
  6920. fi
  6921. fi
  6922. # Done checking PROJ
  6923. # Enable regex option
  6924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use regex" >&5
  6925. $as_echo_n "checking whether to use regex... " >&6; }
  6926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_regex\"" >&5
  6927. $as_echo "\"$with_regex\"" >&6; }
  6928. case "$with_regex" in
  6929. "no") USE_REGEX= ;;
  6930. "yes") USE_REGEX="1" ;;
  6931. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  6932. esac
  6933. REGEXINCPATH=
  6934. REGEXLIBPATH=
  6935. REGEXLIB=
  6936. if test -n "$USE_REGEX"; then
  6937. # With regex includes directory
  6938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of regex includes" >&5
  6939. $as_echo_n "checking for location of regex includes... " >&6; }
  6940. case "$with_regex_includes" in
  6941. y | ye | yes | n | no)
  6942. as_fn_error $? "*** You must supply a directory to --with-regex-includes." "$LINENO" 5
  6943. ;;
  6944. esac
  6945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_regex_includes" >&5
  6946. $as_echo "$with_regex_includes" >&6; }
  6947. if test -n "$with_regex_includes" ; then
  6948. for dir in $with_regex_includes; do
  6949. if test -d "$dir"; then
  6950. REGEXINCPATH="$REGEXINCPATH -I$dir"
  6951. else
  6952. as_fn_error $? "*** regex includes directory $dir does not exist." "$LINENO" 5
  6953. fi
  6954. done
  6955. fi
  6956. ac_save_cppflags="$CPPFLAGS"
  6957. CPPFLAGS="$REGEXINCPATH $CPPFLAGS"
  6958. for ac_header in regex.h
  6959. do :
  6960. ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
  6961. if test "x$ac_cv_header_regex_h" = xyes; then :
  6962. cat >>confdefs.h <<_ACEOF
  6963. #define HAVE_REGEX_H 1
  6964. _ACEOF
  6965. else
  6966. as_fn_error $? "*** Unable to locate regex includes." "$LINENO" 5
  6967. fi
  6968. done
  6969. CPPFLAGS=$ac_save_cppflags
  6970. # With regex library directory
  6971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of regex library" >&5
  6972. $as_echo_n "checking for location of regex library... " >&6; }
  6973. case "$with_regex_libs" in
  6974. y | ye | yes | n | no)
  6975. as_fn_error $? "*** You must supply a directory to --with-regex-libs." "$LINENO" 5
  6976. ;;
  6977. esac
  6978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_regex_libs" >&5
  6979. $as_echo "$with_regex_libs" >&6; }
  6980. if test -n "$with_regex_libs"; then
  6981. for dir in $with_regex_libs; do
  6982. if test -d "$dir"; then
  6983. REGEXLIBPATH="$REGEXLIBPATH -L$dir"
  6984. else
  6985. as_fn_error $? "*** regex library directory $dir does not exist." "$LINENO" 5
  6986. fi
  6987. done
  6988. fi
  6989. ac_save_libs="$LIBS"
  6990. ac_save_ldflags="$LDFLAGS"
  6991. LIBS=" $LIBS"
  6992. LDFLAGS=" $LDFLAGS"
  6993. ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
  6994. if test "x$ac_cv_func_regcomp" = xyes; then :
  6995. REGEXLIB="$REGEXLIB "
  6996. else
  6997. ac_save_ldflags="$LDFLAGS"
  6998. LDFLAGS="$REGEXLIBPATH $LDFLAGS"
  6999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lregex" >&5
  7000. $as_echo_n "checking for regcomp in -lregex... " >&6; }
  7001. ac_check_lib_save_LIBS=$LIBS
  7002. LIBS="-lregex $LIBS"
  7003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7004. /* end confdefs.h. */
  7005. /* Override any GCC internal prototype to avoid an error.
  7006. Use char because int might match the return type of a GCC
  7007. builtin and then its argument prototype would still apply. */
  7008. #ifdef __cplusplus
  7009. extern "C"
  7010. #endif
  7011. char regcomp ();
  7012. int
  7013. main ()
  7014. {
  7015. return regcomp ();
  7016. ;
  7017. return 0;
  7018. }
  7019. _ACEOF
  7020. if ac_fn_c_try_link "$LINENO"; then :
  7021. ac_cv_lib_regex_regcomp=yes
  7022. else
  7023. ac_cv_lib_regex_regcomp=no
  7024. fi
  7025. rm -f core conftest.err conftest.$ac_objext \
  7026. conftest$ac_exeext conftest.$ac_ext
  7027. LIBS=$ac_check_lib_save_LIBS
  7028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regcomp" >&5
  7029. $as_echo "$ac_cv_lib_regex_regcomp" >&6; }
  7030. if test "x$ac_cv_lib_regex_regcomp" = xyes; then :
  7031. REGEXLIB="$REGEXLIB -lregex "
  7032. else
  7033. LDFLAGS=${ac_save_ldflags}
  7034. as_fn_error $? "*** Unable to locate regex library." "$LINENO" 5
  7035. fi
  7036. LDFLAGS=${ac_save_ldflags}
  7037. fi
  7038. LIBS=${ac_save_libs}
  7039. LDFLAGS=${ac_save_ldflags}
  7040. fi # $USE_REGEX
  7041. # Done checking regex
  7042. # Enable Readline option
  7043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Readline" >&5
  7044. $as_echo_n "checking whether to use Readline... " >&6; }
  7045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_readline\"" >&5
  7046. $as_echo "\"$with_readline\"" >&6; }
  7047. case "$with_readline" in
  7048. "no") USE_READLINE= ;;
  7049. "yes") USE_READLINE="1" ;;
  7050. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  7051. esac
  7052. READLINEINCPATH=
  7053. READLINELIBPATH=
  7054. READLINELIB=
  7055. HISTORYLIB=
  7056. if test -n "$USE_READLINE"; then
  7057. # With Readline includes directory
  7058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Readline includes" >&5
  7059. $as_echo_n "checking for location of Readline includes... " >&6; }
  7060. case "$with_readline_includes" in
  7061. y | ye | yes | n | no)
  7062. as_fn_error $? "*** You must supply a directory to --with-readline-includes." "$LINENO" 5
  7063. ;;
  7064. esac
  7065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_readline_includes" >&5
  7066. $as_echo "$with_readline_includes" >&6; }
  7067. if test -n "$with_readline_includes" ; then
  7068. for dir in $with_readline_includes; do
  7069. if test -d "$dir"; then
  7070. READLINEINCPATH="$READLINEINCPATH -I$dir"
  7071. else
  7072. as_fn_error $? "*** Readline includes directory $dir does not exist." "$LINENO" 5
  7073. fi
  7074. done
  7075. fi
  7076. ac_save_cppflags="$CPPFLAGS"
  7077. CPPFLAGS="$READLINEINCPATH $CPPFLAGS"
  7078. for ac_header in readline/readline.h
  7079. do :
  7080. ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
  7081. if test "x$ac_cv_header_readline_readline_h" = xyes; then :
  7082. cat >>confdefs.h <<_ACEOF
  7083. #define HAVE_READLINE_READLINE_H 1
  7084. _ACEOF
  7085. else
  7086. as_fn_error $? "*** Unable to locate Readline includes." "$LINENO" 5
  7087. fi
  7088. done
  7089. CPPFLAGS=$ac_save_cppflags
  7090. ac_save_cppflags="$CPPFLAGS"
  7091. CPPFLAGS="$READLINEINCPATH $CPPFLAGS"
  7092. for ac_header in readline/history.h
  7093. do :
  7094. ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
  7095. if test "x$ac_cv_header_readline_history_h" = xyes; then :
  7096. cat >>confdefs.h <<_ACEOF
  7097. #define HAVE_READLINE_HISTORY_H 1
  7098. _ACEOF
  7099. else
  7100. as_fn_error $? "*** Unable to locate Readline includes." "$LINENO" 5
  7101. fi
  7102. done
  7103. CPPFLAGS=$ac_save_cppflags
  7104. # With Readline library directory
  7105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Readline library" >&5
  7106. $as_echo_n "checking for location of Readline library... " >&6; }
  7107. case "$with_readline_libs" in
  7108. y | ye | yes | n | no)
  7109. as_fn_error $? "*** You must supply a directory to --with-readline-libs." "$LINENO" 5
  7110. ;;
  7111. esac
  7112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_readline_libs" >&5
  7113. $as_echo "$with_readline_libs" >&6; }
  7114. if test -n "$with_readline_libs"; then
  7115. for dir in $with_readline_libs; do
  7116. if test -d "$dir"; then
  7117. READLINELIBPATH="$READLINELIBPATH -L$dir"
  7118. else
  7119. as_fn_error $? "*** Readline library directory $dir does not exist." "$LINENO" 5
  7120. fi
  7121. done
  7122. fi
  7123. ac_save_ldflags="$LDFLAGS"
  7124. LDFLAGS="$READLINELIBPATH $LDFLAGS"
  7125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
  7126. $as_echo_n "checking for readline in -lreadline... " >&6; }
  7127. ac_check_lib_save_LIBS=$LIBS
  7128. LIBS="-lreadline $LIBS"
  7129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7130. /* end confdefs.h. */
  7131. /* Override any GCC internal prototype to avoid an error.
  7132. Use char because int might match the return type of a GCC
  7133. builtin and then its argument prototype would still apply. */
  7134. #ifdef __cplusplus
  7135. extern "C"
  7136. #endif
  7137. char readline ();
  7138. int
  7139. main ()
  7140. {
  7141. return readline ();
  7142. ;
  7143. return 0;
  7144. }
  7145. _ACEOF
  7146. if ac_fn_c_try_link "$LINENO"; then :
  7147. ac_cv_lib_readline_readline=yes
  7148. else
  7149. ac_cv_lib_readline_readline=no
  7150. fi
  7151. rm -f core conftest.err conftest.$ac_objext \
  7152. conftest$ac_exeext conftest.$ac_ext
  7153. LIBS=$ac_check_lib_save_LIBS
  7154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
  7155. $as_echo "$ac_cv_lib_readline_readline" >&6; }
  7156. if test "x$ac_cv_lib_readline_readline" = xyes; then :
  7157. READLINELIB="$READLINELIB -lreadline "
  7158. else
  7159. LDFLAGS=${ac_save_ldflags}
  7160. as_fn_error $? "*** Unable to locate Readline library." "$LINENO" 5
  7161. fi
  7162. LDFLAGS=${ac_save_ldflags}
  7163. ac_save_ldflags="$LDFLAGS"
  7164. LDFLAGS="$READLINELIBPATH $LDFLAGS"
  7165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_history in -lhistory" >&5
  7166. $as_echo_n "checking for add_history in -lhistory... " >&6; }
  7167. ac_check_lib_save_LIBS=$LIBS
  7168. LIBS="-lhistory $LIBS"
  7169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7170. /* end confdefs.h. */
  7171. /* Override any GCC internal prototype to avoid an error.
  7172. Use char because int might match the return type of a GCC
  7173. builtin and then its argument prototype would still apply. */
  7174. #ifdef __cplusplus
  7175. extern "C"
  7176. #endif
  7177. char add_history ();
  7178. int
  7179. main ()
  7180. {
  7181. return add_history ();
  7182. ;
  7183. return 0;
  7184. }
  7185. _ACEOF
  7186. if ac_fn_c_try_link "$LINENO"; then :
  7187. ac_cv_lib_history_add_history=yes
  7188. else
  7189. ac_cv_lib_history_add_history=no
  7190. fi
  7191. rm -f core conftest.err conftest.$ac_objext \
  7192. conftest$ac_exeext conftest.$ac_ext
  7193. LIBS=$ac_check_lib_save_LIBS
  7194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_history_add_history" >&5
  7195. $as_echo "$ac_cv_lib_history_add_history" >&6; }
  7196. if test "x$ac_cv_lib_history_add_history" = xyes; then :
  7197. HISTORYLIB="$HISTORYLIB -lhistory "
  7198. else
  7199. LDFLAGS=${ac_save_ldflags}
  7200. as_fn_error $? "*** Unable to locate History library." "$LINENO" 5
  7201. fi
  7202. LDFLAGS=${ac_save_ldflags}
  7203. fi # $USE_READLINE
  7204. # Done checking Readline
  7205. # GDAL option
  7206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use GDAL" >&5
  7207. $as_echo_n "checking whether to use GDAL... " >&6; }
  7208. GDAL_LIBS=
  7209. GDAL_CFLAGS=
  7210. USE_GDAL=
  7211. USE_OGR=
  7212. if test "`basename xx/$with_gdal`" = "gdal-config" ; then
  7213. GDAL_CONFIG="$with_gdal"
  7214. fi
  7215. if test "$with_gdal" = "no" ; then
  7216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7217. $as_echo "no" >&6; }
  7218. else
  7219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7220. $as_echo "yes" >&6; }
  7221. # Extract the first word of "gdal-config", so it can be a program name with args.
  7222. set dummy gdal-config; ac_word=$2
  7223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7224. $as_echo_n "checking for $ac_word... " >&6; }
  7225. case $GDAL_CONFIG in
  7226. [\\/]* | ?:[\\/]*)
  7227. ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a path.
  7228. ;;
  7229. *)
  7230. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7231. for as_dir in $PATH
  7232. do
  7233. IFS=$as_save_IFS
  7234. test -z "$as_dir" && as_dir=.
  7235. for ac_exec_ext in '' $ac_executable_extensions; do
  7236. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7237. ac_cv_path_GDAL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  7238. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7239. break 2
  7240. fi
  7241. done
  7242. done
  7243. IFS=$as_save_IFS
  7244. test -z "$ac_cv_path_GDAL_CONFIG" && ac_cv_path_GDAL_CONFIG="no"
  7245. ;;
  7246. esac
  7247. GDAL_CONFIG=$ac_cv_path_GDAL_CONFIG
  7248. if test -n "$GDAL_CONFIG"; then
  7249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDAL_CONFIG" >&5
  7250. $as_echo "$GDAL_CONFIG" >&6; }
  7251. else
  7252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7253. $as_echo "no" >&6; }
  7254. fi
  7255. if test "$GDAL_CONFIG" = "no" ; then
  7256. as_fn_error $? "*** couldn't find gdal-config" "$LINENO" 5
  7257. fi
  7258. if test "$GDAL_CONFIG" != "" ; then
  7259. GDAL_LIBS=`"$GDAL_CONFIG" --libs`
  7260. GDAL_DEP_LIBS=`"$GDAL_CONFIG" --dep-libs`
  7261. GDAL_CFLAGS=`"$GDAL_CONFIG" --cflags`
  7262. USE_GDAL=1
  7263. if test `"$GDAL_CONFIG" --ogr-enabled` = "yes" ; then
  7264. $as_echo "#define HAVE_OGR 1" >>confdefs.h
  7265. USE_OGR=1
  7266. fi
  7267. fi
  7268. GDAL=
  7269. ac_save_libs="$LIBS"
  7270. ac_save_cflags="$CFLAGS"
  7271. LIBS="$LIBS $GDAL_LIBS"
  7272. CFLAGS="$CFLAGS $GDAL_CFLAGS"
  7273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7274. /* end confdefs.h. */
  7275. #include <gdal.h>
  7276. int
  7277. main ()
  7278. {
  7279. GDALOpen("foo", GA_ReadOnly);
  7280. ;
  7281. return 0;
  7282. }
  7283. _ACEOF
  7284. if ac_fn_c_try_link "$LINENO"; then :
  7285. else
  7286. LIBS="$LIBS $GDAL_DEP_LIBS"
  7287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7288. /* end confdefs.h. */
  7289. #include <gdal.h>
  7290. int
  7291. main ()
  7292. {
  7293. GDALOpen("foo", GA_ReadOnly);
  7294. ;
  7295. return 0;
  7296. }
  7297. _ACEOF
  7298. if ac_fn_c_try_link "$LINENO"; then :
  7299. GDAL_LIBS="$GDAL_LIBS $GDAL_DEP_LIBS"
  7300. else
  7301. as_fn_error $? "*** Unable to locate GDAL library." "$LINENO" 5
  7302. fi
  7303. rm -f core conftest.err conftest.$ac_objext \
  7304. conftest$ac_exeext conftest.$ac_ext
  7305. fi
  7306. rm -f core conftest.err conftest.$ac_objext \
  7307. conftest$ac_exeext conftest.$ac_ext
  7308. LIBS=${ac_save_libs}
  7309. CFLAGS=${ac_save_cflags}
  7310. $as_echo "#define HAVE_GDAL 1" >>confdefs.h
  7311. fi
  7312. # libLAS option
  7313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libLAS" >&5
  7314. $as_echo_n "checking whether to use libLAS... " >&6; }
  7315. LIBLAS_LIBS=
  7316. LIBLAS_CFLAGS=
  7317. USE_LIBLAS=
  7318. if test "`basename xx/$with_liblas`" = "liblas-config" ; then
  7319. LIBLAS_CONFIG="$with_liblas"
  7320. fi
  7321. if test "$with_liblas" = "no" ; then
  7322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7323. $as_echo "no" >&6; }
  7324. else
  7325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7326. $as_echo "yes" >&6; }
  7327. # Extract the first word of "liblas-config", so it can be a program name with args.
  7328. set dummy liblas-config; ac_word=$2
  7329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7330. $as_echo_n "checking for $ac_word... " >&6; }
  7331. case $LIBLAS_CONFIG in
  7332. [\\/]* | ?:[\\/]*)
  7333. ac_cv_path_LIBLAS_CONFIG="$LIBLAS_CONFIG" # Let the user override the test with a path.
  7334. ;;
  7335. *)
  7336. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7337. for as_dir in $PATH
  7338. do
  7339. IFS=$as_save_IFS
  7340. test -z "$as_dir" && as_dir=.
  7341. for ac_exec_ext in '' $ac_executable_extensions; do
  7342. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7343. ac_cv_path_LIBLAS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  7344. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7345. break 2
  7346. fi
  7347. done
  7348. done
  7349. IFS=$as_save_IFS
  7350. test -z "$ac_cv_path_LIBLAS_CONFIG" && ac_cv_path_LIBLAS_CONFIG="no"
  7351. ;;
  7352. esac
  7353. LIBLAS_CONFIG=$ac_cv_path_LIBLAS_CONFIG
  7354. if test -n "$LIBLAS_CONFIG"; then
  7355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLAS_CONFIG" >&5
  7356. $as_echo "$LIBLAS_CONFIG" >&6; }
  7357. else
  7358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7359. $as_echo "no" >&6; }
  7360. fi
  7361. if test "$LIBLAS_CONFIG" = "no" ; then
  7362. as_fn_error $? "*** couldn't find liblas-config" "$LINENO" 5
  7363. fi
  7364. if test "$LIBLAS_CONFIG" != "" ; then
  7365. LIBLAS_LIBS=`"$LIBLAS_CONFIG" --libs`
  7366. LIBLAS_CFLAGS=`"$LIBLAS_CONFIG" --cflags`
  7367. LIBLAS_INC=`"$LIBLAS_CONFIG" --includes`
  7368. USE_LIBLAS=1
  7369. fi
  7370. LIBLAS=
  7371. ac_save_libs="$LIBS"
  7372. ac_save_cflags="$CFLAGS"
  7373. ac_save_cppflags="$CPPFLAGS"
  7374. LIBS="$LIBS $LIBLAS_LIBS"
  7375. CFLAGS="$CFLAGS $LIBLAS_CFLAGS"
  7376. CPPFLAGS="$CPPFLAGS $LIBLAS_INC"
  7377. for ac_header in liblas/capi/liblas.h
  7378. do :
  7379. ac_fn_c_check_header_mongrel "$LINENO" "liblas/capi/liblas.h" "ac_cv_header_liblas_capi_liblas_h" "$ac_includes_default"
  7380. if test "x$ac_cv_header_liblas_capi_liblas_h" = xyes; then :
  7381. cat >>confdefs.h <<_ACEOF
  7382. #define HAVE_LIBLAS_CAPI_LIBLAS_H 1
  7383. _ACEOF
  7384. fi
  7385. done
  7386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7387. /* end confdefs.h. */
  7388. #include <liblas/capi/liblas.h>
  7389. int
  7390. main ()
  7391. {
  7392. LASReader_Create("foo");
  7393. ;
  7394. return 0;
  7395. }
  7396. _ACEOF
  7397. if ac_fn_c_try_link "$LINENO"; then :
  7398. else
  7399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7400. /* end confdefs.h. */
  7401. #include <liblas/capi/liblas.h>
  7402. int
  7403. main ()
  7404. {
  7405. LASReader_Create("foo");
  7406. ;
  7407. return 0;
  7408. }
  7409. _ACEOF
  7410. if ac_fn_c_try_link "$LINENO"; then :
  7411. LAS_LIBS="$LAS_LIBS"
  7412. else
  7413. as_fn_error $? "*** Unable to locate libLAS library." "$LINENO" 5
  7414. fi
  7415. rm -f core conftest.err conftest.$ac_objext \
  7416. conftest$ac_exeext conftest.$ac_ext
  7417. fi
  7418. rm -f core conftest.err conftest.$ac_objext \
  7419. conftest$ac_exeext conftest.$ac_ext
  7420. LIBS=${ac_save_libs}
  7421. CFLAGS=${ac_save_cflags}
  7422. CPPFLAGS=${ac_save_cppflags}
  7423. $as_echo "#define HAVE_LIBLAS 1" >>confdefs.h
  7424. fi
  7425. # PDAL option
  7426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PDAL" >&5
  7427. $as_echo_n "checking whether to use PDAL... " >&6; }
  7428. ac_ext=cpp
  7429. ac_cpp='$CXXCPP $CPPFLAGS'
  7430. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7431. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7432. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7433. PDAL_LIBS=
  7434. PDAL_CPPFLAGS=
  7435. USE_PDAL=
  7436. if test "`basename xx/$with_pdal`" = "pdal-config" ; then
  7437. PDAL_CONFIG="$with_pdal"
  7438. fi
  7439. if test "$with_pdal" = "no" ; then
  7440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7441. $as_echo "no" >&6; }
  7442. else
  7443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7444. $as_echo "yes" >&6; }
  7445. # Extract the first word of "pdal-config", so it can be a program name with args.
  7446. set dummy pdal-config; ac_word=$2
  7447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7448. $as_echo_n "checking for $ac_word... " >&6; }
  7449. case $PDAL_CONFIG in
  7450. [\\/]* | ?:[\\/]*)
  7451. ac_cv_path_PDAL_CONFIG="$PDAL_CONFIG" # Let the user override the test with a path.
  7452. ;;
  7453. *)
  7454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7455. for as_dir in $PATH
  7456. do
  7457. IFS=$as_save_IFS
  7458. test -z "$as_dir" && as_dir=.
  7459. for ac_exec_ext in '' $ac_executable_extensions; do
  7460. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7461. ac_cv_path_PDAL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  7462. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7463. break 2
  7464. fi
  7465. done
  7466. done
  7467. IFS=$as_save_IFS
  7468. test -z "$ac_cv_path_PDAL_CONFIG" && ac_cv_path_PDAL_CONFIG="no"
  7469. ;;
  7470. esac
  7471. PDAL_CONFIG=$ac_cv_path_PDAL_CONFIG
  7472. if test -n "$PDAL_CONFIG"; then
  7473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDAL_CONFIG" >&5
  7474. $as_echo "$PDAL_CONFIG" >&6; }
  7475. else
  7476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7477. $as_echo "no" >&6; }
  7478. fi
  7479. if test "$PDAL_CONFIG" = "no" ; then
  7480. as_fn_error $? "*** could not find pdal-config" "$LINENO" 5
  7481. fi
  7482. if test "$PDAL_CONFIG" != "" ; then
  7483. PDAL_LIBS=`"$PDAL_CONFIG" --libs`
  7484. PDAL_CPPFLAGS=`"$PDAL_CONFIG" --cxxflags`
  7485. PDAL_INC=`"$PDAL_CONFIG" --includes`
  7486. USE_PDAL=1
  7487. fi
  7488. PDAL=
  7489. ac_save_libs="$LIBS"
  7490. ac_save_cflags="$CFLAGS"
  7491. ac_save_cppflags="$CPPFLAGS"
  7492. LIBS="$LIBS $PDAL_LIBS"
  7493. CFLAGS="$CFLAGS $PDAL_CFLAGS"
  7494. CPPFLAGS="$CPPFLAGS $PDAL_CPPFLAGS $PDAL_INC"
  7495. ac_ext=cpp
  7496. ac_cpp='$CXXCPP $CPPFLAGS'
  7497. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7498. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7499. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7500. if test -z "$CXX"; then
  7501. if test -n "$CCC"; then
  7502. CXX=$CCC
  7503. else
  7504. if test -n "$ac_tool_prefix"; then
  7505. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  7506. do
  7507. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7508. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7510. $as_echo_n "checking for $ac_word... " >&6; }
  7511. if test -n "$CXX"; then
  7512. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  7513. else
  7514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7515. for as_dir in $PATH
  7516. do
  7517. IFS=$as_save_IFS
  7518. test -z "$as_dir" && as_dir=.
  7519. for ac_exec_ext in '' $ac_executable_extensions; do
  7520. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7521. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  7522. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7523. break 2
  7524. fi
  7525. done
  7526. done
  7527. IFS=$as_save_IFS
  7528. fi
  7529. CXX=$ac_cv_prog_CXX
  7530. if test -n "$CXX"; then
  7531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  7532. $as_echo "$CXX" >&6; }
  7533. else
  7534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7535. $as_echo "no" >&6; }
  7536. fi
  7537. test -n "$CXX" && break
  7538. done
  7539. fi
  7540. if test -z "$CXX"; then
  7541. ac_ct_CXX=$CXX
  7542. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  7543. do
  7544. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7545. set dummy $ac_prog; ac_word=$2
  7546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7547. $as_echo_n "checking for $ac_word... " >&6; }
  7548. if test -n "$ac_ct_CXX"; then
  7549. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  7550. else
  7551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7552. for as_dir in $PATH
  7553. do
  7554. IFS=$as_save_IFS
  7555. test -z "$as_dir" && as_dir=.
  7556. for ac_exec_ext in '' $ac_executable_extensions; do
  7557. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7558. ac_cv_prog_ac_ct_CXX="$ac_prog"
  7559. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7560. break 2
  7561. fi
  7562. done
  7563. done
  7564. IFS=$as_save_IFS
  7565. fi
  7566. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  7567. if test -n "$ac_ct_CXX"; then
  7568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  7569. $as_echo "$ac_ct_CXX" >&6; }
  7570. else
  7571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7572. $as_echo "no" >&6; }
  7573. fi
  7574. test -n "$ac_ct_CXX" && break
  7575. done
  7576. if test "x$ac_ct_CXX" = x; then
  7577. CXX="g++"
  7578. else
  7579. case $cross_compiling:$ac_tool_warned in
  7580. yes:)
  7581. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7582. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7583. ac_tool_warned=yes ;;
  7584. esac
  7585. CXX=$ac_ct_CXX
  7586. fi
  7587. fi
  7588. fi
  7589. fi
  7590. # Provide some information about the compiler.
  7591. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  7592. set X $ac_compile
  7593. ac_compiler=$2
  7594. for ac_option in --version -v -V -qversion; do
  7595. { { ac_try="$ac_compiler $ac_option >&5"
  7596. case "(($ac_try" in
  7597. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7598. *) ac_try_echo=$ac_try;;
  7599. esac
  7600. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  7601. $as_echo "$ac_try_echo"; } >&5
  7602. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  7603. ac_status=$?
  7604. if test -s conftest.err; then
  7605. sed '10a\
  7606. ... rest of stderr output deleted ...
  7607. 10q' conftest.err >conftest.er1
  7608. cat conftest.er1 >&5
  7609. fi
  7610. rm -f conftest.er1 conftest.err
  7611. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7612. test $ac_status = 0; }
  7613. done
  7614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  7615. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  7616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7617. /* end confdefs.h. */
  7618. int
  7619. main ()
  7620. {
  7621. #ifndef __GNUC__
  7622. choke me
  7623. #endif
  7624. ;
  7625. return 0;
  7626. }
  7627. _ACEOF
  7628. if ac_fn_cxx_try_compile "$LINENO"; then :
  7629. ac_compiler_gnu=yes
  7630. else
  7631. ac_compiler_gnu=no
  7632. fi
  7633. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7634. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  7635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  7636. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  7637. if test $ac_compiler_gnu = yes; then
  7638. GXX=yes
  7639. else
  7640. GXX=
  7641. fi
  7642. ac_test_CXXFLAGS=${CXXFLAGS+set}
  7643. ac_save_CXXFLAGS=$CXXFLAGS
  7644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  7645. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  7646. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  7647. ac_cxx_werror_flag=yes
  7648. ac_cv_prog_cxx_g=no
  7649. CXXFLAGS="-g"
  7650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7651. /* end confdefs.h. */
  7652. int
  7653. main ()
  7654. {
  7655. ;
  7656. return 0;
  7657. }
  7658. _ACEOF
  7659. if ac_fn_cxx_try_compile "$LINENO"; then :
  7660. ac_cv_prog_cxx_g=yes
  7661. else
  7662. CXXFLAGS=""
  7663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7664. /* end confdefs.h. */
  7665. int
  7666. main ()
  7667. {
  7668. ;
  7669. return 0;
  7670. }
  7671. _ACEOF
  7672. if ac_fn_cxx_try_compile "$LINENO"; then :
  7673. else
  7674. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  7675. CXXFLAGS="-g"
  7676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7677. /* end confdefs.h. */
  7678. int
  7679. main ()
  7680. {
  7681. ;
  7682. return 0;
  7683. }
  7684. _ACEOF
  7685. if ac_fn_cxx_try_compile "$LINENO"; then :
  7686. ac_cv_prog_cxx_g=yes
  7687. fi
  7688. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7689. fi
  7690. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7691. fi
  7692. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7693. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  7694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  7695. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  7696. if test "$ac_test_CXXFLAGS" = set; then
  7697. CXXFLAGS=$ac_save_CXXFLAGS
  7698. elif test $ac_cv_prog_cxx_g = yes; then
  7699. if test "$GXX" = yes; then
  7700. CXXFLAGS="-g -O2"
  7701. else
  7702. CXXFLAGS="-g"
  7703. fi
  7704. else
  7705. if test "$GXX" = yes; then
  7706. CXXFLAGS="-O2"
  7707. else
  7708. CXXFLAGS=
  7709. fi
  7710. fi
  7711. ac_ext=cpp
  7712. ac_cpp='$CXXCPP $CPPFLAGS'
  7713. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7714. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7715. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7717. /* end confdefs.h. */
  7718. #include <pdal/PointTable.hpp>
  7719. int
  7720. main ()
  7721. {
  7722. pdal::PointTable table;
  7723. ;
  7724. return 0;
  7725. }
  7726. _ACEOF
  7727. if ac_fn_cxx_try_link "$LINENO"; then :
  7728. else
  7729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7730. /* end confdefs.h. */
  7731. #include <pdal/PointTable.hpp>
  7732. int
  7733. main ()
  7734. {
  7735. pdal::PointTable table;
  7736. ;
  7737. return 0;
  7738. }
  7739. _ACEOF
  7740. if ac_fn_cxx_try_link "$LINENO"; then :
  7741. PDAL_LIBS="$PDAL_LIBS"
  7742. else
  7743. as_fn_error $? "*** Unable to locate PDAL library." "$LINENO" 5
  7744. fi
  7745. rm -f core conftest.err conftest.$ac_objext \
  7746. conftest$ac_exeext conftest.$ac_ext
  7747. fi
  7748. rm -f core conftest.err conftest.$ac_objext \
  7749. conftest$ac_exeext conftest.$ac_ext
  7750. LIBS=${ac_save_libs}
  7751. CFLAGS=${ac_save_cflags}
  7752. CPPFLAGS=${ac_save_cppflags}
  7753. $as_echo "#define HAVE_PDAL 1" >>confdefs.h
  7754. fi
  7755. ac_ext=c
  7756. ac_cpp='$CPP $CPPFLAGS'
  7757. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7758. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7759. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7760. # NetCDF option
  7761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NetCDF" >&5
  7762. $as_echo_n "checking whether to use NetCDF... " >&6; }
  7763. NETCDF_LIBS=
  7764. NETCDF_CFLAGS=
  7765. USE_NETCDF=
  7766. if test "`basename xx/$with_netcdf`" = "nc-config" ; then
  7767. NETCDF_CONFIG="$with_netcdf"
  7768. fi
  7769. if test "$with_netcdf" = "no" ; then
  7770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7771. $as_echo "no" >&6; }
  7772. else
  7773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7774. $as_echo "yes" >&6; }
  7775. # Extract the first word of "nc-config", so it can be a program name with args.
  7776. set dummy nc-config; ac_word=$2
  7777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7778. $as_echo_n "checking for $ac_word... " >&6; }
  7779. case $NETCDF_CONFIG in
  7780. [\\/]* | ?:[\\/]*)
  7781. ac_cv_path_NETCDF_CONFIG="$NETCDF_CONFIG" # Let the user override the test with a path.
  7782. ;;
  7783. *)
  7784. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7785. for as_dir in $PATH
  7786. do
  7787. IFS=$as_save_IFS
  7788. test -z "$as_dir" && as_dir=.
  7789. for ac_exec_ext in '' $ac_executable_extensions; do
  7790. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7791. ac_cv_path_NETCDF_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  7792. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7793. break 2
  7794. fi
  7795. done
  7796. done
  7797. IFS=$as_save_IFS
  7798. test -z "$ac_cv_path_NETCDF_CONFIG" && ac_cv_path_NETCDF_CONFIG="no"
  7799. ;;
  7800. esac
  7801. NETCDF_CONFIG=$ac_cv_path_NETCDF_CONFIG
  7802. if test -n "$NETCDF_CONFIG"; then
  7803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETCDF_CONFIG" >&5
  7804. $as_echo "$NETCDF_CONFIG" >&6; }
  7805. else
  7806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7807. $as_echo "no" >&6; }
  7808. fi
  7809. if test "$NETCDF_CONFIG" = "no" ; then
  7810. as_fn_error $? "*** couldn't find nc-config" "$LINENO" 5
  7811. fi
  7812. if test "$NETCDF_CONFIG" != "" ; then
  7813. NETCDF_LIBS=`"$NETCDF_CONFIG" --libs`
  7814. NETCDF_CFLAGS=`"$NETCDF_CONFIG" --cflags`
  7815. USE_NETCDF=1
  7816. fi
  7817. NETCDF=
  7818. ac_save_libs="$LIBS"
  7819. ac_save_cflags="$CFLAGS"
  7820. LIBS="$LIBS $NETCDF_LIBS"
  7821. CFLAGS="$CFLAGS $NETCDF_CFLAGS"
  7822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7823. /* end confdefs.h. */
  7824. #include <netcdf.h>
  7825. int
  7826. main ()
  7827. {
  7828. nc_create("foo", NC_CLOBBER, NULL);
  7829. ;
  7830. return 0;
  7831. }
  7832. _ACEOF
  7833. if ac_fn_c_try_link "$LINENO"; then :
  7834. else
  7835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7836. /* end confdefs.h. */
  7837. #include <netcdf.h>
  7838. int
  7839. main ()
  7840. {
  7841. nc_create("foo", NC_CLOBBER, NULL);
  7842. ;
  7843. return 0;
  7844. }
  7845. _ACEOF
  7846. if ac_fn_c_try_link "$LINENO"; then :
  7847. NETCDF_LIBS="$NETCDF_LIBS"
  7848. else
  7849. as_fn_error $? "*** Unable to locate NetCDF library." "$LINENO" 5
  7850. fi
  7851. rm -f core conftest.err conftest.$ac_objext \
  7852. conftest$ac_exeext conftest.$ac_ext
  7853. fi
  7854. rm -f core conftest.err conftest.$ac_objext \
  7855. conftest$ac_exeext conftest.$ac_ext
  7856. LIBS=${ac_save_libs}
  7857. CFLAGS=${ac_save_cflags}
  7858. $as_echo "#define HAVE_NETCDF 1" >>confdefs.h
  7859. fi
  7860. # GEOS option
  7861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use GEOS" >&5
  7862. $as_echo_n "checking whether to use GEOS... " >&6; }
  7863. GEOS_LIBS=
  7864. GEOS_CFLAGS=
  7865. USE_GEOS=
  7866. # FIXME: "quote" $with_geos ?
  7867. if test "`basename xx/$with_geos`" = "geos-config" ; then
  7868. GEOS_CONFIG="$with_geos"
  7869. fi
  7870. if test "$with_geos" = "no" ; then
  7871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7872. $as_echo "no" >&6; }
  7873. else
  7874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7875. $as_echo "yes" >&6; }
  7876. # Extract the first word of "geos-config", so it can be a program name with args.
  7877. set dummy geos-config; ac_word=$2
  7878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7879. $as_echo_n "checking for $ac_word... " >&6; }
  7880. case $GEOS_CONFIG in
  7881. [\\/]* | ?:[\\/]*)
  7882. ac_cv_path_GEOS_CONFIG="$GEOS_CONFIG" # Let the user override the test with a path.
  7883. ;;
  7884. *)
  7885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7886. for as_dir in $PATH
  7887. do
  7888. IFS=$as_save_IFS
  7889. test -z "$as_dir" && as_dir=.
  7890. for ac_exec_ext in '' $ac_executable_extensions; do
  7891. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7892. ac_cv_path_GEOS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  7893. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7894. break 2
  7895. fi
  7896. done
  7897. done
  7898. IFS=$as_save_IFS
  7899. test -z "$ac_cv_path_GEOS_CONFIG" && ac_cv_path_GEOS_CONFIG="no"
  7900. ;;
  7901. esac
  7902. GEOS_CONFIG=$ac_cv_path_GEOS_CONFIG
  7903. if test -n "$GEOS_CONFIG"; then
  7904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEOS_CONFIG" >&5
  7905. $as_echo "$GEOS_CONFIG" >&6; }
  7906. else
  7907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7908. $as_echo "no" >&6; }
  7909. fi
  7910. if test "$GEOS_CONFIG" = "no" ; then
  7911. as_fn_error $? "*** couldn't find geos-config" "$LINENO" 5
  7912. fi
  7913. if test "$GEOS_CONFIG" != "" ; then
  7914. GEOS_LIBS=`"$GEOS_CONFIG" --clibs`
  7915. GEOS_CFLAGS=`"$GEOS_CONFIG" --cflags`
  7916. USE_GEOS=1
  7917. fi
  7918. ac_save_cppflags="$CPPFLAGS"
  7919. CPPFLAGS="$GEOS_CFLAGS $CPPFLAGS"
  7920. for ac_header in geos_c.h
  7921. do :
  7922. ac_fn_c_check_header_mongrel "$LINENO" "geos_c.h" "ac_cv_header_geos_c_h" "$ac_includes_default"
  7923. if test "x$ac_cv_header_geos_c_h" = xyes; then :
  7924. cat >>confdefs.h <<_ACEOF
  7925. #define HAVE_GEOS_C_H 1
  7926. _ACEOF
  7927. else
  7928. as_fn_error $? "*** Unable to locate GEOS includes." "$LINENO" 5
  7929. fi
  7930. done
  7931. CPPFLAGS=$ac_save_cppflags
  7932. ### 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
  7933. # if test "$MINGW32" = yes ; then
  7934. # LOC_CHECK_LIBS(geos_c_i,initGEOS,GEOS,$GEOS_LIBS,GEOS_LIBS)
  7935. # else
  7936. ac_save_ldflags="$LDFLAGS"
  7937. LDFLAGS="$GEOS_LIBS $LDFLAGS"
  7938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initGEOS in -lgeos_c" >&5
  7939. $as_echo_n "checking for initGEOS in -lgeos_c... " >&6; }
  7940. ac_check_lib_save_LIBS=$LIBS
  7941. LIBS="-lgeos_c $LIBS"
  7942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7943. /* end confdefs.h. */
  7944. /* Override any GCC internal prototype to avoid an error.
  7945. Use char because int might match the return type of a GCC
  7946. builtin and then its argument prototype would still apply. */
  7947. #ifdef __cplusplus
  7948. extern "C"
  7949. #endif
  7950. char initGEOS ();
  7951. int
  7952. main ()
  7953. {
  7954. return initGEOS ();
  7955. ;
  7956. return 0;
  7957. }
  7958. _ACEOF
  7959. if ac_fn_c_try_link "$LINENO"; then :
  7960. ac_cv_lib_geos_c_initGEOS=yes
  7961. else
  7962. ac_cv_lib_geos_c_initGEOS=no
  7963. fi
  7964. rm -f core conftest.err conftest.$ac_objext \
  7965. conftest$ac_exeext conftest.$ac_ext
  7966. LIBS=$ac_check_lib_save_LIBS
  7967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_geos_c_initGEOS" >&5
  7968. $as_echo "$ac_cv_lib_geos_c_initGEOS" >&6; }
  7969. if test "x$ac_cv_lib_geos_c_initGEOS" = xyes; then :
  7970. GEOS_LIBS="$GEOS_LIBS -lgeos_c "
  7971. else
  7972. LDFLAGS=${ac_save_ldflags}
  7973. as_fn_error $? "*** Unable to locate GEOS library." "$LINENO" 5
  7974. fi
  7975. LDFLAGS=${ac_save_ldflags}
  7976. # fi
  7977. $as_echo "#define HAVE_GEOS 1" >>confdefs.h
  7978. fi
  7979. # Enable TIFF option
  7980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use TIFF" >&5
  7981. $as_echo_n "checking whether to use TIFF... " >&6; }
  7982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_tiff\"" >&5
  7983. $as_echo "\"$with_tiff\"" >&6; }
  7984. case "$with_tiff" in
  7985. "no") USE_TIFF= ;;
  7986. "yes") USE_TIFF="1" ;;
  7987. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  7988. esac
  7989. TIFF_INCLUDE_DIRS=
  7990. TIFF_LIBRARY_DIRS=
  7991. TIFFLIB=
  7992. if test -n "$USE_TIFF"; then
  7993. # With TIFF includes directory
  7994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of TIFF includes" >&5
  7995. $as_echo_n "checking for location of TIFF includes... " >&6; }
  7996. case "$with_tiff_includes" in
  7997. y | ye | yes | n | no)
  7998. as_fn_error $? "*** You must supply a directory to --with-tiff-includes." "$LINENO" 5
  7999. ;;
  8000. esac
  8001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tiff_includes" >&5
  8002. $as_echo "$with_tiff_includes" >&6; }
  8003. if test -n "$with_tiff_includes" ; then
  8004. for dir in $with_tiff_includes; do
  8005. if test -d "$dir"; then
  8006. TIFF_INCLUDE_DIRS="$TIFF_INCLUDE_DIRS -I$dir"
  8007. else
  8008. as_fn_error $? "*** TIFF includes directory $dir does not exist." "$LINENO" 5
  8009. fi
  8010. done
  8011. fi
  8012. ac_save_cppflags="$CPPFLAGS"
  8013. CPPFLAGS="$TIFF_INCLUDE_DIRS $CPPFLAGS"
  8014. for ac_header in tiffio.h
  8015. do :
  8016. ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
  8017. if test "x$ac_cv_header_tiffio_h" = xyes; then :
  8018. cat >>confdefs.h <<_ACEOF
  8019. #define HAVE_TIFFIO_H 1
  8020. _ACEOF
  8021. else
  8022. as_fn_error $? "*** Unable to locate TIFF includes." "$LINENO" 5
  8023. fi
  8024. done
  8025. CPPFLAGS=$ac_save_cppflags
  8026. # With TIFF library directory
  8027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of TIFF library" >&5
  8028. $as_echo_n "checking for location of TIFF library... " >&6; }
  8029. case "$with_tiff_libs" in
  8030. y | ye | yes | n | no)
  8031. as_fn_error $? "*** You must supply a directory to --with-tiff-libs." "$LINENO" 5
  8032. ;;
  8033. esac
  8034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tiff_libs" >&5
  8035. $as_echo "$with_tiff_libs" >&6; }
  8036. if test -n "$with_tiff_libs"; then
  8037. for dir in $with_tiff_libs; do
  8038. if test -d "$dir"; then
  8039. TIFF_LIBRARY_DIRS="$TIFF_LIBRARY_DIRS -L$dir"
  8040. else
  8041. as_fn_error $? "*** TIFF library directory $dir does not exist." "$LINENO" 5
  8042. fi
  8043. done
  8044. fi
  8045. ac_save_ldflags="$LDFLAGS"
  8046. LDFLAGS="$TIFF_LIBRARY_DIRS $LDFLAGS"
  8047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
  8048. $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
  8049. ac_check_lib_save_LIBS=$LIBS
  8050. LIBS="-ltiff $LIBS"
  8051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8052. /* end confdefs.h. */
  8053. /* Override any GCC internal prototype to avoid an error.
  8054. Use char because int might match the return type of a GCC
  8055. builtin and then its argument prototype would still apply. */
  8056. #ifdef __cplusplus
  8057. extern "C"
  8058. #endif
  8059. char TIFFOpen ();
  8060. int
  8061. main ()
  8062. {
  8063. return TIFFOpen ();
  8064. ;
  8065. return 0;
  8066. }
  8067. _ACEOF
  8068. if ac_fn_c_try_link "$LINENO"; then :
  8069. ac_cv_lib_tiff_TIFFOpen=yes
  8070. else
  8071. ac_cv_lib_tiff_TIFFOpen=no
  8072. fi
  8073. rm -f core conftest.err conftest.$ac_objext \
  8074. conftest$ac_exeext conftest.$ac_ext
  8075. LIBS=$ac_check_lib_save_LIBS
  8076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
  8077. $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
  8078. if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
  8079. TIFFLIB="$TIFFLIB -ltiff "
  8080. else
  8081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
  8082. $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
  8083. ac_check_lib_save_LIBS=$LIBS
  8084. LIBS="-ltiff $MATHLIB $LIBS"
  8085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8086. /* end confdefs.h. */
  8087. /* Override any GCC internal prototype to avoid an error.
  8088. Use char because int might match the return type of a GCC
  8089. builtin and then its argument prototype would still apply. */
  8090. #ifdef __cplusplus
  8091. extern "C"
  8092. #endif
  8093. char TIFFOpen ();
  8094. int
  8095. main ()
  8096. {
  8097. return TIFFOpen ();
  8098. ;
  8099. return 0;
  8100. }
  8101. _ACEOF
  8102. if ac_fn_c_try_link "$LINENO"; then :
  8103. ac_cv_lib_tiff_TIFFOpen=yes
  8104. else
  8105. ac_cv_lib_tiff_TIFFOpen=no
  8106. fi
  8107. rm -f core conftest.err conftest.$ac_objext \
  8108. conftest$ac_exeext conftest.$ac_ext
  8109. LIBS=$ac_check_lib_save_LIBS
  8110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
  8111. $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
  8112. if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
  8113. TIFFLIB="$TIFFLIB -ltiff $MATHLIB"
  8114. else
  8115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
  8116. $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
  8117. ac_check_lib_save_LIBS=$LIBS
  8118. LIBS="-ltiff $ZLIB $LIBS"
  8119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8120. /* end confdefs.h. */
  8121. /* Override any GCC internal prototype to avoid an error.
  8122. Use char because int might match the return type of a GCC
  8123. builtin and then its argument prototype would still apply. */
  8124. #ifdef __cplusplus
  8125. extern "C"
  8126. #endif
  8127. char TIFFOpen ();
  8128. int
  8129. main ()
  8130. {
  8131. return TIFFOpen ();
  8132. ;
  8133. return 0;
  8134. }
  8135. _ACEOF
  8136. if ac_fn_c_try_link "$LINENO"; then :
  8137. ac_cv_lib_tiff_TIFFOpen=yes
  8138. else
  8139. ac_cv_lib_tiff_TIFFOpen=no
  8140. fi
  8141. rm -f core conftest.err conftest.$ac_objext \
  8142. conftest$ac_exeext conftest.$ac_ext
  8143. LIBS=$ac_check_lib_save_LIBS
  8144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
  8145. $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
  8146. if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
  8147. TIFFLIB="$TIFFLIB -ltiff $ZLIB"
  8148. else
  8149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
  8150. $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
  8151. ac_check_lib_save_LIBS=$LIBS
  8152. LIBS="-ltiff $ZLIB $MATHLIB $LIBS"
  8153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8154. /* end confdefs.h. */
  8155. /* Override any GCC internal prototype to avoid an error.
  8156. Use char because int might match the return type of a GCC
  8157. builtin and then its argument prototype would still apply. */
  8158. #ifdef __cplusplus
  8159. extern "C"
  8160. #endif
  8161. char TIFFOpen ();
  8162. int
  8163. main ()
  8164. {
  8165. return TIFFOpen ();
  8166. ;
  8167. return 0;
  8168. }
  8169. _ACEOF
  8170. if ac_fn_c_try_link "$LINENO"; then :
  8171. ac_cv_lib_tiff_TIFFOpen=yes
  8172. else
  8173. ac_cv_lib_tiff_TIFFOpen=no
  8174. fi
  8175. rm -f core conftest.err conftest.$ac_objext \
  8176. conftest$ac_exeext conftest.$ac_ext
  8177. LIBS=$ac_check_lib_save_LIBS
  8178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
  8179. $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
  8180. if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
  8181. TIFFLIB="$TIFFLIB -ltiff $ZLIB $MATHLIB"
  8182. else
  8183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
  8184. $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
  8185. ac_check_lib_save_LIBS=$LIBS
  8186. LIBS="-ltiff -ljpeg $LIBS"
  8187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8188. /* end confdefs.h. */
  8189. /* Override any GCC internal prototype to avoid an error.
  8190. Use char because int might match the return type of a GCC
  8191. builtin and then its argument prototype would still apply. */
  8192. #ifdef __cplusplus
  8193. extern "C"
  8194. #endif
  8195. char TIFFOpen ();
  8196. int
  8197. main ()
  8198. {
  8199. return TIFFOpen ();
  8200. ;
  8201. return 0;
  8202. }
  8203. _ACEOF
  8204. if ac_fn_c_try_link "$LINENO"; then :
  8205. ac_cv_lib_tiff_TIFFOpen=yes
  8206. else
  8207. ac_cv_lib_tiff_TIFFOpen=no
  8208. fi
  8209. rm -f core conftest.err conftest.$ac_objext \
  8210. conftest$ac_exeext conftest.$ac_ext
  8211. LIBS=$ac_check_lib_save_LIBS
  8212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
  8213. $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
  8214. if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
  8215. TIFFLIB="$TIFFLIB -ltiff -ljpeg"
  8216. else
  8217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
  8218. $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
  8219. ac_check_lib_save_LIBS=$LIBS
  8220. LIBS="-ltiff -ljpeg $MATHLIB $LIBS"
  8221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8222. /* end confdefs.h. */
  8223. /* Override any GCC internal prototype to avoid an error.
  8224. Use char because int might match the return type of a GCC
  8225. builtin and then its argument prototype would still apply. */
  8226. #ifdef __cplusplus
  8227. extern "C"
  8228. #endif
  8229. char TIFFOpen ();
  8230. int
  8231. main ()
  8232. {
  8233. return TIFFOpen ();
  8234. ;
  8235. return 0;
  8236. }
  8237. _ACEOF
  8238. if ac_fn_c_try_link "$LINENO"; then :
  8239. ac_cv_lib_tiff_TIFFOpen=yes
  8240. else
  8241. ac_cv_lib_tiff_TIFFOpen=no
  8242. fi
  8243. rm -f core conftest.err conftest.$ac_objext \
  8244. conftest$ac_exeext conftest.$ac_ext
  8245. LIBS=$ac_check_lib_save_LIBS
  8246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
  8247. $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
  8248. if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
  8249. TIFFLIB="$TIFFLIB -ltiff -ljpeg $MATHLIB"
  8250. else
  8251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
  8252. $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
  8253. ac_check_lib_save_LIBS=$LIBS
  8254. LIBS="-ltiff -ljpeg $ZLIB $LIBS"
  8255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8256. /* end confdefs.h. */
  8257. /* Override any GCC internal prototype to avoid an error.
  8258. Use char because int might match the return type of a GCC
  8259. builtin and then its argument prototype would still apply. */
  8260. #ifdef __cplusplus
  8261. extern "C"
  8262. #endif
  8263. char TIFFOpen ();
  8264. int
  8265. main ()
  8266. {
  8267. return TIFFOpen ();
  8268. ;
  8269. return 0;
  8270. }
  8271. _ACEOF
  8272. if ac_fn_c_try_link "$LINENO"; then :
  8273. ac_cv_lib_tiff_TIFFOpen=yes
  8274. else
  8275. ac_cv_lib_tiff_TIFFOpen=no
  8276. fi
  8277. rm -f core conftest.err conftest.$ac_objext \
  8278. conftest$ac_exeext conftest.$ac_ext
  8279. LIBS=$ac_check_lib_save_LIBS
  8280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
  8281. $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
  8282. if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
  8283. TIFFLIB="$TIFFLIB -ltiff -ljpeg $ZLIB"
  8284. else
  8285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
  8286. $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
  8287. ac_check_lib_save_LIBS=$LIBS
  8288. LIBS="-ltiff -ljpeg $ZLIB $MATHLIB $LIBS"
  8289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8290. /* end confdefs.h. */
  8291. /* Override any GCC internal prototype to avoid an error.
  8292. Use char because int might match the return type of a GCC
  8293. builtin and then its argument prototype would still apply. */
  8294. #ifdef __cplusplus
  8295. extern "C"
  8296. #endif
  8297. char TIFFOpen ();
  8298. int
  8299. main ()
  8300. {
  8301. return TIFFOpen ();
  8302. ;
  8303. return 0;
  8304. }
  8305. _ACEOF
  8306. if ac_fn_c_try_link "$LINENO"; then :
  8307. ac_cv_lib_tiff_TIFFOpen=yes
  8308. else
  8309. ac_cv_lib_tiff_TIFFOpen=no
  8310. fi
  8311. rm -f core conftest.err conftest.$ac_objext \
  8312. conftest$ac_exeext conftest.$ac_ext
  8313. LIBS=$ac_check_lib_save_LIBS
  8314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
  8315. $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
  8316. if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
  8317. TIFFLIB="$TIFFLIB -ltiff -ljpeg $ZLIB $MATHLIB"
  8318. else
  8319. LDFLAGS=${ac_save_ldflags}
  8320. as_fn_error $? "*** Unable to locate TIFF library." "$LINENO" 5
  8321. fi
  8322. fi
  8323. fi
  8324. fi
  8325. fi
  8326. fi
  8327. fi
  8328. fi
  8329. LDFLAGS=${ac_save_ldflags}
  8330. fi # $USE_TIFF
  8331. # Done checking TIFF
  8332. # Enable PNG option
  8333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PNG" >&5
  8334. $as_echo_n "checking whether to use PNG... " >&6; }
  8335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_png\"" >&5
  8336. $as_echo "\"$with_png\"" >&6; }
  8337. case "$with_png" in
  8338. "no") USE_PNG= ;;
  8339. "yes") USE_PNG="1" ;;
  8340. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  8341. esac
  8342. PNGINC=
  8343. PNGLIB=
  8344. if test -n "$USE_PNG"; then
  8345. # With PNG includes directory
  8346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of PNG includes" >&5
  8347. $as_echo_n "checking for location of PNG includes... " >&6; }
  8348. case "$with_png_includes" in
  8349. y | ye | yes | n | no)
  8350. as_fn_error $? "*** You must supply a directory to --with-png-includes." "$LINENO" 5
  8351. ;;
  8352. esac
  8353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_png_includes" >&5
  8354. $as_echo "$with_png_includes" >&6; }
  8355. if test -n "$with_png_includes" ; then
  8356. for dir in $with_png_includes; do
  8357. if test -d "$dir"; then
  8358. PNGINC="$PNGINC -I$dir"
  8359. else
  8360. as_fn_error $? "*** PNG includes directory $dir does not exist." "$LINENO" 5
  8361. fi
  8362. done
  8363. fi
  8364. ac_save_cppflags="$CPPFLAGS"
  8365. CPPFLAGS="$PNGINC $CPPFLAGS"
  8366. for ac_header in png.h
  8367. do :
  8368. ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
  8369. if test "x$ac_cv_header_png_h" = xyes; then :
  8370. cat >>confdefs.h <<_ACEOF
  8371. #define HAVE_PNG_H 1
  8372. _ACEOF
  8373. else
  8374. as_fn_error $? "*** Unable to locate PNG includes." "$LINENO" 5
  8375. fi
  8376. done
  8377. CPPFLAGS=$ac_save_cppflags
  8378. # With PNG library directory
  8379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of PNG library" >&5
  8380. $as_echo_n "checking for location of PNG library... " >&6; }
  8381. case "$with_png_libs" in
  8382. y | ye | yes | n | no)
  8383. as_fn_error $? "*** You must supply a directory to --with-png-libs." "$LINENO" 5
  8384. ;;
  8385. esac
  8386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_png_libs" >&5
  8387. $as_echo "$with_png_libs" >&6; }
  8388. if test -n "$with_png_libs"; then
  8389. for dir in $with_png_libs; do
  8390. if test -d "$dir"; then
  8391. PNGLIB="$PNGLIB -L$dir"
  8392. else
  8393. as_fn_error $? "*** PNG library directory $dir does not exist." "$LINENO" 5
  8394. fi
  8395. done
  8396. fi
  8397. ac_save_ldflags="$LDFLAGS"
  8398. LDFLAGS="$PNGLIB $LDFLAGS"
  8399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_image in -lpng" >&5
  8400. $as_echo_n "checking for png_read_image in -lpng... " >&6; }
  8401. ac_check_lib_save_LIBS=$LIBS
  8402. LIBS="-lpng $ZLIB $MATHLIB $LIBS"
  8403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8404. /* end confdefs.h. */
  8405. /* Override any GCC internal prototype to avoid an error.
  8406. Use char because int might match the return type of a GCC
  8407. builtin and then its argument prototype would still apply. */
  8408. #ifdef __cplusplus
  8409. extern "C"
  8410. #endif
  8411. char png_read_image ();
  8412. int
  8413. main ()
  8414. {
  8415. return png_read_image ();
  8416. ;
  8417. return 0;
  8418. }
  8419. _ACEOF
  8420. if ac_fn_c_try_link "$LINENO"; then :
  8421. ac_cv_lib_png_png_read_image=yes
  8422. else
  8423. ac_cv_lib_png_png_read_image=no
  8424. fi
  8425. rm -f core conftest.err conftest.$ac_objext \
  8426. conftest$ac_exeext conftest.$ac_ext
  8427. LIBS=$ac_check_lib_save_LIBS
  8428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_image" >&5
  8429. $as_echo "$ac_cv_lib_png_png_read_image" >&6; }
  8430. if test "x$ac_cv_lib_png_png_read_image" = xyes; then :
  8431. PNGLIB="$PNGLIB -lpng $ZLIB $MATHLIB"
  8432. else
  8433. LDFLAGS=${ac_save_ldflags}
  8434. as_fn_error $? "*** Unable to locate PNG library." "$LINENO" 5
  8435. fi
  8436. LDFLAGS=${ac_save_ldflags}
  8437. fi # $USE_PNG
  8438. # Done checking PNG
  8439. # Enable PostgreSQL option
  8440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PostgreSQL" >&5
  8441. $as_echo_n "checking whether to use PostgreSQL... " >&6; }
  8442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_postgres\"" >&5
  8443. $as_echo "\"$with_postgres\"" >&6; }
  8444. case "$with_postgres" in
  8445. "no") USE_POSTGRES= ;;
  8446. "yes") USE_POSTGRES="1" ;;
  8447. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  8448. esac
  8449. if test -n "$USE_POSTGRES"; then
  8450. $as_echo "#define HAVE_POSTGRES 1" >>confdefs.h
  8451. fi # $USE_POSTGRES
  8452. PQINCPATH=
  8453. PQLIBPATH=
  8454. PQLIB=
  8455. if test -n "$USE_POSTGRES"; then
  8456. # With PostgreSQL includes directory
  8457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of PostgreSQL includes" >&5
  8458. $as_echo_n "checking for location of PostgreSQL includes... " >&6; }
  8459. case "$with_postgres_includes" in
  8460. y | ye | yes | n | no)
  8461. as_fn_error $? "*** You must supply a directory to --with-postgres-includes." "$LINENO" 5
  8462. ;;
  8463. esac
  8464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_postgres_includes" >&5
  8465. $as_echo "$with_postgres_includes" >&6; }
  8466. if test -n "$with_postgres_includes" ; then
  8467. for dir in $with_postgres_includes; do
  8468. if test -d "$dir"; then
  8469. PQINCPATH="$PQINCPATH -I$dir"
  8470. else
  8471. as_fn_error $? "*** PostgreSQL includes directory $dir does not exist." "$LINENO" 5
  8472. fi
  8473. done
  8474. fi
  8475. ac_save_cppflags="$CPPFLAGS"
  8476. CPPFLAGS="$PQINCPATH $CPPFLAGS"
  8477. for ac_header in libpq-fe.h
  8478. do :
  8479. ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default"
  8480. if test "x$ac_cv_header_libpq_fe_h" = xyes; then :
  8481. cat >>confdefs.h <<_ACEOF
  8482. #define HAVE_LIBPQ_FE_H 1
  8483. _ACEOF
  8484. else
  8485. as_fn_error $? "*** Unable to locate PostgreSQL includes." "$LINENO" 5
  8486. fi
  8487. done
  8488. CPPFLAGS=$ac_save_cppflags
  8489. fi # $USE_POSTGRES
  8490. if test -n "$USE_POSTGRES"; then
  8491. # With PostgreSQL library directory
  8492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of PostgreSQL library" >&5
  8493. $as_echo_n "checking for location of PostgreSQL library... " >&6; }
  8494. case "$with_postgres_libs" in
  8495. y | ye | yes | n | no)
  8496. as_fn_error $? "*** You must supply a directory to --with-postgres-libs." "$LINENO" 5
  8497. ;;
  8498. esac
  8499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_postgres_libs" >&5
  8500. $as_echo "$with_postgres_libs" >&6; }
  8501. if test -n "$with_postgres_libs"; then
  8502. for dir in $with_postgres_libs; do
  8503. if test -d "$dir"; then
  8504. PQLIBPATH="$PQLIBPATH -L$dir"
  8505. else
  8506. as_fn_error $? "*** PostgreSQL library directory $dir does not exist." "$LINENO" 5
  8507. fi
  8508. done
  8509. fi
  8510. ac_save_ldflags="$LDFLAGS"
  8511. LDFLAGS="$PQLIBPATH $LDFLAGS"
  8512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetdbLogin in -lpq" >&5
  8513. $as_echo_n "checking for PQsetdbLogin in -lpq... " >&6; }
  8514. ac_check_lib_save_LIBS=$LIBS
  8515. LIBS="-lpq $LIBS"
  8516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8517. /* end confdefs.h. */
  8518. /* Override any GCC internal prototype to avoid an error.
  8519. Use char because int might match the return type of a GCC
  8520. builtin and then its argument prototype would still apply. */
  8521. #ifdef __cplusplus
  8522. extern "C"
  8523. #endif
  8524. char PQsetdbLogin ();
  8525. int
  8526. main ()
  8527. {
  8528. return PQsetdbLogin ();
  8529. ;
  8530. return 0;
  8531. }
  8532. _ACEOF
  8533. if ac_fn_c_try_link "$LINENO"; then :
  8534. ac_cv_lib_pq_PQsetdbLogin=yes
  8535. else
  8536. ac_cv_lib_pq_PQsetdbLogin=no
  8537. fi
  8538. rm -f core conftest.err conftest.$ac_objext \
  8539. conftest$ac_exeext conftest.$ac_ext
  8540. LIBS=$ac_check_lib_save_LIBS
  8541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetdbLogin" >&5
  8542. $as_echo "$ac_cv_lib_pq_PQsetdbLogin" >&6; }
  8543. if test "x$ac_cv_lib_pq_PQsetdbLogin" = xyes; then :
  8544. PQLIB="$PQLIB -lpq "
  8545. else
  8546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetdbLogin in -lpq" >&5
  8547. $as_echo_n "checking for PQsetdbLogin in -lpq... " >&6; }
  8548. ac_check_lib_save_LIBS=$LIBS
  8549. LIBS="-lpq -lssl -lcrypto $LIBS"
  8550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8551. /* end confdefs.h. */
  8552. /* Override any GCC internal prototype to avoid an error.
  8553. Use char because int might match the return type of a GCC
  8554. builtin and then its argument prototype would still apply. */
  8555. #ifdef __cplusplus
  8556. extern "C"
  8557. #endif
  8558. char PQsetdbLogin ();
  8559. int
  8560. main ()
  8561. {
  8562. return PQsetdbLogin ();
  8563. ;
  8564. return 0;
  8565. }
  8566. _ACEOF
  8567. if ac_fn_c_try_link "$LINENO"; then :
  8568. ac_cv_lib_pq_PQsetdbLogin=yes
  8569. else
  8570. ac_cv_lib_pq_PQsetdbLogin=no
  8571. fi
  8572. rm -f core conftest.err conftest.$ac_objext \
  8573. conftest$ac_exeext conftest.$ac_ext
  8574. LIBS=$ac_check_lib_save_LIBS
  8575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetdbLogin" >&5
  8576. $as_echo "$ac_cv_lib_pq_PQsetdbLogin" >&6; }
  8577. if test "x$ac_cv_lib_pq_PQsetdbLogin" = xyes; then :
  8578. PQLIB="$PQLIB -lpq -lssl -lcrypto"
  8579. else
  8580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetdbLogin in -lpq" >&5
  8581. $as_echo_n "checking for PQsetdbLogin in -lpq... " >&6; }
  8582. ac_check_lib_save_LIBS=$LIBS
  8583. LIBS="-lpq -lcrypt $LIBS"
  8584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8585. /* end confdefs.h. */
  8586. /* Override any GCC internal prototype to avoid an error.
  8587. Use char because int might match the return type of a GCC
  8588. builtin and then its argument prototype would still apply. */
  8589. #ifdef __cplusplus
  8590. extern "C"
  8591. #endif
  8592. char PQsetdbLogin ();
  8593. int
  8594. main ()
  8595. {
  8596. return PQsetdbLogin ();
  8597. ;
  8598. return 0;
  8599. }
  8600. _ACEOF
  8601. if ac_fn_c_try_link "$LINENO"; then :
  8602. ac_cv_lib_pq_PQsetdbLogin=yes
  8603. else
  8604. ac_cv_lib_pq_PQsetdbLogin=no
  8605. fi
  8606. rm -f core conftest.err conftest.$ac_objext \
  8607. conftest$ac_exeext conftest.$ac_ext
  8608. LIBS=$ac_check_lib_save_LIBS
  8609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetdbLogin" >&5
  8610. $as_echo "$ac_cv_lib_pq_PQsetdbLogin" >&6; }
  8611. if test "x$ac_cv_lib_pq_PQsetdbLogin" = xyes; then :
  8612. PQLIB="$PQLIB -lpq -lcrypt"
  8613. else
  8614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetdbLogin in -lpq" >&5
  8615. $as_echo_n "checking for PQsetdbLogin in -lpq... " >&6; }
  8616. ac_check_lib_save_LIBS=$LIBS
  8617. LIBS="-lpq -lcrypt -lssl -lcrypto $LIBS"
  8618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8619. /* end confdefs.h. */
  8620. /* Override any GCC internal prototype to avoid an error.
  8621. Use char because int might match the return type of a GCC
  8622. builtin and then its argument prototype would still apply. */
  8623. #ifdef __cplusplus
  8624. extern "C"
  8625. #endif
  8626. char PQsetdbLogin ();
  8627. int
  8628. main ()
  8629. {
  8630. return PQsetdbLogin ();
  8631. ;
  8632. return 0;
  8633. }
  8634. _ACEOF
  8635. if ac_fn_c_try_link "$LINENO"; then :
  8636. ac_cv_lib_pq_PQsetdbLogin=yes
  8637. else
  8638. ac_cv_lib_pq_PQsetdbLogin=no
  8639. fi
  8640. rm -f core conftest.err conftest.$ac_objext \
  8641. conftest$ac_exeext conftest.$ac_ext
  8642. LIBS=$ac_check_lib_save_LIBS
  8643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetdbLogin" >&5
  8644. $as_echo "$ac_cv_lib_pq_PQsetdbLogin" >&6; }
  8645. if test "x$ac_cv_lib_pq_PQsetdbLogin" = xyes; then :
  8646. PQLIB="$PQLIB -lpq -lcrypt -lssl -lcrypto"
  8647. else
  8648. LDFLAGS=${ac_save_ldflags}
  8649. as_fn_error $? "*** Unable to locate PostgreSQL library." "$LINENO" 5
  8650. fi
  8651. fi
  8652. fi
  8653. fi
  8654. LDFLAGS=${ac_save_ldflags}
  8655. ac_save_ldflags="$LDFLAGS"
  8656. LDFLAGS="$LDFLAGS $PQLIBPATH"
  8657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQcmdTuples in -lpq" >&5
  8658. $as_echo_n "checking for PQcmdTuples in -lpq... " >&6; }
  8659. ac_check_lib_save_LIBS=$LIBS
  8660. LIBS="-lpq $LIBS"
  8661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8662. /* end confdefs.h. */
  8663. /* Override any GCC internal prototype to avoid an error.
  8664. Use char because int might match the return type of a GCC
  8665. builtin and then its argument prototype would still apply. */
  8666. #ifdef __cplusplus
  8667. extern "C"
  8668. #endif
  8669. char PQcmdTuples ();
  8670. int
  8671. main ()
  8672. {
  8673. return PQcmdTuples ();
  8674. ;
  8675. return 0;
  8676. }
  8677. _ACEOF
  8678. if ac_fn_c_try_link "$LINENO"; then :
  8679. ac_cv_lib_pq_PQcmdTuples=yes
  8680. else
  8681. ac_cv_lib_pq_PQcmdTuples=no
  8682. fi
  8683. rm -f core conftest.err conftest.$ac_objext \
  8684. conftest$ac_exeext conftest.$ac_ext
  8685. LIBS=$ac_check_lib_save_LIBS
  8686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQcmdTuples" >&5
  8687. $as_echo "$ac_cv_lib_pq_PQcmdTuples" >&6; }
  8688. if test "x$ac_cv_lib_pq_PQcmdTuples" = xyes; then :
  8689. $as_echo "#define HAVE_PQCMDTUPLES 1" >>confdefs.h
  8690. else
  8691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQcmdTuples in -lpq" >&5
  8692. $as_echo_n "checking for PQcmdTuples in -lpq... " >&6; }
  8693. ac_check_lib_save_LIBS=$LIBS
  8694. LIBS="-lpq -lcrypt $LIBS"
  8695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8696. /* end confdefs.h. */
  8697. /* Override any GCC internal prototype to avoid an error.
  8698. Use char because int might match the return type of a GCC
  8699. builtin and then its argument prototype would still apply. */
  8700. #ifdef __cplusplus
  8701. extern "C"
  8702. #endif
  8703. char PQcmdTuples ();
  8704. int
  8705. main ()
  8706. {
  8707. return PQcmdTuples ();
  8708. ;
  8709. return 0;
  8710. }
  8711. _ACEOF
  8712. if ac_fn_c_try_link "$LINENO"; then :
  8713. ac_cv_lib_pq_PQcmdTuples=yes
  8714. else
  8715. ac_cv_lib_pq_PQcmdTuples=no
  8716. fi
  8717. rm -f core conftest.err conftest.$ac_objext \
  8718. conftest$ac_exeext conftest.$ac_ext
  8719. LIBS=$ac_check_lib_save_LIBS
  8720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQcmdTuples" >&5
  8721. $as_echo "$ac_cv_lib_pq_PQcmdTuples" >&6; }
  8722. if test "x$ac_cv_lib_pq_PQcmdTuples" = xyes; then :
  8723. $as_echo "#define HAVE_PQCMDTUPLES 1" >>confdefs.h
  8724. fi
  8725. fi
  8726. LDFLAGS="${ac_save_ldflags}"
  8727. fi # $USE_POSTGRES
  8728. # Done checking PostgreSQL
  8729. # Enable MySQL option
  8730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MySQL" >&5
  8731. $as_echo_n "checking whether to use MySQL... " >&6; }
  8732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_mysql\"" >&5
  8733. $as_echo "\"$with_mysql\"" >&6; }
  8734. case "$with_mysql" in
  8735. "no") USE_MYSQL= ;;
  8736. "yes") USE_MYSQL="1" ;;
  8737. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  8738. esac
  8739. MYSQLINCPATH=
  8740. MYSQLLIBPATH=
  8741. MYSQLLIB=
  8742. if test -n "$USE_MYSQL"; then
  8743. # With MySQL includes directory
  8744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of MySQL includes" >&5
  8745. $as_echo_n "checking for location of MySQL includes... " >&6; }
  8746. case "$with_mysql_includes" in
  8747. y | ye | yes | n | no)
  8748. as_fn_error $? "*** You must supply a directory to --with-mysql-includes." "$LINENO" 5
  8749. ;;
  8750. esac
  8751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mysql_includes" >&5
  8752. $as_echo "$with_mysql_includes" >&6; }
  8753. if test -n "$with_mysql_includes" ; then
  8754. for dir in $with_mysql_includes; do
  8755. if test -d "$dir"; then
  8756. MYSQLINCPATH="$MYSQLINCPATH -I$dir"
  8757. else
  8758. as_fn_error $? "*** MySQL includes directory $dir does not exist." "$LINENO" 5
  8759. fi
  8760. done
  8761. fi
  8762. ac_save_cppflags="$CPPFLAGS"
  8763. CPPFLAGS="$MYSQLINCPATH $CPPFLAGS"
  8764. for ac_header in mysql.h
  8765. do :
  8766. ac_fn_c_check_header_mongrel "$LINENO" "mysql.h" "ac_cv_header_mysql_h" "$ac_includes_default"
  8767. if test "x$ac_cv_header_mysql_h" = xyes; then :
  8768. cat >>confdefs.h <<_ACEOF
  8769. #define HAVE_MYSQL_H 1
  8770. _ACEOF
  8771. else
  8772. as_fn_error $? "*** Unable to locate MySQL includes." "$LINENO" 5
  8773. fi
  8774. done
  8775. CPPFLAGS=$ac_save_cppflags
  8776. fi # $USE_MYSQL
  8777. if test -n "$USE_MYSQL"; then
  8778. # With MySQL library directory
  8779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of MySQL library" >&5
  8780. $as_echo_n "checking for location of MySQL library... " >&6; }
  8781. case "$with_mysql_libs" in
  8782. y | ye | yes | n | no)
  8783. as_fn_error $? "*** You must supply a directory to --with-mysql-libs." "$LINENO" 5
  8784. ;;
  8785. esac
  8786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mysql_libs" >&5
  8787. $as_echo "$with_mysql_libs" >&6; }
  8788. if test -n "$with_mysql_libs"; then
  8789. for dir in $with_mysql_libs; do
  8790. if test -d "$dir"; then
  8791. MYSQLLIBPATH="$MYSQLLIBPATH -L$dir"
  8792. else
  8793. as_fn_error $? "*** MySQL library directory $dir does not exist." "$LINENO" 5
  8794. fi
  8795. done
  8796. fi
  8797. ac_save_ldflags="$LDFLAGS"
  8798. LDFLAGS="$MYSQLLIBPATH $LDFLAGS"
  8799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_query in -lmysqlclient" >&5
  8800. $as_echo_n "checking for mysql_query in -lmysqlclient... " >&6; }
  8801. ac_check_lib_save_LIBS=$LIBS
  8802. LIBS="-lmysqlclient $LIBS"
  8803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8804. /* end confdefs.h. */
  8805. /* Override any GCC internal prototype to avoid an error.
  8806. Use char because int might match the return type of a GCC
  8807. builtin and then its argument prototype would still apply. */
  8808. #ifdef __cplusplus
  8809. extern "C"
  8810. #endif
  8811. char mysql_query ();
  8812. int
  8813. main ()
  8814. {
  8815. return mysql_query ();
  8816. ;
  8817. return 0;
  8818. }
  8819. _ACEOF
  8820. if ac_fn_c_try_link "$LINENO"; then :
  8821. ac_cv_lib_mysqlclient_mysql_query=yes
  8822. else
  8823. ac_cv_lib_mysqlclient_mysql_query=no
  8824. fi
  8825. rm -f core conftest.err conftest.$ac_objext \
  8826. conftest$ac_exeext conftest.$ac_ext
  8827. LIBS=$ac_check_lib_save_LIBS
  8828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_query" >&5
  8829. $as_echo "$ac_cv_lib_mysqlclient_mysql_query" >&6; }
  8830. if test "x$ac_cv_lib_mysqlclient_mysql_query" = xyes; then :
  8831. MYSQLLIB="$MYSQLLIB -lmysqlclient "
  8832. else
  8833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_query in -lmysqlclient" >&5
  8834. $as_echo_n "checking for mysql_query in -lmysqlclient... " >&6; }
  8835. ac_check_lib_save_LIBS=$LIBS
  8836. LIBS="-lmysqlclient $MATHLIB $LIBS"
  8837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8838. /* end confdefs.h. */
  8839. /* Override any GCC internal prototype to avoid an error.
  8840. Use char because int might match the return type of a GCC
  8841. builtin and then its argument prototype would still apply. */
  8842. #ifdef __cplusplus
  8843. extern "C"
  8844. #endif
  8845. char mysql_query ();
  8846. int
  8847. main ()
  8848. {
  8849. return mysql_query ();
  8850. ;
  8851. return 0;
  8852. }
  8853. _ACEOF
  8854. if ac_fn_c_try_link "$LINENO"; then :
  8855. ac_cv_lib_mysqlclient_mysql_query=yes
  8856. else
  8857. ac_cv_lib_mysqlclient_mysql_query=no
  8858. fi
  8859. rm -f core conftest.err conftest.$ac_objext \
  8860. conftest$ac_exeext conftest.$ac_ext
  8861. LIBS=$ac_check_lib_save_LIBS
  8862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_query" >&5
  8863. $as_echo "$ac_cv_lib_mysqlclient_mysql_query" >&6; }
  8864. if test "x$ac_cv_lib_mysqlclient_mysql_query" = xyes; then :
  8865. MYSQLLIB="$MYSQLLIB -lmysqlclient $MATHLIB"
  8866. else
  8867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_query in -lmysqlclient" >&5
  8868. $as_echo_n "checking for mysql_query in -lmysqlclient... " >&6; }
  8869. ac_check_lib_save_LIBS=$LIBS
  8870. LIBS="-lmysqlclient $SOCKLIB $LIBS"
  8871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8872. /* end confdefs.h. */
  8873. /* Override any GCC internal prototype to avoid an error.
  8874. Use char because int might match the return type of a GCC
  8875. builtin and then its argument prototype would still apply. */
  8876. #ifdef __cplusplus
  8877. extern "C"
  8878. #endif
  8879. char mysql_query ();
  8880. int
  8881. main ()
  8882. {
  8883. return mysql_query ();
  8884. ;
  8885. return 0;
  8886. }
  8887. _ACEOF
  8888. if ac_fn_c_try_link "$LINENO"; then :
  8889. ac_cv_lib_mysqlclient_mysql_query=yes
  8890. else
  8891. ac_cv_lib_mysqlclient_mysql_query=no
  8892. fi
  8893. rm -f core conftest.err conftest.$ac_objext \
  8894. conftest$ac_exeext conftest.$ac_ext
  8895. LIBS=$ac_check_lib_save_LIBS
  8896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_query" >&5
  8897. $as_echo "$ac_cv_lib_mysqlclient_mysql_query" >&6; }
  8898. if test "x$ac_cv_lib_mysqlclient_mysql_query" = xyes; then :
  8899. MYSQLLIB="$MYSQLLIB -lmysqlclient $SOCKLIB"
  8900. else
  8901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_query in -lmysqlclient" >&5
  8902. $as_echo_n "checking for mysql_query in -lmysqlclient... " >&6; }
  8903. ac_check_lib_save_LIBS=$LIBS
  8904. LIBS="-lmysqlclient $SOCKLIB $MATHLIB $LIBS"
  8905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8906. /* end confdefs.h. */
  8907. /* Override any GCC internal prototype to avoid an error.
  8908. Use char because int might match the return type of a GCC
  8909. builtin and then its argument prototype would still apply. */
  8910. #ifdef __cplusplus
  8911. extern "C"
  8912. #endif
  8913. char mysql_query ();
  8914. int
  8915. main ()
  8916. {
  8917. return mysql_query ();
  8918. ;
  8919. return 0;
  8920. }
  8921. _ACEOF
  8922. if ac_fn_c_try_link "$LINENO"; then :
  8923. ac_cv_lib_mysqlclient_mysql_query=yes
  8924. else
  8925. ac_cv_lib_mysqlclient_mysql_query=no
  8926. fi
  8927. rm -f core conftest.err conftest.$ac_objext \
  8928. conftest$ac_exeext conftest.$ac_ext
  8929. LIBS=$ac_check_lib_save_LIBS
  8930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_query" >&5
  8931. $as_echo "$ac_cv_lib_mysqlclient_mysql_query" >&6; }
  8932. if test "x$ac_cv_lib_mysqlclient_mysql_query" = xyes; then :
  8933. MYSQLLIB="$MYSQLLIB -lmysqlclient $SOCKLIB $MATHLIB"
  8934. else
  8935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_query in -lmysqlclient" >&5
  8936. $as_echo_n "checking for mysql_query in -lmysqlclient... " >&6; }
  8937. ac_check_lib_save_LIBS=$LIBS
  8938. LIBS="-lmysqlclient $ZLIB $LIBS"
  8939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8940. /* end confdefs.h. */
  8941. /* Override any GCC internal prototype to avoid an error.
  8942. Use char because int might match the return type of a GCC
  8943. builtin and then its argument prototype would still apply. */
  8944. #ifdef __cplusplus
  8945. extern "C"
  8946. #endif
  8947. char mysql_query ();
  8948. int
  8949. main ()
  8950. {
  8951. return mysql_query ();
  8952. ;
  8953. return 0;
  8954. }
  8955. _ACEOF
  8956. if ac_fn_c_try_link "$LINENO"; then :
  8957. ac_cv_lib_mysqlclient_mysql_query=yes
  8958. else
  8959. ac_cv_lib_mysqlclient_mysql_query=no
  8960. fi
  8961. rm -f core conftest.err conftest.$ac_objext \
  8962. conftest$ac_exeext conftest.$ac_ext
  8963. LIBS=$ac_check_lib_save_LIBS
  8964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_query" >&5
  8965. $as_echo "$ac_cv_lib_mysqlclient_mysql_query" >&6; }
  8966. if test "x$ac_cv_lib_mysqlclient_mysql_query" = xyes; then :
  8967. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB"
  8968. else
  8969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_query in -lmysqlclient" >&5
  8970. $as_echo_n "checking for mysql_query in -lmysqlclient... " >&6; }
  8971. ac_check_lib_save_LIBS=$LIBS
  8972. LIBS="-lmysqlclient $ZLIB $MATHLIB $LIBS"
  8973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8974. /* end confdefs.h. */
  8975. /* Override any GCC internal prototype to avoid an error.
  8976. Use char because int might match the return type of a GCC
  8977. builtin and then its argument prototype would still apply. */
  8978. #ifdef __cplusplus
  8979. extern "C"
  8980. #endif
  8981. char mysql_query ();
  8982. int
  8983. main ()
  8984. {
  8985. return mysql_query ();
  8986. ;
  8987. return 0;
  8988. }
  8989. _ACEOF
  8990. if ac_fn_c_try_link "$LINENO"; then :
  8991. ac_cv_lib_mysqlclient_mysql_query=yes
  8992. else
  8993. ac_cv_lib_mysqlclient_mysql_query=no
  8994. fi
  8995. rm -f core conftest.err conftest.$ac_objext \
  8996. conftest$ac_exeext conftest.$ac_ext
  8997. LIBS=$ac_check_lib_save_LIBS
  8998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_query" >&5
  8999. $as_echo "$ac_cv_lib_mysqlclient_mysql_query" >&6; }
  9000. if test "x$ac_cv_lib_mysqlclient_mysql_query" = xyes; then :
  9001. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $MATHLIB"
  9002. else
  9003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_query in -lmysqlclient" >&5
  9004. $as_echo_n "checking for mysql_query in -lmysqlclient... " >&6; }
  9005. ac_check_lib_save_LIBS=$LIBS
  9006. LIBS="-lmysqlclient $ZLIB $SOCKLIB $LIBS"
  9007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9008. /* end confdefs.h. */
  9009. /* Override any GCC internal prototype to avoid an error.
  9010. Use char because int might match the return type of a GCC
  9011. builtin and then its argument prototype would still apply. */
  9012. #ifdef __cplusplus
  9013. extern "C"
  9014. #endif
  9015. char mysql_query ();
  9016. int
  9017. main ()
  9018. {
  9019. return mysql_query ();
  9020. ;
  9021. return 0;
  9022. }
  9023. _ACEOF
  9024. if ac_fn_c_try_link "$LINENO"; then :
  9025. ac_cv_lib_mysqlclient_mysql_query=yes
  9026. else
  9027. ac_cv_lib_mysqlclient_mysql_query=no
  9028. fi
  9029. rm -f core conftest.err conftest.$ac_objext \
  9030. conftest$ac_exeext conftest.$ac_ext
  9031. LIBS=$ac_check_lib_save_LIBS
  9032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_query" >&5
  9033. $as_echo "$ac_cv_lib_mysqlclient_mysql_query" >&6; }
  9034. if test "x$ac_cv_lib_mysqlclient_mysql_query" = xyes; then :
  9035. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $SOCKLIB"
  9036. else
  9037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_query in -lmysqlclient" >&5
  9038. $as_echo_n "checking for mysql_query in -lmysqlclient... " >&6; }
  9039. ac_check_lib_save_LIBS=$LIBS
  9040. LIBS="-lmysqlclient $ZLIB $SOCKLIB $MATHLIB $LIBS"
  9041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9042. /* end confdefs.h. */
  9043. /* Override any GCC internal prototype to avoid an error.
  9044. Use char because int might match the return type of a GCC
  9045. builtin and then its argument prototype would still apply. */
  9046. #ifdef __cplusplus
  9047. extern "C"
  9048. #endif
  9049. char mysql_query ();
  9050. int
  9051. main ()
  9052. {
  9053. return mysql_query ();
  9054. ;
  9055. return 0;
  9056. }
  9057. _ACEOF
  9058. if ac_fn_c_try_link "$LINENO"; then :
  9059. ac_cv_lib_mysqlclient_mysql_query=yes
  9060. else
  9061. ac_cv_lib_mysqlclient_mysql_query=no
  9062. fi
  9063. rm -f core conftest.err conftest.$ac_objext \
  9064. conftest$ac_exeext conftest.$ac_ext
  9065. LIBS=$ac_check_lib_save_LIBS
  9066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_query" >&5
  9067. $as_echo "$ac_cv_lib_mysqlclient_mysql_query" >&6; }
  9068. if test "x$ac_cv_lib_mysqlclient_mysql_query" = xyes; then :
  9069. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $SOCKLIB $MATHLIB"
  9070. else
  9071. LDFLAGS=${ac_save_ldflags}
  9072. as_fn_error $? "*** Unable to locate MySQL library." "$LINENO" 5
  9073. fi
  9074. fi
  9075. fi
  9076. fi
  9077. fi
  9078. fi
  9079. fi
  9080. fi
  9081. LDFLAGS=${ac_save_ldflags}
  9082. # Check for libmysqld (for embedded version of the driver)
  9083. # Extract the first word of "mysql_config", so it can be a program name with args.
  9084. set dummy mysql_config; ac_word=$2
  9085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9086. $as_echo_n "checking for $ac_word... " >&6; }
  9087. case $MYSQLD_CONFIG in
  9088. [\\/]* | ?:[\\/]*)
  9089. ac_cv_path_MYSQLD_CONFIG="$MYSQLD_CONFIG" # Let the user override the test with a path.
  9090. ;;
  9091. *)
  9092. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9093. for as_dir in $PATH
  9094. do
  9095. IFS=$as_save_IFS
  9096. test -z "$as_dir" && as_dir=.
  9097. for ac_exec_ext in '' $ac_executable_extensions; do
  9098. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9099. ac_cv_path_MYSQLD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  9100. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9101. break 2
  9102. fi
  9103. done
  9104. done
  9105. IFS=$as_save_IFS
  9106. test -z "$ac_cv_path_MYSQLD_CONFIG" && ac_cv_path_MYSQLD_CONFIG="no"
  9107. ;;
  9108. esac
  9109. MYSQLD_CONFIG=$ac_cv_path_MYSQLD_CONFIG
  9110. if test -n "$MYSQLD_CONFIG"; then
  9111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQLD_CONFIG" >&5
  9112. $as_echo "$MYSQLD_CONFIG" >&6; }
  9113. else
  9114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9115. $as_echo "no" >&6; }
  9116. fi
  9117. if test "$MYSQLD_CONFIG" = "no" ; then
  9118. as_fn_error $? "*** couldn't find mysql_config" "$LINENO" 5
  9119. fi
  9120. if test "$MYSQLD_CONFIG" != "" ; then
  9121. ac_ext=cpp
  9122. ac_cpp='$CXXCPP $CPPFLAGS'
  9123. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9124. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9125. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9126. ac_save_libs="$LIBS"
  9127. MYSQLDLIB=`"$MYSQLD_CONFIG" --libmysqld-libs`
  9128. LIBS="$MYSQLDLIB $LIBS"
  9129. ac_fn_cxx_check_func "$LINENO" "mysql_server_init" "ac_cv_func_mysql_server_init"
  9130. if test "x$ac_cv_func_mysql_server_init" = xyes; then :
  9131. else
  9132. MYSQLDLIB="";
  9133. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libmysqld not found" >&5
  9134. $as_echo "$as_me: WARNING: libmysqld not found" >&2;}
  9135. fi
  9136. LIBS=$ac_save_libs
  9137. ac_ext=c
  9138. ac_cpp='$CPP $CPPFLAGS'
  9139. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9140. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9141. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9142. fi
  9143. fi # $USE_MYSQL
  9144. # Done checking MySQL
  9145. # Enable SQLite option
  9146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SQLite" >&5
  9147. $as_echo_n "checking whether to use SQLite... " >&6; }
  9148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_sqlite\"" >&5
  9149. $as_echo "\"$with_sqlite\"" >&6; }
  9150. case "$with_sqlite" in
  9151. "no") USE_SQLITE= ;;
  9152. "yes") USE_SQLITE="1" ;;
  9153. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  9154. esac
  9155. SQLITEINCPATH=
  9156. SQLITELIBPATH=
  9157. SQLITELIB=
  9158. if test -n "$USE_SQLITE"; then
  9159. # With SQLite includes directory
  9160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of SQLite includes" >&5
  9161. $as_echo_n "checking for location of SQLite includes... " >&6; }
  9162. case "$with_sqlite_includes" in
  9163. y | ye | yes | n | no)
  9164. as_fn_error $? "*** You must supply a directory to --with-sqlite-includes." "$LINENO" 5
  9165. ;;
  9166. esac
  9167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sqlite_includes" >&5
  9168. $as_echo "$with_sqlite_includes" >&6; }
  9169. if test -n "$with_sqlite_includes" ; then
  9170. for dir in $with_sqlite_includes; do
  9171. if test -d "$dir"; then
  9172. SQLITEINCPATH="$SQLITEINCPATH -I$dir"
  9173. else
  9174. as_fn_error $? "*** SQLite includes directory $dir does not exist." "$LINENO" 5
  9175. fi
  9176. done
  9177. fi
  9178. ac_save_cppflags="$CPPFLAGS"
  9179. CPPFLAGS="$SQLITEINCPATH $CPPFLAGS"
  9180. for ac_header in sqlite3.h
  9181. do :
  9182. ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
  9183. if test "x$ac_cv_header_sqlite3_h" = xyes; then :
  9184. cat >>confdefs.h <<_ACEOF
  9185. #define HAVE_SQLITE3_H 1
  9186. _ACEOF
  9187. else
  9188. as_fn_error $? "*** Unable to locate SQLite includes." "$LINENO" 5
  9189. fi
  9190. done
  9191. CPPFLAGS=$ac_save_cppflags
  9192. $as_echo "#define HAVE_SQLITE 1" >>confdefs.h
  9193. fi # $USE_SQLITE
  9194. if test -n "$USE_SQLITE"; then
  9195. # With SQLite library directory
  9196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of SQLite library" >&5
  9197. $as_echo_n "checking for location of SQLite library... " >&6; }
  9198. case "$with_sqlite_libs" in
  9199. y | ye | yes | n | no)
  9200. as_fn_error $? "*** You must supply a directory to --with-sqlite-libs." "$LINENO" 5
  9201. ;;
  9202. esac
  9203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sqlite_libs" >&5
  9204. $as_echo "$with_sqlite_libs" >&6; }
  9205. if test -n "$with_sqlite_libs"; then
  9206. for dir in $with_sqlite_libs; do
  9207. if test -d "$dir"; then
  9208. SQLITELIBPATH="$SQLITELIBPATH -L$dir"
  9209. else
  9210. as_fn_error $? "*** SQLite library directory $dir does not exist." "$LINENO" 5
  9211. fi
  9212. done
  9213. fi
  9214. ac_save_ldflags="$LDFLAGS"
  9215. LDFLAGS="$SQLITELIBPATH $LDFLAGS"
  9216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
  9217. $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
  9218. ac_check_lib_save_LIBS=$LIBS
  9219. LIBS="-lsqlite3 $LIBS"
  9220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9221. /* end confdefs.h. */
  9222. /* Override any GCC internal prototype to avoid an error.
  9223. Use char because int might match the return type of a GCC
  9224. builtin and then its argument prototype would still apply. */
  9225. #ifdef __cplusplus
  9226. extern "C"
  9227. #endif
  9228. char sqlite3_open ();
  9229. int
  9230. main ()
  9231. {
  9232. return sqlite3_open ();
  9233. ;
  9234. return 0;
  9235. }
  9236. _ACEOF
  9237. if ac_fn_c_try_link "$LINENO"; then :
  9238. ac_cv_lib_sqlite3_sqlite3_open=yes
  9239. else
  9240. ac_cv_lib_sqlite3_sqlite3_open=no
  9241. fi
  9242. rm -f core conftest.err conftest.$ac_objext \
  9243. conftest$ac_exeext conftest.$ac_ext
  9244. LIBS=$ac_check_lib_save_LIBS
  9245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  9246. $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  9247. if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
  9248. SQLITELIB="$SQLITELIB -lsqlite3 "
  9249. else
  9250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
  9251. $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
  9252. ac_check_lib_save_LIBS=$LIBS
  9253. LIBS="-lsqlite3 $DLLIB $LIBS"
  9254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9255. /* end confdefs.h. */
  9256. /* Override any GCC internal prototype to avoid an error.
  9257. Use char because int might match the return type of a GCC
  9258. builtin and then its argument prototype would still apply. */
  9259. #ifdef __cplusplus
  9260. extern "C"
  9261. #endif
  9262. char sqlite3_open ();
  9263. int
  9264. main ()
  9265. {
  9266. return sqlite3_open ();
  9267. ;
  9268. return 0;
  9269. }
  9270. _ACEOF
  9271. if ac_fn_c_try_link "$LINENO"; then :
  9272. ac_cv_lib_sqlite3_sqlite3_open=yes
  9273. else
  9274. ac_cv_lib_sqlite3_sqlite3_open=no
  9275. fi
  9276. rm -f core conftest.err conftest.$ac_objext \
  9277. conftest$ac_exeext conftest.$ac_ext
  9278. LIBS=$ac_check_lib_save_LIBS
  9279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  9280. $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  9281. if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
  9282. SQLITELIB="$SQLITELIB -lsqlite3 $DLLIB"
  9283. else
  9284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
  9285. $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
  9286. ac_check_lib_save_LIBS=$LIBS
  9287. LIBS="-lsqlite3 $MATHLIB $LIBS"
  9288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9289. /* end confdefs.h. */
  9290. /* Override any GCC internal prototype to avoid an error.
  9291. Use char because int might match the return type of a GCC
  9292. builtin and then its argument prototype would still apply. */
  9293. #ifdef __cplusplus
  9294. extern "C"
  9295. #endif
  9296. char sqlite3_open ();
  9297. int
  9298. main ()
  9299. {
  9300. return sqlite3_open ();
  9301. ;
  9302. return 0;
  9303. }
  9304. _ACEOF
  9305. if ac_fn_c_try_link "$LINENO"; then :
  9306. ac_cv_lib_sqlite3_sqlite3_open=yes
  9307. else
  9308. ac_cv_lib_sqlite3_sqlite3_open=no
  9309. fi
  9310. rm -f core conftest.err conftest.$ac_objext \
  9311. conftest$ac_exeext conftest.$ac_ext
  9312. LIBS=$ac_check_lib_save_LIBS
  9313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  9314. $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  9315. if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
  9316. SQLITELIB="$SQLITELIB -lsqlite3 $MATHLIB"
  9317. else
  9318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
  9319. $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
  9320. ac_check_lib_save_LIBS=$LIBS
  9321. LIBS="-lsqlite3 $MATHLIB $DLLIB $LIBS"
  9322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9323. /* end confdefs.h. */
  9324. /* Override any GCC internal prototype to avoid an error.
  9325. Use char because int might match the return type of a GCC
  9326. builtin and then its argument prototype would still apply. */
  9327. #ifdef __cplusplus
  9328. extern "C"
  9329. #endif
  9330. char sqlite3_open ();
  9331. int
  9332. main ()
  9333. {
  9334. return sqlite3_open ();
  9335. ;
  9336. return 0;
  9337. }
  9338. _ACEOF
  9339. if ac_fn_c_try_link "$LINENO"; then :
  9340. ac_cv_lib_sqlite3_sqlite3_open=yes
  9341. else
  9342. ac_cv_lib_sqlite3_sqlite3_open=no
  9343. fi
  9344. rm -f core conftest.err conftest.$ac_objext \
  9345. conftest$ac_exeext conftest.$ac_ext
  9346. LIBS=$ac_check_lib_save_LIBS
  9347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  9348. $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  9349. if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
  9350. SQLITELIB="$SQLITELIB -lsqlite3 $MATHLIB $DLLIB"
  9351. else
  9352. LDFLAGS=${ac_save_ldflags}
  9353. as_fn_error $? "*** Unable to locate SQLite library." "$LINENO" 5
  9354. fi
  9355. fi
  9356. fi
  9357. fi
  9358. LDFLAGS=${ac_save_ldflags}
  9359. fi # $USE_SQLITE
  9360. # Done checking SQLite
  9361. # Enable OpenGL option
  9362. OPENGLINC=
  9363. OPENGLLIB=
  9364. OPENGLULIB=
  9365. USE_OPENGL=
  9366. OPENGL_X11=
  9367. OPENGL_AQUA=
  9368. OPENGL_WINDOWS=
  9369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use OpenGL" >&5
  9370. $as_echo_n "checking whether to use OpenGL... " >&6; }
  9371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_opengl\"" >&5
  9372. $as_echo "\"$with_opengl\"" >&6; }
  9373. case "$with_opengl" in
  9374. n|no)
  9375. OPENGL_TYPE=none
  9376. ;;
  9377. y|yes|x|x11|glx)
  9378. OPENGL_TYPE=X11
  9379. USE_OPENGL=1
  9380. OPENGL_X11=1
  9381. ;;
  9382. aqua|mac|osx|macosx|agl)
  9383. OPENGL_TYPE=Aqua
  9384. USE_OPENGL=1
  9385. OPENGL_AQUA=1
  9386. ;;
  9387. win|windows|mswin|wgl)
  9388. OPENGL_TYPE=Windows
  9389. USE_OPENGL=1
  9390. OPENGL_WINDOWS=1
  9391. ;;
  9392. *)
  9393. as_fn_error $? "*** Valid arguments for --with-opengl= are yes,no,x11,aqua,windows." "$LINENO" 5
  9394. ;;
  9395. esac
  9396. if test -n "$USE_OPENGL" ; then
  9397. if test "$OPENGL_X11" = 1 ; then
  9398. # With OpenGL includes directory
  9399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of OpenGL includes" >&5
  9400. $as_echo_n "checking for location of OpenGL includes... " >&6; }
  9401. case "$with_opengl_includes" in
  9402. y | ye | yes | n | no)
  9403. as_fn_error $? "*** You must supply a directory to --with-opengl-includes." "$LINENO" 5
  9404. ;;
  9405. esac
  9406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_opengl_includes" >&5
  9407. $as_echo "$with_opengl_includes" >&6; }
  9408. if test -n "$with_opengl_includes" ; then
  9409. for dir in $with_opengl_includes; do
  9410. if test -d "$dir"; then
  9411. OPENGLINC="$OPENGLINC -I$dir"
  9412. else
  9413. as_fn_error $? "*** OpenGL includes directory $dir does not exist." "$LINENO" 5
  9414. fi
  9415. done
  9416. fi
  9417. ac_save_cppflags="$CPPFLAGS"
  9418. CPPFLAGS="$OPENGLINC $X_CFLAGS $CPPFLAGS"
  9419. for ac_header in GL/gl.h GL/glu.h
  9420. do :
  9421. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9422. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  9423. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  9424. cat >>confdefs.h <<_ACEOF
  9425. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9426. _ACEOF
  9427. else
  9428. as_fn_error $? "*** Unable to locate OpenGL includes." "$LINENO" 5
  9429. fi
  9430. done
  9431. CPPFLAGS=$ac_save_cppflags
  9432. # With OpenGL library directory
  9433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of OpenGL library" >&5
  9434. $as_echo_n "checking for location of OpenGL library... " >&6; }
  9435. case "$with_opengl_libs" in
  9436. y | ye | yes | n | no)
  9437. as_fn_error $? "*** You must supply a directory to --with-opengl-libs." "$LINENO" 5
  9438. ;;
  9439. esac
  9440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_opengl_libs" >&5
  9441. $as_echo "$with_opengl_libs" >&6; }
  9442. if test -n "$with_opengl_libs"; then
  9443. for dir in $with_opengl_libs; do
  9444. if test -d "$dir"; then
  9445. OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
  9446. else
  9447. as_fn_error $? "*** OpenGL library directory $dir does not exist." "$LINENO" 5
  9448. fi
  9449. done
  9450. fi
  9451. ac_save_ldflags="$LDFLAGS"
  9452. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  9453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin in -lGL" >&5
  9454. $as_echo_n "checking for glBegin in -lGL... " >&6; }
  9455. ac_check_lib_save_LIBS=$LIBS
  9456. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
  9457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9458. /* end confdefs.h. */
  9459. /* Override any GCC internal prototype to avoid an error.
  9460. Use char because int might match the return type of a GCC
  9461. builtin and then its argument prototype would still apply. */
  9462. #ifdef __cplusplus
  9463. extern "C"
  9464. #endif
  9465. char glBegin ();
  9466. int
  9467. main ()
  9468. {
  9469. return glBegin ();
  9470. ;
  9471. return 0;
  9472. }
  9473. _ACEOF
  9474. if ac_fn_c_try_link "$LINENO"; then :
  9475. ac_cv_lib_GL_glBegin=yes
  9476. else
  9477. ac_cv_lib_GL_glBegin=no
  9478. fi
  9479. rm -f core conftest.err conftest.$ac_objext \
  9480. conftest$ac_exeext conftest.$ac_ext
  9481. LIBS=$ac_check_lib_save_LIBS
  9482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glBegin" >&5
  9483. $as_echo "$ac_cv_lib_GL_glBegin" >&6; }
  9484. if test "x$ac_cv_lib_GL_glBegin" = xyes; then :
  9485. OPENGLLIB="$OPENGLLIB -lGL "
  9486. else
  9487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin in -lGL" >&5
  9488. $as_echo_n "checking for glBegin in -lGL... " >&6; }
  9489. ac_check_lib_save_LIBS=$LIBS
  9490. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lXext $LIBS"
  9491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9492. /* end confdefs.h. */
  9493. /* Override any GCC internal prototype to avoid an error.
  9494. Use char because int might match the return type of a GCC
  9495. builtin and then its argument prototype would still apply. */
  9496. #ifdef __cplusplus
  9497. extern "C"
  9498. #endif
  9499. char glBegin ();
  9500. int
  9501. main ()
  9502. {
  9503. return glBegin ();
  9504. ;
  9505. return 0;
  9506. }
  9507. _ACEOF
  9508. if ac_fn_c_try_link "$LINENO"; then :
  9509. ac_cv_lib_GL_glBegin=yes
  9510. else
  9511. ac_cv_lib_GL_glBegin=no
  9512. fi
  9513. rm -f core conftest.err conftest.$ac_objext \
  9514. conftest$ac_exeext conftest.$ac_ext
  9515. LIBS=$ac_check_lib_save_LIBS
  9516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glBegin" >&5
  9517. $as_echo "$ac_cv_lib_GL_glBegin" >&6; }
  9518. if test "x$ac_cv_lib_GL_glBegin" = xyes; then :
  9519. OPENGLLIB="$OPENGLLIB -lGL -lXext"
  9520. else
  9521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin in -lGL" >&5
  9522. $as_echo_n "checking for glBegin in -lGL... " >&6; }
  9523. ac_check_lib_save_LIBS=$LIBS
  9524. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread $LIBS"
  9525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9526. /* end confdefs.h. */
  9527. /* Override any GCC internal prototype to avoid an error.
  9528. Use char because int might match the return type of a GCC
  9529. builtin and then its argument prototype would still apply. */
  9530. #ifdef __cplusplus
  9531. extern "C"
  9532. #endif
  9533. char glBegin ();
  9534. int
  9535. main ()
  9536. {
  9537. return glBegin ();
  9538. ;
  9539. return 0;
  9540. }
  9541. _ACEOF
  9542. if ac_fn_c_try_link "$LINENO"; then :
  9543. ac_cv_lib_GL_glBegin=yes
  9544. else
  9545. ac_cv_lib_GL_glBegin=no
  9546. fi
  9547. rm -f core conftest.err conftest.$ac_objext \
  9548. conftest$ac_exeext conftest.$ac_ext
  9549. LIBS=$ac_check_lib_save_LIBS
  9550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glBegin" >&5
  9551. $as_echo "$ac_cv_lib_GL_glBegin" >&6; }
  9552. if test "x$ac_cv_lib_GL_glBegin" = xyes; then :
  9553. OPENGLLIB="$OPENGLLIB -lGL -lpthread"
  9554. else
  9555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin in -lGL" >&5
  9556. $as_echo_n "checking for glBegin in -lGL... " >&6; }
  9557. ac_check_lib_save_LIBS=$LIBS
  9558. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread -lXext $LIBS"
  9559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9560. /* end confdefs.h. */
  9561. /* Override any GCC internal prototype to avoid an error.
  9562. Use char because int might match the return type of a GCC
  9563. builtin and then its argument prototype would still apply. */
  9564. #ifdef __cplusplus
  9565. extern "C"
  9566. #endif
  9567. char glBegin ();
  9568. int
  9569. main ()
  9570. {
  9571. return glBegin ();
  9572. ;
  9573. return 0;
  9574. }
  9575. _ACEOF
  9576. if ac_fn_c_try_link "$LINENO"; then :
  9577. ac_cv_lib_GL_glBegin=yes
  9578. else
  9579. ac_cv_lib_GL_glBegin=no
  9580. fi
  9581. rm -f core conftest.err conftest.$ac_objext \
  9582. conftest$ac_exeext conftest.$ac_ext
  9583. LIBS=$ac_check_lib_save_LIBS
  9584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glBegin" >&5
  9585. $as_echo "$ac_cv_lib_GL_glBegin" >&6; }
  9586. if test "x$ac_cv_lib_GL_glBegin" = xyes; then :
  9587. OPENGLLIB="$OPENGLLIB -lGL -lpthread -lXext"
  9588. else
  9589. LDFLAGS=${ac_save_ldflags}
  9590. as_fn_error $? "*** Unable to locate OpenGL library." "$LINENO" 5
  9591. fi
  9592. fi
  9593. fi
  9594. fi
  9595. LDFLAGS=${ac_save_ldflags}
  9596. ac_save_ldflags="$LDFLAGS"
  9597. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  9598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluBeginCurve in -lGLU" >&5
  9599. $as_echo_n "checking for gluBeginCurve in -lGLU... " >&6; }
  9600. ac_check_lib_save_LIBS=$LIBS
  9601. LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
  9602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9603. /* end confdefs.h. */
  9604. /* Override any GCC internal prototype to avoid an error.
  9605. Use char because int might match the return type of a GCC
  9606. builtin and then its argument prototype would still apply. */
  9607. #ifdef __cplusplus
  9608. extern "C"
  9609. #endif
  9610. char gluBeginCurve ();
  9611. int
  9612. main ()
  9613. {
  9614. return gluBeginCurve ();
  9615. ;
  9616. return 0;
  9617. }
  9618. _ACEOF
  9619. if ac_fn_c_try_link "$LINENO"; then :
  9620. ac_cv_lib_GLU_gluBeginCurve=yes
  9621. else
  9622. ac_cv_lib_GLU_gluBeginCurve=no
  9623. fi
  9624. rm -f core conftest.err conftest.$ac_objext \
  9625. conftest$ac_exeext conftest.$ac_ext
  9626. LIBS=$ac_check_lib_save_LIBS
  9627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluBeginCurve" >&5
  9628. $as_echo "$ac_cv_lib_GLU_gluBeginCurve" >&6; }
  9629. if test "x$ac_cv_lib_GLU_gluBeginCurve" = xyes; then :
  9630. OPENGLULIB="$OPENGLULIB -lGLU "
  9631. else
  9632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluBeginCurve in -lGLU" >&5
  9633. $as_echo_n "checking for gluBeginCurve in -lGLU... " >&6; }
  9634. ac_check_lib_save_LIBS=$LIBS
  9635. LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lstdc++ $LIBS"
  9636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9637. /* end confdefs.h. */
  9638. /* Override any GCC internal prototype to avoid an error.
  9639. Use char because int might match the return type of a GCC
  9640. builtin and then its argument prototype would still apply. */
  9641. #ifdef __cplusplus
  9642. extern "C"
  9643. #endif
  9644. char gluBeginCurve ();
  9645. int
  9646. main ()
  9647. {
  9648. return gluBeginCurve ();
  9649. ;
  9650. return 0;
  9651. }
  9652. _ACEOF
  9653. if ac_fn_c_try_link "$LINENO"; then :
  9654. ac_cv_lib_GLU_gluBeginCurve=yes
  9655. else
  9656. ac_cv_lib_GLU_gluBeginCurve=no
  9657. fi
  9658. rm -f core conftest.err conftest.$ac_objext \
  9659. conftest$ac_exeext conftest.$ac_ext
  9660. LIBS=$ac_check_lib_save_LIBS
  9661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluBeginCurve" >&5
  9662. $as_echo "$ac_cv_lib_GLU_gluBeginCurve" >&6; }
  9663. if test "x$ac_cv_lib_GLU_gluBeginCurve" = xyes; then :
  9664. OPENGLULIB="$OPENGLULIB -lGLU -lstdc++"
  9665. else
  9666. LDFLAGS=${ac_save_ldflags}
  9667. as_fn_error $? "*** Unable to locate GLU library." "$LINENO" 5
  9668. fi
  9669. fi
  9670. LDFLAGS=${ac_save_ldflags}
  9671. OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
  9672. OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
  9673. ac_save_libs="$LIBS"
  9674. ac_save_ldflags="$LDFLAGS"
  9675. LIBS=" $OPENGLLIB $LIBS"
  9676. LDFLAGS=" $LDFLAGS"
  9677. ac_fn_c_check_func "$LINENO" "glXCreatePbuffer" "ac_cv_func_glXCreatePbuffer"
  9678. if test "x$ac_cv_func_glXCreatePbuffer" = xyes; then :
  9679. $as_echo "#define HAVE_PBUFFERS 1" >>confdefs.h
  9680. else
  9681. as_fn_error $? "*** Unable to locate glXCreatePbuffer." "$LINENO" 5
  9682. fi
  9683. LIBS=${ac_save_libs}
  9684. LDFLAGS=${ac_save_ldflags}
  9685. ac_save_libs="$LIBS"
  9686. ac_save_ldflags="$LDFLAGS"
  9687. LIBS=" $OPENGLLIB $LIBS"
  9688. LDFLAGS=" $LDFLAGS"
  9689. ac_fn_c_check_func "$LINENO" "glXCreateGLXPixmap" "ac_cv_func_glXCreateGLXPixmap"
  9690. if test "x$ac_cv_func_glXCreateGLXPixmap" = xyes; then :
  9691. $as_echo "#define HAVE_PIXMAPS 1" >>confdefs.h
  9692. else
  9693. as_fn_error $? "*** Unable to locate glXCreateGLXPixmap." "$LINENO" 5
  9694. fi
  9695. LIBS=${ac_save_libs}
  9696. LDFLAGS=${ac_save_ldflags}
  9697. $as_echo "#define OPENGL_X11 1" >>confdefs.h
  9698. fi # $OPENGL_X11
  9699. if test "$OPENGL_AQUA" = 1 ; then
  9700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of OpenGL framework" >&5
  9701. $as_echo_n "checking for location of OpenGL framework... " >&6; }
  9702. case "$with_opengl_framework" in
  9703. y | ye | yes | n | no)
  9704. as_fn_error $? "*** You must supply a directory to --with-opengl-framework." "$LINENO" 5
  9705. ;;
  9706. esac
  9707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_opengl_framework" >&5
  9708. $as_echo "$with_opengl_framework" >&6; }
  9709. if test -n "$with_opengl_framework"; then
  9710. if test -d $with_opengl_framework; then
  9711. OPENGLPATH="$OPENGLPATH -F$with_opengl_framework"
  9712. else
  9713. as_fn_error $? "*** OpenGL framework directory $dir does not exist." "$LINENO" 5
  9714. fi
  9715. fi
  9716. ac_save_cppflags="$CPPFLAGS"
  9717. CPPFLAGS="$OPENGLPATH $CPPFLAGS"
  9718. for ac_header in OpenGL/gl.h OpenGL/glu.h
  9719. do :
  9720. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9721. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  9722. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  9723. cat >>confdefs.h <<_ACEOF
  9724. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9725. _ACEOF
  9726. else
  9727. as_fn_error $? "*** Unable to locate OpenGL includes." "$LINENO" 5
  9728. fi
  9729. done
  9730. CPPFLAGS=$ac_save_cppflags
  9731. ac_save_libs="$LIBS"
  9732. ac_save_ldflags="$LDFLAGS"
  9733. LIBS="-framework OpenGL -framework AGL -framework ApplicationServices $LIBS"
  9734. LDFLAGS="$OPENGLPATH $LDFLAGS"
  9735. ac_fn_c_check_func "$LINENO" "glBegin" "ac_cv_func_glBegin"
  9736. if test "x$ac_cv_func_glBegin" = xyes; then :
  9737. OPENGLLIB="$OPENGLLIB -framework OpenGL -framework AGL -framework ApplicationServices"
  9738. else
  9739. as_fn_error $? "*** Unable to locate OpenGL library." "$LINENO" 5
  9740. fi
  9741. LIBS=${ac_save_libs}
  9742. LDFLAGS=${ac_save_ldflags}
  9743. ac_save_libs="$LIBS"
  9744. ac_save_ldflags="$LDFLAGS"
  9745. LIBS=" $OPENGLLIB $LIBS"
  9746. LDFLAGS="$OPENGLPATH $LDFLAGS"
  9747. ac_fn_c_check_func "$LINENO" "gluBeginCurve" "ac_cv_func_gluBeginCurve"
  9748. if test "x$ac_cv_func_gluBeginCurve" = xyes; then :
  9749. OPENGLLIB="$OPENGLLIB "
  9750. else
  9751. as_fn_error $? "*** Unable to locate GLU library." "$LINENO" 5
  9752. fi
  9753. LIBS=${ac_save_libs}
  9754. LDFLAGS=${ac_save_ldflags}
  9755. OPENGLINC="$OPENGLPATH"
  9756. OPENGLLIBPATH="$OPENGLPATH"
  9757. $as_echo "#define OPENGL_AQUA 1" >>confdefs.h
  9758. fi # $OPENGL_AQUA
  9759. if test "$OPENGL_WINDOWS" = 1 ; then
  9760. # With OpenGL includes directory
  9761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of OpenGL includes" >&5
  9762. $as_echo_n "checking for location of OpenGL includes... " >&6; }
  9763. case "$with_opengl_includes" in
  9764. y | ye | yes | n | no)
  9765. as_fn_error $? "*** You must supply a directory to --with-opengl-includes." "$LINENO" 5
  9766. ;;
  9767. esac
  9768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_opengl_includes" >&5
  9769. $as_echo "$with_opengl_includes" >&6; }
  9770. if test -n "$with_opengl_includes" ; then
  9771. for dir in $with_opengl_includes; do
  9772. if test -d "$dir"; then
  9773. OPENGLINC="$OPENGLINC -I$dir"
  9774. else
  9775. as_fn_error $? "*** OpenGL includes directory $dir does not exist." "$LINENO" 5
  9776. fi
  9777. done
  9778. fi
  9779. ac_save_cppflags="$CPPFLAGS"
  9780. CPPFLAGS="$OPENGLINC $CPPFLAGS"
  9781. for ac_header in GL/gl.h GL/glu.h
  9782. do :
  9783. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9784. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  9785. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  9786. cat >>confdefs.h <<_ACEOF
  9787. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9788. _ACEOF
  9789. else
  9790. as_fn_error $? "*** Unable to locate OpenGL includes." "$LINENO" 5
  9791. fi
  9792. done
  9793. CPPFLAGS=$ac_save_cppflags
  9794. # With OpenGL library directory
  9795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of OpenGL library" >&5
  9796. $as_echo_n "checking for location of OpenGL library... " >&6; }
  9797. case "$with_opengl_libs" in
  9798. y | ye | yes | n | no)
  9799. as_fn_error $? "*** You must supply a directory to --with-opengl-libs." "$LINENO" 5
  9800. ;;
  9801. esac
  9802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_opengl_libs" >&5
  9803. $as_echo "$with_opengl_libs" >&6; }
  9804. if test -n "$with_opengl_libs"; then
  9805. for dir in $with_opengl_libs; do
  9806. if test -d "$dir"; then
  9807. OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
  9808. else
  9809. as_fn_error $? "*** OpenGL library directory $dir does not exist." "$LINENO" 5
  9810. fi
  9811. done
  9812. fi
  9813. ac_save_cflags="$CFLAGS"
  9814. CFLAGS="$CFLAGS $OPENGLINC"
  9815. ac_save_ldflags="$LDFLAGS"
  9816. ac_save_libs="$LIBS"
  9817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5
  9818. $as_echo_n "checking for OpenGL library... " >&6; }
  9819. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  9820. LIBS="-lopengl32 "
  9821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9822. /* end confdefs.h. */
  9823. #include <GL/gl.h>
  9824. int
  9825. main ()
  9826. {
  9827. glEnd();
  9828. ;
  9829. return 0;
  9830. }
  9831. _ACEOF
  9832. if ac_fn_c_try_link "$LINENO"; then :
  9833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  9834. $as_echo "found" >&6; }
  9835. OPENGLLIB="$OPENGLLIB -lopengl32 "
  9836. else
  9837. as_fn_error $? "*** Unable to locate OpenGL library." "$LINENO" 5
  9838. fi
  9839. rm -f core conftest.err conftest.$ac_objext \
  9840. conftest$ac_exeext conftest.$ac_ext
  9841. LIBS=${ac_save_libs}
  9842. LDFLAGS=${ac_save_ldflags}
  9843. ac_save_ldflags="$LDFLAGS"
  9844. ac_save_libs="$LIBS"
  9845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLU library" >&5
  9846. $as_echo_n "checking for GLU library... " >&6; }
  9847. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  9848. LIBS="-lglu32 $OPENGLLIB "
  9849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9850. /* end confdefs.h. */
  9851. #include <GL/glu.h>
  9852. int
  9853. main ()
  9854. {
  9855. gluNewQuadric();
  9856. ;
  9857. return 0;
  9858. }
  9859. _ACEOF
  9860. if ac_fn_c_try_link "$LINENO"; then :
  9861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  9862. $as_echo "found" >&6; }
  9863. OPENGLULIB="$OPENGLULIB -lglu32 "
  9864. else
  9865. as_fn_error $? "*** Unable to locate GLU library." "$LINENO" 5
  9866. fi
  9867. rm -f core conftest.err conftest.$ac_objext \
  9868. conftest$ac_exeext conftest.$ac_ext
  9869. LIBS=${ac_save_libs}
  9870. LDFLAGS=${ac_save_ldflags}
  9871. CFLAGS="${ac_save_cflags}"
  9872. OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
  9873. OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
  9874. $as_echo "#define OPENGL_WINDOWS 1" >>confdefs.h
  9875. fi # $OPENGL_WINDOWS
  9876. fi # $USE_OPENGL
  9877. # Done checking OpenGL
  9878. # Enable ODBC option
  9879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ODBC" >&5
  9880. $as_echo_n "checking whether to use ODBC... " >&6; }
  9881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_odbc\"" >&5
  9882. $as_echo "\"$with_odbc\"" >&6; }
  9883. case "$with_odbc" in
  9884. "no") USE_ODBC= ;;
  9885. "yes") USE_ODBC="1" ;;
  9886. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  9887. esac
  9888. ODBCINC=
  9889. ODBCLIB=
  9890. if test -n "$USE_ODBC"; then
  9891. # With ODBC includes directory
  9892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of ODBC includes" >&5
  9893. $as_echo_n "checking for location of ODBC includes... " >&6; }
  9894. case "$with_odbc_includes" in
  9895. y | ye | yes | n | no)
  9896. as_fn_error $? "*** You must supply a directory to --with-odbc-includes." "$LINENO" 5
  9897. ;;
  9898. esac
  9899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_odbc_includes" >&5
  9900. $as_echo "$with_odbc_includes" >&6; }
  9901. if test -n "$with_odbc_includes" ; then
  9902. for dir in $with_odbc_includes; do
  9903. if test -d "$dir"; then
  9904. ODBCINC="$ODBCINC -I$dir"
  9905. else
  9906. as_fn_error $? "*** ODBC includes directory $dir does not exist." "$LINENO" 5
  9907. fi
  9908. done
  9909. fi
  9910. ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
  9911. if test "x$ac_cv_header_windows_h" = xyes; then :
  9912. $as_echo "#define HAVE_WINDOWS_H 1" >>confdefs.h
  9913. fi
  9914. ac_save_cppflags="$CPPFLAGS"
  9915. CPPFLAGS="$ODBCINC $CPPFLAGS"
  9916. ac_fn_c_check_header_compile "$LINENO" "sql.h" "ac_cv_header_sql_h" "#if defined(HAVE_WINDOWS_H)
  9917. # include <windows.h>
  9918. #endif
  9919. "
  9920. if test "x$ac_cv_header_sql_h" = xyes; then :
  9921. $as_echo "#define HAVE_SQL_H 1" >>confdefs.h
  9922. else
  9923. as_fn_error $? "*** Unable to locate <sql.h>." "$LINENO" 5
  9924. fi
  9925. CPPFLAGS=$ac_save_cppflags
  9926. # With ODBC library directory
  9927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of ODBC library" >&5
  9928. $as_echo_n "checking for location of ODBC library... " >&6; }
  9929. case "$with_odbc_libs" in
  9930. y | ye | yes | n | no)
  9931. as_fn_error $? "*** You must supply a directory to --with-odbc-libs." "$LINENO" 5
  9932. ;;
  9933. esac
  9934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_odbc_libs" >&5
  9935. $as_echo "$with_odbc_libs" >&6; }
  9936. if test -n "$with_odbc_libs"; then
  9937. for dir in $with_odbc_libs; do
  9938. if test -d "$dir"; then
  9939. ODBCLIB="$ODBCLIB -L$dir"
  9940. else
  9941. as_fn_error $? "*** ODBC library directory $dir does not exist." "$LINENO" 5
  9942. fi
  9943. done
  9944. fi
  9945. ac_save_ldflags="$LDFLAGS"
  9946. LDFLAGS="$ODBCLIB $LDFLAGS"
  9947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLConnect in -lodbc" >&5
  9948. $as_echo_n "checking for SQLConnect in -lodbc... " >&6; }
  9949. ac_check_lib_save_LIBS=$LIBS
  9950. LIBS="-lodbc $ICONVLIB $LIBS"
  9951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9952. /* end confdefs.h. */
  9953. /* Override any GCC internal prototype to avoid an error.
  9954. Use char because int might match the return type of a GCC
  9955. builtin and then its argument prototype would still apply. */
  9956. #ifdef __cplusplus
  9957. extern "C"
  9958. #endif
  9959. char SQLConnect ();
  9960. int
  9961. main ()
  9962. {
  9963. return SQLConnect ();
  9964. ;
  9965. return 0;
  9966. }
  9967. _ACEOF
  9968. if ac_fn_c_try_link "$LINENO"; then :
  9969. ac_cv_lib_odbc_SQLConnect=yes
  9970. else
  9971. ac_cv_lib_odbc_SQLConnect=no
  9972. fi
  9973. rm -f core conftest.err conftest.$ac_objext \
  9974. conftest$ac_exeext conftest.$ac_ext
  9975. LIBS=$ac_check_lib_save_LIBS
  9976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLConnect" >&5
  9977. $as_echo "$ac_cv_lib_odbc_SQLConnect" >&6; }
  9978. if test "x$ac_cv_lib_odbc_SQLConnect" = xyes; then :
  9979. ODBCLIB="$ODBCLIB -lodbc "
  9980. else
  9981. LDFLAGS=${ac_save_ldflags}
  9982. ac_save_ldflags="$LDFLAGS"
  9983. LDFLAGS="$ODBCLIB $LDFLAGS"
  9984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLConnect in -liodbc" >&5
  9985. $as_echo_n "checking for SQLConnect in -liodbc... " >&6; }
  9986. ac_check_lib_save_LIBS=$LIBS
  9987. LIBS="-liodbc $LIBS"
  9988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9989. /* end confdefs.h. */
  9990. /* Override any GCC internal prototype to avoid an error.
  9991. Use char because int might match the return type of a GCC
  9992. builtin and then its argument prototype would still apply. */
  9993. #ifdef __cplusplus
  9994. extern "C"
  9995. #endif
  9996. char SQLConnect ();
  9997. int
  9998. main ()
  9999. {
  10000. return SQLConnect ();
  10001. ;
  10002. return 0;
  10003. }
  10004. _ACEOF
  10005. if ac_fn_c_try_link "$LINENO"; then :
  10006. ac_cv_lib_iodbc_SQLConnect=yes
  10007. else
  10008. ac_cv_lib_iodbc_SQLConnect=no
  10009. fi
  10010. rm -f core conftest.err conftest.$ac_objext \
  10011. conftest$ac_exeext conftest.$ac_ext
  10012. LIBS=$ac_check_lib_save_LIBS
  10013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iodbc_SQLConnect" >&5
  10014. $as_echo "$ac_cv_lib_iodbc_SQLConnect" >&6; }
  10015. if test "x$ac_cv_lib_iodbc_SQLConnect" = xyes; then :
  10016. ODBCLIB="$ODBCLIB -liodbc "
  10017. else
  10018. LDFLAGS=${ac_save_ldflags}
  10019. ac_save_cflags="$CFLAGS"
  10020. CFLAGS="$CFLAGS $ODBCINC"
  10021. ac_save_ldflags="$LDFLAGS"
  10022. ac_save_libs="$LIBS"
  10023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC library" >&5
  10024. $as_echo_n "checking for ODBC library... " >&6; }
  10025. LDFLAGS="$ODBCLIB $LDFLAGS"
  10026. LIBS="-lodbc32 "
  10027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10028. /* end confdefs.h. */
  10029. #include <windows.h>
  10030. #include <sql.h>
  10031. int
  10032. main ()
  10033. {
  10034. SQLAllocEnv((SQLHENV *)0);
  10035. ;
  10036. return 0;
  10037. }
  10038. _ACEOF
  10039. if ac_fn_c_try_link "$LINENO"; then :
  10040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  10041. $as_echo "found" >&6; }
  10042. ODBCLIB="$ODBCLIB -lodbc32 "
  10043. else
  10044. as_fn_error $? "*** Unable to locate ODBC library." "$LINENO" 5
  10045. fi
  10046. rm -f core conftest.err conftest.$ac_objext \
  10047. conftest$ac_exeext conftest.$ac_ext
  10048. LIBS=${ac_save_libs}
  10049. LDFLAGS=${ac_save_ldflags}
  10050. CFLAGS="${ac_save_cflags}"
  10051. fi
  10052. LDFLAGS=${ac_save_ldflags}
  10053. fi
  10054. LDFLAGS=${ac_save_ldflags}
  10055. fi # $USE_ODBC
  10056. # Done checking ODBC
  10057. # Enable FFTW option
  10058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use FFTW" >&5
  10059. $as_echo_n "checking whether to use FFTW... " >&6; }
  10060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_fftw\"" >&5
  10061. $as_echo "\"$with_fftw\"" >&6; }
  10062. case "$with_fftw" in
  10063. "no") USE_FFTW= ;;
  10064. "yes") USE_FFTW="1" ;;
  10065. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  10066. esac
  10067. FFTWINC=
  10068. FFTWLIB=
  10069. if test -n "$USE_FFTW"; then
  10070. # With FFTW includes directory
  10071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of FFTW includes" >&5
  10072. $as_echo_n "checking for location of FFTW includes... " >&6; }
  10073. case "$with_fftw_includes" in
  10074. y | ye | yes | n | no)
  10075. as_fn_error $? "*** You must supply a directory to --with-fftw-includes." "$LINENO" 5
  10076. ;;
  10077. esac
  10078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_fftw_includes" >&5
  10079. $as_echo "$with_fftw_includes" >&6; }
  10080. if test -n "$with_fftw_includes" ; then
  10081. for dir in $with_fftw_includes; do
  10082. if test -d "$dir"; then
  10083. FFTWINC="$FFTWINC -I$dir"
  10084. else
  10085. as_fn_error $? "*** FFTW includes directory $dir does not exist." "$LINENO" 5
  10086. fi
  10087. done
  10088. fi
  10089. ac_save_cppflags="$CPPFLAGS"
  10090. CPPFLAGS="$FFTWINC $CPPFLAGS"
  10091. for ac_header in fftw3.h
  10092. do :
  10093. ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
  10094. if test "x$ac_cv_header_fftw3_h" = xyes; then :
  10095. cat >>confdefs.h <<_ACEOF
  10096. #define HAVE_FFTW3_H 1
  10097. _ACEOF
  10098. else
  10099. ac_save_cppflags="$CPPFLAGS"
  10100. CPPFLAGS=" $CPPFLAGS"
  10101. for ac_header in fftw.h
  10102. do :
  10103. ac_fn_c_check_header_mongrel "$LINENO" "fftw.h" "ac_cv_header_fftw_h" "$ac_includes_default"
  10104. if test "x$ac_cv_header_fftw_h" = xyes; then :
  10105. cat >>confdefs.h <<_ACEOF
  10106. #define HAVE_FFTW_H 1
  10107. _ACEOF
  10108. else
  10109. ac_save_cppflags="$CPPFLAGS"
  10110. CPPFLAGS=" $CPPFLAGS"
  10111. for ac_header in dfftw.h
  10112. do :
  10113. ac_fn_c_check_header_mongrel "$LINENO" "dfftw.h" "ac_cv_header_dfftw_h" "$ac_includes_default"
  10114. if test "x$ac_cv_header_dfftw_h" = xyes; then :
  10115. cat >>confdefs.h <<_ACEOF
  10116. #define HAVE_DFFTW_H 1
  10117. _ACEOF
  10118. else
  10119. as_fn_error $? "*** Unable to locate FFTW includes." "$LINENO" 5
  10120. fi
  10121. done
  10122. CPPFLAGS=$ac_save_cppflags
  10123. fi
  10124. done
  10125. CPPFLAGS=$ac_save_cppflags
  10126. fi
  10127. done
  10128. CPPFLAGS=$ac_save_cppflags
  10129. # With FFTW library directory
  10130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of FFTW library" >&5
  10131. $as_echo_n "checking for location of FFTW library... " >&6; }
  10132. case "$with_fftw_libs" in
  10133. y | ye | yes | n | no)
  10134. as_fn_error $? "*** You must supply a directory to --with-fftw-libs." "$LINENO" 5
  10135. ;;
  10136. esac
  10137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_fftw_libs" >&5
  10138. $as_echo "$with_fftw_libs" >&6; }
  10139. if test -n "$with_fftw_libs"; then
  10140. for dir in $with_fftw_libs; do
  10141. if test -d "$dir"; then
  10142. FFTWLIB="$FFTWLIB -L$dir"
  10143. else
  10144. as_fn_error $? "*** FFTW library directory $dir does not exist." "$LINENO" 5
  10145. fi
  10146. done
  10147. fi
  10148. ac_save_ldflags="$LDFLAGS"
  10149. LDFLAGS="$FFTWLIB $LDFLAGS"
  10150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
  10151. $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
  10152. ac_check_lib_save_LIBS=$LIBS
  10153. LIBS="-lfftw3 $MATHLIB $LIBS"
  10154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10155. /* end confdefs.h. */
  10156. /* Override any GCC internal prototype to avoid an error.
  10157. Use char because int might match the return type of a GCC
  10158. builtin and then its argument prototype would still apply. */
  10159. #ifdef __cplusplus
  10160. extern "C"
  10161. #endif
  10162. char fftw_execute ();
  10163. int
  10164. main ()
  10165. {
  10166. return fftw_execute ();
  10167. ;
  10168. return 0;
  10169. }
  10170. _ACEOF
  10171. if ac_fn_c_try_link "$LINENO"; then :
  10172. ac_cv_lib_fftw3_fftw_execute=yes
  10173. else
  10174. ac_cv_lib_fftw3_fftw_execute=no
  10175. fi
  10176. rm -f core conftest.err conftest.$ac_objext \
  10177. conftest$ac_exeext conftest.$ac_ext
  10178. LIBS=$ac_check_lib_save_LIBS
  10179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
  10180. $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
  10181. if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
  10182. FFTWLIB="$FFTWLIB -lfftw3 $MATHLIB"
  10183. else
  10184. LDFLAGS=${ac_save_ldflags}
  10185. ac_save_ldflags="$LDFLAGS"
  10186. LDFLAGS="$FFTWLIB $LDFLAGS"
  10187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_one in -lfftw" >&5
  10188. $as_echo_n "checking for fftwnd_one in -lfftw... " >&6; }
  10189. ac_check_lib_save_LIBS=$LIBS
  10190. LIBS="-lfftw $MATHLIB $LIBS"
  10191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10192. /* end confdefs.h. */
  10193. /* Override any GCC internal prototype to avoid an error.
  10194. Use char because int might match the return type of a GCC
  10195. builtin and then its argument prototype would still apply. */
  10196. #ifdef __cplusplus
  10197. extern "C"
  10198. #endif
  10199. char fftwnd_one ();
  10200. int
  10201. main ()
  10202. {
  10203. return fftwnd_one ();
  10204. ;
  10205. return 0;
  10206. }
  10207. _ACEOF
  10208. if ac_fn_c_try_link "$LINENO"; then :
  10209. ac_cv_lib_fftw_fftwnd_one=yes
  10210. else
  10211. ac_cv_lib_fftw_fftwnd_one=no
  10212. fi
  10213. rm -f core conftest.err conftest.$ac_objext \
  10214. conftest$ac_exeext conftest.$ac_ext
  10215. LIBS=$ac_check_lib_save_LIBS
  10216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw_fftwnd_one" >&5
  10217. $as_echo "$ac_cv_lib_fftw_fftwnd_one" >&6; }
  10218. if test "x$ac_cv_lib_fftw_fftwnd_one" = xyes; then :
  10219. FFTWLIB="$FFTWLIB -lfftw $MATHLIB"
  10220. else
  10221. LDFLAGS=${ac_save_ldflags}
  10222. ac_save_ldflags="$LDFLAGS"
  10223. LDFLAGS="$FFTWLIB $LDFLAGS"
  10224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_one in -ldfftw" >&5
  10225. $as_echo_n "checking for fftwnd_one in -ldfftw... " >&6; }
  10226. ac_check_lib_save_LIBS=$LIBS
  10227. LIBS="-ldfftw $MATHLIB $LIBS"
  10228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10229. /* end confdefs.h. */
  10230. /* Override any GCC internal prototype to avoid an error.
  10231. Use char because int might match the return type of a GCC
  10232. builtin and then its argument prototype would still apply. */
  10233. #ifdef __cplusplus
  10234. extern "C"
  10235. #endif
  10236. char fftwnd_one ();
  10237. int
  10238. main ()
  10239. {
  10240. return fftwnd_one ();
  10241. ;
  10242. return 0;
  10243. }
  10244. _ACEOF
  10245. if ac_fn_c_try_link "$LINENO"; then :
  10246. ac_cv_lib_dfftw_fftwnd_one=yes
  10247. else
  10248. ac_cv_lib_dfftw_fftwnd_one=no
  10249. fi
  10250. rm -f core conftest.err conftest.$ac_objext \
  10251. conftest$ac_exeext conftest.$ac_ext
  10252. LIBS=$ac_check_lib_save_LIBS
  10253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dfftw_fftwnd_one" >&5
  10254. $as_echo "$ac_cv_lib_dfftw_fftwnd_one" >&6; }
  10255. if test "x$ac_cv_lib_dfftw_fftwnd_one" = xyes; then :
  10256. FFTWLIB="$FFTWLIB -ldfftw $MATHLIB"
  10257. else
  10258. LDFLAGS=${ac_save_ldflags}
  10259. as_fn_error $? "*** Unable to locate FFTW library." "$LINENO" 5
  10260. fi
  10261. LDFLAGS=${ac_save_ldflags}
  10262. fi
  10263. LDFLAGS=${ac_save_ldflags}
  10264. fi
  10265. LDFLAGS=${ac_save_ldflags}
  10266. fi # $USE_FFTW
  10267. # Done checking FFTW
  10268. # Enable BLAS option
  10269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use BLAS" >&5
  10270. $as_echo_n "checking whether to use BLAS... " >&6; }
  10271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_blas\"" >&5
  10272. $as_echo "\"$with_blas\"" >&6; }
  10273. case "$with_blas" in
  10274. "no") USE_BLAS= ;;
  10275. "yes") USE_BLAS="1" ;;
  10276. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  10277. esac
  10278. BLASLIB=
  10279. BLASINC=
  10280. if test -n "$USE_BLAS"; then
  10281. # With BLAS includes directory
  10282. # BLAS doesn't have includes (FORTRAN library)
  10283. # With BLAS library directory
  10284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of BLAS includes" >&5
  10285. $as_echo_n "checking for location of BLAS includes... " >&6; }
  10286. case "$with_blas_includes" in
  10287. y | ye | yes | n | no)
  10288. as_fn_error $? "*** You must supply a directory to --with-blas-includes." "$LINENO" 5
  10289. ;;
  10290. esac
  10291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_blas_includes" >&5
  10292. $as_echo "$with_blas_includes" >&6; }
  10293. if test -n "$with_blas_includes" ; then
  10294. for dir in $with_blas_includes; do
  10295. if test -d "$dir"; then
  10296. BLASINC="$BLASINC -I$dir"
  10297. else
  10298. as_fn_error $? "*** BLAS includes directory $dir does not exist." "$LINENO" 5
  10299. fi
  10300. done
  10301. fi
  10302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of BLAS library" >&5
  10303. $as_echo_n "checking for location of BLAS library... " >&6; }
  10304. case "$with_blas_libs" in
  10305. y | ye | yes | n | no)
  10306. as_fn_error $? "*** You must supply a directory to --with-blas-libs." "$LINENO" 5
  10307. ;;
  10308. esac
  10309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_blas_libs" >&5
  10310. $as_echo "$with_blas_libs" >&6; }
  10311. if test -n "$with_blas_libs"; then
  10312. for dir in $with_blas_libs; do
  10313. if test -d "$dir"; then
  10314. BLASLIB="$BLASLIB -L$dir"
  10315. else
  10316. as_fn_error $? "*** BLAS library directory $dir does not exist." "$LINENO" 5
  10317. fi
  10318. done
  10319. fi
  10320. # See if cblas.h exists (CBLAS,ATLAS,others)
  10321. save_CPPFLAGS="$CPPFLAGS"
  10322. CPPFLAGS="$BLASINC $CPPFLAGS"
  10323. for ac_header in cblas.h
  10324. do :
  10325. ac_fn_c_check_header_mongrel "$LINENO" "cblas.h" "ac_cv_header_cblas_h" "$ac_includes_default"
  10326. if test "x$ac_cv_header_cblas_h" = xyes; then :
  10327. cat >>confdefs.h <<_ACEOF
  10328. #define HAVE_CBLAS_H 1
  10329. _ACEOF
  10330. fi
  10331. done
  10332. CPPFLAGS="$save_CPPFLAGS"
  10333. ac_save_ldflags="$LDFLAGS"
  10334. LDFLAGS="$BLASLIB $LDFLAGS"
  10335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnrm2_ in -lblas" >&5
  10336. $as_echo_n "checking for dnrm2_ in -lblas... " >&6; }
  10337. ac_check_lib_save_LIBS=$LIBS
  10338. LIBS="-lblas $MATHLIB $LIBS"
  10339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10340. /* end confdefs.h. */
  10341. /* Override any GCC internal prototype to avoid an error.
  10342. Use char because int might match the return type of a GCC
  10343. builtin and then its argument prototype would still apply. */
  10344. #ifdef __cplusplus
  10345. extern "C"
  10346. #endif
  10347. char dnrm2_ ();
  10348. int
  10349. main ()
  10350. {
  10351. return dnrm2_ ();
  10352. ;
  10353. return 0;
  10354. }
  10355. _ACEOF
  10356. if ac_fn_c_try_link "$LINENO"; then :
  10357. ac_cv_lib_blas_dnrm2_=yes
  10358. else
  10359. ac_cv_lib_blas_dnrm2_=no
  10360. fi
  10361. rm -f core conftest.err conftest.$ac_objext \
  10362. conftest$ac_exeext conftest.$ac_ext
  10363. LIBS=$ac_check_lib_save_LIBS
  10364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blas_dnrm2_" >&5
  10365. $as_echo "$ac_cv_lib_blas_dnrm2_" >&6; }
  10366. if test "x$ac_cv_lib_blas_dnrm2_" = xyes; then :
  10367. BLASLIB="$BLASLIB -lblas "
  10368. else
  10369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnrm2_ in -lblas" >&5
  10370. $as_echo_n "checking for dnrm2_ in -lblas... " >&6; }
  10371. ac_check_lib_save_LIBS=$LIBS
  10372. LIBS="-lblas $MATHLIB -lg2c $LIBS"
  10373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10374. /* end confdefs.h. */
  10375. /* Override any GCC internal prototype to avoid an error.
  10376. Use char because int might match the return type of a GCC
  10377. builtin and then its argument prototype would still apply. */
  10378. #ifdef __cplusplus
  10379. extern "C"
  10380. #endif
  10381. char dnrm2_ ();
  10382. int
  10383. main ()
  10384. {
  10385. return dnrm2_ ();
  10386. ;
  10387. return 0;
  10388. }
  10389. _ACEOF
  10390. if ac_fn_c_try_link "$LINENO"; then :
  10391. ac_cv_lib_blas_dnrm2_=yes
  10392. else
  10393. ac_cv_lib_blas_dnrm2_=no
  10394. fi
  10395. rm -f core conftest.err conftest.$ac_objext \
  10396. conftest$ac_exeext conftest.$ac_ext
  10397. LIBS=$ac_check_lib_save_LIBS
  10398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blas_dnrm2_" >&5
  10399. $as_echo "$ac_cv_lib_blas_dnrm2_" >&6; }
  10400. if test "x$ac_cv_lib_blas_dnrm2_" = xyes; then :
  10401. BLASLIB="$BLASLIB -lblas -lg2c"
  10402. else
  10403. LDFLAGS=${ac_save_ldflags}
  10404. as_fn_error $? "*** Unable to locate BLAS library." "$LINENO" 5
  10405. fi
  10406. fi
  10407. LDFLAGS=${ac_save_ldflags}
  10408. blas_ok=no
  10409. # Check for ATLAS
  10410. save_LDFLAGS="$LDFLAGS"
  10411. LDFLAGS="$BLASLIB $LDFLAGS"
  10412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATL_xerbla in -latlas" >&5
  10413. $as_echo_n "checking for ATL_xerbla in -latlas... " >&6; }
  10414. ac_check_lib_save_LIBS=$LIBS
  10415. LIBS="-latlas $LIBS"
  10416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10417. /* end confdefs.h. */
  10418. /* Override any GCC internal prototype to avoid an error.
  10419. Use char because int might match the return type of a GCC
  10420. builtin and then its argument prototype would still apply. */
  10421. #ifdef __cplusplus
  10422. extern "C"
  10423. #endif
  10424. char ATL_xerbla ();
  10425. int
  10426. main ()
  10427. {
  10428. return ATL_xerbla ();
  10429. ;
  10430. return 0;
  10431. }
  10432. _ACEOF
  10433. if ac_fn_c_try_link "$LINENO"; then :
  10434. ac_cv_lib_atlas_ATL_xerbla=yes
  10435. else
  10436. ac_cv_lib_atlas_ATL_xerbla=no
  10437. fi
  10438. rm -f core conftest.err conftest.$ac_objext \
  10439. conftest$ac_exeext conftest.$ac_ext
  10440. LIBS=$ac_check_lib_save_LIBS
  10441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atlas_ATL_xerbla" >&5
  10442. $as_echo "$ac_cv_lib_atlas_ATL_xerbla" >&6; }
  10443. if test "x$ac_cv_lib_atlas_ATL_xerbla" = xyes; then :
  10444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sgemm_ in -lf77blas" >&5
  10445. $as_echo_n "checking for sgemm_ in -lf77blas... " >&6; }
  10446. ac_check_lib_save_LIBS=$LIBS
  10447. LIBS="-lf77blas -latlas $LIBS"
  10448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10449. /* end confdefs.h. */
  10450. /* Override any GCC internal prototype to avoid an error.
  10451. Use char because int might match the return type of a GCC
  10452. builtin and then its argument prototype would still apply. */
  10453. #ifdef __cplusplus
  10454. extern "C"
  10455. #endif
  10456. char sgemm_ ();
  10457. int
  10458. main ()
  10459. {
  10460. return sgemm_ ();
  10461. ;
  10462. return 0;
  10463. }
  10464. _ACEOF
  10465. if ac_fn_c_try_link "$LINENO"; then :
  10466. ac_cv_lib_f77blas_sgemm_=yes
  10467. else
  10468. ac_cv_lib_f77blas_sgemm_=no
  10469. fi
  10470. rm -f core conftest.err conftest.$ac_objext \
  10471. conftest$ac_exeext conftest.$ac_ext
  10472. LIBS=$ac_check_lib_save_LIBS
  10473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_f77blas_sgemm_" >&5
  10474. $as_echo "$ac_cv_lib_f77blas_sgemm_" >&6; }
  10475. if test "x$ac_cv_lib_f77blas_sgemm_" = xyes; then :
  10476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lcblas" >&5
  10477. $as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
  10478. ac_check_lib_save_LIBS=$LIBS
  10479. LIBS="-lcblas -lf77blas -latlas $LIBS"
  10480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10481. /* end confdefs.h. */
  10482. /* Override any GCC internal prototype to avoid an error.
  10483. Use char because int might match the return type of a GCC
  10484. builtin and then its argument prototype would still apply. */
  10485. #ifdef __cplusplus
  10486. extern "C"
  10487. #endif
  10488. char cblas_dgemm ();
  10489. int
  10490. main ()
  10491. {
  10492. return cblas_dgemm ();
  10493. ;
  10494. return 0;
  10495. }
  10496. _ACEOF
  10497. if ac_fn_c_try_link "$LINENO"; then :
  10498. ac_cv_lib_cblas_cblas_dgemm=yes
  10499. else
  10500. ac_cv_lib_cblas_cblas_dgemm=no
  10501. fi
  10502. rm -f core conftest.err conftest.$ac_objext \
  10503. conftest$ac_exeext conftest.$ac_ext
  10504. LIBS=$ac_check_lib_save_LIBS
  10505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
  10506. $as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
  10507. if test "x$ac_cv_lib_cblas_cblas_dgemm" = xyes; then :
  10508. blas_ok=yes; BLASLIB="-lcblas -lf77blas -latlas"
  10509. fi
  10510. fi
  10511. fi
  10512. LDFLAGS="$save_LDFLAGS"
  10513. # Do we have ATLAS?
  10514. if test $blas_ok = yes; then
  10515. $as_echo "#define HAVE_LIBATLAS 1" >>confdefs.h
  10516. fi
  10517. # BLAS in Apple vecLib framework? (Mac OS-X)
  10518. # not dependent on APP build
  10519. #if test -n "$MACOSX_APP"; then
  10520. if test $blas_ok = no; then
  10521. vlib_flags="-framework vecLib"
  10522. save_LIBS="$LIBS"
  10523. LIBS="$vlib_flags $LIBS"
  10524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sgemm in $vlib_flags" >&5
  10525. $as_echo_n "checking for sgemm in $vlib_flags... " >&6; }
  10526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10527. /* end confdefs.h. */
  10528. int
  10529. main ()
  10530. {
  10531. sgemm
  10532. ;
  10533. return 0;
  10534. }
  10535. _ACEOF
  10536. if ac_fn_c_try_link "$LINENO"; then :
  10537. blas_ok=yes; BLASLIB="$vlib_flags"
  10538. else
  10539. BLASLIB=""
  10540. fi
  10541. rm -f core conftest.err conftest.$ac_objext \
  10542. conftest$ac_exeext conftest.$ac_ext
  10543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $blas_ok" >&5
  10544. $as_echo "$blas_ok" >&6; }
  10545. LIBS="$save_LIBS"
  10546. fi
  10547. #fi # $MACOSX_APP
  10548. # BLAS in PhiPACK libraries? (requires generic BLAS, too)
  10549. if test $blas_ok = no; then
  10550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sgemm_ in -lblas" >&5
  10551. $as_echo_n "checking for sgemm_ in -lblas... " >&6; }
  10552. ac_check_lib_save_LIBS=$LIBS
  10553. LIBS="-lblas $LIBS"
  10554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10555. /* end confdefs.h. */
  10556. /* Override any GCC internal prototype to avoid an error.
  10557. Use char because int might match the return type of a GCC
  10558. builtin and then its argument prototype would still apply. */
  10559. #ifdef __cplusplus
  10560. extern "C"
  10561. #endif
  10562. char sgemm_ ();
  10563. int
  10564. main ()
  10565. {
  10566. return sgemm_ ();
  10567. ;
  10568. return 0;
  10569. }
  10570. _ACEOF
  10571. if ac_fn_c_try_link "$LINENO"; then :
  10572. ac_cv_lib_blas_sgemm_=yes
  10573. else
  10574. ac_cv_lib_blas_sgemm_=no
  10575. fi
  10576. rm -f core conftest.err conftest.$ac_objext \
  10577. conftest$ac_exeext conftest.$ac_ext
  10578. LIBS=$ac_check_lib_save_LIBS
  10579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blas_sgemm_" >&5
  10580. $as_echo "$ac_cv_lib_blas_sgemm_" >&6; }
  10581. if test "x$ac_cv_lib_blas_sgemm_" = xyes; then :
  10582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgemm_ in -ldgemm" >&5
  10583. $as_echo_n "checking for dgemm_ in -ldgemm... " >&6; }
  10584. ac_check_lib_save_LIBS=$LIBS
  10585. LIBS="-ldgemm -lblas $LIBS"
  10586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10587. /* end confdefs.h. */
  10588. /* Override any GCC internal prototype to avoid an error.
  10589. Use char because int might match the return type of a GCC
  10590. builtin and then its argument prototype would still apply. */
  10591. #ifdef __cplusplus
  10592. extern "C"
  10593. #endif
  10594. char dgemm_ ();
  10595. int
  10596. main ()
  10597. {
  10598. return dgemm_ ();
  10599. ;
  10600. return 0;
  10601. }
  10602. _ACEOF
  10603. if ac_fn_c_try_link "$LINENO"; then :
  10604. ac_cv_lib_dgemm_dgemm_=yes
  10605. else
  10606. ac_cv_lib_dgemm_dgemm_=no
  10607. fi
  10608. rm -f core conftest.err conftest.$ac_objext \
  10609. conftest$ac_exeext conftest.$ac_ext
  10610. LIBS=$ac_check_lib_save_LIBS
  10611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgemm_dgemm_" >&5
  10612. $as_echo "$ac_cv_lib_dgemm_dgemm_" >&6; }
  10613. if test "x$ac_cv_lib_dgemm_dgemm_" = xyes; then :
  10614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sgemm_ in -lsgemm" >&5
  10615. $as_echo_n "checking for sgemm_ in -lsgemm... " >&6; }
  10616. ac_check_lib_save_LIBS=$LIBS
  10617. LIBS="-lsgemm -lblas $LIBS"
  10618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10619. /* end confdefs.h. */
  10620. /* Override any GCC internal prototype to avoid an error.
  10621. Use char because int might match the return type of a GCC
  10622. builtin and then its argument prototype would still apply. */
  10623. #ifdef __cplusplus
  10624. extern "C"
  10625. #endif
  10626. char sgemm_ ();
  10627. int
  10628. main ()
  10629. {
  10630. return sgemm_ ();
  10631. ;
  10632. return 0;
  10633. }
  10634. _ACEOF
  10635. if ac_fn_c_try_link "$LINENO"; then :
  10636. ac_cv_lib_sgemm_sgemm_=yes
  10637. else
  10638. ac_cv_lib_sgemm_sgemm_=no
  10639. fi
  10640. rm -f core conftest.err conftest.$ac_objext \
  10641. conftest$ac_exeext conftest.$ac_ext
  10642. LIBS=$ac_check_lib_save_LIBS
  10643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sgemm_sgemm_" >&5
  10644. $as_echo "$ac_cv_lib_sgemm_sgemm_" >&6; }
  10645. if test "x$ac_cv_lib_sgemm_sgemm_" = xyes; then :
  10646. blas_ok=yes; BLASLIB="-lsgemm -ldgemm -lblas"
  10647. fi
  10648. fi
  10649. fi
  10650. fi
  10651. # BLAS in Sun Performance library?
  10652. if test $blas_ok = no; then
  10653. if test "x$GCC" != xyes; then # only works with Sun CC
  10654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosp in -lsunmath" >&5
  10655. $as_echo_n "checking for acosp in -lsunmath... " >&6; }
  10656. ac_check_lib_save_LIBS=$LIBS
  10657. LIBS="-lsunmath $LIBS"
  10658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10659. /* end confdefs.h. */
  10660. /* Override any GCC internal prototype to avoid an error.
  10661. Use char because int might match the return type of a GCC
  10662. builtin and then its argument prototype would still apply. */
  10663. #ifdef __cplusplus
  10664. extern "C"
  10665. #endif
  10666. char acosp ();
  10667. int
  10668. main ()
  10669. {
  10670. return acosp ();
  10671. ;
  10672. return 0;
  10673. }
  10674. _ACEOF
  10675. if ac_fn_c_try_link "$LINENO"; then :
  10676. ac_cv_lib_sunmath_acosp=yes
  10677. else
  10678. ac_cv_lib_sunmath_acosp=no
  10679. fi
  10680. rm -f core conftest.err conftest.$ac_objext \
  10681. conftest$ac_exeext conftest.$ac_ext
  10682. LIBS=$ac_check_lib_save_LIBS
  10683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sunmath_acosp" >&5
  10684. $as_echo "$ac_cv_lib_sunmath_acosp" >&6; }
  10685. if test "x$ac_cv_lib_sunmath_acosp" = xyes; then :
  10686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sgemm_ in -lsunperf" >&5
  10687. $as_echo_n "checking for sgemm_ in -lsunperf... " >&6; }
  10688. ac_check_lib_save_LIBS=$LIBS
  10689. LIBS="-lsunperf -lsunmath $LIBS"
  10690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10691. /* end confdefs.h. */
  10692. /* Override any GCC internal prototype to avoid an error.
  10693. Use char because int might match the return type of a GCC
  10694. builtin and then its argument prototype would still apply. */
  10695. #ifdef __cplusplus
  10696. extern "C"
  10697. #endif
  10698. char sgemm_ ();
  10699. int
  10700. main ()
  10701. {
  10702. return sgemm_ ();
  10703. ;
  10704. return 0;
  10705. }
  10706. _ACEOF
  10707. if ac_fn_c_try_link "$LINENO"; then :
  10708. ac_cv_lib_sunperf_sgemm_=yes
  10709. else
  10710. ac_cv_lib_sunperf_sgemm_=no
  10711. fi
  10712. rm -f core conftest.err conftest.$ac_objext \
  10713. conftest$ac_exeext conftest.$ac_ext
  10714. LIBS=$ac_check_lib_save_LIBS
  10715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sunperf_sgemm_" >&5
  10716. $as_echo "$ac_cv_lib_sunperf_sgemm_" >&6; }
  10717. if test "x$ac_cv_lib_sunperf_sgemm_" = xyes; then :
  10718. blas_ok=yes; BLASLIB="-xlic_lib=sunperf -lsunmath"
  10719. fi
  10720. fi
  10721. fi
  10722. fi
  10723. # Generic BLAS library
  10724. if test $blas_ok = no; then
  10725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sgemm_ in -lblas" >&5
  10726. $as_echo_n "checking for sgemm_ in -lblas... " >&6; }
  10727. ac_check_lib_save_LIBS=$LIBS
  10728. LIBS="-lblas $LIBS"
  10729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10730. /* end confdefs.h. */
  10731. /* Override any GCC internal prototype to avoid an error.
  10732. Use char because int might match the return type of a GCC
  10733. builtin and then its argument prototype would still apply. */
  10734. #ifdef __cplusplus
  10735. extern "C"
  10736. #endif
  10737. char sgemm_ ();
  10738. int
  10739. main ()
  10740. {
  10741. return sgemm_ ();
  10742. ;
  10743. return 0;
  10744. }
  10745. _ACEOF
  10746. if ac_fn_c_try_link "$LINENO"; then :
  10747. ac_cv_lib_blas_sgemm_=yes
  10748. else
  10749. ac_cv_lib_blas_sgemm_=no
  10750. fi
  10751. rm -f core conftest.err conftest.$ac_objext \
  10752. conftest$ac_exeext conftest.$ac_ext
  10753. LIBS=$ac_check_lib_save_LIBS
  10754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blas_sgemm_" >&5
  10755. $as_echo "$ac_cv_lib_blas_sgemm_" >&6; }
  10756. if test "x$ac_cv_lib_blas_sgemm_" = xyes; then :
  10757. blas_ok=yes; BLASLIB="-lblas"
  10758. fi
  10759. fi
  10760. if test $blas_ok = yes; then
  10761. $as_echo "#define HAVE_LIBBLAS 1" >>confdefs.h
  10762. fi
  10763. fi # $USE_BLAS
  10764. # Done checking BLAS
  10765. # Enable LAPACK option
  10766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use LAPACK" >&5
  10767. $as_echo_n "checking whether to use LAPACK... " >&6; }
  10768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_lapack\"" >&5
  10769. $as_echo "\"$with_lapack\"" >&6; }
  10770. case "$with_lapack" in
  10771. "no") USE_LAPACK= ;;
  10772. "yes") USE_LAPACK="1" ;;
  10773. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  10774. esac
  10775. LAPACKLIB=
  10776. LAPACKINC=
  10777. # LAPACK is useless without BLAS
  10778. if test -n "$USE_BLAS"; then
  10779. if test -n "$USE_LAPACK"; then
  10780. # With LAPACK includes directory
  10781. # LAPACK doesn't have includes (FORTRAN library)
  10782. # With LAPACK library directory
  10783. lapack_ok=no
  10784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of LAPACK includes" >&5
  10785. $as_echo_n "checking for location of LAPACK includes... " >&6; }
  10786. case "$with_lapack_includes" in
  10787. y | ye | yes | n | no)
  10788. as_fn_error $? "*** You must supply a directory to --with-lapack-includes." "$LINENO" 5
  10789. ;;
  10790. esac
  10791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lapack_includes" >&5
  10792. $as_echo "$with_lapack_includes" >&6; }
  10793. if test -n "$with_lapack_includes" ; then
  10794. for dir in $with_lapack_includes; do
  10795. if test -d "$dir"; then
  10796. LAPACKINC="$LAPACKINC -I$dir"
  10797. else
  10798. as_fn_error $? "*** LAPACK includes directory $dir does not exist." "$LINENO" 5
  10799. fi
  10800. done
  10801. fi
  10802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of LAPACK library" >&5
  10803. $as_echo_n "checking for location of LAPACK library... " >&6; }
  10804. case "$with_lapack_libs" in
  10805. y | ye | yes | n | no)
  10806. as_fn_error $? "*** You must supply a directory to --with-lapack-libs." "$LINENO" 5
  10807. ;;
  10808. esac
  10809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lapack_libs" >&5
  10810. $as_echo "$with_lapack_libs" >&6; }
  10811. if test -n "$with_lapack_libs"; then
  10812. for dir in $with_lapack_libs; do
  10813. if test -d "$dir"; then
  10814. LAPACKLIB="$LAPACKLIB -L$dir"
  10815. else
  10816. as_fn_error $? "*** LAPACK library directory $dir does not exist." "$LINENO" 5
  10817. fi
  10818. done
  10819. fi
  10820. # See if clapack.h exists (ATLAS)
  10821. save_CPPFLAGS="$CPPFLAGS"
  10822. CPPFLAGS="$LAPACKINC $CPPFLAGS"
  10823. for ac_header in clapack.h
  10824. do :
  10825. ac_fn_c_check_header_mongrel "$LINENO" "clapack.h" "ac_cv_header_clapack_h" "$ac_includes_default"
  10826. if test "x$ac_cv_header_clapack_h" = xyes; then :
  10827. cat >>confdefs.h <<_ACEOF
  10828. #define HAVE_CLAPACK_H 1
  10829. _ACEOF
  10830. fi
  10831. done
  10832. CPPFLAGS="$save_CPPFLAGS"
  10833. # LAPACK linked to by default?
  10834. if test lapack_ok=no; then
  10835. save_LIBS="$LIBS"; LIBS="$LIBS $BLASLIB $MATHLIB $FLIBS"
  10836. save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
  10837. ac_fn_c_check_func "$LINENO" "dsegv_" "ac_cv_func_dsegv_"
  10838. if test "x$ac_cv_func_dsegv_" = xyes; then :
  10839. lapack_ok=yes
  10840. fi
  10841. LIBS="$save_LIBS"
  10842. LDFLAGS="$save_LDFLAGS"
  10843. fi
  10844. # Generic LAPACK library?
  10845. if test $lapack_ok = no; then
  10846. save_libs="$LIBS"; LIBS="$BLASLIB $MATHLIB $LIBS"
  10847. save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
  10848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for desgv_ in -llapack" >&5
  10849. $as_echo_n "checking for desgv_ in -llapack... " >&6; }
  10850. ac_check_lib_save_LIBS=$LIBS
  10851. LIBS="-llapack $FLIBS $LIBS"
  10852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10853. /* end confdefs.h. */
  10854. /* Override any GCC internal prototype to avoid an error.
  10855. Use char because int might match the return type of a GCC
  10856. builtin and then its argument prototype would still apply. */
  10857. #ifdef __cplusplus
  10858. extern "C"
  10859. #endif
  10860. char desgv_ ();
  10861. int
  10862. main ()
  10863. {
  10864. return desgv_ ();
  10865. ;
  10866. return 0;
  10867. }
  10868. _ACEOF
  10869. if ac_fn_c_try_link "$LINENO"; then :
  10870. ac_cv_lib_lapack_desgv_=yes
  10871. else
  10872. ac_cv_lib_lapack_desgv_=no
  10873. fi
  10874. rm -f core conftest.err conftest.$ac_objext \
  10875. conftest$ac_exeext conftest.$ac_ext
  10876. LIBS=$ac_check_lib_save_LIBS
  10877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_desgv_" >&5
  10878. $as_echo "$ac_cv_lib_lapack_desgv_" >&6; }
  10879. if test "x$ac_cv_lib_lapack_desgv_" = xyes; then :
  10880. lapack_ok=yes; LAPACKLIB="-llapack"
  10881. fi
  10882. LIBS="$save_LIBS"
  10883. LDFLAGS="$save_LDFLAGS"
  10884. fi
  10885. if test $lapack_ok = no; then
  10886. ac_save_ldflags="$LDFLAGS"
  10887. LDFLAGS="$LAPACKLIB $LDFLAGS"
  10888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgesv_ in -llapack" >&5
  10889. $as_echo_n "checking for dgesv_ in -llapack... " >&6; }
  10890. ac_check_lib_save_LIBS=$LIBS
  10891. LIBS="-llapack $BLASLIB $MATHLIB $LIBS"
  10892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10893. /* end confdefs.h. */
  10894. /* Override any GCC internal prototype to avoid an error.
  10895. Use char because int might match the return type of a GCC
  10896. builtin and then its argument prototype would still apply. */
  10897. #ifdef __cplusplus
  10898. extern "C"
  10899. #endif
  10900. char dgesv_ ();
  10901. int
  10902. main ()
  10903. {
  10904. return dgesv_ ();
  10905. ;
  10906. return 0;
  10907. }
  10908. _ACEOF
  10909. if ac_fn_c_try_link "$LINENO"; then :
  10910. ac_cv_lib_lapack_dgesv_=yes
  10911. else
  10912. ac_cv_lib_lapack_dgesv_=no
  10913. fi
  10914. rm -f core conftest.err conftest.$ac_objext \
  10915. conftest$ac_exeext conftest.$ac_ext
  10916. LIBS=$ac_check_lib_save_LIBS
  10917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_dgesv_" >&5
  10918. $as_echo "$ac_cv_lib_lapack_dgesv_" >&6; }
  10919. if test "x$ac_cv_lib_lapack_dgesv_" = xyes; then :
  10920. LAPACKLIB="$LAPACKLIB -llapack "
  10921. else
  10922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgesv_ in -llapack" >&5
  10923. $as_echo_n "checking for dgesv_ in -llapack... " >&6; }
  10924. ac_check_lib_save_LIBS=$LIBS
  10925. LIBS="-llapack $BLASLIB $MATHLIB -lg2c $LIBS"
  10926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10927. /* end confdefs.h. */
  10928. /* Override any GCC internal prototype to avoid an error.
  10929. Use char because int might match the return type of a GCC
  10930. builtin and then its argument prototype would still apply. */
  10931. #ifdef __cplusplus
  10932. extern "C"
  10933. #endif
  10934. char dgesv_ ();
  10935. int
  10936. main ()
  10937. {
  10938. return dgesv_ ();
  10939. ;
  10940. return 0;
  10941. }
  10942. _ACEOF
  10943. if ac_fn_c_try_link "$LINENO"; then :
  10944. ac_cv_lib_lapack_dgesv_=yes
  10945. else
  10946. ac_cv_lib_lapack_dgesv_=no
  10947. fi
  10948. rm -f core conftest.err conftest.$ac_objext \
  10949. conftest$ac_exeext conftest.$ac_ext
  10950. LIBS=$ac_check_lib_save_LIBS
  10951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_dgesv_" >&5
  10952. $as_echo "$ac_cv_lib_lapack_dgesv_" >&6; }
  10953. if test "x$ac_cv_lib_lapack_dgesv_" = xyes; then :
  10954. LAPACKLIB="$LAPACKLIB -llapack -lg2c"
  10955. else
  10956. LDFLAGS=${ac_save_ldflags}
  10957. as_fn_error $? "*** Unable to locate LAPACK library." "$LINENO" 5
  10958. fi
  10959. fi
  10960. LDFLAGS=${ac_save_ldflags}
  10961. fi
  10962. $as_echo "#define HAVE_LIBLAPACK 1" >>confdefs.h
  10963. fi # $USE_LAPACK
  10964. fi # $USE_BLAS
  10965. # Done checking LAPACK
  10966. # Enable Cairo display driver option
  10967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Cairo" >&5
  10968. $as_echo_n "checking whether to use Cairo... " >&6; }
  10969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_cairo\"" >&5
  10970. $as_echo "\"$with_cairo\"" >&6; }
  10971. case "$with_cairo" in
  10972. "no") USE_CAIRO= ;;
  10973. "yes") USE_CAIRO="1" ;;
  10974. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  10975. esac
  10976. CAIROINC=
  10977. CAIROLIB=
  10978. if test -n "$USE_CAIRO"; then
  10979. cairo="cairo"
  10980. pkgs="cairo-ft cairo-fc cairo-pdf cairo-ps cairo-svg fontconfig"
  10981. if test -n "$USE_X11"; then
  10982. pkgs="$pkgs cairo-xlib cairo-xlib-xrender"
  10983. fi
  10984. for pkg in $pkgs ; do
  10985. if pkg-config --exists $pkg ; then
  10986. cairo="$cairo $pkg"
  10987. fi
  10988. done
  10989. # With Cairo includes directory
  10990. #FIXME: somehow quote dirs with spaces in $cairo ?
  10991. CAIROINC=`pkg-config --cflags $cairo`
  10992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of cairo includes" >&5
  10993. $as_echo_n "checking for location of cairo includes... " >&6; }
  10994. case "$with_cairo_includes" in
  10995. y | ye | yes | n | no)
  10996. as_fn_error $? "*** You must supply a directory to --with-cairo-includes." "$LINENO" 5
  10997. ;;
  10998. esac
  10999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cairo_includes" >&5
  11000. $as_echo "$with_cairo_includes" >&6; }
  11001. if test -n "$with_cairo_includes" ; then
  11002. for dir in $with_cairo_includes; do
  11003. if test -d "$dir"; then
  11004. CAIROINC="$CAIROINC -I$dir"
  11005. else
  11006. as_fn_error $? "*** cairo includes directory $dir does not exist." "$LINENO" 5
  11007. fi
  11008. done
  11009. fi
  11010. ac_save_cppflags="$CPPFLAGS"
  11011. CPPFLAGS="$CAIROINC $CPPFLAGS"
  11012. for ac_header in cairo.h
  11013. do :
  11014. ac_fn_c_check_header_mongrel "$LINENO" "cairo.h" "ac_cv_header_cairo_h" "$ac_includes_default"
  11015. if test "x$ac_cv_header_cairo_h" = xyes; then :
  11016. cat >>confdefs.h <<_ACEOF
  11017. #define HAVE_CAIRO_H 1
  11018. _ACEOF
  11019. else
  11020. as_fn_error $? "*** Unable to locate Cairo includes." "$LINENO" 5
  11021. fi
  11022. done
  11023. CPPFLAGS=$ac_save_cppflags
  11024. # With Cairo library directory
  11025. CAIROLIB=`pkg-config --libs $cairo`
  11026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of cairo library" >&5
  11027. $as_echo_n "checking for location of cairo library... " >&6; }
  11028. case "$with_cairo_libs" in
  11029. y | ye | yes | n | no)
  11030. as_fn_error $? "*** You must supply a directory to --with-cairo-libs." "$LINENO" 5
  11031. ;;
  11032. esac
  11033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cairo_libs" >&5
  11034. $as_echo "$with_cairo_libs" >&6; }
  11035. if test -n "$with_cairo_libs"; then
  11036. for dir in $with_cairo_libs; do
  11037. if test -d "$dir"; then
  11038. CAIROLIB="$CAIROLIB -L$dir"
  11039. else
  11040. as_fn_error $? "*** cairo library directory $dir does not exist." "$LINENO" 5
  11041. fi
  11042. done
  11043. fi
  11044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo linking flags" >&5
  11045. $as_echo_n "checking for cairo linking flags... " >&6; }
  11046. case "$with_cairo_ldflags" in
  11047. y | ye | yes | n | no)
  11048. as_fn_error $? "*** You must supply a directory to --with-cairo-ldflags." "$LINENO" 5
  11049. ;;
  11050. esac
  11051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cairo_ldflags" >&5
  11052. $as_echo "$with_cairo_ldflags" >&6; }
  11053. CAIROLIB="$CAIROLIB $with_cairo_ldflags"
  11054. ac_save_libs="$LIBS"
  11055. ac_save_ldflags="$LDFLAGS"
  11056. LIBS=" $CAIROLIB $LIBS"
  11057. LDFLAGS=" $LDFLAGS"
  11058. ac_fn_c_check_func "$LINENO" "cairo_create" "ac_cv_func_cairo_create"
  11059. if test "x$ac_cv_func_cairo_create" = xyes; then :
  11060. :
  11061. else
  11062. as_fn_error $? "*** Unable to locate cairo_create." "$LINENO" 5
  11063. fi
  11064. LIBS=${ac_save_libs}
  11065. LDFLAGS=${ac_save_ldflags}
  11066. ac_save_libs="$LIBS"
  11067. ac_save_ldflags="$LDFLAGS"
  11068. LIBS=" $CAIROLIB $LIBS"
  11069. LDFLAGS=" $LDFLAGS"
  11070. ac_fn_c_check_func "$LINENO" "cairo_xlib_surface_create_with_xrender_format" "ac_cv_func_cairo_xlib_surface_create_with_xrender_format"
  11071. if test "x$ac_cv_func_cairo_xlib_surface_create_with_xrender_format" = xyes; then :
  11072. CAIRO_HAS_XRENDER=1
  11073. else
  11074. CAIRO_HAS_XRENDER=
  11075. fi
  11076. LIBS=${ac_save_libs}
  11077. LDFLAGS=${ac_save_ldflags}
  11078. ac_save_libs="$LIBS"
  11079. ac_save_ldflags="$LDFLAGS"
  11080. LIBS=" $CAIROLIB $LIBS"
  11081. LDFLAGS=" $LDFLAGS"
  11082. ac_fn_c_check_func "$LINENO" "cairo_xlib_surface_get_xrender_format" "ac_cv_func_cairo_xlib_surface_get_xrender_format"
  11083. if test "x$ac_cv_func_cairo_xlib_surface_get_xrender_format" = xyes; then :
  11084. CAIRO_HAS_XRENDER_SURFACE=1
  11085. else
  11086. CAIRO_HAS_XRENDER_SURFACE=
  11087. fi
  11088. LIBS=${ac_save_libs}
  11089. LDFLAGS=${ac_save_ldflags}
  11090. CAIROLIB="$CAIROLIB $CAIROLDFLAGS"
  11091. fi # $USE_CAIRO
  11092. # Done checking Cairo
  11093. # Enable FreeType option
  11094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use FreeType" >&5
  11095. $as_echo_n "checking whether to use FreeType... " >&6; }
  11096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_freetype\"" >&5
  11097. $as_echo "\"$with_freetype\"" >&6; }
  11098. case "$with_freetype" in
  11099. "no") USE_FREETYPE= ;;
  11100. "yes") USE_FREETYPE="1" ;;
  11101. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  11102. esac
  11103. FTINC=
  11104. FTLIB=
  11105. if test -n "$USE_FREETYPE"; then
  11106. # With FreeType includes directory
  11107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of FreeType includes" >&5
  11108. $as_echo_n "checking for location of FreeType includes... " >&6; }
  11109. case "$with_freetype_includes" in
  11110. y | ye | yes | n | no)
  11111. as_fn_error $? "*** You must supply a directory to --with-freetype-includes." "$LINENO" 5
  11112. ;;
  11113. esac
  11114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_freetype_includes" >&5
  11115. $as_echo "$with_freetype_includes" >&6; }
  11116. if test -n "$with_freetype_includes" ; then
  11117. for dir in $with_freetype_includes; do
  11118. if test -d "$dir"; then
  11119. FTINC="$FTINC -I$dir"
  11120. else
  11121. as_fn_error $? "*** FreeType includes directory $dir does not exist." "$LINENO" 5
  11122. fi
  11123. done
  11124. fi
  11125. ac_save_cppflags="$CPPFLAGS"
  11126. CPPFLAGS="$FTINC $CPPFLAGS"
  11127. for ac_header in ft2build.h
  11128. do :
  11129. ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
  11130. if test "x$ac_cv_header_ft2build_h" = xyes; then :
  11131. cat >>confdefs.h <<_ACEOF
  11132. #define HAVE_FT2BUILD_H 1
  11133. _ACEOF
  11134. else
  11135. as_fn_error $? "*** Unable to locate FreeType includes." "$LINENO" 5
  11136. fi
  11137. done
  11138. CPPFLAGS=$ac_save_cppflags
  11139. # With FreeType library directory
  11140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of FreeType library" >&5
  11141. $as_echo_n "checking for location of FreeType library... " >&6; }
  11142. case "$with_freetype_libs" in
  11143. y | ye | yes | n | no)
  11144. as_fn_error $? "*** You must supply a directory to --with-freetype-libs." "$LINENO" 5
  11145. ;;
  11146. esac
  11147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_freetype_libs" >&5
  11148. $as_echo "$with_freetype_libs" >&6; }
  11149. if test -n "$with_freetype_libs"; then
  11150. for dir in $with_freetype_libs; do
  11151. if test -d "$dir"; then
  11152. FTLIB="$FTLIB -L$dir"
  11153. else
  11154. as_fn_error $? "*** FreeType library directory $dir does not exist." "$LINENO" 5
  11155. fi
  11156. done
  11157. fi
  11158. ac_save_ldflags="$LDFLAGS"
  11159. LDFLAGS="$FTLIB $LDFLAGS"
  11160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
  11161. $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
  11162. ac_check_lib_save_LIBS=$LIBS
  11163. LIBS="-lfreetype $LIBS"
  11164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11165. /* end confdefs.h. */
  11166. /* Override any GCC internal prototype to avoid an error.
  11167. Use char because int might match the return type of a GCC
  11168. builtin and then its argument prototype would still apply. */
  11169. #ifdef __cplusplus
  11170. extern "C"
  11171. #endif
  11172. char FT_Init_FreeType ();
  11173. int
  11174. main ()
  11175. {
  11176. return FT_Init_FreeType ();
  11177. ;
  11178. return 0;
  11179. }
  11180. _ACEOF
  11181. if ac_fn_c_try_link "$LINENO"; then :
  11182. ac_cv_lib_freetype_FT_Init_FreeType=yes
  11183. else
  11184. ac_cv_lib_freetype_FT_Init_FreeType=no
  11185. fi
  11186. rm -f core conftest.err conftest.$ac_objext \
  11187. conftest$ac_exeext conftest.$ac_ext
  11188. LIBS=$ac_check_lib_save_LIBS
  11189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
  11190. $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
  11191. if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
  11192. FTLIB="$FTLIB -lfreetype "
  11193. else
  11194. LDFLAGS=${ac_save_ldflags}
  11195. as_fn_error $? "*** Unable to locate FreeType library." "$LINENO" 5
  11196. fi
  11197. LDFLAGS=${ac_save_ldflags}
  11198. fi # $USE_FREETYPE
  11199. # Done checking FreeType
  11200. # Enable NLS option
  11201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
  11202. $as_echo_n "checking whether to use NLS... " >&6; }
  11203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_nls\"" >&5
  11204. $as_echo "\"$with_nls\"" >&6; }
  11205. case "$with_nls" in
  11206. "no") USE_NLS= ;;
  11207. "yes") USE_NLS="1" ;;
  11208. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  11209. esac
  11210. INTLLIB=
  11211. HAVE_NLS=
  11212. if test -n "${USE_NLS}" ; then
  11213. $as_echo "#define USE_NLS 1" >>confdefs.h
  11214. ac_fn_c_check_func "$LINENO" "gettext" "ac_cv_func_gettext"
  11215. if test "x$ac_cv_func_gettext" = xyes; then :
  11216. INTLLIB=
  11217. else
  11218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
  11219. $as_echo_n "checking for gettext in -lintl... " >&6; }
  11220. ac_check_lib_save_LIBS=$LIBS
  11221. LIBS="-lintl $LIBS"
  11222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11223. /* end confdefs.h. */
  11224. /* Override any GCC internal prototype to avoid an error.
  11225. Use char because int might match the return type of a GCC
  11226. builtin and then its argument prototype would still apply. */
  11227. #ifdef __cplusplus
  11228. extern "C"
  11229. #endif
  11230. char gettext ();
  11231. int
  11232. main ()
  11233. {
  11234. return gettext ();
  11235. ;
  11236. return 0;
  11237. }
  11238. _ACEOF
  11239. if ac_fn_c_try_link "$LINENO"; then :
  11240. ac_cv_lib_intl_gettext=yes
  11241. else
  11242. ac_cv_lib_intl_gettext=no
  11243. fi
  11244. rm -f core conftest.err conftest.$ac_objext \
  11245. conftest$ac_exeext conftest.$ac_ext
  11246. LIBS=$ac_check_lib_save_LIBS
  11247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
  11248. $as_echo "$ac_cv_lib_intl_gettext" >&6; }
  11249. if test "x$ac_cv_lib_intl_gettext" = xyes; then :
  11250. INTLLIB=-lintl
  11251. else
  11252. as_fn_error $? "*** Unable to locate gettext() function." "$LINENO" 5
  11253. fi
  11254. fi
  11255. HAVE_NLS=1
  11256. fi
  11257. # Enable C++ option
  11258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use C++" >&5
  11259. $as_echo_n "checking whether to use C++... " >&6; }
  11260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_cxx\"" >&5
  11261. $as_echo "\"$with_cxx\"" >&6; }
  11262. case "$with_cxx" in
  11263. "no") USE_CXX= ;;
  11264. "yes") USE_CXX="1" ;;
  11265. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  11266. esac
  11267. if test -n "$USE_CXX"; then
  11268. ac_ext=cpp
  11269. ac_cpp='$CXXCPP $CPPFLAGS'
  11270. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11271. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11272. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11273. if test -z "$CXX"; then
  11274. if test -n "$CCC"; then
  11275. CXX=$CCC
  11276. else
  11277. if test -n "$ac_tool_prefix"; then
  11278. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11279. do
  11280. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11281. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11283. $as_echo_n "checking for $ac_word... " >&6; }
  11284. if test -n "$CXX"; then
  11285. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  11286. else
  11287. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11288. for as_dir in $PATH
  11289. do
  11290. IFS=$as_save_IFS
  11291. test -z "$as_dir" && as_dir=.
  11292. for ac_exec_ext in '' $ac_executable_extensions; do
  11293. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11294. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  11295. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11296. break 2
  11297. fi
  11298. done
  11299. done
  11300. IFS=$as_save_IFS
  11301. fi
  11302. CXX=$ac_cv_prog_CXX
  11303. if test -n "$CXX"; then
  11304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  11305. $as_echo "$CXX" >&6; }
  11306. else
  11307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11308. $as_echo "no" >&6; }
  11309. fi
  11310. test -n "$CXX" && break
  11311. done
  11312. fi
  11313. if test -z "$CXX"; then
  11314. ac_ct_CXX=$CXX
  11315. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11316. do
  11317. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11318. set dummy $ac_prog; ac_word=$2
  11319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11320. $as_echo_n "checking for $ac_word... " >&6; }
  11321. if test -n "$ac_ct_CXX"; then
  11322. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  11323. else
  11324. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11325. for as_dir in $PATH
  11326. do
  11327. IFS=$as_save_IFS
  11328. test -z "$as_dir" && as_dir=.
  11329. for ac_exec_ext in '' $ac_executable_extensions; do
  11330. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11331. ac_cv_prog_ac_ct_CXX="$ac_prog"
  11332. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11333. break 2
  11334. fi
  11335. done
  11336. done
  11337. IFS=$as_save_IFS
  11338. fi
  11339. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  11340. if test -n "$ac_ct_CXX"; then
  11341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  11342. $as_echo "$ac_ct_CXX" >&6; }
  11343. else
  11344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11345. $as_echo "no" >&6; }
  11346. fi
  11347. test -n "$ac_ct_CXX" && break
  11348. done
  11349. if test "x$ac_ct_CXX" = x; then
  11350. CXX="g++"
  11351. else
  11352. case $cross_compiling:$ac_tool_warned in
  11353. yes:)
  11354. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11355. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11356. ac_tool_warned=yes ;;
  11357. esac
  11358. CXX=$ac_ct_CXX
  11359. fi
  11360. fi
  11361. fi
  11362. fi
  11363. # Provide some information about the compiler.
  11364. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  11365. set X $ac_compile
  11366. ac_compiler=$2
  11367. for ac_option in --version -v -V -qversion; do
  11368. { { ac_try="$ac_compiler $ac_option >&5"
  11369. case "(($ac_try" in
  11370. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11371. *) ac_try_echo=$ac_try;;
  11372. esac
  11373. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11374. $as_echo "$ac_try_echo"; } >&5
  11375. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11376. ac_status=$?
  11377. if test -s conftest.err; then
  11378. sed '10a\
  11379. ... rest of stderr output deleted ...
  11380. 10q' conftest.err >conftest.er1
  11381. cat conftest.er1 >&5
  11382. fi
  11383. rm -f conftest.er1 conftest.err
  11384. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11385. test $ac_status = 0; }
  11386. done
  11387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  11388. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  11389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11390. /* end confdefs.h. */
  11391. int
  11392. main ()
  11393. {
  11394. #ifndef __GNUC__
  11395. choke me
  11396. #endif
  11397. ;
  11398. return 0;
  11399. }
  11400. _ACEOF
  11401. if ac_fn_cxx_try_compile "$LINENO"; then :
  11402. ac_compiler_gnu=yes
  11403. else
  11404. ac_compiler_gnu=no
  11405. fi
  11406. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11407. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  11408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  11409. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  11410. if test $ac_compiler_gnu = yes; then
  11411. GXX=yes
  11412. else
  11413. GXX=
  11414. fi
  11415. ac_test_CXXFLAGS=${CXXFLAGS+set}
  11416. ac_save_CXXFLAGS=$CXXFLAGS
  11417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  11418. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  11419. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  11420. ac_cxx_werror_flag=yes
  11421. ac_cv_prog_cxx_g=no
  11422. CXXFLAGS="-g"
  11423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11424. /* end confdefs.h. */
  11425. int
  11426. main ()
  11427. {
  11428. ;
  11429. return 0;
  11430. }
  11431. _ACEOF
  11432. if ac_fn_cxx_try_compile "$LINENO"; then :
  11433. ac_cv_prog_cxx_g=yes
  11434. else
  11435. CXXFLAGS=""
  11436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11437. /* end confdefs.h. */
  11438. int
  11439. main ()
  11440. {
  11441. ;
  11442. return 0;
  11443. }
  11444. _ACEOF
  11445. if ac_fn_cxx_try_compile "$LINENO"; then :
  11446. else
  11447. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11448. CXXFLAGS="-g"
  11449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11450. /* end confdefs.h. */
  11451. int
  11452. main ()
  11453. {
  11454. ;
  11455. return 0;
  11456. }
  11457. _ACEOF
  11458. if ac_fn_cxx_try_compile "$LINENO"; then :
  11459. ac_cv_prog_cxx_g=yes
  11460. fi
  11461. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11462. fi
  11463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11464. fi
  11465. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11466. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  11468. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  11469. if test "$ac_test_CXXFLAGS" = set; then
  11470. CXXFLAGS=$ac_save_CXXFLAGS
  11471. elif test $ac_cv_prog_cxx_g = yes; then
  11472. if test "$GXX" = yes; then
  11473. CXXFLAGS="-g -O2"
  11474. else
  11475. CXXFLAGS="-g"
  11476. fi
  11477. else
  11478. if test "$GXX" = yes; then
  11479. CXXFLAGS="-O2"
  11480. else
  11481. CXXFLAGS=
  11482. fi
  11483. fi
  11484. ac_ext=c
  11485. ac_cpp='$CPP $CPPFLAGS'
  11486. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11487. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11488. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11489. else
  11490. CXX=
  11491. CXXFLAGS=
  11492. fi
  11493. # Done checking C++
  11494. # Enable openDWG option
  11495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use openDWG" >&5
  11496. $as_echo_n "checking whether to use openDWG... " >&6; }
  11497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_opendwg\"" >&5
  11498. $as_echo "\"$with_opendwg\"" >&6; }
  11499. case "$with_opendwg" in
  11500. "no") USE_OPENDWG= ;;
  11501. "yes") USE_OPENDWG="1" ;;
  11502. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  11503. esac
  11504. OPENDWGINCPATH=
  11505. OPENDWGLIBPATH=
  11506. OPENDWGLIB=
  11507. if test -n "${USE_OPENDWG}"; then
  11508. # With OPENDWG includes directory
  11509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of openDGW includes" >&5
  11510. $as_echo_n "checking for location of openDGW includes... " >&6; }
  11511. case "$with_opendwg_includes" in
  11512. y | ye | yes | n | no)
  11513. as_fn_error $? "*** You must supply a directory to --with-opendwg-includes." "$LINENO" 5
  11514. ;;
  11515. esac
  11516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_opendwg_includes" >&5
  11517. $as_echo "$with_opendwg_includes" >&6; }
  11518. if test -n "$with_opendwg_includes" ; then
  11519. for dir in $with_opendwg_includes; do
  11520. if test -d "$dir"; then
  11521. OPENDWGINCPATH="$OPENDWGINCPATH -I$dir"
  11522. else
  11523. as_fn_error $? "*** openDGW includes directory $dir does not exist." "$LINENO" 5
  11524. fi
  11525. done
  11526. fi
  11527. ac_save_cppflags="$CPPFLAGS"
  11528. CPPFLAGS="$OPENDWGINCPATH $CPPFLAGS"
  11529. for ac_header in ad2.h
  11530. do :
  11531. ac_fn_c_check_header_mongrel "$LINENO" "ad2.h" "ac_cv_header_ad2_h" "$ac_includes_default"
  11532. if test "x$ac_cv_header_ad2_h" = xyes; then :
  11533. cat >>confdefs.h <<_ACEOF
  11534. #define HAVE_AD2_H 1
  11535. _ACEOF
  11536. else
  11537. as_fn_error $? "*** Unable to locate openDWG includes." "$LINENO" 5
  11538. fi
  11539. done
  11540. CPPFLAGS=$ac_save_cppflags
  11541. # With OPENDWG library directory
  11542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of openDWG library" >&5
  11543. $as_echo_n "checking for location of openDWG library... " >&6; }
  11544. case "$with_opendwg_libs" in
  11545. y | ye | yes | n | no)
  11546. as_fn_error $? "*** You must supply a directory to --with-opendwg-libs." "$LINENO" 5
  11547. ;;
  11548. esac
  11549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_opendwg_libs" >&5
  11550. $as_echo "$with_opendwg_libs" >&6; }
  11551. if test -n "$with_opendwg_libs"; then
  11552. for dir in $with_opendwg_libs; do
  11553. if test -d "$dir"; then
  11554. OPENDWGLIBPATH="$OPENDWGLIBPATH -L$dir"
  11555. else
  11556. as_fn_error $? "*** openDWG library directory $dir does not exist." "$LINENO" 5
  11557. fi
  11558. done
  11559. fi
  11560. #search for ad2.a, ad3.a ... in openDWG toolkit directory:
  11561. #FIX ME how to program this test??
  11562. #LOC_CHECK_LIBS(ad?.a,adSeekLayer,openDWG,$OPENDWGLIBPATH,OPENDWGLIB,,)
  11563. #
  11564. #for now hack (but working):
  11565. TRUEOPENDWGLIBPATH=`echo "$OPENDWGLIBPATH" | cut -b3-`
  11566. adlib=`ls -1 "$TRUEOPENDWGLIBPATH"/ad?.a | tail -1`
  11567. OPENDWGLIB="$adlib"
  11568. fi # $USE_OPENDWG
  11569. # Done checking OPENDWG
  11570. # Enable pthread option
  11571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads" >&5
  11572. $as_echo_n "checking whether to use POSIX threads... " >&6; }
  11573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_pthread\"" >&5
  11574. $as_echo "\"$with_pthread\"" >&6; }
  11575. case "$with_pthread" in
  11576. "no") USE_PTHREAD= ;;
  11577. "yes") USE_PTHREAD="1" ;;
  11578. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  11579. esac
  11580. PTHREADINCPATH=
  11581. PTHREADLIBPATH=
  11582. PTHREADLIB=
  11583. if test -n "$USE_PTHREAD"; then
  11584. # With pthread includes directory
  11585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of POSIX threads includes" >&5
  11586. $as_echo_n "checking for location of POSIX threads includes... " >&6; }
  11587. case "$with_pthread_includes" in
  11588. y | ye | yes | n | no)
  11589. as_fn_error $? "*** You must supply a directory to --with-pthread-includes." "$LINENO" 5
  11590. ;;
  11591. esac
  11592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pthread_includes" >&5
  11593. $as_echo "$with_pthread_includes" >&6; }
  11594. if test -n "$with_pthread_includes" ; then
  11595. for dir in $with_pthread_includes; do
  11596. if test -d "$dir"; then
  11597. PTHREADINCPATH="$PTHREADINCPATH -I$dir"
  11598. else
  11599. as_fn_error $? "*** POSIX threads includes directory $dir does not exist." "$LINENO" 5
  11600. fi
  11601. done
  11602. fi
  11603. ac_save_cppflags="$CPPFLAGS"
  11604. CPPFLAGS="$PTHREADINCPATH $CPPFLAGS"
  11605. for ac_header in pthread.h
  11606. do :
  11607. ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  11608. if test "x$ac_cv_header_pthread_h" = xyes; then :
  11609. cat >>confdefs.h <<_ACEOF
  11610. #define HAVE_PTHREAD_H 1
  11611. _ACEOF
  11612. else
  11613. as_fn_error $? "*** Unable to locate POSIX threads includes." "$LINENO" 5
  11614. fi
  11615. done
  11616. CPPFLAGS=$ac_save_cppflags
  11617. # With pthread library directory
  11618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of POSIX threads library" >&5
  11619. $as_echo_n "checking for location of POSIX threads library... " >&6; }
  11620. case "$with_pthread_libs" in
  11621. y | ye | yes | n | no)
  11622. as_fn_error $? "*** You must supply a directory to --with-pthread-libs." "$LINENO" 5
  11623. ;;
  11624. esac
  11625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pthread_libs" >&5
  11626. $as_echo "$with_pthread_libs" >&6; }
  11627. if test -n "$with_pthread_libs"; then
  11628. for dir in $with_pthread_libs; do
  11629. if test -d "$dir"; then
  11630. PTHREADLIBPATH="$PTHREADLIBPATH -L$dir"
  11631. else
  11632. as_fn_error $? "*** POSIX threads library directory $dir does not exist." "$LINENO" 5
  11633. fi
  11634. done
  11635. fi
  11636. ac_save_libs="$LIBS"
  11637. ac_save_ldflags="$LDFLAGS"
  11638. LIBS=" $LIBS"
  11639. LDFLAGS=" $LDFLAGS"
  11640. ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
  11641. if test "x$ac_cv_func_pthread_create" = xyes; then :
  11642. PTHREADLIB="$PTHREADLIB "
  11643. else
  11644. ac_save_ldflags="$LDFLAGS"
  11645. LDFLAGS="$PTHREADLIBPATH $LDFLAGS"
  11646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  11647. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  11648. ac_check_lib_save_LIBS=$LIBS
  11649. LIBS="-lpthread $LIBS"
  11650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11651. /* end confdefs.h. */
  11652. /* Override any GCC internal prototype to avoid an error.
  11653. Use char because int might match the return type of a GCC
  11654. builtin and then its argument prototype would still apply. */
  11655. #ifdef __cplusplus
  11656. extern "C"
  11657. #endif
  11658. char pthread_create ();
  11659. int
  11660. main ()
  11661. {
  11662. return pthread_create ();
  11663. ;
  11664. return 0;
  11665. }
  11666. _ACEOF
  11667. if ac_fn_c_try_link "$LINENO"; then :
  11668. ac_cv_lib_pthread_pthread_create=yes
  11669. else
  11670. ac_cv_lib_pthread_pthread_create=no
  11671. fi
  11672. rm -f core conftest.err conftest.$ac_objext \
  11673. conftest$ac_exeext conftest.$ac_ext
  11674. LIBS=$ac_check_lib_save_LIBS
  11675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  11676. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  11677. if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  11678. PTHREADLIB="$PTHREADLIB -lpthread "
  11679. else
  11680. LDFLAGS=${ac_save_ldflags}
  11681. as_fn_error $? "*** Unable to locate POSIX threads library." "$LINENO" 5
  11682. fi
  11683. LDFLAGS=${ac_save_ldflags}
  11684. fi
  11685. LIBS=${ac_save_libs}
  11686. LDFLAGS=${ac_save_ldflags}
  11687. fi # $USE_PTHREAD
  11688. # Done checking pthread
  11689. # Enable OpenMP option
  11690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use OpenMP" >&5
  11691. $as_echo_n "checking whether to use OpenMP... " >&6; }
  11692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_openmp\"" >&5
  11693. $as_echo "\"$with_openmp\"" >&6; }
  11694. case "$with_openmp" in
  11695. "no") USE_OPENMP= ;;
  11696. "yes") USE_OPENMP="1" ;;
  11697. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  11698. esac
  11699. OMPINCPATH=
  11700. OMPLIBPATH=
  11701. OMPLIB=
  11702. OMPCFLAGS=
  11703. if test -n "$USE_OPENMP"; then
  11704. # With OpenMP includes directory
  11705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of OpenMP includes" >&5
  11706. $as_echo_n "checking for location of OpenMP includes... " >&6; }
  11707. case "$with_openmp_includes" in
  11708. y | ye | yes | n | no)
  11709. as_fn_error $? "*** You must supply a directory to --with-openmp-includes." "$LINENO" 5
  11710. ;;
  11711. esac
  11712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openmp_includes" >&5
  11713. $as_echo "$with_openmp_includes" >&6; }
  11714. if test -n "$with_openmp_includes" ; then
  11715. for dir in $with_openmp_includes; do
  11716. if test -d "$dir"; then
  11717. OMPINCPATH="$OMPINCPATH -I$dir"
  11718. else
  11719. as_fn_error $? "*** OpenMP includes directory $dir does not exist." "$LINENO" 5
  11720. fi
  11721. done
  11722. fi
  11723. ac_save_cppflags="$CPPFLAGS"
  11724. CPPFLAGS="$OMPINCPATH $CPPFLAGS"
  11725. for ac_header in omp.h
  11726. do :
  11727. ac_fn_c_check_header_mongrel "$LINENO" "omp.h" "ac_cv_header_omp_h" "$ac_includes_default"
  11728. if test "x$ac_cv_header_omp_h" = xyes; then :
  11729. cat >>confdefs.h <<_ACEOF
  11730. #define HAVE_OMP_H 1
  11731. _ACEOF
  11732. else
  11733. as_fn_error $? "*** Unable to locate OpenMP includes." "$LINENO" 5
  11734. fi
  11735. done
  11736. CPPFLAGS=$ac_save_cppflags
  11737. # With OpenMP library directory
  11738. # GCC et al.: -lgomp
  11739. # Solaris cc: -lmtsk
  11740. # AIX xlc: -lxlsmp
  11741. # SGI IRIX 6.5 MIPSpro C/C++: -lmp
  11742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of OpenMP library" >&5
  11743. $as_echo_n "checking for location of OpenMP library... " >&6; }
  11744. case "$with_openmp_libs" in
  11745. y | ye | yes | n | no)
  11746. as_fn_error $? "*** You must supply a directory to --with-openmp-libs." "$LINENO" 5
  11747. ;;
  11748. esac
  11749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openmp_libs" >&5
  11750. $as_echo "$with_openmp_libs" >&6; }
  11751. if test -n "$with_openmp_libs"; then
  11752. for dir in $with_openmp_libs; do
  11753. if test -d "$dir"; then
  11754. OMPLIBPATH="$OMPLIBPATH -L$dir"
  11755. else
  11756. as_fn_error $? "*** OpenMP library directory $dir does not exist." "$LINENO" 5
  11757. fi
  11758. done
  11759. fi
  11760. ac_save_libs="$LIBS"
  11761. ac_save_ldflags="$LDFLAGS"
  11762. LIBS=" $LIBS"
  11763. LDFLAGS=" $LDFLAGS"
  11764. ac_fn_c_check_func "$LINENO" "GOMP_parallel_start" "ac_cv_func_GOMP_parallel_start"
  11765. if test "x$ac_cv_func_GOMP_parallel_start" = xyes; then :
  11766. OMPLIB="$OMPLIB "
  11767. else
  11768. ac_save_ldflags="$LDFLAGS"
  11769. LDFLAGS="$OMPLIBPATH $LDFLAGS"
  11770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
  11771. $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
  11772. ac_check_lib_save_LIBS=$LIBS
  11773. LIBS="-lgomp $LIBS"
  11774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11775. /* end confdefs.h. */
  11776. /* Override any GCC internal prototype to avoid an error.
  11777. Use char because int might match the return type of a GCC
  11778. builtin and then its argument prototype would still apply. */
  11779. #ifdef __cplusplus
  11780. extern "C"
  11781. #endif
  11782. char GOMP_parallel_start ();
  11783. int
  11784. main ()
  11785. {
  11786. return GOMP_parallel_start ();
  11787. ;
  11788. return 0;
  11789. }
  11790. _ACEOF
  11791. if ac_fn_c_try_link "$LINENO"; then :
  11792. ac_cv_lib_gomp_GOMP_parallel_start=yes
  11793. else
  11794. ac_cv_lib_gomp_GOMP_parallel_start=no
  11795. fi
  11796. rm -f core conftest.err conftest.$ac_objext \
  11797. conftest$ac_exeext conftest.$ac_ext
  11798. LIBS=$ac_check_lib_save_LIBS
  11799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
  11800. $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
  11801. if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
  11802. OMPLIB="$OMPLIB -lgomp "
  11803. else
  11804. LDFLAGS=${ac_save_ldflags}
  11805. as_fn_error $? "*** Unable to locate OpenMP library." "$LINENO" 5
  11806. fi
  11807. LDFLAGS=${ac_save_ldflags}
  11808. fi
  11809. LIBS=${ac_save_libs}
  11810. LDFLAGS=${ac_save_ldflags}
  11811. # compiler dependent
  11812. #if test ${CC} = "gcc" ; then
  11813. if test x$GCC = xyes ; then
  11814. # GNU C compiler (>= 4.2.1)
  11815. OMPCFLAGS=-fopenmp
  11816. elif test ${CC} = "icc" ; then
  11817. # Intel compiler
  11818. OMPCFLAGS=-openmp
  11819. elif test ${CC} = "opencc" ; then
  11820. # AMD's x86 Open64 compiler
  11821. OMPCFLAGS=-mp
  11822. elif test ${CC} = "pgcc" ; then
  11823. # Portland Group's compiler
  11824. OMPCFLAGS=-mp
  11825. # ... anybody else?
  11826. fi
  11827. # try to build a test program with "$CC $OMPCLFAGS" to confirm it works
  11828. #...how?
  11829. #echo "int main() {return 0;}" > test.c
  11830. #$CC $OMPCLFAGS test.c -o test
  11831. fi # $USE_OPENMP
  11832. # Done checking OpenMP
  11833. # Enable OpenCL option
  11834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use OpenCL" >&5
  11835. $as_echo_n "checking whether to use OpenCL... " >&6; }
  11836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_opencl\"" >&5
  11837. $as_echo "\"$with_opencl\"" >&6; }
  11838. case "$with_opencl" in
  11839. "no") USE_OPENCL= ;;
  11840. "yes") USE_OPENCL="1" ;;
  11841. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  11842. esac
  11843. OCLINCPATH=
  11844. OCLLIBPATH=
  11845. OCLLIB=
  11846. if test -n "$USE_OPENCL"; then
  11847. # With OpenCL includes directory
  11848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of OpenCL includes" >&5
  11849. $as_echo_n "checking for location of OpenCL includes... " >&6; }
  11850. case "$with_opencl_includes" in
  11851. y | ye | yes | n | no)
  11852. as_fn_error $? "*** You must supply a directory to --with-opencl-includes." "$LINENO" 5
  11853. ;;
  11854. esac
  11855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_opencl_includes" >&5
  11856. $as_echo "$with_opencl_includes" >&6; }
  11857. if test -n "$with_opencl_includes" ; then
  11858. for dir in $with_opencl_includes; do
  11859. if test -d "$dir"; then
  11860. OCLINCPATH="$OCLINCPATH -I$dir"
  11861. else
  11862. as_fn_error $? "*** OpenCL includes directory $dir does not exist." "$LINENO" 5
  11863. fi
  11864. done
  11865. fi
  11866. if test -n "$MACOSX_APP" ; then
  11867. ac_save_cppflags="$CPPFLAGS"
  11868. CPPFLAGS="$OCLINCPATH $CPPFLAGS"
  11869. for ac_header in OpenCL/opencl.h
  11870. do :
  11871. ac_fn_c_check_header_mongrel "$LINENO" "OpenCL/opencl.h" "ac_cv_header_OpenCL_opencl_h" "$ac_includes_default"
  11872. if test "x$ac_cv_header_OpenCL_opencl_h" = xyes; then :
  11873. cat >>confdefs.h <<_ACEOF
  11874. #define HAVE_OPENCL_OPENCL_H 1
  11875. _ACEOF
  11876. else
  11877. as_fn_error $? "*** Unable to locate OpenCL includes." "$LINENO" 5
  11878. fi
  11879. done
  11880. CPPFLAGS=$ac_save_cppflags
  11881. # With OpenCL library directory
  11882. ### FIXME: ###
  11883. #LOC_CHECK_FRAMEWORK_PATH(opencl,OpenCL,OPENCLPATH)
  11884. # last term in following would become ',$OPENCLPATH)' if above is uncommented
  11885. ac_save_libs="$LIBS"
  11886. ac_save_ldflags="$LDFLAGS"
  11887. LIBS="-framework OpenCL $LIBS"
  11888. LDFLAGS=" $LDFLAGS"
  11889. ac_fn_c_check_func "$LINENO" "clGetPlatformInfo" "ac_cv_func_clGetPlatformInfo"
  11890. if test "x$ac_cv_func_clGetPlatformInfo" = xyes; then :
  11891. OCLLIB="$OCLLIB -framework OpenCL"
  11892. else
  11893. as_fn_error $? "*** Unable to locate OpenCL library." "$LINENO" 5
  11894. fi
  11895. LIBS=${ac_save_libs}
  11896. LDFLAGS=${ac_save_ldflags}
  11897. else
  11898. ac_save_cppflags="$CPPFLAGS"
  11899. CPPFLAGS="$OCLINCPATH $CPPFLAGS"
  11900. for ac_header in CL/cl.h
  11901. do :
  11902. ac_fn_c_check_header_mongrel "$LINENO" "CL/cl.h" "ac_cv_header_CL_cl_h" "$ac_includes_default"
  11903. if test "x$ac_cv_header_CL_cl_h" = xyes; then :
  11904. cat >>confdefs.h <<_ACEOF
  11905. #define HAVE_CL_CL_H 1
  11906. _ACEOF
  11907. else
  11908. as_fn_error $? "*** Unable to locate OpenCL includes." "$LINENO" 5
  11909. fi
  11910. done
  11911. CPPFLAGS=$ac_save_cppflags
  11912. # With OpenCL library directory
  11913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of OpenCL library" >&5
  11914. $as_echo_n "checking for location of OpenCL library... " >&6; }
  11915. case "$with_opencl_libs" in
  11916. y | ye | yes | n | no)
  11917. as_fn_error $? "*** You must supply a directory to --with-opencl-libs." "$LINENO" 5
  11918. ;;
  11919. esac
  11920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_opencl_libs" >&5
  11921. $as_echo "$with_opencl_libs" >&6; }
  11922. if test -n "$with_opencl_libs"; then
  11923. for dir in $with_opencl_libs; do
  11924. if test -d "$dir"; then
  11925. OCLLIBPATH="$OCLLIBPATH -L$dir"
  11926. else
  11927. as_fn_error $? "*** OpenCL library directory $dir does not exist." "$LINENO" 5
  11928. fi
  11929. done
  11930. fi
  11931. ac_save_ldflags="$LDFLAGS"
  11932. LDFLAGS="$OCLLIBPATH $LDFLAGS"
  11933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
  11934. $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
  11935. ac_check_lib_save_LIBS=$LIBS
  11936. LIBS="-lOpenCL $LIBS"
  11937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11938. /* end confdefs.h. */
  11939. /* Override any GCC internal prototype to avoid an error.
  11940. Use char because int might match the return type of a GCC
  11941. builtin and then its argument prototype would still apply. */
  11942. #ifdef __cplusplus
  11943. extern "C"
  11944. #endif
  11945. char clGetPlatformInfo ();
  11946. int
  11947. main ()
  11948. {
  11949. return clGetPlatformInfo ();
  11950. ;
  11951. return 0;
  11952. }
  11953. _ACEOF
  11954. if ac_fn_c_try_link "$LINENO"; then :
  11955. ac_cv_lib_OpenCL_clGetPlatformInfo=yes
  11956. else
  11957. ac_cv_lib_OpenCL_clGetPlatformInfo=no
  11958. fi
  11959. rm -f core conftest.err conftest.$ac_objext \
  11960. conftest$ac_exeext conftest.$ac_ext
  11961. LIBS=$ac_check_lib_save_LIBS
  11962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
  11963. $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
  11964. if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
  11965. OCLLIB="$OCLLIB -lOpenCL "
  11966. else
  11967. LDFLAGS=${ac_save_ldflags}
  11968. as_fn_error $? "*** Unable to locate OpenCL library." "$LINENO" 5
  11969. fi
  11970. LDFLAGS=${ac_save_ldflags}
  11971. # expanded symbol check: yes? no?
  11972. #LOC_CHECK_FUNC(clGetPlatformInfo,OpenCL functions,OCLLIB,,,,,[
  11973. #LOC_CHECK_LIBS(OpenCL,clGetPlatformInfo,OpenCL,$OCLLIBPATH,OCLLIB,,,)
  11974. #])
  11975. fi
  11976. fi # $USE_OPENCL
  11977. # Done checking OpenCL
  11978. # Enable LFS (from cdr-tools, tar, and autoconf 2.68)
  11979. # Check whether --enable-largefile was given.
  11980. if test "${enable_largefile+set}" = set; then :
  11981. enableval=$enable_largefile;
  11982. fi
  11983. LFS_CFLAGS=
  11984. if test "$enable_largefile" != no; then
  11985. ac_save_cflags=$CFLAGS
  11986. if test "`which getconf 2>&5`" ; then
  11987. LFS_CFLAGS=`getconf LFS_CFLAGS 2>&5`
  11988. CFLAGS="$LFS_CFLAGS $ac_save_cflags"
  11989. fi
  11990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  11991. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  11992. ac_cv_sys_largefile_CC=no
  11993. largefile_cc_opt=""
  11994. if test "$GCC" != yes; then
  11995. # IRIX 6.2 and later do not support large files by default,
  11996. # so use the C compiler's -n32 option if that helps.
  11997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11998. /* end confdefs.h. */
  11999. #include <sys/types.h>
  12000. /* Check that off_t can represent 2**63 - 1 correctly.
  12001. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  12002. since some C++ compilers masquerading as C compilers
  12003. incorrectly reject 9223372036854775807. */
  12004. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12005. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12006. && LARGE_OFF_T % 2147483647 == 1)
  12007. ? 1 : -1];
  12008. int
  12009. main ()
  12010. {
  12011. ;
  12012. return 0;
  12013. }
  12014. _ACEOF
  12015. if ac_fn_c_try_compile "$LINENO"; then :
  12016. else
  12017. ac_save_CC="${CC-cc}"
  12018. CC="$CC -n32"
  12019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12020. /* end confdefs.h. */
  12021. #include <sys/types.h>
  12022. /* Check that off_t can represent 2**63 - 1 correctly.
  12023. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  12024. since some C++ compilers masquerading as C compilers
  12025. incorrectly reject 9223372036854775807. */
  12026. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12027. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12028. && LARGE_OFF_T % 2147483647 == 1)
  12029. ? 1 : -1];
  12030. int
  12031. main ()
  12032. {
  12033. ;
  12034. return 0;
  12035. }
  12036. _ACEOF
  12037. if ac_fn_c_try_compile "$LINENO"; then :
  12038. ac_cv_sys_largefile_CC=' -n32'
  12039. fi
  12040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12041. CC="$ac_save_CC"
  12042. fi
  12043. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12044. fi
  12045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  12046. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  12047. if test "$ac_cv_sys_largefile_CC" != no; then
  12048. CC="$CC$ac_cv_sys_largefile_CC"
  12049. largefile_cc_opt="$ac_cv_sys_largefile_CC"
  12050. if test "$LFS_CFLAGS" ; then
  12051. LFS_CFLAGS="$LFS_CFLAGS $ac_cv_sys_largefile_CC"
  12052. else
  12053. LFS_CFLAGS="$ac_cv_sys_largefile_CC"
  12054. CFLAGS="$LFS_CFLAGS $ac_save_cflags"
  12055. fi
  12056. fi
  12057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  12058. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  12059. ac_cv_sys_file_offset_bits=no
  12060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12061. /* end confdefs.h. */
  12062. #include <sys/types.h>
  12063. /* Check that off_t can represent 2**63 - 1 correctly.
  12064. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  12065. since some C++ compilers masquerading as C compilers
  12066. incorrectly reject 9223372036854775807. */
  12067. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12068. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12069. && LARGE_OFF_T % 2147483647 == 1)
  12070. ? 1 : -1];
  12071. int
  12072. main ()
  12073. {
  12074. ;
  12075. return 0;
  12076. }
  12077. _ACEOF
  12078. if ac_fn_c_try_compile "$LINENO"; then :
  12079. else
  12080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12081. /* end confdefs.h. */
  12082. #define _FILE_OFFSET_BITS 64
  12083. #include <sys/types.h>
  12084. /* Check that off_t can represent 2**63 - 1 correctly.
  12085. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  12086. since some C++ compilers masquerading as C compilers
  12087. incorrectly reject 9223372036854775807. */
  12088. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12089. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12090. && LARGE_OFF_T % 2147483647 == 1)
  12091. ? 1 : -1];
  12092. int
  12093. main ()
  12094. {
  12095. ;
  12096. return 0;
  12097. }
  12098. _ACEOF
  12099. if ac_fn_c_try_compile "$LINENO"; then :
  12100. ac_cv_sys_file_offset_bits=64
  12101. fi
  12102. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12103. fi
  12104. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  12106. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  12107. if test "$ac_cv_sys_file_offset_bits" != no; then
  12108. cat >>confdefs.h <<_ACEOF
  12109. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  12110. _ACEOF
  12111. if test "$LFS_CFLAGS" ; then
  12112. LFS_CFLAGS="$LFS_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
  12113. else
  12114. LFS_CFLAGS="-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
  12115. fi
  12116. fi
  12117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  12118. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  12119. ac_cv_sys_large_files=no
  12120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12121. /* end confdefs.h. */
  12122. #include <sys/types.h>
  12123. /* Check that off_t can represent 2**63 - 1 correctly.
  12124. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  12125. since some C++ compilers masquerading as C compilers
  12126. incorrectly reject 9223372036854775807. */
  12127. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12128. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12129. && LARGE_OFF_T % 2147483647 == 1)
  12130. ? 1 : -1];
  12131. int
  12132. main ()
  12133. {
  12134. ;
  12135. return 0;
  12136. }
  12137. _ACEOF
  12138. if ac_fn_c_try_compile "$LINENO"; then :
  12139. else
  12140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12141. /* end confdefs.h. */
  12142. #define _LARGE_FILES 1
  12143. #include <sys/types.h>
  12144. /* Check that off_t can represent 2**63 - 1 correctly.
  12145. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  12146. since some C++ compilers masquerading as C compilers
  12147. incorrectly reject 9223372036854775807. */
  12148. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12149. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12150. && LARGE_OFF_T % 2147483647 == 1)
  12151. ? 1 : -1];
  12152. int
  12153. main ()
  12154. {
  12155. ;
  12156. return 0;
  12157. }
  12158. _ACEOF
  12159. if ac_fn_c_try_compile "$LINENO"; then :
  12160. ac_cv_sys_large_files=1
  12161. fi
  12162. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12163. fi
  12164. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  12166. $as_echo "$ac_cv_sys_large_files" >&6; }
  12167. if test "$ac_cv_sys_large_files" != no; then
  12168. cat >>confdefs.h <<_ACEOF
  12169. #define _LARGE_FILES $ac_cv_sys_large_files
  12170. _ACEOF
  12171. if test "$LFS_CFLAGS" ; then
  12172. LFS_CFLAGS="$LFS_CFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files"
  12173. else
  12174. LFS_CFLAGS="-D_LARGE_FILES=$ac_cv_sys_large_files"
  12175. fi
  12176. fi
  12177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  12178. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  12179. ac_cv_sys_largefile_source=no
  12180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12181. /* end confdefs.h. */
  12182. #include <stdio.h>
  12183. int
  12184. main ()
  12185. {
  12186. return !fseeko;
  12187. ;
  12188. return 0;
  12189. }
  12190. _ACEOF
  12191. if ac_fn_c_try_compile "$LINENO"; then :
  12192. else
  12193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12194. /* end confdefs.h. */
  12195. #define _LARGEFILE_SOURCE 1
  12196. #include <stdio.h>
  12197. int
  12198. main ()
  12199. {
  12200. return !fseeko;
  12201. ;
  12202. return 0;
  12203. }
  12204. _ACEOF
  12205. if ac_fn_c_try_compile "$LINENO"; then :
  12206. ac_cv_sys_largefile_source=1
  12207. fi
  12208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12209. fi
  12210. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  12212. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  12213. if test "$ac_cv_sys_largefile_source" != no; then
  12214. cat >>confdefs.h <<_ACEOF
  12215. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  12216. _ACEOF
  12217. if test "$LFS_CFLAGS" ; then
  12218. LFS_CFLAGS="$LFS_CFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
  12219. else
  12220. LFS_CFLAGS="-D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
  12221. fi
  12222. fi
  12223. CFLAGS=$ac_save_cflags
  12224. fi
  12225. ac_save_cflags=${CFLAGS}
  12226. CFLAGS="$LFS_CFLAGS ${ac_save_cflags}"
  12227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  12228. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  12229. ac_cv_sys_largefile_source=no
  12230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12231. /* end confdefs.h. */
  12232. #include <stdio.h>
  12233. int
  12234. main ()
  12235. {
  12236. return !fseeko;
  12237. ;
  12238. return 0;
  12239. }
  12240. _ACEOF
  12241. if ac_fn_c_try_compile "$LINENO"; then :
  12242. else
  12243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12244. /* end confdefs.h. */
  12245. #define _LARGEFILE_SOURCE 1
  12246. #include <stdio.h>
  12247. int
  12248. main ()
  12249. {
  12250. return !fseeko;
  12251. ;
  12252. return 0;
  12253. }
  12254. _ACEOF
  12255. if ac_fn_c_try_compile "$LINENO"; then :
  12256. ac_cv_sys_largefile_source=1
  12257. fi
  12258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12259. fi
  12260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  12262. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  12263. if test "$ac_cv_sys_largefile_source" != no; then
  12264. cat >>confdefs.h <<_ACEOF
  12265. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  12266. _ACEOF
  12267. if test "$LFS_CFLAGS" ; then
  12268. LFS_CFLAGS="$LFS_CFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
  12269. else
  12270. LFS_CFLAGS="-D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
  12271. fi
  12272. fi
  12273. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  12274. # in glibc 2.1.3, but that breaks too many other things.
  12275. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  12276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
  12277. $as_echo_n "checking for fseeko... " >&6; }
  12278. ac_cv_func_fseeko=no
  12279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12280. /* end confdefs.h. */
  12281. #include <stdio.h>
  12282. int
  12283. main ()
  12284. {
  12285. return fseeko && fseeko (stdin, 0, 0);
  12286. ;
  12287. return 0;
  12288. }
  12289. _ACEOF
  12290. if ac_fn_c_try_link "$LINENO"; then :
  12291. ac_cv_func_fseeko=yes
  12292. fi
  12293. rm -f core conftest.err conftest.$ac_objext \
  12294. conftest$ac_exeext conftest.$ac_ext
  12295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko" >&5
  12296. $as_echo "$ac_cv_func_fseeko" >&6; }
  12297. if test $ac_cv_func_fseeko != no; then
  12298. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  12299. fi
  12300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system supports Large Files at all" >&5
  12301. $as_echo_n "checking if system supports Large Files at all... " >&6; }
  12302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12303. /* end confdefs.h. */
  12304. #include <stdio.h>
  12305. #include <sys/types.h>
  12306. int
  12307. main ()
  12308. {
  12309. /*
  12310. * Check that off_t can represent 2**63 - 1 correctly.
  12311. * We can't simply "#define LARGE_OFF_T 9223372036854775807",
  12312. * since some C++ compilers masquerading as C compilers
  12313. * incorrectly reject 9223372036854775807.
  12314. *
  12315. * For MinGW, off64_t should be used and __MSVCRT_VERSION__ >= 0x0601
  12316. * (msvcrt.dll version 6.10 or higher) is needed for _fstat64 and _stat64.
  12317. */
  12318. #ifdef __MINGW32__
  12319. # define LARGE_OFF_T (((off64_t) 1 << 62) - 1 + ((off64_t) 1 << 62))
  12320. #else
  12321. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12322. #endif
  12323. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12324. && LARGE_OFF_T % 2147483647 == 1)
  12325. ? 1 : -1];
  12326. #ifdef __MINGW32__
  12327. return !fseeko64;
  12328. return !ftello64;
  12329. #else
  12330. return !fseeko;
  12331. return !ftello;
  12332. #endif
  12333. ;
  12334. return 0;
  12335. }
  12336. _ACEOF
  12337. if ac_fn_c_try_compile "$LINENO"; then :
  12338. ac_cv_largefiles=yes
  12339. else
  12340. ac_cv_largefiles=no
  12341. fi
  12342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_largefiles" >&5
  12344. $as_echo "$ac_cv_largefiles" >&6; }
  12345. if test $ac_cv_largefiles = yes; then
  12346. $as_echo "#define HAVE_LARGEFILES 1" >>confdefs.h
  12347. USE_LARGEFILES=1
  12348. else
  12349. USE_LARGEFILES=
  12350. LFS_CFLAGS=
  12351. fi
  12352. CFLAGS=${ac_save_cflags}
  12353. # Done large file support
  12354. USE_TERMIO=
  12355. STRIPFLAG=
  12356. GRASS_HOME="${DSTDIR}"
  12357. ac_config_files="$ac_config_files include/Make/Platform.make include/Make/Doxyfile_arch_html include/Make/Doxyfile_arch_latex include/version.h grass.pc"
  12358. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12359. # Let make expand exec_prefix.
  12360. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12361. DEFS=-DHAVE_CONFIG_H
  12362. ac_libobjs=
  12363. ac_ltlibobjs=
  12364. U=
  12365. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12366. # 1. Remove the extension, and $U if already installed.
  12367. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12368. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12369. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12370. # will be set to the directory where LIBOBJS objects are built.
  12371. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12372. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12373. done
  12374. LIBOBJS=$ac_libobjs
  12375. LTLIBOBJS=$ac_ltlibobjs
  12376. : "${CONFIG_STATUS=./config.status}"
  12377. ac_write_fail=0
  12378. ac_clean_files_save=$ac_clean_files
  12379. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12380. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12381. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12382. as_write_fail=0
  12383. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12384. #! $SHELL
  12385. # Generated by $as_me.
  12386. # Run this file to recreate the current configuration.
  12387. # Compiler output produced by configure, useful for debugging
  12388. # configure, is in config.log if it exists.
  12389. debug=false
  12390. ac_cs_recheck=false
  12391. ac_cs_silent=false
  12392. SHELL=\${CONFIG_SHELL-$SHELL}
  12393. export SHELL
  12394. _ASEOF
  12395. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12396. ## -------------------- ##
  12397. ## M4sh Initialization. ##
  12398. ## -------------------- ##
  12399. # Be more Bourne compatible
  12400. DUALCASE=1; export DUALCASE # for MKS sh
  12401. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12402. emulate sh
  12403. NULLCMD=:
  12404. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12405. # is contrary to our usage. Disable this feature.
  12406. alias -g '${1+"$@"}'='"$@"'
  12407. setopt NO_GLOB_SUBST
  12408. else
  12409. case `(set -o) 2>/dev/null` in #(
  12410. *posix*) :
  12411. set -o posix ;; #(
  12412. *) :
  12413. ;;
  12414. esac
  12415. fi
  12416. as_nl='
  12417. '
  12418. export as_nl
  12419. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12420. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12421. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12422. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12423. # Prefer a ksh shell builtin over an external printf program on Solaris,
  12424. # but without wasting forks for bash or zsh.
  12425. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12426. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12427. as_echo='print -r --'
  12428. as_echo_n='print -rn --'
  12429. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12430. as_echo='printf %s\n'
  12431. as_echo_n='printf %s'
  12432. else
  12433. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12434. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12435. as_echo_n='/usr/ucb/echo -n'
  12436. else
  12437. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12438. as_echo_n_body='eval
  12439. arg=$1;
  12440. case $arg in #(
  12441. *"$as_nl"*)
  12442. expr "X$arg" : "X\\(.*\\)$as_nl";
  12443. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12444. esac;
  12445. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12446. '
  12447. export as_echo_n_body
  12448. as_echo_n='sh -c $as_echo_n_body as_echo'
  12449. fi
  12450. export as_echo_body
  12451. as_echo='sh -c $as_echo_body as_echo'
  12452. fi
  12453. # The user is always right.
  12454. if test "${PATH_SEPARATOR+set}" != set; then
  12455. PATH_SEPARATOR=:
  12456. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12457. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12458. PATH_SEPARATOR=';'
  12459. }
  12460. fi
  12461. # IFS
  12462. # We need space, tab and new line, in precisely that order. Quoting is
  12463. # there to prevent editors from complaining about space-tab.
  12464. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12465. # splitting by setting IFS to empty value.)
  12466. IFS=" "" $as_nl"
  12467. # Find who we are. Look in the path if we contain no directory separator.
  12468. as_myself=
  12469. case $0 in #((
  12470. *[\\/]* ) as_myself=$0 ;;
  12471. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12472. for as_dir in $PATH
  12473. do
  12474. IFS=$as_save_IFS
  12475. test -z "$as_dir" && as_dir=.
  12476. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12477. done
  12478. IFS=$as_save_IFS
  12479. ;;
  12480. esac
  12481. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12482. # in which case we are not to be found in the path.
  12483. if test "x$as_myself" = x; then
  12484. as_myself=$0
  12485. fi
  12486. if test ! -f "$as_myself"; then
  12487. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12488. exit 1
  12489. fi
  12490. # Unset variables that we do not need and which cause bugs (e.g. in
  12491. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12492. # suppresses any "Segmentation fault" message there. '((' could
  12493. # trigger a bug in pdksh 5.2.14.
  12494. for as_var in BASH_ENV ENV MAIL MAILPATH
  12495. do eval test x\${$as_var+set} = xset \
  12496. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12497. done
  12498. PS1='$ '
  12499. PS2='> '
  12500. PS4='+ '
  12501. # NLS nuisances.
  12502. LC_ALL=C
  12503. export LC_ALL
  12504. LANGUAGE=C
  12505. export LANGUAGE
  12506. # CDPATH.
  12507. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12508. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  12509. # ----------------------------------------
  12510. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12511. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12512. # script with STATUS, using 1 if that was 0.
  12513. as_fn_error ()
  12514. {
  12515. as_status=$1; test $as_status -eq 0 && as_status=1
  12516. if test "$4"; then
  12517. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12518. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  12519. fi
  12520. $as_echo "$as_me: error: $2" >&2
  12521. as_fn_exit $as_status
  12522. } # as_fn_error
  12523. # as_fn_set_status STATUS
  12524. # -----------------------
  12525. # Set $? to STATUS, without forking.
  12526. as_fn_set_status ()
  12527. {
  12528. return $1
  12529. } # as_fn_set_status
  12530. # as_fn_exit STATUS
  12531. # -----------------
  12532. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12533. as_fn_exit ()
  12534. {
  12535. set +e
  12536. as_fn_set_status $1
  12537. exit $1
  12538. } # as_fn_exit
  12539. # as_fn_unset VAR
  12540. # ---------------
  12541. # Portably unset VAR.
  12542. as_fn_unset ()
  12543. {
  12544. { eval $1=; unset $1;}
  12545. }
  12546. as_unset=as_fn_unset
  12547. # as_fn_append VAR VALUE
  12548. # ----------------------
  12549. # Append the text in VALUE to the end of the definition contained in VAR. Take
  12550. # advantage of any shell optimizations that allow amortized linear growth over
  12551. # repeated appends, instead of the typical quadratic growth present in naive
  12552. # implementations.
  12553. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12554. eval 'as_fn_append ()
  12555. {
  12556. eval $1+=\$2
  12557. }'
  12558. else
  12559. as_fn_append ()
  12560. {
  12561. eval $1=\$$1\$2
  12562. }
  12563. fi # as_fn_append
  12564. # as_fn_arith ARG...
  12565. # ------------------
  12566. # Perform arithmetic evaluation on the ARGs, and store the result in the
  12567. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  12568. # must be portable across $(()) and expr.
  12569. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12570. eval 'as_fn_arith ()
  12571. {
  12572. as_val=$(( $* ))
  12573. }'
  12574. else
  12575. as_fn_arith ()
  12576. {
  12577. as_val=`expr "$@" || test $? -eq 1`
  12578. }
  12579. fi # as_fn_arith
  12580. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12581. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12582. as_expr=expr
  12583. else
  12584. as_expr=false
  12585. fi
  12586. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12587. as_basename=basename
  12588. else
  12589. as_basename=false
  12590. fi
  12591. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12592. as_dirname=dirname
  12593. else
  12594. as_dirname=false
  12595. fi
  12596. as_me=`$as_basename -- "$0" ||
  12597. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12598. X"$0" : 'X\(//\)$' \| \
  12599. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12600. $as_echo X/"$0" |
  12601. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12602. s//\1/
  12603. q
  12604. }
  12605. /^X\/\(\/\/\)$/{
  12606. s//\1/
  12607. q
  12608. }
  12609. /^X\/\(\/\).*/{
  12610. s//\1/
  12611. q
  12612. }
  12613. s/.*/./; q'`
  12614. # Avoid depending upon Character Ranges.
  12615. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12616. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12617. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12618. as_cr_digits='0123456789'
  12619. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12620. ECHO_C= ECHO_N= ECHO_T=
  12621. case `echo -n x` in #(((((
  12622. -n*)
  12623. case `echo 'xy\c'` in
  12624. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12625. xy) ECHO_C='\c';;
  12626. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12627. ECHO_T=' ';;
  12628. esac;;
  12629. *)
  12630. ECHO_N='-n';;
  12631. esac
  12632. rm -f conf$$ conf$$.exe conf$$.file
  12633. if test -d conf$$.dir; then
  12634. rm -f conf$$.dir/conf$$.file
  12635. else
  12636. rm -f conf$$.dir
  12637. mkdir conf$$.dir 2>/dev/null
  12638. fi
  12639. if (echo >conf$$.file) 2>/dev/null; then
  12640. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12641. as_ln_s='ln -s'
  12642. # ... but there are two gotchas:
  12643. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12644. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12645. # In both cases, we have to default to `cp -pR'.
  12646. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12647. as_ln_s='cp -pR'
  12648. elif ln conf$$.file conf$$ 2>/dev/null; then
  12649. as_ln_s=ln
  12650. else
  12651. as_ln_s='cp -pR'
  12652. fi
  12653. else
  12654. as_ln_s='cp -pR'
  12655. fi
  12656. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12657. rmdir conf$$.dir 2>/dev/null
  12658. # as_fn_mkdir_p
  12659. # -------------
  12660. # Create "$as_dir" as a directory, including parents if necessary.
  12661. as_fn_mkdir_p ()
  12662. {
  12663. case $as_dir in #(
  12664. -*) as_dir=./$as_dir;;
  12665. esac
  12666. test -d "$as_dir" || eval $as_mkdir_p || {
  12667. as_dirs=
  12668. while :; do
  12669. case $as_dir in #(
  12670. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12671. *) as_qdir=$as_dir;;
  12672. esac
  12673. as_dirs="'$as_qdir' $as_dirs"
  12674. as_dir=`$as_dirname -- "$as_dir" ||
  12675. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12676. X"$as_dir" : 'X\(//\)[^/]' \| \
  12677. X"$as_dir" : 'X\(//\)$' \| \
  12678. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12679. $as_echo X"$as_dir" |
  12680. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12681. s//\1/
  12682. q
  12683. }
  12684. /^X\(\/\/\)[^/].*/{
  12685. s//\1/
  12686. q
  12687. }
  12688. /^X\(\/\/\)$/{
  12689. s//\1/
  12690. q
  12691. }
  12692. /^X\(\/\).*/{
  12693. s//\1/
  12694. q
  12695. }
  12696. s/.*/./; q'`
  12697. test -d "$as_dir" && break
  12698. done
  12699. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12700. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  12701. } # as_fn_mkdir_p
  12702. if mkdir -p . 2>/dev/null; then
  12703. as_mkdir_p='mkdir -p "$as_dir"'
  12704. else
  12705. test -d ./-p && rmdir ./-p
  12706. as_mkdir_p=false
  12707. fi
  12708. # as_fn_executable_p FILE
  12709. # -----------------------
  12710. # Test if FILE is an executable regular file.
  12711. as_fn_executable_p ()
  12712. {
  12713. test -f "$1" && test -x "$1"
  12714. } # as_fn_executable_p
  12715. as_test_x='test -x'
  12716. as_executable_p=as_fn_executable_p
  12717. # Sed expression to map a string onto a valid CPP name.
  12718. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12719. # Sed expression to map a string onto a valid variable name.
  12720. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12721. exec 6>&1
  12722. ## ----------------------------------- ##
  12723. ## Main body of $CONFIG_STATUS script. ##
  12724. ## ----------------------------------- ##
  12725. _ASEOF
  12726. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  12727. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12728. # Save the log message, to keep $0 and so on meaningful, and to
  12729. # report actual input values of CONFIG_FILES etc. instead of their
  12730. # values after options handling.
  12731. ac_log="
  12732. This file was extended by $as_me, which was
  12733. generated by GNU Autoconf 2.69. Invocation command line was
  12734. CONFIG_FILES = $CONFIG_FILES
  12735. CONFIG_HEADERS = $CONFIG_HEADERS
  12736. CONFIG_LINKS = $CONFIG_LINKS
  12737. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12738. $ $0 $@
  12739. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12740. "
  12741. _ACEOF
  12742. case $ac_config_files in *"
  12743. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12744. esac
  12745. case $ac_config_headers in *"
  12746. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  12747. esac
  12748. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12749. # Files that config.status was made for.
  12750. config_files="$ac_config_files"
  12751. config_headers="$ac_config_headers"
  12752. _ACEOF
  12753. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12754. ac_cs_usage="\
  12755. \`$as_me' instantiates files and other configuration actions
  12756. from templates according to the current configuration. Unless the files
  12757. and actions are specified as TAGs, all are instantiated by default.
  12758. Usage: $0 [OPTION]... [TAG]...
  12759. -h, --help print this help, then exit
  12760. -V, --version print version number and configuration settings, then exit
  12761. --config print configuration, then exit
  12762. -q, --quiet, --silent
  12763. do not print progress messages
  12764. -d, --debug don't remove temporary files
  12765. --recheck update $as_me by reconfiguring in the same conditions
  12766. --file=FILE[:TEMPLATE]
  12767. instantiate the configuration file FILE
  12768. --header=FILE[:TEMPLATE]
  12769. instantiate the configuration header FILE
  12770. Configuration files:
  12771. $config_files
  12772. Configuration headers:
  12773. $config_headers
  12774. Report bugs to the package provider."
  12775. _ACEOF
  12776. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12777. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  12778. ac_cs_version="\\
  12779. config.status
  12780. configured by $0, generated by GNU Autoconf 2.69,
  12781. with options \\"\$ac_cs_config\\"
  12782. Copyright (C) 2012 Free Software Foundation, Inc.
  12783. This config.status script is free software; the Free Software Foundation
  12784. gives unlimited permission to copy, distribute and modify it."
  12785. ac_pwd='$ac_pwd'
  12786. srcdir='$srcdir'
  12787. INSTALL='$INSTALL'
  12788. test -n "\$AWK" || AWK=awk
  12789. _ACEOF
  12790. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12791. # The default lists apply if the user does not specify any file.
  12792. ac_need_defaults=:
  12793. while test $# != 0
  12794. do
  12795. case $1 in
  12796. --*=?*)
  12797. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12798. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12799. ac_shift=:
  12800. ;;
  12801. --*=)
  12802. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12803. ac_optarg=
  12804. ac_shift=:
  12805. ;;
  12806. *)
  12807. ac_option=$1
  12808. ac_optarg=$2
  12809. ac_shift=shift
  12810. ;;
  12811. esac
  12812. case $ac_option in
  12813. # Handling of the options.
  12814. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12815. ac_cs_recheck=: ;;
  12816. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12817. $as_echo "$ac_cs_version"; exit ;;
  12818. --config | --confi | --conf | --con | --co | --c )
  12819. $as_echo "$ac_cs_config"; exit ;;
  12820. --debug | --debu | --deb | --de | --d | -d )
  12821. debug=: ;;
  12822. --file | --fil | --fi | --f )
  12823. $ac_shift
  12824. case $ac_optarg in
  12825. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12826. '') as_fn_error $? "missing file argument" ;;
  12827. esac
  12828. as_fn_append CONFIG_FILES " '$ac_optarg'"
  12829. ac_need_defaults=false;;
  12830. --header | --heade | --head | --hea )
  12831. $ac_shift
  12832. case $ac_optarg in
  12833. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12834. esac
  12835. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  12836. ac_need_defaults=false;;
  12837. --he | --h)
  12838. # Conflict between --help and --header
  12839. as_fn_error $? "ambiguous option: \`$1'
  12840. Try \`$0 --help' for more information.";;
  12841. --help | --hel | -h )
  12842. $as_echo "$ac_cs_usage"; exit ;;
  12843. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12844. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12845. ac_cs_silent=: ;;
  12846. # This is an error.
  12847. -*) as_fn_error $? "unrecognized option: \`$1'
  12848. Try \`$0 --help' for more information." ;;
  12849. *) as_fn_append ac_config_targets " $1"
  12850. ac_need_defaults=false ;;
  12851. esac
  12852. shift
  12853. done
  12854. ac_configure_extra_args=
  12855. if $ac_cs_silent; then
  12856. exec 6>/dev/null
  12857. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12858. fi
  12859. _ACEOF
  12860. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12861. if \$ac_cs_recheck; then
  12862. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12863. shift
  12864. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  12865. CONFIG_SHELL='$SHELL'
  12866. export CONFIG_SHELL
  12867. exec "\$@"
  12868. fi
  12869. _ACEOF
  12870. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12871. exec 5>>config.log
  12872. {
  12873. echo
  12874. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12875. ## Running $as_me. ##
  12876. _ASBOX
  12877. $as_echo "$ac_log"
  12878. } >&5
  12879. _ACEOF
  12880. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12881. _ACEOF
  12882. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12883. # Handling of arguments.
  12884. for ac_config_target in $ac_config_targets
  12885. do
  12886. case $ac_config_target in
  12887. "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
  12888. "include/Make/Platform.make") CONFIG_FILES="$CONFIG_FILES include/Make/Platform.make" ;;
  12889. "include/Make/Doxyfile_arch_html") CONFIG_FILES="$CONFIG_FILES include/Make/Doxyfile_arch_html" ;;
  12890. "include/Make/Doxyfile_arch_latex") CONFIG_FILES="$CONFIG_FILES include/Make/Doxyfile_arch_latex" ;;
  12891. "include/version.h") CONFIG_FILES="$CONFIG_FILES include/version.h" ;;
  12892. "grass.pc") CONFIG_FILES="$CONFIG_FILES grass.pc" ;;
  12893. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  12894. esac
  12895. done
  12896. # If the user did not use the arguments to specify the items to instantiate,
  12897. # then the envvar interface is used. Set only those that are not.
  12898. # We use the long form for the default assignment because of an extremely
  12899. # bizarre bug on SunOS 4.1.3.
  12900. if $ac_need_defaults; then
  12901. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12902. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12903. fi
  12904. # Have a temporary directory for convenience. Make it in the build tree
  12905. # simply because there is no reason against having it here, and in addition,
  12906. # creating and moving files from /tmp can sometimes cause problems.
  12907. # Hook for its removal unless debugging.
  12908. # Note that there is a small window in which the directory will not be cleaned:
  12909. # after its creation but before its name has been assigned to `$tmp'.
  12910. $debug ||
  12911. {
  12912. tmp= ac_tmp=
  12913. trap 'exit_status=$?
  12914. : "${ac_tmp:=$tmp}"
  12915. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  12916. ' 0
  12917. trap 'as_fn_exit 1' 1 2 13 15
  12918. }
  12919. # Create a (secure) tmp directory for tmp files.
  12920. {
  12921. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12922. test -d "$tmp"
  12923. } ||
  12924. {
  12925. tmp=./conf$$-$RANDOM
  12926. (umask 077 && mkdir "$tmp")
  12927. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  12928. ac_tmp=$tmp
  12929. # Set up the scripts for CONFIG_FILES section.
  12930. # No need to generate them if there are no CONFIG_FILES.
  12931. # This happens for instance with `./config.status config.h'.
  12932. if test -n "$CONFIG_FILES"; then
  12933. ac_cr=`echo X | tr X '\015'`
  12934. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  12935. # But we know of no other shell where ac_cr would be empty at this
  12936. # point, so we can use a bashism as a fallback.
  12937. if test "x$ac_cr" = x; then
  12938. eval ac_cr=\$\'\\r\'
  12939. fi
  12940. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12941. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12942. ac_cs_awk_cr='\\r'
  12943. else
  12944. ac_cs_awk_cr=$ac_cr
  12945. fi
  12946. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  12947. _ACEOF
  12948. {
  12949. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12950. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12951. echo "_ACEOF"
  12952. } >conf$$subs.sh ||
  12953. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12954. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  12955. ac_delim='%!_!# '
  12956. for ac_last_try in false false false false false :; do
  12957. . ./conf$$subs.sh ||
  12958. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12959. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  12960. if test $ac_delim_n = $ac_delim_num; then
  12961. break
  12962. elif $ac_last_try; then
  12963. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12964. else
  12965. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12966. fi
  12967. done
  12968. rm -f conf$$subs.sh
  12969. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12970. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  12971. _ACEOF
  12972. sed -n '
  12973. h
  12974. s/^/S["/; s/!.*/"]=/
  12975. p
  12976. g
  12977. s/^[^!]*!//
  12978. :repl
  12979. t repl
  12980. s/'"$ac_delim"'$//
  12981. t delim
  12982. :nl
  12983. h
  12984. s/\(.\{148\}\)..*/\1/
  12985. t more1
  12986. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12987. p
  12988. n
  12989. b repl
  12990. :more1
  12991. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12992. p
  12993. g
  12994. s/.\{148\}//
  12995. t nl
  12996. :delim
  12997. h
  12998. s/\(.\{148\}\)..*/\1/
  12999. t more2
  13000. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13001. p
  13002. b
  13003. :more2
  13004. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13005. p
  13006. g
  13007. s/.\{148\}//
  13008. t delim
  13009. ' <conf$$subs.awk | sed '
  13010. /^[^""]/{
  13011. N
  13012. s/\n//
  13013. }
  13014. ' >>$CONFIG_STATUS || ac_write_fail=1
  13015. rm -f conf$$subs.awk
  13016. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13017. _ACAWK
  13018. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  13019. for (key in S) S_is_set[key] = 1
  13020. FS = ""
  13021. }
  13022. {
  13023. line = $ 0
  13024. nfields = split(line, field, "@")
  13025. substed = 0
  13026. len = length(field[1])
  13027. for (i = 2; i < nfields; i++) {
  13028. key = field[i]
  13029. keylen = length(key)
  13030. if (S_is_set[key]) {
  13031. value = S[key]
  13032. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13033. len += length(value) + length(field[++i])
  13034. substed = 1
  13035. } else
  13036. len += 1 + keylen
  13037. }
  13038. print line
  13039. }
  13040. _ACAWK
  13041. _ACEOF
  13042. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13043. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13044. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13045. else
  13046. cat
  13047. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  13048. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  13049. _ACEOF
  13050. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  13051. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  13052. # trailing colons and then remove the whole line if VPATH becomes empty
  13053. # (actually we leave an empty line to preserve line numbers).
  13054. if test "x$srcdir" = x.; then
  13055. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  13056. h
  13057. s///
  13058. s/^/:/
  13059. s/[ ]*$/:/
  13060. s/:\$(srcdir):/:/g
  13061. s/:\${srcdir}:/:/g
  13062. s/:@srcdir@:/:/g
  13063. s/^:*//
  13064. s/:*$//
  13065. x
  13066. s/\(=[ ]*\).*/\1/
  13067. G
  13068. s/\n//
  13069. s/^[^=]*=[ ]*$//
  13070. }'
  13071. fi
  13072. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13073. fi # test -n "$CONFIG_FILES"
  13074. # Set up the scripts for CONFIG_HEADERS section.
  13075. # No need to generate them if there are no CONFIG_HEADERS.
  13076. # This happens for instance with `./config.status Makefile'.
  13077. if test -n "$CONFIG_HEADERS"; then
  13078. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  13079. BEGIN {
  13080. _ACEOF
  13081. # Transform confdefs.h into an awk script `defines.awk', embedded as
  13082. # here-document in config.status, that substitutes the proper values into
  13083. # config.h.in to produce config.h.
  13084. # Create a delimiter string that does not exist in confdefs.h, to ease
  13085. # handling of long lines.
  13086. ac_delim='%!_!# '
  13087. for ac_last_try in false false :; do
  13088. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  13089. if test -z "$ac_tt"; then
  13090. break
  13091. elif $ac_last_try; then
  13092. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  13093. else
  13094. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13095. fi
  13096. done
  13097. # For the awk script, D is an array of macro values keyed by name,
  13098. # likewise P contains macro parameters if any. Preserve backslash
  13099. # newline sequences.
  13100. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13101. sed -n '
  13102. s/.\{148\}/&'"$ac_delim"'/g
  13103. t rset
  13104. :rset
  13105. s/^[ ]*#[ ]*define[ ][ ]*/ /
  13106. t def
  13107. d
  13108. :def
  13109. s/\\$//
  13110. t bsnl
  13111. s/["\\]/\\&/g
  13112. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13113. D["\1"]=" \3"/p
  13114. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  13115. d
  13116. :bsnl
  13117. s/["\\]/\\&/g
  13118. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13119. D["\1"]=" \3\\\\\\n"\\/p
  13120. t cont
  13121. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13122. t cont
  13123. d
  13124. :cont
  13125. n
  13126. s/.\{148\}/&'"$ac_delim"'/g
  13127. t clear
  13128. :clear
  13129. s/\\$//
  13130. t bsnlc
  13131. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13132. d
  13133. :bsnlc
  13134. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13135. b cont
  13136. ' <confdefs.h | sed '
  13137. s/'"$ac_delim"'/"\\\
  13138. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13139. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13140. for (key in D) D_is_set[key] = 1
  13141. FS = ""
  13142. }
  13143. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13144. line = \$ 0
  13145. split(line, arg, " ")
  13146. if (arg[1] == "#") {
  13147. defundef = arg[2]
  13148. mac1 = arg[3]
  13149. } else {
  13150. defundef = substr(arg[1], 2)
  13151. mac1 = arg[2]
  13152. }
  13153. split(mac1, mac2, "(") #)
  13154. macro = mac2[1]
  13155. prefix = substr(line, 1, index(line, defundef) - 1)
  13156. if (D_is_set[macro]) {
  13157. # Preserve the white space surrounding the "#".
  13158. print prefix "define", macro P[macro] D[macro]
  13159. next
  13160. } else {
  13161. # Replace #undef with comments. This is necessary, for example,
  13162. # in the case of _POSIX_SOURCE, which is predefined and required
  13163. # on some systems where configure will not decide to define it.
  13164. if (defundef == "undef") {
  13165. print "/*", prefix defundef, macro, "*/"
  13166. next
  13167. }
  13168. }
  13169. }
  13170. { print }
  13171. _ACAWK
  13172. _ACEOF
  13173. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13174. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  13175. fi # test -n "$CONFIG_HEADERS"
  13176. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  13177. shift
  13178. for ac_tag
  13179. do
  13180. case $ac_tag in
  13181. :[FHLC]) ac_mode=$ac_tag; continue;;
  13182. esac
  13183. case $ac_mode$ac_tag in
  13184. :[FHL]*:*);;
  13185. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13186. :[FH]-) ac_tag=-:-;;
  13187. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13188. esac
  13189. ac_save_IFS=$IFS
  13190. IFS=:
  13191. set x $ac_tag
  13192. IFS=$ac_save_IFS
  13193. shift
  13194. ac_file=$1
  13195. shift
  13196. case $ac_mode in
  13197. :L) ac_source=$1;;
  13198. :[FH])
  13199. ac_file_inputs=
  13200. for ac_f
  13201. do
  13202. case $ac_f in
  13203. -) ac_f="$ac_tmp/stdin";;
  13204. *) # Look for the file first in the build tree, then in the source tree
  13205. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13206. # because $ac_f cannot contain `:'.
  13207. test -f "$ac_f" ||
  13208. case $ac_f in
  13209. [\\/$]*) false;;
  13210. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13211. esac ||
  13212. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13213. esac
  13214. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13215. as_fn_append ac_file_inputs " '$ac_f'"
  13216. done
  13217. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13218. # use $as_me), people would be surprised to read:
  13219. # /* config.h. Generated by config.status. */
  13220. configure_input='Generated from '`
  13221. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13222. `' by configure.'
  13223. if test x"$ac_file" != x-; then
  13224. configure_input="$ac_file. $configure_input"
  13225. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13226. $as_echo "$as_me: creating $ac_file" >&6;}
  13227. fi
  13228. # Neutralize special characters interpreted by sed in replacement strings.
  13229. case $configure_input in #(
  13230. *\&* | *\|* | *\\* )
  13231. ac_sed_conf_input=`$as_echo "$configure_input" |
  13232. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13233. *) ac_sed_conf_input=$configure_input;;
  13234. esac
  13235. case $ac_tag in
  13236. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  13237. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  13238. esac
  13239. ;;
  13240. esac
  13241. ac_dir=`$as_dirname -- "$ac_file" ||
  13242. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13243. X"$ac_file" : 'X\(//\)[^/]' \| \
  13244. X"$ac_file" : 'X\(//\)$' \| \
  13245. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13246. $as_echo X"$ac_file" |
  13247. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13248. s//\1/
  13249. q
  13250. }
  13251. /^X\(\/\/\)[^/].*/{
  13252. s//\1/
  13253. q
  13254. }
  13255. /^X\(\/\/\)$/{
  13256. s//\1/
  13257. q
  13258. }
  13259. /^X\(\/\).*/{
  13260. s//\1/
  13261. q
  13262. }
  13263. s/.*/./; q'`
  13264. as_dir="$ac_dir"; as_fn_mkdir_p
  13265. ac_builddir=.
  13266. case "$ac_dir" in
  13267. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13268. *)
  13269. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13270. # A ".." for each directory in $ac_dir_suffix.
  13271. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13272. case $ac_top_builddir_sub in
  13273. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13274. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13275. esac ;;
  13276. esac
  13277. ac_abs_top_builddir=$ac_pwd
  13278. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13279. # for backward compatibility:
  13280. ac_top_builddir=$ac_top_build_prefix
  13281. case $srcdir in
  13282. .) # We are building in place.
  13283. ac_srcdir=.
  13284. ac_top_srcdir=$ac_top_builddir_sub
  13285. ac_abs_top_srcdir=$ac_pwd ;;
  13286. [\\/]* | ?:[\\/]* ) # Absolute name.
  13287. ac_srcdir=$srcdir$ac_dir_suffix;
  13288. ac_top_srcdir=$srcdir
  13289. ac_abs_top_srcdir=$srcdir ;;
  13290. *) # Relative name.
  13291. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13292. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13293. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13294. esac
  13295. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13296. case $ac_mode in
  13297. :F)
  13298. #
  13299. # CONFIG_FILE
  13300. #
  13301. case $INSTALL in
  13302. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13303. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13304. esac
  13305. _ACEOF
  13306. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13307. # If the template does not know about datarootdir, expand it.
  13308. # FIXME: This hack should be removed a few years after 2.60.
  13309. ac_datarootdir_hack=; ac_datarootdir_seen=
  13310. ac_sed_dataroot='
  13311. /datarootdir/ {
  13312. p
  13313. q
  13314. }
  13315. /@datadir@/p
  13316. /@docdir@/p
  13317. /@infodir@/p
  13318. /@localedir@/p
  13319. /@mandir@/p'
  13320. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13321. *datarootdir*) ac_datarootdir_seen=yes;;
  13322. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13323. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13324. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13325. _ACEOF
  13326. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13327. ac_datarootdir_hack='
  13328. s&@datadir@&$datadir&g
  13329. s&@docdir@&$docdir&g
  13330. s&@infodir@&$infodir&g
  13331. s&@localedir@&$localedir&g
  13332. s&@mandir@&$mandir&g
  13333. s&\\\${datarootdir}&$datarootdir&g' ;;
  13334. esac
  13335. _ACEOF
  13336. # Neutralize VPATH when `$srcdir' = `.'.
  13337. # Shell code in configure.ac might set extrasub.
  13338. # FIXME: do we really want to maintain this feature?
  13339. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13340. ac_sed_extra="$ac_vpsub
  13341. $extrasub
  13342. _ACEOF
  13343. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13344. :t
  13345. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13346. s|@configure_input@|$ac_sed_conf_input|;t t
  13347. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13348. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13349. s&@srcdir@&$ac_srcdir&;t t
  13350. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13351. s&@top_srcdir@&$ac_top_srcdir&;t t
  13352. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13353. s&@builddir@&$ac_builddir&;t t
  13354. s&@abs_builddir@&$ac_abs_builddir&;t t
  13355. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13356. s&@INSTALL@&$ac_INSTALL&;t t
  13357. $ac_datarootdir_hack
  13358. "
  13359. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  13360. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13361. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13362. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  13363. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  13364. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  13365. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13366. which seems to be undefined. Please make sure it is defined" >&5
  13367. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13368. which seems to be undefined. Please make sure it is defined" >&2;}
  13369. rm -f "$ac_tmp/stdin"
  13370. case $ac_file in
  13371. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  13372. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  13373. esac \
  13374. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13375. ;;
  13376. :H)
  13377. #
  13378. # CONFIG_HEADER
  13379. #
  13380. if test x"$ac_file" != x-; then
  13381. {
  13382. $as_echo "/* $configure_input */" \
  13383. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  13384. } >"$ac_tmp/config.h" \
  13385. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13386. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  13387. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  13388. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13389. else
  13390. rm -f "$ac_file"
  13391. mv "$ac_tmp/config.h" "$ac_file" \
  13392. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13393. fi
  13394. else
  13395. $as_echo "/* $configure_input */" \
  13396. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  13397. || as_fn_error $? "could not create -" "$LINENO" 5
  13398. fi
  13399. ;;
  13400. esac
  13401. done # for ac_tag
  13402. as_fn_exit 0
  13403. _ACEOF
  13404. ac_clean_files=$ac_clean_files_save
  13405. test $ac_write_fail = 0 ||
  13406. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  13407. # configure is writing to config.log, and then calls config.status.
  13408. # config.status does its own redirection, appending to config.log.
  13409. # Unfortunately, on DOS this fails, as config.log is still kept open
  13410. # by configure, so config.status won't be able to write to it; its
  13411. # output is simply discarded. So we exec the FD to /dev/null,
  13412. # effectively closing config.log, so it can be properly (re)opened and
  13413. # appended to by config.status. When coming back to configure, we
  13414. # need to make the FD available again.
  13415. if test "$no_create" != yes; then
  13416. ac_cs_success=:
  13417. ac_config_status_args=
  13418. test "$silent" = yes &&
  13419. ac_config_status_args="$ac_config_status_args --quiet"
  13420. exec 5>/dev/null
  13421. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13422. exec 5>>config.log
  13423. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13424. # would make configure fail if this is the last instruction.
  13425. $ac_cs_success || as_fn_exit 1
  13426. fi
  13427. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13428. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13429. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13430. fi
  13431. echo "Copying config.status to config.status.${ARCH}"
  13432. cp -f config.status config.status.${ARCH}
  13433. # Display configuration status
  13434. echo ""
  13435. echo "GRASS is now configured for: ${host}"
  13436. echo ""
  13437. echo " Source directory: ${SRCDIR}"
  13438. echo " Build directory: ${DSTDIR}"
  13439. echo " Installation directory: ${INSTDIR}"
  13440. echo " Startup script in directory:${bindir}"
  13441. echo " C compiler: ${CC} ${CFLAGS}"
  13442. echo " C++ compiler: ${CXX} ${CXXFLAGS}"
  13443. echo " Building shared libraries: ${shared_ok}"
  13444. echo " OpenGL platform: ${OPENGL_TYPE}"
  13445. echo ""
  13446. echo " MacOSX application: `if test -n "${MACOSX_APP}" ; then echo yes ; else echo no ; fi`"
  13447. echo " MacOSX architectures: ${MACOSX_ARCHS}"
  13448. echo " MacOSX SDK: ${MACOSX_SDK}"
  13449. echo ""
  13450. echo " BLAS support: `if test -n "${USE_BLAS}" ; then echo yes ; else echo no ; fi`"
  13451. echo " BZIP2 support: `if test -n "${USE_BZIP2}" ; then echo yes ; else echo no ; fi`"
  13452. echo " C++ support: `if test -n "${USE_CXX}" ; then echo yes ; else echo no ; fi`"
  13453. echo " Cairo support: `if test -n "${USE_CAIRO}" ; then echo yes ; else echo no ; fi`"
  13454. echo " DWG support: `if test -n "${USE_OPENDWG}" ; then echo yes ; else echo no ; fi`"
  13455. echo " FFTW support: `if test -n "${USE_FFTW}" ; then echo yes ; else echo no ; fi`"
  13456. echo " FreeType support: `if test -n "${USE_FREETYPE}" ; then echo yes ; else echo no ; fi`"
  13457. echo " GDAL support: `if test -n "${USE_GDAL}" ; then echo yes ; else echo no ; fi`"
  13458. echo " GEOS support: `if test -n "${USE_GEOS}" ; then echo yes ; else echo no ; fi`"
  13459. echo " LAPACK support: `if test -n "${USE_LAPACK}" ; then echo yes ; else echo no ; fi`"
  13460. echo " Large File support (LFS): `if test -n "${USE_LARGEFILES}" ; then echo yes ; else echo no ; fi`"
  13461. echo " libLAS support: `if test -n "${USE_LIBLAS}" ; then echo yes ; else echo no ; fi`"
  13462. echo " MySQL support: `if test -n "${USE_MYSQL}" ; then echo yes ; else echo no ; fi`"
  13463. echo " NetCDF support: `if test -n "${USE_NETCDF}" ; then echo yes ; else echo no ; fi`"
  13464. echo " NLS support: `if test -n "${USE_NLS}" ; then echo yes ; else echo no ; fi`"
  13465. echo " ODBC support: `if test -n "${USE_ODBC}" ; then echo yes ; else echo no ; fi`"
  13466. echo " OGR support: `if test -n "${USE_OGR}" ; then echo yes ; else echo no ; fi`"
  13467. echo " OpenCL support: `if test -n "${USE_OPENCL}" ; then echo yes ; else echo no ; fi`"
  13468. echo " OpenGL support: `if test -n "${USE_OPENGL}" ; then echo yes ; else echo no ; fi`"
  13469. echo " OpenMP support: `if test -n "${USE_OPENMP}" ; then echo yes ; else echo no ; fi`"
  13470. echo " PDAL support: `if test -n "${USE_PDAL}" ; then echo yes ; else echo no ; fi`"
  13471. echo " PNG support: `if test -n "${USE_PNG}" ; then echo yes ; else echo no ; fi`"
  13472. echo " POSIX thread support: `if test -n "${USE_PTHREAD}" ; then echo yes ; else echo no ; fi`"
  13473. echo " PostgreSQL support: `if test -n "${USE_POSTGRES}" ; then echo yes ; else echo no ; fi`"
  13474. echo " Readline support: `if test -n "${USE_READLINE}" ; then echo yes ; else echo no ; fi`"
  13475. echo " Regex support: `if test -n "${USE_REGEX}" ; then echo yes ; else echo no ; fi`"
  13476. echo " SQLite support: `if test -n "${USE_SQLITE}" ; then echo yes ; else echo no ; fi`"
  13477. echo " TIFF support: `if test -n "${USE_TIFF}" ; then echo yes ; else echo no ; fi`"
  13478. echo " X11 support: `if test -n "${USE_X11}" ; then echo yes ; else echo no ; fi`"
  13479. echo " Zstandard support: `if test -n "${USE_ZSTD}" ; then echo yes ; else echo no ; fi`"
  13480. echo ""
  13481. # remove when the new PROJ API is stable
  13482. if test $PROJ4API = 0 ; then
  13483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using new PROJ 5+ API" >&5
  13484. $as_echo " using new PROJ 5+ API" >&6; }
  13485. else
  13486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using old PROJ 4 API" >&5
  13487. $as_echo " using old PROJ 4 API" >&6; }
  13488. fi
  13489. echo ""