configure 176 KB

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