configure 177 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457
  1. #! /bin/sh
  2. # From configure.in Revision: 12803 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.61.
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10. ## --------------------- ##
  11. ## M4sh Initialization. ##
  12. ## --------------------- ##
  13. # Be more Bourne compatible
  14. DUALCASE=1; export DUALCASE # for MKS sh
  15. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  16. emulate sh
  17. NULLCMD=:
  18. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19. # is contrary to our usage. Disable this feature.
  20. alias -g '${1+"$@"}'='"$@"'
  21. setopt NO_GLOB_SUBST
  22. else
  23. case `(set -o) 2>/dev/null` in
  24. *posix*) set -o posix ;;
  25. esac
  26. fi
  27. # PATH needs CR
  28. # Avoid depending upon Character Ranges.
  29. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  30. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  31. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  32. as_cr_digits='0123456789'
  33. as_cr_alnum=$as_cr_Letters$as_cr_digits
  34. # The user is always right.
  35. if test "${PATH_SEPARATOR+set}" != set; then
  36. echo "#! /bin/sh" >conf$$.sh
  37. echo "exit 0" >>conf$$.sh
  38. chmod +x conf$$.sh
  39. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  40. PATH_SEPARATOR=';'
  41. else
  42. PATH_SEPARATOR=:
  43. fi
  44. rm -f conf$$.sh
  45. fi
  46. # Support unset when possible.
  47. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  48. as_unset=unset
  49. else
  50. as_unset=false
  51. fi
  52. # IFS
  53. # We need space, tab and new line, in precisely that order. Quoting is
  54. # there to prevent editors from complaining about space-tab.
  55. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  56. # splitting by setting IFS to empty value.)
  57. as_nl='
  58. '
  59. IFS=" "" $as_nl"
  60. # Find who we are. Look in the path if we contain no directory separator.
  61. case $0 in
  62. *[\\/]* ) as_myself=$0 ;;
  63. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  64. for as_dir in $PATH
  65. do
  66. IFS=$as_save_IFS
  67. test -z "$as_dir" && as_dir=.
  68. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  69. done
  70. IFS=$as_save_IFS
  71. ;;
  72. esac
  73. # We did not find ourselves, most probably we were run as `sh COMMAND'
  74. # in which case we are not to be found in the path.
  75. if test "x$as_myself" = x; then
  76. as_myself=$0
  77. fi
  78. if test ! -f "$as_myself"; then
  79. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  80. { (exit 1); exit 1; }
  81. fi
  82. # Work around bugs in pre-3.0 UWIN ksh.
  83. for as_var in ENV MAIL MAILPATH
  84. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  85. done
  86. PS1='$ '
  87. PS2='> '
  88. PS4='+ '
  89. # NLS nuisances.
  90. for as_var in \
  91. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  92. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  93. LC_TELEPHONE LC_TIME
  94. do
  95. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  96. eval $as_var=C; export $as_var
  97. else
  98. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  99. fi
  100. done
  101. # Required to use basename.
  102. if expr a : '\(a\)' >/dev/null 2>&1 &&
  103. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  104. as_expr=expr
  105. else
  106. as_expr=false
  107. fi
  108. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  109. as_basename=basename
  110. else
  111. as_basename=false
  112. fi
  113. # Name of the executable.
  114. as_me=`$as_basename -- "$0" ||
  115. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  116. X"$0" : 'X\(//\)$' \| \
  117. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  118. echo X/"$0" |
  119. sed '/^.*\/\([^/][^/]*\)\/*$/{
  120. s//\1/
  121. q
  122. }
  123. /^X\/\(\/\/\)$/{
  124. s//\1/
  125. q
  126. }
  127. /^X\/\(\/\).*/{
  128. s//\1/
  129. q
  130. }
  131. s/.*/./; q'`
  132. # CDPATH.
  133. $as_unset CDPATH
  134. if test "x$CONFIG_SHELL" = x; then
  135. if (eval ":") 2>/dev/null; then
  136. as_have_required=yes
  137. else
  138. as_have_required=no
  139. fi
  140. if test $as_have_required = yes && (eval ":
  141. (as_func_return () {
  142. (exit \$1)
  143. }
  144. as_func_success () {
  145. as_func_return 0
  146. }
  147. as_func_failure () {
  148. as_func_return 1
  149. }
  150. as_func_ret_success () {
  151. return 0
  152. }
  153. as_func_ret_failure () {
  154. return 1
  155. }
  156. exitcode=0
  157. if as_func_success; then
  158. :
  159. else
  160. exitcode=1
  161. echo as_func_success failed.
  162. fi
  163. if as_func_failure; then
  164. exitcode=1
  165. echo as_func_failure succeeded.
  166. fi
  167. if as_func_ret_success; then
  168. :
  169. else
  170. exitcode=1
  171. echo as_func_ret_success failed.
  172. fi
  173. if as_func_ret_failure; then
  174. exitcode=1
  175. echo as_func_ret_failure succeeded.
  176. fi
  177. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  178. :
  179. else
  180. exitcode=1
  181. echo positional parameters were not saved.
  182. fi
  183. test \$exitcode = 0) || { (exit 1); exit 1; }
  184. (
  185. as_lineno_1=\$LINENO
  186. as_lineno_2=\$LINENO
  187. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  188. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  189. ") 2> /dev/null; then
  190. :
  191. else
  192. as_candidate_shells=
  193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  194. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  195. do
  196. IFS=$as_save_IFS
  197. test -z "$as_dir" && as_dir=.
  198. case $as_dir in
  199. /*)
  200. for as_base in sh bash ksh sh5; do
  201. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  202. done;;
  203. esac
  204. done
  205. IFS=$as_save_IFS
  206. for as_shell in $as_candidate_shells $SHELL; do
  207. # Try only shells that exist, to save several forks.
  208. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  209. { ("$as_shell") 2> /dev/null <<\_ASEOF
  210. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  211. emulate sh
  212. NULLCMD=:
  213. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  214. # is contrary to our usage. Disable this feature.
  215. alias -g '${1+"$@"}'='"$@"'
  216. setopt NO_GLOB_SUBST
  217. else
  218. case `(set -o) 2>/dev/null` in
  219. *posix*) set -o posix ;;
  220. esac
  221. fi
  222. :
  223. _ASEOF
  224. }; then
  225. CONFIG_SHELL=$as_shell
  226. as_have_required=yes
  227. if { "$as_shell" 2> /dev/null <<\_ASEOF
  228. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  229. emulate sh
  230. NULLCMD=:
  231. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  232. # is contrary to our usage. Disable this feature.
  233. alias -g '${1+"$@"}'='"$@"'
  234. setopt NO_GLOB_SUBST
  235. else
  236. case `(set -o) 2>/dev/null` in
  237. *posix*) set -o posix ;;
  238. esac
  239. fi
  240. :
  241. (as_func_return () {
  242. (exit $1)
  243. }
  244. as_func_success () {
  245. as_func_return 0
  246. }
  247. as_func_failure () {
  248. as_func_return 1
  249. }
  250. as_func_ret_success () {
  251. return 0
  252. }
  253. as_func_ret_failure () {
  254. return 1
  255. }
  256. exitcode=0
  257. if as_func_success; then
  258. :
  259. else
  260. exitcode=1
  261. echo as_func_success failed.
  262. fi
  263. if as_func_failure; then
  264. exitcode=1
  265. echo as_func_failure succeeded.
  266. fi
  267. if as_func_ret_success; then
  268. :
  269. else
  270. exitcode=1
  271. echo as_func_ret_success failed.
  272. fi
  273. if as_func_ret_failure; then
  274. exitcode=1
  275. echo as_func_ret_failure succeeded.
  276. fi
  277. if ( set x; as_func_ret_success y && test x = "$1" ); then
  278. :
  279. else
  280. exitcode=1
  281. echo positional parameters were not saved.
  282. fi
  283. test $exitcode = 0) || { (exit 1); exit 1; }
  284. (
  285. as_lineno_1=$LINENO
  286. as_lineno_2=$LINENO
  287. test "x$as_lineno_1" != "x$as_lineno_2" &&
  288. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  289. _ASEOF
  290. }; then
  291. break
  292. fi
  293. fi
  294. done
  295. if test "x$CONFIG_SHELL" != x; then
  296. for as_var in BASH_ENV ENV
  297. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  298. done
  299. export CONFIG_SHELL
  300. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  301. fi
  302. if test $as_have_required = no; then
  303. echo This script requires a shell more modern than all the
  304. echo shells that I found on your system. Please install a
  305. echo modern shell, or manually run the script under such a
  306. echo shell if you do have one.
  307. { (exit 1); exit 1; }
  308. fi
  309. fi
  310. fi
  311. (eval "as_func_return () {
  312. (exit \$1)
  313. }
  314. as_func_success () {
  315. as_func_return 0
  316. }
  317. as_func_failure () {
  318. as_func_return 1
  319. }
  320. as_func_ret_success () {
  321. return 0
  322. }
  323. as_func_ret_failure () {
  324. return 1
  325. }
  326. exitcode=0
  327. if as_func_success; then
  328. :
  329. else
  330. exitcode=1
  331. echo as_func_success failed.
  332. fi
  333. if as_func_failure; then
  334. exitcode=1
  335. echo as_func_failure succeeded.
  336. fi
  337. if as_func_ret_success; then
  338. :
  339. else
  340. exitcode=1
  341. echo as_func_ret_success failed.
  342. fi
  343. if as_func_ret_failure; then
  344. exitcode=1
  345. echo as_func_ret_failure succeeded.
  346. fi
  347. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  348. :
  349. else
  350. exitcode=1
  351. echo positional parameters were not saved.
  352. fi
  353. test \$exitcode = 0") || {
  354. echo No shell found that supports shell functions.
  355. echo Please tell autoconf@gnu.org about your system,
  356. echo including any error possibly output before this
  357. echo message
  358. }
  359. as_lineno_1=$LINENO
  360. as_lineno_2=$LINENO
  361. test "x$as_lineno_1" != "x$as_lineno_2" &&
  362. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  363. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  364. # uniformly replaced by the line number. The first 'sed' inserts a
  365. # line-number line after each line using $LINENO; the second 'sed'
  366. # does the real work. The second script uses 'N' to pair each
  367. # line-number line with the line containing $LINENO, and appends
  368. # trailing '-' during substitution so that $LINENO is not a special
  369. # case at line end.
  370. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  371. # scripts with optimization help from Paolo Bonzini. Blame Lee
  372. # E. McMahon (1931-1989) for sed's syntax. :-)
  373. sed -n '
  374. p
  375. /[$]LINENO/=
  376. ' <$as_myself |
  377. sed '
  378. s/[$]LINENO.*/&-/
  379. t lineno
  380. b
  381. :lineno
  382. N
  383. :loop
  384. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  385. t loop
  386. s/-\n.*//
  387. ' >$as_me.lineno &&
  388. chmod +x "$as_me.lineno" ||
  389. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  390. { (exit 1); exit 1; }; }
  391. # Don't try to exec as it changes $[0], causing all sort of problems
  392. # (the dirname of $[0] is not the place where we might find the
  393. # original and so on. Autoconf is especially sensitive to this).
  394. . "./$as_me.lineno"
  395. # Exit status is that of the last command.
  396. exit
  397. }
  398. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  399. as_dirname=dirname
  400. else
  401. as_dirname=false
  402. fi
  403. ECHO_C= ECHO_N= ECHO_T=
  404. case `echo -n x` in
  405. -n*)
  406. case `echo 'x\c'` in
  407. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  408. *) ECHO_C='\c';;
  409. esac;;
  410. *)
  411. ECHO_N='-n';;
  412. esac
  413. if expr a : '\(a\)' >/dev/null 2>&1 &&
  414. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  415. as_expr=expr
  416. else
  417. as_expr=false
  418. fi
  419. rm -f conf$$ conf$$.exe conf$$.file
  420. if test -d conf$$.dir; then
  421. rm -f conf$$.dir/conf$$.file
  422. else
  423. rm -f conf$$.dir
  424. mkdir conf$$.dir
  425. fi
  426. echo >conf$$.file
  427. if ln -s conf$$.file conf$$ 2>/dev/null; then
  428. as_ln_s='ln -s'
  429. # ... but there are two gotchas:
  430. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  431. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  432. # In both cases, we have to default to `cp -p'.
  433. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  434. as_ln_s='cp -p'
  435. elif ln conf$$.file conf$$ 2>/dev/null; then
  436. as_ln_s=ln
  437. else
  438. as_ln_s='cp -p'
  439. fi
  440. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  441. rmdir conf$$.dir 2>/dev/null
  442. if mkdir -p . 2>/dev/null; then
  443. as_mkdir_p=:
  444. else
  445. test -d ./-p && rmdir ./-p
  446. as_mkdir_p=false
  447. fi
  448. if test -x / >/dev/null 2>&1; then
  449. as_test_x='test -x'
  450. else
  451. if ls -dL / >/dev/null 2>&1; then
  452. as_ls_L_option=L
  453. else
  454. as_ls_L_option=
  455. fi
  456. as_test_x='
  457. eval sh -c '\''
  458. if test -d "$1"; then
  459. test -d "$1/.";
  460. else
  461. case $1 in
  462. -*)set "./$1";;
  463. esac;
  464. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  465. ???[sx]*):;;*)false;;esac;fi
  466. '\'' sh
  467. '
  468. fi
  469. as_executable_p=$as_test_x
  470. # Sed expression to map a string onto a valid CPP name.
  471. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  472. # Sed expression to map a string onto a valid variable name.
  473. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  474. exec 7<&0 </dev/null 6>&1
  475. # Name of the host.
  476. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  477. # so uname gets run too.
  478. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  479. #
  480. # Initializations.
  481. #
  482. ac_default_prefix=/usr/local
  483. ac_clean_files=
  484. ac_config_libobj_dir=.
  485. LIBOBJS=
  486. cross_compiling=no
  487. subdirs=
  488. MFLAGS=
  489. MAKEFLAGS=
  490. SHELL=${CONFIG_SHELL-/bin/sh}
  491. # Identity of this package.
  492. PACKAGE_NAME=
  493. PACKAGE_TARNAME=
  494. PACKAGE_VERSION=
  495. PACKAGE_STRING=
  496. PACKAGE_BUGREPORT=
  497. ac_unique_file="eAthena"
  498. ac_unique_file="src/common/cbasetypes.h"
  499. # Factoring default headers for most tests.
  500. ac_includes_default="\
  501. #include <stdio.h>
  502. #ifdef HAVE_SYS_TYPES_H
  503. # include <sys/types.h>
  504. #endif
  505. #ifdef HAVE_SYS_STAT_H
  506. # include <sys/stat.h>
  507. #endif
  508. #ifdef STDC_HEADERS
  509. # include <stdlib.h>
  510. # include <stddef.h>
  511. #else
  512. # ifdef HAVE_STDLIB_H
  513. # include <stdlib.h>
  514. # endif
  515. #endif
  516. #ifdef HAVE_STRING_H
  517. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  518. # include <memory.h>
  519. # endif
  520. # include <string.h>
  521. #endif
  522. #ifdef HAVE_STRINGS_H
  523. # include <strings.h>
  524. #endif
  525. #ifdef HAVE_INTTYPES_H
  526. # include <inttypes.h>
  527. #endif
  528. #ifdef HAVE_STDINT_H
  529. # include <stdint.h>
  530. #endif
  531. #ifdef HAVE_UNISTD_H
  532. # include <unistd.h>
  533. #endif"
  534. ac_subst_vars='SHELL
  535. PATH_SEPARATOR
  536. PACKAGE_NAME
  537. PACKAGE_TARNAME
  538. PACKAGE_VERSION
  539. PACKAGE_STRING
  540. PACKAGE_BUGREPORT
  541. exec_prefix
  542. prefix
  543. program_transform_name
  544. bindir
  545. sbindir
  546. libexecdir
  547. datarootdir
  548. datadir
  549. sysconfdir
  550. sharedstatedir
  551. localstatedir
  552. includedir
  553. oldincludedir
  554. docdir
  555. infodir
  556. htmldir
  557. dvidir
  558. pdfdir
  559. psdir
  560. libdir
  561. localedir
  562. mandir
  563. DEFS
  564. ECHO_C
  565. ECHO_N
  566. ECHO_T
  567. LIBS
  568. build_alias
  569. host_alias
  570. target_alias
  571. SET_MAKE
  572. CC
  573. CFLAGS
  574. LDFLAGS
  575. CPPFLAGS
  576. ac_ct_CC
  577. EXEEXT
  578. OBJEXT
  579. CPP
  580. GREP
  581. EGREP
  582. MYSQL_CONFIG_HOME
  583. HAVE_MYSQL
  584. MYSQL_VERSION
  585. MYSQL_CFLAGS
  586. MYSQL_LIBS
  587. HAVE_PCRE
  588. PCRE_LIBS
  589. PCRE_CFLAGS
  590. DLLEXT
  591. LIBOBJS
  592. LTLIBOBJS'
  593. ac_subst_files=''
  594. ac_precious_vars='build_alias
  595. host_alias
  596. target_alias
  597. CC
  598. CFLAGS
  599. LDFLAGS
  600. LIBS
  601. CPPFLAGS
  602. CPP'
  603. # Initialize some variables set by options.
  604. ac_init_help=
  605. ac_init_version=false
  606. # The variables have the same names as the options, with
  607. # dashes changed to underlines.
  608. cache_file=/dev/null
  609. exec_prefix=NONE
  610. no_create=
  611. no_recursion=
  612. prefix=NONE
  613. program_prefix=NONE
  614. program_suffix=NONE
  615. program_transform_name=s,x,x,
  616. silent=
  617. site=
  618. srcdir=
  619. verbose=
  620. x_includes=NONE
  621. x_libraries=NONE
  622. # Installation directory options.
  623. # These are left unexpanded so users can "make install exec_prefix=/foo"
  624. # and all the variables that are supposed to be based on exec_prefix
  625. # by default will actually change.
  626. # Use braces instead of parens because sh, perl, etc. also accept them.
  627. # (The list follows the same order as the GNU Coding Standards.)
  628. bindir='${exec_prefix}/bin'
  629. sbindir='${exec_prefix}/sbin'
  630. libexecdir='${exec_prefix}/libexec'
  631. datarootdir='${prefix}/share'
  632. datadir='${datarootdir}'
  633. sysconfdir='${prefix}/etc'
  634. sharedstatedir='${prefix}/com'
  635. localstatedir='${prefix}/var'
  636. includedir='${prefix}/include'
  637. oldincludedir='/usr/include'
  638. docdir='${datarootdir}/doc/${PACKAGE}'
  639. infodir='${datarootdir}/info'
  640. htmldir='${docdir}'
  641. dvidir='${docdir}'
  642. pdfdir='${docdir}'
  643. psdir='${docdir}'
  644. libdir='${exec_prefix}/lib'
  645. localedir='${datarootdir}/locale'
  646. mandir='${datarootdir}/man'
  647. ac_prev=
  648. ac_dashdash=
  649. for ac_option
  650. do
  651. # If the previous option needs an argument, assign it.
  652. if test -n "$ac_prev"; then
  653. eval $ac_prev=\$ac_option
  654. ac_prev=
  655. continue
  656. fi
  657. case $ac_option in
  658. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  659. *) ac_optarg=yes ;;
  660. esac
  661. # Accept the important Cygnus configure options, so we can diagnose typos.
  662. case $ac_dashdash$ac_option in
  663. --)
  664. ac_dashdash=yes ;;
  665. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  666. ac_prev=bindir ;;
  667. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  668. bindir=$ac_optarg ;;
  669. -build | --build | --buil | --bui | --bu)
  670. ac_prev=build_alias ;;
  671. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  672. build_alias=$ac_optarg ;;
  673. -cache-file | --cache-file | --cache-fil | --cache-fi \
  674. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  675. ac_prev=cache_file ;;
  676. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  677. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  678. cache_file=$ac_optarg ;;
  679. --config-cache | -C)
  680. cache_file=config.cache ;;
  681. -datadir | --datadir | --datadi | --datad)
  682. ac_prev=datadir ;;
  683. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  684. datadir=$ac_optarg ;;
  685. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  686. | --dataroo | --dataro | --datar)
  687. ac_prev=datarootdir ;;
  688. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  689. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  690. datarootdir=$ac_optarg ;;
  691. -disable-* | --disable-*)
  692. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  693. # Reject names that are not valid shell variable names.
  694. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  695. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  696. { (exit 1); exit 1; }; }
  697. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  698. eval enable_$ac_feature=no ;;
  699. -docdir | --docdir | --docdi | --doc | --do)
  700. ac_prev=docdir ;;
  701. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  702. docdir=$ac_optarg ;;
  703. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  704. ac_prev=dvidir ;;
  705. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  706. dvidir=$ac_optarg ;;
  707. -enable-* | --enable-*)
  708. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  709. # Reject names that are not valid shell variable names.
  710. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  711. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  712. { (exit 1); exit 1; }; }
  713. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  714. eval enable_$ac_feature=\$ac_optarg ;;
  715. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  716. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  717. | --exec | --exe | --ex)
  718. ac_prev=exec_prefix ;;
  719. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  720. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  721. | --exec=* | --exe=* | --ex=*)
  722. exec_prefix=$ac_optarg ;;
  723. -gas | --gas | --ga | --g)
  724. # Obsolete; use --with-gas.
  725. with_gas=yes ;;
  726. -help | --help | --hel | --he | -h)
  727. ac_init_help=long ;;
  728. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  729. ac_init_help=recursive ;;
  730. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  731. ac_init_help=short ;;
  732. -host | --host | --hos | --ho)
  733. ac_prev=host_alias ;;
  734. -host=* | --host=* | --hos=* | --ho=*)
  735. host_alias=$ac_optarg ;;
  736. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  737. ac_prev=htmldir ;;
  738. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  739. | --ht=*)
  740. htmldir=$ac_optarg ;;
  741. -includedir | --includedir | --includedi | --included | --include \
  742. | --includ | --inclu | --incl | --inc)
  743. ac_prev=includedir ;;
  744. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  745. | --includ=* | --inclu=* | --incl=* | --inc=*)
  746. includedir=$ac_optarg ;;
  747. -infodir | --infodir | --infodi | --infod | --info | --inf)
  748. ac_prev=infodir ;;
  749. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  750. infodir=$ac_optarg ;;
  751. -libdir | --libdir | --libdi | --libd)
  752. ac_prev=libdir ;;
  753. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  754. libdir=$ac_optarg ;;
  755. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  756. | --libexe | --libex | --libe)
  757. ac_prev=libexecdir ;;
  758. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  759. | --libexe=* | --libex=* | --libe=*)
  760. libexecdir=$ac_optarg ;;
  761. -localedir | --localedir | --localedi | --localed | --locale)
  762. ac_prev=localedir ;;
  763. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  764. localedir=$ac_optarg ;;
  765. -localstatedir | --localstatedir | --localstatedi | --localstated \
  766. | --localstate | --localstat | --localsta | --localst | --locals)
  767. ac_prev=localstatedir ;;
  768. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  769. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  770. localstatedir=$ac_optarg ;;
  771. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  772. ac_prev=mandir ;;
  773. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  774. mandir=$ac_optarg ;;
  775. -nfp | --nfp | --nf)
  776. # Obsolete; use --without-fp.
  777. with_fp=no ;;
  778. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  779. | --no-cr | --no-c | -n)
  780. no_create=yes ;;
  781. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  782. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  783. no_recursion=yes ;;
  784. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  785. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  786. | --oldin | --oldi | --old | --ol | --o)
  787. ac_prev=oldincludedir ;;
  788. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  789. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  790. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  791. oldincludedir=$ac_optarg ;;
  792. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  793. ac_prev=prefix ;;
  794. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  795. prefix=$ac_optarg ;;
  796. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  797. | --program-pre | --program-pr | --program-p)
  798. ac_prev=program_prefix ;;
  799. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  800. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  801. program_prefix=$ac_optarg ;;
  802. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  803. | --program-suf | --program-su | --program-s)
  804. ac_prev=program_suffix ;;
  805. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  806. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  807. program_suffix=$ac_optarg ;;
  808. -program-transform-name | --program-transform-name \
  809. | --program-transform-nam | --program-transform-na \
  810. | --program-transform-n | --program-transform- \
  811. | --program-transform | --program-transfor \
  812. | --program-transfo | --program-transf \
  813. | --program-trans | --program-tran \
  814. | --progr-tra | --program-tr | --program-t)
  815. ac_prev=program_transform_name ;;
  816. -program-transform-name=* | --program-transform-name=* \
  817. | --program-transform-nam=* | --program-transform-na=* \
  818. | --program-transform-n=* | --program-transform-=* \
  819. | --program-transform=* | --program-transfor=* \
  820. | --program-transfo=* | --program-transf=* \
  821. | --program-trans=* | --program-tran=* \
  822. | --progr-tra=* | --program-tr=* | --program-t=*)
  823. program_transform_name=$ac_optarg ;;
  824. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  825. ac_prev=pdfdir ;;
  826. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  827. pdfdir=$ac_optarg ;;
  828. -psdir | --psdir | --psdi | --psd | --ps)
  829. ac_prev=psdir ;;
  830. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  831. psdir=$ac_optarg ;;
  832. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  833. | -silent | --silent | --silen | --sile | --sil)
  834. silent=yes ;;
  835. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  836. ac_prev=sbindir ;;
  837. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  838. | --sbi=* | --sb=*)
  839. sbindir=$ac_optarg ;;
  840. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  841. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  842. | --sharedst | --shareds | --shared | --share | --shar \
  843. | --sha | --sh)
  844. ac_prev=sharedstatedir ;;
  845. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  846. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  847. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  848. | --sha=* | --sh=*)
  849. sharedstatedir=$ac_optarg ;;
  850. -site | --site | --sit)
  851. ac_prev=site ;;
  852. -site=* | --site=* | --sit=*)
  853. site=$ac_optarg ;;
  854. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  855. ac_prev=srcdir ;;
  856. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  857. srcdir=$ac_optarg ;;
  858. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  859. | --syscon | --sysco | --sysc | --sys | --sy)
  860. ac_prev=sysconfdir ;;
  861. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  862. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  863. sysconfdir=$ac_optarg ;;
  864. -target | --target | --targe | --targ | --tar | --ta | --t)
  865. ac_prev=target_alias ;;
  866. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  867. target_alias=$ac_optarg ;;
  868. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  869. verbose=yes ;;
  870. -version | --version | --versio | --versi | --vers | -V)
  871. ac_init_version=: ;;
  872. -with-* | --with-*)
  873. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  874. # Reject names that are not valid shell variable names.
  875. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  876. { echo "$as_me: error: invalid package name: $ac_package" >&2
  877. { (exit 1); exit 1; }; }
  878. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  879. eval with_$ac_package=\$ac_optarg ;;
  880. -without-* | --without-*)
  881. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  882. # Reject names that are not valid shell variable names.
  883. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  884. { echo "$as_me: error: invalid package name: $ac_package" >&2
  885. { (exit 1); exit 1; }; }
  886. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  887. eval with_$ac_package=no ;;
  888. --x)
  889. # Obsolete; use --with-x.
  890. with_x=yes ;;
  891. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  892. | --x-incl | --x-inc | --x-in | --x-i)
  893. ac_prev=x_includes ;;
  894. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  895. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  896. x_includes=$ac_optarg ;;
  897. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  898. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  899. ac_prev=x_libraries ;;
  900. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  901. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  902. x_libraries=$ac_optarg ;;
  903. -*) { echo "$as_me: error: unrecognized option: $ac_option
  904. Try \`$0 --help' for more information." >&2
  905. { (exit 1); exit 1; }; }
  906. ;;
  907. *=*)
  908. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  909. # Reject names that are not valid shell variable names.
  910. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  911. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  912. { (exit 1); exit 1; }; }
  913. eval $ac_envvar=\$ac_optarg
  914. export $ac_envvar ;;
  915. *)
  916. # FIXME: should be removed in autoconf 3.0.
  917. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  918. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  919. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  920. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  921. ;;
  922. esac
  923. done
  924. if test -n "$ac_prev"; then
  925. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  926. { echo "$as_me: error: missing argument to $ac_option" >&2
  927. { (exit 1); exit 1; }; }
  928. fi
  929. # Be sure to have absolute directory names.
  930. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  931. datadir sysconfdir sharedstatedir localstatedir includedir \
  932. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  933. libdir localedir mandir
  934. do
  935. eval ac_val=\$$ac_var
  936. case $ac_val in
  937. [\\/$]* | ?:[\\/]* ) continue;;
  938. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  939. esac
  940. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  941. { (exit 1); exit 1; }; }
  942. done
  943. # There might be people who depend on the old broken behavior: `$host'
  944. # used to hold the argument of --host etc.
  945. # FIXME: To remove some day.
  946. build=$build_alias
  947. host=$host_alias
  948. target=$target_alias
  949. # FIXME: To remove some day.
  950. if test "x$host_alias" != x; then
  951. if test "x$build_alias" = x; then
  952. cross_compiling=maybe
  953. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  954. If a cross compiler is detected then cross compile mode will be used." >&2
  955. elif test "x$build_alias" != "x$host_alias"; then
  956. cross_compiling=yes
  957. fi
  958. fi
  959. ac_tool_prefix=
  960. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  961. test "$silent" = yes && exec 6>/dev/null
  962. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  963. ac_ls_di=`ls -di .` &&
  964. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  965. { echo "$as_me: error: Working directory cannot be determined" >&2
  966. { (exit 1); exit 1; }; }
  967. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  968. { echo "$as_me: error: pwd does not report name of working directory" >&2
  969. { (exit 1); exit 1; }; }
  970. # Find the source files, if location was not specified.
  971. if test -z "$srcdir"; then
  972. ac_srcdir_defaulted=yes
  973. # Try the directory containing this script, then the parent directory.
  974. ac_confdir=`$as_dirname -- "$0" ||
  975. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  976. X"$0" : 'X\(//\)[^/]' \| \
  977. X"$0" : 'X\(//\)$' \| \
  978. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  979. echo X"$0" |
  980. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  981. s//\1/
  982. q
  983. }
  984. /^X\(\/\/\)[^/].*/{
  985. s//\1/
  986. q
  987. }
  988. /^X\(\/\/\)$/{
  989. s//\1/
  990. q
  991. }
  992. /^X\(\/\).*/{
  993. s//\1/
  994. q
  995. }
  996. s/.*/./; q'`
  997. srcdir=$ac_confdir
  998. if test ! -r "$srcdir/$ac_unique_file"; then
  999. srcdir=..
  1000. fi
  1001. else
  1002. ac_srcdir_defaulted=no
  1003. fi
  1004. if test ! -r "$srcdir/$ac_unique_file"; then
  1005. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1006. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1007. { (exit 1); exit 1; }; }
  1008. fi
  1009. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1010. ac_abs_confdir=`(
  1011. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1012. { (exit 1); exit 1; }; }
  1013. pwd)`
  1014. # When building in place, set srcdir=.
  1015. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1016. srcdir=.
  1017. fi
  1018. # Remove unnecessary trailing slashes from srcdir.
  1019. # Double slashes in file names in object file debugging info
  1020. # mess up M-x gdb in Emacs.
  1021. case $srcdir in
  1022. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1023. esac
  1024. for ac_var in $ac_precious_vars; do
  1025. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1026. eval ac_env_${ac_var}_value=\$${ac_var}
  1027. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1028. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1029. done
  1030. #
  1031. # Report the --help message.
  1032. #
  1033. if test "$ac_init_help" = "long"; then
  1034. # Omit some internal or obsolete options to make the list less imposing.
  1035. # This message is too long to be a string in the A/UX 3.1 sh.
  1036. cat <<_ACEOF
  1037. \`configure' configures this package to adapt to many kinds of systems.
  1038. Usage: $0 [OPTION]... [VAR=VALUE]...
  1039. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1040. VAR=VALUE. See below for descriptions of some of the useful variables.
  1041. Defaults for the options are specified in brackets.
  1042. Configuration:
  1043. -h, --help display this help and exit
  1044. --help=short display options specific to this package
  1045. --help=recursive display the short help of all the included packages
  1046. -V, --version display version information and exit
  1047. -q, --quiet, --silent do not print \`checking...' messages
  1048. --cache-file=FILE cache test results in FILE [disabled]
  1049. -C, --config-cache alias for \`--cache-file=config.cache'
  1050. -n, --no-create do not create output files
  1051. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1052. Installation directories:
  1053. --prefix=PREFIX install architecture-independent files in PREFIX
  1054. [$ac_default_prefix]
  1055. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1056. [PREFIX]
  1057. By default, \`make install' will install all the files in
  1058. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1059. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1060. for instance \`--prefix=\$HOME'.
  1061. For better control, use the options below.
  1062. Fine tuning of the installation directories:
  1063. --bindir=DIR user executables [EPREFIX/bin]
  1064. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1065. --libexecdir=DIR program executables [EPREFIX/libexec]
  1066. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1067. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1068. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1069. --libdir=DIR object code libraries [EPREFIX/lib]
  1070. --includedir=DIR C header files [PREFIX/include]
  1071. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1072. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1073. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1074. --infodir=DIR info documentation [DATAROOTDIR/info]
  1075. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1076. --mandir=DIR man documentation [DATAROOTDIR/man]
  1077. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1078. --htmldir=DIR html documentation [DOCDIR]
  1079. --dvidir=DIR dvi documentation [DOCDIR]
  1080. --pdfdir=DIR pdf documentation [DOCDIR]
  1081. --psdir=DIR ps documentation [DOCDIR]
  1082. _ACEOF
  1083. cat <<\_ACEOF
  1084. _ACEOF
  1085. fi
  1086. if test -n "$ac_init_help"; then
  1087. cat <<\_ACEOF
  1088. Optional Features:
  1089. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1090. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1091. --enable-manager=ARG memory managers: no, builtin, memwatch, dmalloc,
  1092. gcollect, bcheck (defaults to builtin)
  1093. --enable-packetver=ARG Sets the PACKETVER define of the map-server. (see
  1094. src/map/clif.h)
  1095. --enable-mapregsql Makes map-wide script variables be saved to SQL
  1096. instead of TXT files in the sql map-server.
  1097. (disabled by default)
  1098. --enable-debug Compiles in debug mode. (disabled by default)
  1099. Optional Packages:
  1100. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1101. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1102. --with-mysql[=ARG] use MySQL client library, optionally specify the
  1103. path to the mysql_config executable (by default
  1104. mysql is used if found)
  1105. --with-MYSQL_CFLAGS=ARG specify MYSQL_CFLAGS manually (instead of using
  1106. "mysql_config --include")
  1107. --with-MYSQL_LIBS=ARG specify MYSQL_LIBS manually (instead of using
  1108. "mysql_config --libs")
  1109. --with-pcre[=ARG] use PCRE library, optionally specify the full path
  1110. of pcre installation directory (by default pcre is
  1111. used if found)
  1112. --with-zlib=DIR root directory path of zlib installation (defaults
  1113. to /usr/local or /usr if not found in /usr/local).
  1114. Assumes that the header files are in DIR/include and
  1115. the library files are in DIR/lib
  1116. Some influential environment variables:
  1117. CC C compiler command
  1118. CFLAGS C compiler flags
  1119. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1120. nonstandard directory <lib dir>
  1121. LIBS libraries to pass to the linker, e.g. -l<library>
  1122. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1123. you have headers in a nonstandard directory <include dir>
  1124. CPP C preprocessor
  1125. Use these variables to override the choices made by `configure' or to help
  1126. it to find libraries and programs with nonstandard names/locations.
  1127. _ACEOF
  1128. ac_status=$?
  1129. fi
  1130. if test "$ac_init_help" = "recursive"; then
  1131. # If there are subdirs, report their specific --help.
  1132. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1133. test -d "$ac_dir" || continue
  1134. ac_builddir=.
  1135. case "$ac_dir" in
  1136. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1137. *)
  1138. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1139. # A ".." for each directory in $ac_dir_suffix.
  1140. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1141. case $ac_top_builddir_sub in
  1142. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1143. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1144. esac ;;
  1145. esac
  1146. ac_abs_top_builddir=$ac_pwd
  1147. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1148. # for backward compatibility:
  1149. ac_top_builddir=$ac_top_build_prefix
  1150. case $srcdir in
  1151. .) # We are building in place.
  1152. ac_srcdir=.
  1153. ac_top_srcdir=$ac_top_builddir_sub
  1154. ac_abs_top_srcdir=$ac_pwd ;;
  1155. [\\/]* | ?:[\\/]* ) # Absolute name.
  1156. ac_srcdir=$srcdir$ac_dir_suffix;
  1157. ac_top_srcdir=$srcdir
  1158. ac_abs_top_srcdir=$srcdir ;;
  1159. *) # Relative name.
  1160. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1161. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1162. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1163. esac
  1164. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1165. cd "$ac_dir" || { ac_status=$?; continue; }
  1166. # Check for guested configure.
  1167. if test -f "$ac_srcdir/configure.gnu"; then
  1168. echo &&
  1169. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1170. elif test -f "$ac_srcdir/configure"; then
  1171. echo &&
  1172. $SHELL "$ac_srcdir/configure" --help=recursive
  1173. else
  1174. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1175. fi || ac_status=$?
  1176. cd "$ac_pwd" || { ac_status=$?; break; }
  1177. done
  1178. fi
  1179. test -n "$ac_init_help" && exit $ac_status
  1180. if $ac_init_version; then
  1181. cat <<\_ACEOF
  1182. configure
  1183. generated by GNU Autoconf 2.61
  1184. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1185. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1186. This configure script is free software; the Free Software Foundation
  1187. gives unlimited permission to copy, distribute and modify it.
  1188. _ACEOF
  1189. exit
  1190. fi
  1191. cat >config.log <<_ACEOF
  1192. This file contains any messages produced by compilers while
  1193. running configure, to aid debugging if configure makes a mistake.
  1194. It was created by $as_me, which was
  1195. generated by GNU Autoconf 2.61. Invocation command line was
  1196. $ $0 $@
  1197. _ACEOF
  1198. exec 5>>config.log
  1199. {
  1200. cat <<_ASUNAME
  1201. ## --------- ##
  1202. ## Platform. ##
  1203. ## --------- ##
  1204. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1205. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1206. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1207. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1208. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1209. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1210. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1211. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1212. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1213. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1214. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1215. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1216. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1217. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1218. _ASUNAME
  1219. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1220. for as_dir in $PATH
  1221. do
  1222. IFS=$as_save_IFS
  1223. test -z "$as_dir" && as_dir=.
  1224. echo "PATH: $as_dir"
  1225. done
  1226. IFS=$as_save_IFS
  1227. } >&5
  1228. cat >&5 <<_ACEOF
  1229. ## ----------- ##
  1230. ## Core tests. ##
  1231. ## ----------- ##
  1232. _ACEOF
  1233. # Keep a trace of the command line.
  1234. # Strip out --no-create and --no-recursion so they do not pile up.
  1235. # Strip out --silent because we don't want to record it for future runs.
  1236. # Also quote any args containing shell meta-characters.
  1237. # Make two passes to allow for proper duplicate-argument suppression.
  1238. ac_configure_args=
  1239. ac_configure_args0=
  1240. ac_configure_args1=
  1241. ac_must_keep_next=false
  1242. for ac_pass in 1 2
  1243. do
  1244. for ac_arg
  1245. do
  1246. case $ac_arg in
  1247. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1248. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1249. | -silent | --silent | --silen | --sile | --sil)
  1250. continue ;;
  1251. *\'*)
  1252. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1253. esac
  1254. case $ac_pass in
  1255. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1256. 2)
  1257. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1258. if test $ac_must_keep_next = true; then
  1259. ac_must_keep_next=false # Got value, back to normal.
  1260. else
  1261. case $ac_arg in
  1262. *=* | --config-cache | -C | -disable-* | --disable-* \
  1263. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1264. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1265. | -with-* | --with-* | -without-* | --without-* | --x)
  1266. case "$ac_configure_args0 " in
  1267. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1268. esac
  1269. ;;
  1270. -* ) ac_must_keep_next=true ;;
  1271. esac
  1272. fi
  1273. ac_configure_args="$ac_configure_args '$ac_arg'"
  1274. ;;
  1275. esac
  1276. done
  1277. done
  1278. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1279. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1280. # When interrupted or exit'd, cleanup temporary files, and complete
  1281. # config.log. We remove comments because anyway the quotes in there
  1282. # would cause problems or look ugly.
  1283. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1284. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1285. trap 'exit_status=$?
  1286. # Save into config.log some information that might help in debugging.
  1287. {
  1288. echo
  1289. cat <<\_ASBOX
  1290. ## ---------------- ##
  1291. ## Cache variables. ##
  1292. ## ---------------- ##
  1293. _ASBOX
  1294. echo
  1295. # The following way of writing the cache mishandles newlines in values,
  1296. (
  1297. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1298. eval ac_val=\$$ac_var
  1299. case $ac_val in #(
  1300. *${as_nl}*)
  1301. case $ac_var in #(
  1302. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1303. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1304. esac
  1305. case $ac_var in #(
  1306. _ | IFS | as_nl) ;; #(
  1307. *) $as_unset $ac_var ;;
  1308. esac ;;
  1309. esac
  1310. done
  1311. (set) 2>&1 |
  1312. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1313. *${as_nl}ac_space=\ *)
  1314. sed -n \
  1315. "s/'\''/'\''\\\\'\'''\''/g;
  1316. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1317. ;; #(
  1318. *)
  1319. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1320. ;;
  1321. esac |
  1322. sort
  1323. )
  1324. echo
  1325. cat <<\_ASBOX
  1326. ## ----------------- ##
  1327. ## Output variables. ##
  1328. ## ----------------- ##
  1329. _ASBOX
  1330. echo
  1331. for ac_var in $ac_subst_vars
  1332. do
  1333. eval ac_val=\$$ac_var
  1334. case $ac_val in
  1335. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1336. esac
  1337. echo "$ac_var='\''$ac_val'\''"
  1338. done | sort
  1339. echo
  1340. if test -n "$ac_subst_files"; then
  1341. cat <<\_ASBOX
  1342. ## ------------------- ##
  1343. ## File substitutions. ##
  1344. ## ------------------- ##
  1345. _ASBOX
  1346. echo
  1347. for ac_var in $ac_subst_files
  1348. do
  1349. eval ac_val=\$$ac_var
  1350. case $ac_val in
  1351. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1352. esac
  1353. echo "$ac_var='\''$ac_val'\''"
  1354. done | sort
  1355. echo
  1356. fi
  1357. if test -s confdefs.h; then
  1358. cat <<\_ASBOX
  1359. ## ----------- ##
  1360. ## confdefs.h. ##
  1361. ## ----------- ##
  1362. _ASBOX
  1363. echo
  1364. cat confdefs.h
  1365. echo
  1366. fi
  1367. test "$ac_signal" != 0 &&
  1368. echo "$as_me: caught signal $ac_signal"
  1369. echo "$as_me: exit $exit_status"
  1370. } >&5
  1371. rm -f core *.core core.conftest.* &&
  1372. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1373. exit $exit_status
  1374. ' 0
  1375. for ac_signal in 1 2 13 15; do
  1376. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1377. done
  1378. ac_signal=0
  1379. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1380. rm -f -r conftest* confdefs.h
  1381. # Predefined preprocessor variables.
  1382. cat >>confdefs.h <<_ACEOF
  1383. #define PACKAGE_NAME "$PACKAGE_NAME"
  1384. _ACEOF
  1385. cat >>confdefs.h <<_ACEOF
  1386. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1387. _ACEOF
  1388. cat >>confdefs.h <<_ACEOF
  1389. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1390. _ACEOF
  1391. cat >>confdefs.h <<_ACEOF
  1392. #define PACKAGE_STRING "$PACKAGE_STRING"
  1393. _ACEOF
  1394. cat >>confdefs.h <<_ACEOF
  1395. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1396. _ACEOF
  1397. # Let the site file select an alternate cache file if it wants to.
  1398. # Prefer explicitly selected file to automatically selected ones.
  1399. if test -n "$CONFIG_SITE"; then
  1400. set x "$CONFIG_SITE"
  1401. elif test "x$prefix" != xNONE; then
  1402. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1403. else
  1404. set x "$ac_default_prefix/share/config.site" \
  1405. "$ac_default_prefix/etc/config.site"
  1406. fi
  1407. shift
  1408. for ac_site_file
  1409. do
  1410. if test -r "$ac_site_file"; then
  1411. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1412. echo "$as_me: loading site script $ac_site_file" >&6;}
  1413. sed 's/^/| /' "$ac_site_file" >&5
  1414. . "$ac_site_file"
  1415. fi
  1416. done
  1417. if test -r "$cache_file"; then
  1418. # Some versions of bash will fail to source /dev/null (special
  1419. # files actually), so we avoid doing that.
  1420. if test -f "$cache_file"; then
  1421. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1422. echo "$as_me: loading cache $cache_file" >&6;}
  1423. case $cache_file in
  1424. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1425. *) . "./$cache_file";;
  1426. esac
  1427. fi
  1428. else
  1429. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1430. echo "$as_me: creating cache $cache_file" >&6;}
  1431. >$cache_file
  1432. fi
  1433. # Check that the precious variables saved in the cache have kept the same
  1434. # value.
  1435. ac_cache_corrupted=false
  1436. for ac_var in $ac_precious_vars; do
  1437. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1438. eval ac_new_set=\$ac_env_${ac_var}_set
  1439. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1440. eval ac_new_val=\$ac_env_${ac_var}_value
  1441. case $ac_old_set,$ac_new_set in
  1442. set,)
  1443. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1444. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1445. ac_cache_corrupted=: ;;
  1446. ,set)
  1447. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1448. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1449. ac_cache_corrupted=: ;;
  1450. ,);;
  1451. *)
  1452. if test "x$ac_old_val" != "x$ac_new_val"; then
  1453. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1454. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1455. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1456. echo "$as_me: former value: $ac_old_val" >&2;}
  1457. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1458. echo "$as_me: current value: $ac_new_val" >&2;}
  1459. ac_cache_corrupted=:
  1460. fi;;
  1461. esac
  1462. # Pass precious variables to config.status.
  1463. if test "$ac_new_set" = set; then
  1464. case $ac_new_val in
  1465. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1466. *) ac_arg=$ac_var=$ac_new_val ;;
  1467. esac
  1468. case " $ac_configure_args " in
  1469. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1470. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1471. esac
  1472. fi
  1473. done
  1474. if $ac_cache_corrupted; then
  1475. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1476. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1477. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1478. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1479. { (exit 1); exit 1; }; }
  1480. fi
  1481. ac_ext=c
  1482. ac_cpp='$CPP $CPPFLAGS'
  1483. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1484. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1485. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1486. ac_config_files="$ac_config_files Makefile src/common/Makefile"
  1487. ac_config_files="$ac_config_files src/char/Makefile src/login/Makefile src/ladmin/Makefile"
  1488. ac_config_files="$ac_config_files src/char_sql/Makefile src/login_sql/Makefile src/txt-converter/Makefile"
  1489. ac_config_files="$ac_config_files src/map/Makefile src/plugins/Makefile src/tool/Makefile"
  1490. #
  1491. # Memory managers
  1492. #
  1493. # Check whether --enable-manager was given.
  1494. if test "${enable_manager+set}" = set; then
  1495. enableval=$enable_manager;
  1496. enable_manager="$enableval"
  1497. case $enableval in
  1498. "no");;
  1499. "builtin");;
  1500. "memwatch");;
  1501. "dmalloc");;
  1502. "gcollect");;
  1503. "bcheck");;
  1504. *) { { echo "$as_me:$LINENO: error: unknown memory manager '$enableval'... stopping" >&5
  1505. echo "$as_me: error: unknown memory manager '$enableval'... stopping" >&2;}
  1506. { (exit 1); exit 1; }; };;
  1507. esac
  1508. else
  1509. enable_manager="builtin"
  1510. fi
  1511. #
  1512. # packetver
  1513. #
  1514. # Check whether --enable-packetver was given.
  1515. if test "${enable_packetver+set}" = set; then
  1516. enableval=$enable_packetver; enable_packetver="$enableval"
  1517. else
  1518. enable_packetver=""
  1519. fi
  1520. #
  1521. # mapregsql
  1522. #
  1523. # Check whether --enable-mapregsql was given.
  1524. if test "${enable_mapregsql+set}" = set; then
  1525. enableval=$enable_mapregsql;
  1526. enable_mapregsql="$enableval"
  1527. case $enableval in
  1528. no);;
  1529. yes);;
  1530. *) { { echo "$as_me:$LINENO: error: invalid argument --enable-mapregsql=$enableval... stopping" >&5
  1531. echo "$as_me: error: invalid argument --enable-mapregsql=$enableval... stopping" >&2;}
  1532. { (exit 1); exit 1; }; };;
  1533. esac
  1534. else
  1535. enable_mapregsql="no"
  1536. fi
  1537. #
  1538. # debug
  1539. #
  1540. # Check whether --enable-debug was given.
  1541. if test "${enable_debug+set}" = set; then
  1542. enableval=$enable_debug;
  1543. enable_debug="$enableval"
  1544. case $enableval in
  1545. no);;
  1546. yes);;
  1547. *) { { echo "$as_me:$LINENO: error: invalid argument --enable-debug=$enableval... stopping" >&5
  1548. echo "$as_me: error: invalid argument --enable-debug=$enableval... stopping" >&2;}
  1549. { (exit 1); exit 1; }; };;
  1550. esac
  1551. else
  1552. enable_debug="no"
  1553. fi
  1554. #
  1555. # Enable/disable MySql and optionally specify the path to mysql_config (optional library)
  1556. #
  1557. # Check whether --with-mysql was given.
  1558. if test "${with_mysql+set}" = set; then
  1559. withval=$with_mysql;
  1560. if test "$withval" = "no" ; then
  1561. want_mysql="no"
  1562. else
  1563. want_mysql="yes"
  1564. require_mysql="yes"
  1565. if test "$withval" != "yes" ; then
  1566. if test ! -x "$withval" ; then
  1567. { { echo "$as_me:$LINENO: error: $withval is not an executable file" >&5
  1568. echo "$as_me: error: $withval is not an executable file" >&2;}
  1569. { (exit 1); exit 1; }; }
  1570. fi
  1571. MYSQL_CONFIG_HOME="$withval"
  1572. fi
  1573. fi
  1574. else
  1575. want_mysql="yes" require_mysql="no"
  1576. fi
  1577. #
  1578. # Manual MYSQL_CFLAGS (optional)
  1579. #
  1580. # Check whether --with-MYSQL_CFLAGS was given.
  1581. if test "${with_MYSQL_CFLAGS+set}" = set; then
  1582. withval=$with_MYSQL_CFLAGS;
  1583. manual_MYSQL_CFLAGS="yes"
  1584. MYSQL_CFLAGS="$withval"
  1585. else
  1586. manual_MYSQL_CFLAGS="no"
  1587. fi
  1588. #
  1589. # Manual MYSQL_LIBS (optional)
  1590. #
  1591. # Check whether --with-MYSQL_LIBS was given.
  1592. if test "${with_MYSQL_LIBS+set}" = set; then
  1593. withval=$with_MYSQL_LIBS;
  1594. manual_MYSQL_LIBS="yes"
  1595. MYSQL_LIBS="$withval"
  1596. else
  1597. manual_MYSQL_LIBS="no"
  1598. fi
  1599. #
  1600. # Enable/disable PCRE and optionally specify the path (optional library)
  1601. #
  1602. # Check whether --with-pcre was given.
  1603. if test "${with_pcre+set}" = set; then
  1604. withval=$with_pcre;
  1605. if test "$withval" = "no" ; then
  1606. want_pcre="no"
  1607. else
  1608. want_pcre="yes"
  1609. require_pcre="yes"
  1610. if test "$withval" != "yes" ; then
  1611. if test ! -d "$withval" ; then
  1612. { { echo "$as_me:$LINENO: error: $withval is not a directoy" >&5
  1613. echo "$as_me: error: $withval is not a directoy" >&2;}
  1614. { (exit 1); exit 1; }; }
  1615. fi
  1616. PCRE_HOME="$withval"
  1617. fi
  1618. fi
  1619. else
  1620. want_pcre="yes" require_pcre="no"
  1621. fi
  1622. #
  1623. # Specify the path of the zlib library (required library)
  1624. #
  1625. # Check whether --with-zlib was given.
  1626. if test "${with_zlib+set}" = set; then
  1627. withval=$with_zlib;
  1628. test -n "$withval" && ZLIB_HOME="$withval"
  1629. else
  1630. ZLIB_HOME=/usr/local
  1631. test ! -f "${ZLIB_HOME}/include/zlib.h" && ZLIB_HOME=/usr
  1632. fi
  1633. ###############################################################################
  1634. # Check for programs and types.
  1635. #
  1636. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1637. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  1638. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  1639. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  1640. echo $ECHO_N "(cached) $ECHO_C" >&6
  1641. else
  1642. cat >conftest.make <<\_ACEOF
  1643. SHELL = /bin/sh
  1644. all:
  1645. @echo '@@@%%%=$(MAKE)=@@@%%%'
  1646. _ACEOF
  1647. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1648. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  1649. *@@@%%%=?*=@@@%%%*)
  1650. eval ac_cv_prog_make_${ac_make}_set=yes;;
  1651. *)
  1652. eval ac_cv_prog_make_${ac_make}_set=no;;
  1653. esac
  1654. rm -f conftest.make
  1655. fi
  1656. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  1657. { echo "$as_me:$LINENO: result: yes" >&5
  1658. echo "${ECHO_T}yes" >&6; }
  1659. SET_MAKE=
  1660. else
  1661. { echo "$as_me:$LINENO: result: no" >&5
  1662. echo "${ECHO_T}no" >&6; }
  1663. SET_MAKE="MAKE=${MAKE-make}"
  1664. fi
  1665. ac_ext=c
  1666. ac_cpp='$CPP $CPPFLAGS'
  1667. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1668. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1669. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1670. if test -n "$ac_tool_prefix"; then
  1671. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1672. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1673. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1674. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1675. if test "${ac_cv_prog_CC+set}" = set; then
  1676. echo $ECHO_N "(cached) $ECHO_C" >&6
  1677. else
  1678. if test -n "$CC"; then
  1679. ac_cv_prog_CC="$CC" # Let the user override the test.
  1680. else
  1681. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1682. for as_dir in $PATH
  1683. do
  1684. IFS=$as_save_IFS
  1685. test -z "$as_dir" && as_dir=.
  1686. for ac_exec_ext in '' $ac_executable_extensions; do
  1687. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1688. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1689. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1690. break 2
  1691. fi
  1692. done
  1693. done
  1694. IFS=$as_save_IFS
  1695. fi
  1696. fi
  1697. CC=$ac_cv_prog_CC
  1698. if test -n "$CC"; then
  1699. { echo "$as_me:$LINENO: result: $CC" >&5
  1700. echo "${ECHO_T}$CC" >&6; }
  1701. else
  1702. { echo "$as_me:$LINENO: result: no" >&5
  1703. echo "${ECHO_T}no" >&6; }
  1704. fi
  1705. fi
  1706. if test -z "$ac_cv_prog_CC"; then
  1707. ac_ct_CC=$CC
  1708. # Extract the first word of "gcc", so it can be a program name with args.
  1709. set dummy gcc; ac_word=$2
  1710. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1711. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1712. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1713. echo $ECHO_N "(cached) $ECHO_C" >&6
  1714. else
  1715. if test -n "$ac_ct_CC"; then
  1716. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1717. else
  1718. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1719. for as_dir in $PATH
  1720. do
  1721. IFS=$as_save_IFS
  1722. test -z "$as_dir" && as_dir=.
  1723. for ac_exec_ext in '' $ac_executable_extensions; do
  1724. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1725. ac_cv_prog_ac_ct_CC="gcc"
  1726. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1727. break 2
  1728. fi
  1729. done
  1730. done
  1731. IFS=$as_save_IFS
  1732. fi
  1733. fi
  1734. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1735. if test -n "$ac_ct_CC"; then
  1736. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1737. echo "${ECHO_T}$ac_ct_CC" >&6; }
  1738. else
  1739. { echo "$as_me:$LINENO: result: no" >&5
  1740. echo "${ECHO_T}no" >&6; }
  1741. fi
  1742. if test "x$ac_ct_CC" = x; then
  1743. CC=""
  1744. else
  1745. case $cross_compiling:$ac_tool_warned in
  1746. yes:)
  1747. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1748. whose name does not start with the host triplet. If you think this
  1749. configuration is useful to you, please write to autoconf@gnu.org." >&5
  1750. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1751. whose name does not start with the host triplet. If you think this
  1752. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1753. ac_tool_warned=yes ;;
  1754. esac
  1755. CC=$ac_ct_CC
  1756. fi
  1757. else
  1758. CC="$ac_cv_prog_CC"
  1759. fi
  1760. if test -z "$CC"; then
  1761. if test -n "$ac_tool_prefix"; then
  1762. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1763. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1764. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1765. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1766. if test "${ac_cv_prog_CC+set}" = set; then
  1767. echo $ECHO_N "(cached) $ECHO_C" >&6
  1768. else
  1769. if test -n "$CC"; then
  1770. ac_cv_prog_CC="$CC" # Let the user override the test.
  1771. else
  1772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1773. for as_dir in $PATH
  1774. do
  1775. IFS=$as_save_IFS
  1776. test -z "$as_dir" && as_dir=.
  1777. for ac_exec_ext in '' $ac_executable_extensions; do
  1778. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1779. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1780. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1781. break 2
  1782. fi
  1783. done
  1784. done
  1785. IFS=$as_save_IFS
  1786. fi
  1787. fi
  1788. CC=$ac_cv_prog_CC
  1789. if test -n "$CC"; then
  1790. { echo "$as_me:$LINENO: result: $CC" >&5
  1791. echo "${ECHO_T}$CC" >&6; }
  1792. else
  1793. { echo "$as_me:$LINENO: result: no" >&5
  1794. echo "${ECHO_T}no" >&6; }
  1795. fi
  1796. fi
  1797. fi
  1798. if test -z "$CC"; then
  1799. # Extract the first word of "cc", so it can be a program name with args.
  1800. set dummy cc; ac_word=$2
  1801. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1802. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1803. if test "${ac_cv_prog_CC+set}" = set; then
  1804. echo $ECHO_N "(cached) $ECHO_C" >&6
  1805. else
  1806. if test -n "$CC"; then
  1807. ac_cv_prog_CC="$CC" # Let the user override the test.
  1808. else
  1809. ac_prog_rejected=no
  1810. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1811. for as_dir in $PATH
  1812. do
  1813. IFS=$as_save_IFS
  1814. test -z "$as_dir" && as_dir=.
  1815. for ac_exec_ext in '' $ac_executable_extensions; do
  1816. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1817. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1818. ac_prog_rejected=yes
  1819. continue
  1820. fi
  1821. ac_cv_prog_CC="cc"
  1822. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1823. break 2
  1824. fi
  1825. done
  1826. done
  1827. IFS=$as_save_IFS
  1828. if test $ac_prog_rejected = yes; then
  1829. # We found a bogon in the path, so make sure we never use it.
  1830. set dummy $ac_cv_prog_CC
  1831. shift
  1832. if test $# != 0; then
  1833. # We chose a different compiler from the bogus one.
  1834. # However, it has the same basename, so the bogon will be chosen
  1835. # first if we set CC to just the basename; use the full file name.
  1836. shift
  1837. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1838. fi
  1839. fi
  1840. fi
  1841. fi
  1842. CC=$ac_cv_prog_CC
  1843. if test -n "$CC"; then
  1844. { echo "$as_me:$LINENO: result: $CC" >&5
  1845. echo "${ECHO_T}$CC" >&6; }
  1846. else
  1847. { echo "$as_me:$LINENO: result: no" >&5
  1848. echo "${ECHO_T}no" >&6; }
  1849. fi
  1850. fi
  1851. if test -z "$CC"; then
  1852. if test -n "$ac_tool_prefix"; then
  1853. for ac_prog in cl.exe
  1854. do
  1855. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1856. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1857. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1858. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1859. if test "${ac_cv_prog_CC+set}" = set; then
  1860. echo $ECHO_N "(cached) $ECHO_C" >&6
  1861. else
  1862. if test -n "$CC"; then
  1863. ac_cv_prog_CC="$CC" # Let the user override the test.
  1864. else
  1865. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1866. for as_dir in $PATH
  1867. do
  1868. IFS=$as_save_IFS
  1869. test -z "$as_dir" && as_dir=.
  1870. for ac_exec_ext in '' $ac_executable_extensions; do
  1871. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1872. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1873. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1874. break 2
  1875. fi
  1876. done
  1877. done
  1878. IFS=$as_save_IFS
  1879. fi
  1880. fi
  1881. CC=$ac_cv_prog_CC
  1882. if test -n "$CC"; then
  1883. { echo "$as_me:$LINENO: result: $CC" >&5
  1884. echo "${ECHO_T}$CC" >&6; }
  1885. else
  1886. { echo "$as_me:$LINENO: result: no" >&5
  1887. echo "${ECHO_T}no" >&6; }
  1888. fi
  1889. test -n "$CC" && break
  1890. done
  1891. fi
  1892. if test -z "$CC"; then
  1893. ac_ct_CC=$CC
  1894. for ac_prog in cl.exe
  1895. do
  1896. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1897. set dummy $ac_prog; ac_word=$2
  1898. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1899. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1900. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1901. echo $ECHO_N "(cached) $ECHO_C" >&6
  1902. else
  1903. if test -n "$ac_ct_CC"; then
  1904. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1905. else
  1906. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1907. for as_dir in $PATH
  1908. do
  1909. IFS=$as_save_IFS
  1910. test -z "$as_dir" && as_dir=.
  1911. for ac_exec_ext in '' $ac_executable_extensions; do
  1912. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1913. ac_cv_prog_ac_ct_CC="$ac_prog"
  1914. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1915. break 2
  1916. fi
  1917. done
  1918. done
  1919. IFS=$as_save_IFS
  1920. fi
  1921. fi
  1922. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1923. if test -n "$ac_ct_CC"; then
  1924. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1925. echo "${ECHO_T}$ac_ct_CC" >&6; }
  1926. else
  1927. { echo "$as_me:$LINENO: result: no" >&5
  1928. echo "${ECHO_T}no" >&6; }
  1929. fi
  1930. test -n "$ac_ct_CC" && break
  1931. done
  1932. if test "x$ac_ct_CC" = x; then
  1933. CC=""
  1934. else
  1935. case $cross_compiling:$ac_tool_warned in
  1936. yes:)
  1937. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1938. whose name does not start with the host triplet. If you think this
  1939. configuration is useful to you, please write to autoconf@gnu.org." >&5
  1940. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1941. whose name does not start with the host triplet. If you think this
  1942. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1943. ac_tool_warned=yes ;;
  1944. esac
  1945. CC=$ac_ct_CC
  1946. fi
  1947. fi
  1948. fi
  1949. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1950. See \`config.log' for more details." >&5
  1951. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1952. See \`config.log' for more details." >&2;}
  1953. { (exit 1); exit 1; }; }
  1954. # Provide some information about the compiler.
  1955. echo "$as_me:$LINENO: checking for C compiler version" >&5
  1956. ac_compiler=`set X $ac_compile; echo $2`
  1957. { (ac_try="$ac_compiler --version >&5"
  1958. case "(($ac_try" in
  1959. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1960. *) ac_try_echo=$ac_try;;
  1961. esac
  1962. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1963. (eval "$ac_compiler --version >&5") 2>&5
  1964. ac_status=$?
  1965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1966. (exit $ac_status); }
  1967. { (ac_try="$ac_compiler -v >&5"
  1968. case "(($ac_try" in
  1969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1970. *) ac_try_echo=$ac_try;;
  1971. esac
  1972. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1973. (eval "$ac_compiler -v >&5") 2>&5
  1974. ac_status=$?
  1975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1976. (exit $ac_status); }
  1977. { (ac_try="$ac_compiler -V >&5"
  1978. case "(($ac_try" in
  1979. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1980. *) ac_try_echo=$ac_try;;
  1981. esac
  1982. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1983. (eval "$ac_compiler -V >&5") 2>&5
  1984. ac_status=$?
  1985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1986. (exit $ac_status); }
  1987. cat >conftest.$ac_ext <<_ACEOF
  1988. /* confdefs.h. */
  1989. _ACEOF
  1990. cat confdefs.h >>conftest.$ac_ext
  1991. cat >>conftest.$ac_ext <<_ACEOF
  1992. /* end confdefs.h. */
  1993. int
  1994. main ()
  1995. {
  1996. ;
  1997. return 0;
  1998. }
  1999. _ACEOF
  2000. ac_clean_files_save=$ac_clean_files
  2001. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2002. # Try to create an executable without -o first, disregard a.out.
  2003. # It will help us diagnose broken compilers, and finding out an intuition
  2004. # of exeext.
  2005. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2006. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2007. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2008. #
  2009. # List of possible output files, starting from the most likely.
  2010. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2011. # only as a last resort. b.out is created by i960 compilers.
  2012. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2013. #
  2014. # The IRIX 6 linker writes into existing files which may not be
  2015. # executable, retaining their permissions. Remove them first so a
  2016. # subsequent execution test works.
  2017. ac_rmfiles=
  2018. for ac_file in $ac_files
  2019. do
  2020. case $ac_file in
  2021. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2022. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2023. esac
  2024. done
  2025. rm -f $ac_rmfiles
  2026. if { (ac_try="$ac_link_default"
  2027. case "(($ac_try" in
  2028. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2029. *) ac_try_echo=$ac_try;;
  2030. esac
  2031. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2032. (eval "$ac_link_default") 2>&5
  2033. ac_status=$?
  2034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2035. (exit $ac_status); }; then
  2036. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2037. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2038. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2039. # so that the user can short-circuit this test for compilers unknown to
  2040. # Autoconf.
  2041. for ac_file in $ac_files ''
  2042. do
  2043. test -f "$ac_file" || continue
  2044. case $ac_file in
  2045. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2046. ;;
  2047. [ab].out )
  2048. # We found the default executable, but exeext='' is most
  2049. # certainly right.
  2050. break;;
  2051. *.* )
  2052. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2053. then :; else
  2054. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2055. fi
  2056. # We set ac_cv_exeext here because the later test for it is not
  2057. # safe: cross compilers may not add the suffix if given an `-o'
  2058. # argument, so we may need to know it at that point already.
  2059. # Even if this section looks crufty: it has the advantage of
  2060. # actually working.
  2061. break;;
  2062. * )
  2063. break;;
  2064. esac
  2065. done
  2066. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2067. else
  2068. ac_file=''
  2069. fi
  2070. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2071. echo "${ECHO_T}$ac_file" >&6; }
  2072. if test -z "$ac_file"; then
  2073. echo "$as_me: failed program was:" >&5
  2074. sed 's/^/| /' conftest.$ac_ext >&5
  2075. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2076. See \`config.log' for more details." >&5
  2077. echo "$as_me: error: C compiler cannot create executables
  2078. See \`config.log' for more details." >&2;}
  2079. { (exit 77); exit 77; }; }
  2080. fi
  2081. ac_exeext=$ac_cv_exeext
  2082. # Check that the compiler produces executables we can run. If not, either
  2083. # the compiler is broken, or we cross compile.
  2084. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2085. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2086. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2087. # If not cross compiling, check that we can run a simple program.
  2088. if test "$cross_compiling" != yes; then
  2089. if { ac_try='./$ac_file'
  2090. { (case "(($ac_try" in
  2091. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2092. *) ac_try_echo=$ac_try;;
  2093. esac
  2094. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2095. (eval "$ac_try") 2>&5
  2096. ac_status=$?
  2097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2098. (exit $ac_status); }; }; then
  2099. cross_compiling=no
  2100. else
  2101. if test "$cross_compiling" = maybe; then
  2102. cross_compiling=yes
  2103. else
  2104. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2105. If you meant to cross compile, use \`--host'.
  2106. See \`config.log' for more details." >&5
  2107. echo "$as_me: error: cannot run C compiled programs.
  2108. If you meant to cross compile, use \`--host'.
  2109. See \`config.log' for more details." >&2;}
  2110. { (exit 1); exit 1; }; }
  2111. fi
  2112. fi
  2113. fi
  2114. { echo "$as_me:$LINENO: result: yes" >&5
  2115. echo "${ECHO_T}yes" >&6; }
  2116. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2117. ac_clean_files=$ac_clean_files_save
  2118. # Check that the compiler produces executables we can run. If not, either
  2119. # the compiler is broken, or we cross compile.
  2120. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2121. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2122. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2123. echo "${ECHO_T}$cross_compiling" >&6; }
  2124. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2125. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2126. if { (ac_try="$ac_link"
  2127. case "(($ac_try" in
  2128. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2129. *) ac_try_echo=$ac_try;;
  2130. esac
  2131. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2132. (eval "$ac_link") 2>&5
  2133. ac_status=$?
  2134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2135. (exit $ac_status); }; then
  2136. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2137. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2138. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2139. # `rm'.
  2140. for ac_file in conftest.exe conftest conftest.*; do
  2141. test -f "$ac_file" || continue
  2142. case $ac_file in
  2143. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2144. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2145. break;;
  2146. * ) break;;
  2147. esac
  2148. done
  2149. else
  2150. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2151. See \`config.log' for more details." >&5
  2152. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2153. See \`config.log' for more details." >&2;}
  2154. { (exit 1); exit 1; }; }
  2155. fi
  2156. rm -f conftest$ac_cv_exeext
  2157. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2158. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2159. rm -f conftest.$ac_ext
  2160. EXEEXT=$ac_cv_exeext
  2161. ac_exeext=$EXEEXT
  2162. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2163. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2164. if test "${ac_cv_objext+set}" = set; then
  2165. echo $ECHO_N "(cached) $ECHO_C" >&6
  2166. else
  2167. cat >conftest.$ac_ext <<_ACEOF
  2168. /* confdefs.h. */
  2169. _ACEOF
  2170. cat confdefs.h >>conftest.$ac_ext
  2171. cat >>conftest.$ac_ext <<_ACEOF
  2172. /* end confdefs.h. */
  2173. int
  2174. main ()
  2175. {
  2176. ;
  2177. return 0;
  2178. }
  2179. _ACEOF
  2180. rm -f conftest.o conftest.obj
  2181. if { (ac_try="$ac_compile"
  2182. case "(($ac_try" in
  2183. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2184. *) ac_try_echo=$ac_try;;
  2185. esac
  2186. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2187. (eval "$ac_compile") 2>&5
  2188. ac_status=$?
  2189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2190. (exit $ac_status); }; then
  2191. for ac_file in conftest.o conftest.obj conftest.*; do
  2192. test -f "$ac_file" || continue;
  2193. case $ac_file in
  2194. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2195. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2196. break;;
  2197. esac
  2198. done
  2199. else
  2200. echo "$as_me: failed program was:" >&5
  2201. sed 's/^/| /' conftest.$ac_ext >&5
  2202. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2203. See \`config.log' for more details." >&5
  2204. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2205. See \`config.log' for more details." >&2;}
  2206. { (exit 1); exit 1; }; }
  2207. fi
  2208. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2209. fi
  2210. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2211. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2212. OBJEXT=$ac_cv_objext
  2213. ac_objext=$OBJEXT
  2214. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2215. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2216. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2217. echo $ECHO_N "(cached) $ECHO_C" >&6
  2218. else
  2219. cat >conftest.$ac_ext <<_ACEOF
  2220. /* confdefs.h. */
  2221. _ACEOF
  2222. cat confdefs.h >>conftest.$ac_ext
  2223. cat >>conftest.$ac_ext <<_ACEOF
  2224. /* end confdefs.h. */
  2225. int
  2226. main ()
  2227. {
  2228. #ifndef __GNUC__
  2229. choke me
  2230. #endif
  2231. ;
  2232. return 0;
  2233. }
  2234. _ACEOF
  2235. rm -f conftest.$ac_objext
  2236. if { (ac_try="$ac_compile"
  2237. case "(($ac_try" in
  2238. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2239. *) ac_try_echo=$ac_try;;
  2240. esac
  2241. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2242. (eval "$ac_compile") 2>conftest.er1
  2243. ac_status=$?
  2244. grep -v '^ *+' conftest.er1 >conftest.err
  2245. rm -f conftest.er1
  2246. cat conftest.err >&5
  2247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2248. (exit $ac_status); } && {
  2249. test -z "$ac_c_werror_flag" ||
  2250. test ! -s conftest.err
  2251. } && test -s conftest.$ac_objext; then
  2252. ac_compiler_gnu=yes
  2253. else
  2254. echo "$as_me: failed program was:" >&5
  2255. sed 's/^/| /' conftest.$ac_ext >&5
  2256. ac_compiler_gnu=no
  2257. fi
  2258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2259. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2260. fi
  2261. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2262. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2263. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2264. ac_test_CFLAGS=${CFLAGS+set}
  2265. ac_save_CFLAGS=$CFLAGS
  2266. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2267. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2268. if test "${ac_cv_prog_cc_g+set}" = set; then
  2269. echo $ECHO_N "(cached) $ECHO_C" >&6
  2270. else
  2271. ac_save_c_werror_flag=$ac_c_werror_flag
  2272. ac_c_werror_flag=yes
  2273. ac_cv_prog_cc_g=no
  2274. CFLAGS="-g"
  2275. cat >conftest.$ac_ext <<_ACEOF
  2276. /* confdefs.h. */
  2277. _ACEOF
  2278. cat confdefs.h >>conftest.$ac_ext
  2279. cat >>conftest.$ac_ext <<_ACEOF
  2280. /* end confdefs.h. */
  2281. int
  2282. main ()
  2283. {
  2284. ;
  2285. return 0;
  2286. }
  2287. _ACEOF
  2288. rm -f conftest.$ac_objext
  2289. if { (ac_try="$ac_compile"
  2290. case "(($ac_try" in
  2291. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2292. *) ac_try_echo=$ac_try;;
  2293. esac
  2294. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2295. (eval "$ac_compile") 2>conftest.er1
  2296. ac_status=$?
  2297. grep -v '^ *+' conftest.er1 >conftest.err
  2298. rm -f conftest.er1
  2299. cat conftest.err >&5
  2300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2301. (exit $ac_status); } && {
  2302. test -z "$ac_c_werror_flag" ||
  2303. test ! -s conftest.err
  2304. } && test -s conftest.$ac_objext; then
  2305. ac_cv_prog_cc_g=yes
  2306. else
  2307. echo "$as_me: failed program was:" >&5
  2308. sed 's/^/| /' conftest.$ac_ext >&5
  2309. CFLAGS=""
  2310. cat >conftest.$ac_ext <<_ACEOF
  2311. /* confdefs.h. */
  2312. _ACEOF
  2313. cat confdefs.h >>conftest.$ac_ext
  2314. cat >>conftest.$ac_ext <<_ACEOF
  2315. /* end confdefs.h. */
  2316. int
  2317. main ()
  2318. {
  2319. ;
  2320. return 0;
  2321. }
  2322. _ACEOF
  2323. rm -f conftest.$ac_objext
  2324. if { (ac_try="$ac_compile"
  2325. case "(($ac_try" in
  2326. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2327. *) ac_try_echo=$ac_try;;
  2328. esac
  2329. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2330. (eval "$ac_compile") 2>conftest.er1
  2331. ac_status=$?
  2332. grep -v '^ *+' conftest.er1 >conftest.err
  2333. rm -f conftest.er1
  2334. cat conftest.err >&5
  2335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2336. (exit $ac_status); } && {
  2337. test -z "$ac_c_werror_flag" ||
  2338. test ! -s conftest.err
  2339. } && test -s conftest.$ac_objext; then
  2340. :
  2341. else
  2342. echo "$as_me: failed program was:" >&5
  2343. sed 's/^/| /' conftest.$ac_ext >&5
  2344. ac_c_werror_flag=$ac_save_c_werror_flag
  2345. CFLAGS="-g"
  2346. cat >conftest.$ac_ext <<_ACEOF
  2347. /* confdefs.h. */
  2348. _ACEOF
  2349. cat confdefs.h >>conftest.$ac_ext
  2350. cat >>conftest.$ac_ext <<_ACEOF
  2351. /* end confdefs.h. */
  2352. int
  2353. main ()
  2354. {
  2355. ;
  2356. return 0;
  2357. }
  2358. _ACEOF
  2359. rm -f conftest.$ac_objext
  2360. if { (ac_try="$ac_compile"
  2361. case "(($ac_try" in
  2362. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2363. *) ac_try_echo=$ac_try;;
  2364. esac
  2365. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2366. (eval "$ac_compile") 2>conftest.er1
  2367. ac_status=$?
  2368. grep -v '^ *+' conftest.er1 >conftest.err
  2369. rm -f conftest.er1
  2370. cat conftest.err >&5
  2371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2372. (exit $ac_status); } && {
  2373. test -z "$ac_c_werror_flag" ||
  2374. test ! -s conftest.err
  2375. } && test -s conftest.$ac_objext; then
  2376. ac_cv_prog_cc_g=yes
  2377. else
  2378. echo "$as_me: failed program was:" >&5
  2379. sed 's/^/| /' conftest.$ac_ext >&5
  2380. fi
  2381. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2382. fi
  2383. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2384. fi
  2385. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2386. ac_c_werror_flag=$ac_save_c_werror_flag
  2387. fi
  2388. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2389. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  2390. if test "$ac_test_CFLAGS" = set; then
  2391. CFLAGS=$ac_save_CFLAGS
  2392. elif test $ac_cv_prog_cc_g = yes; then
  2393. if test "$GCC" = yes; then
  2394. CFLAGS="-g -O2"
  2395. else
  2396. CFLAGS="-g"
  2397. fi
  2398. else
  2399. if test "$GCC" = yes; then
  2400. CFLAGS="-O2"
  2401. else
  2402. CFLAGS=
  2403. fi
  2404. fi
  2405. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2406. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  2407. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2408. echo $ECHO_N "(cached) $ECHO_C" >&6
  2409. else
  2410. ac_cv_prog_cc_c89=no
  2411. ac_save_CC=$CC
  2412. cat >conftest.$ac_ext <<_ACEOF
  2413. /* confdefs.h. */
  2414. _ACEOF
  2415. cat confdefs.h >>conftest.$ac_ext
  2416. cat >>conftest.$ac_ext <<_ACEOF
  2417. /* end confdefs.h. */
  2418. #include <stdarg.h>
  2419. #include <stdio.h>
  2420. #include <sys/types.h>
  2421. #include <sys/stat.h>
  2422. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2423. struct buf { int x; };
  2424. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2425. static char *e (p, i)
  2426. char **p;
  2427. int i;
  2428. {
  2429. return p[i];
  2430. }
  2431. static char *f (char * (*g) (char **, int), char **p, ...)
  2432. {
  2433. char *s;
  2434. va_list v;
  2435. va_start (v,p);
  2436. s = g (p, va_arg (v,int));
  2437. va_end (v);
  2438. return s;
  2439. }
  2440. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2441. function prototypes and stuff, but not '\xHH' hex character constants.
  2442. These don't provoke an error unfortunately, instead are silently treated
  2443. as 'x'. The following induces an error, until -std is added to get
  2444. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2445. array size at least. It's necessary to write '\x00'==0 to get something
  2446. that's true only with -std. */
  2447. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2448. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2449. inside strings and character constants. */
  2450. #define FOO(x) 'x'
  2451. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2452. int test (int i, double x);
  2453. struct s1 {int (*f) (int a);};
  2454. struct s2 {int (*f) (double a);};
  2455. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2456. int argc;
  2457. char **argv;
  2458. int
  2459. main ()
  2460. {
  2461. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2462. ;
  2463. return 0;
  2464. }
  2465. _ACEOF
  2466. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2467. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2468. do
  2469. CC="$ac_save_CC $ac_arg"
  2470. rm -f conftest.$ac_objext
  2471. if { (ac_try="$ac_compile"
  2472. case "(($ac_try" in
  2473. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2474. *) ac_try_echo=$ac_try;;
  2475. esac
  2476. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2477. (eval "$ac_compile") 2>conftest.er1
  2478. ac_status=$?
  2479. grep -v '^ *+' conftest.er1 >conftest.err
  2480. rm -f conftest.er1
  2481. cat conftest.err >&5
  2482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2483. (exit $ac_status); } && {
  2484. test -z "$ac_c_werror_flag" ||
  2485. test ! -s conftest.err
  2486. } && test -s conftest.$ac_objext; then
  2487. ac_cv_prog_cc_c89=$ac_arg
  2488. else
  2489. echo "$as_me: failed program was:" >&5
  2490. sed 's/^/| /' conftest.$ac_ext >&5
  2491. fi
  2492. rm -f core conftest.err conftest.$ac_objext
  2493. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2494. done
  2495. rm -f conftest.$ac_ext
  2496. CC=$ac_save_CC
  2497. fi
  2498. # AC_CACHE_VAL
  2499. case "x$ac_cv_prog_cc_c89" in
  2500. x)
  2501. { echo "$as_me:$LINENO: result: none needed" >&5
  2502. echo "${ECHO_T}none needed" >&6; } ;;
  2503. xno)
  2504. { echo "$as_me:$LINENO: result: unsupported" >&5
  2505. echo "${ECHO_T}unsupported" >&6; } ;;
  2506. *)
  2507. CC="$CC $ac_cv_prog_cc_c89"
  2508. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  2509. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  2510. esac
  2511. ac_ext=c
  2512. ac_cpp='$CPP $CPPFLAGS'
  2513. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2514. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2515. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2516. ac_ext=c
  2517. ac_cpp='$CPP $CPPFLAGS'
  2518. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2519. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2520. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2521. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2522. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  2523. # On Suns, sometimes $CPP names a directory.
  2524. if test -n "$CPP" && test -d "$CPP"; then
  2525. CPP=
  2526. fi
  2527. if test -z "$CPP"; then
  2528. if test "${ac_cv_prog_CPP+set}" = set; then
  2529. echo $ECHO_N "(cached) $ECHO_C" >&6
  2530. else
  2531. # Double quotes because CPP needs to be expanded
  2532. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2533. do
  2534. ac_preproc_ok=false
  2535. for ac_c_preproc_warn_flag in '' yes
  2536. do
  2537. # Use a header file that comes with gcc, so configuring glibc
  2538. # with a fresh cross-compiler works.
  2539. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2540. # <limits.h> exists even on freestanding compilers.
  2541. # On the NeXT, cc -E runs the code through the compiler's parser,
  2542. # not just through cpp. "Syntax error" is here to catch this case.
  2543. cat >conftest.$ac_ext <<_ACEOF
  2544. /* confdefs.h. */
  2545. _ACEOF
  2546. cat confdefs.h >>conftest.$ac_ext
  2547. cat >>conftest.$ac_ext <<_ACEOF
  2548. /* end confdefs.h. */
  2549. #ifdef __STDC__
  2550. # include <limits.h>
  2551. #else
  2552. # include <assert.h>
  2553. #endif
  2554. Syntax error
  2555. _ACEOF
  2556. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2557. case "(($ac_try" in
  2558. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2559. *) ac_try_echo=$ac_try;;
  2560. esac
  2561. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2562. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2563. ac_status=$?
  2564. grep -v '^ *+' conftest.er1 >conftest.err
  2565. rm -f conftest.er1
  2566. cat conftest.err >&5
  2567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2568. (exit $ac_status); } >/dev/null && {
  2569. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2570. test ! -s conftest.err
  2571. }; then
  2572. :
  2573. else
  2574. echo "$as_me: failed program was:" >&5
  2575. sed 's/^/| /' conftest.$ac_ext >&5
  2576. # Broken: fails on valid input.
  2577. continue
  2578. fi
  2579. rm -f conftest.err conftest.$ac_ext
  2580. # OK, works on sane cases. Now check whether nonexistent headers
  2581. # can be detected and how.
  2582. cat >conftest.$ac_ext <<_ACEOF
  2583. /* confdefs.h. */
  2584. _ACEOF
  2585. cat confdefs.h >>conftest.$ac_ext
  2586. cat >>conftest.$ac_ext <<_ACEOF
  2587. /* end confdefs.h. */
  2588. #include <ac_nonexistent.h>
  2589. _ACEOF
  2590. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2591. case "(($ac_try" in
  2592. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2593. *) ac_try_echo=$ac_try;;
  2594. esac
  2595. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2596. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2597. ac_status=$?
  2598. grep -v '^ *+' conftest.er1 >conftest.err
  2599. rm -f conftest.er1
  2600. cat conftest.err >&5
  2601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2602. (exit $ac_status); } >/dev/null && {
  2603. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2604. test ! -s conftest.err
  2605. }; then
  2606. # Broken: success on invalid input.
  2607. continue
  2608. else
  2609. echo "$as_me: failed program was:" >&5
  2610. sed 's/^/| /' conftest.$ac_ext >&5
  2611. # Passes both tests.
  2612. ac_preproc_ok=:
  2613. break
  2614. fi
  2615. rm -f conftest.err conftest.$ac_ext
  2616. done
  2617. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2618. rm -f conftest.err conftest.$ac_ext
  2619. if $ac_preproc_ok; then
  2620. break
  2621. fi
  2622. done
  2623. ac_cv_prog_CPP=$CPP
  2624. fi
  2625. CPP=$ac_cv_prog_CPP
  2626. else
  2627. ac_cv_prog_CPP=$CPP
  2628. fi
  2629. { echo "$as_me:$LINENO: result: $CPP" >&5
  2630. echo "${ECHO_T}$CPP" >&6; }
  2631. ac_preproc_ok=false
  2632. for ac_c_preproc_warn_flag in '' yes
  2633. do
  2634. # Use a header file that comes with gcc, so configuring glibc
  2635. # with a fresh cross-compiler works.
  2636. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2637. # <limits.h> exists even on freestanding compilers.
  2638. # On the NeXT, cc -E runs the code through the compiler's parser,
  2639. # not just through cpp. "Syntax error" is here to catch this case.
  2640. cat >conftest.$ac_ext <<_ACEOF
  2641. /* confdefs.h. */
  2642. _ACEOF
  2643. cat confdefs.h >>conftest.$ac_ext
  2644. cat >>conftest.$ac_ext <<_ACEOF
  2645. /* end confdefs.h. */
  2646. #ifdef __STDC__
  2647. # include <limits.h>
  2648. #else
  2649. # include <assert.h>
  2650. #endif
  2651. Syntax error
  2652. _ACEOF
  2653. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2654. case "(($ac_try" in
  2655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2656. *) ac_try_echo=$ac_try;;
  2657. esac
  2658. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2659. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2660. ac_status=$?
  2661. grep -v '^ *+' conftest.er1 >conftest.err
  2662. rm -f conftest.er1
  2663. cat conftest.err >&5
  2664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2665. (exit $ac_status); } >/dev/null && {
  2666. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2667. test ! -s conftest.err
  2668. }; then
  2669. :
  2670. else
  2671. echo "$as_me: failed program was:" >&5
  2672. sed 's/^/| /' conftest.$ac_ext >&5
  2673. # Broken: fails on valid input.
  2674. continue
  2675. fi
  2676. rm -f conftest.err conftest.$ac_ext
  2677. # OK, works on sane cases. Now check whether nonexistent headers
  2678. # can be detected and how.
  2679. cat >conftest.$ac_ext <<_ACEOF
  2680. /* confdefs.h. */
  2681. _ACEOF
  2682. cat confdefs.h >>conftest.$ac_ext
  2683. cat >>conftest.$ac_ext <<_ACEOF
  2684. /* end confdefs.h. */
  2685. #include <ac_nonexistent.h>
  2686. _ACEOF
  2687. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2688. case "(($ac_try" in
  2689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2690. *) ac_try_echo=$ac_try;;
  2691. esac
  2692. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2693. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2694. ac_status=$?
  2695. grep -v '^ *+' conftest.er1 >conftest.err
  2696. rm -f conftest.er1
  2697. cat conftest.err >&5
  2698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2699. (exit $ac_status); } >/dev/null && {
  2700. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2701. test ! -s conftest.err
  2702. }; then
  2703. # Broken: success on invalid input.
  2704. continue
  2705. else
  2706. echo "$as_me: failed program was:" >&5
  2707. sed 's/^/| /' conftest.$ac_ext >&5
  2708. # Passes both tests.
  2709. ac_preproc_ok=:
  2710. break
  2711. fi
  2712. rm -f conftest.err conftest.$ac_ext
  2713. done
  2714. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2715. rm -f conftest.err conftest.$ac_ext
  2716. if $ac_preproc_ok; then
  2717. :
  2718. else
  2719. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2720. See \`config.log' for more details." >&5
  2721. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2722. See \`config.log' for more details." >&2;}
  2723. { (exit 1); exit 1; }; }
  2724. fi
  2725. ac_ext=c
  2726. ac_cpp='$CPP $CPPFLAGS'
  2727. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2728. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2729. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2730. ac_ext=c
  2731. ac_cpp='$CPP $CPPFLAGS'
  2732. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2733. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2734. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2735. CFLAGS="$CFLAGS -pipe -ffast-math -Wall -Wno-sign-compare"
  2736. CPPFLAGS="$CPPFLAGS -I../common"
  2737. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  2738. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  2739. if test "${ac_cv_path_GREP+set}" = set; then
  2740. echo $ECHO_N "(cached) $ECHO_C" >&6
  2741. else
  2742. # Extract the first word of "grep ggrep" to use in msg output
  2743. if test -z "$GREP"; then
  2744. set dummy grep ggrep; ac_prog_name=$2
  2745. if test "${ac_cv_path_GREP+set}" = set; then
  2746. echo $ECHO_N "(cached) $ECHO_C" >&6
  2747. else
  2748. ac_path_GREP_found=false
  2749. # Loop through the user's path and test for each of PROGNAME-LIST
  2750. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2751. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2752. do
  2753. IFS=$as_save_IFS
  2754. test -z "$as_dir" && as_dir=.
  2755. for ac_prog in grep ggrep; do
  2756. for ac_exec_ext in '' $ac_executable_extensions; do
  2757. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  2758. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  2759. # Check for GNU ac_path_GREP and select it if it is found.
  2760. # Check for GNU $ac_path_GREP
  2761. case `"$ac_path_GREP" --version 2>&1` in
  2762. *GNU*)
  2763. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  2764. *)
  2765. ac_count=0
  2766. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  2767. while :
  2768. do
  2769. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2770. mv "conftest.tmp" "conftest.in"
  2771. cp "conftest.in" "conftest.nl"
  2772. echo 'GREP' >> "conftest.nl"
  2773. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2774. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2775. ac_count=`expr $ac_count + 1`
  2776. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  2777. # Best one so far, save it but keep looking for a better one
  2778. ac_cv_path_GREP="$ac_path_GREP"
  2779. ac_path_GREP_max=$ac_count
  2780. fi
  2781. # 10*(2^10) chars as input seems more than enough
  2782. test $ac_count -gt 10 && break
  2783. done
  2784. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2785. esac
  2786. $ac_path_GREP_found && break 3
  2787. done
  2788. done
  2789. done
  2790. IFS=$as_save_IFS
  2791. fi
  2792. GREP="$ac_cv_path_GREP"
  2793. if test -z "$GREP"; then
  2794. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2795. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2796. { (exit 1); exit 1; }; }
  2797. fi
  2798. else
  2799. ac_cv_path_GREP=$GREP
  2800. fi
  2801. fi
  2802. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  2803. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  2804. GREP="$ac_cv_path_GREP"
  2805. { echo "$as_me:$LINENO: checking for egrep" >&5
  2806. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  2807. if test "${ac_cv_path_EGREP+set}" = set; then
  2808. echo $ECHO_N "(cached) $ECHO_C" >&6
  2809. else
  2810. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  2811. then ac_cv_path_EGREP="$GREP -E"
  2812. else
  2813. # Extract the first word of "egrep" to use in msg output
  2814. if test -z "$EGREP"; then
  2815. set dummy egrep; ac_prog_name=$2
  2816. if test "${ac_cv_path_EGREP+set}" = set; then
  2817. echo $ECHO_N "(cached) $ECHO_C" >&6
  2818. else
  2819. ac_path_EGREP_found=false
  2820. # Loop through the user's path and test for each of PROGNAME-LIST
  2821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2822. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2823. do
  2824. IFS=$as_save_IFS
  2825. test -z "$as_dir" && as_dir=.
  2826. for ac_prog in egrep; do
  2827. for ac_exec_ext in '' $ac_executable_extensions; do
  2828. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  2829. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  2830. # Check for GNU ac_path_EGREP and select it if it is found.
  2831. # Check for GNU $ac_path_EGREP
  2832. case `"$ac_path_EGREP" --version 2>&1` in
  2833. *GNU*)
  2834. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  2835. *)
  2836. ac_count=0
  2837. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  2838. while :
  2839. do
  2840. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2841. mv "conftest.tmp" "conftest.in"
  2842. cp "conftest.in" "conftest.nl"
  2843. echo 'EGREP' >> "conftest.nl"
  2844. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2845. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2846. ac_count=`expr $ac_count + 1`
  2847. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  2848. # Best one so far, save it but keep looking for a better one
  2849. ac_cv_path_EGREP="$ac_path_EGREP"
  2850. ac_path_EGREP_max=$ac_count
  2851. fi
  2852. # 10*(2^10) chars as input seems more than enough
  2853. test $ac_count -gt 10 && break
  2854. done
  2855. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2856. esac
  2857. $ac_path_EGREP_found && break 3
  2858. done
  2859. done
  2860. done
  2861. IFS=$as_save_IFS
  2862. fi
  2863. EGREP="$ac_cv_path_EGREP"
  2864. if test -z "$EGREP"; then
  2865. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2866. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2867. { (exit 1); exit 1; }; }
  2868. fi
  2869. else
  2870. ac_cv_path_EGREP=$EGREP
  2871. fi
  2872. fi
  2873. fi
  2874. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  2875. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  2876. EGREP="$ac_cv_path_EGREP"
  2877. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2878. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  2879. if test "${ac_cv_header_stdc+set}" = set; then
  2880. echo $ECHO_N "(cached) $ECHO_C" >&6
  2881. else
  2882. cat >conftest.$ac_ext <<_ACEOF
  2883. /* confdefs.h. */
  2884. _ACEOF
  2885. cat confdefs.h >>conftest.$ac_ext
  2886. cat >>conftest.$ac_ext <<_ACEOF
  2887. /* end confdefs.h. */
  2888. #include <stdlib.h>
  2889. #include <stdarg.h>
  2890. #include <string.h>
  2891. #include <float.h>
  2892. int
  2893. main ()
  2894. {
  2895. ;
  2896. return 0;
  2897. }
  2898. _ACEOF
  2899. rm -f conftest.$ac_objext
  2900. if { (ac_try="$ac_compile"
  2901. case "(($ac_try" in
  2902. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2903. *) ac_try_echo=$ac_try;;
  2904. esac
  2905. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2906. (eval "$ac_compile") 2>conftest.er1
  2907. ac_status=$?
  2908. grep -v '^ *+' conftest.er1 >conftest.err
  2909. rm -f conftest.er1
  2910. cat conftest.err >&5
  2911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2912. (exit $ac_status); } && {
  2913. test -z "$ac_c_werror_flag" ||
  2914. test ! -s conftest.err
  2915. } && test -s conftest.$ac_objext; then
  2916. ac_cv_header_stdc=yes
  2917. else
  2918. echo "$as_me: failed program was:" >&5
  2919. sed 's/^/| /' conftest.$ac_ext >&5
  2920. ac_cv_header_stdc=no
  2921. fi
  2922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2923. if test $ac_cv_header_stdc = yes; then
  2924. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2925. cat >conftest.$ac_ext <<_ACEOF
  2926. /* confdefs.h. */
  2927. _ACEOF
  2928. cat confdefs.h >>conftest.$ac_ext
  2929. cat >>conftest.$ac_ext <<_ACEOF
  2930. /* end confdefs.h. */
  2931. #include <string.h>
  2932. _ACEOF
  2933. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2934. $EGREP "memchr" >/dev/null 2>&1; then
  2935. :
  2936. else
  2937. ac_cv_header_stdc=no
  2938. fi
  2939. rm -f conftest*
  2940. fi
  2941. if test $ac_cv_header_stdc = yes; then
  2942. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2943. cat >conftest.$ac_ext <<_ACEOF
  2944. /* confdefs.h. */
  2945. _ACEOF
  2946. cat confdefs.h >>conftest.$ac_ext
  2947. cat >>conftest.$ac_ext <<_ACEOF
  2948. /* end confdefs.h. */
  2949. #include <stdlib.h>
  2950. _ACEOF
  2951. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2952. $EGREP "free" >/dev/null 2>&1; then
  2953. :
  2954. else
  2955. ac_cv_header_stdc=no
  2956. fi
  2957. rm -f conftest*
  2958. fi
  2959. if test $ac_cv_header_stdc = yes; then
  2960. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2961. if test "$cross_compiling" = yes; then
  2962. :
  2963. else
  2964. cat >conftest.$ac_ext <<_ACEOF
  2965. /* confdefs.h. */
  2966. _ACEOF
  2967. cat confdefs.h >>conftest.$ac_ext
  2968. cat >>conftest.$ac_ext <<_ACEOF
  2969. /* end confdefs.h. */
  2970. #include <ctype.h>
  2971. #include <stdlib.h>
  2972. #if ((' ' & 0x0FF) == 0x020)
  2973. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2974. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2975. #else
  2976. # define ISLOWER(c) \
  2977. (('a' <= (c) && (c) <= 'i') \
  2978. || ('j' <= (c) && (c) <= 'r') \
  2979. || ('s' <= (c) && (c) <= 'z'))
  2980. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2981. #endif
  2982. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2983. int
  2984. main ()
  2985. {
  2986. int i;
  2987. for (i = 0; i < 256; i++)
  2988. if (XOR (islower (i), ISLOWER (i))
  2989. || toupper (i) != TOUPPER (i))
  2990. return 2;
  2991. return 0;
  2992. }
  2993. _ACEOF
  2994. rm -f conftest$ac_exeext
  2995. if { (ac_try="$ac_link"
  2996. case "(($ac_try" in
  2997. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2998. *) ac_try_echo=$ac_try;;
  2999. esac
  3000. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3001. (eval "$ac_link") 2>&5
  3002. ac_status=$?
  3003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3004. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3005. { (case "(($ac_try" in
  3006. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3007. *) ac_try_echo=$ac_try;;
  3008. esac
  3009. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3010. (eval "$ac_try") 2>&5
  3011. ac_status=$?
  3012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3013. (exit $ac_status); }; }; then
  3014. :
  3015. else
  3016. echo "$as_me: program exited with status $ac_status" >&5
  3017. echo "$as_me: failed program was:" >&5
  3018. sed 's/^/| /' conftest.$ac_ext >&5
  3019. ( exit $ac_status )
  3020. ac_cv_header_stdc=no
  3021. fi
  3022. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3023. fi
  3024. fi
  3025. fi
  3026. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3027. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  3028. if test $ac_cv_header_stdc = yes; then
  3029. cat >>confdefs.h <<\_ACEOF
  3030. #define STDC_HEADERS 1
  3031. _ACEOF
  3032. fi
  3033. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3034. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3035. inttypes.h stdint.h unistd.h
  3036. do
  3037. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3038. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  3039. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  3040. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3041. echo $ECHO_N "(cached) $ECHO_C" >&6
  3042. else
  3043. cat >conftest.$ac_ext <<_ACEOF
  3044. /* confdefs.h. */
  3045. _ACEOF
  3046. cat confdefs.h >>conftest.$ac_ext
  3047. cat >>conftest.$ac_ext <<_ACEOF
  3048. /* end confdefs.h. */
  3049. $ac_includes_default
  3050. #include <$ac_header>
  3051. _ACEOF
  3052. rm -f conftest.$ac_objext
  3053. if { (ac_try="$ac_compile"
  3054. case "(($ac_try" in
  3055. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3056. *) ac_try_echo=$ac_try;;
  3057. esac
  3058. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3059. (eval "$ac_compile") 2>conftest.er1
  3060. ac_status=$?
  3061. grep -v '^ *+' conftest.er1 >conftest.err
  3062. rm -f conftest.er1
  3063. cat conftest.err >&5
  3064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3065. (exit $ac_status); } && {
  3066. test -z "$ac_c_werror_flag" ||
  3067. test ! -s conftest.err
  3068. } && test -s conftest.$ac_objext; then
  3069. eval "$as_ac_Header=yes"
  3070. else
  3071. echo "$as_me: failed program was:" >&5
  3072. sed 's/^/| /' conftest.$ac_ext >&5
  3073. eval "$as_ac_Header=no"
  3074. fi
  3075. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3076. fi
  3077. ac_res=`eval echo '${'$as_ac_Header'}'`
  3078. { echo "$as_me:$LINENO: result: $ac_res" >&5
  3079. echo "${ECHO_T}$ac_res" >&6; }
  3080. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3081. cat >>confdefs.h <<_ACEOF
  3082. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3083. _ACEOF
  3084. fi
  3085. done
  3086. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  3087. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  3088. if test "${ac_cv_c_bigendian+set}" = set; then
  3089. echo $ECHO_N "(cached) $ECHO_C" >&6
  3090. else
  3091. # See if sys/param.h defines the BYTE_ORDER macro.
  3092. cat >conftest.$ac_ext <<_ACEOF
  3093. /* confdefs.h. */
  3094. _ACEOF
  3095. cat confdefs.h >>conftest.$ac_ext
  3096. cat >>conftest.$ac_ext <<_ACEOF
  3097. /* end confdefs.h. */
  3098. #include <sys/types.h>
  3099. #include <sys/param.h>
  3100. int
  3101. main ()
  3102. {
  3103. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  3104. && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  3105. bogus endian macros
  3106. #endif
  3107. ;
  3108. return 0;
  3109. }
  3110. _ACEOF
  3111. rm -f conftest.$ac_objext
  3112. if { (ac_try="$ac_compile"
  3113. case "(($ac_try" in
  3114. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3115. *) ac_try_echo=$ac_try;;
  3116. esac
  3117. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3118. (eval "$ac_compile") 2>conftest.er1
  3119. ac_status=$?
  3120. grep -v '^ *+' conftest.er1 >conftest.err
  3121. rm -f conftest.er1
  3122. cat conftest.err >&5
  3123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3124. (exit $ac_status); } && {
  3125. test -z "$ac_c_werror_flag" ||
  3126. test ! -s conftest.err
  3127. } && test -s conftest.$ac_objext; then
  3128. # It does; now see whether it defined to BIG_ENDIAN or not.
  3129. cat >conftest.$ac_ext <<_ACEOF
  3130. /* confdefs.h. */
  3131. _ACEOF
  3132. cat confdefs.h >>conftest.$ac_ext
  3133. cat >>conftest.$ac_ext <<_ACEOF
  3134. /* end confdefs.h. */
  3135. #include <sys/types.h>
  3136. #include <sys/param.h>
  3137. int
  3138. main ()
  3139. {
  3140. #if BYTE_ORDER != BIG_ENDIAN
  3141. not big endian
  3142. #endif
  3143. ;
  3144. return 0;
  3145. }
  3146. _ACEOF
  3147. rm -f conftest.$ac_objext
  3148. if { (ac_try="$ac_compile"
  3149. case "(($ac_try" in
  3150. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3151. *) ac_try_echo=$ac_try;;
  3152. esac
  3153. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3154. (eval "$ac_compile") 2>conftest.er1
  3155. ac_status=$?
  3156. grep -v '^ *+' conftest.er1 >conftest.err
  3157. rm -f conftest.er1
  3158. cat conftest.err >&5
  3159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3160. (exit $ac_status); } && {
  3161. test -z "$ac_c_werror_flag" ||
  3162. test ! -s conftest.err
  3163. } && test -s conftest.$ac_objext; then
  3164. ac_cv_c_bigendian=yes
  3165. else
  3166. echo "$as_me: failed program was:" >&5
  3167. sed 's/^/| /' conftest.$ac_ext >&5
  3168. ac_cv_c_bigendian=no
  3169. fi
  3170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3171. else
  3172. echo "$as_me: failed program was:" >&5
  3173. sed 's/^/| /' conftest.$ac_ext >&5
  3174. # It does not; compile a test program.
  3175. if test "$cross_compiling" = yes; then
  3176. # try to guess the endianness by grepping values into an object file
  3177. ac_cv_c_bigendian=unknown
  3178. cat >conftest.$ac_ext <<_ACEOF
  3179. /* confdefs.h. */
  3180. _ACEOF
  3181. cat confdefs.h >>conftest.$ac_ext
  3182. cat >>conftest.$ac_ext <<_ACEOF
  3183. /* end confdefs.h. */
  3184. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  3185. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  3186. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  3187. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  3188. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  3189. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  3190. int
  3191. main ()
  3192. {
  3193. _ascii (); _ebcdic ();
  3194. ;
  3195. return 0;
  3196. }
  3197. _ACEOF
  3198. rm -f conftest.$ac_objext
  3199. if { (ac_try="$ac_compile"
  3200. case "(($ac_try" in
  3201. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3202. *) ac_try_echo=$ac_try;;
  3203. esac
  3204. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3205. (eval "$ac_compile") 2>conftest.er1
  3206. ac_status=$?
  3207. grep -v '^ *+' conftest.er1 >conftest.err
  3208. rm -f conftest.er1
  3209. cat conftest.err >&5
  3210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3211. (exit $ac_status); } && {
  3212. test -z "$ac_c_werror_flag" ||
  3213. test ! -s conftest.err
  3214. } && test -s conftest.$ac_objext; then
  3215. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  3216. ac_cv_c_bigendian=yes
  3217. fi
  3218. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  3219. if test "$ac_cv_c_bigendian" = unknown; then
  3220. ac_cv_c_bigendian=no
  3221. else
  3222. # finding both strings is unlikely to happen, but who knows?
  3223. ac_cv_c_bigendian=unknown
  3224. fi
  3225. fi
  3226. else
  3227. echo "$as_me: failed program was:" >&5
  3228. sed 's/^/| /' conftest.$ac_ext >&5
  3229. fi
  3230. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3231. else
  3232. cat >conftest.$ac_ext <<_ACEOF
  3233. /* confdefs.h. */
  3234. _ACEOF
  3235. cat confdefs.h >>conftest.$ac_ext
  3236. cat >>conftest.$ac_ext <<_ACEOF
  3237. /* end confdefs.h. */
  3238. $ac_includes_default
  3239. int
  3240. main ()
  3241. {
  3242. /* Are we little or big endian? From Harbison&Steele. */
  3243. union
  3244. {
  3245. long int l;
  3246. char c[sizeof (long int)];
  3247. } u;
  3248. u.l = 1;
  3249. return u.c[sizeof (long int) - 1] == 1;
  3250. ;
  3251. return 0;
  3252. }
  3253. _ACEOF
  3254. rm -f conftest$ac_exeext
  3255. if { (ac_try="$ac_link"
  3256. case "(($ac_try" in
  3257. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3258. *) ac_try_echo=$ac_try;;
  3259. esac
  3260. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3261. (eval "$ac_link") 2>&5
  3262. ac_status=$?
  3263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3264. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3265. { (case "(($ac_try" in
  3266. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3267. *) ac_try_echo=$ac_try;;
  3268. esac
  3269. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3270. (eval "$ac_try") 2>&5
  3271. ac_status=$?
  3272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3273. (exit $ac_status); }; }; then
  3274. ac_cv_c_bigendian=no
  3275. else
  3276. echo "$as_me: program exited with status $ac_status" >&5
  3277. echo "$as_me: failed program was:" >&5
  3278. sed 's/^/| /' conftest.$ac_ext >&5
  3279. ( exit $ac_status )
  3280. ac_cv_c_bigendian=yes
  3281. fi
  3282. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3283. fi
  3284. fi
  3285. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3286. fi
  3287. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  3288. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  3289. case $ac_cv_c_bigendian in
  3290. yes)
  3291. { { echo "$as_me:$LINENO: error: bigendian is not supported... stopping" >&5
  3292. echo "$as_me: error: bigendian is not supported... stopping" >&2;}
  3293. { (exit 1); exit 1; }; } ;;
  3294. no)
  3295. ;;
  3296. *)
  3297. { echo "$as_me:$LINENO: WARNING: unable to determine endianess, only little endian is supported" >&5
  3298. echo "$as_me: WARNING: unable to determine endianess, only little endian is supported" >&2;}
  3299. ;;
  3300. esac
  3301. { echo "$as_me:$LINENO: checking whether pointers can be stored in ints (old code)" >&5
  3302. echo $ECHO_N "checking whether pointers can be stored in ints (old code)... $ECHO_C" >&6; }
  3303. pointers_fit_in_ints="no"
  3304. cat >conftest.$ac_ext <<_ACEOF
  3305. /* confdefs.h. */
  3306. _ACEOF
  3307. cat confdefs.h >>conftest.$ac_ext
  3308. cat >>conftest.$ac_ext <<_ACEOF
  3309. /* end confdefs.h. */
  3310. static int test_array[((long int)sizeof(int)) == ((long int)sizeof(void*)) ? 1 : -1];
  3311. int
  3312. main ()
  3313. {
  3314. ;
  3315. return 0;
  3316. }
  3317. _ACEOF
  3318. rm -f conftest.$ac_objext
  3319. if { (ac_try="$ac_compile"
  3320. case "(($ac_try" in
  3321. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3322. *) ac_try_echo=$ac_try;;
  3323. esac
  3324. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3325. (eval "$ac_compile") 2>conftest.er1
  3326. ac_status=$?
  3327. grep -v '^ *+' conftest.er1 >conftest.err
  3328. rm -f conftest.er1
  3329. cat conftest.err >&5
  3330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3331. (exit $ac_status); } && {
  3332. test -z "$ac_c_werror_flag" ||
  3333. test ! -s conftest.err
  3334. } && test -s conftest.$ac_objext; then
  3335. pointers_fit_in_ints="yes"
  3336. else
  3337. echo "$as_me: failed program was:" >&5
  3338. sed 's/^/| /' conftest.$ac_ext >&5
  3339. fi
  3340. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3341. if test "$pointers_fit_in_ints" = "no" ; then
  3342. CFLAGS="$CFLAGS -m32"
  3343. LDFLAGS="$LDFLAGS -m32"
  3344. cat >conftest.$ac_ext <<_ACEOF
  3345. /* confdefs.h. */
  3346. _ACEOF
  3347. cat confdefs.h >>conftest.$ac_ext
  3348. cat >>conftest.$ac_ext <<_ACEOF
  3349. /* end confdefs.h. */
  3350. static int test_array[((long int)sizeof(int)) == ((long int)sizeof(void *)) ? 1 : -1];
  3351. int
  3352. main ()
  3353. {
  3354. ;
  3355. return 0;
  3356. }
  3357. _ACEOF
  3358. rm -f conftest.$ac_objext
  3359. if { (ac_try="$ac_compile"
  3360. case "(($ac_try" in
  3361. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3362. *) ac_try_echo=$ac_try;;
  3363. esac
  3364. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3365. (eval "$ac_compile") 2>conftest.er1
  3366. ac_status=$?
  3367. grep -v '^ *+' conftest.er1 >conftest.err
  3368. rm -f conftest.er1
  3369. cat conftest.err >&5
  3370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3371. (exit $ac_status); } && {
  3372. test -z "$ac_c_werror_flag" ||
  3373. test ! -s conftest.err
  3374. } && test -s conftest.$ac_objext; then
  3375. pointers_fit_in_ints="yes (with -m32)"
  3376. else
  3377. echo "$as_me: failed program was:" >&5
  3378. sed 's/^/| /' conftest.$ac_ext >&5
  3379. fi
  3380. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3381. fi
  3382. { echo "$as_me:$LINENO: result: $pointers_fit_in_ints" >&5
  3383. echo "${ECHO_T}$pointers_fit_in_ints" >&6; }
  3384. if test "$pointers_fit_in_ints" = "no" ; then
  3385. { { echo "$as_me:$LINENO: error: pointers cannot be stored in ints, required for old code... stopping" >&5
  3386. echo "$as_me: error: pointers cannot be stored in ints, required for old code... stopping" >&2;}
  3387. { (exit 1); exit 1; }; }
  3388. fi
  3389. { echo "$as_me:$LINENO: checking whether $CC supports -Wno-unused-parameter" >&5
  3390. echo $ECHO_N "checking whether $CC supports -Wno-unused-parameter... $ECHO_C" >&6; }
  3391. OLD_CFLAGS="$CFLAGS"
  3392. CFLAGS="$CFLAGS -Wno-unused-parameter"
  3393. cat >conftest.$ac_ext <<_ACEOF
  3394. int foo;
  3395. _ACEOF
  3396. rm -f conftest.$ac_objext
  3397. if { (ac_try="$ac_compile"
  3398. case "(($ac_try" in
  3399. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3400. *) ac_try_echo=$ac_try;;
  3401. esac
  3402. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3403. (eval "$ac_compile") 2>conftest.er1
  3404. ac_status=$?
  3405. grep -v '^ *+' conftest.er1 >conftest.err
  3406. rm -f conftest.er1
  3407. cat conftest.err >&5
  3408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3409. (exit $ac_status); } && {
  3410. test -z "$ac_c_werror_flag" ||
  3411. test ! -s conftest.err
  3412. } && test -s conftest.$ac_objext; then
  3413. { echo "$as_me:$LINENO: result: yes" >&5
  3414. echo "${ECHO_T}yes" >&6; }
  3415. else
  3416. echo "$as_me: failed program was:" >&5
  3417. sed 's/^/| /' conftest.$ac_ext >&5
  3418. { echo "$as_me:$LINENO: result: no" >&5
  3419. echo "${ECHO_T}no" >&6; }
  3420. CFLAGS="$OLD_CFLAGS"
  3421. fi
  3422. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3423. { echo "$as_me:$LINENO: checking whether $CC supports -Wno-pointer-sign" >&5
  3424. echo $ECHO_N "checking whether $CC supports -Wno-pointer-sign... $ECHO_C" >&6; }
  3425. OLD_CFLAGS="$CFLAGS"
  3426. CFLAGS="$CFLAGS -Wno-pointer-sign"
  3427. cat >conftest.$ac_ext <<_ACEOF
  3428. int foo;
  3429. _ACEOF
  3430. rm -f conftest.$ac_objext
  3431. if { (ac_try="$ac_compile"
  3432. case "(($ac_try" in
  3433. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3434. *) ac_try_echo=$ac_try;;
  3435. esac
  3436. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3437. (eval "$ac_compile") 2>conftest.er1
  3438. ac_status=$?
  3439. grep -v '^ *+' conftest.er1 >conftest.err
  3440. rm -f conftest.er1
  3441. cat conftest.err >&5
  3442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3443. (exit $ac_status); } && {
  3444. test -z "$ac_c_werror_flag" ||
  3445. test ! -s conftest.err
  3446. } && test -s conftest.$ac_objext; then
  3447. { echo "$as_me:$LINENO: result: yes" >&5
  3448. echo "${ECHO_T}yes" >&6; }
  3449. else
  3450. echo "$as_me: failed program was:" >&5
  3451. sed 's/^/| /' conftest.$ac_ext >&5
  3452. { echo "$as_me:$LINENO: result: no" >&5
  3453. echo "${ECHO_T}no" >&6; }
  3454. CFLAGS="$OLD_CFLAGS"
  3455. fi
  3456. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3457. { echo "$as_me:$LINENO: checking whether $CC supports -Wno-switch" >&5
  3458. echo $ECHO_N "checking whether $CC supports -Wno-switch... $ECHO_C" >&6; }
  3459. OLD_CFLAGS="$CFLAGS"
  3460. CFLAGS="$CFLAGS -Wno-switch"
  3461. cat >conftest.$ac_ext <<_ACEOF
  3462. int foo;
  3463. _ACEOF
  3464. rm -f conftest.$ac_objext
  3465. if { (ac_try="$ac_compile"
  3466. case "(($ac_try" in
  3467. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3468. *) ac_try_echo=$ac_try;;
  3469. esac
  3470. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3471. (eval "$ac_compile") 2>conftest.er1
  3472. ac_status=$?
  3473. grep -v '^ *+' conftest.er1 >conftest.err
  3474. rm -f conftest.er1
  3475. cat conftest.err >&5
  3476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3477. (exit $ac_status); } && {
  3478. test -z "$ac_c_werror_flag" ||
  3479. test ! -s conftest.err
  3480. } && test -s conftest.$ac_objext; then
  3481. { echo "$as_me:$LINENO: result: yes" >&5
  3482. echo "${ECHO_T}yes" >&6; }
  3483. else
  3484. echo "$as_me: failed program was:" >&5
  3485. sed 's/^/| /' conftest.$ac_ext >&5
  3486. { echo "$as_me:$LINENO: result: no" >&5
  3487. echo "${ECHO_T}no" >&6; }
  3488. CFLAGS="$OLD_CFLAGS"
  3489. fi
  3490. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3491. ###############################################################################
  3492. # Check for libraries and header files.
  3493. #
  3494. #
  3495. # setrlimit - used to set the socket limit
  3496. #
  3497. { echo "$as_me:$LINENO: checking for setrlimit" >&5
  3498. echo $ECHO_N "checking for setrlimit... $ECHO_C" >&6; }
  3499. if test "${ac_cv_func_setrlimit+set}" = set; then
  3500. echo $ECHO_N "(cached) $ECHO_C" >&6
  3501. else
  3502. cat >conftest.$ac_ext <<_ACEOF
  3503. /* confdefs.h. */
  3504. _ACEOF
  3505. cat confdefs.h >>conftest.$ac_ext
  3506. cat >>conftest.$ac_ext <<_ACEOF
  3507. /* end confdefs.h. */
  3508. /* Define setrlimit to an innocuous variant, in case <limits.h> declares setrlimit.
  3509. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3510. #define setrlimit innocuous_setrlimit
  3511. /* System header to define __stub macros and hopefully few prototypes,
  3512. which can conflict with char setrlimit (); below.
  3513. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3514. <limits.h> exists even on freestanding compilers. */
  3515. #ifdef __STDC__
  3516. # include <limits.h>
  3517. #else
  3518. # include <assert.h>
  3519. #endif
  3520. #undef setrlimit
  3521. /* Override any GCC internal prototype to avoid an error.
  3522. Use char because int might match the return type of a GCC
  3523. builtin and then its argument prototype would still apply. */
  3524. #ifdef __cplusplus
  3525. extern "C"
  3526. #endif
  3527. char setrlimit ();
  3528. /* The GNU C library defines this for functions which it implements
  3529. to always fail with ENOSYS. Some functions are actually named
  3530. something starting with __ and the normal name is an alias. */
  3531. #if defined __stub_setrlimit || defined __stub___setrlimit
  3532. choke me
  3533. #endif
  3534. int
  3535. main ()
  3536. {
  3537. return setrlimit ();
  3538. ;
  3539. return 0;
  3540. }
  3541. _ACEOF
  3542. rm -f conftest.$ac_objext conftest$ac_exeext
  3543. if { (ac_try="$ac_link"
  3544. case "(($ac_try" in
  3545. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3546. *) ac_try_echo=$ac_try;;
  3547. esac
  3548. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3549. (eval "$ac_link") 2>conftest.er1
  3550. ac_status=$?
  3551. grep -v '^ *+' conftest.er1 >conftest.err
  3552. rm -f conftest.er1
  3553. cat conftest.err >&5
  3554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3555. (exit $ac_status); } && {
  3556. test -z "$ac_c_werror_flag" ||
  3557. test ! -s conftest.err
  3558. } && test -s conftest$ac_exeext &&
  3559. $as_test_x conftest$ac_exeext; then
  3560. ac_cv_func_setrlimit=yes
  3561. else
  3562. echo "$as_me: failed program was:" >&5
  3563. sed 's/^/| /' conftest.$ac_ext >&5
  3564. ac_cv_func_setrlimit=no
  3565. fi
  3566. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3567. conftest$ac_exeext conftest.$ac_ext
  3568. fi
  3569. { echo "$as_me:$LINENO: result: $ac_cv_func_setrlimit" >&5
  3570. echo "${ECHO_T}$ac_cv_func_setrlimit" >&6; }
  3571. if test $ac_cv_func_setrlimit = yes; then
  3572. CFLAGS="$CFLAGS -DHAVE_SETRLIMIT"
  3573. fi
  3574. #
  3575. # Memory manager
  3576. #
  3577. case $enable_manager in
  3578. "no")
  3579. CFLAGS="$CFLAGS -DNO_MEMMGR"
  3580. ;;
  3581. "builtin")
  3582. # enabled by default
  3583. ;;
  3584. "memwatch")
  3585. CFLAGS="$CFLAGS -DMEMWATCH"
  3586. if test "${ac_cv_header_memwatch_h+set}" = set; then
  3587. { echo "$as_me:$LINENO: checking for memwatch.h" >&5
  3588. echo $ECHO_N "checking for memwatch.h... $ECHO_C" >&6; }
  3589. if test "${ac_cv_header_memwatch_h+set}" = set; then
  3590. echo $ECHO_N "(cached) $ECHO_C" >&6
  3591. fi
  3592. { echo "$as_me:$LINENO: result: $ac_cv_header_memwatch_h" >&5
  3593. echo "${ECHO_T}$ac_cv_header_memwatch_h" >&6; }
  3594. else
  3595. # Is the header compilable?
  3596. { echo "$as_me:$LINENO: checking memwatch.h usability" >&5
  3597. echo $ECHO_N "checking memwatch.h usability... $ECHO_C" >&6; }
  3598. cat >conftest.$ac_ext <<_ACEOF
  3599. /* confdefs.h. */
  3600. _ACEOF
  3601. cat confdefs.h >>conftest.$ac_ext
  3602. cat >>conftest.$ac_ext <<_ACEOF
  3603. /* end confdefs.h. */
  3604. $ac_includes_default
  3605. #include <memwatch.h>
  3606. _ACEOF
  3607. rm -f conftest.$ac_objext
  3608. if { (ac_try="$ac_compile"
  3609. case "(($ac_try" in
  3610. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3611. *) ac_try_echo=$ac_try;;
  3612. esac
  3613. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3614. (eval "$ac_compile") 2>conftest.er1
  3615. ac_status=$?
  3616. grep -v '^ *+' conftest.er1 >conftest.err
  3617. rm -f conftest.er1
  3618. cat conftest.err >&5
  3619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3620. (exit $ac_status); } && {
  3621. test -z "$ac_c_werror_flag" ||
  3622. test ! -s conftest.err
  3623. } && test -s conftest.$ac_objext; then
  3624. ac_header_compiler=yes
  3625. else
  3626. echo "$as_me: failed program was:" >&5
  3627. sed 's/^/| /' conftest.$ac_ext >&5
  3628. ac_header_compiler=no
  3629. fi
  3630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3631. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3632. echo "${ECHO_T}$ac_header_compiler" >&6; }
  3633. # Is the header present?
  3634. { echo "$as_me:$LINENO: checking memwatch.h presence" >&5
  3635. echo $ECHO_N "checking memwatch.h presence... $ECHO_C" >&6; }
  3636. cat >conftest.$ac_ext <<_ACEOF
  3637. /* confdefs.h. */
  3638. _ACEOF
  3639. cat confdefs.h >>conftest.$ac_ext
  3640. cat >>conftest.$ac_ext <<_ACEOF
  3641. /* end confdefs.h. */
  3642. #include <memwatch.h>
  3643. _ACEOF
  3644. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3645. case "(($ac_try" in
  3646. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3647. *) ac_try_echo=$ac_try;;
  3648. esac
  3649. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3650. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3651. ac_status=$?
  3652. grep -v '^ *+' conftest.er1 >conftest.err
  3653. rm -f conftest.er1
  3654. cat conftest.err >&5
  3655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3656. (exit $ac_status); } >/dev/null && {
  3657. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3658. test ! -s conftest.err
  3659. }; then
  3660. ac_header_preproc=yes
  3661. else
  3662. echo "$as_me: failed program was:" >&5
  3663. sed 's/^/| /' conftest.$ac_ext >&5
  3664. ac_header_preproc=no
  3665. fi
  3666. rm -f conftest.err conftest.$ac_ext
  3667. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3668. echo "${ECHO_T}$ac_header_preproc" >&6; }
  3669. # So? What about this header?
  3670. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3671. yes:no: )
  3672. { echo "$as_me:$LINENO: WARNING: memwatch.h: accepted by the compiler, rejected by the preprocessor!" >&5
  3673. echo "$as_me: WARNING: memwatch.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3674. { echo "$as_me:$LINENO: WARNING: memwatch.h: proceeding with the compiler's result" >&5
  3675. echo "$as_me: WARNING: memwatch.h: proceeding with the compiler's result" >&2;}
  3676. ac_header_preproc=yes
  3677. ;;
  3678. no:yes:* )
  3679. { echo "$as_me:$LINENO: WARNING: memwatch.h: present but cannot be compiled" >&5
  3680. echo "$as_me: WARNING: memwatch.h: present but cannot be compiled" >&2;}
  3681. { echo "$as_me:$LINENO: WARNING: memwatch.h: check for missing prerequisite headers?" >&5
  3682. echo "$as_me: WARNING: memwatch.h: check for missing prerequisite headers?" >&2;}
  3683. { echo "$as_me:$LINENO: WARNING: memwatch.h: see the Autoconf documentation" >&5
  3684. echo "$as_me: WARNING: memwatch.h: see the Autoconf documentation" >&2;}
  3685. { echo "$as_me:$LINENO: WARNING: memwatch.h: section \"Present But Cannot Be Compiled\"" >&5
  3686. echo "$as_me: WARNING: memwatch.h: section \"Present But Cannot Be Compiled\"" >&2;}
  3687. { echo "$as_me:$LINENO: WARNING: memwatch.h: proceeding with the preprocessor's result" >&5
  3688. echo "$as_me: WARNING: memwatch.h: proceeding with the preprocessor's result" >&2;}
  3689. { echo "$as_me:$LINENO: WARNING: memwatch.h: in the future, the compiler will take precedence" >&5
  3690. echo "$as_me: WARNING: memwatch.h: in the future, the compiler will take precedence" >&2;}
  3691. ;;
  3692. esac
  3693. { echo "$as_me:$LINENO: checking for memwatch.h" >&5
  3694. echo $ECHO_N "checking for memwatch.h... $ECHO_C" >&6; }
  3695. if test "${ac_cv_header_memwatch_h+set}" = set; then
  3696. echo $ECHO_N "(cached) $ECHO_C" >&6
  3697. else
  3698. ac_cv_header_memwatch_h=$ac_header_preproc
  3699. fi
  3700. { echo "$as_me:$LINENO: result: $ac_cv_header_memwatch_h" >&5
  3701. echo "${ECHO_T}$ac_cv_header_memwatch_h" >&6; }
  3702. fi
  3703. if test $ac_cv_header_memwatch_h = yes; then
  3704. :
  3705. else
  3706. { { echo "$as_me:$LINENO: error: memwatch header not found... stopping" >&5
  3707. echo "$as_me: error: memwatch header not found... stopping" >&2;}
  3708. { (exit 1); exit 1; }; }
  3709. fi
  3710. ;;
  3711. "dmalloc")
  3712. CFLAGS="$CFLAGS -DDMALLOC -DDMALLOC_FUNC_CHECK"
  3713. LIBS="$LIBS -ldmalloc"
  3714. if test "${ac_cv_header_dmalloc_h+set}" = set; then
  3715. { echo "$as_me:$LINENO: checking for dmalloc.h" >&5
  3716. echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6; }
  3717. if test "${ac_cv_header_dmalloc_h+set}" = set; then
  3718. echo $ECHO_N "(cached) $ECHO_C" >&6
  3719. fi
  3720. { echo "$as_me:$LINENO: result: $ac_cv_header_dmalloc_h" >&5
  3721. echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6; }
  3722. else
  3723. # Is the header compilable?
  3724. { echo "$as_me:$LINENO: checking dmalloc.h usability" >&5
  3725. echo $ECHO_N "checking dmalloc.h usability... $ECHO_C" >&6; }
  3726. cat >conftest.$ac_ext <<_ACEOF
  3727. /* confdefs.h. */
  3728. _ACEOF
  3729. cat confdefs.h >>conftest.$ac_ext
  3730. cat >>conftest.$ac_ext <<_ACEOF
  3731. /* end confdefs.h. */
  3732. $ac_includes_default
  3733. #include <dmalloc.h>
  3734. _ACEOF
  3735. rm -f conftest.$ac_objext
  3736. if { (ac_try="$ac_compile"
  3737. case "(($ac_try" in
  3738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3739. *) ac_try_echo=$ac_try;;
  3740. esac
  3741. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3742. (eval "$ac_compile") 2>conftest.er1
  3743. ac_status=$?
  3744. grep -v '^ *+' conftest.er1 >conftest.err
  3745. rm -f conftest.er1
  3746. cat conftest.err >&5
  3747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3748. (exit $ac_status); } && {
  3749. test -z "$ac_c_werror_flag" ||
  3750. test ! -s conftest.err
  3751. } && test -s conftest.$ac_objext; then
  3752. ac_header_compiler=yes
  3753. else
  3754. echo "$as_me: failed program was:" >&5
  3755. sed 's/^/| /' conftest.$ac_ext >&5
  3756. ac_header_compiler=no
  3757. fi
  3758. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3759. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3760. echo "${ECHO_T}$ac_header_compiler" >&6; }
  3761. # Is the header present?
  3762. { echo "$as_me:$LINENO: checking dmalloc.h presence" >&5
  3763. echo $ECHO_N "checking dmalloc.h presence... $ECHO_C" >&6; }
  3764. cat >conftest.$ac_ext <<_ACEOF
  3765. /* confdefs.h. */
  3766. _ACEOF
  3767. cat confdefs.h >>conftest.$ac_ext
  3768. cat >>conftest.$ac_ext <<_ACEOF
  3769. /* end confdefs.h. */
  3770. #include <dmalloc.h>
  3771. _ACEOF
  3772. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3773. case "(($ac_try" in
  3774. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3775. *) ac_try_echo=$ac_try;;
  3776. esac
  3777. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3778. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3779. ac_status=$?
  3780. grep -v '^ *+' conftest.er1 >conftest.err
  3781. rm -f conftest.er1
  3782. cat conftest.err >&5
  3783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3784. (exit $ac_status); } >/dev/null && {
  3785. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3786. test ! -s conftest.err
  3787. }; then
  3788. ac_header_preproc=yes
  3789. else
  3790. echo "$as_me: failed program was:" >&5
  3791. sed 's/^/| /' conftest.$ac_ext >&5
  3792. ac_header_preproc=no
  3793. fi
  3794. rm -f conftest.err conftest.$ac_ext
  3795. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3796. echo "${ECHO_T}$ac_header_preproc" >&6; }
  3797. # So? What about this header?
  3798. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3799. yes:no: )
  3800. { echo "$as_me:$LINENO: WARNING: dmalloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
  3801. echo "$as_me: WARNING: dmalloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3802. { echo "$as_me:$LINENO: WARNING: dmalloc.h: proceeding with the compiler's result" >&5
  3803. echo "$as_me: WARNING: dmalloc.h: proceeding with the compiler's result" >&2;}
  3804. ac_header_preproc=yes
  3805. ;;
  3806. no:yes:* )
  3807. { echo "$as_me:$LINENO: WARNING: dmalloc.h: present but cannot be compiled" >&5
  3808. echo "$as_me: WARNING: dmalloc.h: present but cannot be compiled" >&2;}
  3809. { echo "$as_me:$LINENO: WARNING: dmalloc.h: check for missing prerequisite headers?" >&5
  3810. echo "$as_me: WARNING: dmalloc.h: check for missing prerequisite headers?" >&2;}
  3811. { echo "$as_me:$LINENO: WARNING: dmalloc.h: see the Autoconf documentation" >&5
  3812. echo "$as_me: WARNING: dmalloc.h: see the Autoconf documentation" >&2;}
  3813. { echo "$as_me:$LINENO: WARNING: dmalloc.h: section \"Present But Cannot Be Compiled\"" >&5
  3814. echo "$as_me: WARNING: dmalloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
  3815. { echo "$as_me:$LINENO: WARNING: dmalloc.h: proceeding with the preprocessor's result" >&5
  3816. echo "$as_me: WARNING: dmalloc.h: proceeding with the preprocessor's result" >&2;}
  3817. { echo "$as_me:$LINENO: WARNING: dmalloc.h: in the future, the compiler will take precedence" >&5
  3818. echo "$as_me: WARNING: dmalloc.h: in the future, the compiler will take precedence" >&2;}
  3819. ;;
  3820. esac
  3821. { echo "$as_me:$LINENO: checking for dmalloc.h" >&5
  3822. echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6; }
  3823. if test "${ac_cv_header_dmalloc_h+set}" = set; then
  3824. echo $ECHO_N "(cached) $ECHO_C" >&6
  3825. else
  3826. ac_cv_header_dmalloc_h=$ac_header_preproc
  3827. fi
  3828. { echo "$as_me:$LINENO: result: $ac_cv_header_dmalloc_h" >&5
  3829. echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6; }
  3830. fi
  3831. if test $ac_cv_header_dmalloc_h = yes; then
  3832. :
  3833. else
  3834. { { echo "$as_me:$LINENO: error: dmalloc header not found... stopping" >&5
  3835. echo "$as_me: error: dmalloc header not found... stopping" >&2;}
  3836. { (exit 1); exit 1; }; }
  3837. fi
  3838. ;;
  3839. "gcollect")
  3840. CFLAGS="$CFLAGS -DGCOLLECT"
  3841. LIBS="$LIBS -lgc"
  3842. if test "${ac_cv_header_gc_h+set}" = set; then
  3843. { echo "$as_me:$LINENO: checking for gc.h" >&5
  3844. echo $ECHO_N "checking for gc.h... $ECHO_C" >&6; }
  3845. if test "${ac_cv_header_gc_h+set}" = set; then
  3846. echo $ECHO_N "(cached) $ECHO_C" >&6
  3847. fi
  3848. { echo "$as_me:$LINENO: result: $ac_cv_header_gc_h" >&5
  3849. echo "${ECHO_T}$ac_cv_header_gc_h" >&6; }
  3850. else
  3851. # Is the header compilable?
  3852. { echo "$as_me:$LINENO: checking gc.h usability" >&5
  3853. echo $ECHO_N "checking gc.h usability... $ECHO_C" >&6; }
  3854. cat >conftest.$ac_ext <<_ACEOF
  3855. /* confdefs.h. */
  3856. _ACEOF
  3857. cat confdefs.h >>conftest.$ac_ext
  3858. cat >>conftest.$ac_ext <<_ACEOF
  3859. /* end confdefs.h. */
  3860. $ac_includes_default
  3861. #include <gc.h>
  3862. _ACEOF
  3863. rm -f conftest.$ac_objext
  3864. if { (ac_try="$ac_compile"
  3865. case "(($ac_try" in
  3866. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3867. *) ac_try_echo=$ac_try;;
  3868. esac
  3869. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3870. (eval "$ac_compile") 2>conftest.er1
  3871. ac_status=$?
  3872. grep -v '^ *+' conftest.er1 >conftest.err
  3873. rm -f conftest.er1
  3874. cat conftest.err >&5
  3875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3876. (exit $ac_status); } && {
  3877. test -z "$ac_c_werror_flag" ||
  3878. test ! -s conftest.err
  3879. } && test -s conftest.$ac_objext; then
  3880. ac_header_compiler=yes
  3881. else
  3882. echo "$as_me: failed program was:" >&5
  3883. sed 's/^/| /' conftest.$ac_ext >&5
  3884. ac_header_compiler=no
  3885. fi
  3886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3887. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3888. echo "${ECHO_T}$ac_header_compiler" >&6; }
  3889. # Is the header present?
  3890. { echo "$as_me:$LINENO: checking gc.h presence" >&5
  3891. echo $ECHO_N "checking gc.h presence... $ECHO_C" >&6; }
  3892. cat >conftest.$ac_ext <<_ACEOF
  3893. /* confdefs.h. */
  3894. _ACEOF
  3895. cat confdefs.h >>conftest.$ac_ext
  3896. cat >>conftest.$ac_ext <<_ACEOF
  3897. /* end confdefs.h. */
  3898. #include <gc.h>
  3899. _ACEOF
  3900. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3901. case "(($ac_try" in
  3902. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3903. *) ac_try_echo=$ac_try;;
  3904. esac
  3905. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3906. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3907. ac_status=$?
  3908. grep -v '^ *+' conftest.er1 >conftest.err
  3909. rm -f conftest.er1
  3910. cat conftest.err >&5
  3911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3912. (exit $ac_status); } >/dev/null && {
  3913. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3914. test ! -s conftest.err
  3915. }; then
  3916. ac_header_preproc=yes
  3917. else
  3918. echo "$as_me: failed program was:" >&5
  3919. sed 's/^/| /' conftest.$ac_ext >&5
  3920. ac_header_preproc=no
  3921. fi
  3922. rm -f conftest.err conftest.$ac_ext
  3923. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3924. echo "${ECHO_T}$ac_header_preproc" >&6; }
  3925. # So? What about this header?
  3926. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3927. yes:no: )
  3928. { echo "$as_me:$LINENO: WARNING: gc.h: accepted by the compiler, rejected by the preprocessor!" >&5
  3929. echo "$as_me: WARNING: gc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3930. { echo "$as_me:$LINENO: WARNING: gc.h: proceeding with the compiler's result" >&5
  3931. echo "$as_me: WARNING: gc.h: proceeding with the compiler's result" >&2;}
  3932. ac_header_preproc=yes
  3933. ;;
  3934. no:yes:* )
  3935. { echo "$as_me:$LINENO: WARNING: gc.h: present but cannot be compiled" >&5
  3936. echo "$as_me: WARNING: gc.h: present but cannot be compiled" >&2;}
  3937. { echo "$as_me:$LINENO: WARNING: gc.h: check for missing prerequisite headers?" >&5
  3938. echo "$as_me: WARNING: gc.h: check for missing prerequisite headers?" >&2;}
  3939. { echo "$as_me:$LINENO: WARNING: gc.h: see the Autoconf documentation" >&5
  3940. echo "$as_me: WARNING: gc.h: see the Autoconf documentation" >&2;}
  3941. { echo "$as_me:$LINENO: WARNING: gc.h: section \"Present But Cannot Be Compiled\"" >&5
  3942. echo "$as_me: WARNING: gc.h: section \"Present But Cannot Be Compiled\"" >&2;}
  3943. { echo "$as_me:$LINENO: WARNING: gc.h: proceeding with the preprocessor's result" >&5
  3944. echo "$as_me: WARNING: gc.h: proceeding with the preprocessor's result" >&2;}
  3945. { echo "$as_me:$LINENO: WARNING: gc.h: in the future, the compiler will take precedence" >&5
  3946. echo "$as_me: WARNING: gc.h: in the future, the compiler will take precedence" >&2;}
  3947. ;;
  3948. esac
  3949. { echo "$as_me:$LINENO: checking for gc.h" >&5
  3950. echo $ECHO_N "checking for gc.h... $ECHO_C" >&6; }
  3951. if test "${ac_cv_header_gc_h+set}" = set; then
  3952. echo $ECHO_N "(cached) $ECHO_C" >&6
  3953. else
  3954. ac_cv_header_gc_h=$ac_header_preproc
  3955. fi
  3956. { echo "$as_me:$LINENO: result: $ac_cv_header_gc_h" >&5
  3957. echo "${ECHO_T}$ac_cv_header_gc_h" >&6; }
  3958. fi
  3959. if test $ac_cv_header_gc_h = yes; then
  3960. :
  3961. else
  3962. { { echo "$as_me:$LINENO: error: gcollect header not found... stopping" >&5
  3963. echo "$as_me: error: gcollect header not found... stopping" >&2;}
  3964. { (exit 1); exit 1; }; }
  3965. fi
  3966. ;;
  3967. "bcheck")
  3968. CFLAGS="$CFLAGS -DBCHECK"
  3969. ;;
  3970. esac
  3971. #
  3972. # Packetver
  3973. #
  3974. if test -n "$enable_packetver" ; then
  3975. CFLAGS="$CFLAGS -DPACKETVER=$enable_packetver"
  3976. fi
  3977. #
  3978. # Mapregsql
  3979. #
  3980. if test "$enable_mapregsql" = "yes" ; then
  3981. CFLAGS="$CFLAGS -DMAPREGSQL"
  3982. fi
  3983. #
  3984. # Debug
  3985. #
  3986. if test "$enable_debug" = "yes" ; then
  3987. CFLAGS="$CFLAGS -g -DDEBUG"
  3988. fi
  3989. #
  3990. # zlib library (required)
  3991. #
  3992. if test -n "${ZLIB_HOME}" ; then
  3993. LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
  3994. CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
  3995. fi
  3996. { echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
  3997. echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6; }
  3998. if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
  3999. echo $ECHO_N "(cached) $ECHO_C" >&6
  4000. else
  4001. ac_check_lib_save_LIBS=$LIBS
  4002. LIBS="-lz $LIBS"
  4003. cat >conftest.$ac_ext <<_ACEOF
  4004. /* confdefs.h. */
  4005. _ACEOF
  4006. cat confdefs.h >>conftest.$ac_ext
  4007. cat >>conftest.$ac_ext <<_ACEOF
  4008. /* end confdefs.h. */
  4009. /* Override any GCC internal prototype to avoid an error.
  4010. Use char because int might match the return type of a GCC
  4011. builtin and then its argument prototype would still apply. */
  4012. #ifdef __cplusplus
  4013. extern "C"
  4014. #endif
  4015. char inflateEnd ();
  4016. int
  4017. main ()
  4018. {
  4019. return inflateEnd ();
  4020. ;
  4021. return 0;
  4022. }
  4023. _ACEOF
  4024. rm -f conftest.$ac_objext conftest$ac_exeext
  4025. if { (ac_try="$ac_link"
  4026. case "(($ac_try" in
  4027. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4028. *) ac_try_echo=$ac_try;;
  4029. esac
  4030. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4031. (eval "$ac_link") 2>conftest.er1
  4032. ac_status=$?
  4033. grep -v '^ *+' conftest.er1 >conftest.err
  4034. rm -f conftest.er1
  4035. cat conftest.err >&5
  4036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4037. (exit $ac_status); } && {
  4038. test -z "$ac_c_werror_flag" ||
  4039. test ! -s conftest.err
  4040. } && test -s conftest$ac_exeext &&
  4041. $as_test_x conftest$ac_exeext; then
  4042. ac_cv_lib_z_inflateEnd=yes
  4043. else
  4044. echo "$as_me: failed program was:" >&5
  4045. sed 's/^/| /' conftest.$ac_ext >&5
  4046. ac_cv_lib_z_inflateEnd=no
  4047. fi
  4048. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4049. conftest$ac_exeext conftest.$ac_ext
  4050. LIBS=$ac_check_lib_save_LIBS
  4051. fi
  4052. { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
  4053. echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6; }
  4054. if test $ac_cv_lib_z_inflateEnd = yes; then
  4055. cat >>confdefs.h <<_ACEOF
  4056. #define HAVE_LIBZ 1
  4057. _ACEOF
  4058. LIBS="-lz $LIBS"
  4059. else
  4060. { { echo "$as_me:$LINENO: error: zlib library not found or incompatible, please specify the correct path with --with-zlib=DIR... stopping" >&5
  4061. echo "$as_me: error: zlib library not found or incompatible, please specify the correct path with --with-zlib=DIR... stopping" >&2;}
  4062. { (exit 1); exit 1; }; }
  4063. fi
  4064. if test "${ac_cv_header_zlib_h+set}" = set; then
  4065. { echo "$as_me:$LINENO: checking for zlib.h" >&5
  4066. echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
  4067. if test "${ac_cv_header_zlib_h+set}" = set; then
  4068. echo $ECHO_N "(cached) $ECHO_C" >&6
  4069. fi
  4070. { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
  4071. echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
  4072. else
  4073. # Is the header compilable?
  4074. { echo "$as_me:$LINENO: checking zlib.h usability" >&5
  4075. echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
  4076. cat >conftest.$ac_ext <<_ACEOF
  4077. /* confdefs.h. */
  4078. _ACEOF
  4079. cat confdefs.h >>conftest.$ac_ext
  4080. cat >>conftest.$ac_ext <<_ACEOF
  4081. /* end confdefs.h. */
  4082. $ac_includes_default
  4083. #include <zlib.h>
  4084. _ACEOF
  4085. rm -f conftest.$ac_objext
  4086. if { (ac_try="$ac_compile"
  4087. case "(($ac_try" in
  4088. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4089. *) ac_try_echo=$ac_try;;
  4090. esac
  4091. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4092. (eval "$ac_compile") 2>conftest.er1
  4093. ac_status=$?
  4094. grep -v '^ *+' conftest.er1 >conftest.err
  4095. rm -f conftest.er1
  4096. cat conftest.err >&5
  4097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4098. (exit $ac_status); } && {
  4099. test -z "$ac_c_werror_flag" ||
  4100. test ! -s conftest.err
  4101. } && test -s conftest.$ac_objext; then
  4102. ac_header_compiler=yes
  4103. else
  4104. echo "$as_me: failed program was:" >&5
  4105. sed 's/^/| /' conftest.$ac_ext >&5
  4106. ac_header_compiler=no
  4107. fi
  4108. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4109. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4110. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4111. # Is the header present?
  4112. { echo "$as_me:$LINENO: checking zlib.h presence" >&5
  4113. echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
  4114. cat >conftest.$ac_ext <<_ACEOF
  4115. /* confdefs.h. */
  4116. _ACEOF
  4117. cat confdefs.h >>conftest.$ac_ext
  4118. cat >>conftest.$ac_ext <<_ACEOF
  4119. /* end confdefs.h. */
  4120. #include <zlib.h>
  4121. _ACEOF
  4122. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4123. case "(($ac_try" in
  4124. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4125. *) ac_try_echo=$ac_try;;
  4126. esac
  4127. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4128. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4129. ac_status=$?
  4130. grep -v '^ *+' conftest.er1 >conftest.err
  4131. rm -f conftest.er1
  4132. cat conftest.err >&5
  4133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4134. (exit $ac_status); } >/dev/null && {
  4135. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4136. test ! -s conftest.err
  4137. }; then
  4138. ac_header_preproc=yes
  4139. else
  4140. echo "$as_me: failed program was:" >&5
  4141. sed 's/^/| /' conftest.$ac_ext >&5
  4142. ac_header_preproc=no
  4143. fi
  4144. rm -f conftest.err conftest.$ac_ext
  4145. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4146. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4147. # So? What about this header?
  4148. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4149. yes:no: )
  4150. { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4151. echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4152. { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
  4153. echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
  4154. ac_header_preproc=yes
  4155. ;;
  4156. no:yes:* )
  4157. { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
  4158. echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
  4159. { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
  4160. echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
  4161. { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
  4162. echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
  4163. { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
  4164. echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4165. { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
  4166. echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
  4167. { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
  4168. echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
  4169. ;;
  4170. esac
  4171. { echo "$as_me:$LINENO: checking for zlib.h" >&5
  4172. echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
  4173. if test "${ac_cv_header_zlib_h+set}" = set; then
  4174. echo $ECHO_N "(cached) $ECHO_C" >&6
  4175. else
  4176. ac_cv_header_zlib_h=$ac_header_preproc
  4177. fi
  4178. { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
  4179. echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
  4180. fi
  4181. if test $ac_cv_header_zlib_h = yes; then
  4182. :
  4183. else
  4184. { { echo "$as_me:$LINENO: error: zlib header not found, please specify the correct path with --with-zlib=DIR... stopping" >&5
  4185. echo "$as_me: error: zlib header not found, please specify the correct path with --with-zlib=DIR... stopping" >&2;}
  4186. { (exit 1); exit 1; }; }
  4187. fi
  4188. #
  4189. # math library (required)
  4190. #
  4191. { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
  4192. echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
  4193. if test "${ac_cv_lib_m_sqrt+set}" = set; then
  4194. echo $ECHO_N "(cached) $ECHO_C" >&6
  4195. else
  4196. ac_check_lib_save_LIBS=$LIBS
  4197. LIBS="-lm $LIBS"
  4198. cat >conftest.$ac_ext <<_ACEOF
  4199. /* confdefs.h. */
  4200. _ACEOF
  4201. cat confdefs.h >>conftest.$ac_ext
  4202. cat >>conftest.$ac_ext <<_ACEOF
  4203. /* end confdefs.h. */
  4204. /* Override any GCC internal prototype to avoid an error.
  4205. Use char because int might match the return type of a GCC
  4206. builtin and then its argument prototype would still apply. */
  4207. #ifdef __cplusplus
  4208. extern "C"
  4209. #endif
  4210. char sqrt ();
  4211. int
  4212. main ()
  4213. {
  4214. return sqrt ();
  4215. ;
  4216. return 0;
  4217. }
  4218. _ACEOF
  4219. rm -f conftest.$ac_objext conftest$ac_exeext
  4220. if { (ac_try="$ac_link"
  4221. case "(($ac_try" in
  4222. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4223. *) ac_try_echo=$ac_try;;
  4224. esac
  4225. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4226. (eval "$ac_link") 2>conftest.er1
  4227. ac_status=$?
  4228. grep -v '^ *+' conftest.er1 >conftest.err
  4229. rm -f conftest.er1
  4230. cat conftest.err >&5
  4231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4232. (exit $ac_status); } && {
  4233. test -z "$ac_c_werror_flag" ||
  4234. test ! -s conftest.err
  4235. } && test -s conftest$ac_exeext &&
  4236. $as_test_x conftest$ac_exeext; then
  4237. ac_cv_lib_m_sqrt=yes
  4238. else
  4239. echo "$as_me: failed program was:" >&5
  4240. sed 's/^/| /' conftest.$ac_ext >&5
  4241. ac_cv_lib_m_sqrt=no
  4242. fi
  4243. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4244. conftest$ac_exeext conftest.$ac_ext
  4245. LIBS=$ac_check_lib_save_LIBS
  4246. fi
  4247. { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
  4248. echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
  4249. if test $ac_cv_lib_m_sqrt = yes; then
  4250. cat >>confdefs.h <<_ACEOF
  4251. #define HAVE_LIBM 1
  4252. _ACEOF
  4253. LIBS="-lm $LIBS"
  4254. else
  4255. { { echo "$as_me:$LINENO: error: math library not found... stopping" >&5
  4256. echo "$as_me: error: math library not found... stopping" >&2;}
  4257. { (exit 1); exit 1; }; }
  4258. fi
  4259. #
  4260. # clock_gettime (rt on Debian)
  4261. #
  4262. { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
  4263. echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
  4264. if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
  4265. echo $ECHO_N "(cached) $ECHO_C" >&6
  4266. else
  4267. ac_check_lib_save_LIBS=$LIBS
  4268. LIBS="-lrt $LIBS"
  4269. cat >conftest.$ac_ext <<_ACEOF
  4270. /* confdefs.h. */
  4271. _ACEOF
  4272. cat confdefs.h >>conftest.$ac_ext
  4273. cat >>conftest.$ac_ext <<_ACEOF
  4274. /* end confdefs.h. */
  4275. /* Override any GCC internal prototype to avoid an error.
  4276. Use char because int might match the return type of a GCC
  4277. builtin and then its argument prototype would still apply. */
  4278. #ifdef __cplusplus
  4279. extern "C"
  4280. #endif
  4281. char clock_gettime ();
  4282. int
  4283. main ()
  4284. {
  4285. return clock_gettime ();
  4286. ;
  4287. return 0;
  4288. }
  4289. _ACEOF
  4290. rm -f conftest.$ac_objext conftest$ac_exeext
  4291. if { (ac_try="$ac_link"
  4292. case "(($ac_try" in
  4293. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4294. *) ac_try_echo=$ac_try;;
  4295. esac
  4296. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4297. (eval "$ac_link") 2>conftest.er1
  4298. ac_status=$?
  4299. grep -v '^ *+' conftest.er1 >conftest.err
  4300. rm -f conftest.er1
  4301. cat conftest.err >&5
  4302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4303. (exit $ac_status); } && {
  4304. test -z "$ac_c_werror_flag" ||
  4305. test ! -s conftest.err
  4306. } && test -s conftest$ac_exeext &&
  4307. $as_test_x conftest$ac_exeext; then
  4308. ac_cv_lib_rt_clock_gettime=yes
  4309. else
  4310. echo "$as_me: failed program was:" >&5
  4311. sed 's/^/| /' conftest.$ac_ext >&5
  4312. ac_cv_lib_rt_clock_gettime=no
  4313. fi
  4314. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4315. conftest$ac_exeext conftest.$ac_ext
  4316. LIBS=$ac_check_lib_save_LIBS
  4317. fi
  4318. { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
  4319. echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
  4320. if test $ac_cv_lib_rt_clock_gettime = yes; then
  4321. cat >>confdefs.h <<_ACEOF
  4322. #define HAVE_LIBRT 1
  4323. _ACEOF
  4324. LIBS="-lrt $LIBS"
  4325. fi
  4326. #
  4327. # MySQL library (optional)
  4328. #
  4329. if test "$want_mysql" = "no" ; then
  4330. MYSQL_VERSION=""
  4331. MYSQL_CFLAGS=""
  4332. MYSQL_LIBS=""
  4333. { echo "$as_me:$LINENO: ignoring MySQL (optional)" >&5
  4334. echo "$as_me: ignoring MySQL (optional)" >&6;}
  4335. else
  4336. if test -z "$MYSQL_CONFIG_HOME"; then
  4337. # Extract the first word of "mysql_config", so it can be a program name with args.
  4338. set dummy mysql_config; ac_word=$2
  4339. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4340. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4341. if test "${ac_cv_path_MYSQL_CONFIG_HOME+set}" = set; then
  4342. echo $ECHO_N "(cached) $ECHO_C" >&6
  4343. else
  4344. case $MYSQL_CONFIG_HOME in
  4345. [\\/]* | ?:[\\/]*)
  4346. ac_cv_path_MYSQL_CONFIG_HOME="$MYSQL_CONFIG_HOME" # Let the user override the test with a path.
  4347. ;;
  4348. *)
  4349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4350. for as_dir in $PATH
  4351. do
  4352. IFS=$as_save_IFS
  4353. test -z "$as_dir" && as_dir=.
  4354. for ac_exec_ext in '' $ac_executable_extensions; do
  4355. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4356. ac_cv_path_MYSQL_CONFIG_HOME="$as_dir/$ac_word$ac_exec_ext"
  4357. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4358. break 2
  4359. fi
  4360. done
  4361. done
  4362. IFS=$as_save_IFS
  4363. test -z "$ac_cv_path_MYSQL_CONFIG_HOME" && ac_cv_path_MYSQL_CONFIG_HOME="no"
  4364. ;;
  4365. esac
  4366. fi
  4367. MYSQL_CONFIG_HOME=$ac_cv_path_MYSQL_CONFIG_HOME
  4368. if test -n "$MYSQL_CONFIG_HOME"; then
  4369. { echo "$as_me:$LINENO: result: $MYSQL_CONFIG_HOME" >&5
  4370. echo "${ECHO_T}$MYSQL_CONFIG_HOME" >&6; }
  4371. else
  4372. { echo "$as_me:$LINENO: result: no" >&5
  4373. echo "${ECHO_T}no" >&6; }
  4374. fi
  4375. fi
  4376. if test "$MYSQL_CONFIG_HOME" != "no" ; then
  4377. MYSQL_VERSION="`$MYSQL_CONFIG_HOME --version`"
  4378. if test "$manual_MYSQL_CFLAGS" = "no" ; then
  4379. MYSQL_CFLAGS="`$MYSQL_CONFIG_HOME --include`"
  4380. fi
  4381. if test "$manual_MYSQL_LIBS" = "no" ; then
  4382. MYSQL_LIBS="`$MYSQL_CONFIG_HOME --libs`"
  4383. fi
  4384. else
  4385. MYSQL_VERSION="unknown"
  4386. fi
  4387. MYSQL_OLD_LDFLAGS="$LDFLAGS" ; LDFLAGS="$LDFLAGS $MYSQL_LIBS"
  4388. MYSQL_OLD_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS="$CPPFLAGS $MYSQL_CFLAGS"
  4389. { echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient" >&5
  4390. echo $ECHO_N "checking for mysql_init in -lmysqlclient... $ECHO_C" >&6; }
  4391. if test "${ac_cv_lib_mysqlclient_mysql_init+set}" = set; then
  4392. echo $ECHO_N "(cached) $ECHO_C" >&6
  4393. else
  4394. ac_check_lib_save_LIBS=$LIBS
  4395. LIBS="-lmysqlclient $LIBS"
  4396. cat >conftest.$ac_ext <<_ACEOF
  4397. /* confdefs.h. */
  4398. _ACEOF
  4399. cat confdefs.h >>conftest.$ac_ext
  4400. cat >>conftest.$ac_ext <<_ACEOF
  4401. /* end confdefs.h. */
  4402. /* Override any GCC internal prototype to avoid an error.
  4403. Use char because int might match the return type of a GCC
  4404. builtin and then its argument prototype would still apply. */
  4405. #ifdef __cplusplus
  4406. extern "C"
  4407. #endif
  4408. char mysql_init ();
  4409. int
  4410. main ()
  4411. {
  4412. return mysql_init ();
  4413. ;
  4414. return 0;
  4415. }
  4416. _ACEOF
  4417. rm -f conftest.$ac_objext conftest$ac_exeext
  4418. if { (ac_try="$ac_link"
  4419. case "(($ac_try" in
  4420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4421. *) ac_try_echo=$ac_try;;
  4422. esac
  4423. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4424. (eval "$ac_link") 2>conftest.er1
  4425. ac_status=$?
  4426. grep -v '^ *+' conftest.er1 >conftest.err
  4427. rm -f conftest.er1
  4428. cat conftest.err >&5
  4429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4430. (exit $ac_status); } && {
  4431. test -z "$ac_c_werror_flag" ||
  4432. test ! -s conftest.err
  4433. } && test -s conftest$ac_exeext &&
  4434. $as_test_x conftest$ac_exeext; then
  4435. ac_cv_lib_mysqlclient_mysql_init=yes
  4436. else
  4437. echo "$as_me: failed program was:" >&5
  4438. sed 's/^/| /' conftest.$ac_ext >&5
  4439. ac_cv_lib_mysqlclient_mysql_init=no
  4440. fi
  4441. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4442. conftest$ac_exeext conftest.$ac_ext
  4443. LIBS=$ac_check_lib_save_LIBS
  4444. fi
  4445. { echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_init" >&5
  4446. echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_init" >&6; }
  4447. if test $ac_cv_lib_mysqlclient_mysql_init = yes; then
  4448. HAVE_MYSQL="yes"
  4449. fi
  4450. if test "${ac_cv_header_mysql_h+set}" = set; then
  4451. { echo "$as_me:$LINENO: checking for mysql.h" >&5
  4452. echo $ECHO_N "checking for mysql.h... $ECHO_C" >&6; }
  4453. if test "${ac_cv_header_mysql_h+set}" = set; then
  4454. echo $ECHO_N "(cached) $ECHO_C" >&6
  4455. fi
  4456. { echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5
  4457. echo "${ECHO_T}$ac_cv_header_mysql_h" >&6; }
  4458. else
  4459. # Is the header compilable?
  4460. { echo "$as_me:$LINENO: checking mysql.h usability" >&5
  4461. echo $ECHO_N "checking mysql.h usability... $ECHO_C" >&6; }
  4462. cat >conftest.$ac_ext <<_ACEOF
  4463. /* confdefs.h. */
  4464. _ACEOF
  4465. cat confdefs.h >>conftest.$ac_ext
  4466. cat >>conftest.$ac_ext <<_ACEOF
  4467. /* end confdefs.h. */
  4468. $ac_includes_default
  4469. #include <mysql.h>
  4470. _ACEOF
  4471. rm -f conftest.$ac_objext
  4472. if { (ac_try="$ac_compile"
  4473. case "(($ac_try" in
  4474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4475. *) ac_try_echo=$ac_try;;
  4476. esac
  4477. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4478. (eval "$ac_compile") 2>conftest.er1
  4479. ac_status=$?
  4480. grep -v '^ *+' conftest.er1 >conftest.err
  4481. rm -f conftest.er1
  4482. cat conftest.err >&5
  4483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4484. (exit $ac_status); } && {
  4485. test -z "$ac_c_werror_flag" ||
  4486. test ! -s conftest.err
  4487. } && test -s conftest.$ac_objext; then
  4488. ac_header_compiler=yes
  4489. else
  4490. echo "$as_me: failed program was:" >&5
  4491. sed 's/^/| /' conftest.$ac_ext >&5
  4492. ac_header_compiler=no
  4493. fi
  4494. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4495. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4496. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4497. # Is the header present?
  4498. { echo "$as_me:$LINENO: checking mysql.h presence" >&5
  4499. echo $ECHO_N "checking mysql.h presence... $ECHO_C" >&6; }
  4500. cat >conftest.$ac_ext <<_ACEOF
  4501. /* confdefs.h. */
  4502. _ACEOF
  4503. cat confdefs.h >>conftest.$ac_ext
  4504. cat >>conftest.$ac_ext <<_ACEOF
  4505. /* end confdefs.h. */
  4506. #include <mysql.h>
  4507. _ACEOF
  4508. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4509. case "(($ac_try" in
  4510. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4511. *) ac_try_echo=$ac_try;;
  4512. esac
  4513. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4514. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4515. ac_status=$?
  4516. grep -v '^ *+' conftest.er1 >conftest.err
  4517. rm -f conftest.er1
  4518. cat conftest.err >&5
  4519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4520. (exit $ac_status); } >/dev/null && {
  4521. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4522. test ! -s conftest.err
  4523. }; then
  4524. ac_header_preproc=yes
  4525. else
  4526. echo "$as_me: failed program was:" >&5
  4527. sed 's/^/| /' conftest.$ac_ext >&5
  4528. ac_header_preproc=no
  4529. fi
  4530. rm -f conftest.err conftest.$ac_ext
  4531. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4532. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4533. # So? What about this header?
  4534. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4535. yes:no: )
  4536. { echo "$as_me:$LINENO: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4537. echo "$as_me: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4538. { echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the compiler's result" >&5
  4539. echo "$as_me: WARNING: mysql.h: proceeding with the compiler's result" >&2;}
  4540. ac_header_preproc=yes
  4541. ;;
  4542. no:yes:* )
  4543. { echo "$as_me:$LINENO: WARNING: mysql.h: present but cannot be compiled" >&5
  4544. echo "$as_me: WARNING: mysql.h: present but cannot be compiled" >&2;}
  4545. { echo "$as_me:$LINENO: WARNING: mysql.h: check for missing prerequisite headers?" >&5
  4546. echo "$as_me: WARNING: mysql.h: check for missing prerequisite headers?" >&2;}
  4547. { echo "$as_me:$LINENO: WARNING: mysql.h: see the Autoconf documentation" >&5
  4548. echo "$as_me: WARNING: mysql.h: see the Autoconf documentation" >&2;}
  4549. { echo "$as_me:$LINENO: WARNING: mysql.h: section \"Present But Cannot Be Compiled\"" >&5
  4550. echo "$as_me: WARNING: mysql.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4551. { echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the preprocessor's result" >&5
  4552. echo "$as_me: WARNING: mysql.h: proceeding with the preprocessor's result" >&2;}
  4553. { echo "$as_me:$LINENO: WARNING: mysql.h: in the future, the compiler will take precedence" >&5
  4554. echo "$as_me: WARNING: mysql.h: in the future, the compiler will take precedence" >&2;}
  4555. ;;
  4556. esac
  4557. { echo "$as_me:$LINENO: checking for mysql.h" >&5
  4558. echo $ECHO_N "checking for mysql.h... $ECHO_C" >&6; }
  4559. if test "${ac_cv_header_mysql_h+set}" = set; then
  4560. echo $ECHO_N "(cached) $ECHO_C" >&6
  4561. else
  4562. ac_cv_header_mysql_h=$ac_header_preproc
  4563. fi
  4564. { echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5
  4565. echo "${ECHO_T}$ac_cv_header_mysql_h" >&6; }
  4566. fi
  4567. if test $ac_cv_header_mysql_h = yes; then
  4568. :
  4569. else
  4570. HAVE_MYSQL=""
  4571. fi
  4572. CPPFLAGS="$MYSQL_OLD_CPPFLAGS"
  4573. LDFLAGS="$MYSQL_OLD_LDFLAGS"
  4574. { echo "$as_me:$LINENO: checking MySQL library (optional)" >&5
  4575. echo $ECHO_N "checking MySQL library (optional)... $ECHO_C" >&6; }
  4576. if test "$HAVE_MYSQL" = "yes" ; then
  4577. { echo "$as_me:$LINENO: result: yes ($MYSQL_VERSION)" >&5
  4578. echo "${ECHO_T}yes ($MYSQL_VERSION)" >&6; }
  4579. else
  4580. { echo "$as_me:$LINENO: result: no" >&5
  4581. echo "${ECHO_T}no" >&6; }
  4582. if test "$require_mysql" = "yes" ; then
  4583. { { echo "$as_me:$LINENO: error: MySQL not found or incompatible (requested)" >&5
  4584. echo "$as_me: error: MySQL not found or incompatible (requested)" >&2;}
  4585. { (exit 1); exit 1; }; }
  4586. else
  4587. { echo "$as_me:$LINENO: disabling MySQL (optional)" >&5
  4588. echo "$as_me: disabling MySQL (optional)" >&6;}
  4589. MYSQL_VERSION=""
  4590. MYSQL_CFLAGS=""
  4591. MYSQL_LIBS=""
  4592. fi
  4593. fi
  4594. fi
  4595. #
  4596. # PCRE library (optional)
  4597. #
  4598. ##TODO PCRE version
  4599. PCRE_LIBS=""
  4600. PCRE_CFLAGS=""
  4601. if test "$want_pcre" = "no" ; then
  4602. { echo "$as_me:$LINENO: ignoring PCRE (optional)" >&5
  4603. echo "$as_me: ignoring PCRE (optional)" >&6;}
  4604. else
  4605. if test -z "$PCRE_HOME" ; then
  4606. { echo "$as_me:$LINENO: checking for pcre_study in -lpcre" >&5
  4607. echo $ECHO_N "checking for pcre_study in -lpcre... $ECHO_C" >&6; }
  4608. if test "${ac_cv_lib_pcre_pcre_study+set}" = set; then
  4609. echo $ECHO_N "(cached) $ECHO_C" >&6
  4610. else
  4611. ac_check_lib_save_LIBS=$LIBS
  4612. LIBS="-lpcre $LIBS"
  4613. cat >conftest.$ac_ext <<_ACEOF
  4614. /* confdefs.h. */
  4615. _ACEOF
  4616. cat confdefs.h >>conftest.$ac_ext
  4617. cat >>conftest.$ac_ext <<_ACEOF
  4618. /* end confdefs.h. */
  4619. /* Override any GCC internal prototype to avoid an error.
  4620. Use char because int might match the return type of a GCC
  4621. builtin and then its argument prototype would still apply. */
  4622. #ifdef __cplusplus
  4623. extern "C"
  4624. #endif
  4625. char pcre_study ();
  4626. int
  4627. main ()
  4628. {
  4629. return pcre_study ();
  4630. ;
  4631. return 0;
  4632. }
  4633. _ACEOF
  4634. rm -f conftest.$ac_objext conftest$ac_exeext
  4635. if { (ac_try="$ac_link"
  4636. case "(($ac_try" in
  4637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4638. *) ac_try_echo=$ac_try;;
  4639. esac
  4640. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4641. (eval "$ac_link") 2>conftest.er1
  4642. ac_status=$?
  4643. grep -v '^ *+' conftest.er1 >conftest.err
  4644. rm -f conftest.er1
  4645. cat conftest.err >&5
  4646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4647. (exit $ac_status); } && {
  4648. test -z "$ac_c_werror_flag" ||
  4649. test ! -s conftest.err
  4650. } && test -s conftest$ac_exeext &&
  4651. $as_test_x conftest$ac_exeext; then
  4652. ac_cv_lib_pcre_pcre_study=yes
  4653. else
  4654. echo "$as_me: failed program was:" >&5
  4655. sed 's/^/| /' conftest.$ac_ext >&5
  4656. ac_cv_lib_pcre_pcre_study=no
  4657. fi
  4658. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4659. conftest$ac_exeext conftest.$ac_ext
  4660. LIBS=$ac_check_lib_save_LIBS
  4661. fi
  4662. { echo "$as_me:$LINENO: result: $ac_cv_lib_pcre_pcre_study" >&5
  4663. echo "${ECHO_T}$ac_cv_lib_pcre_pcre_study" >&6; }
  4664. if test $ac_cv_lib_pcre_pcre_study = yes; then
  4665. HAVE_PCRE="yes"
  4666. fi
  4667. if test "$HAVE_PCRE" = "yes" ; then
  4668. PCRE_LIBS="-lpcre"
  4669. fi
  4670. else
  4671. PCRE_OLD_LDFLAGS="$LDFLAGS" ; LDFLAGS="$LDFLAGS -L$PCRE_HOME/lib"
  4672. PCRE_OLD_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS="$CPPFLAGS -I$PCRE_HOME/include"
  4673. { echo "$as_me:$LINENO: checking for pcre_compile in -lpcre" >&5
  4674. echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6; }
  4675. if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then
  4676. echo $ECHO_N "(cached) $ECHO_C" >&6
  4677. else
  4678. ac_check_lib_save_LIBS=$LIBS
  4679. LIBS="-lpcre $LIBS"
  4680. cat >conftest.$ac_ext <<_ACEOF
  4681. /* confdefs.h. */
  4682. _ACEOF
  4683. cat confdefs.h >>conftest.$ac_ext
  4684. cat >>conftest.$ac_ext <<_ACEOF
  4685. /* end confdefs.h. */
  4686. /* Override any GCC internal prototype to avoid an error.
  4687. Use char because int might match the return type of a GCC
  4688. builtin and then its argument prototype would still apply. */
  4689. #ifdef __cplusplus
  4690. extern "C"
  4691. #endif
  4692. char pcre_compile ();
  4693. int
  4694. main ()
  4695. {
  4696. return pcre_compile ();
  4697. ;
  4698. return 0;
  4699. }
  4700. _ACEOF
  4701. rm -f conftest.$ac_objext conftest$ac_exeext
  4702. if { (ac_try="$ac_link"
  4703. case "(($ac_try" in
  4704. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4705. *) ac_try_echo=$ac_try;;
  4706. esac
  4707. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4708. (eval "$ac_link") 2>conftest.er1
  4709. ac_status=$?
  4710. grep -v '^ *+' conftest.er1 >conftest.err
  4711. rm -f conftest.er1
  4712. cat conftest.err >&5
  4713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4714. (exit $ac_status); } && {
  4715. test -z "$ac_c_werror_flag" ||
  4716. test ! -s conftest.err
  4717. } && test -s conftest$ac_exeext &&
  4718. $as_test_x conftest$ac_exeext; then
  4719. ac_cv_lib_pcre_pcre_compile=yes
  4720. else
  4721. echo "$as_me: failed program was:" >&5
  4722. sed 's/^/| /' conftest.$ac_ext >&5
  4723. ac_cv_lib_pcre_pcre_compile=no
  4724. fi
  4725. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4726. conftest$ac_exeext conftest.$ac_ext
  4727. LIBS=$ac_check_lib_save_LIBS
  4728. fi
  4729. { echo "$as_me:$LINENO: result: $ac_cv_lib_pcre_pcre_compile" >&5
  4730. echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6; }
  4731. if test $ac_cv_lib_pcre_pcre_compile = yes; then
  4732. HAVE_PCRE="yes"
  4733. fi
  4734. CPPFLAGS="$PCRE_OLD_CPPFLAGS"
  4735. LDFLAGS="$PCRE_OLD_LDFLAGS"
  4736. if test "$HAVE_PCRE" = "yes" ; then
  4737. PCRE_LIBS="-L$PCRE_HOME/lib -lpcre"
  4738. test -d "$PCRE_HOME/include" && PCRE_CFLAGS="-I$PCRE_HOME/include"
  4739. fi
  4740. fi
  4741. { echo "$as_me:$LINENO: checking PCRE library (optional)" >&5
  4742. echo $ECHO_N "checking PCRE library (optional)... $ECHO_C" >&6; }
  4743. if test "$HAVE_PCRE" = "yes" ; then
  4744. { echo "$as_me:$LINENO: result: yes" >&5
  4745. echo "${ECHO_T}yes" >&6; }
  4746. else
  4747. { echo "$as_me:$LINENO: result: no" >&5
  4748. echo "${ECHO_T}no" >&6; }
  4749. if test "$require_pcre" = "yes" ; then
  4750. { { echo "$as_me:$LINENO: error: PCRE not found or incompatible (requested)" >&5
  4751. echo "$as_me: error: PCRE not found or incompatible (requested)" >&2;}
  4752. { (exit 1); exit 1; }; }
  4753. else
  4754. { echo "$as_me:$LINENO: disabling PCRE (optional)" >&5
  4755. echo "$as_me: disabling PCRE (optional)" >&6;}
  4756. fi
  4757. fi
  4758. fi
  4759. #
  4760. # Host specific stuff
  4761. #
  4762. { echo "$as_me:$LINENO: checking host OS" >&5
  4763. echo $ECHO_N "checking host OS... $ECHO_C" >&6; }
  4764. host_os="`uname`"
  4765. { echo "$as_me:$LINENO: result: $host_os" >&5
  4766. echo "${ECHO_T}$host_os" >&6; }
  4767. fd_setsize=""
  4768. DLLEXT=".so"
  4769. case $host_os in
  4770. Solaris* )
  4771. LIBS="$LIBS -lsocket -lnsl -ldl"
  4772. ;;
  4773. Linux* )
  4774. LIBS="$LIBS -ldl"
  4775. ;;
  4776. FreeBSD*)
  4777. CPPFLAGS="$CPPFLAGS -D__FREEBSD__"
  4778. ;;
  4779. NetBSD*)
  4780. CPPFLAGS="$CPPFLAGS -D__NETBSD__"
  4781. ;;
  4782. CYGWIN*)
  4783. CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=4096 -DCYGWIN"
  4784. fd_setsize="done"
  4785. DLLEXT=".dll"
  4786. ;;
  4787. esac
  4788. { echo "$as_me:$LINENO: checking for MinGW" >&5
  4789. echo $ECHO_N "checking for MinGW... $ECHO_C" >&6; }
  4790. if test -n "`$CC --version | grep -i mingw`" ; then
  4791. { echo "$as_me:$LINENO: result: yes" >&5
  4792. echo "${ECHO_T}yes" >&6; }
  4793. CPPFLAGS="$CPPFLAGS -DMINGW"
  4794. if test -z "$fd_setsize" ; then
  4795. CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=4096"
  4796. fi
  4797. LIBS="$LIBS -lws2_32"
  4798. else
  4799. { echo "$as_me:$LINENO: result: no" >&5
  4800. echo "${ECHO_T}no" >&6; }
  4801. fi
  4802. ###############################################################################
  4803. cat >confcache <<\_ACEOF
  4804. # This file is a shell script that caches the results of configure
  4805. # tests run on this system so they can be shared between configure
  4806. # scripts and configure runs, see configure's option --config-cache.
  4807. # It is not useful on other systems. If it contains results you don't
  4808. # want to keep, you may remove or edit it.
  4809. #
  4810. # config.status only pays attention to the cache file if you give it
  4811. # the --recheck option to rerun configure.
  4812. #
  4813. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4814. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4815. # following values.
  4816. _ACEOF
  4817. # The following way of writing the cache mishandles newlines in values,
  4818. # but we know of no workaround that is simple, portable, and efficient.
  4819. # So, we kill variables containing newlines.
  4820. # Ultrix sh set writes to stderr and can't be redirected directly,
  4821. # and sets the high bit in the cache file unless we assign to the vars.
  4822. (
  4823. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4824. eval ac_val=\$$ac_var
  4825. case $ac_val in #(
  4826. *${as_nl}*)
  4827. case $ac_var in #(
  4828. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  4829. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  4830. esac
  4831. case $ac_var in #(
  4832. _ | IFS | as_nl) ;; #(
  4833. *) $as_unset $ac_var ;;
  4834. esac ;;
  4835. esac
  4836. done
  4837. (set) 2>&1 |
  4838. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4839. *${as_nl}ac_space=\ *)
  4840. # `set' does not quote correctly, so add quotes (double-quote
  4841. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4842. sed -n \
  4843. "s/'/'\\\\''/g;
  4844. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4845. ;; #(
  4846. *)
  4847. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4848. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4849. ;;
  4850. esac |
  4851. sort
  4852. ) |
  4853. sed '
  4854. /^ac_cv_env_/b end
  4855. t clear
  4856. :clear
  4857. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4858. t end
  4859. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4860. :end' >>confcache
  4861. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4862. if test -w "$cache_file"; then
  4863. test "x$cache_file" != "x/dev/null" &&
  4864. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  4865. echo "$as_me: updating cache $cache_file" >&6;}
  4866. cat confcache >$cache_file
  4867. else
  4868. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  4869. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4870. fi
  4871. fi
  4872. rm -f confcache
  4873. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  4874. # Let make expand exec_prefix.
  4875. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  4876. # Transform confdefs.h into DEFS.
  4877. # Protect against shell expansion while executing Makefile rules.
  4878. # Protect against Makefile macro expansion.
  4879. #
  4880. # If the first sed substitution is executed (which looks for macros that
  4881. # take arguments), then branch to the quote section. Otherwise,
  4882. # look for a macro that doesn't take arguments.
  4883. ac_script='
  4884. t clear
  4885. :clear
  4886. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  4887. t quote
  4888. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  4889. t quote
  4890. b any
  4891. :quote
  4892. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  4893. s/\[/\\&/g
  4894. s/\]/\\&/g
  4895. s/\$/$$/g
  4896. H
  4897. :any
  4898. ${
  4899. g
  4900. s/^\n//
  4901. s/\n/ /g
  4902. p
  4903. }
  4904. '
  4905. DEFS=`sed -n "$ac_script" confdefs.h`
  4906. ac_libobjs=
  4907. ac_ltlibobjs=
  4908. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  4909. # 1. Remove the extension, and $U if already installed.
  4910. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  4911. ac_i=`echo "$ac_i" | sed "$ac_script"`
  4912. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  4913. # will be set to the directory where LIBOBJS objects are built.
  4914. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  4915. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  4916. done
  4917. LIBOBJS=$ac_libobjs
  4918. LTLIBOBJS=$ac_ltlibobjs
  4919. : ${CONFIG_STATUS=./config.status}
  4920. ac_clean_files_save=$ac_clean_files
  4921. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  4922. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  4923. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  4924. cat >$CONFIG_STATUS <<_ACEOF
  4925. #! $SHELL
  4926. # Generated by $as_me.
  4927. # Run this file to recreate the current configuration.
  4928. # Compiler output produced by configure, useful for debugging
  4929. # configure, is in config.log if it exists.
  4930. debug=false
  4931. ac_cs_recheck=false
  4932. ac_cs_silent=false
  4933. SHELL=\${CONFIG_SHELL-$SHELL}
  4934. _ACEOF
  4935. cat >>$CONFIG_STATUS <<\_ACEOF
  4936. ## --------------------- ##
  4937. ## M4sh Initialization. ##
  4938. ## --------------------- ##
  4939. # Be more Bourne compatible
  4940. DUALCASE=1; export DUALCASE # for MKS sh
  4941. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  4942. emulate sh
  4943. NULLCMD=:
  4944. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  4945. # is contrary to our usage. Disable this feature.
  4946. alias -g '${1+"$@"}'='"$@"'
  4947. setopt NO_GLOB_SUBST
  4948. else
  4949. case `(set -o) 2>/dev/null` in
  4950. *posix*) set -o posix ;;
  4951. esac
  4952. fi
  4953. # PATH needs CR
  4954. # Avoid depending upon Character Ranges.
  4955. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  4956. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  4957. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  4958. as_cr_digits='0123456789'
  4959. as_cr_alnum=$as_cr_Letters$as_cr_digits
  4960. # The user is always right.
  4961. if test "${PATH_SEPARATOR+set}" != set; then
  4962. echo "#! /bin/sh" >conf$$.sh
  4963. echo "exit 0" >>conf$$.sh
  4964. chmod +x conf$$.sh
  4965. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  4966. PATH_SEPARATOR=';'
  4967. else
  4968. PATH_SEPARATOR=:
  4969. fi
  4970. rm -f conf$$.sh
  4971. fi
  4972. # Support unset when possible.
  4973. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4974. as_unset=unset
  4975. else
  4976. as_unset=false
  4977. fi
  4978. # IFS
  4979. # We need space, tab and new line, in precisely that order. Quoting is
  4980. # there to prevent editors from complaining about space-tab.
  4981. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  4982. # splitting by setting IFS to empty value.)
  4983. as_nl='
  4984. '
  4985. IFS=" "" $as_nl"
  4986. # Find who we are. Look in the path if we contain no directory separator.
  4987. case $0 in
  4988. *[\\/]* ) as_myself=$0 ;;
  4989. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4990. for as_dir in $PATH
  4991. do
  4992. IFS=$as_save_IFS
  4993. test -z "$as_dir" && as_dir=.
  4994. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  4995. done
  4996. IFS=$as_save_IFS
  4997. ;;
  4998. esac
  4999. # We did not find ourselves, most probably we were run as `sh COMMAND'
  5000. # in which case we are not to be found in the path.
  5001. if test "x$as_myself" = x; then
  5002. as_myself=$0
  5003. fi
  5004. if test ! -f "$as_myself"; then
  5005. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  5006. { (exit 1); exit 1; }
  5007. fi
  5008. # Work around bugs in pre-3.0 UWIN ksh.
  5009. for as_var in ENV MAIL MAILPATH
  5010. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  5011. done
  5012. PS1='$ '
  5013. PS2='> '
  5014. PS4='+ '
  5015. # NLS nuisances.
  5016. for as_var in \
  5017. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  5018. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  5019. LC_TELEPHONE LC_TIME
  5020. do
  5021. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  5022. eval $as_var=C; export $as_var
  5023. else
  5024. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  5025. fi
  5026. done
  5027. # Required to use basename.
  5028. if expr a : '\(a\)' >/dev/null 2>&1 &&
  5029. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  5030. as_expr=expr
  5031. else
  5032. as_expr=false
  5033. fi
  5034. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  5035. as_basename=basename
  5036. else
  5037. as_basename=false
  5038. fi
  5039. # Name of the executable.
  5040. as_me=`$as_basename -- "$0" ||
  5041. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  5042. X"$0" : 'X\(//\)$' \| \
  5043. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  5044. echo X/"$0" |
  5045. sed '/^.*\/\([^/][^/]*\)\/*$/{
  5046. s//\1/
  5047. q
  5048. }
  5049. /^X\/\(\/\/\)$/{
  5050. s//\1/
  5051. q
  5052. }
  5053. /^X\/\(\/\).*/{
  5054. s//\1/
  5055. q
  5056. }
  5057. s/.*/./; q'`
  5058. # CDPATH.
  5059. $as_unset CDPATH
  5060. as_lineno_1=$LINENO
  5061. as_lineno_2=$LINENO
  5062. test "x$as_lineno_1" != "x$as_lineno_2" &&
  5063. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  5064. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  5065. # uniformly replaced by the line number. The first 'sed' inserts a
  5066. # line-number line after each line using $LINENO; the second 'sed'
  5067. # does the real work. The second script uses 'N' to pair each
  5068. # line-number line with the line containing $LINENO, and appends
  5069. # trailing '-' during substitution so that $LINENO is not a special
  5070. # case at line end.
  5071. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  5072. # scripts with optimization help from Paolo Bonzini. Blame Lee
  5073. # E. McMahon (1931-1989) for sed's syntax. :-)
  5074. sed -n '
  5075. p
  5076. /[$]LINENO/=
  5077. ' <$as_myself |
  5078. sed '
  5079. s/[$]LINENO.*/&-/
  5080. t lineno
  5081. b
  5082. :lineno
  5083. N
  5084. :loop
  5085. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  5086. t loop
  5087. s/-\n.*//
  5088. ' >$as_me.lineno &&
  5089. chmod +x "$as_me.lineno" ||
  5090. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  5091. { (exit 1); exit 1; }; }
  5092. # Don't try to exec as it changes $[0], causing all sort of problems
  5093. # (the dirname of $[0] is not the place where we might find the
  5094. # original and so on. Autoconf is especially sensitive to this).
  5095. . "./$as_me.lineno"
  5096. # Exit status is that of the last command.
  5097. exit
  5098. }
  5099. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  5100. as_dirname=dirname
  5101. else
  5102. as_dirname=false
  5103. fi
  5104. ECHO_C= ECHO_N= ECHO_T=
  5105. case `echo -n x` in
  5106. -n*)
  5107. case `echo 'x\c'` in
  5108. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  5109. *) ECHO_C='\c';;
  5110. esac;;
  5111. *)
  5112. ECHO_N='-n';;
  5113. esac
  5114. if expr a : '\(a\)' >/dev/null 2>&1 &&
  5115. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  5116. as_expr=expr
  5117. else
  5118. as_expr=false
  5119. fi
  5120. rm -f conf$$ conf$$.exe conf$$.file
  5121. if test -d conf$$.dir; then
  5122. rm -f conf$$.dir/conf$$.file
  5123. else
  5124. rm -f conf$$.dir
  5125. mkdir conf$$.dir
  5126. fi
  5127. echo >conf$$.file
  5128. if ln -s conf$$.file conf$$ 2>/dev/null; then
  5129. as_ln_s='ln -s'
  5130. # ... but there are two gotchas:
  5131. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  5132. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  5133. # In both cases, we have to default to `cp -p'.
  5134. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  5135. as_ln_s='cp -p'
  5136. elif ln conf$$.file conf$$ 2>/dev/null; then
  5137. as_ln_s=ln
  5138. else
  5139. as_ln_s='cp -p'
  5140. fi
  5141. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  5142. rmdir conf$$.dir 2>/dev/null
  5143. if mkdir -p . 2>/dev/null; then
  5144. as_mkdir_p=:
  5145. else
  5146. test -d ./-p && rmdir ./-p
  5147. as_mkdir_p=false
  5148. fi
  5149. if test -x / >/dev/null 2>&1; then
  5150. as_test_x='test -x'
  5151. else
  5152. if ls -dL / >/dev/null 2>&1; then
  5153. as_ls_L_option=L
  5154. else
  5155. as_ls_L_option=
  5156. fi
  5157. as_test_x='
  5158. eval sh -c '\''
  5159. if test -d "$1"; then
  5160. test -d "$1/.";
  5161. else
  5162. case $1 in
  5163. -*)set "./$1";;
  5164. esac;
  5165. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  5166. ???[sx]*):;;*)false;;esac;fi
  5167. '\'' sh
  5168. '
  5169. fi
  5170. as_executable_p=$as_test_x
  5171. # Sed expression to map a string onto a valid CPP name.
  5172. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  5173. # Sed expression to map a string onto a valid variable name.
  5174. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  5175. exec 6>&1
  5176. # Save the log message, to keep $[0] and so on meaningful, and to
  5177. # report actual input values of CONFIG_FILES etc. instead of their
  5178. # values after options handling.
  5179. ac_log="
  5180. This file was extended by $as_me, which was
  5181. generated by GNU Autoconf 2.61. Invocation command line was
  5182. CONFIG_FILES = $CONFIG_FILES
  5183. CONFIG_HEADERS = $CONFIG_HEADERS
  5184. CONFIG_LINKS = $CONFIG_LINKS
  5185. CONFIG_COMMANDS = $CONFIG_COMMANDS
  5186. $ $0 $@
  5187. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  5188. "
  5189. _ACEOF
  5190. cat >>$CONFIG_STATUS <<_ACEOF
  5191. # Files that config.status was made for.
  5192. config_files="$ac_config_files"
  5193. _ACEOF
  5194. cat >>$CONFIG_STATUS <<\_ACEOF
  5195. ac_cs_usage="\
  5196. \`$as_me' instantiates files from templates according to the
  5197. current configuration.
  5198. Usage: $0 [OPTIONS] [FILE]...
  5199. -h, --help print this help, then exit
  5200. -V, --version print version number and configuration settings, then exit
  5201. -q, --quiet do not print progress messages
  5202. -d, --debug don't remove temporary files
  5203. --recheck update $as_me by reconfiguring in the same conditions
  5204. --file=FILE[:TEMPLATE]
  5205. instantiate the configuration file FILE
  5206. Configuration files:
  5207. $config_files
  5208. Report bugs to <bug-autoconf@gnu.org>."
  5209. _ACEOF
  5210. cat >>$CONFIG_STATUS <<_ACEOF
  5211. ac_cs_version="\\
  5212. config.status
  5213. configured by $0, generated by GNU Autoconf 2.61,
  5214. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  5215. Copyright (C) 2006 Free Software Foundation, Inc.
  5216. This config.status script is free software; the Free Software Foundation
  5217. gives unlimited permission to copy, distribute and modify it."
  5218. ac_pwd='$ac_pwd'
  5219. srcdir='$srcdir'
  5220. _ACEOF
  5221. cat >>$CONFIG_STATUS <<\_ACEOF
  5222. # If no file are specified by the user, then we need to provide default
  5223. # value. By we need to know if files were specified by the user.
  5224. ac_need_defaults=:
  5225. while test $# != 0
  5226. do
  5227. case $1 in
  5228. --*=*)
  5229. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  5230. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  5231. ac_shift=:
  5232. ;;
  5233. *)
  5234. ac_option=$1
  5235. ac_optarg=$2
  5236. ac_shift=shift
  5237. ;;
  5238. esac
  5239. case $ac_option in
  5240. # Handling of the options.
  5241. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  5242. ac_cs_recheck=: ;;
  5243. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  5244. echo "$ac_cs_version"; exit ;;
  5245. --debug | --debu | --deb | --de | --d | -d )
  5246. debug=: ;;
  5247. --file | --fil | --fi | --f )
  5248. $ac_shift
  5249. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  5250. ac_need_defaults=false;;
  5251. --he | --h | --help | --hel | -h )
  5252. echo "$ac_cs_usage"; exit ;;
  5253. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  5254. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  5255. ac_cs_silent=: ;;
  5256. # This is an error.
  5257. -*) { echo "$as_me: error: unrecognized option: $1
  5258. Try \`$0 --help' for more information." >&2
  5259. { (exit 1); exit 1; }; } ;;
  5260. *) ac_config_targets="$ac_config_targets $1"
  5261. ac_need_defaults=false ;;
  5262. esac
  5263. shift
  5264. done
  5265. ac_configure_extra_args=
  5266. if $ac_cs_silent; then
  5267. exec 6>/dev/null
  5268. ac_configure_extra_args="$ac_configure_extra_args --silent"
  5269. fi
  5270. _ACEOF
  5271. cat >>$CONFIG_STATUS <<_ACEOF
  5272. if \$ac_cs_recheck; then
  5273. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  5274. CONFIG_SHELL=$SHELL
  5275. export CONFIG_SHELL
  5276. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  5277. fi
  5278. _ACEOF
  5279. cat >>$CONFIG_STATUS <<\_ACEOF
  5280. exec 5>>config.log
  5281. {
  5282. echo
  5283. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  5284. ## Running $as_me. ##
  5285. _ASBOX
  5286. echo "$ac_log"
  5287. } >&5
  5288. _ACEOF
  5289. cat >>$CONFIG_STATUS <<_ACEOF
  5290. _ACEOF
  5291. cat >>$CONFIG_STATUS <<\_ACEOF
  5292. # Handling of arguments.
  5293. for ac_config_target in $ac_config_targets
  5294. do
  5295. case $ac_config_target in
  5296. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  5297. "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
  5298. "src/char/Makefile") CONFIG_FILES="$CONFIG_FILES src/char/Makefile" ;;
  5299. "src/login/Makefile") CONFIG_FILES="$CONFIG_FILES src/login/Makefile" ;;
  5300. "src/ladmin/Makefile") CONFIG_FILES="$CONFIG_FILES src/ladmin/Makefile" ;;
  5301. "src/char_sql/Makefile") CONFIG_FILES="$CONFIG_FILES src/char_sql/Makefile" ;;
  5302. "src/login_sql/Makefile") CONFIG_FILES="$CONFIG_FILES src/login_sql/Makefile" ;;
  5303. "src/txt-converter/Makefile") CONFIG_FILES="$CONFIG_FILES src/txt-converter/Makefile" ;;
  5304. "src/map/Makefile") CONFIG_FILES="$CONFIG_FILES src/map/Makefile" ;;
  5305. "src/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/Makefile" ;;
  5306. "src/tool/Makefile") CONFIG_FILES="$CONFIG_FILES src/tool/Makefile" ;;
  5307. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  5308. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  5309. { (exit 1); exit 1; }; };;
  5310. esac
  5311. done
  5312. # If the user did not use the arguments to specify the items to instantiate,
  5313. # then the envvar interface is used. Set only those that are not.
  5314. # We use the long form for the default assignment because of an extremely
  5315. # bizarre bug on SunOS 4.1.3.
  5316. if $ac_need_defaults; then
  5317. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  5318. fi
  5319. # Have a temporary directory for convenience. Make it in the build tree
  5320. # simply because there is no reason against having it here, and in addition,
  5321. # creating and moving files from /tmp can sometimes cause problems.
  5322. # Hook for its removal unless debugging.
  5323. # Note that there is a small window in which the directory will not be cleaned:
  5324. # after its creation but before its name has been assigned to `$tmp'.
  5325. $debug ||
  5326. {
  5327. tmp=
  5328. trap 'exit_status=$?
  5329. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  5330. ' 0
  5331. trap '{ (exit 1); exit 1; }' 1 2 13 15
  5332. }
  5333. # Create a (secure) tmp directory for tmp files.
  5334. {
  5335. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  5336. test -n "$tmp" && test -d "$tmp"
  5337. } ||
  5338. {
  5339. tmp=./conf$$-$RANDOM
  5340. (umask 077 && mkdir "$tmp")
  5341. } ||
  5342. {
  5343. echo "$me: cannot create a temporary directory in ." >&2
  5344. { (exit 1); exit 1; }
  5345. }
  5346. #
  5347. # Set up the sed scripts for CONFIG_FILES section.
  5348. #
  5349. # No need to generate the scripts if there are no CONFIG_FILES.
  5350. # This happens for instance when ./config.status config.h
  5351. if test -n "$CONFIG_FILES"; then
  5352. _ACEOF
  5353. ac_delim='%!_!# '
  5354. for ac_last_try in false false false false false :; do
  5355. cat >conf$$subs.sed <<_ACEOF
  5356. SHELL!$SHELL$ac_delim
  5357. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  5358. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  5359. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  5360. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  5361. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  5362. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  5363. exec_prefix!$exec_prefix$ac_delim
  5364. prefix!$prefix$ac_delim
  5365. program_transform_name!$program_transform_name$ac_delim
  5366. bindir!$bindir$ac_delim
  5367. sbindir!$sbindir$ac_delim
  5368. libexecdir!$libexecdir$ac_delim
  5369. datarootdir!$datarootdir$ac_delim
  5370. datadir!$datadir$ac_delim
  5371. sysconfdir!$sysconfdir$ac_delim
  5372. sharedstatedir!$sharedstatedir$ac_delim
  5373. localstatedir!$localstatedir$ac_delim
  5374. includedir!$includedir$ac_delim
  5375. oldincludedir!$oldincludedir$ac_delim
  5376. docdir!$docdir$ac_delim
  5377. infodir!$infodir$ac_delim
  5378. htmldir!$htmldir$ac_delim
  5379. dvidir!$dvidir$ac_delim
  5380. pdfdir!$pdfdir$ac_delim
  5381. psdir!$psdir$ac_delim
  5382. libdir!$libdir$ac_delim
  5383. localedir!$localedir$ac_delim
  5384. mandir!$mandir$ac_delim
  5385. DEFS!$DEFS$ac_delim
  5386. ECHO_C!$ECHO_C$ac_delim
  5387. ECHO_N!$ECHO_N$ac_delim
  5388. ECHO_T!$ECHO_T$ac_delim
  5389. LIBS!$LIBS$ac_delim
  5390. build_alias!$build_alias$ac_delim
  5391. host_alias!$host_alias$ac_delim
  5392. target_alias!$target_alias$ac_delim
  5393. SET_MAKE!$SET_MAKE$ac_delim
  5394. CC!$CC$ac_delim
  5395. CFLAGS!$CFLAGS$ac_delim
  5396. LDFLAGS!$LDFLAGS$ac_delim
  5397. CPPFLAGS!$CPPFLAGS$ac_delim
  5398. ac_ct_CC!$ac_ct_CC$ac_delim
  5399. EXEEXT!$EXEEXT$ac_delim
  5400. OBJEXT!$OBJEXT$ac_delim
  5401. CPP!$CPP$ac_delim
  5402. GREP!$GREP$ac_delim
  5403. EGREP!$EGREP$ac_delim
  5404. MYSQL_CONFIG_HOME!$MYSQL_CONFIG_HOME$ac_delim
  5405. HAVE_MYSQL!$HAVE_MYSQL$ac_delim
  5406. MYSQL_VERSION!$MYSQL_VERSION$ac_delim
  5407. MYSQL_CFLAGS!$MYSQL_CFLAGS$ac_delim
  5408. MYSQL_LIBS!$MYSQL_LIBS$ac_delim
  5409. HAVE_PCRE!$HAVE_PCRE$ac_delim
  5410. PCRE_LIBS!$PCRE_LIBS$ac_delim
  5411. PCRE_CFLAGS!$PCRE_CFLAGS$ac_delim
  5412. DLLEXT!$DLLEXT$ac_delim
  5413. LIBOBJS!$LIBOBJS$ac_delim
  5414. LTLIBOBJS!$LTLIBOBJS$ac_delim
  5415. _ACEOF
  5416. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 59; then
  5417. break
  5418. elif $ac_last_try; then
  5419. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  5420. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  5421. { (exit 1); exit 1; }; }
  5422. else
  5423. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  5424. fi
  5425. done
  5426. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  5427. if test -n "$ac_eof"; then
  5428. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  5429. ac_eof=`expr $ac_eof + 1`
  5430. fi
  5431. cat >>$CONFIG_STATUS <<_ACEOF
  5432. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  5433. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  5434. _ACEOF
  5435. sed '
  5436. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  5437. s/^/s,@/; s/!/@,|#_!!_#|/
  5438. :n
  5439. t n
  5440. s/'"$ac_delim"'$/,g/; t
  5441. s/$/\\/; p
  5442. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  5443. ' >>$CONFIG_STATUS <conf$$subs.sed
  5444. rm -f conf$$subs.sed
  5445. cat >>$CONFIG_STATUS <<_ACEOF
  5446. :end
  5447. s/|#_!!_#|//g
  5448. CEOF$ac_eof
  5449. _ACEOF
  5450. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  5451. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  5452. # trailing colons and then remove the whole line if VPATH becomes empty
  5453. # (actually we leave an empty line to preserve line numbers).
  5454. if test "x$srcdir" = x.; then
  5455. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  5456. s/:*\$(srcdir):*/:/
  5457. s/:*\${srcdir}:*/:/
  5458. s/:*@srcdir@:*/:/
  5459. s/^\([^=]*=[ ]*\):*/\1/
  5460. s/:*$//
  5461. s/^[^=]*=[ ]*$//
  5462. }'
  5463. fi
  5464. cat >>$CONFIG_STATUS <<\_ACEOF
  5465. fi # test -n "$CONFIG_FILES"
  5466. for ac_tag in :F $CONFIG_FILES
  5467. do
  5468. case $ac_tag in
  5469. :[FHLC]) ac_mode=$ac_tag; continue;;
  5470. esac
  5471. case $ac_mode$ac_tag in
  5472. :[FHL]*:*);;
  5473. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  5474. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  5475. { (exit 1); exit 1; }; };;
  5476. :[FH]-) ac_tag=-:-;;
  5477. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  5478. esac
  5479. ac_save_IFS=$IFS
  5480. IFS=:
  5481. set x $ac_tag
  5482. IFS=$ac_save_IFS
  5483. shift
  5484. ac_file=$1
  5485. shift
  5486. case $ac_mode in
  5487. :L) ac_source=$1;;
  5488. :[FH])
  5489. ac_file_inputs=
  5490. for ac_f
  5491. do
  5492. case $ac_f in
  5493. -) ac_f="$tmp/stdin";;
  5494. *) # Look for the file first in the build tree, then in the source tree
  5495. # (if the path is not absolute). The absolute path cannot be DOS-style,
  5496. # because $ac_f cannot contain `:'.
  5497. test -f "$ac_f" ||
  5498. case $ac_f in
  5499. [\\/$]*) false;;
  5500. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  5501. esac ||
  5502. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  5503. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  5504. { (exit 1); exit 1; }; };;
  5505. esac
  5506. ac_file_inputs="$ac_file_inputs $ac_f"
  5507. done
  5508. # Let's still pretend it is `configure' which instantiates (i.e., don't
  5509. # use $as_me), people would be surprised to read:
  5510. # /* config.h. Generated by config.status. */
  5511. configure_input="Generated from "`IFS=:
  5512. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  5513. if test x"$ac_file" != x-; then
  5514. configure_input="$ac_file. $configure_input"
  5515. { echo "$as_me:$LINENO: creating $ac_file" >&5
  5516. echo "$as_me: creating $ac_file" >&6;}
  5517. fi
  5518. case $ac_tag in
  5519. *:-:* | *:-) cat >"$tmp/stdin";;
  5520. esac
  5521. ;;
  5522. esac
  5523. ac_dir=`$as_dirname -- "$ac_file" ||
  5524. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5525. X"$ac_file" : 'X\(//\)[^/]' \| \
  5526. X"$ac_file" : 'X\(//\)$' \| \
  5527. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  5528. echo X"$ac_file" |
  5529. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5530. s//\1/
  5531. q
  5532. }
  5533. /^X\(\/\/\)[^/].*/{
  5534. s//\1/
  5535. q
  5536. }
  5537. /^X\(\/\/\)$/{
  5538. s//\1/
  5539. q
  5540. }
  5541. /^X\(\/\).*/{
  5542. s//\1/
  5543. q
  5544. }
  5545. s/.*/./; q'`
  5546. { as_dir="$ac_dir"
  5547. case $as_dir in #(
  5548. -*) as_dir=./$as_dir;;
  5549. esac
  5550. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  5551. as_dirs=
  5552. while :; do
  5553. case $as_dir in #(
  5554. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  5555. *) as_qdir=$as_dir;;
  5556. esac
  5557. as_dirs="'$as_qdir' $as_dirs"
  5558. as_dir=`$as_dirname -- "$as_dir" ||
  5559. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5560. X"$as_dir" : 'X\(//\)[^/]' \| \
  5561. X"$as_dir" : 'X\(//\)$' \| \
  5562. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  5563. echo X"$as_dir" |
  5564. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5565. s//\1/
  5566. q
  5567. }
  5568. /^X\(\/\/\)[^/].*/{
  5569. s//\1/
  5570. q
  5571. }
  5572. /^X\(\/\/\)$/{
  5573. s//\1/
  5574. q
  5575. }
  5576. /^X\(\/\).*/{
  5577. s//\1/
  5578. q
  5579. }
  5580. s/.*/./; q'`
  5581. test -d "$as_dir" && break
  5582. done
  5583. test -z "$as_dirs" || eval "mkdir $as_dirs"
  5584. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  5585. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  5586. { (exit 1); exit 1; }; }; }
  5587. ac_builddir=.
  5588. case "$ac_dir" in
  5589. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5590. *)
  5591. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  5592. # A ".." for each directory in $ac_dir_suffix.
  5593. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  5594. case $ac_top_builddir_sub in
  5595. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5596. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  5597. esac ;;
  5598. esac
  5599. ac_abs_top_builddir=$ac_pwd
  5600. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  5601. # for backward compatibility:
  5602. ac_top_builddir=$ac_top_build_prefix
  5603. case $srcdir in
  5604. .) # We are building in place.
  5605. ac_srcdir=.
  5606. ac_top_srcdir=$ac_top_builddir_sub
  5607. ac_abs_top_srcdir=$ac_pwd ;;
  5608. [\\/]* | ?:[\\/]* ) # Absolute name.
  5609. ac_srcdir=$srcdir$ac_dir_suffix;
  5610. ac_top_srcdir=$srcdir
  5611. ac_abs_top_srcdir=$srcdir ;;
  5612. *) # Relative name.
  5613. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  5614. ac_top_srcdir=$ac_top_build_prefix$srcdir
  5615. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  5616. esac
  5617. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  5618. case $ac_mode in
  5619. :F)
  5620. #
  5621. # CONFIG_FILE
  5622. #
  5623. _ACEOF
  5624. cat >>$CONFIG_STATUS <<\_ACEOF
  5625. # If the template does not know about datarootdir, expand it.
  5626. # FIXME: This hack should be removed a few years after 2.60.
  5627. ac_datarootdir_hack=; ac_datarootdir_seen=
  5628. case `sed -n '/datarootdir/ {
  5629. p
  5630. q
  5631. }
  5632. /@datadir@/p
  5633. /@docdir@/p
  5634. /@infodir@/p
  5635. /@localedir@/p
  5636. /@mandir@/p
  5637. ' $ac_file_inputs` in
  5638. *datarootdir*) ac_datarootdir_seen=yes;;
  5639. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  5640. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  5641. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  5642. _ACEOF
  5643. cat >>$CONFIG_STATUS <<_ACEOF
  5644. ac_datarootdir_hack='
  5645. s&@datadir@&$datadir&g
  5646. s&@docdir@&$docdir&g
  5647. s&@infodir@&$infodir&g
  5648. s&@localedir@&$localedir&g
  5649. s&@mandir@&$mandir&g
  5650. s&\\\${datarootdir}&$datarootdir&g' ;;
  5651. esac
  5652. _ACEOF
  5653. # Neutralize VPATH when `$srcdir' = `.'.
  5654. # Shell code in configure.ac might set extrasub.
  5655. # FIXME: do we really want to maintain this feature?
  5656. cat >>$CONFIG_STATUS <<_ACEOF
  5657. sed "$ac_vpsub
  5658. $extrasub
  5659. _ACEOF
  5660. cat >>$CONFIG_STATUS <<\_ACEOF
  5661. :t
  5662. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  5663. s&@configure_input@&$configure_input&;t t
  5664. s&@top_builddir@&$ac_top_builddir_sub&;t t
  5665. s&@srcdir@&$ac_srcdir&;t t
  5666. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  5667. s&@top_srcdir@&$ac_top_srcdir&;t t
  5668. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  5669. s&@builddir@&$ac_builddir&;t t
  5670. s&@abs_builddir@&$ac_abs_builddir&;t t
  5671. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  5672. $ac_datarootdir_hack
  5673. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
  5674. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  5675. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  5676. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  5677. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5678. which seems to be undefined. Please make sure it is defined." >&5
  5679. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5680. which seems to be undefined. Please make sure it is defined." >&2;}
  5681. rm -f "$tmp/stdin"
  5682. case $ac_file in
  5683. -) cat "$tmp/out"; rm -f "$tmp/out";;
  5684. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  5685. esac
  5686. ;;
  5687. esac
  5688. done # for ac_tag
  5689. { (exit 0); exit 0; }
  5690. _ACEOF
  5691. chmod +x $CONFIG_STATUS
  5692. ac_clean_files=$ac_clean_files_save
  5693. # configure is writing to config.log, and then calls config.status.
  5694. # config.status does its own redirection, appending to config.log.
  5695. # Unfortunately, on DOS this fails, as config.log is still kept open
  5696. # by configure, so config.status won't be able to write to it; its
  5697. # output is simply discarded. So we exec the FD to /dev/null,
  5698. # effectively closing config.log, so it can be properly (re)opened and
  5699. # appended to by config.status. When coming back to configure, we
  5700. # need to make the FD available again.
  5701. if test "$no_create" != yes; then
  5702. ac_cs_success=:
  5703. ac_config_status_args=
  5704. test "$silent" = yes &&
  5705. ac_config_status_args="$ac_config_status_args --quiet"
  5706. exec 5>/dev/null
  5707. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  5708. exec 5>>config.log
  5709. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  5710. # would make configure fail if this is the last instruction.
  5711. $ac_cs_success || { (exit 1); exit 1; }
  5712. fi