configure 188 KB

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