configure 198 KB

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