configure 187 KB

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