configure 196 KB

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