configure 182 KB

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