configure 317 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71 for breakpad 0.1.
  4. #
  5. # Report bugs to <google-breakpad-dev@googlegroups.com>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
  9. # Inc.
  10. #
  11. #
  12. # This configure script is free software; the Free Software Foundation
  13. # gives unlimited permission to copy, distribute and modify it.
  14. ## -------------------- ##
  15. ## M4sh Initialization. ##
  16. ## -------------------- ##
  17. # Be more Bourne compatible
  18. DUALCASE=1; export DUALCASE # for MKS sh
  19. as_nop=:
  20. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  21. then :
  22. emulate sh
  23. NULLCMD=:
  24. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25. # is contrary to our usage. Disable this feature.
  26. alias -g '${1+"$@"}'='"$@"'
  27. setopt NO_GLOB_SUBST
  28. else $as_nop
  29. case `(set -o) 2>/dev/null` in #(
  30. *posix*) :
  31. set -o posix ;; #(
  32. *) :
  33. ;;
  34. esac
  35. fi
  36. # Reset variables that may have inherited troublesome values from
  37. # the environment.
  38. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  39. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  40. # side effect of setting IFS to empty, thus disabling word splitting.)
  41. # Quoting is to prevent editors from complaining about space-tab.
  42. as_nl='
  43. '
  44. export as_nl
  45. IFS=" "" $as_nl"
  46. PS1='$ '
  47. PS2='> '
  48. PS4='+ '
  49. # Ensure predictable behavior from utilities with locale-dependent output.
  50. LC_ALL=C
  51. export LC_ALL
  52. LANGUAGE=C
  53. export LANGUAGE
  54. # We cannot yet rely on "unset" to work, but we need these variables
  55. # to be unset--not just set to an empty or harmless value--now, to
  56. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  57. # also avoids known problems related to "unset" and subshell syntax
  58. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  59. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  60. do eval test \${$as_var+y} \
  61. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  62. done
  63. # Ensure that fds 0, 1, and 2 are open.
  64. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  65. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  66. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  67. # The user is always right.
  68. if ${PATH_SEPARATOR+false} :; then
  69. PATH_SEPARATOR=:
  70. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  71. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  72. PATH_SEPARATOR=';'
  73. }
  74. fi
  75. # Find who we are. Look in the path if we contain no directory separator.
  76. as_myself=
  77. case $0 in #((
  78. *[\\/]* ) as_myself=$0 ;;
  79. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  80. for as_dir in $PATH
  81. do
  82. IFS=$as_save_IFS
  83. case $as_dir in #(((
  84. '') as_dir=./ ;;
  85. */) ;;
  86. *) as_dir=$as_dir/ ;;
  87. esac
  88. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  89. done
  90. IFS=$as_save_IFS
  91. ;;
  92. esac
  93. # We did not find ourselves, most probably we were run as `sh COMMAND'
  94. # in which case we are not to be found in the path.
  95. if test "x$as_myself" = x; then
  96. as_myself=$0
  97. fi
  98. if test ! -f "$as_myself"; then
  99. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  100. exit 1
  101. fi
  102. # Use a proper internal environment variable to ensure we don't fall
  103. # into an infinite loop, continuously re-executing ourselves.
  104. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  105. _as_can_reexec=no; export _as_can_reexec;
  106. # We cannot yet assume a decent shell, so we have to provide a
  107. # neutralization value for shells without unset; and this also
  108. # works around shells that cannot unset nonexistent variables.
  109. # Preserve -v and -x to the replacement shell.
  110. BASH_ENV=/dev/null
  111. ENV=/dev/null
  112. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  113. case $- in # ((((
  114. *v*x* | *x*v* ) as_opts=-vx ;;
  115. *v* ) as_opts=-v ;;
  116. *x* ) as_opts=-x ;;
  117. * ) as_opts= ;;
  118. esac
  119. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  120. # Admittedly, this is quite paranoid, since all the known shells bail
  121. # out after a failed `exec'.
  122. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  123. exit 255
  124. fi
  125. # We don't want this to propagate to other subprocesses.
  126. { _as_can_reexec=; unset _as_can_reexec;}
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="as_nop=:
  129. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  130. then :
  131. emulate sh
  132. NULLCMD=:
  133. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  134. # is contrary to our usage. Disable this feature.
  135. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  136. setopt NO_GLOB_SUBST
  137. else \$as_nop
  138. case \`(set -o) 2>/dev/null\` in #(
  139. *posix*) :
  140. set -o posix ;; #(
  141. *) :
  142. ;;
  143. esac
  144. fi
  145. "
  146. as_required="as_fn_return () { (exit \$1); }
  147. as_fn_success () { as_fn_return 0; }
  148. as_fn_failure () { as_fn_return 1; }
  149. as_fn_ret_success () { return 0; }
  150. as_fn_ret_failure () { return 1; }
  151. exitcode=0
  152. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  153. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  154. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  155. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  156. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  157. then :
  158. else \$as_nop
  159. exitcode=1; echo positional parameters were not saved.
  160. fi
  161. test x\$exitcode = x0 || exit 1
  162. blah=\$(echo \$(echo blah))
  163. test x\"\$blah\" = xblah || exit 1
  164. test -x / || exit 1"
  165. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  166. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  167. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  168. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
  169. if (eval "$as_required") 2>/dev/null
  170. then :
  171. as_have_required=yes
  172. else $as_nop
  173. as_have_required=no
  174. fi
  175. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  176. then :
  177. else $as_nop
  178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  179. as_found=false
  180. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  181. do
  182. IFS=$as_save_IFS
  183. case $as_dir in #(((
  184. '') as_dir=./ ;;
  185. */) ;;
  186. *) as_dir=$as_dir/ ;;
  187. esac
  188. as_found=:
  189. case $as_dir in #(
  190. /*)
  191. for as_base in sh bash ksh sh5; do
  192. # Try only shells that exist, to save several forks.
  193. as_shell=$as_dir$as_base
  194. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  195. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  196. then :
  197. CONFIG_SHELL=$as_shell as_have_required=yes
  198. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  199. then :
  200. break 2
  201. fi
  202. fi
  203. done;;
  204. esac
  205. as_found=false
  206. done
  207. IFS=$as_save_IFS
  208. if $as_found
  209. then :
  210. else $as_nop
  211. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  212. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  213. then :
  214. CONFIG_SHELL=$SHELL as_have_required=yes
  215. fi
  216. fi
  217. if test "x$CONFIG_SHELL" != x
  218. then :
  219. export CONFIG_SHELL
  220. # We cannot yet assume a decent shell, so we have to provide a
  221. # neutralization value for shells without unset; and this also
  222. # works around shells that cannot unset nonexistent variables.
  223. # Preserve -v and -x to the replacement shell.
  224. BASH_ENV=/dev/null
  225. ENV=/dev/null
  226. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  227. case $- in # ((((
  228. *v*x* | *x*v* ) as_opts=-vx ;;
  229. *v* ) as_opts=-v ;;
  230. *x* ) as_opts=-x ;;
  231. * ) as_opts= ;;
  232. esac
  233. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  234. # Admittedly, this is quite paranoid, since all the known shells bail
  235. # out after a failed `exec'.
  236. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  237. exit 255
  238. fi
  239. if test x$as_have_required = xno
  240. then :
  241. printf "%s\n" "$0: This script requires a shell more modern than all"
  242. printf "%s\n" "$0: the shells that I found on your system."
  243. if test ${ZSH_VERSION+y} ; then
  244. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  245. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  246. else
  247. printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
  248. $0: google-breakpad-dev@googlegroups.com about your system,
  249. $0: including any error possibly output before this
  250. $0: message. Then install a modern shell, or manually run
  251. $0: the script under such a shell if you do have one."
  252. fi
  253. exit 1
  254. fi
  255. fi
  256. fi
  257. SHELL=${CONFIG_SHELL-/bin/sh}
  258. export SHELL
  259. # Unset more variables known to interfere with behavior of common tools.
  260. CLICOLOR_FORCE= GREP_OPTIONS=
  261. unset CLICOLOR_FORCE GREP_OPTIONS
  262. ## --------------------- ##
  263. ## M4sh Shell Functions. ##
  264. ## --------------------- ##
  265. # as_fn_unset VAR
  266. # ---------------
  267. # Portably unset VAR.
  268. as_fn_unset ()
  269. {
  270. { eval $1=; unset $1;}
  271. }
  272. as_unset=as_fn_unset
  273. # as_fn_set_status STATUS
  274. # -----------------------
  275. # Set $? to STATUS, without forking.
  276. as_fn_set_status ()
  277. {
  278. return $1
  279. } # as_fn_set_status
  280. # as_fn_exit STATUS
  281. # -----------------
  282. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  283. as_fn_exit ()
  284. {
  285. set +e
  286. as_fn_set_status $1
  287. exit $1
  288. } # as_fn_exit
  289. # as_fn_nop
  290. # ---------
  291. # Do nothing but, unlike ":", preserve the value of $?.
  292. as_fn_nop ()
  293. {
  294. return $?
  295. }
  296. as_nop=as_fn_nop
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. printf "%s\n" X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  355. then :
  356. eval 'as_fn_append ()
  357. {
  358. eval $1+=\$2
  359. }'
  360. else $as_nop
  361. as_fn_append ()
  362. {
  363. eval $1=\$$1\$2
  364. }
  365. fi # as_fn_append
  366. # as_fn_arith ARG...
  367. # ------------------
  368. # Perform arithmetic evaluation on the ARGs, and store the result in the
  369. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  370. # must be portable across $(()) and expr.
  371. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  372. then :
  373. eval 'as_fn_arith ()
  374. {
  375. as_val=$(( $* ))
  376. }'
  377. else $as_nop
  378. as_fn_arith ()
  379. {
  380. as_val=`expr "$@" || test $? -eq 1`
  381. }
  382. fi # as_fn_arith
  383. # as_fn_nop
  384. # ---------
  385. # Do nothing but, unlike ":", preserve the value of $?.
  386. as_fn_nop ()
  387. {
  388. return $?
  389. }
  390. as_nop=as_fn_nop
  391. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  392. # ----------------------------------------
  393. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  394. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  395. # script with STATUS, using 1 if that was 0.
  396. as_fn_error ()
  397. {
  398. as_status=$1; test $as_status -eq 0 && as_status=1
  399. if test "$4"; then
  400. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  401. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  402. fi
  403. printf "%s\n" "$as_me: error: $2" >&2
  404. as_fn_exit $as_status
  405. } # as_fn_error
  406. if expr a : '\(a\)' >/dev/null 2>&1 &&
  407. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  408. as_expr=expr
  409. else
  410. as_expr=false
  411. fi
  412. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  413. as_basename=basename
  414. else
  415. as_basename=false
  416. fi
  417. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  418. as_dirname=dirname
  419. else
  420. as_dirname=false
  421. fi
  422. as_me=`$as_basename -- "$0" ||
  423. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  424. X"$0" : 'X\(//\)$' \| \
  425. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  426. printf "%s\n" X/"$0" |
  427. sed '/^.*\/\([^/][^/]*\)\/*$/{
  428. s//\1/
  429. q
  430. }
  431. /^X\/\(\/\/\)$/{
  432. s//\1/
  433. q
  434. }
  435. /^X\/\(\/\).*/{
  436. s//\1/
  437. q
  438. }
  439. s/.*/./; q'`
  440. # Avoid depending upon Character Ranges.
  441. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  442. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  443. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  444. as_cr_digits='0123456789'
  445. as_cr_alnum=$as_cr_Letters$as_cr_digits
  446. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  447. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  448. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  449. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  450. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  451. sed -n '
  452. p
  453. /[$]LINENO/=
  454. ' <$as_myself |
  455. sed '
  456. s/[$]LINENO.*/&-/
  457. t lineno
  458. b
  459. :lineno
  460. N
  461. :loop
  462. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  463. t loop
  464. s/-\n.*//
  465. ' >$as_me.lineno &&
  466. chmod +x "$as_me.lineno" ||
  467. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  468. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  469. # already done that, so ensure we don't try to do so again and fall
  470. # in an infinite loop. This has already happened in practice.
  471. _as_can_reexec=no; export _as_can_reexec
  472. # Don't try to exec as it changes $[0], causing all sort of problems
  473. # (the dirname of $[0] is not the place where we might find the
  474. # original and so on. Autoconf is especially sensitive to this).
  475. . "./$as_me.lineno"
  476. # Exit status is that of the last command.
  477. exit
  478. }
  479. # Determine whether it's possible to make 'echo' print without a newline.
  480. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  481. # for compatibility with existing Makefiles.
  482. ECHO_C= ECHO_N= ECHO_T=
  483. case `echo -n x` in #(((((
  484. -n*)
  485. case `echo 'xy\c'` in
  486. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  487. xy) ECHO_C='\c';;
  488. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  489. ECHO_T=' ';;
  490. esac;;
  491. *)
  492. ECHO_N='-n';;
  493. esac
  494. # For backward compatibility with old third-party macros, we provide
  495. # the shell variables $as_echo and $as_echo_n. New code should use
  496. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  497. as_echo='printf %s\n'
  498. as_echo_n='printf %s'
  499. rm -f conf$$ conf$$.exe conf$$.file
  500. if test -d conf$$.dir; then
  501. rm -f conf$$.dir/conf$$.file
  502. else
  503. rm -f conf$$.dir
  504. mkdir conf$$.dir 2>/dev/null
  505. fi
  506. if (echo >conf$$.file) 2>/dev/null; then
  507. if ln -s conf$$.file conf$$ 2>/dev/null; then
  508. as_ln_s='ln -s'
  509. # ... but there are two gotchas:
  510. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  511. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  512. # In both cases, we have to default to `cp -pR'.
  513. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  514. as_ln_s='cp -pR'
  515. elif ln conf$$.file conf$$ 2>/dev/null; then
  516. as_ln_s=ln
  517. else
  518. as_ln_s='cp -pR'
  519. fi
  520. else
  521. as_ln_s='cp -pR'
  522. fi
  523. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  524. rmdir conf$$.dir 2>/dev/null
  525. if mkdir -p . 2>/dev/null; then
  526. as_mkdir_p='mkdir -p "$as_dir"'
  527. else
  528. test -d ./-p && rmdir ./-p
  529. as_mkdir_p=false
  530. fi
  531. as_test_x='test -x'
  532. as_executable_p=as_fn_executable_p
  533. # Sed expression to map a string onto a valid CPP name.
  534. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  535. # Sed expression to map a string onto a valid variable name.
  536. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  537. test -n "$DJDIR" || exec 7<&0 </dev/null
  538. exec 6>&1
  539. # Name of the host.
  540. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  541. # so uname gets run too.
  542. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  543. #
  544. # Initializations.
  545. #
  546. ac_default_prefix=/usr/local
  547. ac_clean_files=
  548. ac_config_libobj_dir=.
  549. LIBOBJS=
  550. cross_compiling=no
  551. subdirs=
  552. MFLAGS=
  553. MAKEFLAGS=
  554. # Identity of this package.
  555. PACKAGE_NAME='breakpad'
  556. PACKAGE_TARNAME='breakpad'
  557. PACKAGE_VERSION='0.1'
  558. PACKAGE_STRING='breakpad 0.1'
  559. PACKAGE_BUGREPORT='google-breakpad-dev@googlegroups.com'
  560. PACKAGE_URL=''
  561. ac_unique_file="README.md"
  562. # Factoring default headers for most tests.
  563. ac_includes_default="\
  564. #include <stddef.h>
  565. #ifdef HAVE_STDIO_H
  566. # include <stdio.h>
  567. #endif
  568. #ifdef HAVE_STDLIB_H
  569. # include <stdlib.h>
  570. #endif
  571. #ifdef HAVE_STRING_H
  572. # include <string.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_STRINGS_H
  581. # include <strings.h>
  582. #endif
  583. #ifdef HAVE_SYS_TYPES_H
  584. # include <sys/types.h>
  585. #endif
  586. #ifdef HAVE_SYS_STAT_H
  587. # include <sys/stat.h>
  588. #endif
  589. #ifdef HAVE_UNISTD_H
  590. # include <unistd.h>
  591. #endif"
  592. ac_header_c_list=
  593. ac_subst_vars='am__EXEEXT_FALSE
  594. am__EXEEXT_TRUE
  595. LTLIBOBJS
  596. LIBOBJS
  597. TESTS_AS_ROOT_FALSE
  598. TESTS_AS_ROOT_TRUE
  599. RUSTC_DEMANGLE_LIBS
  600. RUSTC_DEMANGLE_CFLAGS
  601. SELFTEST_FALSE
  602. SELFTEST_TRUE
  603. GTEST_LIBS
  604. GTEST_CFLAGS
  605. GMOCK_LIBS
  606. GMOCK_CFLAGS
  607. SYSTEM_TEST_LIBS_FALSE
  608. SYSTEM_TEST_LIBS_TRUE
  609. DISABLE_TOOLS_FALSE
  610. DISABLE_TOOLS_TRUE
  611. DISABLE_PROCESSOR_FALSE
  612. DISABLE_PROCESSOR_TRUE
  613. X86_HOST_FALSE
  614. X86_HOST_TRUE
  615. ANDROID_HOST_FALSE
  616. ANDROID_HOST_TRUE
  617. LINUX_HOST_FALSE
  618. LINUX_HOST_TRUE
  619. WARN_CXXFLAGS
  620. HAVE_CXX17
  621. HAVE_MEMFD_CREATE_FALSE
  622. HAVE_MEMFD_CREATE_TRUE
  623. HAVE_GETCONTEXT_FALSE
  624. HAVE_GETCONTEXT_TRUE
  625. PTHREAD_CFLAGS
  626. PTHREAD_LIBS
  627. PTHREAD_CC
  628. ax_pthread_config
  629. RANLIB
  630. am__fastdepCXX_FALSE
  631. am__fastdepCXX_TRUE
  632. CXXDEPMODE
  633. ac_ct_CXX
  634. CXXFLAGS
  635. CXX
  636. CPP
  637. am__fastdepCCAS_FALSE
  638. am__fastdepCCAS_TRUE
  639. CCASDEPMODE
  640. CCASFLAGS
  641. CCAS
  642. am__fastdepCC_FALSE
  643. am__fastdepCC_TRUE
  644. CCDEPMODE
  645. am__nodep
  646. AMDEPBACKSLASH
  647. AMDEP_FALSE
  648. AMDEP_TRUE
  649. am__include
  650. DEPDIR
  651. OBJEXT
  652. EXEEXT
  653. ac_ct_CC
  654. CPPFLAGS
  655. LDFLAGS
  656. CFLAGS
  657. CC
  658. ac_ct_AR
  659. AR
  660. MAINT
  661. MAINTAINER_MODE_FALSE
  662. MAINTAINER_MODE_TRUE
  663. AM_BACKSLASH
  664. AM_DEFAULT_VERBOSITY
  665. AM_DEFAULT_V
  666. AM_V
  667. CSCOPE
  668. ETAGS
  669. CTAGS
  670. am__untar
  671. am__tar
  672. AMTAR
  673. am__leading_dot
  674. SET_MAKE
  675. AWK
  676. mkdir_p
  677. MKDIR_P
  678. INSTALL_STRIP_PROGRAM
  679. STRIP
  680. install_sh
  681. MAKEINFO
  682. AUTOHEADER
  683. AUTOMAKE
  684. AUTOCONF
  685. ACLOCAL
  686. VERSION
  687. PACKAGE
  688. CYGPATH_W
  689. am__isrc
  690. INSTALL_DATA
  691. INSTALL_SCRIPT
  692. INSTALL_PROGRAM
  693. host_os
  694. host_vendor
  695. host_cpu
  696. host
  697. build_os
  698. build_vendor
  699. build_cpu
  700. build
  701. target_alias
  702. host_alias
  703. build_alias
  704. LIBS
  705. ECHO_T
  706. ECHO_N
  707. ECHO_C
  708. DEFS
  709. mandir
  710. localedir
  711. libdir
  712. psdir
  713. pdfdir
  714. dvidir
  715. htmldir
  716. infodir
  717. docdir
  718. oldincludedir
  719. includedir
  720. runstatedir
  721. localstatedir
  722. sharedstatedir
  723. sysconfdir
  724. datadir
  725. datarootdir
  726. libexecdir
  727. sbindir
  728. bindir
  729. program_transform_name
  730. prefix
  731. exec_prefix
  732. PACKAGE_URL
  733. PACKAGE_BUGREPORT
  734. PACKAGE_STRING
  735. PACKAGE_VERSION
  736. PACKAGE_TARNAME
  737. PACKAGE_NAME
  738. PATH_SEPARATOR
  739. SHELL
  740. am__quote'
  741. ac_subst_files=''
  742. ac_user_opts='
  743. enable_option_checking
  744. enable_silent_rules
  745. enable_maintainer_mode
  746. enable_dependency_tracking
  747. enable_m32
  748. enable_largefile
  749. enable_processor
  750. enable_tools
  751. enable_system_test_libs
  752. enable_selftest
  753. with_rustc_demangle
  754. enable_system_rustc_demangle
  755. enable_zstd
  756. with_tests_as_root
  757. '
  758. ac_precious_vars='build_alias
  759. host_alias
  760. target_alias
  761. CC
  762. CFLAGS
  763. LDFLAGS
  764. LIBS
  765. CPPFLAGS
  766. CCAS
  767. CCASFLAGS
  768. CPP
  769. CXX
  770. CXXFLAGS
  771. CCC
  772. GMOCK_CFLAGS
  773. GMOCK_LIBS
  774. GTEST_CFLAGS
  775. GTEST_LIBS
  776. RUSTC_DEMANGLE_CFLAGS
  777. RUSTC_DEMANGLE_LIBS'
  778. # Initialize some variables set by options.
  779. ac_init_help=
  780. ac_init_version=false
  781. ac_unrecognized_opts=
  782. ac_unrecognized_sep=
  783. # The variables have the same names as the options, with
  784. # dashes changed to underlines.
  785. cache_file=/dev/null
  786. exec_prefix=NONE
  787. no_create=
  788. no_recursion=
  789. prefix=NONE
  790. program_prefix=NONE
  791. program_suffix=NONE
  792. program_transform_name=s,x,x,
  793. silent=
  794. site=
  795. srcdir=
  796. verbose=
  797. x_includes=NONE
  798. x_libraries=NONE
  799. # Installation directory options.
  800. # These are left unexpanded so users can "make install exec_prefix=/foo"
  801. # and all the variables that are supposed to be based on exec_prefix
  802. # by default will actually change.
  803. # Use braces instead of parens because sh, perl, etc. also accept them.
  804. # (The list follows the same order as the GNU Coding Standards.)
  805. bindir='${exec_prefix}/bin'
  806. sbindir='${exec_prefix}/sbin'
  807. libexecdir='${exec_prefix}/libexec'
  808. datarootdir='${prefix}/share'
  809. datadir='${datarootdir}'
  810. sysconfdir='${prefix}/etc'
  811. sharedstatedir='${prefix}/com'
  812. localstatedir='${prefix}/var'
  813. runstatedir='${localstatedir}/run'
  814. includedir='${prefix}/include'
  815. oldincludedir='/usr/include'
  816. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  817. infodir='${datarootdir}/info'
  818. htmldir='${docdir}'
  819. dvidir='${docdir}'
  820. pdfdir='${docdir}'
  821. psdir='${docdir}'
  822. libdir='${exec_prefix}/lib'
  823. localedir='${datarootdir}/locale'
  824. mandir='${datarootdir}/man'
  825. ac_prev=
  826. ac_dashdash=
  827. for ac_option
  828. do
  829. # If the previous option needs an argument, assign it.
  830. if test -n "$ac_prev"; then
  831. eval $ac_prev=\$ac_option
  832. ac_prev=
  833. continue
  834. fi
  835. case $ac_option in
  836. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  837. *=) ac_optarg= ;;
  838. *) ac_optarg=yes ;;
  839. esac
  840. case $ac_dashdash$ac_option in
  841. --)
  842. ac_dashdash=yes ;;
  843. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  844. ac_prev=bindir ;;
  845. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  846. bindir=$ac_optarg ;;
  847. -build | --build | --buil | --bui | --bu)
  848. ac_prev=build_alias ;;
  849. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  850. build_alias=$ac_optarg ;;
  851. -cache-file | --cache-file | --cache-fil | --cache-fi \
  852. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  853. ac_prev=cache_file ;;
  854. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  855. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  856. cache_file=$ac_optarg ;;
  857. --config-cache | -C)
  858. cache_file=config.cache ;;
  859. -datadir | --datadir | --datadi | --datad)
  860. ac_prev=datadir ;;
  861. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  862. datadir=$ac_optarg ;;
  863. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  864. | --dataroo | --dataro | --datar)
  865. ac_prev=datarootdir ;;
  866. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  867. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  868. datarootdir=$ac_optarg ;;
  869. -disable-* | --disable-*)
  870. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  871. # Reject names that are not valid shell variable names.
  872. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  873. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  874. ac_useropt_orig=$ac_useropt
  875. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  876. case $ac_user_opts in
  877. *"
  878. "enable_$ac_useropt"
  879. "*) ;;
  880. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  881. ac_unrecognized_sep=', ';;
  882. esac
  883. eval enable_$ac_useropt=no ;;
  884. -docdir | --docdir | --docdi | --doc | --do)
  885. ac_prev=docdir ;;
  886. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  887. docdir=$ac_optarg ;;
  888. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  889. ac_prev=dvidir ;;
  890. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  891. dvidir=$ac_optarg ;;
  892. -enable-* | --enable-*)
  893. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  894. # Reject names that are not valid shell variable names.
  895. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  896. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  897. ac_useropt_orig=$ac_useropt
  898. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  899. case $ac_user_opts in
  900. *"
  901. "enable_$ac_useropt"
  902. "*) ;;
  903. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  904. ac_unrecognized_sep=', ';;
  905. esac
  906. eval enable_$ac_useropt=\$ac_optarg ;;
  907. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  908. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  909. | --exec | --exe | --ex)
  910. ac_prev=exec_prefix ;;
  911. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  912. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  913. | --exec=* | --exe=* | --ex=*)
  914. exec_prefix=$ac_optarg ;;
  915. -gas | --gas | --ga | --g)
  916. # Obsolete; use --with-gas.
  917. with_gas=yes ;;
  918. -help | --help | --hel | --he | -h)
  919. ac_init_help=long ;;
  920. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  921. ac_init_help=recursive ;;
  922. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  923. ac_init_help=short ;;
  924. -host | --host | --hos | --ho)
  925. ac_prev=host_alias ;;
  926. -host=* | --host=* | --hos=* | --ho=*)
  927. host_alias=$ac_optarg ;;
  928. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  929. ac_prev=htmldir ;;
  930. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  931. | --ht=*)
  932. htmldir=$ac_optarg ;;
  933. -includedir | --includedir | --includedi | --included | --include \
  934. | --includ | --inclu | --incl | --inc)
  935. ac_prev=includedir ;;
  936. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  937. | --includ=* | --inclu=* | --incl=* | --inc=*)
  938. includedir=$ac_optarg ;;
  939. -infodir | --infodir | --infodi | --infod | --info | --inf)
  940. ac_prev=infodir ;;
  941. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  942. infodir=$ac_optarg ;;
  943. -libdir | --libdir | --libdi | --libd)
  944. ac_prev=libdir ;;
  945. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  946. libdir=$ac_optarg ;;
  947. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  948. | --libexe | --libex | --libe)
  949. ac_prev=libexecdir ;;
  950. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  951. | --libexe=* | --libex=* | --libe=*)
  952. libexecdir=$ac_optarg ;;
  953. -localedir | --localedir | --localedi | --localed | --locale)
  954. ac_prev=localedir ;;
  955. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  956. localedir=$ac_optarg ;;
  957. -localstatedir | --localstatedir | --localstatedi | --localstated \
  958. | --localstate | --localstat | --localsta | --localst | --locals)
  959. ac_prev=localstatedir ;;
  960. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  961. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  962. localstatedir=$ac_optarg ;;
  963. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  964. ac_prev=mandir ;;
  965. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  966. mandir=$ac_optarg ;;
  967. -nfp | --nfp | --nf)
  968. # Obsolete; use --without-fp.
  969. with_fp=no ;;
  970. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  971. | --no-cr | --no-c | -n)
  972. no_create=yes ;;
  973. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  974. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  975. no_recursion=yes ;;
  976. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  977. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  978. | --oldin | --oldi | --old | --ol | --o)
  979. ac_prev=oldincludedir ;;
  980. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  981. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  982. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  983. oldincludedir=$ac_optarg ;;
  984. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  985. ac_prev=prefix ;;
  986. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  987. prefix=$ac_optarg ;;
  988. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  989. | --program-pre | --program-pr | --program-p)
  990. ac_prev=program_prefix ;;
  991. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  992. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  993. program_prefix=$ac_optarg ;;
  994. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  995. | --program-suf | --program-su | --program-s)
  996. ac_prev=program_suffix ;;
  997. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  998. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  999. program_suffix=$ac_optarg ;;
  1000. -program-transform-name | --program-transform-name \
  1001. | --program-transform-nam | --program-transform-na \
  1002. | --program-transform-n | --program-transform- \
  1003. | --program-transform | --program-transfor \
  1004. | --program-transfo | --program-transf \
  1005. | --program-trans | --program-tran \
  1006. | --progr-tra | --program-tr | --program-t)
  1007. ac_prev=program_transform_name ;;
  1008. -program-transform-name=* | --program-transform-name=* \
  1009. | --program-transform-nam=* | --program-transform-na=* \
  1010. | --program-transform-n=* | --program-transform-=* \
  1011. | --program-transform=* | --program-transfor=* \
  1012. | --program-transfo=* | --program-transf=* \
  1013. | --program-trans=* | --program-tran=* \
  1014. | --progr-tra=* | --program-tr=* | --program-t=*)
  1015. program_transform_name=$ac_optarg ;;
  1016. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1017. ac_prev=pdfdir ;;
  1018. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1019. pdfdir=$ac_optarg ;;
  1020. -psdir | --psdir | --psdi | --psd | --ps)
  1021. ac_prev=psdir ;;
  1022. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1023. psdir=$ac_optarg ;;
  1024. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1025. | -silent | --silent | --silen | --sile | --sil)
  1026. silent=yes ;;
  1027. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1028. | --runstate | --runstat | --runsta | --runst | --runs \
  1029. | --run | --ru | --r)
  1030. ac_prev=runstatedir ;;
  1031. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1032. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1033. | --run=* | --ru=* | --r=*)
  1034. runstatedir=$ac_optarg ;;
  1035. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1036. ac_prev=sbindir ;;
  1037. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1038. | --sbi=* | --sb=*)
  1039. sbindir=$ac_optarg ;;
  1040. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1041. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1042. | --sharedst | --shareds | --shared | --share | --shar \
  1043. | --sha | --sh)
  1044. ac_prev=sharedstatedir ;;
  1045. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1046. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1047. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1048. | --sha=* | --sh=*)
  1049. sharedstatedir=$ac_optarg ;;
  1050. -site | --site | --sit)
  1051. ac_prev=site ;;
  1052. -site=* | --site=* | --sit=*)
  1053. site=$ac_optarg ;;
  1054. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1055. ac_prev=srcdir ;;
  1056. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1057. srcdir=$ac_optarg ;;
  1058. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1059. | --syscon | --sysco | --sysc | --sys | --sy)
  1060. ac_prev=sysconfdir ;;
  1061. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1062. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1063. sysconfdir=$ac_optarg ;;
  1064. -target | --target | --targe | --targ | --tar | --ta | --t)
  1065. ac_prev=target_alias ;;
  1066. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1067. target_alias=$ac_optarg ;;
  1068. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1069. verbose=yes ;;
  1070. -version | --version | --versio | --versi | --vers | -V)
  1071. ac_init_version=: ;;
  1072. -with-* | --with-*)
  1073. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1074. # Reject names that are not valid shell variable names.
  1075. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1076. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1077. ac_useropt_orig=$ac_useropt
  1078. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1079. case $ac_user_opts in
  1080. *"
  1081. "with_$ac_useropt"
  1082. "*) ;;
  1083. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1084. ac_unrecognized_sep=', ';;
  1085. esac
  1086. eval with_$ac_useropt=\$ac_optarg ;;
  1087. -without-* | --without-*)
  1088. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1089. # Reject names that are not valid shell variable names.
  1090. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1091. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1092. ac_useropt_orig=$ac_useropt
  1093. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1094. case $ac_user_opts in
  1095. *"
  1096. "with_$ac_useropt"
  1097. "*) ;;
  1098. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1099. ac_unrecognized_sep=', ';;
  1100. esac
  1101. eval with_$ac_useropt=no ;;
  1102. --x)
  1103. # Obsolete; use --with-x.
  1104. with_x=yes ;;
  1105. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1106. | --x-incl | --x-inc | --x-in | --x-i)
  1107. ac_prev=x_includes ;;
  1108. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1109. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1110. x_includes=$ac_optarg ;;
  1111. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1112. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1113. ac_prev=x_libraries ;;
  1114. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1115. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1116. x_libraries=$ac_optarg ;;
  1117. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1118. Try \`$0 --help' for more information"
  1119. ;;
  1120. *=*)
  1121. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1122. # Reject names that are not valid shell variable names.
  1123. case $ac_envvar in #(
  1124. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1125. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1126. esac
  1127. eval $ac_envvar=\$ac_optarg
  1128. export $ac_envvar ;;
  1129. *)
  1130. # FIXME: should be removed in autoconf 3.0.
  1131. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1132. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1133. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1134. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1135. ;;
  1136. esac
  1137. done
  1138. if test -n "$ac_prev"; then
  1139. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1140. as_fn_error $? "missing argument to $ac_option"
  1141. fi
  1142. if test -n "$ac_unrecognized_opts"; then
  1143. case $enable_option_checking in
  1144. no) ;;
  1145. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1146. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1147. esac
  1148. fi
  1149. # Check all directory arguments for consistency.
  1150. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1151. datadir sysconfdir sharedstatedir localstatedir includedir \
  1152. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1153. libdir localedir mandir runstatedir
  1154. do
  1155. eval ac_val=\$$ac_var
  1156. # Remove trailing slashes.
  1157. case $ac_val in
  1158. */ )
  1159. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1160. eval $ac_var=\$ac_val;;
  1161. esac
  1162. # Be sure to have absolute directory names.
  1163. case $ac_val in
  1164. [\\/$]* | ?:[\\/]* ) continue;;
  1165. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1166. esac
  1167. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1168. done
  1169. # There might be people who depend on the old broken behavior: `$host'
  1170. # used to hold the argument of --host etc.
  1171. # FIXME: To remove some day.
  1172. build=$build_alias
  1173. host=$host_alias
  1174. target=$target_alias
  1175. # FIXME: To remove some day.
  1176. if test "x$host_alias" != x; then
  1177. if test "x$build_alias" = x; then
  1178. cross_compiling=maybe
  1179. elif test "x$build_alias" != "x$host_alias"; then
  1180. cross_compiling=yes
  1181. fi
  1182. fi
  1183. ac_tool_prefix=
  1184. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1185. test "$silent" = yes && exec 6>/dev/null
  1186. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1187. ac_ls_di=`ls -di .` &&
  1188. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1189. as_fn_error $? "working directory cannot be determined"
  1190. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1191. as_fn_error $? "pwd does not report name of working directory"
  1192. # Find the source files, if location was not specified.
  1193. if test -z "$srcdir"; then
  1194. ac_srcdir_defaulted=yes
  1195. # Try the directory containing this script, then the parent directory.
  1196. ac_confdir=`$as_dirname -- "$as_myself" ||
  1197. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1198. X"$as_myself" : 'X\(//\)[^/]' \| \
  1199. X"$as_myself" : 'X\(//\)$' \| \
  1200. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1201. printf "%s\n" X"$as_myself" |
  1202. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1203. s//\1/
  1204. q
  1205. }
  1206. /^X\(\/\/\)[^/].*/{
  1207. s//\1/
  1208. q
  1209. }
  1210. /^X\(\/\/\)$/{
  1211. s//\1/
  1212. q
  1213. }
  1214. /^X\(\/\).*/{
  1215. s//\1/
  1216. q
  1217. }
  1218. s/.*/./; q'`
  1219. srcdir=$ac_confdir
  1220. if test ! -r "$srcdir/$ac_unique_file"; then
  1221. srcdir=..
  1222. fi
  1223. else
  1224. ac_srcdir_defaulted=no
  1225. fi
  1226. if test ! -r "$srcdir/$ac_unique_file"; then
  1227. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1228. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1229. fi
  1230. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1231. ac_abs_confdir=`(
  1232. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1233. pwd)`
  1234. # When building in place, set srcdir=.
  1235. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1236. srcdir=.
  1237. fi
  1238. # Remove unnecessary trailing slashes from srcdir.
  1239. # Double slashes in file names in object file debugging info
  1240. # mess up M-x gdb in Emacs.
  1241. case $srcdir in
  1242. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1243. esac
  1244. for ac_var in $ac_precious_vars; do
  1245. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1246. eval ac_env_${ac_var}_value=\$${ac_var}
  1247. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1248. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1249. done
  1250. #
  1251. # Report the --help message.
  1252. #
  1253. if test "$ac_init_help" = "long"; then
  1254. # Omit some internal or obsolete options to make the list less imposing.
  1255. # This message is too long to be a string in the A/UX 3.1 sh.
  1256. cat <<_ACEOF
  1257. \`configure' configures breakpad 0.1 to adapt to many kinds of systems.
  1258. Usage: $0 [OPTION]... [VAR=VALUE]...
  1259. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1260. VAR=VALUE. See below for descriptions of some of the useful variables.
  1261. Defaults for the options are specified in brackets.
  1262. Configuration:
  1263. -h, --help display this help and exit
  1264. --help=short display options specific to this package
  1265. --help=recursive display the short help of all the included packages
  1266. -V, --version display version information and exit
  1267. -q, --quiet, --silent do not print \`checking ...' messages
  1268. --cache-file=FILE cache test results in FILE [disabled]
  1269. -C, --config-cache alias for \`--cache-file=config.cache'
  1270. -n, --no-create do not create output files
  1271. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1272. Installation directories:
  1273. --prefix=PREFIX install architecture-independent files in PREFIX
  1274. [$ac_default_prefix]
  1275. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1276. [PREFIX]
  1277. By default, \`make install' will install all the files in
  1278. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1279. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1280. for instance \`--prefix=\$HOME'.
  1281. For better control, use the options below.
  1282. Fine tuning of the installation directories:
  1283. --bindir=DIR user executables [EPREFIX/bin]
  1284. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1285. --libexecdir=DIR program executables [EPREFIX/libexec]
  1286. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1287. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1288. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1289. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1290. --libdir=DIR object code libraries [EPREFIX/lib]
  1291. --includedir=DIR C header files [PREFIX/include]
  1292. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1293. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1294. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1295. --infodir=DIR info documentation [DATAROOTDIR/info]
  1296. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1297. --mandir=DIR man documentation [DATAROOTDIR/man]
  1298. --docdir=DIR documentation root [DATAROOTDIR/doc/breakpad]
  1299. --htmldir=DIR html documentation [DOCDIR]
  1300. --dvidir=DIR dvi documentation [DOCDIR]
  1301. --pdfdir=DIR pdf documentation [DOCDIR]
  1302. --psdir=DIR ps documentation [DOCDIR]
  1303. _ACEOF
  1304. cat <<\_ACEOF
  1305. Program names:
  1306. --program-prefix=PREFIX prepend PREFIX to installed program names
  1307. --program-suffix=SUFFIX append SUFFIX to installed program names
  1308. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1309. System types:
  1310. --build=BUILD configure for building on BUILD [guessed]
  1311. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1312. _ACEOF
  1313. fi
  1314. if test -n "$ac_init_help"; then
  1315. case $ac_init_help in
  1316. short | recursive ) echo "Configuration of breakpad 0.1:";;
  1317. esac
  1318. cat <<\_ACEOF
  1319. Optional Features:
  1320. --disable-option-checking ignore unrecognized --enable/--with options
  1321. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1322. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1323. --enable-silent-rules less verbose build output (undo: "make V=1")
  1324. --disable-silent-rules verbose build output (undo: "make V=0")
  1325. --enable-maintainer-mode
  1326. enable make rules and dependencies not useful (and
  1327. sometimes confusing) to the casual installer
  1328. --enable-dependency-tracking
  1329. do not reject slow dependency extractors
  1330. --disable-dependency-tracking
  1331. speeds up one-time build
  1332. --enable-m32 Compile/build with -m32 (default is no)
  1333. --disable-largefile omit support for large files
  1334. --disable-processor Don't build processor library (default is no)
  1335. --disable-tools Don't build tool binaries (default is no)
  1336. --enable-system-test-libs
  1337. Use gtest/gmock/etc... from the system instead of
  1338. the local copies (default is local)
  1339. --enable-selftest Run extra tests with "make check" (may conflict with
  1340. optimizations) (default is no)
  1341. --enable-system-rustc-demangle
  1342. Link against the rustc-demangle library to demangle
  1343. Rust language symbols during symbol dumping (default
  1344. is no). This assumes that rustc-demangle is
  1345. installed in your sysroot, and all headers from it
  1346. are available in your standard include path
  1347. --enable-zstd Enable decompression of ELF sections with zstd
  1348. Optional Packages:
  1349. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1350. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1351. --with-rustc-demangle=/path/to/rustc-demangle
  1352. Link against the rustc-demangle library to demangle
  1353. Rust language symbols during symbol dumping (default
  1354. is no) Pass the path to the crate root.
  1355. --with-tests-as-root Run the tests as root. Use this on platforms like
  1356. travis-ci.org that require root privileges to use
  1357. ptrace (default is no)
  1358. Some influential environment variables:
  1359. CC C compiler command
  1360. CFLAGS C compiler flags
  1361. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1362. nonstandard directory <lib dir>
  1363. LIBS libraries to pass to the linker, e.g. -l<library>
  1364. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1365. you have headers in a nonstandard directory <include dir>
  1366. CCAS assembler compiler command (defaults to CC)
  1367. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1368. CPP C preprocessor
  1369. CXX C++ compiler command
  1370. CXXFLAGS C++ compiler flags
  1371. GMOCK_CFLAGS
  1372. Compiler flags for gmock
  1373. GMOCK_LIBS Linker flags for gmock
  1374. GTEST_CFLAGS
  1375. Compiler flags for gtest
  1376. GTEST_LIBS Linker flags for gtest
  1377. RUSTC_DEMANGLE_CFLAGS
  1378. Compiler flags for rustc-demangle
  1379. RUSTC_DEMANGLE_LIBS
  1380. Linker flags for rustc-demangle
  1381. Use these variables to override the choices made by `configure' or to help
  1382. it to find libraries and programs with nonstandard names/locations.
  1383. Report bugs to <google-breakpad-dev@googlegroups.com>.
  1384. _ACEOF
  1385. ac_status=$?
  1386. fi
  1387. if test "$ac_init_help" = "recursive"; then
  1388. # If there are subdirs, report their specific --help.
  1389. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1390. test -d "$ac_dir" ||
  1391. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1392. continue
  1393. ac_builddir=.
  1394. case "$ac_dir" in
  1395. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1396. *)
  1397. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1398. # A ".." for each directory in $ac_dir_suffix.
  1399. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1400. case $ac_top_builddir_sub in
  1401. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1402. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1403. esac ;;
  1404. esac
  1405. ac_abs_top_builddir=$ac_pwd
  1406. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1407. # for backward compatibility:
  1408. ac_top_builddir=$ac_top_build_prefix
  1409. case $srcdir in
  1410. .) # We are building in place.
  1411. ac_srcdir=.
  1412. ac_top_srcdir=$ac_top_builddir_sub
  1413. ac_abs_top_srcdir=$ac_pwd ;;
  1414. [\\/]* | ?:[\\/]* ) # Absolute name.
  1415. ac_srcdir=$srcdir$ac_dir_suffix;
  1416. ac_top_srcdir=$srcdir
  1417. ac_abs_top_srcdir=$srcdir ;;
  1418. *) # Relative name.
  1419. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1420. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1421. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1422. esac
  1423. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1424. cd "$ac_dir" || { ac_status=$?; continue; }
  1425. # Check for configure.gnu first; this name is used for a wrapper for
  1426. # Metaconfig's "Configure" on case-insensitive file systems.
  1427. if test -f "$ac_srcdir/configure.gnu"; then
  1428. echo &&
  1429. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1430. elif test -f "$ac_srcdir/configure"; then
  1431. echo &&
  1432. $SHELL "$ac_srcdir/configure" --help=recursive
  1433. else
  1434. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1435. fi || ac_status=$?
  1436. cd "$ac_pwd" || { ac_status=$?; break; }
  1437. done
  1438. fi
  1439. test -n "$ac_init_help" && exit $ac_status
  1440. if $ac_init_version; then
  1441. cat <<\_ACEOF
  1442. breakpad configure 0.1
  1443. generated by GNU Autoconf 2.71
  1444. Copyright (C) 2021 Free Software Foundation, Inc.
  1445. This configure script is free software; the Free Software Foundation
  1446. gives unlimited permission to copy, distribute and modify it.
  1447. _ACEOF
  1448. exit
  1449. fi
  1450. ## ------------------------ ##
  1451. ## Autoconf initialization. ##
  1452. ## ------------------------ ##
  1453. # ac_fn_c_try_compile LINENO
  1454. # --------------------------
  1455. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1456. ac_fn_c_try_compile ()
  1457. {
  1458. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1459. rm -f conftest.$ac_objext conftest.beam
  1460. if { { ac_try="$ac_compile"
  1461. case "(($ac_try" in
  1462. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1463. *) ac_try_echo=$ac_try;;
  1464. esac
  1465. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1466. printf "%s\n" "$ac_try_echo"; } >&5
  1467. (eval "$ac_compile") 2>conftest.err
  1468. ac_status=$?
  1469. if test -s conftest.err; then
  1470. grep -v '^ *+' conftest.err >conftest.er1
  1471. cat conftest.er1 >&5
  1472. mv -f conftest.er1 conftest.err
  1473. fi
  1474. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1475. test $ac_status = 0; } && {
  1476. test -z "$ac_c_werror_flag" ||
  1477. test ! -s conftest.err
  1478. } && test -s conftest.$ac_objext
  1479. then :
  1480. ac_retval=0
  1481. else $as_nop
  1482. printf "%s\n" "$as_me: failed program was:" >&5
  1483. sed 's/^/| /' conftest.$ac_ext >&5
  1484. ac_retval=1
  1485. fi
  1486. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1487. as_fn_set_status $ac_retval
  1488. } # ac_fn_c_try_compile
  1489. # ac_fn_c_try_cpp LINENO
  1490. # ----------------------
  1491. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1492. ac_fn_c_try_cpp ()
  1493. {
  1494. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1495. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1496. case "(($ac_try" in
  1497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1498. *) ac_try_echo=$ac_try;;
  1499. esac
  1500. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1501. printf "%s\n" "$ac_try_echo"; } >&5
  1502. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1503. ac_status=$?
  1504. if test -s conftest.err; then
  1505. grep -v '^ *+' conftest.err >conftest.er1
  1506. cat conftest.er1 >&5
  1507. mv -f conftest.er1 conftest.err
  1508. fi
  1509. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1510. test $ac_status = 0; } > conftest.i && {
  1511. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1512. test ! -s conftest.err
  1513. }
  1514. then :
  1515. ac_retval=0
  1516. else $as_nop
  1517. printf "%s\n" "$as_me: failed program was:" >&5
  1518. sed 's/^/| /' conftest.$ac_ext >&5
  1519. ac_retval=1
  1520. fi
  1521. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1522. as_fn_set_status $ac_retval
  1523. } # ac_fn_c_try_cpp
  1524. # ac_fn_cxx_try_compile LINENO
  1525. # ----------------------------
  1526. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1527. ac_fn_cxx_try_compile ()
  1528. {
  1529. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1530. rm -f conftest.$ac_objext conftest.beam
  1531. if { { ac_try="$ac_compile"
  1532. case "(($ac_try" in
  1533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1534. *) ac_try_echo=$ac_try;;
  1535. esac
  1536. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1537. printf "%s\n" "$ac_try_echo"; } >&5
  1538. (eval "$ac_compile") 2>conftest.err
  1539. ac_status=$?
  1540. if test -s conftest.err; then
  1541. grep -v '^ *+' conftest.err >conftest.er1
  1542. cat conftest.er1 >&5
  1543. mv -f conftest.er1 conftest.err
  1544. fi
  1545. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1546. test $ac_status = 0; } && {
  1547. test -z "$ac_cxx_werror_flag" ||
  1548. test ! -s conftest.err
  1549. } && test -s conftest.$ac_objext
  1550. then :
  1551. ac_retval=0
  1552. else $as_nop
  1553. printf "%s\n" "$as_me: failed program was:" >&5
  1554. sed 's/^/| /' conftest.$ac_ext >&5
  1555. ac_retval=1
  1556. fi
  1557. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1558. as_fn_set_status $ac_retval
  1559. } # ac_fn_cxx_try_compile
  1560. # ac_fn_c_try_link LINENO
  1561. # -----------------------
  1562. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1563. ac_fn_c_try_link ()
  1564. {
  1565. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1566. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1567. if { { ac_try="$ac_link"
  1568. case "(($ac_try" in
  1569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1570. *) ac_try_echo=$ac_try;;
  1571. esac
  1572. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1573. printf "%s\n" "$ac_try_echo"; } >&5
  1574. (eval "$ac_link") 2>conftest.err
  1575. ac_status=$?
  1576. if test -s conftest.err; then
  1577. grep -v '^ *+' conftest.err >conftest.er1
  1578. cat conftest.er1 >&5
  1579. mv -f conftest.er1 conftest.err
  1580. fi
  1581. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1582. test $ac_status = 0; } && {
  1583. test -z "$ac_c_werror_flag" ||
  1584. test ! -s conftest.err
  1585. } && test -s conftest$ac_exeext && {
  1586. test "$cross_compiling" = yes ||
  1587. test -x conftest$ac_exeext
  1588. }
  1589. then :
  1590. ac_retval=0
  1591. else $as_nop
  1592. printf "%s\n" "$as_me: failed program was:" >&5
  1593. sed 's/^/| /' conftest.$ac_ext >&5
  1594. ac_retval=1
  1595. fi
  1596. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1597. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1598. # interfere with the next link command; also delete a directory that is
  1599. # left behind by Apple's compiler. We do this before executing the actions.
  1600. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1601. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1602. as_fn_set_status $ac_retval
  1603. } # ac_fn_c_try_link
  1604. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1605. # -------------------------------------------------------
  1606. # Tests whether HEADER exists and can be compiled using the include files in
  1607. # INCLUDES, setting the cache variable VAR accordingly.
  1608. ac_fn_c_check_header_compile ()
  1609. {
  1610. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1612. printf %s "checking for $2... " >&6; }
  1613. if eval test \${$3+y}
  1614. then :
  1615. printf %s "(cached) " >&6
  1616. else $as_nop
  1617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1618. /* end confdefs.h. */
  1619. $4
  1620. #include <$2>
  1621. _ACEOF
  1622. if ac_fn_c_try_compile "$LINENO"
  1623. then :
  1624. eval "$3=yes"
  1625. else $as_nop
  1626. eval "$3=no"
  1627. fi
  1628. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1629. fi
  1630. eval ac_res=\$$3
  1631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1632. printf "%s\n" "$ac_res" >&6; }
  1633. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1634. } # ac_fn_c_check_header_compile
  1635. # ac_fn_c_check_func LINENO FUNC VAR
  1636. # ----------------------------------
  1637. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1638. ac_fn_c_check_func ()
  1639. {
  1640. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1642. printf %s "checking for $2... " >&6; }
  1643. if eval test \${$3+y}
  1644. then :
  1645. printf %s "(cached) " >&6
  1646. else $as_nop
  1647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1648. /* end confdefs.h. */
  1649. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1650. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1651. #define $2 innocuous_$2
  1652. /* System header to define __stub macros and hopefully few prototypes,
  1653. which can conflict with char $2 (); below. */
  1654. #include <limits.h>
  1655. #undef $2
  1656. /* Override any GCC internal prototype to avoid an error.
  1657. Use char because int might match the return type of a GCC
  1658. builtin and then its argument prototype would still apply. */
  1659. #ifdef __cplusplus
  1660. extern "C"
  1661. #endif
  1662. char $2 ();
  1663. /* The GNU C library defines this for functions which it implements
  1664. to always fail with ENOSYS. Some functions are actually named
  1665. something starting with __ and the normal name is an alias. */
  1666. #if defined __stub_$2 || defined __stub___$2
  1667. choke me
  1668. #endif
  1669. int
  1670. main (void)
  1671. {
  1672. return $2 ();
  1673. ;
  1674. return 0;
  1675. }
  1676. _ACEOF
  1677. if ac_fn_c_try_link "$LINENO"
  1678. then :
  1679. eval "$3=yes"
  1680. else $as_nop
  1681. eval "$3=no"
  1682. fi
  1683. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1684. conftest$ac_exeext conftest.$ac_ext
  1685. fi
  1686. eval ac_res=\$$3
  1687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1688. printf "%s\n" "$ac_res" >&6; }
  1689. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1690. } # ac_fn_c_check_func
  1691. ac_configure_args_raw=
  1692. for ac_arg
  1693. do
  1694. case $ac_arg in
  1695. *\'*)
  1696. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1697. esac
  1698. as_fn_append ac_configure_args_raw " '$ac_arg'"
  1699. done
  1700. case $ac_configure_args_raw in
  1701. *$as_nl*)
  1702. ac_safe_unquote= ;;
  1703. *)
  1704. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  1705. ac_unsafe_a="$ac_unsafe_z#~"
  1706. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  1707. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  1708. esac
  1709. cat >config.log <<_ACEOF
  1710. This file contains any messages produced by compilers while
  1711. running configure, to aid debugging if configure makes a mistake.
  1712. It was created by breakpad $as_me 0.1, which was
  1713. generated by GNU Autoconf 2.71. Invocation command line was
  1714. $ $0$ac_configure_args_raw
  1715. _ACEOF
  1716. exec 5>>config.log
  1717. {
  1718. cat <<_ASUNAME
  1719. ## --------- ##
  1720. ## Platform. ##
  1721. ## --------- ##
  1722. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1723. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1724. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1725. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1726. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1727. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1728. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1729. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1730. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1731. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1732. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1733. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1734. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1735. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1736. _ASUNAME
  1737. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1738. for as_dir in $PATH
  1739. do
  1740. IFS=$as_save_IFS
  1741. case $as_dir in #(((
  1742. '') as_dir=./ ;;
  1743. */) ;;
  1744. *) as_dir=$as_dir/ ;;
  1745. esac
  1746. printf "%s\n" "PATH: $as_dir"
  1747. done
  1748. IFS=$as_save_IFS
  1749. } >&5
  1750. cat >&5 <<_ACEOF
  1751. ## ----------- ##
  1752. ## Core tests. ##
  1753. ## ----------- ##
  1754. _ACEOF
  1755. # Keep a trace of the command line.
  1756. # Strip out --no-create and --no-recursion so they do not pile up.
  1757. # Strip out --silent because we don't want to record it for future runs.
  1758. # Also quote any args containing shell meta-characters.
  1759. # Make two passes to allow for proper duplicate-argument suppression.
  1760. ac_configure_args=
  1761. ac_configure_args0=
  1762. ac_configure_args1=
  1763. ac_must_keep_next=false
  1764. for ac_pass in 1 2
  1765. do
  1766. for ac_arg
  1767. do
  1768. case $ac_arg in
  1769. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1770. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1771. | -silent | --silent | --silen | --sile | --sil)
  1772. continue ;;
  1773. *\'*)
  1774. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1775. esac
  1776. case $ac_pass in
  1777. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1778. 2)
  1779. as_fn_append ac_configure_args1 " '$ac_arg'"
  1780. if test $ac_must_keep_next = true; then
  1781. ac_must_keep_next=false # Got value, back to normal.
  1782. else
  1783. case $ac_arg in
  1784. *=* | --config-cache | -C | -disable-* | --disable-* \
  1785. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1786. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1787. | -with-* | --with-* | -without-* | --without-* | --x)
  1788. case "$ac_configure_args0 " in
  1789. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1790. esac
  1791. ;;
  1792. -* ) ac_must_keep_next=true ;;
  1793. esac
  1794. fi
  1795. as_fn_append ac_configure_args " '$ac_arg'"
  1796. ;;
  1797. esac
  1798. done
  1799. done
  1800. { ac_configure_args0=; unset ac_configure_args0;}
  1801. { ac_configure_args1=; unset ac_configure_args1;}
  1802. # When interrupted or exit'd, cleanup temporary files, and complete
  1803. # config.log. We remove comments because anyway the quotes in there
  1804. # would cause problems or look ugly.
  1805. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1806. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1807. trap 'exit_status=$?
  1808. # Sanitize IFS.
  1809. IFS=" "" $as_nl"
  1810. # Save into config.log some information that might help in debugging.
  1811. {
  1812. echo
  1813. printf "%s\n" "## ---------------- ##
  1814. ## Cache variables. ##
  1815. ## ---------------- ##"
  1816. echo
  1817. # The following way of writing the cache mishandles newlines in values,
  1818. (
  1819. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1820. eval ac_val=\$$ac_var
  1821. case $ac_val in #(
  1822. *${as_nl}*)
  1823. case $ac_var in #(
  1824. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1825. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1826. esac
  1827. case $ac_var in #(
  1828. _ | IFS | as_nl) ;; #(
  1829. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1830. *) { eval $ac_var=; unset $ac_var;} ;;
  1831. esac ;;
  1832. esac
  1833. done
  1834. (set) 2>&1 |
  1835. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1836. *${as_nl}ac_space=\ *)
  1837. sed -n \
  1838. "s/'\''/'\''\\\\'\'''\''/g;
  1839. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1840. ;; #(
  1841. *)
  1842. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1843. ;;
  1844. esac |
  1845. sort
  1846. )
  1847. echo
  1848. printf "%s\n" "## ----------------- ##
  1849. ## Output variables. ##
  1850. ## ----------------- ##"
  1851. echo
  1852. for ac_var in $ac_subst_vars
  1853. do
  1854. eval ac_val=\$$ac_var
  1855. case $ac_val in
  1856. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1857. esac
  1858. printf "%s\n" "$ac_var='\''$ac_val'\''"
  1859. done | sort
  1860. echo
  1861. if test -n "$ac_subst_files"; then
  1862. printf "%s\n" "## ------------------- ##
  1863. ## File substitutions. ##
  1864. ## ------------------- ##"
  1865. echo
  1866. for ac_var in $ac_subst_files
  1867. do
  1868. eval ac_val=\$$ac_var
  1869. case $ac_val in
  1870. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1871. esac
  1872. printf "%s\n" "$ac_var='\''$ac_val'\''"
  1873. done | sort
  1874. echo
  1875. fi
  1876. if test -s confdefs.h; then
  1877. printf "%s\n" "## ----------- ##
  1878. ## confdefs.h. ##
  1879. ## ----------- ##"
  1880. echo
  1881. cat confdefs.h
  1882. echo
  1883. fi
  1884. test "$ac_signal" != 0 &&
  1885. printf "%s\n" "$as_me: caught signal $ac_signal"
  1886. printf "%s\n" "$as_me: exit $exit_status"
  1887. } >&5
  1888. rm -f core *.core core.conftest.* &&
  1889. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1890. exit $exit_status
  1891. ' 0
  1892. for ac_signal in 1 2 13 15; do
  1893. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1894. done
  1895. ac_signal=0
  1896. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1897. rm -f -r conftest* confdefs.h
  1898. printf "%s\n" "/* confdefs.h */" > confdefs.h
  1899. # Predefined preprocessor variables.
  1900. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  1901. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  1902. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  1903. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  1904. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  1905. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  1906. # Let the site file select an alternate cache file if it wants to.
  1907. # Prefer an explicitly selected file to automatically selected ones.
  1908. if test -n "$CONFIG_SITE"; then
  1909. ac_site_files="$CONFIG_SITE"
  1910. elif test "x$prefix" != xNONE; then
  1911. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  1912. else
  1913. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1914. fi
  1915. for ac_site_file in $ac_site_files
  1916. do
  1917. case $ac_site_file in #(
  1918. */*) :
  1919. ;; #(
  1920. *) :
  1921. ac_site_file=./$ac_site_file ;;
  1922. esac
  1923. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  1924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1925. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  1926. sed 's/^/| /' "$ac_site_file" >&5
  1927. . "$ac_site_file" \
  1928. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1929. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  1930. as_fn_error $? "failed to load site script $ac_site_file
  1931. See \`config.log' for more details" "$LINENO" 5; }
  1932. fi
  1933. done
  1934. if test -r "$cache_file"; then
  1935. # Some versions of bash will fail to source /dev/null (special files
  1936. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1937. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1939. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  1940. case $cache_file in
  1941. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1942. *) . "./$cache_file";;
  1943. esac
  1944. fi
  1945. else
  1946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1947. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  1948. >$cache_file
  1949. fi
  1950. # Test code for whether the C compiler supports C89 (global declarations)
  1951. ac_c_conftest_c89_globals='
  1952. /* Does the compiler advertise C89 conformance?
  1953. Do not test the value of __STDC__, because some compilers set it to 0
  1954. while being otherwise adequately conformant. */
  1955. #if !defined __STDC__
  1956. # error "Compiler does not advertise C89 conformance"
  1957. #endif
  1958. #include <stddef.h>
  1959. #include <stdarg.h>
  1960. struct stat;
  1961. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  1962. struct buf { int x; };
  1963. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  1964. static char *e (p, i)
  1965. char **p;
  1966. int i;
  1967. {
  1968. return p[i];
  1969. }
  1970. static char *f (char * (*g) (char **, int), char **p, ...)
  1971. {
  1972. char *s;
  1973. va_list v;
  1974. va_start (v,p);
  1975. s = g (p, va_arg (v,int));
  1976. va_end (v);
  1977. return s;
  1978. }
  1979. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1980. function prototypes and stuff, but not \xHH hex character constants.
  1981. These do not provoke an error unfortunately, instead are silently treated
  1982. as an "x". The following induces an error, until -std is added to get
  1983. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  1984. array size at least. It is necessary to write \x00 == 0 to get something
  1985. that is true only with -std. */
  1986. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  1987. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  1988. inside strings and character constants. */
  1989. #define FOO(x) '\''x'\''
  1990. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  1991. int test (int i, double x);
  1992. struct s1 {int (*f) (int a);};
  1993. struct s2 {int (*f) (double a);};
  1994. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  1995. int, int);'
  1996. # Test code for whether the C compiler supports C89 (body of main).
  1997. ac_c_conftest_c89_main='
  1998. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  1999. '
  2000. # Test code for whether the C compiler supports C99 (global declarations)
  2001. ac_c_conftest_c99_globals='
  2002. // Does the compiler advertise C99 conformance?
  2003. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2004. # error "Compiler does not advertise C99 conformance"
  2005. #endif
  2006. #include <stdbool.h>
  2007. extern int puts (const char *);
  2008. extern int printf (const char *, ...);
  2009. extern int dprintf (int, const char *, ...);
  2010. extern void *malloc (size_t);
  2011. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2012. // dprintf is used instead of fprintf to avoid needing to declare
  2013. // FILE and stderr.
  2014. #define debug(...) dprintf (2, __VA_ARGS__)
  2015. #define showlist(...) puts (#__VA_ARGS__)
  2016. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2017. static void
  2018. test_varargs_macros (void)
  2019. {
  2020. int x = 1234;
  2021. int y = 5678;
  2022. debug ("Flag");
  2023. debug ("X = %d\n", x);
  2024. showlist (The first, second, and third items.);
  2025. report (x>y, "x is %d but y is %d", x, y);
  2026. }
  2027. // Check long long types.
  2028. #define BIG64 18446744073709551615ull
  2029. #define BIG32 4294967295ul
  2030. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2031. #if !BIG_OK
  2032. #error "your preprocessor is broken"
  2033. #endif
  2034. #if BIG_OK
  2035. #else
  2036. #error "your preprocessor is broken"
  2037. #endif
  2038. static long long int bignum = -9223372036854775807LL;
  2039. static unsigned long long int ubignum = BIG64;
  2040. struct incomplete_array
  2041. {
  2042. int datasize;
  2043. double data[];
  2044. };
  2045. struct named_init {
  2046. int number;
  2047. const wchar_t *name;
  2048. double average;
  2049. };
  2050. typedef const char *ccp;
  2051. static inline int
  2052. test_restrict (ccp restrict text)
  2053. {
  2054. // See if C++-style comments work.
  2055. // Iterate through items via the restricted pointer.
  2056. // Also check for declarations in for loops.
  2057. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2058. continue;
  2059. return 0;
  2060. }
  2061. // Check varargs and va_copy.
  2062. static bool
  2063. test_varargs (const char *format, ...)
  2064. {
  2065. va_list args;
  2066. va_start (args, format);
  2067. va_list args_copy;
  2068. va_copy (args_copy, args);
  2069. const char *str = "";
  2070. int number = 0;
  2071. float fnumber = 0;
  2072. while (*format)
  2073. {
  2074. switch (*format++)
  2075. {
  2076. case '\''s'\'': // string
  2077. str = va_arg (args_copy, const char *);
  2078. break;
  2079. case '\''d'\'': // int
  2080. number = va_arg (args_copy, int);
  2081. break;
  2082. case '\''f'\'': // float
  2083. fnumber = va_arg (args_copy, double);
  2084. break;
  2085. default:
  2086. break;
  2087. }
  2088. }
  2089. va_end (args_copy);
  2090. va_end (args);
  2091. return *str && number && fnumber;
  2092. }
  2093. '
  2094. # Test code for whether the C compiler supports C99 (body of main).
  2095. ac_c_conftest_c99_main='
  2096. // Check bool.
  2097. _Bool success = false;
  2098. success |= (argc != 0);
  2099. // Check restrict.
  2100. if (test_restrict ("String literal") == 0)
  2101. success = true;
  2102. char *restrict newvar = "Another string";
  2103. // Check varargs.
  2104. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2105. test_varargs_macros ();
  2106. // Check flexible array members.
  2107. struct incomplete_array *ia =
  2108. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2109. ia->datasize = 10;
  2110. for (int i = 0; i < ia->datasize; ++i)
  2111. ia->data[i] = i * 1.234;
  2112. // Check named initializers.
  2113. struct named_init ni = {
  2114. .number = 34,
  2115. .name = L"Test wide string",
  2116. .average = 543.34343,
  2117. };
  2118. ni.number = 58;
  2119. int dynamic_array[ni.number];
  2120. dynamic_array[0] = argv[0][0];
  2121. dynamic_array[ni.number - 1] = 543;
  2122. // work around unused variable warnings
  2123. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2124. || dynamic_array[ni.number - 1] != 543);
  2125. '
  2126. # Test code for whether the C compiler supports C11 (global declarations)
  2127. ac_c_conftest_c11_globals='
  2128. // Does the compiler advertise C11 conformance?
  2129. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2130. # error "Compiler does not advertise C11 conformance"
  2131. #endif
  2132. // Check _Alignas.
  2133. char _Alignas (double) aligned_as_double;
  2134. char _Alignas (0) no_special_alignment;
  2135. extern char aligned_as_int;
  2136. char _Alignas (0) _Alignas (int) aligned_as_int;
  2137. // Check _Alignof.
  2138. enum
  2139. {
  2140. int_alignment = _Alignof (int),
  2141. int_array_alignment = _Alignof (int[100]),
  2142. char_alignment = _Alignof (char)
  2143. };
  2144. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2145. // Check _Noreturn.
  2146. int _Noreturn does_not_return (void) { for (;;) continue; }
  2147. // Check _Static_assert.
  2148. struct test_static_assert
  2149. {
  2150. int x;
  2151. _Static_assert (sizeof (int) <= sizeof (long int),
  2152. "_Static_assert does not work in struct");
  2153. long int y;
  2154. };
  2155. // Check UTF-8 literals.
  2156. #define u8 syntax error!
  2157. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2158. // Check duplicate typedefs.
  2159. typedef long *long_ptr;
  2160. typedef long int *long_ptr;
  2161. typedef long_ptr long_ptr;
  2162. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2163. struct anonymous
  2164. {
  2165. union {
  2166. struct { int i; int j; };
  2167. struct { int k; long int l; } w;
  2168. };
  2169. int m;
  2170. } v1;
  2171. '
  2172. # Test code for whether the C compiler supports C11 (body of main).
  2173. ac_c_conftest_c11_main='
  2174. _Static_assert ((offsetof (struct anonymous, i)
  2175. == offsetof (struct anonymous, w.k)),
  2176. "Anonymous union alignment botch");
  2177. v1.i = 2;
  2178. v1.w.k = 5;
  2179. ok |= v1.i != 5;
  2180. '
  2181. # Test code for whether the C compiler supports C11 (complete).
  2182. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2183. ${ac_c_conftest_c99_globals}
  2184. ${ac_c_conftest_c11_globals}
  2185. int
  2186. main (int argc, char **argv)
  2187. {
  2188. int ok = 0;
  2189. ${ac_c_conftest_c89_main}
  2190. ${ac_c_conftest_c99_main}
  2191. ${ac_c_conftest_c11_main}
  2192. return ok;
  2193. }
  2194. "
  2195. # Test code for whether the C compiler supports C99 (complete).
  2196. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2197. ${ac_c_conftest_c99_globals}
  2198. int
  2199. main (int argc, char **argv)
  2200. {
  2201. int ok = 0;
  2202. ${ac_c_conftest_c89_main}
  2203. ${ac_c_conftest_c99_main}
  2204. return ok;
  2205. }
  2206. "
  2207. # Test code for whether the C compiler supports C89 (complete).
  2208. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2209. int
  2210. main (int argc, char **argv)
  2211. {
  2212. int ok = 0;
  2213. ${ac_c_conftest_c89_main}
  2214. return ok;
  2215. }
  2216. "
  2217. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2218. ac_cxx_conftest_cxx98_globals='
  2219. // Does the compiler advertise C++98 conformance?
  2220. #if !defined __cplusplus || __cplusplus < 199711L
  2221. # error "Compiler does not advertise C++98 conformance"
  2222. #endif
  2223. // These inclusions are to reject old compilers that
  2224. // lack the unsuffixed header files.
  2225. #include <cstdlib>
  2226. #include <exception>
  2227. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2228. extern void assert (int);
  2229. namespace std {
  2230. extern int strcmp (const char *, const char *);
  2231. }
  2232. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2233. using std::exception;
  2234. using std::strcmp;
  2235. namespace {
  2236. void test_exception_syntax()
  2237. {
  2238. try {
  2239. throw "test";
  2240. } catch (const char *s) {
  2241. // Extra parentheses suppress a warning when building autoconf itself,
  2242. // due to lint rules shared with more typical C programs.
  2243. assert (!(strcmp) (s, "test"));
  2244. }
  2245. }
  2246. template <typename T> struct test_template
  2247. {
  2248. T const val;
  2249. explicit test_template(T t) : val(t) {}
  2250. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2251. };
  2252. } // anonymous namespace
  2253. '
  2254. # Test code for whether the C++ compiler supports C++98 (body of main)
  2255. ac_cxx_conftest_cxx98_main='
  2256. assert (argc);
  2257. assert (! argv[0]);
  2258. {
  2259. test_exception_syntax ();
  2260. test_template<double> tt (2.0);
  2261. assert (tt.add (4) == 6.0);
  2262. assert (true && !false);
  2263. }
  2264. '
  2265. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2266. ac_cxx_conftest_cxx11_globals='
  2267. // Does the compiler advertise C++ 2011 conformance?
  2268. #if !defined __cplusplus || __cplusplus < 201103L
  2269. # error "Compiler does not advertise C++11 conformance"
  2270. #endif
  2271. namespace cxx11test
  2272. {
  2273. constexpr int get_val() { return 20; }
  2274. struct testinit
  2275. {
  2276. int i;
  2277. double d;
  2278. };
  2279. class delegate
  2280. {
  2281. public:
  2282. delegate(int n) : n(n) {}
  2283. delegate(): delegate(2354) {}
  2284. virtual int getval() { return this->n; };
  2285. protected:
  2286. int n;
  2287. };
  2288. class overridden : public delegate
  2289. {
  2290. public:
  2291. overridden(int n): delegate(n) {}
  2292. virtual int getval() override final { return this->n * 2; }
  2293. };
  2294. class nocopy
  2295. {
  2296. public:
  2297. nocopy(int i): i(i) {}
  2298. nocopy() = default;
  2299. nocopy(const nocopy&) = delete;
  2300. nocopy & operator=(const nocopy&) = delete;
  2301. private:
  2302. int i;
  2303. };
  2304. // for testing lambda expressions
  2305. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2306. {
  2307. return f(v);
  2308. }
  2309. // for testing variadic templates and trailing return types
  2310. template <typename V> auto sum(V first) -> V
  2311. {
  2312. return first;
  2313. }
  2314. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2315. {
  2316. return first + sum(rest...);
  2317. }
  2318. }
  2319. '
  2320. # Test code for whether the C++ compiler supports C++11 (body of main)
  2321. ac_cxx_conftest_cxx11_main='
  2322. {
  2323. // Test auto and decltype
  2324. auto a1 = 6538;
  2325. auto a2 = 48573953.4;
  2326. auto a3 = "String literal";
  2327. int total = 0;
  2328. for (auto i = a3; *i; ++i) { total += *i; }
  2329. decltype(a2) a4 = 34895.034;
  2330. }
  2331. {
  2332. // Test constexpr
  2333. short sa[cxx11test::get_val()] = { 0 };
  2334. }
  2335. {
  2336. // Test initializer lists
  2337. cxx11test::testinit il = { 4323, 435234.23544 };
  2338. }
  2339. {
  2340. // Test range-based for
  2341. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2342. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2343. for (auto &x : array) { x += 23; }
  2344. }
  2345. {
  2346. // Test lambda expressions
  2347. using cxx11test::eval;
  2348. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2349. double d = 2.0;
  2350. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2351. assert (d == 5.0);
  2352. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2353. assert (d == 5.0);
  2354. }
  2355. {
  2356. // Test use of variadic templates
  2357. using cxx11test::sum;
  2358. auto a = sum(1);
  2359. auto b = sum(1, 2);
  2360. auto c = sum(1.0, 2.0, 3.0);
  2361. }
  2362. {
  2363. // Test constructor delegation
  2364. cxx11test::delegate d1;
  2365. cxx11test::delegate d2();
  2366. cxx11test::delegate d3(45);
  2367. }
  2368. {
  2369. // Test override and final
  2370. cxx11test::overridden o1(55464);
  2371. }
  2372. {
  2373. // Test nullptr
  2374. char *c = nullptr;
  2375. }
  2376. {
  2377. // Test template brackets
  2378. test_template<::test_template<int>> v(test_template<int>(12));
  2379. }
  2380. {
  2381. // Unicode literals
  2382. char const *utf8 = u8"UTF-8 string \u2500";
  2383. char16_t const *utf16 = u"UTF-8 string \u2500";
  2384. char32_t const *utf32 = U"UTF-32 string \u2500";
  2385. }
  2386. '
  2387. # Test code for whether the C compiler supports C++11 (complete).
  2388. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2389. ${ac_cxx_conftest_cxx11_globals}
  2390. int
  2391. main (int argc, char **argv)
  2392. {
  2393. int ok = 0;
  2394. ${ac_cxx_conftest_cxx98_main}
  2395. ${ac_cxx_conftest_cxx11_main}
  2396. return ok;
  2397. }
  2398. "
  2399. # Test code for whether the C compiler supports C++98 (complete).
  2400. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2401. int
  2402. main (int argc, char **argv)
  2403. {
  2404. int ok = 0;
  2405. ${ac_cxx_conftest_cxx98_main}
  2406. return ok;
  2407. }
  2408. "
  2409. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2410. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2411. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2412. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2413. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2414. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2415. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2416. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2417. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2418. # Auxiliary files required by this configure script.
  2419. ac_aux_files="compile ar-lib missing install-sh config.guess config.sub"
  2420. # Locations in which to look for auxiliary files.
  2421. ac_aux_dir_candidates="${srcdir}/autotools"
  2422. # Search for a directory containing all of the required auxiliary files,
  2423. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2424. # If we don't find one directory that contains all the files we need,
  2425. # we report the set of missing files from the *first* directory in
  2426. # $ac_aux_dir_candidates and give up.
  2427. ac_missing_aux_files=""
  2428. ac_first_candidate=:
  2429. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2431. as_found=false
  2432. for as_dir in $ac_aux_dir_candidates
  2433. do
  2434. IFS=$as_save_IFS
  2435. case $as_dir in #(((
  2436. '') as_dir=./ ;;
  2437. */) ;;
  2438. *) as_dir=$as_dir/ ;;
  2439. esac
  2440. as_found=:
  2441. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2442. ac_aux_dir_found=yes
  2443. ac_install_sh=
  2444. for ac_aux in $ac_aux_files
  2445. do
  2446. # As a special case, if "install-sh" is required, that requirement
  2447. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  2448. # and $ac_install_sh is set appropriately for whichever one is found.
  2449. if test x"$ac_aux" = x"install-sh"
  2450. then
  2451. if test -f "${as_dir}install-sh"; then
  2452. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  2453. ac_install_sh="${as_dir}install-sh -c"
  2454. elif test -f "${as_dir}install.sh"; then
  2455. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  2456. ac_install_sh="${as_dir}install.sh -c"
  2457. elif test -f "${as_dir}shtool"; then
  2458. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  2459. ac_install_sh="${as_dir}shtool install -c"
  2460. else
  2461. ac_aux_dir_found=no
  2462. if $ac_first_candidate; then
  2463. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  2464. else
  2465. break
  2466. fi
  2467. fi
  2468. else
  2469. if test -f "${as_dir}${ac_aux}"; then
  2470. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  2471. else
  2472. ac_aux_dir_found=no
  2473. if $ac_first_candidate; then
  2474. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  2475. else
  2476. break
  2477. fi
  2478. fi
  2479. fi
  2480. done
  2481. if test "$ac_aux_dir_found" = yes; then
  2482. ac_aux_dir="$as_dir"
  2483. break
  2484. fi
  2485. ac_first_candidate=false
  2486. as_found=false
  2487. done
  2488. IFS=$as_save_IFS
  2489. if $as_found
  2490. then :
  2491. else $as_nop
  2492. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  2493. fi
  2494. # These three variables are undocumented and unsupported,
  2495. # and are intended to be withdrawn in a future Autoconf release.
  2496. # They can cause serious problems if a builder's source tree is in a directory
  2497. # whose full name contains unusual characters.
  2498. if test -f "${ac_aux_dir}config.guess"; then
  2499. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  2500. fi
  2501. if test -f "${ac_aux_dir}config.sub"; then
  2502. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  2503. fi
  2504. if test -f "$ac_aux_dir/configure"; then
  2505. ac_configure="$SHELL ${ac_aux_dir}configure"
  2506. fi
  2507. # Check that the precious variables saved in the cache have kept the same
  2508. # value.
  2509. ac_cache_corrupted=false
  2510. for ac_var in $ac_precious_vars; do
  2511. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2512. eval ac_new_set=\$ac_env_${ac_var}_set
  2513. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2514. eval ac_new_val=\$ac_env_${ac_var}_value
  2515. case $ac_old_set,$ac_new_set in
  2516. set,)
  2517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2518. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2519. ac_cache_corrupted=: ;;
  2520. ,set)
  2521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2522. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2523. ac_cache_corrupted=: ;;
  2524. ,);;
  2525. *)
  2526. if test "x$ac_old_val" != "x$ac_new_val"; then
  2527. # differences in whitespace do not lead to failure.
  2528. ac_old_val_w=`echo x $ac_old_val`
  2529. ac_new_val_w=`echo x $ac_new_val`
  2530. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2532. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2533. ac_cache_corrupted=:
  2534. else
  2535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2536. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2537. eval $ac_var=\$ac_old_val
  2538. fi
  2539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2540. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  2541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2542. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  2543. fi;;
  2544. esac
  2545. # Pass precious variables to config.status.
  2546. if test "$ac_new_set" = set; then
  2547. case $ac_new_val in
  2548. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2549. *) ac_arg=$ac_var=$ac_new_val ;;
  2550. esac
  2551. case " $ac_configure_args " in
  2552. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2553. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2554. esac
  2555. fi
  2556. done
  2557. if $ac_cache_corrupted; then
  2558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2559. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2561. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  2562. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  2563. and start over" "$LINENO" 5
  2564. fi
  2565. ## -------------------- ##
  2566. ## Main body of script. ##
  2567. ## -------------------- ##
  2568. ac_ext=c
  2569. ac_cpp='$CPP $CPPFLAGS'
  2570. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2571. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2572. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2573. # Make sure we can run config.sub.
  2574. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  2575. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  2576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2577. printf %s "checking build system type... " >&6; }
  2578. if test ${ac_cv_build+y}
  2579. then :
  2580. printf %s "(cached) " >&6
  2581. else $as_nop
  2582. ac_build_alias=$build_alias
  2583. test "x$ac_build_alias" = x &&
  2584. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  2585. test "x$ac_build_alias" = x &&
  2586. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2587. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  2588. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  2589. fi
  2590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2591. printf "%s\n" "$ac_cv_build" >&6; }
  2592. case $ac_cv_build in
  2593. *-*-*) ;;
  2594. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2595. esac
  2596. build=$ac_cv_build
  2597. ac_save_IFS=$IFS; IFS='-'
  2598. set x $ac_cv_build
  2599. shift
  2600. build_cpu=$1
  2601. build_vendor=$2
  2602. shift; shift
  2603. # Remember, the first character of IFS is used to create $*,
  2604. # except with old shells:
  2605. build_os=$*
  2606. IFS=$ac_save_IFS
  2607. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2609. printf %s "checking host system type... " >&6; }
  2610. if test ${ac_cv_host+y}
  2611. then :
  2612. printf %s "(cached) " >&6
  2613. else $as_nop
  2614. if test "x$host_alias" = x; then
  2615. ac_cv_host=$ac_cv_build
  2616. else
  2617. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  2618. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  2619. fi
  2620. fi
  2621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2622. printf "%s\n" "$ac_cv_host" >&6; }
  2623. case $ac_cv_host in
  2624. *-*-*) ;;
  2625. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2626. esac
  2627. host=$ac_cv_host
  2628. ac_save_IFS=$IFS; IFS='-'
  2629. set x $ac_cv_host
  2630. shift
  2631. host_cpu=$1
  2632. host_vendor=$2
  2633. shift; shift
  2634. # Remember, the first character of IFS is used to create $*,
  2635. # except with old shells:
  2636. host_os=$*
  2637. IFS=$ac_save_IFS
  2638. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2639. am__api_version='1.16'
  2640. # Find a good install program. We prefer a C program (faster),
  2641. # so one script is as good as another. But avoid the broken or
  2642. # incompatible versions:
  2643. # SysV /etc/install, /usr/sbin/install
  2644. # SunOS /usr/etc/install
  2645. # IRIX /sbin/install
  2646. # AIX /bin/install
  2647. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2648. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2649. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2650. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2651. # OS/2's system install, which has a completely different semantic
  2652. # ./install, which can be erroneously created by make from ./install.sh.
  2653. # Reject install programs that cannot install multiple files.
  2654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2655. printf %s "checking for a BSD-compatible install... " >&6; }
  2656. if test -z "$INSTALL"; then
  2657. if test ${ac_cv_path_install+y}
  2658. then :
  2659. printf %s "(cached) " >&6
  2660. else $as_nop
  2661. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2662. for as_dir in $PATH
  2663. do
  2664. IFS=$as_save_IFS
  2665. case $as_dir in #(((
  2666. '') as_dir=./ ;;
  2667. */) ;;
  2668. *) as_dir=$as_dir/ ;;
  2669. esac
  2670. # Account for fact that we put trailing slashes in our PATH walk.
  2671. case $as_dir in #((
  2672. ./ | /[cC]/* | \
  2673. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2674. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2675. /usr/ucb/* ) ;;
  2676. *)
  2677. # OSF1 and SCO ODT 3.0 have their own names for install.
  2678. # Don't use installbsd from OSF since it installs stuff as root
  2679. # by default.
  2680. for ac_prog in ginstall scoinst install; do
  2681. for ac_exec_ext in '' $ac_executable_extensions; do
  2682. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  2683. if test $ac_prog = install &&
  2684. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2685. # AIX install. It has an incompatible calling convention.
  2686. :
  2687. elif test $ac_prog = install &&
  2688. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2689. # program-specific install script used by HP pwplus--don't use.
  2690. :
  2691. else
  2692. rm -rf conftest.one conftest.two conftest.dir
  2693. echo one > conftest.one
  2694. echo two > conftest.two
  2695. mkdir conftest.dir
  2696. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  2697. test -s conftest.one && test -s conftest.two &&
  2698. test -s conftest.dir/conftest.one &&
  2699. test -s conftest.dir/conftest.two
  2700. then
  2701. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  2702. break 3
  2703. fi
  2704. fi
  2705. fi
  2706. done
  2707. done
  2708. ;;
  2709. esac
  2710. done
  2711. IFS=$as_save_IFS
  2712. rm -rf conftest.one conftest.two conftest.dir
  2713. fi
  2714. if test ${ac_cv_path_install+y}; then
  2715. INSTALL=$ac_cv_path_install
  2716. else
  2717. # As a last resort, use the slow shell script. Don't cache a
  2718. # value for INSTALL within a source directory, because that will
  2719. # break other packages using the cache if that directory is
  2720. # removed, or if the value is a relative name.
  2721. INSTALL=$ac_install_sh
  2722. fi
  2723. fi
  2724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2725. printf "%s\n" "$INSTALL" >&6; }
  2726. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2727. # It thinks the first close brace ends the variable substitution.
  2728. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2729. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2730. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2732. printf %s "checking whether build environment is sane... " >&6; }
  2733. # Reject unsafe characters in $srcdir or the absolute working directory
  2734. # name. Accept space and tab only in the latter.
  2735. am_lf='
  2736. '
  2737. case `pwd` in
  2738. *[\\\"\#\$\&\'\`$am_lf]*)
  2739. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2740. esac
  2741. case $srcdir in
  2742. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2743. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2744. esac
  2745. # Do 'set' in a subshell so we don't clobber the current shell's
  2746. # arguments. Must try -L first in case configure is actually a
  2747. # symlink; some systems play weird games with the mod time of symlinks
  2748. # (eg FreeBSD returns the mod time of the symlink's containing
  2749. # directory).
  2750. if (
  2751. am_has_slept=no
  2752. for am_try in 1 2; do
  2753. echo "timestamp, slept: $am_has_slept" > conftest.file
  2754. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2755. if test "$*" = "X"; then
  2756. # -L didn't work.
  2757. set X `ls -t "$srcdir/configure" conftest.file`
  2758. fi
  2759. if test "$*" != "X $srcdir/configure conftest.file" \
  2760. && test "$*" != "X conftest.file $srcdir/configure"; then
  2761. # If neither matched, then we have a broken ls. This can happen
  2762. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2763. # broken ls alias from the environment. This has actually
  2764. # happened. Such a system could not be considered "sane".
  2765. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2766. alias in your environment" "$LINENO" 5
  2767. fi
  2768. if test "$2" = conftest.file || test $am_try -eq 2; then
  2769. break
  2770. fi
  2771. # Just in case.
  2772. sleep 1
  2773. am_has_slept=yes
  2774. done
  2775. test "$2" = conftest.file
  2776. )
  2777. then
  2778. # Ok.
  2779. :
  2780. else
  2781. as_fn_error $? "newly created file is older than distributed files!
  2782. Check your system clock" "$LINENO" 5
  2783. fi
  2784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2785. printf "%s\n" "yes" >&6; }
  2786. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2787. # generated files are strictly newer.
  2788. am_sleep_pid=
  2789. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2790. ( sleep 1 ) &
  2791. am_sleep_pid=$!
  2792. fi
  2793. rm -f conftest.file
  2794. test "$program_prefix" != NONE &&
  2795. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2796. # Use a double $ so make ignores it.
  2797. test "$program_suffix" != NONE &&
  2798. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2799. # Double any \ or $.
  2800. # By default was `s,x,x', remove it if useless.
  2801. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2802. program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
  2803. # Expand $ac_aux_dir to an absolute path.
  2804. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2805. if test x"${MISSING+set}" != xset; then
  2806. MISSING="\${SHELL} '$am_aux_dir/missing'"
  2807. fi
  2808. # Use eval to expand $SHELL
  2809. if eval "$MISSING --is-lightweight"; then
  2810. am_missing_run="$MISSING "
  2811. else
  2812. am_missing_run=
  2813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2814. printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2815. fi
  2816. if test x"${install_sh+set}" != xset; then
  2817. case $am_aux_dir in
  2818. *\ * | *\ *)
  2819. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2820. *)
  2821. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2822. esac
  2823. fi
  2824. # Installed binaries are usually stripped using 'strip' when the user
  2825. # run "make install-strip". However 'strip' might not be the right
  2826. # tool to use in cross-compilation environments, therefore Automake
  2827. # will honor the 'STRIP' environment variable to overrule this program.
  2828. if test "$cross_compiling" != no; then
  2829. if test -n "$ac_tool_prefix"; then
  2830. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2831. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2833. printf %s "checking for $ac_word... " >&6; }
  2834. if test ${ac_cv_prog_STRIP+y}
  2835. then :
  2836. printf %s "(cached) " >&6
  2837. else $as_nop
  2838. if test -n "$STRIP"; then
  2839. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2840. else
  2841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2842. for as_dir in $PATH
  2843. do
  2844. IFS=$as_save_IFS
  2845. case $as_dir in #(((
  2846. '') as_dir=./ ;;
  2847. */) ;;
  2848. *) as_dir=$as_dir/ ;;
  2849. esac
  2850. for ac_exec_ext in '' $ac_executable_extensions; do
  2851. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2852. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2853. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2854. break 2
  2855. fi
  2856. done
  2857. done
  2858. IFS=$as_save_IFS
  2859. fi
  2860. fi
  2861. STRIP=$ac_cv_prog_STRIP
  2862. if test -n "$STRIP"; then
  2863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2864. printf "%s\n" "$STRIP" >&6; }
  2865. else
  2866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2867. printf "%s\n" "no" >&6; }
  2868. fi
  2869. fi
  2870. if test -z "$ac_cv_prog_STRIP"; then
  2871. ac_ct_STRIP=$STRIP
  2872. # Extract the first word of "strip", so it can be a program name with args.
  2873. set dummy strip; ac_word=$2
  2874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2875. printf %s "checking for $ac_word... " >&6; }
  2876. if test ${ac_cv_prog_ac_ct_STRIP+y}
  2877. then :
  2878. printf %s "(cached) " >&6
  2879. else $as_nop
  2880. if test -n "$ac_ct_STRIP"; then
  2881. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2882. else
  2883. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2884. for as_dir in $PATH
  2885. do
  2886. IFS=$as_save_IFS
  2887. case $as_dir in #(((
  2888. '') as_dir=./ ;;
  2889. */) ;;
  2890. *) as_dir=$as_dir/ ;;
  2891. esac
  2892. for ac_exec_ext in '' $ac_executable_extensions; do
  2893. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2894. ac_cv_prog_ac_ct_STRIP="strip"
  2895. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2896. break 2
  2897. fi
  2898. done
  2899. done
  2900. IFS=$as_save_IFS
  2901. fi
  2902. fi
  2903. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2904. if test -n "$ac_ct_STRIP"; then
  2905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2906. printf "%s\n" "$ac_ct_STRIP" >&6; }
  2907. else
  2908. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2909. printf "%s\n" "no" >&6; }
  2910. fi
  2911. if test "x$ac_ct_STRIP" = x; then
  2912. STRIP=":"
  2913. else
  2914. case $cross_compiling:$ac_tool_warned in
  2915. yes:)
  2916. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2917. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2918. ac_tool_warned=yes ;;
  2919. esac
  2920. STRIP=$ac_ct_STRIP
  2921. fi
  2922. else
  2923. STRIP="$ac_cv_prog_STRIP"
  2924. fi
  2925. fi
  2926. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
  2928. printf %s "checking for a race-free mkdir -p... " >&6; }
  2929. if test -z "$MKDIR_P"; then
  2930. if test ${ac_cv_path_mkdir+y}
  2931. then :
  2932. printf %s "(cached) " >&6
  2933. else $as_nop
  2934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2935. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2936. do
  2937. IFS=$as_save_IFS
  2938. case $as_dir in #(((
  2939. '') as_dir=./ ;;
  2940. */) ;;
  2941. *) as_dir=$as_dir/ ;;
  2942. esac
  2943. for ac_prog in mkdir gmkdir; do
  2944. for ac_exec_ext in '' $ac_executable_extensions; do
  2945. as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
  2946. case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2947. 'mkdir ('*'coreutils) '* | \
  2948. 'BusyBox '* | \
  2949. 'mkdir (fileutils) '4.1*)
  2950. ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
  2951. break 3;;
  2952. esac
  2953. done
  2954. done
  2955. done
  2956. IFS=$as_save_IFS
  2957. fi
  2958. test -d ./--version && rmdir ./--version
  2959. if test ${ac_cv_path_mkdir+y}; then
  2960. MKDIR_P="$ac_cv_path_mkdir -p"
  2961. else
  2962. # As a last resort, use the slow shell script. Don't cache a
  2963. # value for MKDIR_P within a source directory, because that will
  2964. # break other packages using the cache if that directory is
  2965. # removed, or if the value is a relative name.
  2966. MKDIR_P="$ac_install_sh -d"
  2967. fi
  2968. fi
  2969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2970. printf "%s\n" "$MKDIR_P" >&6; }
  2971. for ac_prog in gawk mawk nawk awk
  2972. do
  2973. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2974. set dummy $ac_prog; ac_word=$2
  2975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2976. printf %s "checking for $ac_word... " >&6; }
  2977. if test ${ac_cv_prog_AWK+y}
  2978. then :
  2979. printf %s "(cached) " >&6
  2980. else $as_nop
  2981. if test -n "$AWK"; then
  2982. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2983. else
  2984. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2985. for as_dir in $PATH
  2986. do
  2987. IFS=$as_save_IFS
  2988. case $as_dir in #(((
  2989. '') as_dir=./ ;;
  2990. */) ;;
  2991. *) as_dir=$as_dir/ ;;
  2992. esac
  2993. for ac_exec_ext in '' $ac_executable_extensions; do
  2994. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2995. ac_cv_prog_AWK="$ac_prog"
  2996. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2997. break 2
  2998. fi
  2999. done
  3000. done
  3001. IFS=$as_save_IFS
  3002. fi
  3003. fi
  3004. AWK=$ac_cv_prog_AWK
  3005. if test -n "$AWK"; then
  3006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3007. printf "%s\n" "$AWK" >&6; }
  3008. else
  3009. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3010. printf "%s\n" "no" >&6; }
  3011. fi
  3012. test -n "$AWK" && break
  3013. done
  3014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3015. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3016. set x ${MAKE-make}
  3017. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3018. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  3019. then :
  3020. printf %s "(cached) " >&6
  3021. else $as_nop
  3022. cat >conftest.make <<\_ACEOF
  3023. SHELL = /bin/sh
  3024. all:
  3025. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3026. _ACEOF
  3027. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3028. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3029. *@@@%%%=?*=@@@%%%*)
  3030. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3031. *)
  3032. eval ac_cv_prog_make_${ac_make}_set=no;;
  3033. esac
  3034. rm -f conftest.make
  3035. fi
  3036. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3038. printf "%s\n" "yes" >&6; }
  3039. SET_MAKE=
  3040. else
  3041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3042. printf "%s\n" "no" >&6; }
  3043. SET_MAKE="MAKE=${MAKE-make}"
  3044. fi
  3045. rm -rf .tst 2>/dev/null
  3046. mkdir .tst 2>/dev/null
  3047. if test -d .tst; then
  3048. am__leading_dot=.
  3049. else
  3050. am__leading_dot=_
  3051. fi
  3052. rmdir .tst 2>/dev/null
  3053. # Check whether --enable-silent-rules was given.
  3054. if test ${enable_silent_rules+y}
  3055. then :
  3056. enableval=$enable_silent_rules;
  3057. fi
  3058. case $enable_silent_rules in # (((
  3059. yes) AM_DEFAULT_VERBOSITY=0;;
  3060. no) AM_DEFAULT_VERBOSITY=1;;
  3061. *) AM_DEFAULT_VERBOSITY=1;;
  3062. esac
  3063. am_make=${MAKE-make}
  3064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3065. printf %s "checking whether $am_make supports nested variables... " >&6; }
  3066. if test ${am_cv_make_support_nested_variables+y}
  3067. then :
  3068. printf %s "(cached) " >&6
  3069. else $as_nop
  3070. if printf "%s\n" 'TRUE=$(BAR$(V))
  3071. BAR0=false
  3072. BAR1=true
  3073. V=1
  3074. am__doit:
  3075. @$(TRUE)
  3076. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3077. am_cv_make_support_nested_variables=yes
  3078. else
  3079. am_cv_make_support_nested_variables=no
  3080. fi
  3081. fi
  3082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3083. printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
  3084. if test $am_cv_make_support_nested_variables = yes; then
  3085. AM_V='$(V)'
  3086. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3087. else
  3088. AM_V=$AM_DEFAULT_VERBOSITY
  3089. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3090. fi
  3091. AM_BACKSLASH='\'
  3092. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3093. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3094. # is not polluted with repeated "-I."
  3095. am__isrc=' -I$(srcdir)'
  3096. # test to see if srcdir already configured
  3097. if test -f $srcdir/config.status; then
  3098. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3099. fi
  3100. fi
  3101. # test whether we have cygpath
  3102. if test -z "$CYGPATH_W"; then
  3103. if (cygpath --version) >/dev/null 2>/dev/null; then
  3104. CYGPATH_W='cygpath -w'
  3105. else
  3106. CYGPATH_W=echo
  3107. fi
  3108. fi
  3109. # Define the identity of the package.
  3110. PACKAGE='breakpad'
  3111. VERSION='0.1'
  3112. printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
  3113. printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
  3114. # Some tools Automake needs.
  3115. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3116. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3117. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3118. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3119. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3120. # For better backward compatibility. To be removed once Automake 1.9.x
  3121. # dies out for good. For more background, see:
  3122. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3123. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3124. mkdir_p='$(MKDIR_P)'
  3125. # We need awk for the "check" target (and possibly the TAP driver). The
  3126. # system "awk" is bad on some platforms.
  3127. # Always define AMTAR for backward compatibility. Yes, it's still used
  3128. # in the wild :-( We should find a proper way to deprecate it ...
  3129. AMTAR='$${TAR-tar}'
  3130. # We'll loop over all known methods to create a tar archive until one works.
  3131. _am_tools='gnutar plaintar pax cpio none'
  3132. # The POSIX 1988 'ustar' format is defined with fixed-size fields.
  3133. # There is notably a 21 bits limit for the UID and the GID. In fact,
  3134. # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
  3135. # and bug#13588).
  3136. am_max_uid=2097151 # 2^21 - 1
  3137. am_max_gid=$am_max_uid
  3138. # The $UID and $GID variables are not portable, so we need to resort
  3139. # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
  3140. # below are definitely unexpected, so allow the users to see them
  3141. # (that is, avoid stderr redirection).
  3142. am_uid=`id -u || echo unknown`
  3143. am_gid=`id -g || echo unknown`
  3144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
  3145. printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
  3146. if test $am_uid -le $am_max_uid; then
  3147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3148. printf "%s\n" "yes" >&6; }
  3149. else
  3150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3151. printf "%s\n" "no" >&6; }
  3152. _am_tools=none
  3153. fi
  3154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
  3155. printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
  3156. if test $am_gid -le $am_max_gid; then
  3157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3158. printf "%s\n" "yes" >&6; }
  3159. else
  3160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3161. printf "%s\n" "no" >&6; }
  3162. _am_tools=none
  3163. fi
  3164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
  3165. printf %s "checking how to create a ustar tar archive... " >&6; }
  3166. # Go ahead even if we have the value already cached. We do so because we
  3167. # need to set the values for the 'am__tar' and 'am__untar' variables.
  3168. _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
  3169. for _am_tool in $_am_tools; do
  3170. case $_am_tool in
  3171. gnutar)
  3172. for _am_tar in tar gnutar gtar; do
  3173. { echo "$as_me:$LINENO: $_am_tar --version" >&5
  3174. ($_am_tar --version) >&5 2>&5
  3175. ac_status=$?
  3176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3177. (exit $ac_status); } && break
  3178. done
  3179. am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
  3180. am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
  3181. am__untar="$_am_tar -xf -"
  3182. ;;
  3183. plaintar)
  3184. # Must skip GNU tar: if it does not support --format= it doesn't create
  3185. # ustar tarball either.
  3186. (tar --version) >/dev/null 2>&1 && continue
  3187. am__tar='tar chf - "$$tardir"'
  3188. am__tar_='tar chf - "$tardir"'
  3189. am__untar='tar xf -'
  3190. ;;
  3191. pax)
  3192. am__tar='pax -L -x ustar -w "$$tardir"'
  3193. am__tar_='pax -L -x ustar -w "$tardir"'
  3194. am__untar='pax -r'
  3195. ;;
  3196. cpio)
  3197. am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
  3198. am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
  3199. am__untar='cpio -i -H ustar -d'
  3200. ;;
  3201. none)
  3202. am__tar=false
  3203. am__tar_=false
  3204. am__untar=false
  3205. ;;
  3206. esac
  3207. # If the value was cached, stop now. We just wanted to have am__tar
  3208. # and am__untar set.
  3209. test -n "${am_cv_prog_tar_ustar}" && break
  3210. # tar/untar a dummy directory, and stop if the command works.
  3211. rm -rf conftest.dir
  3212. mkdir conftest.dir
  3213. echo GrepMe > conftest.dir/file
  3214. { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
  3215. (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
  3216. ac_status=$?
  3217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3218. (exit $ac_status); }
  3219. rm -rf conftest.dir
  3220. if test -s conftest.tar; then
  3221. { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
  3222. ($am__untar <conftest.tar) >&5 2>&5
  3223. ac_status=$?
  3224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3225. (exit $ac_status); }
  3226. { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
  3227. (cat conftest.dir/file) >&5 2>&5
  3228. ac_status=$?
  3229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3230. (exit $ac_status); }
  3231. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  3232. fi
  3233. done
  3234. rm -rf conftest.dir
  3235. if test ${am_cv_prog_tar_ustar+y}
  3236. then :
  3237. printf %s "(cached) " >&6
  3238. else $as_nop
  3239. am_cv_prog_tar_ustar=$_am_tool
  3240. fi
  3241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
  3242. printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
  3243. # Variables for tags utilities; see am/tags.am
  3244. if test -z "$CTAGS"; then
  3245. CTAGS=ctags
  3246. fi
  3247. if test -z "$ETAGS"; then
  3248. ETAGS=etags
  3249. fi
  3250. if test -z "$CSCOPE"; then
  3251. CSCOPE=cscope
  3252. fi
  3253. # POSIX will say in a future version that running "rm -f" with no argument
  3254. # is OK; and we want to be able to make that assumption in our Makefile
  3255. # recipes. So use an aggressive probe to check that the usage we want is
  3256. # actually supported "in the wild" to an acceptable degree.
  3257. # See automake bug#10828.
  3258. # To make any issue more visible, cause the running configure to be aborted
  3259. # by default if the 'rm' program in use doesn't match our expectations; the
  3260. # user can still override this though.
  3261. if rm -f && rm -fr && rm -rf; then : OK; else
  3262. cat >&2 <<'END'
  3263. Oops!
  3264. Your 'rm' program seems unable to run without file operands specified
  3265. on the command line, even when the '-f' option is present. This is contrary
  3266. to the behaviour of most rm programs out there, and not conforming with
  3267. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3268. Please tell bug-automake@gnu.org about your system, including the value
  3269. of your $PATH and any error possibly output before this message. This
  3270. can help us improve future automake versions.
  3271. END
  3272. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3273. echo 'Configuration will proceed anyway, since you have set the' >&2
  3274. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3275. echo >&2
  3276. else
  3277. cat >&2 <<'END'
  3278. Aborting the configuration process, to ensure you take notice of the issue.
  3279. You can download and install GNU coreutils to get an 'rm' implementation
  3280. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  3281. If you want to complete the configuration process using your problematic
  3282. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3283. to "yes", and re-run configure.
  3284. END
  3285. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3286. fi
  3287. fi
  3288. ac_config_headers="$ac_config_headers src/config.h"
  3289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3290. printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  3291. # Check whether --enable-maintainer-mode was given.
  3292. if test ${enable_maintainer_mode+y}
  3293. then :
  3294. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  3295. else $as_nop
  3296. USE_MAINTAINER_MODE=no
  3297. fi
  3298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  3299. printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
  3300. if test $USE_MAINTAINER_MODE = yes; then
  3301. MAINTAINER_MODE_TRUE=
  3302. MAINTAINER_MODE_FALSE='#'
  3303. else
  3304. MAINTAINER_MODE_TRUE='#'
  3305. MAINTAINER_MODE_FALSE=
  3306. fi
  3307. MAINT=$MAINTAINER_MODE_TRUE
  3308. DEPDIR="${am__leading_dot}deps"
  3309. ac_config_commands="$ac_config_commands depfiles"
  3310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  3311. printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
  3312. cat > confinc.mk << 'END'
  3313. am__doit:
  3314. @echo this is the am__doit target >confinc.out
  3315. .PHONY: am__doit
  3316. END
  3317. am__include="#"
  3318. am__quote=
  3319. # BSD make does it like this.
  3320. echo '.include "confinc.mk" # ignored' > confmf.BSD
  3321. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  3322. echo 'include confinc.mk # ignored' > confmf.GNU
  3323. _am_result=no
  3324. for s in GNU BSD; do
  3325. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  3326. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  3327. ac_status=$?
  3328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3329. (exit $ac_status); }
  3330. case $?:`cat confinc.out 2>/dev/null` in #(
  3331. '0:this is the am__doit target') :
  3332. case $s in #(
  3333. BSD) :
  3334. am__include='.include' am__quote='"' ;; #(
  3335. *) :
  3336. am__include='include' am__quote='' ;;
  3337. esac ;; #(
  3338. *) :
  3339. ;;
  3340. esac
  3341. if test "$am__include" != "#"; then
  3342. _am_result="yes ($s style)"
  3343. break
  3344. fi
  3345. done
  3346. rm -f confinc.* confmf.*
  3347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  3348. printf "%s\n" "${_am_result}" >&6; }
  3349. # Check whether --enable-dependency-tracking was given.
  3350. if test ${enable_dependency_tracking+y}
  3351. then :
  3352. enableval=$enable_dependency_tracking;
  3353. fi
  3354. if test "x$enable_dependency_tracking" != xno; then
  3355. am_depcomp="$ac_aux_dir/depcomp"
  3356. AMDEPBACKSLASH='\'
  3357. am__nodep='_no'
  3358. fi
  3359. if test "x$enable_dependency_tracking" != xno; then
  3360. AMDEP_TRUE=
  3361. AMDEP_FALSE='#'
  3362. else
  3363. AMDEP_TRUE='#'
  3364. AMDEP_FALSE=
  3365. fi
  3366. ac_ext=c
  3367. ac_cpp='$CPP $CPPFLAGS'
  3368. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3369. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3370. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3371. if test -n "$ac_tool_prefix"; then
  3372. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3373. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3375. printf %s "checking for $ac_word... " >&6; }
  3376. if test ${ac_cv_prog_CC+y}
  3377. then :
  3378. printf %s "(cached) " >&6
  3379. else $as_nop
  3380. if test -n "$CC"; then
  3381. ac_cv_prog_CC="$CC" # Let the user override the test.
  3382. else
  3383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3384. for as_dir in $PATH
  3385. do
  3386. IFS=$as_save_IFS
  3387. case $as_dir in #(((
  3388. '') as_dir=./ ;;
  3389. */) ;;
  3390. *) as_dir=$as_dir/ ;;
  3391. esac
  3392. for ac_exec_ext in '' $ac_executable_extensions; do
  3393. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3394. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3395. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3396. break 2
  3397. fi
  3398. done
  3399. done
  3400. IFS=$as_save_IFS
  3401. fi
  3402. fi
  3403. CC=$ac_cv_prog_CC
  3404. if test -n "$CC"; then
  3405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3406. printf "%s\n" "$CC" >&6; }
  3407. else
  3408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3409. printf "%s\n" "no" >&6; }
  3410. fi
  3411. fi
  3412. if test -z "$ac_cv_prog_CC"; then
  3413. ac_ct_CC=$CC
  3414. # Extract the first word of "gcc", so it can be a program name with args.
  3415. set dummy gcc; ac_word=$2
  3416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3417. printf %s "checking for $ac_word... " >&6; }
  3418. if test ${ac_cv_prog_ac_ct_CC+y}
  3419. then :
  3420. printf %s "(cached) " >&6
  3421. else $as_nop
  3422. if test -n "$ac_ct_CC"; then
  3423. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3424. else
  3425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3426. for as_dir in $PATH
  3427. do
  3428. IFS=$as_save_IFS
  3429. case $as_dir in #(((
  3430. '') as_dir=./ ;;
  3431. */) ;;
  3432. *) as_dir=$as_dir/ ;;
  3433. esac
  3434. for ac_exec_ext in '' $ac_executable_extensions; do
  3435. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3436. ac_cv_prog_ac_ct_CC="gcc"
  3437. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3438. break 2
  3439. fi
  3440. done
  3441. done
  3442. IFS=$as_save_IFS
  3443. fi
  3444. fi
  3445. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3446. if test -n "$ac_ct_CC"; then
  3447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3448. printf "%s\n" "$ac_ct_CC" >&6; }
  3449. else
  3450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3451. printf "%s\n" "no" >&6; }
  3452. fi
  3453. if test "x$ac_ct_CC" = x; then
  3454. CC=""
  3455. else
  3456. case $cross_compiling:$ac_tool_warned in
  3457. yes:)
  3458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3459. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3460. ac_tool_warned=yes ;;
  3461. esac
  3462. CC=$ac_ct_CC
  3463. fi
  3464. else
  3465. CC="$ac_cv_prog_CC"
  3466. fi
  3467. if test -z "$CC"; then
  3468. if test -n "$ac_tool_prefix"; then
  3469. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3470. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3472. printf %s "checking for $ac_word... " >&6; }
  3473. if test ${ac_cv_prog_CC+y}
  3474. then :
  3475. printf %s "(cached) " >&6
  3476. else $as_nop
  3477. if test -n "$CC"; then
  3478. ac_cv_prog_CC="$CC" # Let the user override the test.
  3479. else
  3480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3481. for as_dir in $PATH
  3482. do
  3483. IFS=$as_save_IFS
  3484. case $as_dir in #(((
  3485. '') as_dir=./ ;;
  3486. */) ;;
  3487. *) as_dir=$as_dir/ ;;
  3488. esac
  3489. for ac_exec_ext in '' $ac_executable_extensions; do
  3490. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3491. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3492. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3493. break 2
  3494. fi
  3495. done
  3496. done
  3497. IFS=$as_save_IFS
  3498. fi
  3499. fi
  3500. CC=$ac_cv_prog_CC
  3501. if test -n "$CC"; then
  3502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3503. printf "%s\n" "$CC" >&6; }
  3504. else
  3505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3506. printf "%s\n" "no" >&6; }
  3507. fi
  3508. fi
  3509. fi
  3510. if test -z "$CC"; then
  3511. # Extract the first word of "cc", so it can be a program name with args.
  3512. set dummy cc; ac_word=$2
  3513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3514. printf %s "checking for $ac_word... " >&6; }
  3515. if test ${ac_cv_prog_CC+y}
  3516. then :
  3517. printf %s "(cached) " >&6
  3518. else $as_nop
  3519. if test -n "$CC"; then
  3520. ac_cv_prog_CC="$CC" # Let the user override the test.
  3521. else
  3522. ac_prog_rejected=no
  3523. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3524. for as_dir in $PATH
  3525. do
  3526. IFS=$as_save_IFS
  3527. case $as_dir in #(((
  3528. '') as_dir=./ ;;
  3529. */) ;;
  3530. *) as_dir=$as_dir/ ;;
  3531. esac
  3532. for ac_exec_ext in '' $ac_executable_extensions; do
  3533. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3534. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3535. ac_prog_rejected=yes
  3536. continue
  3537. fi
  3538. ac_cv_prog_CC="cc"
  3539. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3540. break 2
  3541. fi
  3542. done
  3543. done
  3544. IFS=$as_save_IFS
  3545. if test $ac_prog_rejected = yes; then
  3546. # We found a bogon in the path, so make sure we never use it.
  3547. set dummy $ac_cv_prog_CC
  3548. shift
  3549. if test $# != 0; then
  3550. # We chose a different compiler from the bogus one.
  3551. # However, it has the same basename, so the bogon will be chosen
  3552. # first if we set CC to just the basename; use the full file name.
  3553. shift
  3554. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3555. fi
  3556. fi
  3557. fi
  3558. fi
  3559. CC=$ac_cv_prog_CC
  3560. if test -n "$CC"; then
  3561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3562. printf "%s\n" "$CC" >&6; }
  3563. else
  3564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3565. printf "%s\n" "no" >&6; }
  3566. fi
  3567. fi
  3568. if test -z "$CC"; then
  3569. if test -n "$ac_tool_prefix"; then
  3570. for ac_prog in cl.exe
  3571. do
  3572. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3573. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3575. printf %s "checking for $ac_word... " >&6; }
  3576. if test ${ac_cv_prog_CC+y}
  3577. then :
  3578. printf %s "(cached) " >&6
  3579. else $as_nop
  3580. if test -n "$CC"; then
  3581. ac_cv_prog_CC="$CC" # Let the user override the test.
  3582. else
  3583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3584. for as_dir in $PATH
  3585. do
  3586. IFS=$as_save_IFS
  3587. case $as_dir in #(((
  3588. '') as_dir=./ ;;
  3589. */) ;;
  3590. *) as_dir=$as_dir/ ;;
  3591. esac
  3592. for ac_exec_ext in '' $ac_executable_extensions; do
  3593. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3594. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3595. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3596. break 2
  3597. fi
  3598. done
  3599. done
  3600. IFS=$as_save_IFS
  3601. fi
  3602. fi
  3603. CC=$ac_cv_prog_CC
  3604. if test -n "$CC"; then
  3605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3606. printf "%s\n" "$CC" >&6; }
  3607. else
  3608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3609. printf "%s\n" "no" >&6; }
  3610. fi
  3611. test -n "$CC" && break
  3612. done
  3613. fi
  3614. if test -z "$CC"; then
  3615. ac_ct_CC=$CC
  3616. for ac_prog in cl.exe
  3617. do
  3618. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3619. set dummy $ac_prog; ac_word=$2
  3620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3621. printf %s "checking for $ac_word... " >&6; }
  3622. if test ${ac_cv_prog_ac_ct_CC+y}
  3623. then :
  3624. printf %s "(cached) " >&6
  3625. else $as_nop
  3626. if test -n "$ac_ct_CC"; then
  3627. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3628. else
  3629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3630. for as_dir in $PATH
  3631. do
  3632. IFS=$as_save_IFS
  3633. case $as_dir in #(((
  3634. '') as_dir=./ ;;
  3635. */) ;;
  3636. *) as_dir=$as_dir/ ;;
  3637. esac
  3638. for ac_exec_ext in '' $ac_executable_extensions; do
  3639. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3640. ac_cv_prog_ac_ct_CC="$ac_prog"
  3641. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3642. break 2
  3643. fi
  3644. done
  3645. done
  3646. IFS=$as_save_IFS
  3647. fi
  3648. fi
  3649. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3650. if test -n "$ac_ct_CC"; then
  3651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3652. printf "%s\n" "$ac_ct_CC" >&6; }
  3653. else
  3654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3655. printf "%s\n" "no" >&6; }
  3656. fi
  3657. test -n "$ac_ct_CC" && break
  3658. done
  3659. if test "x$ac_ct_CC" = x; then
  3660. CC=""
  3661. else
  3662. case $cross_compiling:$ac_tool_warned in
  3663. yes:)
  3664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3665. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3666. ac_tool_warned=yes ;;
  3667. esac
  3668. CC=$ac_ct_CC
  3669. fi
  3670. fi
  3671. fi
  3672. if test -z "$CC"; then
  3673. if test -n "$ac_tool_prefix"; then
  3674. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3675. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3677. printf %s "checking for $ac_word... " >&6; }
  3678. if test ${ac_cv_prog_CC+y}
  3679. then :
  3680. printf %s "(cached) " >&6
  3681. else $as_nop
  3682. if test -n "$CC"; then
  3683. ac_cv_prog_CC="$CC" # Let the user override the test.
  3684. else
  3685. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3686. for as_dir in $PATH
  3687. do
  3688. IFS=$as_save_IFS
  3689. case $as_dir in #(((
  3690. '') as_dir=./ ;;
  3691. */) ;;
  3692. *) as_dir=$as_dir/ ;;
  3693. esac
  3694. for ac_exec_ext in '' $ac_executable_extensions; do
  3695. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3696. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3697. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3698. break 2
  3699. fi
  3700. done
  3701. done
  3702. IFS=$as_save_IFS
  3703. fi
  3704. fi
  3705. CC=$ac_cv_prog_CC
  3706. if test -n "$CC"; then
  3707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3708. printf "%s\n" "$CC" >&6; }
  3709. else
  3710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3711. printf "%s\n" "no" >&6; }
  3712. fi
  3713. fi
  3714. if test -z "$ac_cv_prog_CC"; then
  3715. ac_ct_CC=$CC
  3716. # Extract the first word of "clang", so it can be a program name with args.
  3717. set dummy clang; ac_word=$2
  3718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3719. printf %s "checking for $ac_word... " >&6; }
  3720. if test ${ac_cv_prog_ac_ct_CC+y}
  3721. then :
  3722. printf %s "(cached) " >&6
  3723. else $as_nop
  3724. if test -n "$ac_ct_CC"; then
  3725. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3726. else
  3727. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3728. for as_dir in $PATH
  3729. do
  3730. IFS=$as_save_IFS
  3731. case $as_dir in #(((
  3732. '') as_dir=./ ;;
  3733. */) ;;
  3734. *) as_dir=$as_dir/ ;;
  3735. esac
  3736. for ac_exec_ext in '' $ac_executable_extensions; do
  3737. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3738. ac_cv_prog_ac_ct_CC="clang"
  3739. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3740. break 2
  3741. fi
  3742. done
  3743. done
  3744. IFS=$as_save_IFS
  3745. fi
  3746. fi
  3747. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3748. if test -n "$ac_ct_CC"; then
  3749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3750. printf "%s\n" "$ac_ct_CC" >&6; }
  3751. else
  3752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3753. printf "%s\n" "no" >&6; }
  3754. fi
  3755. if test "x$ac_ct_CC" = x; then
  3756. CC=""
  3757. else
  3758. case $cross_compiling:$ac_tool_warned in
  3759. yes:)
  3760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3761. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3762. ac_tool_warned=yes ;;
  3763. esac
  3764. CC=$ac_ct_CC
  3765. fi
  3766. else
  3767. CC="$ac_cv_prog_CC"
  3768. fi
  3769. fi
  3770. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3771. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3772. as_fn_error $? "no acceptable C compiler found in \$PATH
  3773. See \`config.log' for more details" "$LINENO" 5; }
  3774. # Provide some information about the compiler.
  3775. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3776. set X $ac_compile
  3777. ac_compiler=$2
  3778. for ac_option in --version -v -V -qversion -version; do
  3779. { { ac_try="$ac_compiler $ac_option >&5"
  3780. case "(($ac_try" in
  3781. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3782. *) ac_try_echo=$ac_try;;
  3783. esac
  3784. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3785. printf "%s\n" "$ac_try_echo"; } >&5
  3786. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3787. ac_status=$?
  3788. if test -s conftest.err; then
  3789. sed '10a\
  3790. ... rest of stderr output deleted ...
  3791. 10q' conftest.err >conftest.er1
  3792. cat conftest.er1 >&5
  3793. fi
  3794. rm -f conftest.er1 conftest.err
  3795. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3796. test $ac_status = 0; }
  3797. done
  3798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3799. /* end confdefs.h. */
  3800. int
  3801. main (void)
  3802. {
  3803. ;
  3804. return 0;
  3805. }
  3806. _ACEOF
  3807. ac_clean_files_save=$ac_clean_files
  3808. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3809. # Try to create an executable without -o first, disregard a.out.
  3810. # It will help us diagnose broken compilers, and finding out an intuition
  3811. # of exeext.
  3812. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3813. printf %s "checking whether the C compiler works... " >&6; }
  3814. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3815. # The possible output files:
  3816. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3817. ac_rmfiles=
  3818. for ac_file in $ac_files
  3819. do
  3820. case $ac_file in
  3821. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3822. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3823. esac
  3824. done
  3825. rm -f $ac_rmfiles
  3826. if { { ac_try="$ac_link_default"
  3827. case "(($ac_try" in
  3828. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3829. *) ac_try_echo=$ac_try;;
  3830. esac
  3831. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3832. printf "%s\n" "$ac_try_echo"; } >&5
  3833. (eval "$ac_link_default") 2>&5
  3834. ac_status=$?
  3835. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3836. test $ac_status = 0; }
  3837. then :
  3838. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3839. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3840. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3841. # so that the user can short-circuit this test for compilers unknown to
  3842. # Autoconf.
  3843. for ac_file in $ac_files ''
  3844. do
  3845. test -f "$ac_file" || continue
  3846. case $ac_file in
  3847. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3848. ;;
  3849. [ab].out )
  3850. # We found the default executable, but exeext='' is most
  3851. # certainly right.
  3852. break;;
  3853. *.* )
  3854. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3855. then :; else
  3856. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3857. fi
  3858. # We set ac_cv_exeext here because the later test for it is not
  3859. # safe: cross compilers may not add the suffix if given an `-o'
  3860. # argument, so we may need to know it at that point already.
  3861. # Even if this section looks crufty: it has the advantage of
  3862. # actually working.
  3863. break;;
  3864. * )
  3865. break;;
  3866. esac
  3867. done
  3868. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3869. else $as_nop
  3870. ac_file=''
  3871. fi
  3872. if test -z "$ac_file"
  3873. then :
  3874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3875. printf "%s\n" "no" >&6; }
  3876. printf "%s\n" "$as_me: failed program was:" >&5
  3877. sed 's/^/| /' conftest.$ac_ext >&5
  3878. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3879. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3880. as_fn_error 77 "C compiler cannot create executables
  3881. See \`config.log' for more details" "$LINENO" 5; }
  3882. else $as_nop
  3883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3884. printf "%s\n" "yes" >&6; }
  3885. fi
  3886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3887. printf %s "checking for C compiler default output file name... " >&6; }
  3888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3889. printf "%s\n" "$ac_file" >&6; }
  3890. ac_exeext=$ac_cv_exeext
  3891. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3892. ac_clean_files=$ac_clean_files_save
  3893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3894. printf %s "checking for suffix of executables... " >&6; }
  3895. if { { ac_try="$ac_link"
  3896. case "(($ac_try" in
  3897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3898. *) ac_try_echo=$ac_try;;
  3899. esac
  3900. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3901. printf "%s\n" "$ac_try_echo"; } >&5
  3902. (eval "$ac_link") 2>&5
  3903. ac_status=$?
  3904. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3905. test $ac_status = 0; }
  3906. then :
  3907. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3908. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3909. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3910. # `rm'.
  3911. for ac_file in conftest.exe conftest conftest.*; do
  3912. test -f "$ac_file" || continue
  3913. case $ac_file in
  3914. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3915. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3916. break;;
  3917. * ) break;;
  3918. esac
  3919. done
  3920. else $as_nop
  3921. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3922. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3923. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3924. See \`config.log' for more details" "$LINENO" 5; }
  3925. fi
  3926. rm -f conftest conftest$ac_cv_exeext
  3927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3928. printf "%s\n" "$ac_cv_exeext" >&6; }
  3929. rm -f conftest.$ac_ext
  3930. EXEEXT=$ac_cv_exeext
  3931. ac_exeext=$EXEEXT
  3932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3933. /* end confdefs.h. */
  3934. #include <stdio.h>
  3935. int
  3936. main (void)
  3937. {
  3938. FILE *f = fopen ("conftest.out", "w");
  3939. return ferror (f) || fclose (f) != 0;
  3940. ;
  3941. return 0;
  3942. }
  3943. _ACEOF
  3944. ac_clean_files="$ac_clean_files conftest.out"
  3945. # Check that the compiler produces executables we can run. If not, either
  3946. # the compiler is broken, or we cross compile.
  3947. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3948. printf %s "checking whether we are cross compiling... " >&6; }
  3949. if test "$cross_compiling" != yes; then
  3950. { { ac_try="$ac_link"
  3951. case "(($ac_try" in
  3952. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3953. *) ac_try_echo=$ac_try;;
  3954. esac
  3955. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3956. printf "%s\n" "$ac_try_echo"; } >&5
  3957. (eval "$ac_link") 2>&5
  3958. ac_status=$?
  3959. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3960. test $ac_status = 0; }
  3961. if { ac_try='./conftest$ac_cv_exeext'
  3962. { { case "(($ac_try" in
  3963. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3964. *) ac_try_echo=$ac_try;;
  3965. esac
  3966. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3967. printf "%s\n" "$ac_try_echo"; } >&5
  3968. (eval "$ac_try") 2>&5
  3969. ac_status=$?
  3970. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3971. test $ac_status = 0; }; }; then
  3972. cross_compiling=no
  3973. else
  3974. if test "$cross_compiling" = maybe; then
  3975. cross_compiling=yes
  3976. else
  3977. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3978. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3979. as_fn_error 77 "cannot run C compiled programs.
  3980. If you meant to cross compile, use \`--host'.
  3981. See \`config.log' for more details" "$LINENO" 5; }
  3982. fi
  3983. fi
  3984. fi
  3985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3986. printf "%s\n" "$cross_compiling" >&6; }
  3987. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3988. ac_clean_files=$ac_clean_files_save
  3989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3990. printf %s "checking for suffix of object files... " >&6; }
  3991. if test ${ac_cv_objext+y}
  3992. then :
  3993. printf %s "(cached) " >&6
  3994. else $as_nop
  3995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3996. /* end confdefs.h. */
  3997. int
  3998. main (void)
  3999. {
  4000. ;
  4001. return 0;
  4002. }
  4003. _ACEOF
  4004. rm -f conftest.o conftest.obj
  4005. if { { ac_try="$ac_compile"
  4006. case "(($ac_try" in
  4007. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4008. *) ac_try_echo=$ac_try;;
  4009. esac
  4010. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4011. printf "%s\n" "$ac_try_echo"; } >&5
  4012. (eval "$ac_compile") 2>&5
  4013. ac_status=$?
  4014. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4015. test $ac_status = 0; }
  4016. then :
  4017. for ac_file in conftest.o conftest.obj conftest.*; do
  4018. test -f "$ac_file" || continue;
  4019. case $ac_file in
  4020. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4021. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4022. break;;
  4023. esac
  4024. done
  4025. else $as_nop
  4026. printf "%s\n" "$as_me: failed program was:" >&5
  4027. sed 's/^/| /' conftest.$ac_ext >&5
  4028. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4029. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4030. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4031. See \`config.log' for more details" "$LINENO" 5; }
  4032. fi
  4033. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4034. fi
  4035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4036. printf "%s\n" "$ac_cv_objext" >&6; }
  4037. OBJEXT=$ac_cv_objext
  4038. ac_objext=$OBJEXT
  4039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  4040. printf %s "checking whether the compiler supports GNU C... " >&6; }
  4041. if test ${ac_cv_c_compiler_gnu+y}
  4042. then :
  4043. printf %s "(cached) " >&6
  4044. else $as_nop
  4045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4046. /* end confdefs.h. */
  4047. int
  4048. main (void)
  4049. {
  4050. #ifndef __GNUC__
  4051. choke me
  4052. #endif
  4053. ;
  4054. return 0;
  4055. }
  4056. _ACEOF
  4057. if ac_fn_c_try_compile "$LINENO"
  4058. then :
  4059. ac_compiler_gnu=yes
  4060. else $as_nop
  4061. ac_compiler_gnu=no
  4062. fi
  4063. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4064. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4065. fi
  4066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4067. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  4068. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4069. if test $ac_compiler_gnu = yes; then
  4070. GCC=yes
  4071. else
  4072. GCC=
  4073. fi
  4074. ac_test_CFLAGS=${CFLAGS+y}
  4075. ac_save_CFLAGS=$CFLAGS
  4076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4077. printf %s "checking whether $CC accepts -g... " >&6; }
  4078. if test ${ac_cv_prog_cc_g+y}
  4079. then :
  4080. printf %s "(cached) " >&6
  4081. else $as_nop
  4082. ac_save_c_werror_flag=$ac_c_werror_flag
  4083. ac_c_werror_flag=yes
  4084. ac_cv_prog_cc_g=no
  4085. CFLAGS="-g"
  4086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4087. /* end confdefs.h. */
  4088. int
  4089. main (void)
  4090. {
  4091. ;
  4092. return 0;
  4093. }
  4094. _ACEOF
  4095. if ac_fn_c_try_compile "$LINENO"
  4096. then :
  4097. ac_cv_prog_cc_g=yes
  4098. else $as_nop
  4099. CFLAGS=""
  4100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4101. /* end confdefs.h. */
  4102. int
  4103. main (void)
  4104. {
  4105. ;
  4106. return 0;
  4107. }
  4108. _ACEOF
  4109. if ac_fn_c_try_compile "$LINENO"
  4110. then :
  4111. else $as_nop
  4112. ac_c_werror_flag=$ac_save_c_werror_flag
  4113. CFLAGS="-g"
  4114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4115. /* end confdefs.h. */
  4116. int
  4117. main (void)
  4118. {
  4119. ;
  4120. return 0;
  4121. }
  4122. _ACEOF
  4123. if ac_fn_c_try_compile "$LINENO"
  4124. then :
  4125. ac_cv_prog_cc_g=yes
  4126. fi
  4127. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4128. fi
  4129. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4130. fi
  4131. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4132. ac_c_werror_flag=$ac_save_c_werror_flag
  4133. fi
  4134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4135. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4136. if test $ac_test_CFLAGS; then
  4137. CFLAGS=$ac_save_CFLAGS
  4138. elif test $ac_cv_prog_cc_g = yes; then
  4139. if test "$GCC" = yes; then
  4140. CFLAGS="-g -O2"
  4141. else
  4142. CFLAGS="-g"
  4143. fi
  4144. else
  4145. if test "$GCC" = yes; then
  4146. CFLAGS="-O2"
  4147. else
  4148. CFLAGS=
  4149. fi
  4150. fi
  4151. ac_prog_cc_stdc=no
  4152. if test x$ac_prog_cc_stdc = xno
  4153. then :
  4154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4155. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4156. if test ${ac_cv_prog_cc_c11+y}
  4157. then :
  4158. printf %s "(cached) " >&6
  4159. else $as_nop
  4160. ac_cv_prog_cc_c11=no
  4161. ac_save_CC=$CC
  4162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4163. /* end confdefs.h. */
  4164. $ac_c_conftest_c11_program
  4165. _ACEOF
  4166. for ac_arg in '' -std=gnu11
  4167. do
  4168. CC="$ac_save_CC $ac_arg"
  4169. if ac_fn_c_try_compile "$LINENO"
  4170. then :
  4171. ac_cv_prog_cc_c11=$ac_arg
  4172. fi
  4173. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4174. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4175. done
  4176. rm -f conftest.$ac_ext
  4177. CC=$ac_save_CC
  4178. fi
  4179. if test "x$ac_cv_prog_cc_c11" = xno
  4180. then :
  4181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4182. printf "%s\n" "unsupported" >&6; }
  4183. else $as_nop
  4184. if test "x$ac_cv_prog_cc_c11" = x
  4185. then :
  4186. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4187. printf "%s\n" "none needed" >&6; }
  4188. else $as_nop
  4189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4190. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4191. CC="$CC $ac_cv_prog_cc_c11"
  4192. fi
  4193. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4194. ac_prog_cc_stdc=c11
  4195. fi
  4196. fi
  4197. if test x$ac_prog_cc_stdc = xno
  4198. then :
  4199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4200. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4201. if test ${ac_cv_prog_cc_c99+y}
  4202. then :
  4203. printf %s "(cached) " >&6
  4204. else $as_nop
  4205. ac_cv_prog_cc_c99=no
  4206. ac_save_CC=$CC
  4207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4208. /* end confdefs.h. */
  4209. $ac_c_conftest_c99_program
  4210. _ACEOF
  4211. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4212. do
  4213. CC="$ac_save_CC $ac_arg"
  4214. if ac_fn_c_try_compile "$LINENO"
  4215. then :
  4216. ac_cv_prog_cc_c99=$ac_arg
  4217. fi
  4218. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4219. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4220. done
  4221. rm -f conftest.$ac_ext
  4222. CC=$ac_save_CC
  4223. fi
  4224. if test "x$ac_cv_prog_cc_c99" = xno
  4225. then :
  4226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4227. printf "%s\n" "unsupported" >&6; }
  4228. else $as_nop
  4229. if test "x$ac_cv_prog_cc_c99" = x
  4230. then :
  4231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4232. printf "%s\n" "none needed" >&6; }
  4233. else $as_nop
  4234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4235. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4236. CC="$CC $ac_cv_prog_cc_c99"
  4237. fi
  4238. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4239. ac_prog_cc_stdc=c99
  4240. fi
  4241. fi
  4242. if test x$ac_prog_cc_stdc = xno
  4243. then :
  4244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4245. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4246. if test ${ac_cv_prog_cc_c89+y}
  4247. then :
  4248. printf %s "(cached) " >&6
  4249. else $as_nop
  4250. ac_cv_prog_cc_c89=no
  4251. ac_save_CC=$CC
  4252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4253. /* end confdefs.h. */
  4254. $ac_c_conftest_c89_program
  4255. _ACEOF
  4256. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4257. do
  4258. CC="$ac_save_CC $ac_arg"
  4259. if ac_fn_c_try_compile "$LINENO"
  4260. then :
  4261. ac_cv_prog_cc_c89=$ac_arg
  4262. fi
  4263. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4264. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4265. done
  4266. rm -f conftest.$ac_ext
  4267. CC=$ac_save_CC
  4268. fi
  4269. if test "x$ac_cv_prog_cc_c89" = xno
  4270. then :
  4271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4272. printf "%s\n" "unsupported" >&6; }
  4273. else $as_nop
  4274. if test "x$ac_cv_prog_cc_c89" = x
  4275. then :
  4276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4277. printf "%s\n" "none needed" >&6; }
  4278. else $as_nop
  4279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4280. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4281. CC="$CC $ac_cv_prog_cc_c89"
  4282. fi
  4283. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4284. ac_prog_cc_stdc=c89
  4285. fi
  4286. fi
  4287. ac_ext=c
  4288. ac_cpp='$CPP $CPPFLAGS'
  4289. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4290. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4291. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4292. ac_ext=c
  4293. ac_cpp='$CPP $CPPFLAGS'
  4294. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4295. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4296. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4298. printf %s "checking whether $CC understands -c and -o together... " >&6; }
  4299. if test ${am_cv_prog_cc_c_o+y}
  4300. then :
  4301. printf %s "(cached) " >&6
  4302. else $as_nop
  4303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4304. /* end confdefs.h. */
  4305. int
  4306. main (void)
  4307. {
  4308. ;
  4309. return 0;
  4310. }
  4311. _ACEOF
  4312. # Make sure it works both with $CC and with simple cc.
  4313. # Following AC_PROG_CC_C_O, we do the test twice because some
  4314. # compilers refuse to overwrite an existing .o file with -o,
  4315. # though they will create one.
  4316. am_cv_prog_cc_c_o=yes
  4317. for am_i in 1 2; do
  4318. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4319. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4320. ac_status=$?
  4321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4322. (exit $ac_status); } \
  4323. && test -f conftest2.$ac_objext; then
  4324. : OK
  4325. else
  4326. am_cv_prog_cc_c_o=no
  4327. break
  4328. fi
  4329. done
  4330. rm -f core conftest*
  4331. unset am_i
  4332. fi
  4333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4334. printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
  4335. if test "$am_cv_prog_cc_c_o" != yes; then
  4336. # Losing compiler, so override with the script.
  4337. # FIXME: It is wrong to rewrite CC.
  4338. # But if we don't then we get into trouble of one sort or another.
  4339. # A longer-term fix would be to have automake use am__CC in this case,
  4340. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4341. CC="$am_aux_dir/compile $CC"
  4342. fi
  4343. ac_ext=c
  4344. ac_cpp='$CPP $CPPFLAGS'
  4345. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4346. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4347. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4348. depcc="$CC" am_compiler_list=
  4349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4350. printf %s "checking dependency style of $depcc... " >&6; }
  4351. if test ${am_cv_CC_dependencies_compiler_type+y}
  4352. then :
  4353. printf %s "(cached) " >&6
  4354. else $as_nop
  4355. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4356. # We make a subdir and do the tests there. Otherwise we can end up
  4357. # making bogus files that we don't know about and never remove. For
  4358. # instance it was reported that on HP-UX the gcc test will end up
  4359. # making a dummy file named 'D' -- because '-MD' means "put the output
  4360. # in D".
  4361. rm -rf conftest.dir
  4362. mkdir conftest.dir
  4363. # Copy depcomp to subdir because otherwise we won't find it if we're
  4364. # using a relative directory.
  4365. cp "$am_depcomp" conftest.dir
  4366. cd conftest.dir
  4367. # We will build objects and dependencies in a subdirectory because
  4368. # it helps to detect inapplicable dependency modes. For instance
  4369. # both Tru64's cc and ICC support -MD to output dependencies as a
  4370. # side effect of compilation, but ICC will put the dependencies in
  4371. # the current directory while Tru64 will put them in the object
  4372. # directory.
  4373. mkdir sub
  4374. am_cv_CC_dependencies_compiler_type=none
  4375. if test "$am_compiler_list" = ""; then
  4376. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4377. fi
  4378. am__universal=false
  4379. case " $depcc " in #(
  4380. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4381. esac
  4382. for depmode in $am_compiler_list; do
  4383. # Setup a source with many dependencies, because some compilers
  4384. # like to wrap large dependency lists on column 80 (with \), and
  4385. # we should not choose a depcomp mode which is confused by this.
  4386. #
  4387. # We need to recreate these files for each test, as the compiler may
  4388. # overwrite some of them when testing with obscure command lines.
  4389. # This happens at least with the AIX C compiler.
  4390. : > sub/conftest.c
  4391. for i in 1 2 3 4 5 6; do
  4392. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4393. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4394. # Solaris 10 /bin/sh.
  4395. echo '/* dummy */' > sub/conftst$i.h
  4396. done
  4397. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4398. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4399. # mode. It turns out that the SunPro C++ compiler does not properly
  4400. # handle '-M -o', and we need to detect this. Also, some Intel
  4401. # versions had trouble with output in subdirs.
  4402. am__obj=sub/conftest.${OBJEXT-o}
  4403. am__minus_obj="-o $am__obj"
  4404. case $depmode in
  4405. gcc)
  4406. # This depmode causes a compiler race in universal mode.
  4407. test "$am__universal" = false || continue
  4408. ;;
  4409. nosideeffect)
  4410. # After this tag, mechanisms are not by side-effect, so they'll
  4411. # only be used when explicitly requested.
  4412. if test "x$enable_dependency_tracking" = xyes; then
  4413. continue
  4414. else
  4415. break
  4416. fi
  4417. ;;
  4418. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4419. # This compiler won't grok '-c -o', but also, the minuso test has
  4420. # not run yet. These depmodes are late enough in the game, and
  4421. # so weak that their functioning should not be impacted.
  4422. am__obj=conftest.${OBJEXT-o}
  4423. am__minus_obj=
  4424. ;;
  4425. none) break ;;
  4426. esac
  4427. if depmode=$depmode \
  4428. source=sub/conftest.c object=$am__obj \
  4429. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4430. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4431. >/dev/null 2>conftest.err &&
  4432. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4433. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4434. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4435. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4436. # icc doesn't choke on unknown options, it will just issue warnings
  4437. # or remarks (even with -Werror). So we grep stderr for any message
  4438. # that says an option was ignored or not supported.
  4439. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4440. # icc: Command line warning: ignoring option '-M'; no argument required
  4441. # The diagnosis changed in icc 8.0:
  4442. # icc: Command line remark: option '-MP' not supported
  4443. if (grep 'ignoring option' conftest.err ||
  4444. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4445. am_cv_CC_dependencies_compiler_type=$depmode
  4446. break
  4447. fi
  4448. fi
  4449. done
  4450. cd ..
  4451. rm -rf conftest.dir
  4452. else
  4453. am_cv_CC_dependencies_compiler_type=none
  4454. fi
  4455. fi
  4456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4457. printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
  4458. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4459. if
  4460. test "x$enable_dependency_tracking" != xno \
  4461. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4462. am__fastdepCC_TRUE=
  4463. am__fastdepCC_FALSE='#'
  4464. else
  4465. am__fastdepCC_TRUE='#'
  4466. am__fastdepCC_FALSE=
  4467. fi
  4468. if test -n "$ac_tool_prefix"; then
  4469. for ac_prog in ar lib "link -lib"
  4470. do
  4471. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4472. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4474. printf %s "checking for $ac_word... " >&6; }
  4475. if test ${ac_cv_prog_AR+y}
  4476. then :
  4477. printf %s "(cached) " >&6
  4478. else $as_nop
  4479. if test -n "$AR"; then
  4480. ac_cv_prog_AR="$AR" # Let the user override the test.
  4481. else
  4482. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4483. for as_dir in $PATH
  4484. do
  4485. IFS=$as_save_IFS
  4486. case $as_dir in #(((
  4487. '') as_dir=./ ;;
  4488. */) ;;
  4489. *) as_dir=$as_dir/ ;;
  4490. esac
  4491. for ac_exec_ext in '' $ac_executable_extensions; do
  4492. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4493. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4494. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4495. break 2
  4496. fi
  4497. done
  4498. done
  4499. IFS=$as_save_IFS
  4500. fi
  4501. fi
  4502. AR=$ac_cv_prog_AR
  4503. if test -n "$AR"; then
  4504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4505. printf "%s\n" "$AR" >&6; }
  4506. else
  4507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4508. printf "%s\n" "no" >&6; }
  4509. fi
  4510. test -n "$AR" && break
  4511. done
  4512. fi
  4513. if test -z "$AR"; then
  4514. ac_ct_AR=$AR
  4515. for ac_prog in ar lib "link -lib"
  4516. do
  4517. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4518. set dummy $ac_prog; ac_word=$2
  4519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4520. printf %s "checking for $ac_word... " >&6; }
  4521. if test ${ac_cv_prog_ac_ct_AR+y}
  4522. then :
  4523. printf %s "(cached) " >&6
  4524. else $as_nop
  4525. if test -n "$ac_ct_AR"; then
  4526. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4527. else
  4528. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4529. for as_dir in $PATH
  4530. do
  4531. IFS=$as_save_IFS
  4532. case $as_dir in #(((
  4533. '') as_dir=./ ;;
  4534. */) ;;
  4535. *) as_dir=$as_dir/ ;;
  4536. esac
  4537. for ac_exec_ext in '' $ac_executable_extensions; do
  4538. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4539. ac_cv_prog_ac_ct_AR="$ac_prog"
  4540. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4541. break 2
  4542. fi
  4543. done
  4544. done
  4545. IFS=$as_save_IFS
  4546. fi
  4547. fi
  4548. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4549. if test -n "$ac_ct_AR"; then
  4550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4551. printf "%s\n" "$ac_ct_AR" >&6; }
  4552. else
  4553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4554. printf "%s\n" "no" >&6; }
  4555. fi
  4556. test -n "$ac_ct_AR" && break
  4557. done
  4558. if test "x$ac_ct_AR" = x; then
  4559. AR="false"
  4560. else
  4561. case $cross_compiling:$ac_tool_warned in
  4562. yes:)
  4563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4564. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4565. ac_tool_warned=yes ;;
  4566. esac
  4567. AR=$ac_ct_AR
  4568. fi
  4569. fi
  4570. : ${AR=ar}
  4571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  4572. printf %s "checking the archiver ($AR) interface... " >&6; }
  4573. if test ${am_cv_ar_interface+y}
  4574. then :
  4575. printf %s "(cached) " >&6
  4576. else $as_nop
  4577. ac_ext=c
  4578. ac_cpp='$CPP $CPPFLAGS'
  4579. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4580. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4581. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4582. am_cv_ar_interface=ar
  4583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4584. /* end confdefs.h. */
  4585. int some_variable = 0;
  4586. _ACEOF
  4587. if ac_fn_c_try_compile "$LINENO"
  4588. then :
  4589. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  4590. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4591. (eval $am_ar_try) 2>&5
  4592. ac_status=$?
  4593. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4594. test $ac_status = 0; }
  4595. if test "$ac_status" -eq 0; then
  4596. am_cv_ar_interface=ar
  4597. else
  4598. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  4599. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4600. (eval $am_ar_try) 2>&5
  4601. ac_status=$?
  4602. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4603. test $ac_status = 0; }
  4604. if test "$ac_status" -eq 0; then
  4605. am_cv_ar_interface=lib
  4606. else
  4607. am_cv_ar_interface=unknown
  4608. fi
  4609. fi
  4610. rm -f conftest.lib libconftest.a
  4611. fi
  4612. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4613. ac_ext=c
  4614. ac_cpp='$CPP $CPPFLAGS'
  4615. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4616. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4617. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4618. fi
  4619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  4620. printf "%s\n" "$am_cv_ar_interface" >&6; }
  4621. case $am_cv_ar_interface in
  4622. ar)
  4623. ;;
  4624. lib)
  4625. # Microsoft lib, so override with the ar-lib wrapper script.
  4626. # FIXME: It is wrong to rewrite AR.
  4627. # But if we don't then we get into trouble of one sort or another.
  4628. # A longer-term fix would be to have automake use am__AR in this case,
  4629. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  4630. # similar.
  4631. AR="$am_aux_dir/ar-lib $AR"
  4632. ;;
  4633. unknown)
  4634. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  4635. ;;
  4636. esac
  4637. # By default we simply use the C compiler to build assembly code.
  4638. test "${CCAS+set}" = set || CCAS=$CC
  4639. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  4640. depcc="$CCAS" am_compiler_list=
  4641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4642. printf %s "checking dependency style of $depcc... " >&6; }
  4643. if test ${am_cv_CCAS_dependencies_compiler_type+y}
  4644. then :
  4645. printf %s "(cached) " >&6
  4646. else $as_nop
  4647. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4648. # We make a subdir and do the tests there. Otherwise we can end up
  4649. # making bogus files that we don't know about and never remove. For
  4650. # instance it was reported that on HP-UX the gcc test will end up
  4651. # making a dummy file named 'D' -- because '-MD' means "put the output
  4652. # in D".
  4653. rm -rf conftest.dir
  4654. mkdir conftest.dir
  4655. # Copy depcomp to subdir because otherwise we won't find it if we're
  4656. # using a relative directory.
  4657. cp "$am_depcomp" conftest.dir
  4658. cd conftest.dir
  4659. # We will build objects and dependencies in a subdirectory because
  4660. # it helps to detect inapplicable dependency modes. For instance
  4661. # both Tru64's cc and ICC support -MD to output dependencies as a
  4662. # side effect of compilation, but ICC will put the dependencies in
  4663. # the current directory while Tru64 will put them in the object
  4664. # directory.
  4665. mkdir sub
  4666. am_cv_CCAS_dependencies_compiler_type=none
  4667. if test "$am_compiler_list" = ""; then
  4668. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4669. fi
  4670. am__universal=false
  4671. for depmode in $am_compiler_list; do
  4672. # Setup a source with many dependencies, because some compilers
  4673. # like to wrap large dependency lists on column 80 (with \), and
  4674. # we should not choose a depcomp mode which is confused by this.
  4675. #
  4676. # We need to recreate these files for each test, as the compiler may
  4677. # overwrite some of them when testing with obscure command lines.
  4678. # This happens at least with the AIX C compiler.
  4679. : > sub/conftest.c
  4680. for i in 1 2 3 4 5 6; do
  4681. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4682. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4683. # Solaris 10 /bin/sh.
  4684. echo '/* dummy */' > sub/conftst$i.h
  4685. done
  4686. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4687. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4688. # mode. It turns out that the SunPro C++ compiler does not properly
  4689. # handle '-M -o', and we need to detect this. Also, some Intel
  4690. # versions had trouble with output in subdirs.
  4691. am__obj=sub/conftest.${OBJEXT-o}
  4692. am__minus_obj="-o $am__obj"
  4693. case $depmode in
  4694. gcc)
  4695. # This depmode causes a compiler race in universal mode.
  4696. test "$am__universal" = false || continue
  4697. ;;
  4698. nosideeffect)
  4699. # After this tag, mechanisms are not by side-effect, so they'll
  4700. # only be used when explicitly requested.
  4701. if test "x$enable_dependency_tracking" = xyes; then
  4702. continue
  4703. else
  4704. break
  4705. fi
  4706. ;;
  4707. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4708. # This compiler won't grok '-c -o', but also, the minuso test has
  4709. # not run yet. These depmodes are late enough in the game, and
  4710. # so weak that their functioning should not be impacted.
  4711. am__obj=conftest.${OBJEXT-o}
  4712. am__minus_obj=
  4713. ;;
  4714. none) break ;;
  4715. esac
  4716. if depmode=$depmode \
  4717. source=sub/conftest.c object=$am__obj \
  4718. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4719. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4720. >/dev/null 2>conftest.err &&
  4721. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4722. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4723. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4724. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4725. # icc doesn't choke on unknown options, it will just issue warnings
  4726. # or remarks (even with -Werror). So we grep stderr for any message
  4727. # that says an option was ignored or not supported.
  4728. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4729. # icc: Command line warning: ignoring option '-M'; no argument required
  4730. # The diagnosis changed in icc 8.0:
  4731. # icc: Command line remark: option '-MP' not supported
  4732. if (grep 'ignoring option' conftest.err ||
  4733. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4734. am_cv_CCAS_dependencies_compiler_type=$depmode
  4735. break
  4736. fi
  4737. fi
  4738. done
  4739. cd ..
  4740. rm -rf conftest.dir
  4741. else
  4742. am_cv_CCAS_dependencies_compiler_type=none
  4743. fi
  4744. fi
  4745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  4746. printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  4747. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  4748. if
  4749. test "x$enable_dependency_tracking" != xno \
  4750. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  4751. am__fastdepCCAS_TRUE=
  4752. am__fastdepCCAS_FALSE='#'
  4753. else
  4754. am__fastdepCCAS_TRUE='#'
  4755. am__fastdepCCAS_FALSE=
  4756. fi
  4757. ac_ext=c
  4758. ac_cpp='$CPP $CPPFLAGS'
  4759. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4760. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4761. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4762. if test -n "$ac_tool_prefix"; then
  4763. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4764. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4766. printf %s "checking for $ac_word... " >&6; }
  4767. if test ${ac_cv_prog_CC+y}
  4768. then :
  4769. printf %s "(cached) " >&6
  4770. else $as_nop
  4771. if test -n "$CC"; then
  4772. ac_cv_prog_CC="$CC" # Let the user override the test.
  4773. else
  4774. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4775. for as_dir in $PATH
  4776. do
  4777. IFS=$as_save_IFS
  4778. case $as_dir in #(((
  4779. '') as_dir=./ ;;
  4780. */) ;;
  4781. *) as_dir=$as_dir/ ;;
  4782. esac
  4783. for ac_exec_ext in '' $ac_executable_extensions; do
  4784. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4785. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4786. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4787. break 2
  4788. fi
  4789. done
  4790. done
  4791. IFS=$as_save_IFS
  4792. fi
  4793. fi
  4794. CC=$ac_cv_prog_CC
  4795. if test -n "$CC"; then
  4796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4797. printf "%s\n" "$CC" >&6; }
  4798. else
  4799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4800. printf "%s\n" "no" >&6; }
  4801. fi
  4802. fi
  4803. if test -z "$ac_cv_prog_CC"; then
  4804. ac_ct_CC=$CC
  4805. # Extract the first word of "gcc", so it can be a program name with args.
  4806. set dummy gcc; ac_word=$2
  4807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4808. printf %s "checking for $ac_word... " >&6; }
  4809. if test ${ac_cv_prog_ac_ct_CC+y}
  4810. then :
  4811. printf %s "(cached) " >&6
  4812. else $as_nop
  4813. if test -n "$ac_ct_CC"; then
  4814. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4815. else
  4816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4817. for as_dir in $PATH
  4818. do
  4819. IFS=$as_save_IFS
  4820. case $as_dir in #(((
  4821. '') as_dir=./ ;;
  4822. */) ;;
  4823. *) as_dir=$as_dir/ ;;
  4824. esac
  4825. for ac_exec_ext in '' $ac_executable_extensions; do
  4826. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4827. ac_cv_prog_ac_ct_CC="gcc"
  4828. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4829. break 2
  4830. fi
  4831. done
  4832. done
  4833. IFS=$as_save_IFS
  4834. fi
  4835. fi
  4836. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4837. if test -n "$ac_ct_CC"; then
  4838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4839. printf "%s\n" "$ac_ct_CC" >&6; }
  4840. else
  4841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4842. printf "%s\n" "no" >&6; }
  4843. fi
  4844. if test "x$ac_ct_CC" = x; then
  4845. CC=""
  4846. else
  4847. case $cross_compiling:$ac_tool_warned in
  4848. yes:)
  4849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4850. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4851. ac_tool_warned=yes ;;
  4852. esac
  4853. CC=$ac_ct_CC
  4854. fi
  4855. else
  4856. CC="$ac_cv_prog_CC"
  4857. fi
  4858. if test -z "$CC"; then
  4859. if test -n "$ac_tool_prefix"; then
  4860. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4861. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4863. printf %s "checking for $ac_word... " >&6; }
  4864. if test ${ac_cv_prog_CC+y}
  4865. then :
  4866. printf %s "(cached) " >&6
  4867. else $as_nop
  4868. if test -n "$CC"; then
  4869. ac_cv_prog_CC="$CC" # Let the user override the test.
  4870. else
  4871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4872. for as_dir in $PATH
  4873. do
  4874. IFS=$as_save_IFS
  4875. case $as_dir in #(((
  4876. '') as_dir=./ ;;
  4877. */) ;;
  4878. *) as_dir=$as_dir/ ;;
  4879. esac
  4880. for ac_exec_ext in '' $ac_executable_extensions; do
  4881. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4882. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4883. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4884. break 2
  4885. fi
  4886. done
  4887. done
  4888. IFS=$as_save_IFS
  4889. fi
  4890. fi
  4891. CC=$ac_cv_prog_CC
  4892. if test -n "$CC"; then
  4893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4894. printf "%s\n" "$CC" >&6; }
  4895. else
  4896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4897. printf "%s\n" "no" >&6; }
  4898. fi
  4899. fi
  4900. fi
  4901. if test -z "$CC"; then
  4902. # Extract the first word of "cc", so it can be a program name with args.
  4903. set dummy cc; ac_word=$2
  4904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4905. printf %s "checking for $ac_word... " >&6; }
  4906. if test ${ac_cv_prog_CC+y}
  4907. then :
  4908. printf %s "(cached) " >&6
  4909. else $as_nop
  4910. if test -n "$CC"; then
  4911. ac_cv_prog_CC="$CC" # Let the user override the test.
  4912. else
  4913. ac_prog_rejected=no
  4914. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4915. for as_dir in $PATH
  4916. do
  4917. IFS=$as_save_IFS
  4918. case $as_dir in #(((
  4919. '') as_dir=./ ;;
  4920. */) ;;
  4921. *) as_dir=$as_dir/ ;;
  4922. esac
  4923. for ac_exec_ext in '' $ac_executable_extensions; do
  4924. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4925. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4926. ac_prog_rejected=yes
  4927. continue
  4928. fi
  4929. ac_cv_prog_CC="cc"
  4930. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4931. break 2
  4932. fi
  4933. done
  4934. done
  4935. IFS=$as_save_IFS
  4936. if test $ac_prog_rejected = yes; then
  4937. # We found a bogon in the path, so make sure we never use it.
  4938. set dummy $ac_cv_prog_CC
  4939. shift
  4940. if test $# != 0; then
  4941. # We chose a different compiler from the bogus one.
  4942. # However, it has the same basename, so the bogon will be chosen
  4943. # first if we set CC to just the basename; use the full file name.
  4944. shift
  4945. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  4946. fi
  4947. fi
  4948. fi
  4949. fi
  4950. CC=$ac_cv_prog_CC
  4951. if test -n "$CC"; then
  4952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4953. printf "%s\n" "$CC" >&6; }
  4954. else
  4955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4956. printf "%s\n" "no" >&6; }
  4957. fi
  4958. fi
  4959. if test -z "$CC"; then
  4960. if test -n "$ac_tool_prefix"; then
  4961. for ac_prog in cl.exe
  4962. do
  4963. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4964. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4966. printf %s "checking for $ac_word... " >&6; }
  4967. if test ${ac_cv_prog_CC+y}
  4968. then :
  4969. printf %s "(cached) " >&6
  4970. else $as_nop
  4971. if test -n "$CC"; then
  4972. ac_cv_prog_CC="$CC" # Let the user override the test.
  4973. else
  4974. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4975. for as_dir in $PATH
  4976. do
  4977. IFS=$as_save_IFS
  4978. case $as_dir in #(((
  4979. '') as_dir=./ ;;
  4980. */) ;;
  4981. *) as_dir=$as_dir/ ;;
  4982. esac
  4983. for ac_exec_ext in '' $ac_executable_extensions; do
  4984. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4985. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4986. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4987. break 2
  4988. fi
  4989. done
  4990. done
  4991. IFS=$as_save_IFS
  4992. fi
  4993. fi
  4994. CC=$ac_cv_prog_CC
  4995. if test -n "$CC"; then
  4996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4997. printf "%s\n" "$CC" >&6; }
  4998. else
  4999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5000. printf "%s\n" "no" >&6; }
  5001. fi
  5002. test -n "$CC" && break
  5003. done
  5004. fi
  5005. if test -z "$CC"; then
  5006. ac_ct_CC=$CC
  5007. for ac_prog in cl.exe
  5008. do
  5009. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5010. set dummy $ac_prog; ac_word=$2
  5011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5012. printf %s "checking for $ac_word... " >&6; }
  5013. if test ${ac_cv_prog_ac_ct_CC+y}
  5014. then :
  5015. printf %s "(cached) " >&6
  5016. else $as_nop
  5017. if test -n "$ac_ct_CC"; then
  5018. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5019. else
  5020. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5021. for as_dir in $PATH
  5022. do
  5023. IFS=$as_save_IFS
  5024. case $as_dir in #(((
  5025. '') as_dir=./ ;;
  5026. */) ;;
  5027. *) as_dir=$as_dir/ ;;
  5028. esac
  5029. for ac_exec_ext in '' $ac_executable_extensions; do
  5030. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5031. ac_cv_prog_ac_ct_CC="$ac_prog"
  5032. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5033. break 2
  5034. fi
  5035. done
  5036. done
  5037. IFS=$as_save_IFS
  5038. fi
  5039. fi
  5040. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5041. if test -n "$ac_ct_CC"; then
  5042. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  5043. printf "%s\n" "$ac_ct_CC" >&6; }
  5044. else
  5045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5046. printf "%s\n" "no" >&6; }
  5047. fi
  5048. test -n "$ac_ct_CC" && break
  5049. done
  5050. if test "x$ac_ct_CC" = x; then
  5051. CC=""
  5052. else
  5053. case $cross_compiling:$ac_tool_warned in
  5054. yes:)
  5055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5056. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5057. ac_tool_warned=yes ;;
  5058. esac
  5059. CC=$ac_ct_CC
  5060. fi
  5061. fi
  5062. fi
  5063. if test -z "$CC"; then
  5064. if test -n "$ac_tool_prefix"; then
  5065. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  5066. set dummy ${ac_tool_prefix}clang; ac_word=$2
  5067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5068. printf %s "checking for $ac_word... " >&6; }
  5069. if test ${ac_cv_prog_CC+y}
  5070. then :
  5071. printf %s "(cached) " >&6
  5072. else $as_nop
  5073. if test -n "$CC"; then
  5074. ac_cv_prog_CC="$CC" # Let the user override the test.
  5075. else
  5076. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5077. for as_dir in $PATH
  5078. do
  5079. IFS=$as_save_IFS
  5080. case $as_dir in #(((
  5081. '') as_dir=./ ;;
  5082. */) ;;
  5083. *) as_dir=$as_dir/ ;;
  5084. esac
  5085. for ac_exec_ext in '' $ac_executable_extensions; do
  5086. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5087. ac_cv_prog_CC="${ac_tool_prefix}clang"
  5088. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5089. break 2
  5090. fi
  5091. done
  5092. done
  5093. IFS=$as_save_IFS
  5094. fi
  5095. fi
  5096. CC=$ac_cv_prog_CC
  5097. if test -n "$CC"; then
  5098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  5099. printf "%s\n" "$CC" >&6; }
  5100. else
  5101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5102. printf "%s\n" "no" >&6; }
  5103. fi
  5104. fi
  5105. if test -z "$ac_cv_prog_CC"; then
  5106. ac_ct_CC=$CC
  5107. # Extract the first word of "clang", so it can be a program name with args.
  5108. set dummy clang; ac_word=$2
  5109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5110. printf %s "checking for $ac_word... " >&6; }
  5111. if test ${ac_cv_prog_ac_ct_CC+y}
  5112. then :
  5113. printf %s "(cached) " >&6
  5114. else $as_nop
  5115. if test -n "$ac_ct_CC"; then
  5116. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5117. else
  5118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5119. for as_dir in $PATH
  5120. do
  5121. IFS=$as_save_IFS
  5122. case $as_dir in #(((
  5123. '') as_dir=./ ;;
  5124. */) ;;
  5125. *) as_dir=$as_dir/ ;;
  5126. esac
  5127. for ac_exec_ext in '' $ac_executable_extensions; do
  5128. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5129. ac_cv_prog_ac_ct_CC="clang"
  5130. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5131. break 2
  5132. fi
  5133. done
  5134. done
  5135. IFS=$as_save_IFS
  5136. fi
  5137. fi
  5138. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5139. if test -n "$ac_ct_CC"; then
  5140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  5141. printf "%s\n" "$ac_ct_CC" >&6; }
  5142. else
  5143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5144. printf "%s\n" "no" >&6; }
  5145. fi
  5146. if test "x$ac_ct_CC" = x; then
  5147. CC=""
  5148. else
  5149. case $cross_compiling:$ac_tool_warned in
  5150. yes:)
  5151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5152. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5153. ac_tool_warned=yes ;;
  5154. esac
  5155. CC=$ac_ct_CC
  5156. fi
  5157. else
  5158. CC="$ac_cv_prog_CC"
  5159. fi
  5160. fi
  5161. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5162. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  5163. as_fn_error $? "no acceptable C compiler found in \$PATH
  5164. See \`config.log' for more details" "$LINENO" 5; }
  5165. # Provide some information about the compiler.
  5166. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  5167. set X $ac_compile
  5168. ac_compiler=$2
  5169. for ac_option in --version -v -V -qversion -version; do
  5170. { { ac_try="$ac_compiler $ac_option >&5"
  5171. case "(($ac_try" in
  5172. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5173. *) ac_try_echo=$ac_try;;
  5174. esac
  5175. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5176. printf "%s\n" "$ac_try_echo"; } >&5
  5177. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  5178. ac_status=$?
  5179. if test -s conftest.err; then
  5180. sed '10a\
  5181. ... rest of stderr output deleted ...
  5182. 10q' conftest.err >conftest.er1
  5183. cat conftest.er1 >&5
  5184. fi
  5185. rm -f conftest.er1 conftest.err
  5186. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5187. test $ac_status = 0; }
  5188. done
  5189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  5190. printf %s "checking whether the compiler supports GNU C... " >&6; }
  5191. if test ${ac_cv_c_compiler_gnu+y}
  5192. then :
  5193. printf %s "(cached) " >&6
  5194. else $as_nop
  5195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5196. /* end confdefs.h. */
  5197. int
  5198. main (void)
  5199. {
  5200. #ifndef __GNUC__
  5201. choke me
  5202. #endif
  5203. ;
  5204. return 0;
  5205. }
  5206. _ACEOF
  5207. if ac_fn_c_try_compile "$LINENO"
  5208. then :
  5209. ac_compiler_gnu=yes
  5210. else $as_nop
  5211. ac_compiler_gnu=no
  5212. fi
  5213. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5214. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  5215. fi
  5216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  5217. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  5218. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5219. if test $ac_compiler_gnu = yes; then
  5220. GCC=yes
  5221. else
  5222. GCC=
  5223. fi
  5224. ac_test_CFLAGS=${CFLAGS+y}
  5225. ac_save_CFLAGS=$CFLAGS
  5226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  5227. printf %s "checking whether $CC accepts -g... " >&6; }
  5228. if test ${ac_cv_prog_cc_g+y}
  5229. then :
  5230. printf %s "(cached) " >&6
  5231. else $as_nop
  5232. ac_save_c_werror_flag=$ac_c_werror_flag
  5233. ac_c_werror_flag=yes
  5234. ac_cv_prog_cc_g=no
  5235. CFLAGS="-g"
  5236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5237. /* end confdefs.h. */
  5238. int
  5239. main (void)
  5240. {
  5241. ;
  5242. return 0;
  5243. }
  5244. _ACEOF
  5245. if ac_fn_c_try_compile "$LINENO"
  5246. then :
  5247. ac_cv_prog_cc_g=yes
  5248. else $as_nop
  5249. CFLAGS=""
  5250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5251. /* end confdefs.h. */
  5252. int
  5253. main (void)
  5254. {
  5255. ;
  5256. return 0;
  5257. }
  5258. _ACEOF
  5259. if ac_fn_c_try_compile "$LINENO"
  5260. then :
  5261. else $as_nop
  5262. ac_c_werror_flag=$ac_save_c_werror_flag
  5263. CFLAGS="-g"
  5264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5265. /* end confdefs.h. */
  5266. int
  5267. main (void)
  5268. {
  5269. ;
  5270. return 0;
  5271. }
  5272. _ACEOF
  5273. if ac_fn_c_try_compile "$LINENO"
  5274. then :
  5275. ac_cv_prog_cc_g=yes
  5276. fi
  5277. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5278. fi
  5279. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5280. fi
  5281. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5282. ac_c_werror_flag=$ac_save_c_werror_flag
  5283. fi
  5284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  5285. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  5286. if test $ac_test_CFLAGS; then
  5287. CFLAGS=$ac_save_CFLAGS
  5288. elif test $ac_cv_prog_cc_g = yes; then
  5289. if test "$GCC" = yes; then
  5290. CFLAGS="-g -O2"
  5291. else
  5292. CFLAGS="-g"
  5293. fi
  5294. else
  5295. if test "$GCC" = yes; then
  5296. CFLAGS="-O2"
  5297. else
  5298. CFLAGS=
  5299. fi
  5300. fi
  5301. ac_prog_cc_stdc=no
  5302. if test x$ac_prog_cc_stdc = xno
  5303. then :
  5304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  5305. printf %s "checking for $CC option to enable C11 features... " >&6; }
  5306. if test ${ac_cv_prog_cc_c11+y}
  5307. then :
  5308. printf %s "(cached) " >&6
  5309. else $as_nop
  5310. ac_cv_prog_cc_c11=no
  5311. ac_save_CC=$CC
  5312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5313. /* end confdefs.h. */
  5314. $ac_c_conftest_c11_program
  5315. _ACEOF
  5316. for ac_arg in '' -std=gnu11
  5317. do
  5318. CC="$ac_save_CC $ac_arg"
  5319. if ac_fn_c_try_compile "$LINENO"
  5320. then :
  5321. ac_cv_prog_cc_c11=$ac_arg
  5322. fi
  5323. rm -f core conftest.err conftest.$ac_objext conftest.beam
  5324. test "x$ac_cv_prog_cc_c11" != "xno" && break
  5325. done
  5326. rm -f conftest.$ac_ext
  5327. CC=$ac_save_CC
  5328. fi
  5329. if test "x$ac_cv_prog_cc_c11" = xno
  5330. then :
  5331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5332. printf "%s\n" "unsupported" >&6; }
  5333. else $as_nop
  5334. if test "x$ac_cv_prog_cc_c11" = x
  5335. then :
  5336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5337. printf "%s\n" "none needed" >&6; }
  5338. else $as_nop
  5339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  5340. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  5341. CC="$CC $ac_cv_prog_cc_c11"
  5342. fi
  5343. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  5344. ac_prog_cc_stdc=c11
  5345. fi
  5346. fi
  5347. if test x$ac_prog_cc_stdc = xno
  5348. then :
  5349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  5350. printf %s "checking for $CC option to enable C99 features... " >&6; }
  5351. if test ${ac_cv_prog_cc_c99+y}
  5352. then :
  5353. printf %s "(cached) " >&6
  5354. else $as_nop
  5355. ac_cv_prog_cc_c99=no
  5356. ac_save_CC=$CC
  5357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5358. /* end confdefs.h. */
  5359. $ac_c_conftest_c99_program
  5360. _ACEOF
  5361. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  5362. do
  5363. CC="$ac_save_CC $ac_arg"
  5364. if ac_fn_c_try_compile "$LINENO"
  5365. then :
  5366. ac_cv_prog_cc_c99=$ac_arg
  5367. fi
  5368. rm -f core conftest.err conftest.$ac_objext conftest.beam
  5369. test "x$ac_cv_prog_cc_c99" != "xno" && break
  5370. done
  5371. rm -f conftest.$ac_ext
  5372. CC=$ac_save_CC
  5373. fi
  5374. if test "x$ac_cv_prog_cc_c99" = xno
  5375. then :
  5376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5377. printf "%s\n" "unsupported" >&6; }
  5378. else $as_nop
  5379. if test "x$ac_cv_prog_cc_c99" = x
  5380. then :
  5381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5382. printf "%s\n" "none needed" >&6; }
  5383. else $as_nop
  5384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  5385. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  5386. CC="$CC $ac_cv_prog_cc_c99"
  5387. fi
  5388. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  5389. ac_prog_cc_stdc=c99
  5390. fi
  5391. fi
  5392. if test x$ac_prog_cc_stdc = xno
  5393. then :
  5394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  5395. printf %s "checking for $CC option to enable C89 features... " >&6; }
  5396. if test ${ac_cv_prog_cc_c89+y}
  5397. then :
  5398. printf %s "(cached) " >&6
  5399. else $as_nop
  5400. ac_cv_prog_cc_c89=no
  5401. ac_save_CC=$CC
  5402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5403. /* end confdefs.h. */
  5404. $ac_c_conftest_c89_program
  5405. _ACEOF
  5406. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5407. do
  5408. CC="$ac_save_CC $ac_arg"
  5409. if ac_fn_c_try_compile "$LINENO"
  5410. then :
  5411. ac_cv_prog_cc_c89=$ac_arg
  5412. fi
  5413. rm -f core conftest.err conftest.$ac_objext conftest.beam
  5414. test "x$ac_cv_prog_cc_c89" != "xno" && break
  5415. done
  5416. rm -f conftest.$ac_ext
  5417. CC=$ac_save_CC
  5418. fi
  5419. if test "x$ac_cv_prog_cc_c89" = xno
  5420. then :
  5421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5422. printf "%s\n" "unsupported" >&6; }
  5423. else $as_nop
  5424. if test "x$ac_cv_prog_cc_c89" = x
  5425. then :
  5426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5427. printf "%s\n" "none needed" >&6; }
  5428. else $as_nop
  5429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  5430. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  5431. CC="$CC $ac_cv_prog_cc_c89"
  5432. fi
  5433. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  5434. ac_prog_cc_stdc=c89
  5435. fi
  5436. fi
  5437. ac_ext=c
  5438. ac_cpp='$CPP $CPPFLAGS'
  5439. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5440. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5441. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5442. ac_ext=c
  5443. ac_cpp='$CPP $CPPFLAGS'
  5444. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5445. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5446. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  5448. printf %s "checking whether $CC understands -c and -o together... " >&6; }
  5449. if test ${am_cv_prog_cc_c_o+y}
  5450. then :
  5451. printf %s "(cached) " >&6
  5452. else $as_nop
  5453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5454. /* end confdefs.h. */
  5455. int
  5456. main (void)
  5457. {
  5458. ;
  5459. return 0;
  5460. }
  5461. _ACEOF
  5462. # Make sure it works both with $CC and with simple cc.
  5463. # Following AC_PROG_CC_C_O, we do the test twice because some
  5464. # compilers refuse to overwrite an existing .o file with -o,
  5465. # though they will create one.
  5466. am_cv_prog_cc_c_o=yes
  5467. for am_i in 1 2; do
  5468. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  5469. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  5470. ac_status=$?
  5471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5472. (exit $ac_status); } \
  5473. && test -f conftest2.$ac_objext; then
  5474. : OK
  5475. else
  5476. am_cv_prog_cc_c_o=no
  5477. break
  5478. fi
  5479. done
  5480. rm -f core conftest*
  5481. unset am_i
  5482. fi
  5483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  5484. printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
  5485. if test "$am_cv_prog_cc_c_o" != yes; then
  5486. # Losing compiler, so override with the script.
  5487. # FIXME: It is wrong to rewrite CC.
  5488. # But if we don't then we get into trouble of one sort or another.
  5489. # A longer-term fix would be to have automake use am__CC in this case,
  5490. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  5491. CC="$am_aux_dir/compile $CC"
  5492. fi
  5493. ac_ext=c
  5494. ac_cpp='$CPP $CPPFLAGS'
  5495. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5496. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5497. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5498. depcc="$CC" am_compiler_list=
  5499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  5500. printf %s "checking dependency style of $depcc... " >&6; }
  5501. if test ${am_cv_CC_dependencies_compiler_type+y}
  5502. then :
  5503. printf %s "(cached) " >&6
  5504. else $as_nop
  5505. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5506. # We make a subdir and do the tests there. Otherwise we can end up
  5507. # making bogus files that we don't know about and never remove. For
  5508. # instance it was reported that on HP-UX the gcc test will end up
  5509. # making a dummy file named 'D' -- because '-MD' means "put the output
  5510. # in D".
  5511. rm -rf conftest.dir
  5512. mkdir conftest.dir
  5513. # Copy depcomp to subdir because otherwise we won't find it if we're
  5514. # using a relative directory.
  5515. cp "$am_depcomp" conftest.dir
  5516. cd conftest.dir
  5517. # We will build objects and dependencies in a subdirectory because
  5518. # it helps to detect inapplicable dependency modes. For instance
  5519. # both Tru64's cc and ICC support -MD to output dependencies as a
  5520. # side effect of compilation, but ICC will put the dependencies in
  5521. # the current directory while Tru64 will put them in the object
  5522. # directory.
  5523. mkdir sub
  5524. am_cv_CC_dependencies_compiler_type=none
  5525. if test "$am_compiler_list" = ""; then
  5526. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5527. fi
  5528. am__universal=false
  5529. case " $depcc " in #(
  5530. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  5531. esac
  5532. for depmode in $am_compiler_list; do
  5533. # Setup a source with many dependencies, because some compilers
  5534. # like to wrap large dependency lists on column 80 (with \), and
  5535. # we should not choose a depcomp mode which is confused by this.
  5536. #
  5537. # We need to recreate these files for each test, as the compiler may
  5538. # overwrite some of them when testing with obscure command lines.
  5539. # This happens at least with the AIX C compiler.
  5540. : > sub/conftest.c
  5541. for i in 1 2 3 4 5 6; do
  5542. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5543. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  5544. # Solaris 10 /bin/sh.
  5545. echo '/* dummy */' > sub/conftst$i.h
  5546. done
  5547. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5548. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  5549. # mode. It turns out that the SunPro C++ compiler does not properly
  5550. # handle '-M -o', and we need to detect this. Also, some Intel
  5551. # versions had trouble with output in subdirs.
  5552. am__obj=sub/conftest.${OBJEXT-o}
  5553. am__minus_obj="-o $am__obj"
  5554. case $depmode in
  5555. gcc)
  5556. # This depmode causes a compiler race in universal mode.
  5557. test "$am__universal" = false || continue
  5558. ;;
  5559. nosideeffect)
  5560. # After this tag, mechanisms are not by side-effect, so they'll
  5561. # only be used when explicitly requested.
  5562. if test "x$enable_dependency_tracking" = xyes; then
  5563. continue
  5564. else
  5565. break
  5566. fi
  5567. ;;
  5568. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  5569. # This compiler won't grok '-c -o', but also, the minuso test has
  5570. # not run yet. These depmodes are late enough in the game, and
  5571. # so weak that their functioning should not be impacted.
  5572. am__obj=conftest.${OBJEXT-o}
  5573. am__minus_obj=
  5574. ;;
  5575. none) break ;;
  5576. esac
  5577. if depmode=$depmode \
  5578. source=sub/conftest.c object=$am__obj \
  5579. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5580. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5581. >/dev/null 2>conftest.err &&
  5582. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5583. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5584. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5585. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5586. # icc doesn't choke on unknown options, it will just issue warnings
  5587. # or remarks (even with -Werror). So we grep stderr for any message
  5588. # that says an option was ignored or not supported.
  5589. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5590. # icc: Command line warning: ignoring option '-M'; no argument required
  5591. # The diagnosis changed in icc 8.0:
  5592. # icc: Command line remark: option '-MP' not supported
  5593. if (grep 'ignoring option' conftest.err ||
  5594. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5595. am_cv_CC_dependencies_compiler_type=$depmode
  5596. break
  5597. fi
  5598. fi
  5599. done
  5600. cd ..
  5601. rm -rf conftest.dir
  5602. else
  5603. am_cv_CC_dependencies_compiler_type=none
  5604. fi
  5605. fi
  5606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  5607. printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
  5608. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5609. if
  5610. test "x$enable_dependency_tracking" != xno \
  5611. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5612. am__fastdepCC_TRUE=
  5613. am__fastdepCC_FALSE='#'
  5614. else
  5615. am__fastdepCC_TRUE='#'
  5616. am__fastdepCC_FALSE=
  5617. fi
  5618. ac_ext=c
  5619. ac_cpp='$CPP $CPPFLAGS'
  5620. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5621. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5622. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5624. printf %s "checking how to run the C preprocessor... " >&6; }
  5625. # On Suns, sometimes $CPP names a directory.
  5626. if test -n "$CPP" && test -d "$CPP"; then
  5627. CPP=
  5628. fi
  5629. if test -z "$CPP"; then
  5630. if test ${ac_cv_prog_CPP+y}
  5631. then :
  5632. printf %s "(cached) " >&6
  5633. else $as_nop
  5634. # Double quotes because $CC needs to be expanded
  5635. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  5636. do
  5637. ac_preproc_ok=false
  5638. for ac_c_preproc_warn_flag in '' yes
  5639. do
  5640. # Use a header file that comes with gcc, so configuring glibc
  5641. # with a fresh cross-compiler works.
  5642. # On the NeXT, cc -E runs the code through the compiler's parser,
  5643. # not just through cpp. "Syntax error" is here to catch this case.
  5644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5645. /* end confdefs.h. */
  5646. #include <limits.h>
  5647. Syntax error
  5648. _ACEOF
  5649. if ac_fn_c_try_cpp "$LINENO"
  5650. then :
  5651. else $as_nop
  5652. # Broken: fails on valid input.
  5653. continue
  5654. fi
  5655. rm -f conftest.err conftest.i conftest.$ac_ext
  5656. # OK, works on sane cases. Now check whether nonexistent headers
  5657. # can be detected and how.
  5658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5659. /* end confdefs.h. */
  5660. #include <ac_nonexistent.h>
  5661. _ACEOF
  5662. if ac_fn_c_try_cpp "$LINENO"
  5663. then :
  5664. # Broken: success on invalid input.
  5665. continue
  5666. else $as_nop
  5667. # Passes both tests.
  5668. ac_preproc_ok=:
  5669. break
  5670. fi
  5671. rm -f conftest.err conftest.i conftest.$ac_ext
  5672. done
  5673. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5674. rm -f conftest.i conftest.err conftest.$ac_ext
  5675. if $ac_preproc_ok
  5676. then :
  5677. break
  5678. fi
  5679. done
  5680. ac_cv_prog_CPP=$CPP
  5681. fi
  5682. CPP=$ac_cv_prog_CPP
  5683. else
  5684. ac_cv_prog_CPP=$CPP
  5685. fi
  5686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5687. printf "%s\n" "$CPP" >&6; }
  5688. ac_preproc_ok=false
  5689. for ac_c_preproc_warn_flag in '' yes
  5690. do
  5691. # Use a header file that comes with gcc, so configuring glibc
  5692. # with a fresh cross-compiler works.
  5693. # On the NeXT, cc -E runs the code through the compiler's parser,
  5694. # not just through cpp. "Syntax error" is here to catch this case.
  5695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5696. /* end confdefs.h. */
  5697. #include <limits.h>
  5698. Syntax error
  5699. _ACEOF
  5700. if ac_fn_c_try_cpp "$LINENO"
  5701. then :
  5702. else $as_nop
  5703. # Broken: fails on valid input.
  5704. continue
  5705. fi
  5706. rm -f conftest.err conftest.i conftest.$ac_ext
  5707. # OK, works on sane cases. Now check whether nonexistent headers
  5708. # can be detected and how.
  5709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5710. /* end confdefs.h. */
  5711. #include <ac_nonexistent.h>
  5712. _ACEOF
  5713. if ac_fn_c_try_cpp "$LINENO"
  5714. then :
  5715. # Broken: success on invalid input.
  5716. continue
  5717. else $as_nop
  5718. # Passes both tests.
  5719. ac_preproc_ok=:
  5720. break
  5721. fi
  5722. rm -f conftest.err conftest.i conftest.$ac_ext
  5723. done
  5724. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5725. rm -f conftest.i conftest.err conftest.$ac_ext
  5726. if $ac_preproc_ok
  5727. then :
  5728. else $as_nop
  5729. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5730. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  5731. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  5732. See \`config.log' for more details" "$LINENO" 5; }
  5733. fi
  5734. ac_ext=c
  5735. ac_cpp='$CPP $CPPFLAGS'
  5736. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5737. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5738. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5739. ac_ext=cpp
  5740. ac_cpp='$CXXCPP $CPPFLAGS'
  5741. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5742. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5743. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5744. if test -z "$CXX"; then
  5745. if test -n "$CCC"; then
  5746. CXX=$CCC
  5747. else
  5748. if test -n "$ac_tool_prefix"; then
  5749. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  5750. do
  5751. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5752. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5754. printf %s "checking for $ac_word... " >&6; }
  5755. if test ${ac_cv_prog_CXX+y}
  5756. then :
  5757. printf %s "(cached) " >&6
  5758. else $as_nop
  5759. if test -n "$CXX"; then
  5760. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  5761. else
  5762. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5763. for as_dir in $PATH
  5764. do
  5765. IFS=$as_save_IFS
  5766. case $as_dir in #(((
  5767. '') as_dir=./ ;;
  5768. */) ;;
  5769. *) as_dir=$as_dir/ ;;
  5770. esac
  5771. for ac_exec_ext in '' $ac_executable_extensions; do
  5772. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5773. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  5774. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5775. break 2
  5776. fi
  5777. done
  5778. done
  5779. IFS=$as_save_IFS
  5780. fi
  5781. fi
  5782. CXX=$ac_cv_prog_CXX
  5783. if test -n "$CXX"; then
  5784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  5785. printf "%s\n" "$CXX" >&6; }
  5786. else
  5787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5788. printf "%s\n" "no" >&6; }
  5789. fi
  5790. test -n "$CXX" && break
  5791. done
  5792. fi
  5793. if test -z "$CXX"; then
  5794. ac_ct_CXX=$CXX
  5795. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  5796. do
  5797. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5798. set dummy $ac_prog; ac_word=$2
  5799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5800. printf %s "checking for $ac_word... " >&6; }
  5801. if test ${ac_cv_prog_ac_ct_CXX+y}
  5802. then :
  5803. printf %s "(cached) " >&6
  5804. else $as_nop
  5805. if test -n "$ac_ct_CXX"; then
  5806. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  5807. else
  5808. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5809. for as_dir in $PATH
  5810. do
  5811. IFS=$as_save_IFS
  5812. case $as_dir in #(((
  5813. '') as_dir=./ ;;
  5814. */) ;;
  5815. *) as_dir=$as_dir/ ;;
  5816. esac
  5817. for ac_exec_ext in '' $ac_executable_extensions; do
  5818. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5819. ac_cv_prog_ac_ct_CXX="$ac_prog"
  5820. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5821. break 2
  5822. fi
  5823. done
  5824. done
  5825. IFS=$as_save_IFS
  5826. fi
  5827. fi
  5828. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  5829. if test -n "$ac_ct_CXX"; then
  5830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  5831. printf "%s\n" "$ac_ct_CXX" >&6; }
  5832. else
  5833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5834. printf "%s\n" "no" >&6; }
  5835. fi
  5836. test -n "$ac_ct_CXX" && break
  5837. done
  5838. if test "x$ac_ct_CXX" = x; then
  5839. CXX="g++"
  5840. else
  5841. case $cross_compiling:$ac_tool_warned in
  5842. yes:)
  5843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5844. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5845. ac_tool_warned=yes ;;
  5846. esac
  5847. CXX=$ac_ct_CXX
  5848. fi
  5849. fi
  5850. fi
  5851. fi
  5852. # Provide some information about the compiler.
  5853. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  5854. set X $ac_compile
  5855. ac_compiler=$2
  5856. for ac_option in --version -v -V -qversion; do
  5857. { { ac_try="$ac_compiler $ac_option >&5"
  5858. case "(($ac_try" in
  5859. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5860. *) ac_try_echo=$ac_try;;
  5861. esac
  5862. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5863. printf "%s\n" "$ac_try_echo"; } >&5
  5864. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  5865. ac_status=$?
  5866. if test -s conftest.err; then
  5867. sed '10a\
  5868. ... rest of stderr output deleted ...
  5869. 10q' conftest.err >conftest.er1
  5870. cat conftest.er1 >&5
  5871. fi
  5872. rm -f conftest.er1 conftest.err
  5873. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5874. test $ac_status = 0; }
  5875. done
  5876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  5877. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  5878. if test ${ac_cv_cxx_compiler_gnu+y}
  5879. then :
  5880. printf %s "(cached) " >&6
  5881. else $as_nop
  5882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5883. /* end confdefs.h. */
  5884. int
  5885. main (void)
  5886. {
  5887. #ifndef __GNUC__
  5888. choke me
  5889. #endif
  5890. ;
  5891. return 0;
  5892. }
  5893. _ACEOF
  5894. if ac_fn_cxx_try_compile "$LINENO"
  5895. then :
  5896. ac_compiler_gnu=yes
  5897. else $as_nop
  5898. ac_compiler_gnu=no
  5899. fi
  5900. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5901. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  5902. fi
  5903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  5904. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  5905. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5906. if test $ac_compiler_gnu = yes; then
  5907. GXX=yes
  5908. else
  5909. GXX=
  5910. fi
  5911. ac_test_CXXFLAGS=${CXXFLAGS+y}
  5912. ac_save_CXXFLAGS=$CXXFLAGS
  5913. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  5914. printf %s "checking whether $CXX accepts -g... " >&6; }
  5915. if test ${ac_cv_prog_cxx_g+y}
  5916. then :
  5917. printf %s "(cached) " >&6
  5918. else $as_nop
  5919. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  5920. ac_cxx_werror_flag=yes
  5921. ac_cv_prog_cxx_g=no
  5922. CXXFLAGS="-g"
  5923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5924. /* end confdefs.h. */
  5925. int
  5926. main (void)
  5927. {
  5928. ;
  5929. return 0;
  5930. }
  5931. _ACEOF
  5932. if ac_fn_cxx_try_compile "$LINENO"
  5933. then :
  5934. ac_cv_prog_cxx_g=yes
  5935. else $as_nop
  5936. CXXFLAGS=""
  5937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5938. /* end confdefs.h. */
  5939. int
  5940. main (void)
  5941. {
  5942. ;
  5943. return 0;
  5944. }
  5945. _ACEOF
  5946. if ac_fn_cxx_try_compile "$LINENO"
  5947. then :
  5948. else $as_nop
  5949. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5950. CXXFLAGS="-g"
  5951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5952. /* end confdefs.h. */
  5953. int
  5954. main (void)
  5955. {
  5956. ;
  5957. return 0;
  5958. }
  5959. _ACEOF
  5960. if ac_fn_cxx_try_compile "$LINENO"
  5961. then :
  5962. ac_cv_prog_cxx_g=yes
  5963. fi
  5964. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5965. fi
  5966. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5967. fi
  5968. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5969. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5970. fi
  5971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  5972. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  5973. if test $ac_test_CXXFLAGS; then
  5974. CXXFLAGS=$ac_save_CXXFLAGS
  5975. elif test $ac_cv_prog_cxx_g = yes; then
  5976. if test "$GXX" = yes; then
  5977. CXXFLAGS="-g -O2"
  5978. else
  5979. CXXFLAGS="-g"
  5980. fi
  5981. else
  5982. if test "$GXX" = yes; then
  5983. CXXFLAGS="-O2"
  5984. else
  5985. CXXFLAGS=
  5986. fi
  5987. fi
  5988. ac_prog_cxx_stdcxx=no
  5989. if test x$ac_prog_cxx_stdcxx = xno
  5990. then :
  5991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  5992. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  5993. if test ${ac_cv_prog_cxx_cxx11+y}
  5994. then :
  5995. printf %s "(cached) " >&6
  5996. else $as_nop
  5997. ac_cv_prog_cxx_cxx11=no
  5998. ac_save_CXX=$CXX
  5999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6000. /* end confdefs.h. */
  6001. $ac_cxx_conftest_cxx11_program
  6002. _ACEOF
  6003. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  6004. do
  6005. CXX="$ac_save_CXX $ac_arg"
  6006. if ac_fn_cxx_try_compile "$LINENO"
  6007. then :
  6008. ac_cv_prog_cxx_cxx11=$ac_arg
  6009. fi
  6010. rm -f core conftest.err conftest.$ac_objext conftest.beam
  6011. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  6012. done
  6013. rm -f conftest.$ac_ext
  6014. CXX=$ac_save_CXX
  6015. fi
  6016. if test "x$ac_cv_prog_cxx_cxx11" = xno
  6017. then :
  6018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  6019. printf "%s\n" "unsupported" >&6; }
  6020. else $as_nop
  6021. if test "x$ac_cv_prog_cxx_cxx11" = x
  6022. then :
  6023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  6024. printf "%s\n" "none needed" >&6; }
  6025. else $as_nop
  6026. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  6027. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  6028. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  6029. fi
  6030. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  6031. ac_prog_cxx_stdcxx=cxx11
  6032. fi
  6033. fi
  6034. if test x$ac_prog_cxx_stdcxx = xno
  6035. then :
  6036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  6037. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  6038. if test ${ac_cv_prog_cxx_cxx98+y}
  6039. then :
  6040. printf %s "(cached) " >&6
  6041. else $as_nop
  6042. ac_cv_prog_cxx_cxx98=no
  6043. ac_save_CXX=$CXX
  6044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6045. /* end confdefs.h. */
  6046. $ac_cxx_conftest_cxx98_program
  6047. _ACEOF
  6048. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  6049. do
  6050. CXX="$ac_save_CXX $ac_arg"
  6051. if ac_fn_cxx_try_compile "$LINENO"
  6052. then :
  6053. ac_cv_prog_cxx_cxx98=$ac_arg
  6054. fi
  6055. rm -f core conftest.err conftest.$ac_objext conftest.beam
  6056. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  6057. done
  6058. rm -f conftest.$ac_ext
  6059. CXX=$ac_save_CXX
  6060. fi
  6061. if test "x$ac_cv_prog_cxx_cxx98" = xno
  6062. then :
  6063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  6064. printf "%s\n" "unsupported" >&6; }
  6065. else $as_nop
  6066. if test "x$ac_cv_prog_cxx_cxx98" = x
  6067. then :
  6068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  6069. printf "%s\n" "none needed" >&6; }
  6070. else $as_nop
  6071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  6072. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  6073. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  6074. fi
  6075. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  6076. ac_prog_cxx_stdcxx=cxx98
  6077. fi
  6078. fi
  6079. ac_ext=c
  6080. ac_cpp='$CPP $CPPFLAGS'
  6081. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6082. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6083. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6084. depcc="$CXX" am_compiler_list=
  6085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  6086. printf %s "checking dependency style of $depcc... " >&6; }
  6087. if test ${am_cv_CXX_dependencies_compiler_type+y}
  6088. then :
  6089. printf %s "(cached) " >&6
  6090. else $as_nop
  6091. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6092. # We make a subdir and do the tests there. Otherwise we can end up
  6093. # making bogus files that we don't know about and never remove. For
  6094. # instance it was reported that on HP-UX the gcc test will end up
  6095. # making a dummy file named 'D' -- because '-MD' means "put the output
  6096. # in D".
  6097. rm -rf conftest.dir
  6098. mkdir conftest.dir
  6099. # Copy depcomp to subdir because otherwise we won't find it if we're
  6100. # using a relative directory.
  6101. cp "$am_depcomp" conftest.dir
  6102. cd conftest.dir
  6103. # We will build objects and dependencies in a subdirectory because
  6104. # it helps to detect inapplicable dependency modes. For instance
  6105. # both Tru64's cc and ICC support -MD to output dependencies as a
  6106. # side effect of compilation, but ICC will put the dependencies in
  6107. # the current directory while Tru64 will put them in the object
  6108. # directory.
  6109. mkdir sub
  6110. am_cv_CXX_dependencies_compiler_type=none
  6111. if test "$am_compiler_list" = ""; then
  6112. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6113. fi
  6114. am__universal=false
  6115. case " $depcc " in #(
  6116. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  6117. esac
  6118. for depmode in $am_compiler_list; do
  6119. # Setup a source with many dependencies, because some compilers
  6120. # like to wrap large dependency lists on column 80 (with \), and
  6121. # we should not choose a depcomp mode which is confused by this.
  6122. #
  6123. # We need to recreate these files for each test, as the compiler may
  6124. # overwrite some of them when testing with obscure command lines.
  6125. # This happens at least with the AIX C compiler.
  6126. : > sub/conftest.c
  6127. for i in 1 2 3 4 5 6; do
  6128. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6129. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  6130. # Solaris 10 /bin/sh.
  6131. echo '/* dummy */' > sub/conftst$i.h
  6132. done
  6133. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6134. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  6135. # mode. It turns out that the SunPro C++ compiler does not properly
  6136. # handle '-M -o', and we need to detect this. Also, some Intel
  6137. # versions had trouble with output in subdirs.
  6138. am__obj=sub/conftest.${OBJEXT-o}
  6139. am__minus_obj="-o $am__obj"
  6140. case $depmode in
  6141. gcc)
  6142. # This depmode causes a compiler race in universal mode.
  6143. test "$am__universal" = false || continue
  6144. ;;
  6145. nosideeffect)
  6146. # After this tag, mechanisms are not by side-effect, so they'll
  6147. # only be used when explicitly requested.
  6148. if test "x$enable_dependency_tracking" = xyes; then
  6149. continue
  6150. else
  6151. break
  6152. fi
  6153. ;;
  6154. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  6155. # This compiler won't grok '-c -o', but also, the minuso test has
  6156. # not run yet. These depmodes are late enough in the game, and
  6157. # so weak that their functioning should not be impacted.
  6158. am__obj=conftest.${OBJEXT-o}
  6159. am__minus_obj=
  6160. ;;
  6161. none) break ;;
  6162. esac
  6163. if depmode=$depmode \
  6164. source=sub/conftest.c object=$am__obj \
  6165. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6166. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  6167. >/dev/null 2>conftest.err &&
  6168. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  6169. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6170. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  6171. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6172. # icc doesn't choke on unknown options, it will just issue warnings
  6173. # or remarks (even with -Werror). So we grep stderr for any message
  6174. # that says an option was ignored or not supported.
  6175. # When given -MP, icc 7.0 and 7.1 complain thusly:
  6176. # icc: Command line warning: ignoring option '-M'; no argument required
  6177. # The diagnosis changed in icc 8.0:
  6178. # icc: Command line remark: option '-MP' not supported
  6179. if (grep 'ignoring option' conftest.err ||
  6180. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6181. am_cv_CXX_dependencies_compiler_type=$depmode
  6182. break
  6183. fi
  6184. fi
  6185. done
  6186. cd ..
  6187. rm -rf conftest.dir
  6188. else
  6189. am_cv_CXX_dependencies_compiler_type=none
  6190. fi
  6191. fi
  6192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  6193. printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
  6194. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  6195. if
  6196. test "x$enable_dependency_tracking" != xno \
  6197. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  6198. am__fastdepCXX_TRUE=
  6199. am__fastdepCXX_FALSE='#'
  6200. else
  6201. am__fastdepCXX_TRUE='#'
  6202. am__fastdepCXX_FALSE=
  6203. fi
  6204. if test -n "$ac_tool_prefix"; then
  6205. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6206. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6208. printf %s "checking for $ac_word... " >&6; }
  6209. if test ${ac_cv_prog_RANLIB+y}
  6210. then :
  6211. printf %s "(cached) " >&6
  6212. else $as_nop
  6213. if test -n "$RANLIB"; then
  6214. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6215. else
  6216. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6217. for as_dir in $PATH
  6218. do
  6219. IFS=$as_save_IFS
  6220. case $as_dir in #(((
  6221. '') as_dir=./ ;;
  6222. */) ;;
  6223. *) as_dir=$as_dir/ ;;
  6224. esac
  6225. for ac_exec_ext in '' $ac_executable_extensions; do
  6226. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6227. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6228. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6229. break 2
  6230. fi
  6231. done
  6232. done
  6233. IFS=$as_save_IFS
  6234. fi
  6235. fi
  6236. RANLIB=$ac_cv_prog_RANLIB
  6237. if test -n "$RANLIB"; then
  6238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6239. printf "%s\n" "$RANLIB" >&6; }
  6240. else
  6241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6242. printf "%s\n" "no" >&6; }
  6243. fi
  6244. fi
  6245. if test -z "$ac_cv_prog_RANLIB"; then
  6246. ac_ct_RANLIB=$RANLIB
  6247. # Extract the first word of "ranlib", so it can be a program name with args.
  6248. set dummy ranlib; ac_word=$2
  6249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6250. printf %s "checking for $ac_word... " >&6; }
  6251. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  6252. then :
  6253. printf %s "(cached) " >&6
  6254. else $as_nop
  6255. if test -n "$ac_ct_RANLIB"; then
  6256. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6257. else
  6258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6259. for as_dir in $PATH
  6260. do
  6261. IFS=$as_save_IFS
  6262. case $as_dir in #(((
  6263. '') as_dir=./ ;;
  6264. */) ;;
  6265. *) as_dir=$as_dir/ ;;
  6266. esac
  6267. for ac_exec_ext in '' $ac_executable_extensions; do
  6268. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6269. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6270. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6271. break 2
  6272. fi
  6273. done
  6274. done
  6275. IFS=$as_save_IFS
  6276. fi
  6277. fi
  6278. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6279. if test -n "$ac_ct_RANLIB"; then
  6280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6281. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  6282. else
  6283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6284. printf "%s\n" "no" >&6; }
  6285. fi
  6286. if test "x$ac_ct_RANLIB" = x; then
  6287. RANLIB=":"
  6288. else
  6289. case $cross_compiling:$ac_tool_warned in
  6290. yes:)
  6291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6292. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6293. ac_tool_warned=yes ;;
  6294. esac
  6295. RANLIB=$ac_ct_RANLIB
  6296. fi
  6297. else
  6298. RANLIB="$ac_cv_prog_RANLIB"
  6299. fi
  6300. # Check whether --enable-m32 was given.
  6301. if test ${enable_m32+y}
  6302. then :
  6303. enableval=$enable_m32;
  6304. else $as_nop
  6305. enable_m32=no
  6306. fi
  6307. if test "x$enable_m32" = xyes; then
  6308. CFLAGS="${CFLAGS} -m32"
  6309. CXXFLAGS="${CXXFLAGS} -m32"
  6310. fi
  6311. # Check whether --enable-largefile was given.
  6312. if test ${enable_largefile+y}
  6313. then :
  6314. enableval=$enable_largefile;
  6315. fi
  6316. if test "$enable_largefile" != no; then
  6317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  6318. printf %s "checking for special C compiler options needed for large files... " >&6; }
  6319. if test ${ac_cv_sys_largefile_CC+y}
  6320. then :
  6321. printf %s "(cached) " >&6
  6322. else $as_nop
  6323. ac_cv_sys_largefile_CC=no
  6324. if test "$GCC" != yes; then
  6325. ac_save_CC=$CC
  6326. while :; do
  6327. # IRIX 6.2 and later do not support large files by default,
  6328. # so use the C compiler's -n32 option if that helps.
  6329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6330. /* end confdefs.h. */
  6331. #include <sys/types.h>
  6332. /* Check that off_t can represent 2**63 - 1 correctly.
  6333. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6334. since some C++ compilers masquerading as C compilers
  6335. incorrectly reject 9223372036854775807. */
  6336. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  6337. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6338. && LARGE_OFF_T % 2147483647 == 1)
  6339. ? 1 : -1];
  6340. int
  6341. main (void)
  6342. {
  6343. ;
  6344. return 0;
  6345. }
  6346. _ACEOF
  6347. if ac_fn_c_try_compile "$LINENO"
  6348. then :
  6349. break
  6350. fi
  6351. rm -f core conftest.err conftest.$ac_objext conftest.beam
  6352. CC="$CC -n32"
  6353. if ac_fn_c_try_compile "$LINENO"
  6354. then :
  6355. ac_cv_sys_largefile_CC=' -n32'; break
  6356. fi
  6357. rm -f core conftest.err conftest.$ac_objext conftest.beam
  6358. break
  6359. done
  6360. CC=$ac_save_CC
  6361. rm -f conftest.$ac_ext
  6362. fi
  6363. fi
  6364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  6365. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  6366. if test "$ac_cv_sys_largefile_CC" != no; then
  6367. CC=$CC$ac_cv_sys_largefile_CC
  6368. fi
  6369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  6370. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  6371. if test ${ac_cv_sys_file_offset_bits+y}
  6372. then :
  6373. printf %s "(cached) " >&6
  6374. else $as_nop
  6375. while :; do
  6376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6377. /* end confdefs.h. */
  6378. #include <sys/types.h>
  6379. /* Check that off_t can represent 2**63 - 1 correctly.
  6380. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6381. since some C++ compilers masquerading as C compilers
  6382. incorrectly reject 9223372036854775807. */
  6383. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  6384. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6385. && LARGE_OFF_T % 2147483647 == 1)
  6386. ? 1 : -1];
  6387. int
  6388. main (void)
  6389. {
  6390. ;
  6391. return 0;
  6392. }
  6393. _ACEOF
  6394. if ac_fn_c_try_compile "$LINENO"
  6395. then :
  6396. ac_cv_sys_file_offset_bits=no; break
  6397. fi
  6398. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6400. /* end confdefs.h. */
  6401. #define _FILE_OFFSET_BITS 64
  6402. #include <sys/types.h>
  6403. /* Check that off_t can represent 2**63 - 1 correctly.
  6404. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6405. since some C++ compilers masquerading as C compilers
  6406. incorrectly reject 9223372036854775807. */
  6407. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  6408. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6409. && LARGE_OFF_T % 2147483647 == 1)
  6410. ? 1 : -1];
  6411. int
  6412. main (void)
  6413. {
  6414. ;
  6415. return 0;
  6416. }
  6417. _ACEOF
  6418. if ac_fn_c_try_compile "$LINENO"
  6419. then :
  6420. ac_cv_sys_file_offset_bits=64; break
  6421. fi
  6422. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6423. ac_cv_sys_file_offset_bits=unknown
  6424. break
  6425. done
  6426. fi
  6427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  6428. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  6429. case $ac_cv_sys_file_offset_bits in #(
  6430. no | unknown) ;;
  6431. *)
  6432. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  6433. ;;
  6434. esac
  6435. rm -rf conftest*
  6436. if test $ac_cv_sys_file_offset_bits = unknown; then
  6437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  6438. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  6439. if test ${ac_cv_sys_large_files+y}
  6440. then :
  6441. printf %s "(cached) " >&6
  6442. else $as_nop
  6443. while :; do
  6444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6445. /* end confdefs.h. */
  6446. #include <sys/types.h>
  6447. /* Check that off_t can represent 2**63 - 1 correctly.
  6448. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6449. since some C++ compilers masquerading as C compilers
  6450. incorrectly reject 9223372036854775807. */
  6451. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  6452. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6453. && LARGE_OFF_T % 2147483647 == 1)
  6454. ? 1 : -1];
  6455. int
  6456. main (void)
  6457. {
  6458. ;
  6459. return 0;
  6460. }
  6461. _ACEOF
  6462. if ac_fn_c_try_compile "$LINENO"
  6463. then :
  6464. ac_cv_sys_large_files=no; break
  6465. fi
  6466. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6468. /* end confdefs.h. */
  6469. #define _LARGE_FILES 1
  6470. #include <sys/types.h>
  6471. /* Check that off_t can represent 2**63 - 1 correctly.
  6472. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6473. since some C++ compilers masquerading as C compilers
  6474. incorrectly reject 9223372036854775807. */
  6475. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  6476. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6477. && LARGE_OFF_T % 2147483647 == 1)
  6478. ? 1 : -1];
  6479. int
  6480. main (void)
  6481. {
  6482. ;
  6483. return 0;
  6484. }
  6485. _ACEOF
  6486. if ac_fn_c_try_compile "$LINENO"
  6487. then :
  6488. ac_cv_sys_large_files=1; break
  6489. fi
  6490. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6491. ac_cv_sys_large_files=unknown
  6492. break
  6493. done
  6494. fi
  6495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  6496. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  6497. case $ac_cv_sys_large_files in #(
  6498. no | unknown) ;;
  6499. *)
  6500. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  6501. ;;
  6502. esac
  6503. rm -rf conftest*
  6504. fi
  6505. fi
  6506. ac_ext=c
  6507. ac_cpp='$CPP $CPPFLAGS'
  6508. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6509. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6510. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6511. ax_pthread_ok=no
  6512. # We used to check for pthread.h first, but this fails if pthread.h
  6513. # requires special compiler flags (e.g. on True64 or Sequent).
  6514. # It gets checked for in the link test anyway.
  6515. # First of all, check if the user has set any of the PTHREAD_LIBS,
  6516. # etcetera environment variables, and if threads linking works using
  6517. # them:
  6518. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  6519. save_CFLAGS="$CFLAGS"
  6520. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  6521. save_LIBS="$LIBS"
  6522. LIBS="$PTHREAD_LIBS $LIBS"
  6523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  6524. printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  6525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6526. /* end confdefs.h. */
  6527. /* Override any GCC internal prototype to avoid an error.
  6528. Use char because int might match the return type of a GCC
  6529. builtin and then its argument prototype would still apply. */
  6530. char pthread_join ();
  6531. int
  6532. main (void)
  6533. {
  6534. return pthread_join ();
  6535. ;
  6536. return 0;
  6537. }
  6538. _ACEOF
  6539. if ac_fn_c_try_link "$LINENO"
  6540. then :
  6541. ax_pthread_ok=yes
  6542. fi
  6543. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6544. conftest$ac_exeext conftest.$ac_ext
  6545. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  6546. printf "%s\n" "$ax_pthread_ok" >&6; }
  6547. if test x"$ax_pthread_ok" = xno; then
  6548. PTHREAD_LIBS=""
  6549. PTHREAD_CFLAGS=""
  6550. fi
  6551. LIBS="$save_LIBS"
  6552. CFLAGS="$save_CFLAGS"
  6553. fi
  6554. # We must check for the threads library under a number of different
  6555. # names; the ordering is very important because some systems
  6556. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  6557. # libraries is broken (non-POSIX).
  6558. # Create a list of thread flags to try. Items starting with a "-" are
  6559. # C compiler flags, and other items are library names, except for "none"
  6560. # which indicates that we try without any flags at all, and "pthread-config"
  6561. # which is a program returning the flags for the Pth emulation library.
  6562. ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  6563. # The ordering *is* (sometimes) important. Some notes on the
  6564. # individual items follow:
  6565. # pthreads: AIX (must check this before -lpthread)
  6566. # none: in case threads are in libc; should be tried before -Kthread and
  6567. # other compiler flags to prevent continual compiler warnings
  6568. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  6569. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  6570. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  6571. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  6572. # -pthreads: Solaris/gcc
  6573. # -mthreads: Mingw32/gcc, Lynx/gcc
  6574. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  6575. # doesn't hurt to check since this sometimes defines pthreads too;
  6576. # also defines -D_REENTRANT)
  6577. # ... -mt is also the pthreads flag for HP/aCC
  6578. # pthread: Linux, etcetera
  6579. # --thread-safe: KAI C++
  6580. # pthread-config: use pthread-config program (for GNU Pth library)
  6581. case "${host_cpu}-${host_os}" in
  6582. *solaris*)
  6583. # On Solaris (at least, for some versions), libc contains stubbed
  6584. # (non-functional) versions of the pthreads routines, so link-based
  6585. # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  6586. # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  6587. # a function called by this macro, so we could check for that, but
  6588. # who knows whether they'll stub that too in a future libc.) So,
  6589. # we'll just look for -pthreads and -lpthread first:
  6590. ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
  6591. ;;
  6592. *-darwin*)
  6593. acx_pthread_flags="-pthread $acx_pthread_flags"
  6594. ;;
  6595. esac
  6596. if test x"$ax_pthread_ok" = xno; then
  6597. for flag in $ax_pthread_flags; do
  6598. case $flag in
  6599. none)
  6600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  6601. printf %s "checking whether pthreads work without any flags... " >&6; }
  6602. ;;
  6603. -*)
  6604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
  6605. printf %s "checking whether pthreads work with $flag... " >&6; }
  6606. PTHREAD_CFLAGS="$flag"
  6607. ;;
  6608. pthread-config)
  6609. # Extract the first word of "pthread-config", so it can be a program name with args.
  6610. set dummy pthread-config; ac_word=$2
  6611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6612. printf %s "checking for $ac_word... " >&6; }
  6613. if test ${ac_cv_prog_ax_pthread_config+y}
  6614. then :
  6615. printf %s "(cached) " >&6
  6616. else $as_nop
  6617. if test -n "$ax_pthread_config"; then
  6618. ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
  6619. else
  6620. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6621. for as_dir in $PATH
  6622. do
  6623. IFS=$as_save_IFS
  6624. case $as_dir in #(((
  6625. '') as_dir=./ ;;
  6626. */) ;;
  6627. *) as_dir=$as_dir/ ;;
  6628. esac
  6629. for ac_exec_ext in '' $ac_executable_extensions; do
  6630. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6631. ac_cv_prog_ax_pthread_config="yes"
  6632. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6633. break 2
  6634. fi
  6635. done
  6636. done
  6637. IFS=$as_save_IFS
  6638. test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
  6639. fi
  6640. fi
  6641. ax_pthread_config=$ac_cv_prog_ax_pthread_config
  6642. if test -n "$ax_pthread_config"; then
  6643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
  6644. printf "%s\n" "$ax_pthread_config" >&6; }
  6645. else
  6646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6647. printf "%s\n" "no" >&6; }
  6648. fi
  6649. if test x"$ax_pthread_config" = xno; then continue; fi
  6650. PTHREAD_CFLAGS="`pthread-config --cflags`"
  6651. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  6652. ;;
  6653. *)
  6654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
  6655. printf %s "checking for the pthreads library -l$flag... " >&6; }
  6656. PTHREAD_LIBS="-l$flag"
  6657. ;;
  6658. esac
  6659. save_LIBS="$LIBS"
  6660. save_CFLAGS="$CFLAGS"
  6661. LIBS="$PTHREAD_LIBS $LIBS"
  6662. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  6663. # Check for various functions. We must include pthread.h,
  6664. # since some functions may be macros. (On the Sequent, we
  6665. # need a special flag -Kthread to make this header compile.)
  6666. # We check for pthread_join because it is in -lpthread on IRIX
  6667. # while pthread_create is in libc. We check for pthread_attr_init
  6668. # due to DEC craziness with -lpthreads. We check for
  6669. # pthread_cleanup_push because it is one of the few pthread
  6670. # functions on Solaris that doesn't have a non-functional libc stub.
  6671. # We try pthread_create on general principles.
  6672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6673. /* end confdefs.h. */
  6674. #include <pthread.h>
  6675. static void routine(void* a) {a=0;}
  6676. static void* start_routine(void* a) {return a;}
  6677. int
  6678. main (void)
  6679. {
  6680. pthread_t th; pthread_attr_t attr;
  6681. pthread_join(th, 0);
  6682. pthread_attr_init(&attr);
  6683. pthread_cleanup_push(routine, 0);
  6684. pthread_create(&th,0,start_routine,0);
  6685. pthread_cleanup_pop(0);
  6686. ;
  6687. return 0;
  6688. }
  6689. _ACEOF
  6690. if ac_fn_c_try_link "$LINENO"
  6691. then :
  6692. ax_pthread_ok=yes
  6693. fi
  6694. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6695. conftest$ac_exeext conftest.$ac_ext
  6696. LIBS="$save_LIBS"
  6697. CFLAGS="$save_CFLAGS"
  6698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  6699. printf "%s\n" "$ax_pthread_ok" >&6; }
  6700. if test "x$ax_pthread_ok" = xyes; then
  6701. break;
  6702. fi
  6703. PTHREAD_LIBS=""
  6704. PTHREAD_CFLAGS=""
  6705. done
  6706. fi
  6707. # Various other checks:
  6708. if test "x$ax_pthread_ok" = xyes; then
  6709. save_LIBS="$LIBS"
  6710. LIBS="$PTHREAD_LIBS $LIBS"
  6711. save_CFLAGS="$CFLAGS"
  6712. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  6713. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  6714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  6715. printf %s "checking for joinable pthread attribute... " >&6; }
  6716. attr_name=unknown
  6717. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  6718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6719. /* end confdefs.h. */
  6720. #include <pthread.h>
  6721. int
  6722. main (void)
  6723. {
  6724. int attr=$attr; return attr;
  6725. ;
  6726. return 0;
  6727. }
  6728. _ACEOF
  6729. if ac_fn_c_try_link "$LINENO"
  6730. then :
  6731. attr_name=$attr; break
  6732. fi
  6733. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6734. conftest$ac_exeext conftest.$ac_ext
  6735. done
  6736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
  6737. printf "%s\n" "$attr_name" >&6; }
  6738. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  6739. printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h
  6740. fi
  6741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
  6742. printf %s "checking if more special flags are required for pthreads... " >&6; }
  6743. flag=no
  6744. case "${host_cpu}-${host_os}" in
  6745. *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
  6746. *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
  6747. esac
  6748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
  6749. printf "%s\n" "${flag}" >&6; }
  6750. if test "x$flag" != xno; then
  6751. PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  6752. fi
  6753. LIBS="$save_LIBS"
  6754. CFLAGS="$save_CFLAGS"
  6755. # More AIX lossage: must compile with xlc_r or cc_r
  6756. if test x"$GCC" != xyes; then
  6757. for ac_prog in xlc_r cc_r
  6758. do
  6759. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6760. set dummy $ac_prog; ac_word=$2
  6761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6762. printf %s "checking for $ac_word... " >&6; }
  6763. if test ${ac_cv_prog_PTHREAD_CC+y}
  6764. then :
  6765. printf %s "(cached) " >&6
  6766. else $as_nop
  6767. if test -n "$PTHREAD_CC"; then
  6768. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  6769. else
  6770. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6771. for as_dir in $PATH
  6772. do
  6773. IFS=$as_save_IFS
  6774. case $as_dir in #(((
  6775. '') as_dir=./ ;;
  6776. */) ;;
  6777. *) as_dir=$as_dir/ ;;
  6778. esac
  6779. for ac_exec_ext in '' $ac_executable_extensions; do
  6780. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6781. ac_cv_prog_PTHREAD_CC="$ac_prog"
  6782. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6783. break 2
  6784. fi
  6785. done
  6786. done
  6787. IFS=$as_save_IFS
  6788. fi
  6789. fi
  6790. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  6791. if test -n "$PTHREAD_CC"; then
  6792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  6793. printf "%s\n" "$PTHREAD_CC" >&6; }
  6794. else
  6795. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6796. printf "%s\n" "no" >&6; }
  6797. fi
  6798. test -n "$PTHREAD_CC" && break
  6799. done
  6800. test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
  6801. else
  6802. PTHREAD_CC=$CC
  6803. fi
  6804. else
  6805. PTHREAD_CC="$CC"
  6806. fi
  6807. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  6808. if test x"$ax_pthread_ok" = xyes; then
  6809. printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
  6810. :
  6811. else
  6812. ax_pthread_ok=no
  6813. fi
  6814. ac_ext=c
  6815. ac_cpp='$CPP $CPPFLAGS'
  6816. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6817. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6818. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6819. ac_header= ac_cache=
  6820. for ac_item in $ac_header_c_list
  6821. do
  6822. if test $ac_cache; then
  6823. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  6824. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  6825. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  6826. fi
  6827. ac_header= ac_cache=
  6828. elif test $ac_header; then
  6829. ac_cache=$ac_item
  6830. else
  6831. ac_header=$ac_item
  6832. fi
  6833. done
  6834. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  6835. then :
  6836. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  6837. fi
  6838. ac_fn_c_check_header_compile "$LINENO" "a.out.h" "ac_cv_header_a_out_h" "$ac_includes_default"
  6839. if test "x$ac_cv_header_a_out_h" = xyes
  6840. then :
  6841. printf "%s\n" "#define HAVE_A_OUT_H 1" >>confdefs.h
  6842. fi
  6843. ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
  6844. if test "x$ac_cv_header_sys_mman_h" = xyes
  6845. then :
  6846. printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
  6847. fi
  6848. ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
  6849. if test "x$ac_cv_header_sys_random_h" = xyes
  6850. then :
  6851. printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
  6852. fi
  6853. ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
  6854. if test "x$ac_cv_func_arc4random" = xyes
  6855. then :
  6856. printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h
  6857. fi
  6858. ac_fn_c_check_func "$LINENO" "getcontext" "ac_cv_func_getcontext"
  6859. if test "x$ac_cv_func_getcontext" = xyes
  6860. then :
  6861. printf "%s\n" "#define HAVE_GETCONTEXT 1" >>confdefs.h
  6862. fi
  6863. ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
  6864. if test "x$ac_cv_func_getrandom" = xyes
  6865. then :
  6866. printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
  6867. fi
  6868. ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create"
  6869. if test "x$ac_cv_func_memfd_create" = xyes
  6870. then :
  6871. printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
  6872. fi
  6873. if test "x$ac_cv_func_getcontext" = xyes; then
  6874. HAVE_GETCONTEXT_TRUE=
  6875. HAVE_GETCONTEXT_FALSE='#'
  6876. else
  6877. HAVE_GETCONTEXT_TRUE='#'
  6878. HAVE_GETCONTEXT_FALSE=
  6879. fi
  6880. if test "x$ac_cv_func_memfd_create" = xyes; then
  6881. HAVE_MEMFD_CREATE_TRUE=
  6882. HAVE_MEMFD_CREATE_FALSE='#'
  6883. else
  6884. HAVE_MEMFD_CREATE_TRUE='#'
  6885. HAVE_MEMFD_CREATE_FALSE=
  6886. fi
  6887. ax_cxx_compile_alternatives="17 1z" ax_cxx_compile_cxx17_required=true
  6888. ac_ext=cpp
  6889. ac_cpp='$CXXCPP $CPPFLAGS'
  6890. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6891. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6892. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6893. ac_success=no
  6894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features by default" >&5
  6895. printf %s "checking whether $CXX supports C++17 features by default... " >&6; }
  6896. if test ${ax_cv_cxx_compile_cxx17+y}
  6897. then :
  6898. printf %s "(cached) " >&6
  6899. else $as_nop
  6900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6901. /* end confdefs.h. */
  6902. // If the compiler admits that it is not ready for C++11, why torture it?
  6903. // Hopefully, this will speed up the test.
  6904. #ifndef __cplusplus
  6905. #error "This is not a C++ compiler"
  6906. // MSVC always sets __cplusplus to 199711L in older versions; newer versions
  6907. // only set it correctly if /Zc:__cplusplus is specified as well as a
  6908. // /std:c++NN switch:
  6909. // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
  6910. #elif __cplusplus < 201103L && !defined _MSC_VER
  6911. #error "This is not a C++11 compiler"
  6912. #else
  6913. namespace cxx11
  6914. {
  6915. namespace test_static_assert
  6916. {
  6917. template <typename T>
  6918. struct check
  6919. {
  6920. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  6921. };
  6922. }
  6923. namespace test_final_override
  6924. {
  6925. struct Base
  6926. {
  6927. virtual ~Base() {}
  6928. virtual void f() {}
  6929. };
  6930. struct Derived : public Base
  6931. {
  6932. virtual ~Derived() override {}
  6933. virtual void f() override {}
  6934. };
  6935. }
  6936. namespace test_double_right_angle_brackets
  6937. {
  6938. template < typename T >
  6939. struct check {};
  6940. typedef check<void> single_type;
  6941. typedef check<check<void>> double_type;
  6942. typedef check<check<check<void>>> triple_type;
  6943. typedef check<check<check<check<void>>>> quadruple_type;
  6944. }
  6945. namespace test_decltype
  6946. {
  6947. int
  6948. f()
  6949. {
  6950. int a = 1;
  6951. decltype(a) b = 2;
  6952. return a + b;
  6953. }
  6954. }
  6955. namespace test_type_deduction
  6956. {
  6957. template < typename T1, typename T2 >
  6958. struct is_same
  6959. {
  6960. static const bool value = false;
  6961. };
  6962. template < typename T >
  6963. struct is_same<T, T>
  6964. {
  6965. static const bool value = true;
  6966. };
  6967. template < typename T1, typename T2 >
  6968. auto
  6969. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  6970. {
  6971. return a1 + a2;
  6972. }
  6973. int
  6974. test(const int c, volatile int v)
  6975. {
  6976. static_assert(is_same<int, decltype(0)>::value == true, "");
  6977. static_assert(is_same<int, decltype(c)>::value == false, "");
  6978. static_assert(is_same<int, decltype(v)>::value == false, "");
  6979. auto ac = c;
  6980. auto av = v;
  6981. auto sumi = ac + av + 'x';
  6982. auto sumf = ac + av + 1.0;
  6983. static_assert(is_same<int, decltype(ac)>::value == true, "");
  6984. static_assert(is_same<int, decltype(av)>::value == true, "");
  6985. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  6986. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  6987. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  6988. return (sumf > 0.0) ? sumi : add(c, v);
  6989. }
  6990. }
  6991. namespace test_noexcept
  6992. {
  6993. int f() { return 0; }
  6994. int g() noexcept { return 0; }
  6995. static_assert(noexcept(f()) == false, "");
  6996. static_assert(noexcept(g()) == true, "");
  6997. }
  6998. namespace test_constexpr
  6999. {
  7000. template < typename CharT >
  7001. unsigned long constexpr
  7002. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  7003. {
  7004. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  7005. }
  7006. template < typename CharT >
  7007. unsigned long constexpr
  7008. strlen_c(const CharT *const s) noexcept
  7009. {
  7010. return strlen_c_r(s, 0UL);
  7011. }
  7012. static_assert(strlen_c("") == 0UL, "");
  7013. static_assert(strlen_c("1") == 1UL, "");
  7014. static_assert(strlen_c("example") == 7UL, "");
  7015. static_assert(strlen_c("another\0example") == 7UL, "");
  7016. }
  7017. namespace test_rvalue_references
  7018. {
  7019. template < int N >
  7020. struct answer
  7021. {
  7022. static constexpr int value = N;
  7023. };
  7024. answer<1> f(int&) { return answer<1>(); }
  7025. answer<2> f(const int&) { return answer<2>(); }
  7026. answer<3> f(int&&) { return answer<3>(); }
  7027. void
  7028. test()
  7029. {
  7030. int i = 0;
  7031. const int c = 0;
  7032. static_assert(decltype(f(i))::value == 1, "");
  7033. static_assert(decltype(f(c))::value == 2, "");
  7034. static_assert(decltype(f(0))::value == 3, "");
  7035. }
  7036. }
  7037. namespace test_uniform_initialization
  7038. {
  7039. struct test
  7040. {
  7041. static const int zero {};
  7042. static const int one {1};
  7043. };
  7044. static_assert(test::zero == 0, "");
  7045. static_assert(test::one == 1, "");
  7046. }
  7047. namespace test_lambdas
  7048. {
  7049. void
  7050. test1()
  7051. {
  7052. auto lambda1 = [](){};
  7053. auto lambda2 = lambda1;
  7054. lambda1();
  7055. lambda2();
  7056. }
  7057. int
  7058. test2()
  7059. {
  7060. auto a = [](int i, int j){ return i + j; }(1, 2);
  7061. auto b = []() -> int { return '0'; }();
  7062. auto c = [=](){ return a + b; }();
  7063. auto d = [&](){ return c; }();
  7064. auto e = [a, &b](int x) mutable {
  7065. const auto identity = [](int y){ return y; };
  7066. for (auto i = 0; i < a; ++i)
  7067. a += b--;
  7068. return x + identity(a + b);
  7069. }(0);
  7070. return a + b + c + d + e;
  7071. }
  7072. int
  7073. test3()
  7074. {
  7075. const auto nullary = [](){ return 0; };
  7076. const auto unary = [](int x){ return x; };
  7077. using nullary_t = decltype(nullary);
  7078. using unary_t = decltype(unary);
  7079. const auto higher1st = [](nullary_t f){ return f(); };
  7080. const auto higher2nd = [unary](nullary_t f1){
  7081. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  7082. };
  7083. return higher1st(nullary) + higher2nd(nullary)(unary);
  7084. }
  7085. }
  7086. namespace test_variadic_templates
  7087. {
  7088. template <int...>
  7089. struct sum;
  7090. template <int N0, int... N1toN>
  7091. struct sum<N0, N1toN...>
  7092. {
  7093. static constexpr auto value = N0 + sum<N1toN...>::value;
  7094. };
  7095. template <>
  7096. struct sum<>
  7097. {
  7098. static constexpr auto value = 0;
  7099. };
  7100. static_assert(sum<>::value == 0, "");
  7101. static_assert(sum<1>::value == 1, "");
  7102. static_assert(sum<23>::value == 23, "");
  7103. static_assert(sum<1, 2>::value == 3, "");
  7104. static_assert(sum<5, 5, 11>::value == 21, "");
  7105. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  7106. }
  7107. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  7108. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  7109. // because of this.
  7110. namespace test_template_alias_sfinae
  7111. {
  7112. struct foo {};
  7113. template<typename T>
  7114. using member = typename T::member_type;
  7115. template<typename T>
  7116. void func(...) {}
  7117. template<typename T>
  7118. void func(member<T>*) {}
  7119. void test();
  7120. void test() { func<foo>(0); }
  7121. }
  7122. } // namespace cxx11
  7123. #endif // __cplusplus >= 201103L
  7124. // If the compiler admits that it is not ready for C++14, why torture it?
  7125. // Hopefully, this will speed up the test.
  7126. #ifndef __cplusplus
  7127. #error "This is not a C++ compiler"
  7128. #elif __cplusplus < 201402L && !defined _MSC_VER
  7129. #error "This is not a C++14 compiler"
  7130. #else
  7131. namespace cxx14
  7132. {
  7133. namespace test_polymorphic_lambdas
  7134. {
  7135. int
  7136. test()
  7137. {
  7138. const auto lambda = [](auto&&... args){
  7139. const auto istiny = [](auto x){
  7140. return (sizeof(x) == 1UL) ? 1 : 0;
  7141. };
  7142. const int aretiny[] = { istiny(args)... };
  7143. return aretiny[0];
  7144. };
  7145. return lambda(1, 1L, 1.0f, '1');
  7146. }
  7147. }
  7148. namespace test_binary_literals
  7149. {
  7150. constexpr auto ivii = 0b0000000000101010;
  7151. static_assert(ivii == 42, "wrong value");
  7152. }
  7153. namespace test_generalized_constexpr
  7154. {
  7155. template < typename CharT >
  7156. constexpr unsigned long
  7157. strlen_c(const CharT *const s) noexcept
  7158. {
  7159. auto length = 0UL;
  7160. for (auto p = s; *p; ++p)
  7161. ++length;
  7162. return length;
  7163. }
  7164. static_assert(strlen_c("") == 0UL, "");
  7165. static_assert(strlen_c("x") == 1UL, "");
  7166. static_assert(strlen_c("test") == 4UL, "");
  7167. static_assert(strlen_c("another\0test") == 7UL, "");
  7168. }
  7169. namespace test_lambda_init_capture
  7170. {
  7171. int
  7172. test()
  7173. {
  7174. auto x = 0;
  7175. const auto lambda1 = [a = x](int b){ return a + b; };
  7176. const auto lambda2 = [a = lambda1(x)](){ return a; };
  7177. return lambda2();
  7178. }
  7179. }
  7180. namespace test_digit_separators
  7181. {
  7182. constexpr auto ten_million = 100'000'000;
  7183. static_assert(ten_million == 100000000, "");
  7184. }
  7185. namespace test_return_type_deduction
  7186. {
  7187. auto f(int& x) { return x; }
  7188. decltype(auto) g(int& x) { return x; }
  7189. template < typename T1, typename T2 >
  7190. struct is_same
  7191. {
  7192. static constexpr auto value = false;
  7193. };
  7194. template < typename T >
  7195. struct is_same<T, T>
  7196. {
  7197. static constexpr auto value = true;
  7198. };
  7199. int
  7200. test()
  7201. {
  7202. auto x = 0;
  7203. static_assert(is_same<int, decltype(f(x))>::value, "");
  7204. static_assert(is_same<int&, decltype(g(x))>::value, "");
  7205. return x;
  7206. }
  7207. }
  7208. } // namespace cxx14
  7209. #endif // __cplusplus >= 201402L
  7210. // If the compiler admits that it is not ready for C++17, why torture it?
  7211. // Hopefully, this will speed up the test.
  7212. #ifndef __cplusplus
  7213. #error "This is not a C++ compiler"
  7214. #elif __cplusplus < 201703L && !defined _MSC_VER
  7215. #error "This is not a C++17 compiler"
  7216. #else
  7217. #include <initializer_list>
  7218. #include <utility>
  7219. #include <type_traits>
  7220. namespace cxx17
  7221. {
  7222. namespace test_constexpr_lambdas
  7223. {
  7224. constexpr int foo = [](){return 42;}();
  7225. }
  7226. namespace test::nested_namespace::definitions
  7227. {
  7228. }
  7229. namespace test_fold_expression
  7230. {
  7231. template<typename... Args>
  7232. int multiply(Args... args)
  7233. {
  7234. return (args * ... * 1);
  7235. }
  7236. template<typename... Args>
  7237. bool all(Args... args)
  7238. {
  7239. return (args && ...);
  7240. }
  7241. }
  7242. namespace test_extended_static_assert
  7243. {
  7244. static_assert (true);
  7245. }
  7246. namespace test_auto_brace_init_list
  7247. {
  7248. auto foo = {5};
  7249. auto bar {5};
  7250. static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
  7251. static_assert(std::is_same<int, decltype(bar)>::value);
  7252. }
  7253. namespace test_typename_in_template_template_parameter
  7254. {
  7255. template<template<typename> typename X> struct D;
  7256. }
  7257. namespace test_fallthrough_nodiscard_maybe_unused_attributes
  7258. {
  7259. int f1()
  7260. {
  7261. return 42;
  7262. }
  7263. [[nodiscard]] int f2()
  7264. {
  7265. [[maybe_unused]] auto unused = f1();
  7266. switch (f1())
  7267. {
  7268. case 17:
  7269. f1();
  7270. [[fallthrough]];
  7271. case 42:
  7272. f1();
  7273. }
  7274. return f1();
  7275. }
  7276. }
  7277. namespace test_extended_aggregate_initialization
  7278. {
  7279. struct base1
  7280. {
  7281. int b1, b2 = 42;
  7282. };
  7283. struct base2
  7284. {
  7285. base2() {
  7286. b3 = 42;
  7287. }
  7288. int b3;
  7289. };
  7290. struct derived : base1, base2
  7291. {
  7292. int d;
  7293. };
  7294. derived d1 {{1, 2}, {}, 4}; // full initialization
  7295. derived d2 {{}, {}, 4}; // value-initialized bases
  7296. }
  7297. namespace test_general_range_based_for_loop
  7298. {
  7299. struct iter
  7300. {
  7301. int i;
  7302. int& operator* ()
  7303. {
  7304. return i;
  7305. }
  7306. const int& operator* () const
  7307. {
  7308. return i;
  7309. }
  7310. iter& operator++()
  7311. {
  7312. ++i;
  7313. return *this;
  7314. }
  7315. };
  7316. struct sentinel
  7317. {
  7318. int i;
  7319. };
  7320. bool operator== (const iter& i, const sentinel& s)
  7321. {
  7322. return i.i == s.i;
  7323. }
  7324. bool operator!= (const iter& i, const sentinel& s)
  7325. {
  7326. return !(i == s);
  7327. }
  7328. struct range
  7329. {
  7330. iter begin() const
  7331. {
  7332. return {0};
  7333. }
  7334. sentinel end() const
  7335. {
  7336. return {5};
  7337. }
  7338. };
  7339. void f()
  7340. {
  7341. range r {};
  7342. for (auto i : r)
  7343. {
  7344. [[maybe_unused]] auto v = i;
  7345. }
  7346. }
  7347. }
  7348. namespace test_lambda_capture_asterisk_this_by_value
  7349. {
  7350. struct t
  7351. {
  7352. int i;
  7353. int foo()
  7354. {
  7355. return [*this]()
  7356. {
  7357. return i;
  7358. }();
  7359. }
  7360. };
  7361. }
  7362. namespace test_enum_class_construction
  7363. {
  7364. enum class byte : unsigned char
  7365. {};
  7366. byte foo {42};
  7367. }
  7368. namespace test_constexpr_if
  7369. {
  7370. template <bool cond>
  7371. int f ()
  7372. {
  7373. if constexpr(cond)
  7374. {
  7375. return 13;
  7376. }
  7377. else
  7378. {
  7379. return 42;
  7380. }
  7381. }
  7382. }
  7383. namespace test_selection_statement_with_initializer
  7384. {
  7385. int f()
  7386. {
  7387. return 13;
  7388. }
  7389. int f2()
  7390. {
  7391. if (auto i = f(); i > 0)
  7392. {
  7393. return 3;
  7394. }
  7395. switch (auto i = f(); i + 4)
  7396. {
  7397. case 17:
  7398. return 2;
  7399. default:
  7400. return 1;
  7401. }
  7402. }
  7403. }
  7404. namespace test_template_argument_deduction_for_class_templates
  7405. {
  7406. template <typename T1, typename T2>
  7407. struct pair
  7408. {
  7409. pair (T1 p1, T2 p2)
  7410. : m1 {p1},
  7411. m2 {p2}
  7412. {}
  7413. T1 m1;
  7414. T2 m2;
  7415. };
  7416. void f()
  7417. {
  7418. [[maybe_unused]] auto p = pair{13, 42u};
  7419. }
  7420. }
  7421. namespace test_non_type_auto_template_parameters
  7422. {
  7423. template <auto n>
  7424. struct B
  7425. {};
  7426. B<5> b1;
  7427. B<'a'> b2;
  7428. }
  7429. namespace test_structured_bindings
  7430. {
  7431. int arr[2] = { 1, 2 };
  7432. std::pair<int, int> pr = { 1, 2 };
  7433. auto f1() -> int(&)[2]
  7434. {
  7435. return arr;
  7436. }
  7437. auto f2() -> std::pair<int, int>&
  7438. {
  7439. return pr;
  7440. }
  7441. struct S
  7442. {
  7443. int x1 : 2;
  7444. volatile double y1;
  7445. };
  7446. S f3()
  7447. {
  7448. return {};
  7449. }
  7450. auto [ x1, y1 ] = f1();
  7451. auto& [ xr1, yr1 ] = f1();
  7452. auto [ x2, y2 ] = f2();
  7453. auto& [ xr2, yr2 ] = f2();
  7454. const auto [ x3, y3 ] = f3();
  7455. }
  7456. namespace test_exception_spec_type_system
  7457. {
  7458. struct Good {};
  7459. struct Bad {};
  7460. void g1() noexcept;
  7461. void g2();
  7462. template<typename T>
  7463. Bad
  7464. f(T*, T*);
  7465. template<typename T1, typename T2>
  7466. Good
  7467. f(T1*, T2*);
  7468. static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
  7469. }
  7470. namespace test_inline_variables
  7471. {
  7472. template<class T> void f(T)
  7473. {}
  7474. template<class T> inline T g(T)
  7475. {
  7476. return T{};
  7477. }
  7478. template<> inline void f<>(int)
  7479. {}
  7480. template<> int g<>(int)
  7481. {
  7482. return 5;
  7483. }
  7484. }
  7485. } // namespace cxx17
  7486. #endif // __cplusplus < 201703L && !defined _MSC_VER
  7487. _ACEOF
  7488. if ac_fn_cxx_try_compile "$LINENO"
  7489. then :
  7490. ax_cv_cxx_compile_cxx17=yes
  7491. else $as_nop
  7492. ax_cv_cxx_compile_cxx17=no
  7493. fi
  7494. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7495. fi
  7496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx17" >&5
  7497. printf "%s\n" "$ax_cv_cxx_compile_cxx17" >&6; }
  7498. if test x$ax_cv_cxx_compile_cxx17 = xyes; then
  7499. ac_success=yes
  7500. fi
  7501. if test x$ac_success = xno; then
  7502. for alternative in ${ax_cxx_compile_alternatives}; do
  7503. switch="-std=gnu++${alternative}"
  7504. cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh`
  7505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
  7506. printf %s "checking whether $CXX supports C++17 features with $switch... " >&6; }
  7507. if eval test \${$cachevar+y}
  7508. then :
  7509. printf %s "(cached) " >&6
  7510. else $as_nop
  7511. ac_save_CXX="$CXX"
  7512. CXX="$CXX $switch"
  7513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7514. /* end confdefs.h. */
  7515. // If the compiler admits that it is not ready for C++11, why torture it?
  7516. // Hopefully, this will speed up the test.
  7517. #ifndef __cplusplus
  7518. #error "This is not a C++ compiler"
  7519. // MSVC always sets __cplusplus to 199711L in older versions; newer versions
  7520. // only set it correctly if /Zc:__cplusplus is specified as well as a
  7521. // /std:c++NN switch:
  7522. // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
  7523. #elif __cplusplus < 201103L && !defined _MSC_VER
  7524. #error "This is not a C++11 compiler"
  7525. #else
  7526. namespace cxx11
  7527. {
  7528. namespace test_static_assert
  7529. {
  7530. template <typename T>
  7531. struct check
  7532. {
  7533. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  7534. };
  7535. }
  7536. namespace test_final_override
  7537. {
  7538. struct Base
  7539. {
  7540. virtual ~Base() {}
  7541. virtual void f() {}
  7542. };
  7543. struct Derived : public Base
  7544. {
  7545. virtual ~Derived() override {}
  7546. virtual void f() override {}
  7547. };
  7548. }
  7549. namespace test_double_right_angle_brackets
  7550. {
  7551. template < typename T >
  7552. struct check {};
  7553. typedef check<void> single_type;
  7554. typedef check<check<void>> double_type;
  7555. typedef check<check<check<void>>> triple_type;
  7556. typedef check<check<check<check<void>>>> quadruple_type;
  7557. }
  7558. namespace test_decltype
  7559. {
  7560. int
  7561. f()
  7562. {
  7563. int a = 1;
  7564. decltype(a) b = 2;
  7565. return a + b;
  7566. }
  7567. }
  7568. namespace test_type_deduction
  7569. {
  7570. template < typename T1, typename T2 >
  7571. struct is_same
  7572. {
  7573. static const bool value = false;
  7574. };
  7575. template < typename T >
  7576. struct is_same<T, T>
  7577. {
  7578. static const bool value = true;
  7579. };
  7580. template < typename T1, typename T2 >
  7581. auto
  7582. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  7583. {
  7584. return a1 + a2;
  7585. }
  7586. int
  7587. test(const int c, volatile int v)
  7588. {
  7589. static_assert(is_same<int, decltype(0)>::value == true, "");
  7590. static_assert(is_same<int, decltype(c)>::value == false, "");
  7591. static_assert(is_same<int, decltype(v)>::value == false, "");
  7592. auto ac = c;
  7593. auto av = v;
  7594. auto sumi = ac + av + 'x';
  7595. auto sumf = ac + av + 1.0;
  7596. static_assert(is_same<int, decltype(ac)>::value == true, "");
  7597. static_assert(is_same<int, decltype(av)>::value == true, "");
  7598. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  7599. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  7600. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  7601. return (sumf > 0.0) ? sumi : add(c, v);
  7602. }
  7603. }
  7604. namespace test_noexcept
  7605. {
  7606. int f() { return 0; }
  7607. int g() noexcept { return 0; }
  7608. static_assert(noexcept(f()) == false, "");
  7609. static_assert(noexcept(g()) == true, "");
  7610. }
  7611. namespace test_constexpr
  7612. {
  7613. template < typename CharT >
  7614. unsigned long constexpr
  7615. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  7616. {
  7617. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  7618. }
  7619. template < typename CharT >
  7620. unsigned long constexpr
  7621. strlen_c(const CharT *const s) noexcept
  7622. {
  7623. return strlen_c_r(s, 0UL);
  7624. }
  7625. static_assert(strlen_c("") == 0UL, "");
  7626. static_assert(strlen_c("1") == 1UL, "");
  7627. static_assert(strlen_c("example") == 7UL, "");
  7628. static_assert(strlen_c("another\0example") == 7UL, "");
  7629. }
  7630. namespace test_rvalue_references
  7631. {
  7632. template < int N >
  7633. struct answer
  7634. {
  7635. static constexpr int value = N;
  7636. };
  7637. answer<1> f(int&) { return answer<1>(); }
  7638. answer<2> f(const int&) { return answer<2>(); }
  7639. answer<3> f(int&&) { return answer<3>(); }
  7640. void
  7641. test()
  7642. {
  7643. int i = 0;
  7644. const int c = 0;
  7645. static_assert(decltype(f(i))::value == 1, "");
  7646. static_assert(decltype(f(c))::value == 2, "");
  7647. static_assert(decltype(f(0))::value == 3, "");
  7648. }
  7649. }
  7650. namespace test_uniform_initialization
  7651. {
  7652. struct test
  7653. {
  7654. static const int zero {};
  7655. static const int one {1};
  7656. };
  7657. static_assert(test::zero == 0, "");
  7658. static_assert(test::one == 1, "");
  7659. }
  7660. namespace test_lambdas
  7661. {
  7662. void
  7663. test1()
  7664. {
  7665. auto lambda1 = [](){};
  7666. auto lambda2 = lambda1;
  7667. lambda1();
  7668. lambda2();
  7669. }
  7670. int
  7671. test2()
  7672. {
  7673. auto a = [](int i, int j){ return i + j; }(1, 2);
  7674. auto b = []() -> int { return '0'; }();
  7675. auto c = [=](){ return a + b; }();
  7676. auto d = [&](){ return c; }();
  7677. auto e = [a, &b](int x) mutable {
  7678. const auto identity = [](int y){ return y; };
  7679. for (auto i = 0; i < a; ++i)
  7680. a += b--;
  7681. return x + identity(a + b);
  7682. }(0);
  7683. return a + b + c + d + e;
  7684. }
  7685. int
  7686. test3()
  7687. {
  7688. const auto nullary = [](){ return 0; };
  7689. const auto unary = [](int x){ return x; };
  7690. using nullary_t = decltype(nullary);
  7691. using unary_t = decltype(unary);
  7692. const auto higher1st = [](nullary_t f){ return f(); };
  7693. const auto higher2nd = [unary](nullary_t f1){
  7694. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  7695. };
  7696. return higher1st(nullary) + higher2nd(nullary)(unary);
  7697. }
  7698. }
  7699. namespace test_variadic_templates
  7700. {
  7701. template <int...>
  7702. struct sum;
  7703. template <int N0, int... N1toN>
  7704. struct sum<N0, N1toN...>
  7705. {
  7706. static constexpr auto value = N0 + sum<N1toN...>::value;
  7707. };
  7708. template <>
  7709. struct sum<>
  7710. {
  7711. static constexpr auto value = 0;
  7712. };
  7713. static_assert(sum<>::value == 0, "");
  7714. static_assert(sum<1>::value == 1, "");
  7715. static_assert(sum<23>::value == 23, "");
  7716. static_assert(sum<1, 2>::value == 3, "");
  7717. static_assert(sum<5, 5, 11>::value == 21, "");
  7718. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  7719. }
  7720. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  7721. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  7722. // because of this.
  7723. namespace test_template_alias_sfinae
  7724. {
  7725. struct foo {};
  7726. template<typename T>
  7727. using member = typename T::member_type;
  7728. template<typename T>
  7729. void func(...) {}
  7730. template<typename T>
  7731. void func(member<T>*) {}
  7732. void test();
  7733. void test() { func<foo>(0); }
  7734. }
  7735. } // namespace cxx11
  7736. #endif // __cplusplus >= 201103L
  7737. // If the compiler admits that it is not ready for C++14, why torture it?
  7738. // Hopefully, this will speed up the test.
  7739. #ifndef __cplusplus
  7740. #error "This is not a C++ compiler"
  7741. #elif __cplusplus < 201402L && !defined _MSC_VER
  7742. #error "This is not a C++14 compiler"
  7743. #else
  7744. namespace cxx14
  7745. {
  7746. namespace test_polymorphic_lambdas
  7747. {
  7748. int
  7749. test()
  7750. {
  7751. const auto lambda = [](auto&&... args){
  7752. const auto istiny = [](auto x){
  7753. return (sizeof(x) == 1UL) ? 1 : 0;
  7754. };
  7755. const int aretiny[] = { istiny(args)... };
  7756. return aretiny[0];
  7757. };
  7758. return lambda(1, 1L, 1.0f, '1');
  7759. }
  7760. }
  7761. namespace test_binary_literals
  7762. {
  7763. constexpr auto ivii = 0b0000000000101010;
  7764. static_assert(ivii == 42, "wrong value");
  7765. }
  7766. namespace test_generalized_constexpr
  7767. {
  7768. template < typename CharT >
  7769. constexpr unsigned long
  7770. strlen_c(const CharT *const s) noexcept
  7771. {
  7772. auto length = 0UL;
  7773. for (auto p = s; *p; ++p)
  7774. ++length;
  7775. return length;
  7776. }
  7777. static_assert(strlen_c("") == 0UL, "");
  7778. static_assert(strlen_c("x") == 1UL, "");
  7779. static_assert(strlen_c("test") == 4UL, "");
  7780. static_assert(strlen_c("another\0test") == 7UL, "");
  7781. }
  7782. namespace test_lambda_init_capture
  7783. {
  7784. int
  7785. test()
  7786. {
  7787. auto x = 0;
  7788. const auto lambda1 = [a = x](int b){ return a + b; };
  7789. const auto lambda2 = [a = lambda1(x)](){ return a; };
  7790. return lambda2();
  7791. }
  7792. }
  7793. namespace test_digit_separators
  7794. {
  7795. constexpr auto ten_million = 100'000'000;
  7796. static_assert(ten_million == 100000000, "");
  7797. }
  7798. namespace test_return_type_deduction
  7799. {
  7800. auto f(int& x) { return x; }
  7801. decltype(auto) g(int& x) { return x; }
  7802. template < typename T1, typename T2 >
  7803. struct is_same
  7804. {
  7805. static constexpr auto value = false;
  7806. };
  7807. template < typename T >
  7808. struct is_same<T, T>
  7809. {
  7810. static constexpr auto value = true;
  7811. };
  7812. int
  7813. test()
  7814. {
  7815. auto x = 0;
  7816. static_assert(is_same<int, decltype(f(x))>::value, "");
  7817. static_assert(is_same<int&, decltype(g(x))>::value, "");
  7818. return x;
  7819. }
  7820. }
  7821. } // namespace cxx14
  7822. #endif // __cplusplus >= 201402L
  7823. // If the compiler admits that it is not ready for C++17, why torture it?
  7824. // Hopefully, this will speed up the test.
  7825. #ifndef __cplusplus
  7826. #error "This is not a C++ compiler"
  7827. #elif __cplusplus < 201703L && !defined _MSC_VER
  7828. #error "This is not a C++17 compiler"
  7829. #else
  7830. #include <initializer_list>
  7831. #include <utility>
  7832. #include <type_traits>
  7833. namespace cxx17
  7834. {
  7835. namespace test_constexpr_lambdas
  7836. {
  7837. constexpr int foo = [](){return 42;}();
  7838. }
  7839. namespace test::nested_namespace::definitions
  7840. {
  7841. }
  7842. namespace test_fold_expression
  7843. {
  7844. template<typename... Args>
  7845. int multiply(Args... args)
  7846. {
  7847. return (args * ... * 1);
  7848. }
  7849. template<typename... Args>
  7850. bool all(Args... args)
  7851. {
  7852. return (args && ...);
  7853. }
  7854. }
  7855. namespace test_extended_static_assert
  7856. {
  7857. static_assert (true);
  7858. }
  7859. namespace test_auto_brace_init_list
  7860. {
  7861. auto foo = {5};
  7862. auto bar {5};
  7863. static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
  7864. static_assert(std::is_same<int, decltype(bar)>::value);
  7865. }
  7866. namespace test_typename_in_template_template_parameter
  7867. {
  7868. template<template<typename> typename X> struct D;
  7869. }
  7870. namespace test_fallthrough_nodiscard_maybe_unused_attributes
  7871. {
  7872. int f1()
  7873. {
  7874. return 42;
  7875. }
  7876. [[nodiscard]] int f2()
  7877. {
  7878. [[maybe_unused]] auto unused = f1();
  7879. switch (f1())
  7880. {
  7881. case 17:
  7882. f1();
  7883. [[fallthrough]];
  7884. case 42:
  7885. f1();
  7886. }
  7887. return f1();
  7888. }
  7889. }
  7890. namespace test_extended_aggregate_initialization
  7891. {
  7892. struct base1
  7893. {
  7894. int b1, b2 = 42;
  7895. };
  7896. struct base2
  7897. {
  7898. base2() {
  7899. b3 = 42;
  7900. }
  7901. int b3;
  7902. };
  7903. struct derived : base1, base2
  7904. {
  7905. int d;
  7906. };
  7907. derived d1 {{1, 2}, {}, 4}; // full initialization
  7908. derived d2 {{}, {}, 4}; // value-initialized bases
  7909. }
  7910. namespace test_general_range_based_for_loop
  7911. {
  7912. struct iter
  7913. {
  7914. int i;
  7915. int& operator* ()
  7916. {
  7917. return i;
  7918. }
  7919. const int& operator* () const
  7920. {
  7921. return i;
  7922. }
  7923. iter& operator++()
  7924. {
  7925. ++i;
  7926. return *this;
  7927. }
  7928. };
  7929. struct sentinel
  7930. {
  7931. int i;
  7932. };
  7933. bool operator== (const iter& i, const sentinel& s)
  7934. {
  7935. return i.i == s.i;
  7936. }
  7937. bool operator!= (const iter& i, const sentinel& s)
  7938. {
  7939. return !(i == s);
  7940. }
  7941. struct range
  7942. {
  7943. iter begin() const
  7944. {
  7945. return {0};
  7946. }
  7947. sentinel end() const
  7948. {
  7949. return {5};
  7950. }
  7951. };
  7952. void f()
  7953. {
  7954. range r {};
  7955. for (auto i : r)
  7956. {
  7957. [[maybe_unused]] auto v = i;
  7958. }
  7959. }
  7960. }
  7961. namespace test_lambda_capture_asterisk_this_by_value
  7962. {
  7963. struct t
  7964. {
  7965. int i;
  7966. int foo()
  7967. {
  7968. return [*this]()
  7969. {
  7970. return i;
  7971. }();
  7972. }
  7973. };
  7974. }
  7975. namespace test_enum_class_construction
  7976. {
  7977. enum class byte : unsigned char
  7978. {};
  7979. byte foo {42};
  7980. }
  7981. namespace test_constexpr_if
  7982. {
  7983. template <bool cond>
  7984. int f ()
  7985. {
  7986. if constexpr(cond)
  7987. {
  7988. return 13;
  7989. }
  7990. else
  7991. {
  7992. return 42;
  7993. }
  7994. }
  7995. }
  7996. namespace test_selection_statement_with_initializer
  7997. {
  7998. int f()
  7999. {
  8000. return 13;
  8001. }
  8002. int f2()
  8003. {
  8004. if (auto i = f(); i > 0)
  8005. {
  8006. return 3;
  8007. }
  8008. switch (auto i = f(); i + 4)
  8009. {
  8010. case 17:
  8011. return 2;
  8012. default:
  8013. return 1;
  8014. }
  8015. }
  8016. }
  8017. namespace test_template_argument_deduction_for_class_templates
  8018. {
  8019. template <typename T1, typename T2>
  8020. struct pair
  8021. {
  8022. pair (T1 p1, T2 p2)
  8023. : m1 {p1},
  8024. m2 {p2}
  8025. {}
  8026. T1 m1;
  8027. T2 m2;
  8028. };
  8029. void f()
  8030. {
  8031. [[maybe_unused]] auto p = pair{13, 42u};
  8032. }
  8033. }
  8034. namespace test_non_type_auto_template_parameters
  8035. {
  8036. template <auto n>
  8037. struct B
  8038. {};
  8039. B<5> b1;
  8040. B<'a'> b2;
  8041. }
  8042. namespace test_structured_bindings
  8043. {
  8044. int arr[2] = { 1, 2 };
  8045. std::pair<int, int> pr = { 1, 2 };
  8046. auto f1() -> int(&)[2]
  8047. {
  8048. return arr;
  8049. }
  8050. auto f2() -> std::pair<int, int>&
  8051. {
  8052. return pr;
  8053. }
  8054. struct S
  8055. {
  8056. int x1 : 2;
  8057. volatile double y1;
  8058. };
  8059. S f3()
  8060. {
  8061. return {};
  8062. }
  8063. auto [ x1, y1 ] = f1();
  8064. auto& [ xr1, yr1 ] = f1();
  8065. auto [ x2, y2 ] = f2();
  8066. auto& [ xr2, yr2 ] = f2();
  8067. const auto [ x3, y3 ] = f3();
  8068. }
  8069. namespace test_exception_spec_type_system
  8070. {
  8071. struct Good {};
  8072. struct Bad {};
  8073. void g1() noexcept;
  8074. void g2();
  8075. template<typename T>
  8076. Bad
  8077. f(T*, T*);
  8078. template<typename T1, typename T2>
  8079. Good
  8080. f(T1*, T2*);
  8081. static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
  8082. }
  8083. namespace test_inline_variables
  8084. {
  8085. template<class T> void f(T)
  8086. {}
  8087. template<class T> inline T g(T)
  8088. {
  8089. return T{};
  8090. }
  8091. template<> inline void f<>(int)
  8092. {}
  8093. template<> int g<>(int)
  8094. {
  8095. return 5;
  8096. }
  8097. }
  8098. } // namespace cxx17
  8099. #endif // __cplusplus < 201703L && !defined _MSC_VER
  8100. _ACEOF
  8101. if ac_fn_cxx_try_compile "$LINENO"
  8102. then :
  8103. eval $cachevar=yes
  8104. else $as_nop
  8105. eval $cachevar=no
  8106. fi
  8107. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  8108. CXX="$ac_save_CXX"
  8109. fi
  8110. eval ac_res=\$$cachevar
  8111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  8112. printf "%s\n" "$ac_res" >&6; }
  8113. if eval test x\$$cachevar = xyes; then
  8114. CXX="$CXX $switch"
  8115. if test -n "$CXXCPP" ; then
  8116. CXXCPP="$CXXCPP $switch"
  8117. fi
  8118. ac_success=yes
  8119. break
  8120. fi
  8121. done
  8122. fi
  8123. if test x$ac_success = xno; then
  8124. for alternative in ${ax_cxx_compile_alternatives}; do
  8125. for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
  8126. cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh`
  8127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
  8128. printf %s "checking whether $CXX supports C++17 features with $switch... " >&6; }
  8129. if eval test \${$cachevar+y}
  8130. then :
  8131. printf %s "(cached) " >&6
  8132. else $as_nop
  8133. ac_save_CXX="$CXX"
  8134. CXX="$CXX $switch"
  8135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8136. /* end confdefs.h. */
  8137. // If the compiler admits that it is not ready for C++11, why torture it?
  8138. // Hopefully, this will speed up the test.
  8139. #ifndef __cplusplus
  8140. #error "This is not a C++ compiler"
  8141. // MSVC always sets __cplusplus to 199711L in older versions; newer versions
  8142. // only set it correctly if /Zc:__cplusplus is specified as well as a
  8143. // /std:c++NN switch:
  8144. // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
  8145. #elif __cplusplus < 201103L && !defined _MSC_VER
  8146. #error "This is not a C++11 compiler"
  8147. #else
  8148. namespace cxx11
  8149. {
  8150. namespace test_static_assert
  8151. {
  8152. template <typename T>
  8153. struct check
  8154. {
  8155. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  8156. };
  8157. }
  8158. namespace test_final_override
  8159. {
  8160. struct Base
  8161. {
  8162. virtual ~Base() {}
  8163. virtual void f() {}
  8164. };
  8165. struct Derived : public Base
  8166. {
  8167. virtual ~Derived() override {}
  8168. virtual void f() override {}
  8169. };
  8170. }
  8171. namespace test_double_right_angle_brackets
  8172. {
  8173. template < typename T >
  8174. struct check {};
  8175. typedef check<void> single_type;
  8176. typedef check<check<void>> double_type;
  8177. typedef check<check<check<void>>> triple_type;
  8178. typedef check<check<check<check<void>>>> quadruple_type;
  8179. }
  8180. namespace test_decltype
  8181. {
  8182. int
  8183. f()
  8184. {
  8185. int a = 1;
  8186. decltype(a) b = 2;
  8187. return a + b;
  8188. }
  8189. }
  8190. namespace test_type_deduction
  8191. {
  8192. template < typename T1, typename T2 >
  8193. struct is_same
  8194. {
  8195. static const bool value = false;
  8196. };
  8197. template < typename T >
  8198. struct is_same<T, T>
  8199. {
  8200. static const bool value = true;
  8201. };
  8202. template < typename T1, typename T2 >
  8203. auto
  8204. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  8205. {
  8206. return a1 + a2;
  8207. }
  8208. int
  8209. test(const int c, volatile int v)
  8210. {
  8211. static_assert(is_same<int, decltype(0)>::value == true, "");
  8212. static_assert(is_same<int, decltype(c)>::value == false, "");
  8213. static_assert(is_same<int, decltype(v)>::value == false, "");
  8214. auto ac = c;
  8215. auto av = v;
  8216. auto sumi = ac + av + 'x';
  8217. auto sumf = ac + av + 1.0;
  8218. static_assert(is_same<int, decltype(ac)>::value == true, "");
  8219. static_assert(is_same<int, decltype(av)>::value == true, "");
  8220. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  8221. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  8222. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  8223. return (sumf > 0.0) ? sumi : add(c, v);
  8224. }
  8225. }
  8226. namespace test_noexcept
  8227. {
  8228. int f() { return 0; }
  8229. int g() noexcept { return 0; }
  8230. static_assert(noexcept(f()) == false, "");
  8231. static_assert(noexcept(g()) == true, "");
  8232. }
  8233. namespace test_constexpr
  8234. {
  8235. template < typename CharT >
  8236. unsigned long constexpr
  8237. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  8238. {
  8239. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  8240. }
  8241. template < typename CharT >
  8242. unsigned long constexpr
  8243. strlen_c(const CharT *const s) noexcept
  8244. {
  8245. return strlen_c_r(s, 0UL);
  8246. }
  8247. static_assert(strlen_c("") == 0UL, "");
  8248. static_assert(strlen_c("1") == 1UL, "");
  8249. static_assert(strlen_c("example") == 7UL, "");
  8250. static_assert(strlen_c("another\0example") == 7UL, "");
  8251. }
  8252. namespace test_rvalue_references
  8253. {
  8254. template < int N >
  8255. struct answer
  8256. {
  8257. static constexpr int value = N;
  8258. };
  8259. answer<1> f(int&) { return answer<1>(); }
  8260. answer<2> f(const int&) { return answer<2>(); }
  8261. answer<3> f(int&&) { return answer<3>(); }
  8262. void
  8263. test()
  8264. {
  8265. int i = 0;
  8266. const int c = 0;
  8267. static_assert(decltype(f(i))::value == 1, "");
  8268. static_assert(decltype(f(c))::value == 2, "");
  8269. static_assert(decltype(f(0))::value == 3, "");
  8270. }
  8271. }
  8272. namespace test_uniform_initialization
  8273. {
  8274. struct test
  8275. {
  8276. static const int zero {};
  8277. static const int one {1};
  8278. };
  8279. static_assert(test::zero == 0, "");
  8280. static_assert(test::one == 1, "");
  8281. }
  8282. namespace test_lambdas
  8283. {
  8284. void
  8285. test1()
  8286. {
  8287. auto lambda1 = [](){};
  8288. auto lambda2 = lambda1;
  8289. lambda1();
  8290. lambda2();
  8291. }
  8292. int
  8293. test2()
  8294. {
  8295. auto a = [](int i, int j){ return i + j; }(1, 2);
  8296. auto b = []() -> int { return '0'; }();
  8297. auto c = [=](){ return a + b; }();
  8298. auto d = [&](){ return c; }();
  8299. auto e = [a, &b](int x) mutable {
  8300. const auto identity = [](int y){ return y; };
  8301. for (auto i = 0; i < a; ++i)
  8302. a += b--;
  8303. return x + identity(a + b);
  8304. }(0);
  8305. return a + b + c + d + e;
  8306. }
  8307. int
  8308. test3()
  8309. {
  8310. const auto nullary = [](){ return 0; };
  8311. const auto unary = [](int x){ return x; };
  8312. using nullary_t = decltype(nullary);
  8313. using unary_t = decltype(unary);
  8314. const auto higher1st = [](nullary_t f){ return f(); };
  8315. const auto higher2nd = [unary](nullary_t f1){
  8316. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  8317. };
  8318. return higher1st(nullary) + higher2nd(nullary)(unary);
  8319. }
  8320. }
  8321. namespace test_variadic_templates
  8322. {
  8323. template <int...>
  8324. struct sum;
  8325. template <int N0, int... N1toN>
  8326. struct sum<N0, N1toN...>
  8327. {
  8328. static constexpr auto value = N0 + sum<N1toN...>::value;
  8329. };
  8330. template <>
  8331. struct sum<>
  8332. {
  8333. static constexpr auto value = 0;
  8334. };
  8335. static_assert(sum<>::value == 0, "");
  8336. static_assert(sum<1>::value == 1, "");
  8337. static_assert(sum<23>::value == 23, "");
  8338. static_assert(sum<1, 2>::value == 3, "");
  8339. static_assert(sum<5, 5, 11>::value == 21, "");
  8340. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  8341. }
  8342. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  8343. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  8344. // because of this.
  8345. namespace test_template_alias_sfinae
  8346. {
  8347. struct foo {};
  8348. template<typename T>
  8349. using member = typename T::member_type;
  8350. template<typename T>
  8351. void func(...) {}
  8352. template<typename T>
  8353. void func(member<T>*) {}
  8354. void test();
  8355. void test() { func<foo>(0); }
  8356. }
  8357. } // namespace cxx11
  8358. #endif // __cplusplus >= 201103L
  8359. // If the compiler admits that it is not ready for C++14, why torture it?
  8360. // Hopefully, this will speed up the test.
  8361. #ifndef __cplusplus
  8362. #error "This is not a C++ compiler"
  8363. #elif __cplusplus < 201402L && !defined _MSC_VER
  8364. #error "This is not a C++14 compiler"
  8365. #else
  8366. namespace cxx14
  8367. {
  8368. namespace test_polymorphic_lambdas
  8369. {
  8370. int
  8371. test()
  8372. {
  8373. const auto lambda = [](auto&&... args){
  8374. const auto istiny = [](auto x){
  8375. return (sizeof(x) == 1UL) ? 1 : 0;
  8376. };
  8377. const int aretiny[] = { istiny(args)... };
  8378. return aretiny[0];
  8379. };
  8380. return lambda(1, 1L, 1.0f, '1');
  8381. }
  8382. }
  8383. namespace test_binary_literals
  8384. {
  8385. constexpr auto ivii = 0b0000000000101010;
  8386. static_assert(ivii == 42, "wrong value");
  8387. }
  8388. namespace test_generalized_constexpr
  8389. {
  8390. template < typename CharT >
  8391. constexpr unsigned long
  8392. strlen_c(const CharT *const s) noexcept
  8393. {
  8394. auto length = 0UL;
  8395. for (auto p = s; *p; ++p)
  8396. ++length;
  8397. return length;
  8398. }
  8399. static_assert(strlen_c("") == 0UL, "");
  8400. static_assert(strlen_c("x") == 1UL, "");
  8401. static_assert(strlen_c("test") == 4UL, "");
  8402. static_assert(strlen_c("another\0test") == 7UL, "");
  8403. }
  8404. namespace test_lambda_init_capture
  8405. {
  8406. int
  8407. test()
  8408. {
  8409. auto x = 0;
  8410. const auto lambda1 = [a = x](int b){ return a + b; };
  8411. const auto lambda2 = [a = lambda1(x)](){ return a; };
  8412. return lambda2();
  8413. }
  8414. }
  8415. namespace test_digit_separators
  8416. {
  8417. constexpr auto ten_million = 100'000'000;
  8418. static_assert(ten_million == 100000000, "");
  8419. }
  8420. namespace test_return_type_deduction
  8421. {
  8422. auto f(int& x) { return x; }
  8423. decltype(auto) g(int& x) { return x; }
  8424. template < typename T1, typename T2 >
  8425. struct is_same
  8426. {
  8427. static constexpr auto value = false;
  8428. };
  8429. template < typename T >
  8430. struct is_same<T, T>
  8431. {
  8432. static constexpr auto value = true;
  8433. };
  8434. int
  8435. test()
  8436. {
  8437. auto x = 0;
  8438. static_assert(is_same<int, decltype(f(x))>::value, "");
  8439. static_assert(is_same<int&, decltype(g(x))>::value, "");
  8440. return x;
  8441. }
  8442. }
  8443. } // namespace cxx14
  8444. #endif // __cplusplus >= 201402L
  8445. // If the compiler admits that it is not ready for C++17, why torture it?
  8446. // Hopefully, this will speed up the test.
  8447. #ifndef __cplusplus
  8448. #error "This is not a C++ compiler"
  8449. #elif __cplusplus < 201703L && !defined _MSC_VER
  8450. #error "This is not a C++17 compiler"
  8451. #else
  8452. #include <initializer_list>
  8453. #include <utility>
  8454. #include <type_traits>
  8455. namespace cxx17
  8456. {
  8457. namespace test_constexpr_lambdas
  8458. {
  8459. constexpr int foo = [](){return 42;}();
  8460. }
  8461. namespace test::nested_namespace::definitions
  8462. {
  8463. }
  8464. namespace test_fold_expression
  8465. {
  8466. template<typename... Args>
  8467. int multiply(Args... args)
  8468. {
  8469. return (args * ... * 1);
  8470. }
  8471. template<typename... Args>
  8472. bool all(Args... args)
  8473. {
  8474. return (args && ...);
  8475. }
  8476. }
  8477. namespace test_extended_static_assert
  8478. {
  8479. static_assert (true);
  8480. }
  8481. namespace test_auto_brace_init_list
  8482. {
  8483. auto foo = {5};
  8484. auto bar {5};
  8485. static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
  8486. static_assert(std::is_same<int, decltype(bar)>::value);
  8487. }
  8488. namespace test_typename_in_template_template_parameter
  8489. {
  8490. template<template<typename> typename X> struct D;
  8491. }
  8492. namespace test_fallthrough_nodiscard_maybe_unused_attributes
  8493. {
  8494. int f1()
  8495. {
  8496. return 42;
  8497. }
  8498. [[nodiscard]] int f2()
  8499. {
  8500. [[maybe_unused]] auto unused = f1();
  8501. switch (f1())
  8502. {
  8503. case 17:
  8504. f1();
  8505. [[fallthrough]];
  8506. case 42:
  8507. f1();
  8508. }
  8509. return f1();
  8510. }
  8511. }
  8512. namespace test_extended_aggregate_initialization
  8513. {
  8514. struct base1
  8515. {
  8516. int b1, b2 = 42;
  8517. };
  8518. struct base2
  8519. {
  8520. base2() {
  8521. b3 = 42;
  8522. }
  8523. int b3;
  8524. };
  8525. struct derived : base1, base2
  8526. {
  8527. int d;
  8528. };
  8529. derived d1 {{1, 2}, {}, 4}; // full initialization
  8530. derived d2 {{}, {}, 4}; // value-initialized bases
  8531. }
  8532. namespace test_general_range_based_for_loop
  8533. {
  8534. struct iter
  8535. {
  8536. int i;
  8537. int& operator* ()
  8538. {
  8539. return i;
  8540. }
  8541. const int& operator* () const
  8542. {
  8543. return i;
  8544. }
  8545. iter& operator++()
  8546. {
  8547. ++i;
  8548. return *this;
  8549. }
  8550. };
  8551. struct sentinel
  8552. {
  8553. int i;
  8554. };
  8555. bool operator== (const iter& i, const sentinel& s)
  8556. {
  8557. return i.i == s.i;
  8558. }
  8559. bool operator!= (const iter& i, const sentinel& s)
  8560. {
  8561. return !(i == s);
  8562. }
  8563. struct range
  8564. {
  8565. iter begin() const
  8566. {
  8567. return {0};
  8568. }
  8569. sentinel end() const
  8570. {
  8571. return {5};
  8572. }
  8573. };
  8574. void f()
  8575. {
  8576. range r {};
  8577. for (auto i : r)
  8578. {
  8579. [[maybe_unused]] auto v = i;
  8580. }
  8581. }
  8582. }
  8583. namespace test_lambda_capture_asterisk_this_by_value
  8584. {
  8585. struct t
  8586. {
  8587. int i;
  8588. int foo()
  8589. {
  8590. return [*this]()
  8591. {
  8592. return i;
  8593. }();
  8594. }
  8595. };
  8596. }
  8597. namespace test_enum_class_construction
  8598. {
  8599. enum class byte : unsigned char
  8600. {};
  8601. byte foo {42};
  8602. }
  8603. namespace test_constexpr_if
  8604. {
  8605. template <bool cond>
  8606. int f ()
  8607. {
  8608. if constexpr(cond)
  8609. {
  8610. return 13;
  8611. }
  8612. else
  8613. {
  8614. return 42;
  8615. }
  8616. }
  8617. }
  8618. namespace test_selection_statement_with_initializer
  8619. {
  8620. int f()
  8621. {
  8622. return 13;
  8623. }
  8624. int f2()
  8625. {
  8626. if (auto i = f(); i > 0)
  8627. {
  8628. return 3;
  8629. }
  8630. switch (auto i = f(); i + 4)
  8631. {
  8632. case 17:
  8633. return 2;
  8634. default:
  8635. return 1;
  8636. }
  8637. }
  8638. }
  8639. namespace test_template_argument_deduction_for_class_templates
  8640. {
  8641. template <typename T1, typename T2>
  8642. struct pair
  8643. {
  8644. pair (T1 p1, T2 p2)
  8645. : m1 {p1},
  8646. m2 {p2}
  8647. {}
  8648. T1 m1;
  8649. T2 m2;
  8650. };
  8651. void f()
  8652. {
  8653. [[maybe_unused]] auto p = pair{13, 42u};
  8654. }
  8655. }
  8656. namespace test_non_type_auto_template_parameters
  8657. {
  8658. template <auto n>
  8659. struct B
  8660. {};
  8661. B<5> b1;
  8662. B<'a'> b2;
  8663. }
  8664. namespace test_structured_bindings
  8665. {
  8666. int arr[2] = { 1, 2 };
  8667. std::pair<int, int> pr = { 1, 2 };
  8668. auto f1() -> int(&)[2]
  8669. {
  8670. return arr;
  8671. }
  8672. auto f2() -> std::pair<int, int>&
  8673. {
  8674. return pr;
  8675. }
  8676. struct S
  8677. {
  8678. int x1 : 2;
  8679. volatile double y1;
  8680. };
  8681. S f3()
  8682. {
  8683. return {};
  8684. }
  8685. auto [ x1, y1 ] = f1();
  8686. auto& [ xr1, yr1 ] = f1();
  8687. auto [ x2, y2 ] = f2();
  8688. auto& [ xr2, yr2 ] = f2();
  8689. const auto [ x3, y3 ] = f3();
  8690. }
  8691. namespace test_exception_spec_type_system
  8692. {
  8693. struct Good {};
  8694. struct Bad {};
  8695. void g1() noexcept;
  8696. void g2();
  8697. template<typename T>
  8698. Bad
  8699. f(T*, T*);
  8700. template<typename T1, typename T2>
  8701. Good
  8702. f(T1*, T2*);
  8703. static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
  8704. }
  8705. namespace test_inline_variables
  8706. {
  8707. template<class T> void f(T)
  8708. {}
  8709. template<class T> inline T g(T)
  8710. {
  8711. return T{};
  8712. }
  8713. template<> inline void f<>(int)
  8714. {}
  8715. template<> int g<>(int)
  8716. {
  8717. return 5;
  8718. }
  8719. }
  8720. } // namespace cxx17
  8721. #endif // __cplusplus < 201703L && !defined _MSC_VER
  8722. _ACEOF
  8723. if ac_fn_cxx_try_compile "$LINENO"
  8724. then :
  8725. eval $cachevar=yes
  8726. else $as_nop
  8727. eval $cachevar=no
  8728. fi
  8729. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  8730. CXX="$ac_save_CXX"
  8731. fi
  8732. eval ac_res=\$$cachevar
  8733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  8734. printf "%s\n" "$ac_res" >&6; }
  8735. if eval test x\$$cachevar = xyes; then
  8736. CXX="$CXX $switch"
  8737. if test -n "$CXXCPP" ; then
  8738. CXXCPP="$CXXCPP $switch"
  8739. fi
  8740. ac_success=yes
  8741. break
  8742. fi
  8743. done
  8744. if test x$ac_success = xyes; then
  8745. break
  8746. fi
  8747. done
  8748. fi
  8749. ac_ext=c
  8750. ac_cpp='$CPP $CPPFLAGS'
  8751. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8752. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8753. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8754. if test x$ax_cxx_compile_cxx17_required = xtrue; then
  8755. if test x$ac_success = xno; then
  8756. as_fn_error $? "*** A compiler with support for C++17 language features is required." "$LINENO" 5
  8757. fi
  8758. fi
  8759. if test x$ac_success = xno; then
  8760. HAVE_CXX17=0
  8761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++17 support was found" >&5
  8762. printf "%s\n" "$as_me: No compiler with C++17 support was found" >&6;}
  8763. else
  8764. HAVE_CXX17=1
  8765. printf "%s\n" "#define HAVE_CXX17 1" >>confdefs.h
  8766. fi
  8767. WARN_CXXFLAGS=
  8768. ac_ext=cpp
  8769. ac_cpp='$CXXCPP $CPPFLAGS'
  8770. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8771. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8772. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Werror=unknown-warning-option" >&5
  8774. printf %s "checking whether C++ compiler accepts -Werror=unknown-warning-option... " >&6; }
  8775. if test ${ax_cv_check_cxxflags___Werror_unknown_warning_option+y}
  8776. then :
  8777. printf %s "(cached) " >&6
  8778. else $as_nop
  8779. ax_check_save_flags=$CXXFLAGS
  8780. CXXFLAGS="$CXXFLAGS -Werror=unknown-warning-option"
  8781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8782. /* end confdefs.h. */
  8783. int
  8784. main (void)
  8785. {
  8786. ;
  8787. return 0;
  8788. }
  8789. _ACEOF
  8790. if ac_fn_cxx_try_compile "$LINENO"
  8791. then :
  8792. ax_cv_check_cxxflags___Werror_unknown_warning_option=yes
  8793. else $as_nop
  8794. ax_cv_check_cxxflags___Werror_unknown_warning_option=no
  8795. fi
  8796. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  8797. CXXFLAGS=$ax_check_save_flags
  8798. fi
  8799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Werror_unknown_warning_option" >&5
  8800. printf "%s\n" "$ax_cv_check_cxxflags___Werror_unknown_warning_option" >&6; }
  8801. if test "x$ax_cv_check_cxxflags___Werror_unknown_warning_option" = xyes
  8802. then :
  8803. ax_compiler_flags_test="-Werror=unknown-warning-option"
  8804. else $as_nop
  8805. ax_compiler_flags_test=""
  8806. fi
  8807. for flag in -Wmissing-braces -Wnon-virtual-dtor -Woverloaded-virtual -Wreorder -Wsign-compare -Wunused-local-typedefs -Wunused-variable -Wvla ; do
  8808. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cxxflags_${ax_compiler_flags_test}_$flag" | $as_tr_sh`
  8809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
  8810. printf %s "checking whether C++ compiler accepts $flag... " >&6; }
  8811. if eval test \${$as_CACHEVAR+y}
  8812. then :
  8813. printf %s "(cached) " >&6
  8814. else $as_nop
  8815. ax_check_save_flags=$CXXFLAGS
  8816. CXXFLAGS="$CXXFLAGS ${ax_compiler_flags_test} $flag"
  8817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8818. /* end confdefs.h. */
  8819. int
  8820. main (void)
  8821. {
  8822. ;
  8823. return 0;
  8824. }
  8825. _ACEOF
  8826. if ac_fn_cxx_try_compile "$LINENO"
  8827. then :
  8828. eval "$as_CACHEVAR=yes"
  8829. else $as_nop
  8830. eval "$as_CACHEVAR=no"
  8831. fi
  8832. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  8833. CXXFLAGS=$ax_check_save_flags
  8834. fi
  8835. eval ac_res=\$$as_CACHEVAR
  8836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  8837. printf "%s\n" "$ac_res" >&6; }
  8838. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  8839. then :
  8840. if test ${WARN_CXXFLAGS+y}
  8841. then :
  8842. case " $WARN_CXXFLAGS " in #(
  8843. *" $flag "*) :
  8844. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS already contains \$flag"; } >&5
  8845. (: WARN_CXXFLAGS already contains $flag) 2>&5
  8846. ac_status=$?
  8847. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8848. test $ac_status = 0; } ;; #(
  8849. *) :
  8850. as_fn_append WARN_CXXFLAGS " $flag"
  8851. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5
  8852. (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5
  8853. ac_status=$?
  8854. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8855. test $ac_status = 0; }
  8856. ;;
  8857. esac
  8858. else $as_nop
  8859. WARN_CXXFLAGS=$flag
  8860. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5
  8861. (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5
  8862. ac_status=$?
  8863. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8864. test $ac_status = 0; }
  8865. fi
  8866. else $as_nop
  8867. :
  8868. fi
  8869. done
  8870. as_fn_append WARN_CXXFLAGS " -Werror"
  8871. ac_ext=c
  8872. ac_cpp='$CPP $CPPFLAGS'
  8873. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8874. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8875. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC defined in fcntl.h" >&5
  8877. printf %s "checking for O_CLOEXEC defined in fcntl.h... " >&6; }
  8878. if test ${ac_cv_defined_O_CLOEXEC_fcntl_h+y}
  8879. then :
  8880. printf %s "(cached) " >&6
  8881. else $as_nop
  8882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8883. /* end confdefs.h. */
  8884. #include <fcntl.h>
  8885. int
  8886. main (void)
  8887. {
  8888. #ifdef O_CLOEXEC
  8889. int ok;
  8890. #else
  8891. choke me
  8892. #endif
  8893. ;
  8894. return 0;
  8895. }
  8896. _ACEOF
  8897. if ac_fn_c_try_compile "$LINENO"
  8898. then :
  8899. ac_cv_defined_O_CLOEXEC_fcntl_h=yes
  8900. else $as_nop
  8901. ac_cv_defined_O_CLOEXEC_fcntl_h=no
  8902. fi
  8903. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  8904. fi
  8905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined_O_CLOEXEC_fcntl_h" >&5
  8906. printf "%s\n" "$ac_cv_defined_O_CLOEXEC_fcntl_h" >&6; }
  8907. if test $ac_cv_defined_O_CLOEXEC_fcntl_h != "no"
  8908. then :
  8909. else $as_nop
  8910. printf "%s\n" "#define O_CLOEXEC 0" >>confdefs.h
  8911. fi
  8912. # Only build Linux client libs when compiling for Linux
  8913. case $host in
  8914. *-*-linux* | *-android* )
  8915. LINUX_HOST=true
  8916. ;;
  8917. esac
  8918. if test x$LINUX_HOST = xtrue; then
  8919. LINUX_HOST_TRUE=
  8920. LINUX_HOST_FALSE='#'
  8921. else
  8922. LINUX_HOST_TRUE='#'
  8923. LINUX_HOST_FALSE=
  8924. fi
  8925. # Only use Android support headers when compiling for Android
  8926. case $host in
  8927. *-android*)
  8928. ANDROID_HOST=true
  8929. ;;
  8930. esac
  8931. if test x$ANDROID_HOST = xtrue; then
  8932. ANDROID_HOST_TRUE=
  8933. ANDROID_HOST_FALSE='#'
  8934. else
  8935. ANDROID_HOST_TRUE='#'
  8936. ANDROID_HOST_FALSE=
  8937. fi
  8938. # Some tools (like mac ones) only support x86 currently.
  8939. case $host_cpu in
  8940. i?86|x86_64)
  8941. X86_HOST=true
  8942. ;;
  8943. esac
  8944. if test x$X86_HOST = xtrue; then
  8945. X86_HOST_TRUE=
  8946. X86_HOST_FALSE='#'
  8947. else
  8948. X86_HOST_TRUE='#'
  8949. X86_HOST_FALSE=
  8950. fi
  8951. # Check whether --enable-processor was given.
  8952. if test ${enable_processor+y}
  8953. then :
  8954. enableval=$enable_processor;
  8955. else $as_nop
  8956. enable_processor=yes
  8957. fi
  8958. if test "x$enable_processor" != xyes; then
  8959. DISABLE_PROCESSOR_TRUE=
  8960. DISABLE_PROCESSOR_FALSE='#'
  8961. else
  8962. DISABLE_PROCESSOR_TRUE='#'
  8963. DISABLE_PROCESSOR_FALSE=
  8964. fi
  8965. # Check whether --enable-tools was given.
  8966. if test ${enable_tools+y}
  8967. then :
  8968. enableval=$enable_tools;
  8969. else $as_nop
  8970. enable_tools=yes
  8971. fi
  8972. if test "x$enable_tools" != xyes; then
  8973. DISABLE_TOOLS_TRUE=
  8974. DISABLE_TOOLS_FALSE='#'
  8975. else
  8976. DISABLE_TOOLS_TRUE='#'
  8977. DISABLE_TOOLS_FALSE=
  8978. fi
  8979. if test x$LINUX_HOST = xfalse -a "x$enable_processor" != xyes -a "x$enable_tools" != xyes; then
  8980. as_fn_error $? "--disable-processor and --disable-tools were specified, and not building for Linux. Nothing to build!" "$LINENO" 5
  8981. fi
  8982. # Check whether --enable-system-test-libs was given.
  8983. if test ${enable_system_test_libs+y}
  8984. then :
  8985. enableval=$enable_system_test_libs;
  8986. else $as_nop
  8987. enable_system_test_libs=no
  8988. fi
  8989. if test "x$enable_system_test_libs" = xyes; then
  8990. SYSTEM_TEST_LIBS_TRUE=
  8991. SYSTEM_TEST_LIBS_FALSE='#'
  8992. else
  8993. SYSTEM_TEST_LIBS_TRUE='#'
  8994. SYSTEM_TEST_LIBS_FALSE=
  8995. fi
  8996. if test "x$enable_system_test_libs" = xyes; then
  8997. : "${GMOCK_CFLAGS:=-pthread}"
  8998. : "${GMOCK_LIBS:=-lgmock -lgtest -pthread -lpthread}"
  8999. : "${GTEST_CFLAGS:=-pthread}"
  9000. : "${GTEST_LIBS:=-lgtest -pthread -lpthread}"
  9001. fi
  9002. # Check whether --enable-selftest was given.
  9003. if test ${enable_selftest+y}
  9004. then :
  9005. enableval=$enable_selftest;
  9006. else $as_nop
  9007. enable_selftest=no
  9008. fi
  9009. if test "x$enable_selftest" = xyes; then
  9010. SELFTEST_TRUE=
  9011. SELFTEST_FALSE='#'
  9012. else
  9013. SELFTEST_TRUE='#'
  9014. SELFTEST_FALSE=
  9015. fi
  9016. # Check whether --with-rustc-demangle was given.
  9017. if test ${with_rustc_demangle+y}
  9018. then :
  9019. withval=$with_rustc_demangle;
  9020. else $as_nop
  9021. with_rustc_demangle=no
  9022. fi
  9023. RUSTC_DEMANGLE_BASE_CFLAGS="-DHAVE_RUSTC_DEMANGLE"
  9024. RUSTC_DEMANGLE_BASE_LIBS="-lrustc_demangle -lpthread -ldl"
  9025. if test "x${with_rustc_demangle}" != xno; then
  9026. if ! test -f "${with_rustc_demangle}/Cargo.toml"; then
  9027. as_fn_error $? "You must pass the path to the rustc-demangle crate for --with-rustc-demangle" "$LINENO" 5
  9028. fi
  9029. RUSTC_DEMANGLE_CFLAGS="-I${with_rustc_demangle}/crates/capi/include ${RUSTC_DEMANGLE_BASE_CFLAGS}"
  9030. RUSTC_DEMANGLE_LIBS="-L${with_rustc_demangle}/target/release ${RUSTC_DEMANGLE_BASE_LIBS}"
  9031. fi
  9032. # Check whether --enable-system-rustc-demangle was given.
  9033. if test ${enable_system_rustc_demangle+y}
  9034. then :
  9035. enableval=$enable_system_rustc_demangle;
  9036. else $as_nop
  9037. enable_system_rustc_demangle=no
  9038. fi
  9039. if test "x${enable_system_rustc_demangle}" != xno; then
  9040. if test "x${with_rustc_demangle}" != xno; then
  9041. as_fn_error $? "--enable-system-rustc-demangle and --with-rustc-demangle are mutually exclusive." "$LINENO" 5
  9042. fi
  9043. RUSTC_DEMANGLE_CFLAGS="${RUSTC_DEMANGLE_BASE_CFLAGS}"
  9044. RUSTC_DEMANGLE_LIBS="${RUSTC_DEMANGLE_BASE_LIBS}"
  9045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustc_demangle in -lrustc_demangle" >&5
  9046. printf %s "checking for rustc_demangle in -lrustc_demangle... " >&6; }
  9047. if test ${ac_cv_lib_rustc_demangle_rustc_demangle+y}
  9048. then :
  9049. printf %s "(cached) " >&6
  9050. else $as_nop
  9051. ac_check_lib_save_LIBS=$LIBS
  9052. LIBS="-lrustc_demangle $RUSTC_DEMANGLE_LIBS $LIBS"
  9053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9054. /* end confdefs.h. */
  9055. /* Override any GCC internal prototype to avoid an error.
  9056. Use char because int might match the return type of a GCC
  9057. builtin and then its argument prototype would still apply. */
  9058. char rustc_demangle ();
  9059. int
  9060. main (void)
  9061. {
  9062. return rustc_demangle ();
  9063. ;
  9064. return 0;
  9065. }
  9066. _ACEOF
  9067. if ac_fn_c_try_link "$LINENO"
  9068. then :
  9069. ac_cv_lib_rustc_demangle_rustc_demangle=yes
  9070. else $as_nop
  9071. ac_cv_lib_rustc_demangle_rustc_demangle=no
  9072. fi
  9073. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9074. conftest$ac_exeext conftest.$ac_ext
  9075. LIBS=$ac_check_lib_save_LIBS
  9076. fi
  9077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rustc_demangle_rustc_demangle" >&5
  9078. printf "%s\n" "$ac_cv_lib_rustc_demangle_rustc_demangle" >&6; }
  9079. if test "x$ac_cv_lib_rustc_demangle_rustc_demangle" = xyes
  9080. then :
  9081. printf "%s\n" "#define HAVE_LIBRUSTC_DEMANGLE 1" >>confdefs.h
  9082. LIBS="-lrustc_demangle $LIBS"
  9083. else $as_nop
  9084. as_fn_error $? "librustc_demangle.a must be present when --enable-system-rustc-demangle is specified" "$LINENO" 5
  9085. fi
  9086. for ac_header in rustc_demangle.h
  9087. do :
  9088. ac_fn_c_check_header_compile "$LINENO" "rustc_demangle.h" "ac_cv_header_rustc_demangle_h" "$ac_includes_default"
  9089. if test "x$ac_cv_header_rustc_demangle_h" = xyes
  9090. then :
  9091. printf "%s\n" "#define HAVE_RUSTC_DEMANGLE_H 1" >>confdefs.h
  9092. else $as_nop
  9093. as_fn_error $? "rustc_demangle.h must be present when --enable-system-rustc-demangle is specified" "$LINENO" 5
  9094. fi
  9095. done
  9096. fi
  9097. # Check whether --enable-zstd was given.
  9098. if test ${enable_zstd+y}
  9099. then :
  9100. enableval=$enable_zstd;
  9101. else $as_nop
  9102. enable_zstd=no
  9103. fi
  9104. if test "x${enable_zstd}" != xno; then
  9105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_decompress in -lzstd" >&5
  9106. printf %s "checking for ZSTD_decompress in -lzstd... " >&6; }
  9107. if test ${ac_cv_lib_zstd_ZSTD_decompress+y}
  9108. then :
  9109. printf %s "(cached) " >&6
  9110. else $as_nop
  9111. ac_check_lib_save_LIBS=$LIBS
  9112. LIBS="-lzstd $LIBS"
  9113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9114. /* end confdefs.h. */
  9115. /* Override any GCC internal prototype to avoid an error.
  9116. Use char because int might match the return type of a GCC
  9117. builtin and then its argument prototype would still apply. */
  9118. char ZSTD_decompress ();
  9119. int
  9120. main (void)
  9121. {
  9122. return ZSTD_decompress ();
  9123. ;
  9124. return 0;
  9125. }
  9126. _ACEOF
  9127. if ac_fn_c_try_link "$LINENO"
  9128. then :
  9129. ac_cv_lib_zstd_ZSTD_decompress=yes
  9130. else $as_nop
  9131. ac_cv_lib_zstd_ZSTD_decompress=no
  9132. fi
  9133. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9134. conftest$ac_exeext conftest.$ac_ext
  9135. LIBS=$ac_check_lib_save_LIBS
  9136. fi
  9137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_decompress" >&5
  9138. printf "%s\n" "$ac_cv_lib_zstd_ZSTD_decompress" >&6; }
  9139. if test "x$ac_cv_lib_zstd_ZSTD_decompress" = xyes
  9140. then :
  9141. printf "%s\n" "#define HAVE_LIBZSTD 1" >>confdefs.h
  9142. LIBS="-lzstd $LIBS"
  9143. else $as_nop
  9144. as_fn_error $? "zstd library not found." "$LINENO" 5
  9145. fi
  9146. ac_fn_c_check_header_compile "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
  9147. if test "x$ac_cv_header_zstd_h" = xyes
  9148. then :
  9149. else $as_nop
  9150. as_fn_error $? "zstd header not found." "$LINENO" 5
  9151. fi
  9152. fi
  9153. # Check whether --with-tests-as-root was given.
  9154. if test ${with_tests_as_root+y}
  9155. then :
  9156. withval=$with_tests_as_root;
  9157. else $as_nop
  9158. with_tests_as_root=no
  9159. fi
  9160. if test "x$with_tests_as_root" = xyes; then
  9161. TESTS_AS_ROOT_TRUE=
  9162. TESTS_AS_ROOT_FALSE='#'
  9163. else
  9164. TESTS_AS_ROOT_TRUE='#'
  9165. TESTS_AS_ROOT_FALSE=
  9166. fi
  9167. ac_config_files="$ac_config_files breakpad.pc breakpad-client.pc Makefile"
  9168. cat >confcache <<\_ACEOF
  9169. # This file is a shell script that caches the results of configure
  9170. # tests run on this system so they can be shared between configure
  9171. # scripts and configure runs, see configure's option --config-cache.
  9172. # It is not useful on other systems. If it contains results you don't
  9173. # want to keep, you may remove or edit it.
  9174. #
  9175. # config.status only pays attention to the cache file if you give it
  9176. # the --recheck option to rerun configure.
  9177. #
  9178. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9179. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9180. # following values.
  9181. _ACEOF
  9182. # The following way of writing the cache mishandles newlines in values,
  9183. # but we know of no workaround that is simple, portable, and efficient.
  9184. # So, we kill variables containing newlines.
  9185. # Ultrix sh set writes to stderr and can't be redirected directly,
  9186. # and sets the high bit in the cache file unless we assign to the vars.
  9187. (
  9188. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9189. eval ac_val=\$$ac_var
  9190. case $ac_val in #(
  9191. *${as_nl}*)
  9192. case $ac_var in #(
  9193. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  9194. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9195. esac
  9196. case $ac_var in #(
  9197. _ | IFS | as_nl) ;; #(
  9198. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9199. *) { eval $ac_var=; unset $ac_var;} ;;
  9200. esac ;;
  9201. esac
  9202. done
  9203. (set) 2>&1 |
  9204. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9205. *${as_nl}ac_space=\ *)
  9206. # `set' does not quote correctly, so add quotes: double-quote
  9207. # substitution turns \\\\ into \\, and sed turns \\ into \.
  9208. sed -n \
  9209. "s/'/'\\\\''/g;
  9210. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9211. ;; #(
  9212. *)
  9213. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9214. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9215. ;;
  9216. esac |
  9217. sort
  9218. ) |
  9219. sed '
  9220. /^ac_cv_env_/b end
  9221. t clear
  9222. :clear
  9223. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  9224. t end
  9225. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9226. :end' >>confcache
  9227. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9228. if test -w "$cache_file"; then
  9229. if test "x$cache_file" != "x/dev/null"; then
  9230. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  9231. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  9232. if test ! -f "$cache_file" || test -h "$cache_file"; then
  9233. cat confcache >"$cache_file"
  9234. else
  9235. case $cache_file in #(
  9236. */* | ?:*)
  9237. mv -f confcache "$cache_file"$$ &&
  9238. mv -f "$cache_file"$$ "$cache_file" ;; #(
  9239. *)
  9240. mv -f confcache "$cache_file" ;;
  9241. esac
  9242. fi
  9243. fi
  9244. else
  9245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  9246. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  9247. fi
  9248. fi
  9249. rm -f confcache
  9250. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9251. # Let make expand exec_prefix.
  9252. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9253. DEFS=-DHAVE_CONFIG_H
  9254. ac_libobjs=
  9255. ac_ltlibobjs=
  9256. U=
  9257. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9258. # 1. Remove the extension, and $U if already installed.
  9259. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9260. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  9261. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9262. # will be set to the directory where LIBOBJS objects are built.
  9263. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9264. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  9265. done
  9266. LIBOBJS=$ac_libobjs
  9267. LTLIBOBJS=$ac_ltlibobjs
  9268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  9269. printf %s "checking that generated files are newer than configure... " >&6; }
  9270. if test -n "$am_sleep_pid"; then
  9271. # Hide warnings about reused PIDs.
  9272. wait $am_sleep_pid 2>/dev/null
  9273. fi
  9274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
  9275. printf "%s\n" "done" >&6; }
  9276. if test -n "$EXEEXT"; then
  9277. am__EXEEXT_TRUE=
  9278. am__EXEEXT_FALSE='#'
  9279. else
  9280. am__EXEEXT_TRUE='#'
  9281. am__EXEEXT_FALSE=
  9282. fi
  9283. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  9284. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  9285. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9286. fi
  9287. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  9288. as_fn_error $? "conditional \"AMDEP\" was never defined.
  9289. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9290. fi
  9291. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  9292. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  9293. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9294. fi
  9295. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  9296. as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
  9297. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9298. fi
  9299. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  9300. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  9301. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9302. fi
  9303. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  9304. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  9305. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9306. fi
  9307. if test -z "${HAVE_GETCONTEXT_TRUE}" && test -z "${HAVE_GETCONTEXT_FALSE}"; then
  9308. as_fn_error $? "conditional \"HAVE_GETCONTEXT\" was never defined.
  9309. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9310. fi
  9311. if test -z "${HAVE_MEMFD_CREATE_TRUE}" && test -z "${HAVE_MEMFD_CREATE_FALSE}"; then
  9312. as_fn_error $? "conditional \"HAVE_MEMFD_CREATE\" was never defined.
  9313. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9314. fi
  9315. if test -z "${LINUX_HOST_TRUE}" && test -z "${LINUX_HOST_FALSE}"; then
  9316. as_fn_error $? "conditional \"LINUX_HOST\" was never defined.
  9317. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9318. fi
  9319. if test -z "${ANDROID_HOST_TRUE}" && test -z "${ANDROID_HOST_FALSE}"; then
  9320. as_fn_error $? "conditional \"ANDROID_HOST\" was never defined.
  9321. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9322. fi
  9323. if test -z "${X86_HOST_TRUE}" && test -z "${X86_HOST_FALSE}"; then
  9324. as_fn_error $? "conditional \"X86_HOST\" was never defined.
  9325. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9326. fi
  9327. if test -z "${DISABLE_PROCESSOR_TRUE}" && test -z "${DISABLE_PROCESSOR_FALSE}"; then
  9328. as_fn_error $? "conditional \"DISABLE_PROCESSOR\" was never defined.
  9329. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9330. fi
  9331. if test -z "${DISABLE_TOOLS_TRUE}" && test -z "${DISABLE_TOOLS_FALSE}"; then
  9332. as_fn_error $? "conditional \"DISABLE_TOOLS\" was never defined.
  9333. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9334. fi
  9335. if test -z "${SYSTEM_TEST_LIBS_TRUE}" && test -z "${SYSTEM_TEST_LIBS_FALSE}"; then
  9336. as_fn_error $? "conditional \"SYSTEM_TEST_LIBS\" was never defined.
  9337. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9338. fi
  9339. if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
  9340. as_fn_error $? "conditional \"SELFTEST\" was never defined.
  9341. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9342. fi
  9343. if test -z "${TESTS_AS_ROOT_TRUE}" && test -z "${TESTS_AS_ROOT_FALSE}"; then
  9344. as_fn_error $? "conditional \"TESTS_AS_ROOT\" was never defined.
  9345. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9346. fi
  9347. : "${CONFIG_STATUS=./config.status}"
  9348. ac_write_fail=0
  9349. ac_clean_files_save=$ac_clean_files
  9350. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  9352. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  9353. as_write_fail=0
  9354. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  9355. #! $SHELL
  9356. # Generated by $as_me.
  9357. # Run this file to recreate the current configuration.
  9358. # Compiler output produced by configure, useful for debugging
  9359. # configure, is in config.log if it exists.
  9360. debug=false
  9361. ac_cs_recheck=false
  9362. ac_cs_silent=false
  9363. SHELL=\${CONFIG_SHELL-$SHELL}
  9364. export SHELL
  9365. _ASEOF
  9366. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  9367. ## -------------------- ##
  9368. ## M4sh Initialization. ##
  9369. ## -------------------- ##
  9370. # Be more Bourne compatible
  9371. DUALCASE=1; export DUALCASE # for MKS sh
  9372. as_nop=:
  9373. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  9374. then :
  9375. emulate sh
  9376. NULLCMD=:
  9377. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  9378. # is contrary to our usage. Disable this feature.
  9379. alias -g '${1+"$@"}'='"$@"'
  9380. setopt NO_GLOB_SUBST
  9381. else $as_nop
  9382. case `(set -o) 2>/dev/null` in #(
  9383. *posix*) :
  9384. set -o posix ;; #(
  9385. *) :
  9386. ;;
  9387. esac
  9388. fi
  9389. # Reset variables that may have inherited troublesome values from
  9390. # the environment.
  9391. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  9392. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  9393. # side effect of setting IFS to empty, thus disabling word splitting.)
  9394. # Quoting is to prevent editors from complaining about space-tab.
  9395. as_nl='
  9396. '
  9397. export as_nl
  9398. IFS=" "" $as_nl"
  9399. PS1='$ '
  9400. PS2='> '
  9401. PS4='+ '
  9402. # Ensure predictable behavior from utilities with locale-dependent output.
  9403. LC_ALL=C
  9404. export LC_ALL
  9405. LANGUAGE=C
  9406. export LANGUAGE
  9407. # We cannot yet rely on "unset" to work, but we need these variables
  9408. # to be unset--not just set to an empty or harmless value--now, to
  9409. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  9410. # also avoids known problems related to "unset" and subshell syntax
  9411. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  9412. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  9413. do eval test \${$as_var+y} \
  9414. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  9415. done
  9416. # Ensure that fds 0, 1, and 2 are open.
  9417. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  9418. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  9419. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  9420. # The user is always right.
  9421. if ${PATH_SEPARATOR+false} :; then
  9422. PATH_SEPARATOR=:
  9423. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  9424. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  9425. PATH_SEPARATOR=';'
  9426. }
  9427. fi
  9428. # Find who we are. Look in the path if we contain no directory separator.
  9429. as_myself=
  9430. case $0 in #((
  9431. *[\\/]* ) as_myself=$0 ;;
  9432. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9433. for as_dir in $PATH
  9434. do
  9435. IFS=$as_save_IFS
  9436. case $as_dir in #(((
  9437. '') as_dir=./ ;;
  9438. */) ;;
  9439. *) as_dir=$as_dir/ ;;
  9440. esac
  9441. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  9442. done
  9443. IFS=$as_save_IFS
  9444. ;;
  9445. esac
  9446. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9447. # in which case we are not to be found in the path.
  9448. if test "x$as_myself" = x; then
  9449. as_myself=$0
  9450. fi
  9451. if test ! -f "$as_myself"; then
  9452. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  9453. exit 1
  9454. fi
  9455. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  9456. # ----------------------------------------
  9457. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  9458. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  9459. # script with STATUS, using 1 if that was 0.
  9460. as_fn_error ()
  9461. {
  9462. as_status=$1; test $as_status -eq 0 && as_status=1
  9463. if test "$4"; then
  9464. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  9465. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  9466. fi
  9467. printf "%s\n" "$as_me: error: $2" >&2
  9468. as_fn_exit $as_status
  9469. } # as_fn_error
  9470. # as_fn_set_status STATUS
  9471. # -----------------------
  9472. # Set $? to STATUS, without forking.
  9473. as_fn_set_status ()
  9474. {
  9475. return $1
  9476. } # as_fn_set_status
  9477. # as_fn_exit STATUS
  9478. # -----------------
  9479. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  9480. as_fn_exit ()
  9481. {
  9482. set +e
  9483. as_fn_set_status $1
  9484. exit $1
  9485. } # as_fn_exit
  9486. # as_fn_unset VAR
  9487. # ---------------
  9488. # Portably unset VAR.
  9489. as_fn_unset ()
  9490. {
  9491. { eval $1=; unset $1;}
  9492. }
  9493. as_unset=as_fn_unset
  9494. # as_fn_append VAR VALUE
  9495. # ----------------------
  9496. # Append the text in VALUE to the end of the definition contained in VAR. Take
  9497. # advantage of any shell optimizations that allow amortized linear growth over
  9498. # repeated appends, instead of the typical quadratic growth present in naive
  9499. # implementations.
  9500. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  9501. then :
  9502. eval 'as_fn_append ()
  9503. {
  9504. eval $1+=\$2
  9505. }'
  9506. else $as_nop
  9507. as_fn_append ()
  9508. {
  9509. eval $1=\$$1\$2
  9510. }
  9511. fi # as_fn_append
  9512. # as_fn_arith ARG...
  9513. # ------------------
  9514. # Perform arithmetic evaluation on the ARGs, and store the result in the
  9515. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  9516. # must be portable across $(()) and expr.
  9517. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  9518. then :
  9519. eval 'as_fn_arith ()
  9520. {
  9521. as_val=$(( $* ))
  9522. }'
  9523. else $as_nop
  9524. as_fn_arith ()
  9525. {
  9526. as_val=`expr "$@" || test $? -eq 1`
  9527. }
  9528. fi # as_fn_arith
  9529. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9530. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9531. as_expr=expr
  9532. else
  9533. as_expr=false
  9534. fi
  9535. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  9536. as_basename=basename
  9537. else
  9538. as_basename=false
  9539. fi
  9540. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  9541. as_dirname=dirname
  9542. else
  9543. as_dirname=false
  9544. fi
  9545. as_me=`$as_basename -- "$0" ||
  9546. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9547. X"$0" : 'X\(//\)$' \| \
  9548. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9549. printf "%s\n" X/"$0" |
  9550. sed '/^.*\/\([^/][^/]*\)\/*$/{
  9551. s//\1/
  9552. q
  9553. }
  9554. /^X\/\(\/\/\)$/{
  9555. s//\1/
  9556. q
  9557. }
  9558. /^X\/\(\/\).*/{
  9559. s//\1/
  9560. q
  9561. }
  9562. s/.*/./; q'`
  9563. # Avoid depending upon Character Ranges.
  9564. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9565. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9566. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9567. as_cr_digits='0123456789'
  9568. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9569. # Determine whether it's possible to make 'echo' print without a newline.
  9570. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  9571. # for compatibility with existing Makefiles.
  9572. ECHO_C= ECHO_N= ECHO_T=
  9573. case `echo -n x` in #(((((
  9574. -n*)
  9575. case `echo 'xy\c'` in
  9576. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  9577. xy) ECHO_C='\c';;
  9578. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  9579. ECHO_T=' ';;
  9580. esac;;
  9581. *)
  9582. ECHO_N='-n';;
  9583. esac
  9584. # For backward compatibility with old third-party macros, we provide
  9585. # the shell variables $as_echo and $as_echo_n. New code should use
  9586. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  9587. as_echo='printf %s\n'
  9588. as_echo_n='printf %s'
  9589. rm -f conf$$ conf$$.exe conf$$.file
  9590. if test -d conf$$.dir; then
  9591. rm -f conf$$.dir/conf$$.file
  9592. else
  9593. rm -f conf$$.dir
  9594. mkdir conf$$.dir 2>/dev/null
  9595. fi
  9596. if (echo >conf$$.file) 2>/dev/null; then
  9597. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9598. as_ln_s='ln -s'
  9599. # ... but there are two gotchas:
  9600. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  9601. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  9602. # In both cases, we have to default to `cp -pR'.
  9603. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  9604. as_ln_s='cp -pR'
  9605. elif ln conf$$.file conf$$ 2>/dev/null; then
  9606. as_ln_s=ln
  9607. else
  9608. as_ln_s='cp -pR'
  9609. fi
  9610. else
  9611. as_ln_s='cp -pR'
  9612. fi
  9613. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  9614. rmdir conf$$.dir 2>/dev/null
  9615. # as_fn_mkdir_p
  9616. # -------------
  9617. # Create "$as_dir" as a directory, including parents if necessary.
  9618. as_fn_mkdir_p ()
  9619. {
  9620. case $as_dir in #(
  9621. -*) as_dir=./$as_dir;;
  9622. esac
  9623. test -d "$as_dir" || eval $as_mkdir_p || {
  9624. as_dirs=
  9625. while :; do
  9626. case $as_dir in #(
  9627. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  9628. *) as_qdir=$as_dir;;
  9629. esac
  9630. as_dirs="'$as_qdir' $as_dirs"
  9631. as_dir=`$as_dirname -- "$as_dir" ||
  9632. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9633. X"$as_dir" : 'X\(//\)[^/]' \| \
  9634. X"$as_dir" : 'X\(//\)$' \| \
  9635. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  9636. printf "%s\n" X"$as_dir" |
  9637. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9638. s//\1/
  9639. q
  9640. }
  9641. /^X\(\/\/\)[^/].*/{
  9642. s//\1/
  9643. q
  9644. }
  9645. /^X\(\/\/\)$/{
  9646. s//\1/
  9647. q
  9648. }
  9649. /^X\(\/\).*/{
  9650. s//\1/
  9651. q
  9652. }
  9653. s/.*/./; q'`
  9654. test -d "$as_dir" && break
  9655. done
  9656. test -z "$as_dirs" || eval "mkdir $as_dirs"
  9657. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  9658. } # as_fn_mkdir_p
  9659. if mkdir -p . 2>/dev/null; then
  9660. as_mkdir_p='mkdir -p "$as_dir"'
  9661. else
  9662. test -d ./-p && rmdir ./-p
  9663. as_mkdir_p=false
  9664. fi
  9665. # as_fn_executable_p FILE
  9666. # -----------------------
  9667. # Test if FILE is an executable regular file.
  9668. as_fn_executable_p ()
  9669. {
  9670. test -f "$1" && test -x "$1"
  9671. } # as_fn_executable_p
  9672. as_test_x='test -x'
  9673. as_executable_p=as_fn_executable_p
  9674. # Sed expression to map a string onto a valid CPP name.
  9675. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9676. # Sed expression to map a string onto a valid variable name.
  9677. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9678. exec 6>&1
  9679. ## ----------------------------------- ##
  9680. ## Main body of $CONFIG_STATUS script. ##
  9681. ## ----------------------------------- ##
  9682. _ASEOF
  9683. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  9684. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9685. # Save the log message, to keep $0 and so on meaningful, and to
  9686. # report actual input values of CONFIG_FILES etc. instead of their
  9687. # values after options handling.
  9688. ac_log="
  9689. This file was extended by breakpad $as_me 0.1, which was
  9690. generated by GNU Autoconf 2.71. Invocation command line was
  9691. CONFIG_FILES = $CONFIG_FILES
  9692. CONFIG_HEADERS = $CONFIG_HEADERS
  9693. CONFIG_LINKS = $CONFIG_LINKS
  9694. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9695. $ $0 $@
  9696. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  9697. "
  9698. _ACEOF
  9699. case $ac_config_files in *"
  9700. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  9701. esac
  9702. case $ac_config_headers in *"
  9703. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  9704. esac
  9705. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9706. # Files that config.status was made for.
  9707. config_files="$ac_config_files"
  9708. config_headers="$ac_config_headers"
  9709. config_commands="$ac_config_commands"
  9710. _ACEOF
  9711. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9712. ac_cs_usage="\
  9713. \`$as_me' instantiates files and other configuration actions
  9714. from templates according to the current configuration. Unless the files
  9715. and actions are specified as TAGs, all are instantiated by default.
  9716. Usage: $0 [OPTION]... [TAG]...
  9717. -h, --help print this help, then exit
  9718. -V, --version print version number and configuration settings, then exit
  9719. --config print configuration, then exit
  9720. -q, --quiet, --silent
  9721. do not print progress messages
  9722. -d, --debug don't remove temporary files
  9723. --recheck update $as_me by reconfiguring in the same conditions
  9724. --file=FILE[:TEMPLATE]
  9725. instantiate the configuration file FILE
  9726. --header=FILE[:TEMPLATE]
  9727. instantiate the configuration header FILE
  9728. Configuration files:
  9729. $config_files
  9730. Configuration headers:
  9731. $config_headers
  9732. Configuration commands:
  9733. $config_commands
  9734. Report bugs to <google-breakpad-dev@googlegroups.com>."
  9735. _ACEOF
  9736. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  9737. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  9738. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9739. ac_cs_config='$ac_cs_config_escaped'
  9740. ac_cs_version="\\
  9741. breakpad config.status 0.1
  9742. configured by $0, generated by GNU Autoconf 2.71,
  9743. with options \\"\$ac_cs_config\\"
  9744. Copyright (C) 2021 Free Software Foundation, Inc.
  9745. This config.status script is free software; the Free Software Foundation
  9746. gives unlimited permission to copy, distribute and modify it."
  9747. ac_pwd='$ac_pwd'
  9748. srcdir='$srcdir'
  9749. INSTALL='$INSTALL'
  9750. MKDIR_P='$MKDIR_P'
  9751. AWK='$AWK'
  9752. test -n "\$AWK" || AWK=awk
  9753. _ACEOF
  9754. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9755. # The default lists apply if the user does not specify any file.
  9756. ac_need_defaults=:
  9757. while test $# != 0
  9758. do
  9759. case $1 in
  9760. --*=?*)
  9761. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9762. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  9763. ac_shift=:
  9764. ;;
  9765. --*=)
  9766. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9767. ac_optarg=
  9768. ac_shift=:
  9769. ;;
  9770. *)
  9771. ac_option=$1
  9772. ac_optarg=$2
  9773. ac_shift=shift
  9774. ;;
  9775. esac
  9776. case $ac_option in
  9777. # Handling of the options.
  9778. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9779. ac_cs_recheck=: ;;
  9780. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  9781. printf "%s\n" "$ac_cs_version"; exit ;;
  9782. --config | --confi | --conf | --con | --co | --c )
  9783. printf "%s\n" "$ac_cs_config"; exit ;;
  9784. --debug | --debu | --deb | --de | --d | -d )
  9785. debug=: ;;
  9786. --file | --fil | --fi | --f )
  9787. $ac_shift
  9788. case $ac_optarg in
  9789. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9790. '') as_fn_error $? "missing file argument" ;;
  9791. esac
  9792. as_fn_append CONFIG_FILES " '$ac_optarg'"
  9793. ac_need_defaults=false;;
  9794. --header | --heade | --head | --hea )
  9795. $ac_shift
  9796. case $ac_optarg in
  9797. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9798. esac
  9799. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  9800. ac_need_defaults=false;;
  9801. --he | --h)
  9802. # Conflict between --help and --header
  9803. as_fn_error $? "ambiguous option: \`$1'
  9804. Try \`$0 --help' for more information.";;
  9805. --help | --hel | -h )
  9806. printf "%s\n" "$ac_cs_usage"; exit ;;
  9807. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9808. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9809. ac_cs_silent=: ;;
  9810. # This is an error.
  9811. -*) as_fn_error $? "unrecognized option: \`$1'
  9812. Try \`$0 --help' for more information." ;;
  9813. *) as_fn_append ac_config_targets " $1"
  9814. ac_need_defaults=false ;;
  9815. esac
  9816. shift
  9817. done
  9818. ac_configure_extra_args=
  9819. if $ac_cs_silent; then
  9820. exec 6>/dev/null
  9821. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9822. fi
  9823. _ACEOF
  9824. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9825. if \$ac_cs_recheck; then
  9826. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9827. shift
  9828. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  9829. CONFIG_SHELL='$SHELL'
  9830. export CONFIG_SHELL
  9831. exec "\$@"
  9832. fi
  9833. _ACEOF
  9834. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9835. exec 5>>config.log
  9836. {
  9837. echo
  9838. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9839. ## Running $as_me. ##
  9840. _ASBOX
  9841. printf "%s\n" "$ac_log"
  9842. } >&5
  9843. _ACEOF
  9844. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9845. #
  9846. # INIT-COMMANDS
  9847. #
  9848. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  9849. _ACEOF
  9850. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9851. # Handling of arguments.
  9852. for ac_config_target in $ac_config_targets
  9853. do
  9854. case $ac_config_target in
  9855. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  9856. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  9857. "breakpad.pc") CONFIG_FILES="$CONFIG_FILES breakpad.pc" ;;
  9858. "breakpad-client.pc") CONFIG_FILES="$CONFIG_FILES breakpad-client.pc" ;;
  9859. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  9860. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  9861. esac
  9862. done
  9863. # If the user did not use the arguments to specify the items to instantiate,
  9864. # then the envvar interface is used. Set only those that are not.
  9865. # We use the long form for the default assignment because of an extremely
  9866. # bizarre bug on SunOS 4.1.3.
  9867. if $ac_need_defaults; then
  9868. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  9869. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  9870. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  9871. fi
  9872. # Have a temporary directory for convenience. Make it in the build tree
  9873. # simply because there is no reason against having it here, and in addition,
  9874. # creating and moving files from /tmp can sometimes cause problems.
  9875. # Hook for its removal unless debugging.
  9876. # Note that there is a small window in which the directory will not be cleaned:
  9877. # after its creation but before its name has been assigned to `$tmp'.
  9878. $debug ||
  9879. {
  9880. tmp= ac_tmp=
  9881. trap 'exit_status=$?
  9882. : "${ac_tmp:=$tmp}"
  9883. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  9884. ' 0
  9885. trap 'as_fn_exit 1' 1 2 13 15
  9886. }
  9887. # Create a (secure) tmp directory for tmp files.
  9888. {
  9889. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  9890. test -d "$tmp"
  9891. } ||
  9892. {
  9893. tmp=./conf$$-$RANDOM
  9894. (umask 077 && mkdir "$tmp")
  9895. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  9896. ac_tmp=$tmp
  9897. # Set up the scripts for CONFIG_FILES section.
  9898. # No need to generate them if there are no CONFIG_FILES.
  9899. # This happens for instance with `./config.status config.h'.
  9900. if test -n "$CONFIG_FILES"; then
  9901. ac_cr=`echo X | tr X '\015'`
  9902. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  9903. # But we know of no other shell where ac_cr would be empty at this
  9904. # point, so we can use a bashism as a fallback.
  9905. if test "x$ac_cr" = x; then
  9906. eval ac_cr=\$\'\\r\'
  9907. fi
  9908. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  9909. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  9910. ac_cs_awk_cr='\\r'
  9911. else
  9912. ac_cs_awk_cr=$ac_cr
  9913. fi
  9914. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  9915. _ACEOF
  9916. {
  9917. echo "cat >conf$$subs.awk <<_ACEOF" &&
  9918. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  9919. echo "_ACEOF"
  9920. } >conf$$subs.sh ||
  9921. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9922. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  9923. ac_delim='%!_!# '
  9924. for ac_last_try in false false false false false :; do
  9925. . ./conf$$subs.sh ||
  9926. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9927. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  9928. if test $ac_delim_n = $ac_delim_num; then
  9929. break
  9930. elif $ac_last_try; then
  9931. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9932. else
  9933. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9934. fi
  9935. done
  9936. rm -f conf$$subs.sh
  9937. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9938. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  9939. _ACEOF
  9940. sed -n '
  9941. h
  9942. s/^/S["/; s/!.*/"]=/
  9943. p
  9944. g
  9945. s/^[^!]*!//
  9946. :repl
  9947. t repl
  9948. s/'"$ac_delim"'$//
  9949. t delim
  9950. :nl
  9951. h
  9952. s/\(.\{148\}\)..*/\1/
  9953. t more1
  9954. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  9955. p
  9956. n
  9957. b repl
  9958. :more1
  9959. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9960. p
  9961. g
  9962. s/.\{148\}//
  9963. t nl
  9964. :delim
  9965. h
  9966. s/\(.\{148\}\)..*/\1/
  9967. t more2
  9968. s/["\\]/\\&/g; s/^/"/; s/$/"/
  9969. p
  9970. b
  9971. :more2
  9972. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9973. p
  9974. g
  9975. s/.\{148\}//
  9976. t delim
  9977. ' <conf$$subs.awk | sed '
  9978. /^[^""]/{
  9979. N
  9980. s/\n//
  9981. }
  9982. ' >>$CONFIG_STATUS || ac_write_fail=1
  9983. rm -f conf$$subs.awk
  9984. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9985. _ACAWK
  9986. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  9987. for (key in S) S_is_set[key] = 1
  9988. FS = ""
  9989. }
  9990. {
  9991. line = $ 0
  9992. nfields = split(line, field, "@")
  9993. substed = 0
  9994. len = length(field[1])
  9995. for (i = 2; i < nfields; i++) {
  9996. key = field[i]
  9997. keylen = length(key)
  9998. if (S_is_set[key]) {
  9999. value = S[key]
  10000. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  10001. len += length(value) + length(field[++i])
  10002. substed = 1
  10003. } else
  10004. len += 1 + keylen
  10005. }
  10006. print line
  10007. }
  10008. _ACAWK
  10009. _ACEOF
  10010. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10011. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  10012. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  10013. else
  10014. cat
  10015. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  10016. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  10017. _ACEOF
  10018. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  10019. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  10020. # trailing colons and then remove the whole line if VPATH becomes empty
  10021. # (actually we leave an empty line to preserve line numbers).
  10022. if test "x$srcdir" = x.; then
  10023. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  10024. h
  10025. s///
  10026. s/^/:/
  10027. s/[ ]*$/:/
  10028. s/:\$(srcdir):/:/g
  10029. s/:\${srcdir}:/:/g
  10030. s/:@srcdir@:/:/g
  10031. s/^:*//
  10032. s/:*$//
  10033. x
  10034. s/\(=[ ]*\).*/\1/
  10035. G
  10036. s/\n//
  10037. s/^[^=]*=[ ]*$//
  10038. }'
  10039. fi
  10040. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10041. fi # test -n "$CONFIG_FILES"
  10042. # Set up the scripts for CONFIG_HEADERS section.
  10043. # No need to generate them if there are no CONFIG_HEADERS.
  10044. # This happens for instance with `./config.status Makefile'.
  10045. if test -n "$CONFIG_HEADERS"; then
  10046. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  10047. BEGIN {
  10048. _ACEOF
  10049. # Transform confdefs.h into an awk script `defines.awk', embedded as
  10050. # here-document in config.status, that substitutes the proper values into
  10051. # config.h.in to produce config.h.
  10052. # Create a delimiter string that does not exist in confdefs.h, to ease
  10053. # handling of long lines.
  10054. ac_delim='%!_!# '
  10055. for ac_last_try in false false :; do
  10056. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  10057. if test -z "$ac_tt"; then
  10058. break
  10059. elif $ac_last_try; then
  10060. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  10061. else
  10062. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10063. fi
  10064. done
  10065. # For the awk script, D is an array of macro values keyed by name,
  10066. # likewise P contains macro parameters if any. Preserve backslash
  10067. # newline sequences.
  10068. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  10069. sed -n '
  10070. s/.\{148\}/&'"$ac_delim"'/g
  10071. t rset
  10072. :rset
  10073. s/^[ ]*#[ ]*define[ ][ ]*/ /
  10074. t def
  10075. d
  10076. :def
  10077. s/\\$//
  10078. t bsnl
  10079. s/["\\]/\\&/g
  10080. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10081. D["\1"]=" \3"/p
  10082. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  10083. d
  10084. :bsnl
  10085. s/["\\]/\\&/g
  10086. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10087. D["\1"]=" \3\\\\\\n"\\/p
  10088. t cont
  10089. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  10090. t cont
  10091. d
  10092. :cont
  10093. n
  10094. s/.\{148\}/&'"$ac_delim"'/g
  10095. t clear
  10096. :clear
  10097. s/\\$//
  10098. t bsnlc
  10099. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  10100. d
  10101. :bsnlc
  10102. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  10103. b cont
  10104. ' <confdefs.h | sed '
  10105. s/'"$ac_delim"'/"\\\
  10106. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  10107. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10108. for (key in D) D_is_set[key] = 1
  10109. FS = ""
  10110. }
  10111. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  10112. line = \$ 0
  10113. split(line, arg, " ")
  10114. if (arg[1] == "#") {
  10115. defundef = arg[2]
  10116. mac1 = arg[3]
  10117. } else {
  10118. defundef = substr(arg[1], 2)
  10119. mac1 = arg[2]
  10120. }
  10121. split(mac1, mac2, "(") #)
  10122. macro = mac2[1]
  10123. prefix = substr(line, 1, index(line, defundef) - 1)
  10124. if (D_is_set[macro]) {
  10125. # Preserve the white space surrounding the "#".
  10126. print prefix "define", macro P[macro] D[macro]
  10127. next
  10128. } else {
  10129. # Replace #undef with comments. This is necessary, for example,
  10130. # in the case of _POSIX_SOURCE, which is predefined and required
  10131. # on some systems where configure will not decide to define it.
  10132. if (defundef == "undef") {
  10133. print "/*", prefix defundef, macro, "*/"
  10134. next
  10135. }
  10136. }
  10137. }
  10138. { print }
  10139. _ACAWK
  10140. _ACEOF
  10141. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10142. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  10143. fi # test -n "$CONFIG_HEADERS"
  10144. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  10145. shift
  10146. for ac_tag
  10147. do
  10148. case $ac_tag in
  10149. :[FHLC]) ac_mode=$ac_tag; continue;;
  10150. esac
  10151. case $ac_mode$ac_tag in
  10152. :[FHL]*:*);;
  10153. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  10154. :[FH]-) ac_tag=-:-;;
  10155. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  10156. esac
  10157. ac_save_IFS=$IFS
  10158. IFS=:
  10159. set x $ac_tag
  10160. IFS=$ac_save_IFS
  10161. shift
  10162. ac_file=$1
  10163. shift
  10164. case $ac_mode in
  10165. :L) ac_source=$1;;
  10166. :[FH])
  10167. ac_file_inputs=
  10168. for ac_f
  10169. do
  10170. case $ac_f in
  10171. -) ac_f="$ac_tmp/stdin";;
  10172. *) # Look for the file first in the build tree, then in the source tree
  10173. # (if the path is not absolute). The absolute path cannot be DOS-style,
  10174. # because $ac_f cannot contain `:'.
  10175. test -f "$ac_f" ||
  10176. case $ac_f in
  10177. [\\/$]*) false;;
  10178. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  10179. esac ||
  10180. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  10181. esac
  10182. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  10183. as_fn_append ac_file_inputs " '$ac_f'"
  10184. done
  10185. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10186. # use $as_me), people would be surprised to read:
  10187. # /* config.h. Generated by config.status. */
  10188. configure_input='Generated from '`
  10189. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  10190. `' by configure.'
  10191. if test x"$ac_file" != x-; then
  10192. configure_input="$ac_file. $configure_input"
  10193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  10194. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  10195. fi
  10196. # Neutralize special characters interpreted by sed in replacement strings.
  10197. case $configure_input in #(
  10198. *\&* | *\|* | *\\* )
  10199. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  10200. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  10201. *) ac_sed_conf_input=$configure_input;;
  10202. esac
  10203. case $ac_tag in
  10204. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  10205. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  10206. esac
  10207. ;;
  10208. esac
  10209. ac_dir=`$as_dirname -- "$ac_file" ||
  10210. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10211. X"$ac_file" : 'X\(//\)[^/]' \| \
  10212. X"$ac_file" : 'X\(//\)$' \| \
  10213. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  10214. printf "%s\n" X"$ac_file" |
  10215. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10216. s//\1/
  10217. q
  10218. }
  10219. /^X\(\/\/\)[^/].*/{
  10220. s//\1/
  10221. q
  10222. }
  10223. /^X\(\/\/\)$/{
  10224. s//\1/
  10225. q
  10226. }
  10227. /^X\(\/\).*/{
  10228. s//\1/
  10229. q
  10230. }
  10231. s/.*/./; q'`
  10232. as_dir="$ac_dir"; as_fn_mkdir_p
  10233. ac_builddir=.
  10234. case "$ac_dir" in
  10235. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10236. *)
  10237. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  10238. # A ".." for each directory in $ac_dir_suffix.
  10239. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  10240. case $ac_top_builddir_sub in
  10241. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10242. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  10243. esac ;;
  10244. esac
  10245. ac_abs_top_builddir=$ac_pwd
  10246. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  10247. # for backward compatibility:
  10248. ac_top_builddir=$ac_top_build_prefix
  10249. case $srcdir in
  10250. .) # We are building in place.
  10251. ac_srcdir=.
  10252. ac_top_srcdir=$ac_top_builddir_sub
  10253. ac_abs_top_srcdir=$ac_pwd ;;
  10254. [\\/]* | ?:[\\/]* ) # Absolute name.
  10255. ac_srcdir=$srcdir$ac_dir_suffix;
  10256. ac_top_srcdir=$srcdir
  10257. ac_abs_top_srcdir=$srcdir ;;
  10258. *) # Relative name.
  10259. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  10260. ac_top_srcdir=$ac_top_build_prefix$srcdir
  10261. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  10262. esac
  10263. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  10264. case $ac_mode in
  10265. :F)
  10266. #
  10267. # CONFIG_FILE
  10268. #
  10269. case $INSTALL in
  10270. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  10271. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  10272. esac
  10273. ac_MKDIR_P=$MKDIR_P
  10274. case $MKDIR_P in
  10275. [\\/$]* | ?:[\\/]* ) ;;
  10276. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  10277. esac
  10278. _ACEOF
  10279. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10280. # If the template does not know about datarootdir, expand it.
  10281. # FIXME: This hack should be removed a few years after 2.60.
  10282. ac_datarootdir_hack=; ac_datarootdir_seen=
  10283. ac_sed_dataroot='
  10284. /datarootdir/ {
  10285. p
  10286. q
  10287. }
  10288. /@datadir@/p
  10289. /@docdir@/p
  10290. /@infodir@/p
  10291. /@localedir@/p
  10292. /@mandir@/p'
  10293. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  10294. *datarootdir*) ac_datarootdir_seen=yes;;
  10295. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  10296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  10297. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  10298. _ACEOF
  10299. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10300. ac_datarootdir_hack='
  10301. s&@datadir@&$datadir&g
  10302. s&@docdir@&$docdir&g
  10303. s&@infodir@&$infodir&g
  10304. s&@localedir@&$localedir&g
  10305. s&@mandir@&$mandir&g
  10306. s&\\\${datarootdir}&$datarootdir&g' ;;
  10307. esac
  10308. _ACEOF
  10309. # Neutralize VPATH when `$srcdir' = `.'.
  10310. # Shell code in configure.ac might set extrasub.
  10311. # FIXME: do we really want to maintain this feature?
  10312. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10313. ac_sed_extra="$ac_vpsub
  10314. $extrasub
  10315. _ACEOF
  10316. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10317. :t
  10318. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10319. s|@configure_input@|$ac_sed_conf_input|;t t
  10320. s&@top_builddir@&$ac_top_builddir_sub&;t t
  10321. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  10322. s&@srcdir@&$ac_srcdir&;t t
  10323. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  10324. s&@top_srcdir@&$ac_top_srcdir&;t t
  10325. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  10326. s&@builddir@&$ac_builddir&;t t
  10327. s&@abs_builddir@&$ac_abs_builddir&;t t
  10328. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  10329. s&@INSTALL@&$ac_INSTALL&;t t
  10330. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  10331. $ac_datarootdir_hack
  10332. "
  10333. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  10334. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10335. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  10336. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  10337. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  10338. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  10339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10340. which seems to be undefined. Please make sure it is defined" >&5
  10341. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10342. which seems to be undefined. Please make sure it is defined" >&2;}
  10343. rm -f "$ac_tmp/stdin"
  10344. case $ac_file in
  10345. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  10346. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  10347. esac \
  10348. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10349. ;;
  10350. :H)
  10351. #
  10352. # CONFIG_HEADER
  10353. #
  10354. if test x"$ac_file" != x-; then
  10355. {
  10356. printf "%s\n" "/* $configure_input */" >&1 \
  10357. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  10358. } >"$ac_tmp/config.h" \
  10359. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10360. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  10361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  10362. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  10363. else
  10364. rm -f "$ac_file"
  10365. mv "$ac_tmp/config.h" "$ac_file" \
  10366. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10367. fi
  10368. else
  10369. printf "%s\n" "/* $configure_input */" >&1 \
  10370. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  10371. || as_fn_error $? "could not create -" "$LINENO" 5
  10372. fi
  10373. # Compute "$ac_file"'s index in $config_headers.
  10374. _am_arg="$ac_file"
  10375. _am_stamp_count=1
  10376. for _am_header in $config_headers :; do
  10377. case $_am_header in
  10378. $_am_arg | $_am_arg:* )
  10379. break ;;
  10380. * )
  10381. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  10382. esac
  10383. done
  10384. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  10385. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10386. X"$_am_arg" : 'X\(//\)[^/]' \| \
  10387. X"$_am_arg" : 'X\(//\)$' \| \
  10388. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  10389. printf "%s\n" X"$_am_arg" |
  10390. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10391. s//\1/
  10392. q
  10393. }
  10394. /^X\(\/\/\)[^/].*/{
  10395. s//\1/
  10396. q
  10397. }
  10398. /^X\(\/\/\)$/{
  10399. s//\1/
  10400. q
  10401. }
  10402. /^X\(\/\).*/{
  10403. s//\1/
  10404. q
  10405. }
  10406. s/.*/./; q'`/stamp-h$_am_stamp_count
  10407. ;;
  10408. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  10409. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  10410. ;;
  10411. esac
  10412. case $ac_file$ac_mode in
  10413. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  10414. # Older Autoconf quotes --file arguments for eval, but not when files
  10415. # are listed without --file. Let's play safe and only enable the eval
  10416. # if we detect the quoting.
  10417. # TODO: see whether this extra hack can be removed once we start
  10418. # requiring Autoconf 2.70 or later.
  10419. case $CONFIG_FILES in #(
  10420. *\'*) :
  10421. eval set x "$CONFIG_FILES" ;; #(
  10422. *) :
  10423. set x $CONFIG_FILES ;; #(
  10424. *) :
  10425. ;;
  10426. esac
  10427. shift
  10428. # Used to flag and report bootstrapping failures.
  10429. am_rc=0
  10430. for am_mf
  10431. do
  10432. # Strip MF so we end up with the name of the file.
  10433. am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
  10434. # Check whether this is an Automake generated Makefile which includes
  10435. # dependency-tracking related rules and includes.
  10436. # Grep'ing the whole file directly is not great: AIX grep has a line
  10437. # limit of 2048, but all sed's we know have understand at least 4000.
  10438. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  10439. || continue
  10440. am_dirpart=`$as_dirname -- "$am_mf" ||
  10441. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10442. X"$am_mf" : 'X\(//\)[^/]' \| \
  10443. X"$am_mf" : 'X\(//\)$' \| \
  10444. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  10445. printf "%s\n" X"$am_mf" |
  10446. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10447. s//\1/
  10448. q
  10449. }
  10450. /^X\(\/\/\)[^/].*/{
  10451. s//\1/
  10452. q
  10453. }
  10454. /^X\(\/\/\)$/{
  10455. s//\1/
  10456. q
  10457. }
  10458. /^X\(\/\).*/{
  10459. s//\1/
  10460. q
  10461. }
  10462. s/.*/./; q'`
  10463. am_filepart=`$as_basename -- "$am_mf" ||
  10464. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  10465. X"$am_mf" : 'X\(//\)$' \| \
  10466. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  10467. printf "%s\n" X/"$am_mf" |
  10468. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10469. s//\1/
  10470. q
  10471. }
  10472. /^X\/\(\/\/\)$/{
  10473. s//\1/
  10474. q
  10475. }
  10476. /^X\/\(\/\).*/{
  10477. s//\1/
  10478. q
  10479. }
  10480. s/.*/./; q'`
  10481. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  10482. && sed -e '/# am--include-marker/d' "$am_filepart" \
  10483. | $MAKE -f - am--depfiles" >&5
  10484. (cd "$am_dirpart" \
  10485. && sed -e '/# am--include-marker/d' "$am_filepart" \
  10486. | $MAKE -f - am--depfiles) >&5 2>&5
  10487. ac_status=$?
  10488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10489. (exit $ac_status); } || am_rc=$?
  10490. done
  10491. if test $am_rc -ne 0; then
  10492. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10493. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  10494. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  10495. for automatic dependency tracking. If GNU make was not used, consider
  10496. re-running the configure script with MAKE=\"gmake\" (or whatever is
  10497. necessary). You can also try re-running configure with the
  10498. '--disable-dependency-tracking' option to at least be able to build
  10499. the package (albeit without support for automatic dependency tracking).
  10500. See \`config.log' for more details" "$LINENO" 5; }
  10501. fi
  10502. { am_dirpart=; unset am_dirpart;}
  10503. { am_filepart=; unset am_filepart;}
  10504. { am_mf=; unset am_mf;}
  10505. { am_rc=; unset am_rc;}
  10506. rm -f conftest-deps.mk
  10507. }
  10508. ;;
  10509. esac
  10510. done # for ac_tag
  10511. as_fn_exit 0
  10512. _ACEOF
  10513. ac_clean_files=$ac_clean_files_save
  10514. test $ac_write_fail = 0 ||
  10515. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  10516. # configure is writing to config.log, and then calls config.status.
  10517. # config.status does its own redirection, appending to config.log.
  10518. # Unfortunately, on DOS this fails, as config.log is still kept open
  10519. # by configure, so config.status won't be able to write to it; its
  10520. # output is simply discarded. So we exec the FD to /dev/null,
  10521. # effectively closing config.log, so it can be properly (re)opened and
  10522. # appended to by config.status. When coming back to configure, we
  10523. # need to make the FD available again.
  10524. if test "$no_create" != yes; then
  10525. ac_cs_success=:
  10526. ac_config_status_args=
  10527. test "$silent" = yes &&
  10528. ac_config_status_args="$ac_config_status_args --quiet"
  10529. exec 5>/dev/null
  10530. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  10531. exec 5>>config.log
  10532. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  10533. # would make configure fail if this is the last instruction.
  10534. $ac_cs_success || as_fn_exit 1
  10535. fi
  10536. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  10537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  10538. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  10539. fi