configure 187 KB

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