configure 226 KB

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