configure 184 KB

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