configure 187 KB

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