configure 257 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1"
  186. if (eval "$as_required") 2>/dev/null; then :
  187. as_have_required=yes
  188. else
  189. as_have_required=no
  190. fi
  191. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  192. else
  193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  194. as_found=false
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. as_found=:
  200. case $as_dir in #(
  201. /*)
  202. for as_base in sh bash ksh sh5; do
  203. # Try only shells that exist, to save several forks.
  204. as_shell=$as_dir/$as_base
  205. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  206. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  207. CONFIG_SHELL=$as_shell as_have_required=yes
  208. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. break 2
  210. fi
  211. fi
  212. done;;
  213. esac
  214. as_found=false
  215. done
  216. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  217. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  218. CONFIG_SHELL=$SHELL as_have_required=yes
  219. fi; }
  220. IFS=$as_save_IFS
  221. if test "x$CONFIG_SHELL" != x; then :
  222. export CONFIG_SHELL
  223. # We cannot yet assume a decent shell, so we have to provide a
  224. # neutralization value for shells without unset; and this also
  225. # works around shells that cannot unset nonexistent variables.
  226. # Preserve -v and -x to the replacement shell.
  227. BASH_ENV=/dev/null
  228. ENV=/dev/null
  229. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  230. case $- in # ((((
  231. *v*x* | *x*v* ) as_opts=-vx ;;
  232. *v* ) as_opts=-v ;;
  233. *x* ) as_opts=-x ;;
  234. * ) as_opts= ;;
  235. esac
  236. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  237. # Admittedly, this is quite paranoid, since all the known shells bail
  238. # out after a failed `exec'.
  239. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  240. exit 255
  241. fi
  242. if test x$as_have_required = xno; then :
  243. $as_echo "$0: This script requires a shell more modern than all"
  244. $as_echo "$0: the shells that I found on your system."
  245. if test x${ZSH_VERSION+set} = xset ; then
  246. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  247. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  248. else
  249. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  250. $0: including any error possibly output before this
  251. $0: message. Then install a modern shell, or manually run
  252. $0: the script under such a shell if you do have one."
  253. fi
  254. exit 1
  255. fi
  256. fi
  257. fi
  258. SHELL=${CONFIG_SHELL-/bin/sh}
  259. export SHELL
  260. # Unset more variables known to interfere with behavior of common tools.
  261. CLICOLOR_FORCE= GREP_OPTIONS=
  262. unset CLICOLOR_FORCE GREP_OPTIONS
  263. ## --------------------- ##
  264. ## M4sh Shell Functions. ##
  265. ## --------------------- ##
  266. # as_fn_unset VAR
  267. # ---------------
  268. # Portably unset VAR.
  269. as_fn_unset ()
  270. {
  271. { eval $1=; unset $1;}
  272. }
  273. as_unset=as_fn_unset
  274. # as_fn_set_status STATUS
  275. # -----------------------
  276. # Set $? to STATUS, without forking.
  277. as_fn_set_status ()
  278. {
  279. return $1
  280. } # as_fn_set_status
  281. # as_fn_exit STATUS
  282. # -----------------
  283. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  284. as_fn_exit ()
  285. {
  286. set +e
  287. as_fn_set_status $1
  288. exit $1
  289. } # as_fn_exit
  290. # as_fn_mkdir_p
  291. # -------------
  292. # Create "$as_dir" as a directory, including parents if necessary.
  293. as_fn_mkdir_p ()
  294. {
  295. case $as_dir in #(
  296. -*) as_dir=./$as_dir;;
  297. esac
  298. test -d "$as_dir" || eval $as_mkdir_p || {
  299. as_dirs=
  300. while :; do
  301. case $as_dir in #(
  302. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  303. *) as_qdir=$as_dir;;
  304. esac
  305. as_dirs="'$as_qdir' $as_dirs"
  306. as_dir=`$as_dirname -- "$as_dir" ||
  307. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  308. X"$as_dir" : 'X\(//\)[^/]' \| \
  309. X"$as_dir" : 'X\(//\)$' \| \
  310. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  311. $as_echo X"$as_dir" |
  312. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  313. s//\1/
  314. q
  315. }
  316. /^X\(\/\/\)[^/].*/{
  317. s//\1/
  318. q
  319. }
  320. /^X\(\/\/\)$/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\).*/{
  325. s//\1/
  326. q
  327. }
  328. s/.*/./; q'`
  329. test -d "$as_dir" && break
  330. done
  331. test -z "$as_dirs" || eval "mkdir $as_dirs"
  332. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  333. } # as_fn_mkdir_p
  334. # as_fn_executable_p FILE
  335. # -----------------------
  336. # Test if FILE is an executable regular file.
  337. as_fn_executable_p ()
  338. {
  339. test -f "$1" && test -x "$1"
  340. } # as_fn_executable_p
  341. # as_fn_append VAR VALUE
  342. # ----------------------
  343. # Append the text in VALUE to the end of the definition contained in VAR. Take
  344. # advantage of any shell optimizations that allow amortized linear growth over
  345. # repeated appends, instead of the typical quadratic growth present in naive
  346. # implementations.
  347. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  348. eval 'as_fn_append ()
  349. {
  350. eval $1+=\$2
  351. }'
  352. else
  353. as_fn_append ()
  354. {
  355. eval $1=\$$1\$2
  356. }
  357. fi # as_fn_append
  358. # as_fn_arith ARG...
  359. # ------------------
  360. # Perform arithmetic evaluation on the ARGs, and store the result in the
  361. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  362. # must be portable across $(()) and expr.
  363. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  364. eval 'as_fn_arith ()
  365. {
  366. as_val=$(( $* ))
  367. }'
  368. else
  369. as_fn_arith ()
  370. {
  371. as_val=`expr "$@" || test $? -eq 1`
  372. }
  373. fi # as_fn_arith
  374. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  375. # ----------------------------------------
  376. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  377. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  378. # script with STATUS, using 1 if that was 0.
  379. as_fn_error ()
  380. {
  381. as_status=$1; test $as_status -eq 0 && as_status=1
  382. if test "$4"; then
  383. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  384. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  385. fi
  386. $as_echo "$as_me: error: $2" >&2
  387. as_fn_exit $as_status
  388. } # as_fn_error
  389. if expr a : '\(a\)' >/dev/null 2>&1 &&
  390. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  391. as_expr=expr
  392. else
  393. as_expr=false
  394. fi
  395. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  396. as_basename=basename
  397. else
  398. as_basename=false
  399. fi
  400. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  401. as_dirname=dirname
  402. else
  403. as_dirname=false
  404. fi
  405. as_me=`$as_basename -- "$0" ||
  406. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  407. X"$0" : 'X\(//\)$' \| \
  408. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  409. $as_echo X/"$0" |
  410. sed '/^.*\/\([^/][^/]*\)\/*$/{
  411. s//\1/
  412. q
  413. }
  414. /^X\/\(\/\/\)$/{
  415. s//\1/
  416. q
  417. }
  418. /^X\/\(\/\).*/{
  419. s//\1/
  420. q
  421. }
  422. s/.*/./; q'`
  423. # Avoid depending upon Character Ranges.
  424. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  425. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  426. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  427. as_cr_digits='0123456789'
  428. as_cr_alnum=$as_cr_Letters$as_cr_digits
  429. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  430. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  431. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  432. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  433. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  434. sed -n '
  435. p
  436. /[$]LINENO/=
  437. ' <$as_myself |
  438. sed '
  439. s/[$]LINENO.*/&-/
  440. t lineno
  441. b
  442. :lineno
  443. N
  444. :loop
  445. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  446. t loop
  447. s/-\n.*//
  448. ' >$as_me.lineno &&
  449. chmod +x "$as_me.lineno" ||
  450. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  451. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  452. # already done that, so ensure we don't try to do so again and fall
  453. # in an infinite loop. This has already happened in practice.
  454. _as_can_reexec=no; export _as_can_reexec
  455. # Don't try to exec as it changes $[0], causing all sort of problems
  456. # (the dirname of $[0] is not the place where we might find the
  457. # original and so on. Autoconf is especially sensitive to this).
  458. . "./$as_me.lineno"
  459. # Exit status is that of the last command.
  460. exit
  461. }
  462. ECHO_C= ECHO_N= ECHO_T=
  463. case `echo -n x` in #(((((
  464. -n*)
  465. case `echo 'xy\c'` in
  466. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  467. xy) ECHO_C='\c';;
  468. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  469. ECHO_T=' ';;
  470. esac;;
  471. *)
  472. ECHO_N='-n';;
  473. esac
  474. rm -f conf$$ conf$$.exe conf$$.file
  475. if test -d conf$$.dir; then
  476. rm -f conf$$.dir/conf$$.file
  477. else
  478. rm -f conf$$.dir
  479. mkdir conf$$.dir 2>/dev/null
  480. fi
  481. if (echo >conf$$.file) 2>/dev/null; then
  482. if ln -s conf$$.file conf$$ 2>/dev/null; then
  483. as_ln_s='ln -s'
  484. # ... but there are two gotchas:
  485. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  486. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  487. # In both cases, we have to default to `cp -pR'.
  488. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  489. as_ln_s='cp -pR'
  490. elif ln conf$$.file conf$$ 2>/dev/null; then
  491. as_ln_s=ln
  492. else
  493. as_ln_s='cp -pR'
  494. fi
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  499. rmdir conf$$.dir 2>/dev/null
  500. if mkdir -p . 2>/dev/null; then
  501. as_mkdir_p='mkdir -p "$as_dir"'
  502. else
  503. test -d ./-p && rmdir ./-p
  504. as_mkdir_p=false
  505. fi
  506. as_test_x='test -x'
  507. as_executable_p=as_fn_executable_p
  508. # Sed expression to map a string onto a valid CPP name.
  509. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  510. # Sed expression to map a string onto a valid variable name.
  511. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  512. test -n "$DJDIR" || exec 7<&0 </dev/null
  513. exec 6>&1
  514. # Name of the host.
  515. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  516. # so uname gets run too.
  517. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  518. #
  519. # Initializations.
  520. #
  521. ac_default_prefix=/usr/local
  522. ac_clean_files=
  523. ac_config_libobj_dir=.
  524. LIBOBJS=
  525. cross_compiling=no
  526. subdirs=
  527. MFLAGS=
  528. MAKEFLAGS=
  529. # Identity of this package.
  530. PACKAGE_NAME=
  531. PACKAGE_TARNAME=
  532. PACKAGE_VERSION=
  533. PACKAGE_STRING=
  534. PACKAGE_BUGREPORT=
  535. PACKAGE_URL=
  536. ac_unique_file="pr/include/nspr.h"
  537. # Factoring default headers for most tests.
  538. ac_includes_default="\
  539. #include <stdio.h>
  540. #ifdef HAVE_SYS_TYPES_H
  541. # include <sys/types.h>
  542. #endif
  543. #ifdef HAVE_SYS_STAT_H
  544. # include <sys/stat.h>
  545. #endif
  546. #ifdef STDC_HEADERS
  547. # include <stdlib.h>
  548. # include <stddef.h>
  549. #else
  550. # ifdef HAVE_STDLIB_H
  551. # include <stdlib.h>
  552. # endif
  553. #endif
  554. #ifdef HAVE_STRING_H
  555. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  556. # include <memory.h>
  557. # endif
  558. # include <string.h>
  559. #endif
  560. #ifdef HAVE_STRINGS_H
  561. # include <strings.h>
  562. #endif
  563. #ifdef HAVE_INTTYPES_H
  564. # include <inttypes.h>
  565. #endif
  566. #ifdef HAVE_STDINT_H
  567. # include <stdint.h>
  568. #endif
  569. #ifdef HAVE_UNISTD_H
  570. # include <unistd.h>
  571. #endif"
  572. ac_subst_vars='LTLIBOBJS
  573. LIBOBJS
  574. MT
  575. NEXT_ROOT
  576. MACOS_SDK_DIR
  577. WRAP_SYSTEM_INCLUDES
  578. VISIBILITY_FLAGS
  579. CYGWIN_WRAPPER
  580. OS_DLLFLAGS
  581. EXEFLAGS
  582. DLLFLAGS
  583. RCFLAGS
  584. RC
  585. OPTIMIZER
  586. NSINSTALL
  587. RELEASE_OBJDIR_NAME
  588. OBJDIR_NAME
  589. OBJDIR
  590. ULTRASPARC_LIBRARY
  591. MOZ_OBJFORMAT
  592. NOSUCHFILE
  593. AIX_LINK_OPTS
  594. RESOLVE_LINK_SYMBOLS
  595. OS_LIBS
  596. PROFILE_USE_LDFLAGS
  597. PROFILE_USE_CFLAGS
  598. PROFILE_GEN_LDFLAGS
  599. PROFILE_GEN_CFLAGS
  600. IMPLIB
  601. FILTER
  602. ASFLAGS
  603. AR_FLAGS
  604. DEFINES
  605. MACOSX_DEPLOYMENT_TARGET
  606. OS_TEST
  607. OS_RELEASE
  608. OS_ARCH
  609. OS_TARGET
  610. DSO_LDOPTS
  611. DSO_CFLAGS
  612. MKSHLIB
  613. WRAP_LDFLAGS
  614. ASM_SUFFIX
  615. DLL_SUFFIX
  616. LIB_SUFFIX
  617. OBJ_SUFFIX
  618. CPU_ARCH
  619. PR_MD_ARCH_DIR
  620. PR_MD_ASFILES
  621. PR_MD_CSRCS
  622. MDCPUCFG_H
  623. NSPR_MODNAME
  624. MOD_PATCH_VERSION
  625. MOD_MINOR_VERSION
  626. MOD_MAJOR_VERSION
  627. LIBPLC
  628. LIBNSPR
  629. USE_NSPR_THREADS
  630. USE_USER_PTHREADS
  631. USE_BTHREADS
  632. USE_PTHREADS
  633. ENABLE_STRIP
  634. OBJECT_MODE
  635. USE_64
  636. USE_X32
  637. USE_N32
  638. USE_IPV6
  639. USE_CPLUS
  640. MOZ_DEBUG_SYMBOLS
  641. MOZ_DEBUG
  642. MOZ_OPTIMIZE
  643. CROSS_COMPILE
  644. MSC_VER
  645. GCC_USE_GNU_LD
  646. GNU_CC
  647. HOST_LDFLAGS
  648. HOST_CFLAGS
  649. MOZILLA_CLIENT
  650. SHELL_OVERRIDE
  651. CCACHE
  652. EGREP
  653. GREP
  654. PERL
  655. CPP
  656. HOST_CC
  657. WINDRES
  658. STRIP
  659. LD
  660. AS
  661. AR
  662. RANLIB
  663. ac_ct_CXX
  664. CXXFLAGS
  665. CXX
  666. OBJEXT
  667. EXEEXT
  668. ac_ct_CC
  669. CPPFLAGS
  670. LDFLAGS
  671. CFLAGS
  672. WHOAMI
  673. dist_libdir
  674. dist_includedir
  675. dist_bindir
  676. dist_prefix
  677. CC
  678. target_os
  679. target_vendor
  680. target_cpu
  681. target
  682. host_os
  683. host_vendor
  684. host_cpu
  685. host
  686. build_os
  687. build_vendor
  688. build_cpu
  689. build
  690. target_alias
  691. host_alias
  692. build_alias
  693. LIBS
  694. ECHO_T
  695. ECHO_N
  696. ECHO_C
  697. DEFS
  698. mandir
  699. localedir
  700. libdir
  701. psdir
  702. pdfdir
  703. dvidir
  704. htmldir
  705. infodir
  706. docdir
  707. oldincludedir
  708. includedir
  709. runstatedir
  710. localstatedir
  711. sharedstatedir
  712. sysconfdir
  713. datadir
  714. datarootdir
  715. libexecdir
  716. sbindir
  717. bindir
  718. program_transform_name
  719. prefix
  720. exec_prefix
  721. PACKAGE_URL
  722. PACKAGE_BUGREPORT
  723. PACKAGE_STRING
  724. PACKAGE_VERSION
  725. PACKAGE_TARNAME
  726. PACKAGE_NAME
  727. PATH_SEPARATOR
  728. SHELL'
  729. ac_subst_files=''
  730. ac_user_opts='
  731. enable_option_checking
  732. with_android_ndk
  733. with_android_toolchain
  734. with_android_version
  735. with_android_platform
  736. with_dist_prefix
  737. with_dist_bindir
  738. with_dist_includedir
  739. with_dist_libdir
  740. with_mozilla
  741. enable_optimize
  742. enable_debug
  743. enable_debug_symbols
  744. enable_win32_target
  745. enable_debug_rtl
  746. enable_static_rtl
  747. enable_x32
  748. enable_64bit
  749. enable_mdupdate
  750. enable_cplus
  751. with_arm_kuser
  752. with_macos_sdk
  753. enable_macos_target
  754. enable_os2_high_mem
  755. enable_thumb2
  756. with_thumb
  757. with_thumb_interwork
  758. with_arch
  759. with_fpu
  760. with_float_abi
  761. with_soft_float
  762. with_ccache
  763. enable_strip
  764. with_pthreads
  765. enable_user_pthreads
  766. enable_nspr_threads
  767. enable_ipv6
  768. enable_wrap_malloc
  769. with_wrap_malloc
  770. '
  771. ac_precious_vars='build_alias
  772. host_alias
  773. target_alias
  774. CC
  775. CFLAGS
  776. LDFLAGS
  777. LIBS
  778. CPPFLAGS
  779. CXX
  780. CXXFLAGS
  781. CCC
  782. CPP'
  783. # Initialize some variables set by options.
  784. ac_init_help=
  785. ac_init_version=false
  786. ac_unrecognized_opts=
  787. ac_unrecognized_sep=
  788. # The variables have the same names as the options, with
  789. # dashes changed to underlines.
  790. cache_file=/dev/null
  791. exec_prefix=NONE
  792. no_create=
  793. no_recursion=
  794. prefix=NONE
  795. program_prefix=NONE
  796. program_suffix=NONE
  797. program_transform_name=s,x,x,
  798. silent=
  799. site=
  800. srcdir=
  801. verbose=
  802. x_includes=NONE
  803. x_libraries=NONE
  804. # Installation directory options.
  805. # These are left unexpanded so users can "make install exec_prefix=/foo"
  806. # and all the variables that are supposed to be based on exec_prefix
  807. # by default will actually change.
  808. # Use braces instead of parens because sh, perl, etc. also accept them.
  809. # (The list follows the same order as the GNU Coding Standards.)
  810. bindir='${exec_prefix}/bin'
  811. sbindir='${exec_prefix}/sbin'
  812. libexecdir='${exec_prefix}/libexec'
  813. datarootdir='${prefix}/share'
  814. datadir='${datarootdir}'
  815. sysconfdir='${prefix}/etc'
  816. sharedstatedir='${prefix}/com'
  817. localstatedir='${prefix}/var'
  818. runstatedir='${localstatedir}/run'
  819. includedir='${prefix}/include'
  820. oldincludedir='/usr/include'
  821. docdir='${datarootdir}/doc/${PACKAGE}'
  822. infodir='${datarootdir}/info'
  823. htmldir='${docdir}'
  824. dvidir='${docdir}'
  825. pdfdir='${docdir}'
  826. psdir='${docdir}'
  827. libdir='${exec_prefix}/lib'
  828. localedir='${datarootdir}/locale'
  829. mandir='${datarootdir}/man'
  830. ac_prev=
  831. ac_dashdash=
  832. for ac_option
  833. do
  834. # If the previous option needs an argument, assign it.
  835. if test -n "$ac_prev"; then
  836. eval $ac_prev=\$ac_option
  837. ac_prev=
  838. continue
  839. fi
  840. case $ac_option in
  841. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  842. *=) ac_optarg= ;;
  843. *) ac_optarg=yes ;;
  844. esac
  845. # Accept the important Cygnus configure options, so we can diagnose typos.
  846. case $ac_dashdash$ac_option in
  847. --)
  848. ac_dashdash=yes ;;
  849. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  850. ac_prev=bindir ;;
  851. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  852. bindir=$ac_optarg ;;
  853. -build | --build | --buil | --bui | --bu)
  854. ac_prev=build_alias ;;
  855. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  856. build_alias=$ac_optarg ;;
  857. -cache-file | --cache-file | --cache-fil | --cache-fi \
  858. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  859. ac_prev=cache_file ;;
  860. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  861. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  862. cache_file=$ac_optarg ;;
  863. --config-cache | -C)
  864. cache_file=config.cache ;;
  865. -datadir | --datadir | --datadi | --datad)
  866. ac_prev=datadir ;;
  867. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  868. datadir=$ac_optarg ;;
  869. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  870. | --dataroo | --dataro | --datar)
  871. ac_prev=datarootdir ;;
  872. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  873. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  874. datarootdir=$ac_optarg ;;
  875. -disable-* | --disable-*)
  876. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  877. # Reject names that are not valid shell variable names.
  878. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  879. as_fn_error $? "invalid feature name: $ac_useropt"
  880. ac_useropt_orig=$ac_useropt
  881. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  882. case $ac_user_opts in
  883. *"
  884. "enable_$ac_useropt"
  885. "*) ;;
  886. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  887. ac_unrecognized_sep=', ';;
  888. esac
  889. eval enable_$ac_useropt=no ;;
  890. -docdir | --docdir | --docdi | --doc | --do)
  891. ac_prev=docdir ;;
  892. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  893. docdir=$ac_optarg ;;
  894. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  895. ac_prev=dvidir ;;
  896. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  897. dvidir=$ac_optarg ;;
  898. -enable-* | --enable-*)
  899. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  900. # Reject names that are not valid shell variable names.
  901. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  902. as_fn_error $? "invalid feature name: $ac_useropt"
  903. ac_useropt_orig=$ac_useropt
  904. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  905. case $ac_user_opts in
  906. *"
  907. "enable_$ac_useropt"
  908. "*) ;;
  909. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  910. ac_unrecognized_sep=', ';;
  911. esac
  912. eval enable_$ac_useropt=\$ac_optarg ;;
  913. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  914. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  915. | --exec | --exe | --ex)
  916. ac_prev=exec_prefix ;;
  917. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  918. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  919. | --exec=* | --exe=* | --ex=*)
  920. exec_prefix=$ac_optarg ;;
  921. -gas | --gas | --ga | --g)
  922. # Obsolete; use --with-gas.
  923. with_gas=yes ;;
  924. -help | --help | --hel | --he | -h)
  925. ac_init_help=long ;;
  926. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  927. ac_init_help=recursive ;;
  928. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  929. ac_init_help=short ;;
  930. -host | --host | --hos | --ho)
  931. ac_prev=host_alias ;;
  932. -host=* | --host=* | --hos=* | --ho=*)
  933. host_alias=$ac_optarg ;;
  934. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  935. ac_prev=htmldir ;;
  936. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  937. | --ht=*)
  938. htmldir=$ac_optarg ;;
  939. -includedir | --includedir | --includedi | --included | --include \
  940. | --includ | --inclu | --incl | --inc)
  941. ac_prev=includedir ;;
  942. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  943. | --includ=* | --inclu=* | --incl=* | --inc=*)
  944. includedir=$ac_optarg ;;
  945. -infodir | --infodir | --infodi | --infod | --info | --inf)
  946. ac_prev=infodir ;;
  947. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  948. infodir=$ac_optarg ;;
  949. -libdir | --libdir | --libdi | --libd)
  950. ac_prev=libdir ;;
  951. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  952. libdir=$ac_optarg ;;
  953. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  954. | --libexe | --libex | --libe)
  955. ac_prev=libexecdir ;;
  956. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  957. | --libexe=* | --libex=* | --libe=*)
  958. libexecdir=$ac_optarg ;;
  959. -localedir | --localedir | --localedi | --localed | --locale)
  960. ac_prev=localedir ;;
  961. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  962. localedir=$ac_optarg ;;
  963. -localstatedir | --localstatedir | --localstatedi | --localstated \
  964. | --localstate | --localstat | --localsta | --localst | --locals)
  965. ac_prev=localstatedir ;;
  966. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  967. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  968. localstatedir=$ac_optarg ;;
  969. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  970. ac_prev=mandir ;;
  971. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  972. mandir=$ac_optarg ;;
  973. -nfp | --nfp | --nf)
  974. # Obsolete; use --without-fp.
  975. with_fp=no ;;
  976. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  977. | --no-cr | --no-c | -n)
  978. no_create=yes ;;
  979. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  980. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  981. no_recursion=yes ;;
  982. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  983. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  984. | --oldin | --oldi | --old | --ol | --o)
  985. ac_prev=oldincludedir ;;
  986. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  987. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  988. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  989. oldincludedir=$ac_optarg ;;
  990. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  991. ac_prev=prefix ;;
  992. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  993. prefix=$ac_optarg ;;
  994. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  995. | --program-pre | --program-pr | --program-p)
  996. ac_prev=program_prefix ;;
  997. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  998. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  999. program_prefix=$ac_optarg ;;
  1000. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1001. | --program-suf | --program-su | --program-s)
  1002. ac_prev=program_suffix ;;
  1003. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1004. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1005. program_suffix=$ac_optarg ;;
  1006. -program-transform-name | --program-transform-name \
  1007. | --program-transform-nam | --program-transform-na \
  1008. | --program-transform-n | --program-transform- \
  1009. | --program-transform | --program-transfor \
  1010. | --program-transfo | --program-transf \
  1011. | --program-trans | --program-tran \
  1012. | --progr-tra | --program-tr | --program-t)
  1013. ac_prev=program_transform_name ;;
  1014. -program-transform-name=* | --program-transform-name=* \
  1015. | --program-transform-nam=* | --program-transform-na=* \
  1016. | --program-transform-n=* | --program-transform-=* \
  1017. | --program-transform=* | --program-transfor=* \
  1018. | --program-transfo=* | --program-transf=* \
  1019. | --program-trans=* | --program-tran=* \
  1020. | --progr-tra=* | --program-tr=* | --program-t=*)
  1021. program_transform_name=$ac_optarg ;;
  1022. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1023. ac_prev=pdfdir ;;
  1024. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1025. pdfdir=$ac_optarg ;;
  1026. -psdir | --psdir | --psdi | --psd | --ps)
  1027. ac_prev=psdir ;;
  1028. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1029. psdir=$ac_optarg ;;
  1030. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1031. | -silent | --silent | --silen | --sile | --sil)
  1032. silent=yes ;;
  1033. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1034. | --runstate | --runstat | --runsta | --runst | --runs \
  1035. | --run | --ru | --r)
  1036. ac_prev=runstatedir ;;
  1037. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1038. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1039. | --run=* | --ru=* | --r=*)
  1040. runstatedir=$ac_optarg ;;
  1041. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1042. ac_prev=sbindir ;;
  1043. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1044. | --sbi=* | --sb=*)
  1045. sbindir=$ac_optarg ;;
  1046. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1047. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1048. | --sharedst | --shareds | --shared | --share | --shar \
  1049. | --sha | --sh)
  1050. ac_prev=sharedstatedir ;;
  1051. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1052. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1053. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1054. | --sha=* | --sh=*)
  1055. sharedstatedir=$ac_optarg ;;
  1056. -site | --site | --sit)
  1057. ac_prev=site ;;
  1058. -site=* | --site=* | --sit=*)
  1059. site=$ac_optarg ;;
  1060. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1061. ac_prev=srcdir ;;
  1062. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1063. srcdir=$ac_optarg ;;
  1064. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1065. | --syscon | --sysco | --sysc | --sys | --sy)
  1066. ac_prev=sysconfdir ;;
  1067. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1068. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1069. sysconfdir=$ac_optarg ;;
  1070. -target | --target | --targe | --targ | --tar | --ta | --t)
  1071. ac_prev=target_alias ;;
  1072. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1073. target_alias=$ac_optarg ;;
  1074. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1075. verbose=yes ;;
  1076. -version | --version | --versio | --versi | --vers | -V)
  1077. ac_init_version=: ;;
  1078. -with-* | --with-*)
  1079. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1080. # Reject names that are not valid shell variable names.
  1081. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1082. as_fn_error $? "invalid package name: $ac_useropt"
  1083. ac_useropt_orig=$ac_useropt
  1084. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1085. case $ac_user_opts in
  1086. *"
  1087. "with_$ac_useropt"
  1088. "*) ;;
  1089. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1090. ac_unrecognized_sep=', ';;
  1091. esac
  1092. eval with_$ac_useropt=\$ac_optarg ;;
  1093. -without-* | --without-*)
  1094. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1095. # Reject names that are not valid shell variable names.
  1096. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1097. as_fn_error $? "invalid package name: $ac_useropt"
  1098. ac_useropt_orig=$ac_useropt
  1099. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1100. case $ac_user_opts in
  1101. *"
  1102. "with_$ac_useropt"
  1103. "*) ;;
  1104. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1105. ac_unrecognized_sep=', ';;
  1106. esac
  1107. eval with_$ac_useropt=no ;;
  1108. --x)
  1109. # Obsolete; use --with-x.
  1110. with_x=yes ;;
  1111. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1112. | --x-incl | --x-inc | --x-in | --x-i)
  1113. ac_prev=x_includes ;;
  1114. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1115. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1116. x_includes=$ac_optarg ;;
  1117. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1118. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1119. ac_prev=x_libraries ;;
  1120. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1121. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1122. x_libraries=$ac_optarg ;;
  1123. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1124. Try \`$0 --help' for more information"
  1125. ;;
  1126. *=*)
  1127. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1128. # Reject names that are not valid shell variable names.
  1129. case $ac_envvar in #(
  1130. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1131. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1132. esac
  1133. eval $ac_envvar=\$ac_optarg
  1134. export $ac_envvar ;;
  1135. *)
  1136. # FIXME: should be removed in autoconf 3.0.
  1137. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1138. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1139. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1140. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1141. ;;
  1142. esac
  1143. done
  1144. if test -n "$ac_prev"; then
  1145. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1146. as_fn_error $? "missing argument to $ac_option"
  1147. fi
  1148. if test -n "$ac_unrecognized_opts"; then
  1149. case $enable_option_checking in
  1150. no) ;;
  1151. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1152. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1153. esac
  1154. fi
  1155. # Check all directory arguments for consistency.
  1156. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1157. datadir sysconfdir sharedstatedir localstatedir includedir \
  1158. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1159. libdir localedir mandir runstatedir
  1160. do
  1161. eval ac_val=\$$ac_var
  1162. # Remove trailing slashes.
  1163. case $ac_val in
  1164. */ )
  1165. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1166. eval $ac_var=\$ac_val;;
  1167. esac
  1168. # Be sure to have absolute directory names.
  1169. case $ac_val in
  1170. [\\/$]* | ?:[\\/]* ) continue;;
  1171. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1172. esac
  1173. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1174. done
  1175. # There might be people who depend on the old broken behavior: `$host'
  1176. # used to hold the argument of --host etc.
  1177. # FIXME: To remove some day.
  1178. build=$build_alias
  1179. host=$host_alias
  1180. target=$target_alias
  1181. # FIXME: To remove some day.
  1182. if test "x$host_alias" != x; then
  1183. if test "x$build_alias" = x; then
  1184. cross_compiling=maybe
  1185. elif test "x$build_alias" != "x$host_alias"; then
  1186. cross_compiling=yes
  1187. fi
  1188. fi
  1189. ac_tool_prefix=
  1190. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1191. test "$silent" = yes && exec 6>/dev/null
  1192. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1193. ac_ls_di=`ls -di .` &&
  1194. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1195. as_fn_error $? "working directory cannot be determined"
  1196. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1197. as_fn_error $? "pwd does not report name of working directory"
  1198. # Find the source files, if location was not specified.
  1199. if test -z "$srcdir"; then
  1200. ac_srcdir_defaulted=yes
  1201. # Try the directory containing this script, then the parent directory.
  1202. ac_confdir=`$as_dirname -- "$as_myself" ||
  1203. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1204. X"$as_myself" : 'X\(//\)[^/]' \| \
  1205. X"$as_myself" : 'X\(//\)$' \| \
  1206. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1207. $as_echo X"$as_myself" |
  1208. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1209. s//\1/
  1210. q
  1211. }
  1212. /^X\(\/\/\)[^/].*/{
  1213. s//\1/
  1214. q
  1215. }
  1216. /^X\(\/\/\)$/{
  1217. s//\1/
  1218. q
  1219. }
  1220. /^X\(\/\).*/{
  1221. s//\1/
  1222. q
  1223. }
  1224. s/.*/./; q'`
  1225. srcdir=$ac_confdir
  1226. if test ! -r "$srcdir/$ac_unique_file"; then
  1227. srcdir=..
  1228. fi
  1229. else
  1230. ac_srcdir_defaulted=no
  1231. fi
  1232. if test ! -r "$srcdir/$ac_unique_file"; then
  1233. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1234. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1235. fi
  1236. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1237. ac_abs_confdir=`(
  1238. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1239. pwd)`
  1240. # When building in place, set srcdir=.
  1241. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1242. srcdir=.
  1243. fi
  1244. # Remove unnecessary trailing slashes from srcdir.
  1245. # Double slashes in file names in object file debugging info
  1246. # mess up M-x gdb in Emacs.
  1247. case $srcdir in
  1248. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1249. esac
  1250. for ac_var in $ac_precious_vars; do
  1251. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1252. eval ac_env_${ac_var}_value=\$${ac_var}
  1253. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1254. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1255. done
  1256. #
  1257. # Report the --help message.
  1258. #
  1259. if test "$ac_init_help" = "long"; then
  1260. # Omit some internal or obsolete options to make the list less imposing.
  1261. # This message is too long to be a string in the A/UX 3.1 sh.
  1262. cat <<_ACEOF
  1263. \`configure' configures this package to adapt to many kinds of systems.
  1264. Usage: $0 [OPTION]... [VAR=VALUE]...
  1265. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1266. VAR=VALUE. See below for descriptions of some of the useful variables.
  1267. Defaults for the options are specified in brackets.
  1268. Configuration:
  1269. -h, --help display this help and exit
  1270. --help=short display options specific to this package
  1271. --help=recursive display the short help of all the included packages
  1272. -V, --version display version information and exit
  1273. -q, --quiet, --silent do not print \`checking ...' messages
  1274. --cache-file=FILE cache test results in FILE [disabled]
  1275. -C, --config-cache alias for \`--cache-file=config.cache'
  1276. -n, --no-create do not create output files
  1277. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1278. Installation directories:
  1279. --prefix=PREFIX install architecture-independent files in PREFIX
  1280. [$ac_default_prefix]
  1281. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1282. [PREFIX]
  1283. By default, \`make install' will install all the files in
  1284. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1285. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1286. for instance \`--prefix=\$HOME'.
  1287. For better control, use the options below.
  1288. Fine tuning of the installation directories:
  1289. --bindir=DIR user executables [EPREFIX/bin]
  1290. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1291. --libexecdir=DIR program executables [EPREFIX/libexec]
  1292. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1293. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1294. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1295. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1296. --libdir=DIR object code libraries [EPREFIX/lib]
  1297. --includedir=DIR C header files [PREFIX/include]
  1298. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1299. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1300. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1301. --infodir=DIR info documentation [DATAROOTDIR/info]
  1302. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1303. --mandir=DIR man documentation [DATAROOTDIR/man]
  1304. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1305. --htmldir=DIR html documentation [DOCDIR]
  1306. --dvidir=DIR dvi documentation [DOCDIR]
  1307. --pdfdir=DIR pdf documentation [DOCDIR]
  1308. --psdir=DIR ps documentation [DOCDIR]
  1309. _ACEOF
  1310. cat <<\_ACEOF
  1311. System types:
  1312. --build=BUILD configure for building on BUILD [guessed]
  1313. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1314. --target=TARGET configure for building compilers for TARGET [HOST]
  1315. _ACEOF
  1316. fi
  1317. if test -n "$ac_init_help"; then
  1318. cat <<\_ACEOF
  1319. Optional Features:
  1320. --disable-option-checking ignore unrecognized --enable/--with options
  1321. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1322. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1323. --enable-optimize=OPT Enable code optimizations (ie. -O2)
  1324. --enable-debug=DBG Enable debugging (using compiler flags DBG)
  1325. --enable-debug-symbols=DBG Enable debugging symbols
  1326. (using compiler flags DBG)
  1327. --enable-win32-target=\$t
  1328. Specify win32 flavor. (WIN95 or WINNT)
  1329. --enable-debug-rtl Use the MSVC debug runtime library
  1330. --enable-static-rtl Use the MSVC static runtime library
  1331. --enable-x32 Enable x32 ABI support (x86_64 only)
  1332. --enable-64bit Enable 64-bit support (on certain platforms)
  1333. --enable-mdupdate Enable use of certain compilers' mdupdate feature
  1334. --enable-cplus Enable some c++ api routines
  1335. --enable-macos-target=VER
  1336. Set the minimum MacOS version needed at runtime
  1337. 10.2 for ppc, 10.4 for x86
  1338. --disable-os2-high-mem Disable high-memory support on OS/2
  1339. --enable-strip Enable stripping of shared libs and programs
  1340. --enable-user-pthreads Build using userland pthreads
  1341. --enable-nspr-threads Build using classic nspr threads
  1342. --enable-ipv6 Compile ipv6 support
  1343. --enable-wrap-malloc Wrap malloc calls (gnu linker only)
  1344. Optional Packages:
  1345. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1346. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1347. --with-android-ndk=DIR
  1348. location where the Android NDK can be found
  1349. --with-android-toolchain=DIR
  1350. location of the Android toolchain
  1351. --with-android-version=VER
  1352. Android platform version, default 5 for arm, 9 for x86/mips
  1353. --with-android-platform=DIR
  1354. location of platform dir
  1355. --with-dist-prefix=DIST_PREFIX
  1356. place build files in DIST_PREFIX dist
  1357. --with-dist-bindir=DIR build execuatables in DIR DIST_PREFIX/bin
  1358. --with-dist-includedir=DIR
  1359. build include files in DIR DIST_PREFIX/include/nspr
  1360. --with-dist-libdir=DIR build library files in DIR DIST_PREFIX/lib
  1361. --with-mozilla Compile NSPR with Mozilla support
  1362. --with-arm-kuser Use kuser helpers (Linux/ARM only)
  1363. (Requires kernel 2.6.13 or later)
  1364. --with-macos-sdk=dir Location of platform SDK to use (Mac OS X only)
  1365. --with-thumb[=yes|no|toolchain-default]
  1366. Use Thumb instruction set (-mthumb)
  1367. --with-thumb-interwork[=yes|no|toolchain-default]
  1368. Use Thumb/ARM instuctions interwork (-mthumb-interwork)
  1369. --with-arch=[type|toolchain-default]
  1370. Use specific CPU features (-march=type)
  1371. --with-fpu=[type|toolchain-default]
  1372. Use specific FPU type (-mfpu=type)
  1373. --with-float-abi=[type|toolchain-default]
  1374. Use specific arm float ABI (-mfloat-abi=type)
  1375. --with-soft-float[=yes|no|toolchain-default]
  1376. Use soft float library (-msoft-float)
  1377. --with-ccache=path/to/ccache
  1378. Enable compiling with ccache
  1379. --with-pthreads Use system pthreads library as thread subsystem
  1380. --with-wrap-malloc=SHAREDLIB Location of malloc wrapper library
  1381. Some influential environment variables:
  1382. CC C compiler command
  1383. CFLAGS C compiler flags
  1384. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1385. nonstandard directory <lib dir>
  1386. LIBS libraries to pass to the linker, e.g. -l<library>
  1387. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1388. you have headers in a nonstandard directory <include dir>
  1389. CXX C++ compiler command
  1390. CXXFLAGS C++ compiler flags
  1391. CPP C preprocessor
  1392. Use these variables to override the choices made by `configure' or to help
  1393. it to find libraries and programs with nonstandard names/locations.
  1394. Report bugs to the package provider.
  1395. _ACEOF
  1396. ac_status=$?
  1397. fi
  1398. if test "$ac_init_help" = "recursive"; then
  1399. # If there are subdirs, report their specific --help.
  1400. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1401. test -d "$ac_dir" ||
  1402. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1403. continue
  1404. ac_builddir=.
  1405. case "$ac_dir" in
  1406. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1407. *)
  1408. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1409. # A ".." for each directory in $ac_dir_suffix.
  1410. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1411. case $ac_top_builddir_sub in
  1412. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1413. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1414. esac ;;
  1415. esac
  1416. ac_abs_top_builddir=$ac_pwd
  1417. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1418. # for backward compatibility:
  1419. ac_top_builddir=$ac_top_build_prefix
  1420. case $srcdir in
  1421. .) # We are building in place.
  1422. ac_srcdir=.
  1423. ac_top_srcdir=$ac_top_builddir_sub
  1424. ac_abs_top_srcdir=$ac_pwd ;;
  1425. [\\/]* | ?:[\\/]* ) # Absolute name.
  1426. ac_srcdir=$srcdir$ac_dir_suffix;
  1427. ac_top_srcdir=$srcdir
  1428. ac_abs_top_srcdir=$srcdir ;;
  1429. *) # Relative name.
  1430. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1431. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1432. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1433. esac
  1434. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1435. cd "$ac_dir" || { ac_status=$?; continue; }
  1436. # Check for guested configure.
  1437. if test -f "$ac_srcdir/configure.gnu"; then
  1438. echo &&
  1439. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1440. elif test -f "$ac_srcdir/configure"; then
  1441. echo &&
  1442. $SHELL "$ac_srcdir/configure" --help=recursive
  1443. else
  1444. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1445. fi || ac_status=$?
  1446. cd "$ac_pwd" || { ac_status=$?; break; }
  1447. done
  1448. fi
  1449. test -n "$ac_init_help" && exit $ac_status
  1450. if $ac_init_version; then
  1451. cat <<\_ACEOF
  1452. configure
  1453. generated by GNU Autoconf 2.69
  1454. Copyright (C) 2012 Free Software Foundation, Inc.
  1455. This configure script is free software; the Free Software Foundation
  1456. gives unlimited permission to copy, distribute and modify it.
  1457. _ACEOF
  1458. exit
  1459. fi
  1460. ## ------------------------ ##
  1461. ## Autoconf initialization. ##
  1462. ## ------------------------ ##
  1463. # ac_fn_c_try_compile LINENO
  1464. # --------------------------
  1465. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1466. ac_fn_c_try_compile ()
  1467. {
  1468. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1469. rm -f conftest.$ac_objext
  1470. if { { ac_try="$ac_compile"
  1471. case "(($ac_try" in
  1472. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1473. *) ac_try_echo=$ac_try;;
  1474. esac
  1475. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1476. $as_echo "$ac_try_echo"; } >&5
  1477. (eval "$ac_compile") 2>conftest.err
  1478. ac_status=$?
  1479. if test -s conftest.err; then
  1480. grep -v '^ *+' conftest.err >conftest.er1
  1481. cat conftest.er1 >&5
  1482. mv -f conftest.er1 conftest.err
  1483. fi
  1484. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1485. test $ac_status = 0; } && {
  1486. test -z "$ac_c_werror_flag" ||
  1487. test ! -s conftest.err
  1488. } && test -s conftest.$ac_objext; then :
  1489. ac_retval=0
  1490. else
  1491. $as_echo "$as_me: failed program was:" >&5
  1492. sed 's/^/| /' conftest.$ac_ext >&5
  1493. ac_retval=1
  1494. fi
  1495. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1496. as_fn_set_status $ac_retval
  1497. } # ac_fn_c_try_compile
  1498. # ac_fn_cxx_try_compile LINENO
  1499. # ----------------------------
  1500. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1501. ac_fn_cxx_try_compile ()
  1502. {
  1503. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1504. rm -f conftest.$ac_objext
  1505. if { { ac_try="$ac_compile"
  1506. case "(($ac_try" in
  1507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1508. *) ac_try_echo=$ac_try;;
  1509. esac
  1510. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1511. $as_echo "$ac_try_echo"; } >&5
  1512. (eval "$ac_compile") 2>conftest.err
  1513. ac_status=$?
  1514. if test -s conftest.err; then
  1515. grep -v '^ *+' conftest.err >conftest.er1
  1516. cat conftest.er1 >&5
  1517. mv -f conftest.er1 conftest.err
  1518. fi
  1519. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1520. test $ac_status = 0; } && {
  1521. test -z "$ac_cxx_werror_flag" ||
  1522. test ! -s conftest.err
  1523. } && test -s conftest.$ac_objext; then :
  1524. ac_retval=0
  1525. else
  1526. $as_echo "$as_me: failed program was:" >&5
  1527. sed 's/^/| /' conftest.$ac_ext >&5
  1528. ac_retval=1
  1529. fi
  1530. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1531. as_fn_set_status $ac_retval
  1532. } # ac_fn_cxx_try_compile
  1533. # ac_fn_c_try_cpp LINENO
  1534. # ----------------------
  1535. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1536. ac_fn_c_try_cpp ()
  1537. {
  1538. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1539. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1540. case "(($ac_try" in
  1541. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1542. *) ac_try_echo=$ac_try;;
  1543. esac
  1544. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1545. $as_echo "$ac_try_echo"; } >&5
  1546. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1547. ac_status=$?
  1548. if test -s conftest.err; then
  1549. grep -v '^ *+' conftest.err >conftest.er1
  1550. cat conftest.er1 >&5
  1551. mv -f conftest.er1 conftest.err
  1552. fi
  1553. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1554. test $ac_status = 0; } > conftest.i && {
  1555. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1556. test ! -s conftest.err
  1557. }; then :
  1558. ac_retval=0
  1559. else
  1560. $as_echo "$as_me: failed program was:" >&5
  1561. sed 's/^/| /' conftest.$ac_ext >&5
  1562. ac_retval=1
  1563. fi
  1564. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1565. as_fn_set_status $ac_retval
  1566. } # ac_fn_c_try_cpp
  1567. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1568. # -------------------------------------------------------
  1569. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1570. # the include files in INCLUDES and setting the cache variable VAR
  1571. # accordingly.
  1572. ac_fn_c_check_header_mongrel ()
  1573. {
  1574. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1575. if eval \${$3+:} false; then :
  1576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1577. $as_echo_n "checking for $2... " >&6; }
  1578. if eval \${$3+:} false; then :
  1579. $as_echo_n "(cached) " >&6
  1580. fi
  1581. eval ac_res=\$$3
  1582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1583. $as_echo "$ac_res" >&6; }
  1584. else
  1585. # Is the header compilable?
  1586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1587. $as_echo_n "checking $2 usability... " >&6; }
  1588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1589. /* end confdefs.h. */
  1590. $4
  1591. #include <$2>
  1592. _ACEOF
  1593. if ac_fn_c_try_compile "$LINENO"; then :
  1594. ac_header_compiler=yes
  1595. else
  1596. ac_header_compiler=no
  1597. fi
  1598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1600. $as_echo "$ac_header_compiler" >&6; }
  1601. # Is the header present?
  1602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1603. $as_echo_n "checking $2 presence... " >&6; }
  1604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1605. /* end confdefs.h. */
  1606. #include <$2>
  1607. _ACEOF
  1608. if ac_fn_c_try_cpp "$LINENO"; then :
  1609. ac_header_preproc=yes
  1610. else
  1611. ac_header_preproc=no
  1612. fi
  1613. rm -f conftest.err conftest.i conftest.$ac_ext
  1614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1615. $as_echo "$ac_header_preproc" >&6; }
  1616. # So? What about this header?
  1617. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1618. yes:no: )
  1619. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1620. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1621. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1622. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1623. ;;
  1624. no:yes:* )
  1625. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1626. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1627. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1628. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1629. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1630. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1631. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1632. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1633. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1634. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1635. ;;
  1636. esac
  1637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1638. $as_echo_n "checking for $2... " >&6; }
  1639. if eval \${$3+:} false; then :
  1640. $as_echo_n "(cached) " >&6
  1641. else
  1642. eval "$3=\$ac_header_compiler"
  1643. fi
  1644. eval ac_res=\$$3
  1645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1646. $as_echo "$ac_res" >&6; }
  1647. fi
  1648. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1649. } # ac_fn_c_check_header_mongrel
  1650. # ac_fn_c_try_run LINENO
  1651. # ----------------------
  1652. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1653. # that executables *can* be run.
  1654. ac_fn_c_try_run ()
  1655. {
  1656. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1657. if { { ac_try="$ac_link"
  1658. case "(($ac_try" in
  1659. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1660. *) ac_try_echo=$ac_try;;
  1661. esac
  1662. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1663. $as_echo "$ac_try_echo"; } >&5
  1664. (eval "$ac_link") 2>&5
  1665. ac_status=$?
  1666. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1667. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1668. { { case "(($ac_try" in
  1669. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1670. *) ac_try_echo=$ac_try;;
  1671. esac
  1672. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1673. $as_echo "$ac_try_echo"; } >&5
  1674. (eval "$ac_try") 2>&5
  1675. ac_status=$?
  1676. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1677. test $ac_status = 0; }; }; then :
  1678. ac_retval=0
  1679. else
  1680. $as_echo "$as_me: program exited with status $ac_status" >&5
  1681. $as_echo "$as_me: failed program was:" >&5
  1682. sed 's/^/| /' conftest.$ac_ext >&5
  1683. ac_retval=$ac_status
  1684. fi
  1685. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1686. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1687. as_fn_set_status $ac_retval
  1688. } # ac_fn_c_try_run
  1689. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1690. # -------------------------------------------------------
  1691. # Tests whether HEADER exists and can be compiled using the include files in
  1692. # INCLUDES, setting the cache variable VAR accordingly.
  1693. ac_fn_c_check_header_compile ()
  1694. {
  1695. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1697. $as_echo_n "checking for $2... " >&6; }
  1698. if eval \${$3+:} false; then :
  1699. $as_echo_n "(cached) " >&6
  1700. else
  1701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1702. /* end confdefs.h. */
  1703. $4
  1704. #include <$2>
  1705. _ACEOF
  1706. if ac_fn_c_try_compile "$LINENO"; then :
  1707. eval "$3=yes"
  1708. else
  1709. eval "$3=no"
  1710. fi
  1711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1712. fi
  1713. eval ac_res=\$$3
  1714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1715. $as_echo "$ac_res" >&6; }
  1716. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1717. } # ac_fn_c_check_header_compile
  1718. # ac_fn_c_try_link LINENO
  1719. # -----------------------
  1720. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1721. ac_fn_c_try_link ()
  1722. {
  1723. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1724. rm -f conftest.$ac_objext conftest$ac_exeext
  1725. if { { ac_try="$ac_link"
  1726. case "(($ac_try" in
  1727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1728. *) ac_try_echo=$ac_try;;
  1729. esac
  1730. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1731. $as_echo "$ac_try_echo"; } >&5
  1732. (eval "$ac_link") 2>conftest.err
  1733. ac_status=$?
  1734. if test -s conftest.err; then
  1735. grep -v '^ *+' conftest.err >conftest.er1
  1736. cat conftest.er1 >&5
  1737. mv -f conftest.er1 conftest.err
  1738. fi
  1739. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1740. test $ac_status = 0; } && {
  1741. test -z "$ac_c_werror_flag" ||
  1742. test ! -s conftest.err
  1743. } && test -s conftest$ac_exeext && {
  1744. test "$cross_compiling" = yes ||
  1745. test -x conftest$ac_exeext
  1746. }; then :
  1747. ac_retval=0
  1748. else
  1749. $as_echo "$as_me: failed program was:" >&5
  1750. sed 's/^/| /' conftest.$ac_ext >&5
  1751. ac_retval=1
  1752. fi
  1753. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1754. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1755. # interfere with the next link command; also delete a directory that is
  1756. # left behind by Apple's compiler. We do this before executing the actions.
  1757. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1758. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1759. as_fn_set_status $ac_retval
  1760. } # ac_fn_c_try_link
  1761. # ac_fn_c_check_func LINENO FUNC VAR
  1762. # ----------------------------------
  1763. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1764. ac_fn_c_check_func ()
  1765. {
  1766. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1768. $as_echo_n "checking for $2... " >&6; }
  1769. if eval \${$3+:} false; then :
  1770. $as_echo_n "(cached) " >&6
  1771. else
  1772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1773. /* end confdefs.h. */
  1774. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1775. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1776. #define $2 innocuous_$2
  1777. /* System header to define __stub macros and hopefully few prototypes,
  1778. which can conflict with char $2 (); below.
  1779. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1780. <limits.h> exists even on freestanding compilers. */
  1781. #ifdef __STDC__
  1782. # include <limits.h>
  1783. #else
  1784. # include <assert.h>
  1785. #endif
  1786. #undef $2
  1787. /* Override any GCC internal prototype to avoid an error.
  1788. Use char because int might match the return type of a GCC
  1789. builtin and then its argument prototype would still apply. */
  1790. #ifdef __cplusplus
  1791. extern "C"
  1792. #endif
  1793. char $2 ();
  1794. /* The GNU C library defines this for functions which it implements
  1795. to always fail with ENOSYS. Some functions are actually named
  1796. something starting with __ and the normal name is an alias. */
  1797. #if defined __stub_$2 || defined __stub___$2
  1798. choke me
  1799. #endif
  1800. int
  1801. main ()
  1802. {
  1803. return $2 ();
  1804. ;
  1805. return 0;
  1806. }
  1807. _ACEOF
  1808. if ac_fn_c_try_link "$LINENO"; then :
  1809. eval "$3=yes"
  1810. else
  1811. eval "$3=no"
  1812. fi
  1813. rm -f core conftest.err conftest.$ac_objext \
  1814. conftest$ac_exeext conftest.$ac_ext
  1815. fi
  1816. eval ac_res=\$$3
  1817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1818. $as_echo "$ac_res" >&6; }
  1819. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1820. } # ac_fn_c_check_func
  1821. cat >config.log <<_ACEOF
  1822. This file contains any messages produced by compilers while
  1823. running configure, to aid debugging if configure makes a mistake.
  1824. It was created by $as_me, which was
  1825. generated by GNU Autoconf 2.69. Invocation command line was
  1826. $ $0 $@
  1827. _ACEOF
  1828. exec 5>>config.log
  1829. {
  1830. cat <<_ASUNAME
  1831. ## --------- ##
  1832. ## Platform. ##
  1833. ## --------- ##
  1834. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1835. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1836. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1837. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1838. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1839. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1840. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1841. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1842. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1843. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1844. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1845. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1846. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1847. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1848. _ASUNAME
  1849. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1850. for as_dir in $PATH
  1851. do
  1852. IFS=$as_save_IFS
  1853. test -z "$as_dir" && as_dir=.
  1854. $as_echo "PATH: $as_dir"
  1855. done
  1856. IFS=$as_save_IFS
  1857. } >&5
  1858. cat >&5 <<_ACEOF
  1859. ## ----------- ##
  1860. ## Core tests. ##
  1861. ## ----------- ##
  1862. _ACEOF
  1863. # Keep a trace of the command line.
  1864. # Strip out --no-create and --no-recursion so they do not pile up.
  1865. # Strip out --silent because we don't want to record it for future runs.
  1866. # Also quote any args containing shell meta-characters.
  1867. # Make two passes to allow for proper duplicate-argument suppression.
  1868. ac_configure_args=
  1869. ac_configure_args0=
  1870. ac_configure_args1=
  1871. ac_must_keep_next=false
  1872. for ac_pass in 1 2
  1873. do
  1874. for ac_arg
  1875. do
  1876. case $ac_arg in
  1877. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1878. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1879. | -silent | --silent | --silen | --sile | --sil)
  1880. continue ;;
  1881. *\'*)
  1882. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1883. esac
  1884. case $ac_pass in
  1885. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1886. 2)
  1887. as_fn_append ac_configure_args1 " '$ac_arg'"
  1888. if test $ac_must_keep_next = true; then
  1889. ac_must_keep_next=false # Got value, back to normal.
  1890. else
  1891. case $ac_arg in
  1892. *=* | --config-cache | -C | -disable-* | --disable-* \
  1893. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1894. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1895. | -with-* | --with-* | -without-* | --without-* | --x)
  1896. case "$ac_configure_args0 " in
  1897. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1898. esac
  1899. ;;
  1900. -* ) ac_must_keep_next=true ;;
  1901. esac
  1902. fi
  1903. as_fn_append ac_configure_args " '$ac_arg'"
  1904. ;;
  1905. esac
  1906. done
  1907. done
  1908. { ac_configure_args0=; unset ac_configure_args0;}
  1909. { ac_configure_args1=; unset ac_configure_args1;}
  1910. # When interrupted or exit'd, cleanup temporary files, and complete
  1911. # config.log. We remove comments because anyway the quotes in there
  1912. # would cause problems or look ugly.
  1913. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1914. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1915. trap 'exit_status=$?
  1916. # Save into config.log some information that might help in debugging.
  1917. {
  1918. echo
  1919. $as_echo "## ---------------- ##
  1920. ## Cache variables. ##
  1921. ## ---------------- ##"
  1922. echo
  1923. # The following way of writing the cache mishandles newlines in values,
  1924. (
  1925. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1926. eval ac_val=\$$ac_var
  1927. case $ac_val in #(
  1928. *${as_nl}*)
  1929. case $ac_var in #(
  1930. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1931. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1932. esac
  1933. case $ac_var in #(
  1934. _ | IFS | as_nl) ;; #(
  1935. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1936. *) { eval $ac_var=; unset $ac_var;} ;;
  1937. esac ;;
  1938. esac
  1939. done
  1940. (set) 2>&1 |
  1941. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1942. *${as_nl}ac_space=\ *)
  1943. sed -n \
  1944. "s/'\''/'\''\\\\'\'''\''/g;
  1945. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1946. ;; #(
  1947. *)
  1948. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1949. ;;
  1950. esac |
  1951. sort
  1952. )
  1953. echo
  1954. $as_echo "## ----------------- ##
  1955. ## Output variables. ##
  1956. ## ----------------- ##"
  1957. echo
  1958. for ac_var in $ac_subst_vars
  1959. do
  1960. eval ac_val=\$$ac_var
  1961. case $ac_val in
  1962. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1963. esac
  1964. $as_echo "$ac_var='\''$ac_val'\''"
  1965. done | sort
  1966. echo
  1967. if test -n "$ac_subst_files"; then
  1968. $as_echo "## ------------------- ##
  1969. ## File substitutions. ##
  1970. ## ------------------- ##"
  1971. echo
  1972. for ac_var in $ac_subst_files
  1973. do
  1974. eval ac_val=\$$ac_var
  1975. case $ac_val in
  1976. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1977. esac
  1978. $as_echo "$ac_var='\''$ac_val'\''"
  1979. done | sort
  1980. echo
  1981. fi
  1982. if test -s confdefs.h; then
  1983. $as_echo "## ----------- ##
  1984. ## confdefs.h. ##
  1985. ## ----------- ##"
  1986. echo
  1987. cat confdefs.h
  1988. echo
  1989. fi
  1990. test "$ac_signal" != 0 &&
  1991. $as_echo "$as_me: caught signal $ac_signal"
  1992. $as_echo "$as_me: exit $exit_status"
  1993. } >&5
  1994. rm -f core *.core core.conftest.* &&
  1995. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1996. exit $exit_status
  1997. ' 0
  1998. for ac_signal in 1 2 13 15; do
  1999. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2000. done
  2001. ac_signal=0
  2002. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2003. rm -f -r conftest* confdefs.h
  2004. $as_echo "/* confdefs.h */" > confdefs.h
  2005. # Predefined preprocessor variables.
  2006. cat >>confdefs.h <<_ACEOF
  2007. #define PACKAGE_NAME "$PACKAGE_NAME"
  2008. _ACEOF
  2009. cat >>confdefs.h <<_ACEOF
  2010. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2011. _ACEOF
  2012. cat >>confdefs.h <<_ACEOF
  2013. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2014. _ACEOF
  2015. cat >>confdefs.h <<_ACEOF
  2016. #define PACKAGE_STRING "$PACKAGE_STRING"
  2017. _ACEOF
  2018. cat >>confdefs.h <<_ACEOF
  2019. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2020. _ACEOF
  2021. cat >>confdefs.h <<_ACEOF
  2022. #define PACKAGE_URL "$PACKAGE_URL"
  2023. _ACEOF
  2024. # Let the site file select an alternate cache file if it wants to.
  2025. # Prefer an explicitly selected file to automatically selected ones.
  2026. ac_site_file1=NONE
  2027. ac_site_file2=NONE
  2028. if test -n "$CONFIG_SITE"; then
  2029. # We do not want a PATH search for config.site.
  2030. case $CONFIG_SITE in #((
  2031. -*) ac_site_file1=./$CONFIG_SITE;;
  2032. */*) ac_site_file1=$CONFIG_SITE;;
  2033. *) ac_site_file1=./$CONFIG_SITE;;
  2034. esac
  2035. elif test "x$prefix" != xNONE; then
  2036. ac_site_file1=$prefix/share/config.site
  2037. ac_site_file2=$prefix/etc/config.site
  2038. else
  2039. ac_site_file1=$ac_default_prefix/share/config.site
  2040. ac_site_file2=$ac_default_prefix/etc/config.site
  2041. fi
  2042. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2043. do
  2044. test "x$ac_site_file" = xNONE && continue
  2045. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2046. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2047. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2048. sed 's/^/| /' "$ac_site_file" >&5
  2049. . "$ac_site_file" \
  2050. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2051. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2052. as_fn_error $? "failed to load site script $ac_site_file
  2053. See \`config.log' for more details" "$LINENO" 5; }
  2054. fi
  2055. done
  2056. if test -r "$cache_file"; then
  2057. # Some versions of bash will fail to source /dev/null (special files
  2058. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2059. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2060. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2061. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2062. case $cache_file in
  2063. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2064. *) . "./$cache_file";;
  2065. esac
  2066. fi
  2067. else
  2068. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2069. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2070. >$cache_file
  2071. fi
  2072. # Check that the precious variables saved in the cache have kept the same
  2073. # value.
  2074. ac_cache_corrupted=false
  2075. for ac_var in $ac_precious_vars; do
  2076. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2077. eval ac_new_set=\$ac_env_${ac_var}_set
  2078. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2079. eval ac_new_val=\$ac_env_${ac_var}_value
  2080. case $ac_old_set,$ac_new_set in
  2081. set,)
  2082. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2083. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2084. ac_cache_corrupted=: ;;
  2085. ,set)
  2086. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2087. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2088. ac_cache_corrupted=: ;;
  2089. ,);;
  2090. *)
  2091. if test "x$ac_old_val" != "x$ac_new_val"; then
  2092. # differences in whitespace do not lead to failure.
  2093. ac_old_val_w=`echo x $ac_old_val`
  2094. ac_new_val_w=`echo x $ac_new_val`
  2095. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2096. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2097. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2098. ac_cache_corrupted=:
  2099. else
  2100. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2101. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2102. eval $ac_var=\$ac_old_val
  2103. fi
  2104. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2105. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2106. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2107. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2108. fi;;
  2109. esac
  2110. # Pass precious variables to config.status.
  2111. if test "$ac_new_set" = set; then
  2112. case $ac_new_val in
  2113. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2114. *) ac_arg=$ac_var=$ac_new_val ;;
  2115. esac
  2116. case " $ac_configure_args " in
  2117. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2118. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2119. esac
  2120. fi
  2121. done
  2122. if $ac_cache_corrupted; then
  2123. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2124. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2125. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2126. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2127. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2128. fi
  2129. ## -------------------- ##
  2130. ## Main body of script. ##
  2131. ## -------------------- ##
  2132. ac_ext=c
  2133. ac_cpp='$CPP $CPPFLAGS'
  2134. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2135. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2136. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2137. ac_aux_dir=
  2138. for ac_dir in ${srcdir}/build/autoconf "$srcdir"/${srcdir}/build/autoconf; do
  2139. if test -f "$ac_dir/install-sh"; then
  2140. ac_aux_dir=$ac_dir
  2141. ac_install_sh="$ac_aux_dir/install-sh -c"
  2142. break
  2143. elif test -f "$ac_dir/install.sh"; then
  2144. ac_aux_dir=$ac_dir
  2145. ac_install_sh="$ac_aux_dir/install.sh -c"
  2146. break
  2147. elif test -f "$ac_dir/shtool"; then
  2148. ac_aux_dir=$ac_dir
  2149. ac_install_sh="$ac_aux_dir/shtool install -c"
  2150. break
  2151. fi
  2152. done
  2153. if test -z "$ac_aux_dir"; then
  2154. as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${srcdir}/build/autoconf \"$srcdir\"/${srcdir}/build/autoconf" "$LINENO" 5
  2155. fi
  2156. # These three variables are undocumented and unsupported,
  2157. # and are intended to be withdrawn in a future Autoconf release.
  2158. # They can cause serious problems if a builder's source tree is in a directory
  2159. # whose full name contains unusual characters.
  2160. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2161. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2162. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2163. # Make sure we can run config.sub.
  2164. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2165. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2167. $as_echo_n "checking build system type... " >&6; }
  2168. if ${ac_cv_build+:} false; then :
  2169. $as_echo_n "(cached) " >&6
  2170. else
  2171. ac_build_alias=$build_alias
  2172. test "x$ac_build_alias" = x &&
  2173. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2174. test "x$ac_build_alias" = x &&
  2175. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2176. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2177. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2178. fi
  2179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2180. $as_echo "$ac_cv_build" >&6; }
  2181. case $ac_cv_build in
  2182. *-*-*) ;;
  2183. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2184. esac
  2185. build=$ac_cv_build
  2186. ac_save_IFS=$IFS; IFS='-'
  2187. set x $ac_cv_build
  2188. shift
  2189. build_cpu=$1
  2190. build_vendor=$2
  2191. shift; shift
  2192. # Remember, the first character of IFS is used to create $*,
  2193. # except with old shells:
  2194. build_os=$*
  2195. IFS=$ac_save_IFS
  2196. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2198. $as_echo_n "checking host system type... " >&6; }
  2199. if ${ac_cv_host+:} false; then :
  2200. $as_echo_n "(cached) " >&6
  2201. else
  2202. if test "x$host_alias" = x; then
  2203. ac_cv_host=$ac_cv_build
  2204. else
  2205. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2206. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2207. fi
  2208. fi
  2209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2210. $as_echo "$ac_cv_host" >&6; }
  2211. case $ac_cv_host in
  2212. *-*-*) ;;
  2213. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2214. esac
  2215. host=$ac_cv_host
  2216. ac_save_IFS=$IFS; IFS='-'
  2217. set x $ac_cv_host
  2218. shift
  2219. host_cpu=$1
  2220. host_vendor=$2
  2221. shift; shift
  2222. # Remember, the first character of IFS is used to create $*,
  2223. # except with old shells:
  2224. host_os=$*
  2225. IFS=$ac_save_IFS
  2226. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2228. $as_echo_n "checking target system type... " >&6; }
  2229. if ${ac_cv_target+:} false; then :
  2230. $as_echo_n "(cached) " >&6
  2231. else
  2232. if test "x$target_alias" = x; then
  2233. ac_cv_target=$ac_cv_host
  2234. else
  2235. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2236. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2237. fi
  2238. fi
  2239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2240. $as_echo "$ac_cv_target" >&6; }
  2241. case $ac_cv_target in
  2242. *-*-*) ;;
  2243. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2244. esac
  2245. target=$ac_cv_target
  2246. ac_save_IFS=$IFS; IFS='-'
  2247. set x $ac_cv_target
  2248. shift
  2249. target_cpu=$1
  2250. target_vendor=$2
  2251. shift; shift
  2252. # Remember, the first character of IFS is used to create $*,
  2253. # except with old shells:
  2254. target_os=$*
  2255. IFS=$ac_save_IFS
  2256. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2257. # The aliases save the names the user supplied, while $host etc.
  2258. # will get canonicalized.
  2259. test -n "$target_alias" &&
  2260. test "$program_prefix$program_suffix$program_transform_name" = \
  2261. NONENONEs,x,x, &&
  2262. program_prefix=${target_alias}-
  2263. MOD_MAJOR_VERSION=4
  2264. MOD_MINOR_VERSION=25
  2265. MOD_PATCH_VERSION=0
  2266. NSPR_MODNAME=nspr20
  2267. _HAVE_PTHREADS=
  2268. USE_PTHREADS=
  2269. USE_USER_PTHREADS=
  2270. USE_NSPR_THREADS=
  2271. USE_N32=
  2272. USE_X32=
  2273. USE_64=
  2274. USE_CPLUS=
  2275. USE_IPV6=
  2276. USE_MDUPDATE=
  2277. _MACOSX_DEPLOYMENT_TARGET=
  2278. _OPTIMIZE_FLAGS=-O
  2279. _DEBUG_FLAGS=-g
  2280. MOZ_DEBUG=1
  2281. MOZ_OPTIMIZE=
  2282. OBJDIR='$(OBJDIR_NAME)'
  2283. OBJDIR_NAME=.
  2284. OBJDIR_SUFFIX=OBJ
  2285. NSINSTALL='$(MOD_DEPTH)/config/$(OBJDIR_NAME)/nsinstall'
  2286. NOSUCHFILE=/no-such-file
  2287. LIBNSPR='-L$(dist_libdir) -lnspr$(MOD_MAJOR_VERSION)'
  2288. LIBPLC='-L$(dist_libdir) -lplc$(MOD_MAJOR_VERSION)'
  2289. CYGWIN_WRAPPER=
  2290. MACOS_SDK_DIR=
  2291. NEXT_ROOT=
  2292. MT=
  2293. MOZ_OS2_HIGH_MEMORY=1
  2294. PROFILE_GEN_CFLAGS=
  2295. PROFILE_GEN_LDFLAGS=
  2296. PROFILE_USE_CFLAGS=
  2297. PROFILE_USE_LDFLAGS=
  2298. RESOLVE_LINK_SYMBOLS=
  2299. CFLAGS="${CFLAGS=}"
  2300. CXXFLAGS="${CXXFLAGS=}"
  2301. LDFLAGS="${LDFLAGS=}"
  2302. DLLFLAGS="${DLLFLAGS=}"
  2303. HOST_CFLAGS="${HOST_CFLAGS=}"
  2304. HOST_LDFLAGS="${HOST_LDFLAGS=}"
  2305. case "$target" in
  2306. *-cygwin*|*-mingw*|*-msys*)
  2307. # Check to see if we are really running in a msvc environemnt
  2308. _WIN32_MSVC=
  2309. for ac_prog in cl
  2310. do
  2311. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2312. set dummy $ac_prog; ac_word=$2
  2313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2314. $as_echo_n "checking for $ac_word... " >&6; }
  2315. if ${ac_cv_prog_CC+:} false; then :
  2316. $as_echo_n "(cached) " >&6
  2317. else
  2318. if test -n "$CC"; then
  2319. ac_cv_prog_CC="$CC" # Let the user override the test.
  2320. else
  2321. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2322. for as_dir in $PATH
  2323. do
  2324. IFS=$as_save_IFS
  2325. test -z "$as_dir" && as_dir=.
  2326. for ac_exec_ext in '' $ac_executable_extensions; do
  2327. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2328. ac_cv_prog_CC="$ac_prog"
  2329. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2330. break 2
  2331. fi
  2332. done
  2333. done
  2334. IFS=$as_save_IFS
  2335. fi
  2336. fi
  2337. CC=$ac_cv_prog_CC
  2338. if test -n "$CC"; then
  2339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2340. $as_echo "$CC" >&6; }
  2341. else
  2342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2343. $as_echo "no" >&6; }
  2344. fi
  2345. test -n "$CC" && break
  2346. done
  2347. cat > conftest.c <<EOF
  2348. #ifdef _MSC_VER
  2349. COMPILER IS MSVC
  2350. #endif
  2351. EOF
  2352. read dummy <<EOF
  2353. $($CC -E conftest.c 2>/dev/null | grep COMPILER)
  2354. EOF
  2355. if test -n "$dummy"; then
  2356. _WIN32_MSVC=1
  2357. CXX=$CC
  2358. fi
  2359. rm -f conftest.c
  2360. ;;
  2361. *-mks*)
  2362. _WIN32_MSVC=1
  2363. ;;
  2364. esac
  2365. if test -n "$_WIN32_MSVC"; then
  2366. SKIP_PATH_CHECKS=1
  2367. SKIP_COMPILER_CHECKS=1
  2368. SKIP_LIBRARY_CHECKS=1
  2369. fi
  2370. # Check whether --with-android-ndk was given.
  2371. if test "${with_android_ndk+set}" = set; then :
  2372. withval=$with_android_ndk; android_ndk=$withval
  2373. fi
  2374. # Check whether --with-android-toolchain was given.
  2375. if test "${with_android_toolchain+set}" = set; then :
  2376. withval=$with_android_toolchain; android_toolchain=$withval
  2377. fi
  2378. case "$target_cpu" in
  2379. arm)
  2380. android_version=5
  2381. ;;
  2382. i?86|mipsel)
  2383. android_version=9
  2384. ;;
  2385. esac
  2386. # Check whether --with-android-version was given.
  2387. if test "${with_android_version+set}" = set; then :
  2388. withval=$with_android_version; android_version=$withval
  2389. fi
  2390. # Check whether --with-android-platform was given.
  2391. if test "${with_android_platform+set}" = set; then :
  2392. withval=$with_android_platform; android_platform=$withval
  2393. fi
  2394. case "$target" in
  2395. x86_64-linux*-android*)
  2396. android_tool_prefix="x86_64-linux-android"
  2397. ;;
  2398. aarch64-linux*-android*)
  2399. android_tool_prefix="aarch64-linux-android"
  2400. ;;
  2401. arm-linux*-android*|*-linuxandroid*)
  2402. android_tool_prefix="arm-linux-androideabi"
  2403. ;;
  2404. i?86-*android*)
  2405. android_tool_prefix="i686-linux-android"
  2406. ;;
  2407. mipsel-*android*)
  2408. android_tool_prefix="mipsel-linux-android"
  2409. ;;
  2410. *)
  2411. android_tool_prefix="$target_os"
  2412. ;;
  2413. esac
  2414. case "$target" in
  2415. *-android*|*-linuxandroid*)
  2416. if test -z "$android_ndk" ; then
  2417. as_fn_error $? "You must specify --with-android-ndk=/path/to/ndk when targeting Android." "$LINENO" 5
  2418. fi
  2419. if test -z "$android_toolchain" ; then
  2420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for android toolchain directory" >&5
  2421. $as_echo_n "checking for android toolchain directory... " >&6; }
  2422. kernel_name=`uname -s | tr "[:upper:]" "[:lower:]"`
  2423. case "$target_cpu" in
  2424. arm)
  2425. target_name=arm-linux-androideabi-4.4.3
  2426. ;;
  2427. i?86)
  2428. target_name=x86-4.4.3
  2429. ;;
  2430. mipsel)
  2431. target_name=mipsel-linux-android-4.4.3
  2432. ;;
  2433. esac
  2434. android_toolchain="$android_ndk"/toolchains/$target_name/prebuilt/$kernel_name-x86
  2435. if test -d "$android_toolchain" ; then
  2436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_toolchain" >&5
  2437. $as_echo "$android_toolchain" >&6; }
  2438. else
  2439. as_fn_error $? "not found. You have to specify --with-android-toolchain=/path/to/ndk/toolchain." "$LINENO" 5
  2440. fi
  2441. fi
  2442. if test -z "$android_platform" ; then
  2443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for android platform directory" >&5
  2444. $as_echo_n "checking for android platform directory... " >&6; }
  2445. case "$target_cpu" in
  2446. arm)
  2447. target_name=arm
  2448. ;;
  2449. i?86)
  2450. target_name=x86
  2451. ;;
  2452. mipsel)
  2453. target_name=mips
  2454. ;;
  2455. esac
  2456. android_platform="$android_ndk"/platforms/android-"$android_version"/arch-"$target_name"
  2457. if test -d "$android_platform" ; then
  2458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_platform" >&5
  2459. $as_echo "$android_platform" >&6; }
  2460. else
  2461. as_fn_error $? "not found. You have to specify --with-android-platform=/path/to/ndk/platform." "$LINENO" 5
  2462. fi
  2463. fi
  2464. case "$target_cpu" in
  2465. i?86)
  2466. if ! test -e "$android_toolchain"/bin/"$android_tool_prefix"-gcc; then
  2467. android_tool_prefix="i686-android-linux"
  2468. fi
  2469. ;;
  2470. esac
  2471. AS="$android_toolchain"/bin/"$android_tool_prefix"-as
  2472. CC="$android_toolchain"/bin/"$android_tool_prefix"-gcc
  2473. CXX="$android_toolchain"/bin/"$android_tool_prefix"-g++
  2474. CPP="$android_toolchain"/bin/"$android_tool_prefix"-cpp
  2475. LD="$android_toolchain"/bin/"$android_tool_prefix"-ld
  2476. AR="$android_toolchain"/bin/"$android_tool_prefix"-ar
  2477. RANLIB="$android_toolchain"/bin/"$android_tool_prefix"-ranlib
  2478. STRIP="$android_toolchain"/bin/"$android_tool_prefix"-strip
  2479. CPPFLAGS="-I$android_platform/usr/include $CPPFLAGS"
  2480. CFLAGS="-mandroid -I$android_platform/usr/include -fno-short-enums -fno-exceptions $CFLAGS"
  2481. CXXFLAGS="-mandroid -I$android_platform/usr/include -fpic -fno-short-enums -fno-exceptions $CXXFLAGS"
  2482. LDFLAGS="-mandroid -L$android_platform/usr/lib -Wl,-rpath-link=$android_platform/usr/lib --sysroot=$android_platform $LDFLAGS"
  2483. $as_echo "#define ANDROID 1" >>confdefs.h
  2484. ;;
  2485. esac
  2486. dist_prefix='${MOD_DEPTH}/dist'
  2487. dist_bindir='${dist_prefix}/bin'
  2488. dist_includedir='${dist_prefix}/include/nspr'
  2489. dist_libdir='${dist_prefix}/lib'
  2490. if test "${includedir}" = '${prefix}/include'; then
  2491. includedir='${prefix}/include/nspr'
  2492. fi
  2493. # Check whether --with-dist-prefix was given.
  2494. if test "${with_dist_prefix+set}" = set; then :
  2495. withval=$with_dist_prefix; dist_prefix=$withval
  2496. fi
  2497. # Check whether --with-dist-bindir was given.
  2498. if test "${with_dist_bindir+set}" = set; then :
  2499. withval=$with_dist_bindir; dist_bindir=$withval
  2500. fi
  2501. # Check whether --with-dist-includedir was given.
  2502. if test "${with_dist_includedir+set}" = set; then :
  2503. withval=$with_dist_includedir; dist_includedir=$withval
  2504. fi
  2505. # Check whether --with-dist-libdir was given.
  2506. if test "${with_dist_libdir+set}" = set; then :
  2507. withval=$with_dist_libdir; dist_libdir=$withval
  2508. fi
  2509. # Check whether --with-mozilla was given.
  2510. if test "${with_mozilla+set}" = set; then :
  2511. withval=$with_mozilla; if test "$withval" = "yes"; then
  2512. $as_echo "#define MOZILLA_CLIENT 1" >>confdefs.h
  2513. MOZILLA_CLIENT=1
  2514. else
  2515. MOZILLA_CLIENT=
  2516. fi
  2517. else
  2518. if test -n "$MOZILLA_CLIENT"; then
  2519. $as_echo "#define MOZILLA_CLIENT 1" >>confdefs.h
  2520. fi
  2521. fi
  2522. # Check whether --enable-optimize was given.
  2523. if test "${enable_optimize+set}" = set; then :
  2524. enableval=$enable_optimize; if test "$enableval" != "no"; then
  2525. MOZ_OPTIMIZE=1
  2526. if test -n "$enableval" -a "$enableval" != "yes"; then
  2527. _OPTIMIZE_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'`
  2528. _SAVE_OPTIMIZE_FLAGS=$_OPTIMIZE_FLAGS
  2529. fi
  2530. else
  2531. MOZ_OPTIMIZE=
  2532. fi
  2533. fi
  2534. # Check whether --enable-debug was given.
  2535. if test "${enable_debug+set}" = set; then :
  2536. enableval=$enable_debug; if test "$enableval" != "no"; then
  2537. MOZ_DEBUG=1
  2538. MOZ_DEBUG_SYMBOLS=1
  2539. if test -n "$enableval" -a "$enableval" != "yes"; then
  2540. _DEBUG_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'`
  2541. _SAVE_DEBUG_FLAGS=$_DEBUG_FLAGS
  2542. fi
  2543. else
  2544. MOZ_DEBUG=
  2545. fi
  2546. else
  2547. MOZ_DEBUG_SYMBOLS=1
  2548. fi
  2549. # Check whether --enable-debug-symbols was given.
  2550. if test "${enable_debug_symbols+set}" = set; then :
  2551. enableval=$enable_debug_symbols; if test "$enableval" != "no"; then
  2552. MOZ_DEBUG_SYMBOLS=1
  2553. if test -n "$enableval" -a "$enableval" != "yes"; then
  2554. if test -z "$_SAVE_DEBUG_FLAGS"; then
  2555. _DEBUG_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'`
  2556. _SAVE_DEBUG_FLAGS=$_DEBUG_FLAGS
  2557. else
  2558. as_fn_error $? "--enable-debug-symbols flags cannot be used with --enable-debug flags" "$LINENO" 5
  2559. fi
  2560. fi
  2561. else
  2562. MOZ_DEBUG_SYMBOLS=
  2563. fi
  2564. fi
  2565. # Check whether --enable-win32-target was given.
  2566. if test "${enable_win32_target+set}" = set; then :
  2567. enableval=$enable_win32_target; OS_TARGET=`echo $enableval | tr a-z A-Z`
  2568. fi
  2569. # Check whether --enable-debug-rtl was given.
  2570. if test "${enable_debug_rtl+set}" = set; then :
  2571. enableval=$enable_debug_rtl; if test "$enableval" = "yes"; then
  2572. USE_DEBUG_RTL=1
  2573. else
  2574. USE_DEBUG_RTL=0
  2575. fi
  2576. fi
  2577. # Check whether --enable-static-rtl was given.
  2578. if test "${enable_static_rtl+set}" = set; then :
  2579. enableval=$enable_static_rtl; if test "$enableval" = "yes"; then
  2580. USE_STATIC_RTL=1
  2581. fi
  2582. fi
  2583. # Check whether --enable-x32 was given.
  2584. if test "${enable_x32+set}" = set; then :
  2585. enableval=$enable_x32; if test "$enableval" = "yes"; then
  2586. USE_X32=1
  2587. else if test "$enableval" = "no"; then
  2588. USE_X32=
  2589. fi
  2590. fi
  2591. fi
  2592. # Check whether --enable-64bit was given.
  2593. if test "${enable_64bit+set}" = set; then :
  2594. enableval=$enable_64bit; if test "$enableval" = "yes"; then
  2595. USE_64=1
  2596. fi
  2597. fi
  2598. # Check whether --enable-mdupdate was given.
  2599. if test "${enable_mdupdate+set}" = set; then :
  2600. enableval=$enable_mdupdate; if test "$enableval" = "yes"; then
  2601. USE_MDUPDATE=1
  2602. fi
  2603. fi
  2604. # Check whether --enable-cplus was given.
  2605. if test "${enable_cplus+set}" = set; then :
  2606. enableval=$enable_cplus; if test "$enableval" = "yes"; then
  2607. USE_CPLUS=1
  2608. fi
  2609. fi
  2610. # Check whether --with-arm-kuser was given.
  2611. if test "${with_arm_kuser+set}" = set; then :
  2612. withval=$with_arm_kuser; if test "$withval" = "yes"; then
  2613. $as_echo "#define _PR_ARM_KUSER 1" >>confdefs.h
  2614. fi
  2615. fi
  2616. # Check whether --with-macos-sdk was given.
  2617. if test "${with_macos_sdk+set}" = set; then :
  2618. withval=$with_macos_sdk; MACOS_SDK_DIR=$withval
  2619. fi
  2620. # Check whether --enable-macos-target was given.
  2621. if test "${enable_macos_target+set}" = set; then :
  2622. enableval=$enable_macos_target; _MACOSX_DEPLOYMENT_TARGET=$enableval
  2623. fi
  2624. case "$target" in
  2625. *-aix*)
  2626. case "${target_os}" in
  2627. aix3.2*)
  2628. USE_NSPR_THREADS=1
  2629. ;;
  2630. *)
  2631. USE_PTHREADS=1
  2632. ;;
  2633. esac
  2634. ;;
  2635. esac
  2636. if test -z "$CC"; then
  2637. case "$target" in
  2638. *-aix*)
  2639. if test -z "$USE_NSPR_THREADS"; then
  2640. CC=xlc_r
  2641. else
  2642. CC=xlc
  2643. fi
  2644. ;;
  2645. *-hpux*)
  2646. CC=cc
  2647. ;;
  2648. *-solaris*)
  2649. CC=cc
  2650. ;;
  2651. esac
  2652. fi
  2653. if test -z "$CXX"; then
  2654. case "$target" in
  2655. *-aix*)
  2656. if test -z "$USE_NSPR_THREADS"; then
  2657. CXX=xlC_r
  2658. else
  2659. CXX=xlC
  2660. fi
  2661. ;;
  2662. *-hpux*)
  2663. case "${target_os}" in
  2664. hpux10.30)
  2665. CXX=aCC
  2666. ;;
  2667. hpux11.*)
  2668. CXX=aCC
  2669. ;;
  2670. *)
  2671. CXX=CC
  2672. ;;
  2673. esac
  2674. ;;
  2675. *-solaris*)
  2676. CXX=CC
  2677. ;;
  2678. esac
  2679. fi
  2680. if test -z "$SKIP_PATH_CHECKS"; then
  2681. # Extract the first word of "$WHOAMI whoami", so it can be a program name with args.
  2682. set dummy $WHOAMI whoami; ac_word=$2
  2683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2684. $as_echo_n "checking for $ac_word... " >&6; }
  2685. if ${ac_cv_path_WHOAMI+:} false; then :
  2686. $as_echo_n "(cached) " >&6
  2687. else
  2688. case $WHOAMI in
  2689. [\\/]* | ?:[\\/]*)
  2690. ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a path.
  2691. ;;
  2692. *)
  2693. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2694. for as_dir in $PATH
  2695. do
  2696. IFS=$as_save_IFS
  2697. test -z "$as_dir" && as_dir=.
  2698. for ac_exec_ext in '' $ac_executable_extensions; do
  2699. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2700. ac_cv_path_WHOAMI="$as_dir/$ac_word$ac_exec_ext"
  2701. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2702. break 2
  2703. fi
  2704. done
  2705. done
  2706. IFS=$as_save_IFS
  2707. test -z "$ac_cv_path_WHOAMI" && ac_cv_path_WHOAMI="echo not_whoami"
  2708. ;;
  2709. esac
  2710. fi
  2711. WHOAMI=$ac_cv_path_WHOAMI
  2712. if test -n "$WHOAMI"; then
  2713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHOAMI" >&5
  2714. $as_echo "$WHOAMI" >&6; }
  2715. else
  2716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2717. $as_echo "no" >&6; }
  2718. fi
  2719. fi
  2720. if test -n "$MOZ_DEBUG"; then
  2721. $as_echo "#define DEBUG 1" >>confdefs.h
  2722. DEFINES="$DEFINES -UNDEBUG"
  2723. case "${target_os}" in
  2724. mks*|cygwin*|mingw*|msys*|os2*)
  2725. DEFINES="$DEFINES -DDEBUG_`echo ${USERNAME} | sed -e 's| |_|g'`"
  2726. ;;
  2727. *)
  2728. DEFINES="$DEFINES -DDEBUG_`$WHOAMI`"
  2729. ;;
  2730. esac
  2731. else
  2732. $as_echo "#define NDEBUG 1" >>confdefs.h
  2733. DEFINES="$DEFINES -UDEBUG"
  2734. fi
  2735. if test -z "$SKIP_COMPILER_CHECKS"; then
  2736. if test "$target" != "$host"; then
  2737. echo "cross compiling from $host to $target"
  2738. cross_compiling=yes
  2739. case "$build:$target" in
  2740. powerpc-apple-darwin8*:i?86-apple-darwin*)
  2741. _SAVE_CFLAGS=$CFLAGS
  2742. _SAVE_CXXFLAGS=$CXXFLAGS
  2743. CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk $CFLAGS"
  2744. CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk $CXXFLAGS"
  2745. ;;
  2746. esac
  2747. for ac_prog in $CC "${target_alias}-gcc" "${target}-gcc"
  2748. do
  2749. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2750. set dummy $ac_prog; ac_word=$2
  2751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2752. $as_echo_n "checking for $ac_word... " >&6; }
  2753. if ${ac_cv_prog_CC+:} false; then :
  2754. $as_echo_n "(cached) " >&6
  2755. else
  2756. if test -n "$CC"; then
  2757. ac_cv_prog_CC="$CC" # Let the user override the test.
  2758. else
  2759. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2760. for as_dir in $PATH
  2761. do
  2762. IFS=$as_save_IFS
  2763. test -z "$as_dir" && as_dir=.
  2764. for ac_exec_ext in '' $ac_executable_extensions; do
  2765. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2766. ac_cv_prog_CC="$ac_prog"
  2767. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2768. break 2
  2769. fi
  2770. done
  2771. done
  2772. IFS=$as_save_IFS
  2773. fi
  2774. fi
  2775. CC=$ac_cv_prog_CC
  2776. if test -n "$CC"; then
  2777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2778. $as_echo "$CC" >&6; }
  2779. else
  2780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2781. $as_echo "no" >&6; }
  2782. fi
  2783. test -n "$CC" && break
  2784. done
  2785. test -n "$CC" || CC="echo"
  2786. unset ac_cv_prog_CC
  2787. fi
  2788. ac_ext=c
  2789. ac_cpp='$CPP $CPPFLAGS'
  2790. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2791. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2792. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2793. if test -n "$ac_tool_prefix"; then
  2794. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2795. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2797. $as_echo_n "checking for $ac_word... " >&6; }
  2798. if ${ac_cv_prog_CC+:} false; then :
  2799. $as_echo_n "(cached) " >&6
  2800. else
  2801. if test -n "$CC"; then
  2802. ac_cv_prog_CC="$CC" # Let the user override the test.
  2803. else
  2804. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2805. for as_dir in $PATH
  2806. do
  2807. IFS=$as_save_IFS
  2808. test -z "$as_dir" && as_dir=.
  2809. for ac_exec_ext in '' $ac_executable_extensions; do
  2810. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2811. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2812. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2813. break 2
  2814. fi
  2815. done
  2816. done
  2817. IFS=$as_save_IFS
  2818. fi
  2819. fi
  2820. CC=$ac_cv_prog_CC
  2821. if test -n "$CC"; then
  2822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2823. $as_echo "$CC" >&6; }
  2824. else
  2825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2826. $as_echo "no" >&6; }
  2827. fi
  2828. fi
  2829. if test -z "$ac_cv_prog_CC"; then
  2830. ac_ct_CC=$CC
  2831. # Extract the first word of "gcc", so it can be a program name with args.
  2832. set dummy gcc; ac_word=$2
  2833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2834. $as_echo_n "checking for $ac_word... " >&6; }
  2835. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2836. $as_echo_n "(cached) " >&6
  2837. else
  2838. if test -n "$ac_ct_CC"; then
  2839. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2840. else
  2841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2842. for as_dir in $PATH
  2843. do
  2844. IFS=$as_save_IFS
  2845. test -z "$as_dir" && as_dir=.
  2846. for ac_exec_ext in '' $ac_executable_extensions; do
  2847. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2848. ac_cv_prog_ac_ct_CC="gcc"
  2849. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2850. break 2
  2851. fi
  2852. done
  2853. done
  2854. IFS=$as_save_IFS
  2855. fi
  2856. fi
  2857. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2858. if test -n "$ac_ct_CC"; then
  2859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2860. $as_echo "$ac_ct_CC" >&6; }
  2861. else
  2862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2863. $as_echo "no" >&6; }
  2864. fi
  2865. if test "x$ac_ct_CC" = x; then
  2866. CC=""
  2867. else
  2868. case $cross_compiling:$ac_tool_warned in
  2869. yes:)
  2870. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2871. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2872. ac_tool_warned=yes ;;
  2873. esac
  2874. CC=$ac_ct_CC
  2875. fi
  2876. else
  2877. CC="$ac_cv_prog_CC"
  2878. fi
  2879. if test -z "$CC"; then
  2880. if test -n "$ac_tool_prefix"; then
  2881. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2882. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2884. $as_echo_n "checking for $ac_word... " >&6; }
  2885. if ${ac_cv_prog_CC+:} false; then :
  2886. $as_echo_n "(cached) " >&6
  2887. else
  2888. if test -n "$CC"; then
  2889. ac_cv_prog_CC="$CC" # Let the user override the test.
  2890. else
  2891. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2892. for as_dir in $PATH
  2893. do
  2894. IFS=$as_save_IFS
  2895. test -z "$as_dir" && as_dir=.
  2896. for ac_exec_ext in '' $ac_executable_extensions; do
  2897. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2898. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2899. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2900. break 2
  2901. fi
  2902. done
  2903. done
  2904. IFS=$as_save_IFS
  2905. fi
  2906. fi
  2907. CC=$ac_cv_prog_CC
  2908. if test -n "$CC"; then
  2909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2910. $as_echo "$CC" >&6; }
  2911. else
  2912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2913. $as_echo "no" >&6; }
  2914. fi
  2915. fi
  2916. fi
  2917. if test -z "$CC"; then
  2918. # Extract the first word of "cc", so it can be a program name with args.
  2919. set dummy cc; ac_word=$2
  2920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2921. $as_echo_n "checking for $ac_word... " >&6; }
  2922. if ${ac_cv_prog_CC+:} false; then :
  2923. $as_echo_n "(cached) " >&6
  2924. else
  2925. if test -n "$CC"; then
  2926. ac_cv_prog_CC="$CC" # Let the user override the test.
  2927. else
  2928. ac_prog_rejected=no
  2929. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2930. for as_dir in $PATH
  2931. do
  2932. IFS=$as_save_IFS
  2933. test -z "$as_dir" && as_dir=.
  2934. for ac_exec_ext in '' $ac_executable_extensions; do
  2935. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2936. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2937. ac_prog_rejected=yes
  2938. continue
  2939. fi
  2940. ac_cv_prog_CC="cc"
  2941. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2942. break 2
  2943. fi
  2944. done
  2945. done
  2946. IFS=$as_save_IFS
  2947. if test $ac_prog_rejected = yes; then
  2948. # We found a bogon in the path, so make sure we never use it.
  2949. set dummy $ac_cv_prog_CC
  2950. shift
  2951. if test $# != 0; then
  2952. # We chose a different compiler from the bogus one.
  2953. # However, it has the same basename, so the bogon will be chosen
  2954. # first if we set CC to just the basename; use the full file name.
  2955. shift
  2956. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2957. fi
  2958. fi
  2959. fi
  2960. fi
  2961. CC=$ac_cv_prog_CC
  2962. if test -n "$CC"; then
  2963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2964. $as_echo "$CC" >&6; }
  2965. else
  2966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2967. $as_echo "no" >&6; }
  2968. fi
  2969. fi
  2970. if test -z "$CC"; then
  2971. if test -n "$ac_tool_prefix"; then
  2972. for ac_prog in cl.exe
  2973. do
  2974. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2975. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2977. $as_echo_n "checking for $ac_word... " >&6; }
  2978. if ${ac_cv_prog_CC+:} false; then :
  2979. $as_echo_n "(cached) " >&6
  2980. else
  2981. if test -n "$CC"; then
  2982. ac_cv_prog_CC="$CC" # Let the user override the test.
  2983. else
  2984. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2985. for as_dir in $PATH
  2986. do
  2987. IFS=$as_save_IFS
  2988. test -z "$as_dir" && as_dir=.
  2989. for ac_exec_ext in '' $ac_executable_extensions; do
  2990. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2991. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2992. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2993. break 2
  2994. fi
  2995. done
  2996. done
  2997. IFS=$as_save_IFS
  2998. fi
  2999. fi
  3000. CC=$ac_cv_prog_CC
  3001. if test -n "$CC"; then
  3002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3003. $as_echo "$CC" >&6; }
  3004. else
  3005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3006. $as_echo "no" >&6; }
  3007. fi
  3008. test -n "$CC" && break
  3009. done
  3010. fi
  3011. if test -z "$CC"; then
  3012. ac_ct_CC=$CC
  3013. for ac_prog in cl.exe
  3014. do
  3015. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3016. set dummy $ac_prog; ac_word=$2
  3017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3018. $as_echo_n "checking for $ac_word... " >&6; }
  3019. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3020. $as_echo_n "(cached) " >&6
  3021. else
  3022. if test -n "$ac_ct_CC"; then
  3023. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3024. else
  3025. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3026. for as_dir in $PATH
  3027. do
  3028. IFS=$as_save_IFS
  3029. test -z "$as_dir" && as_dir=.
  3030. for ac_exec_ext in '' $ac_executable_extensions; do
  3031. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3032. ac_cv_prog_ac_ct_CC="$ac_prog"
  3033. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3034. break 2
  3035. fi
  3036. done
  3037. done
  3038. IFS=$as_save_IFS
  3039. fi
  3040. fi
  3041. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3042. if test -n "$ac_ct_CC"; then
  3043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3044. $as_echo "$ac_ct_CC" >&6; }
  3045. else
  3046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3047. $as_echo "no" >&6; }
  3048. fi
  3049. test -n "$ac_ct_CC" && break
  3050. done
  3051. if test "x$ac_ct_CC" = x; then
  3052. CC=""
  3053. else
  3054. case $cross_compiling:$ac_tool_warned in
  3055. yes:)
  3056. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3057. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3058. ac_tool_warned=yes ;;
  3059. esac
  3060. CC=$ac_ct_CC
  3061. fi
  3062. fi
  3063. fi
  3064. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3065. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3066. as_fn_error $? "no acceptable C compiler found in \$PATH
  3067. See \`config.log' for more details" "$LINENO" 5; }
  3068. # Provide some information about the compiler.
  3069. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3070. set X $ac_compile
  3071. ac_compiler=$2
  3072. for ac_option in --version -v -V -qversion; do
  3073. { { ac_try="$ac_compiler $ac_option >&5"
  3074. case "(($ac_try" in
  3075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3076. *) ac_try_echo=$ac_try;;
  3077. esac
  3078. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3079. $as_echo "$ac_try_echo"; } >&5
  3080. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3081. ac_status=$?
  3082. if test -s conftest.err; then
  3083. sed '10a\
  3084. ... rest of stderr output deleted ...
  3085. 10q' conftest.err >conftest.er1
  3086. cat conftest.er1 >&5
  3087. fi
  3088. rm -f conftest.er1 conftest.err
  3089. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3090. test $ac_status = 0; }
  3091. done
  3092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3093. /* end confdefs.h. */
  3094. int
  3095. main ()
  3096. {
  3097. ;
  3098. return 0;
  3099. }
  3100. _ACEOF
  3101. ac_clean_files_save=$ac_clean_files
  3102. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3103. # Try to create an executable without -o first, disregard a.out.
  3104. # It will help us diagnose broken compilers, and finding out an intuition
  3105. # of exeext.
  3106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3107. $as_echo_n "checking whether the C compiler works... " >&6; }
  3108. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3109. # The possible output files:
  3110. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3111. ac_rmfiles=
  3112. for ac_file in $ac_files
  3113. do
  3114. case $ac_file in
  3115. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3116. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3117. esac
  3118. done
  3119. rm -f $ac_rmfiles
  3120. if { { ac_try="$ac_link_default"
  3121. case "(($ac_try" in
  3122. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3123. *) ac_try_echo=$ac_try;;
  3124. esac
  3125. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3126. $as_echo "$ac_try_echo"; } >&5
  3127. (eval "$ac_link_default") 2>&5
  3128. ac_status=$?
  3129. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3130. test $ac_status = 0; }; then :
  3131. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3132. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3133. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3134. # so that the user can short-circuit this test for compilers unknown to
  3135. # Autoconf.
  3136. for ac_file in $ac_files ''
  3137. do
  3138. test -f "$ac_file" || continue
  3139. case $ac_file in
  3140. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3141. ;;
  3142. [ab].out )
  3143. # We found the default executable, but exeext='' is most
  3144. # certainly right.
  3145. break;;
  3146. *.* )
  3147. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3148. then :; else
  3149. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3150. fi
  3151. # We set ac_cv_exeext here because the later test for it is not
  3152. # safe: cross compilers may not add the suffix if given an `-o'
  3153. # argument, so we may need to know it at that point already.
  3154. # Even if this section looks crufty: it has the advantage of
  3155. # actually working.
  3156. break;;
  3157. * )
  3158. break;;
  3159. esac
  3160. done
  3161. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3162. else
  3163. ac_file=''
  3164. fi
  3165. if test -z "$ac_file"; then :
  3166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3167. $as_echo "no" >&6; }
  3168. $as_echo "$as_me: failed program was:" >&5
  3169. sed 's/^/| /' conftest.$ac_ext >&5
  3170. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3171. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3172. as_fn_error 77 "C compiler cannot create executables
  3173. See \`config.log' for more details" "$LINENO" 5; }
  3174. else
  3175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3176. $as_echo "yes" >&6; }
  3177. fi
  3178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3179. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3181. $as_echo "$ac_file" >&6; }
  3182. ac_exeext=$ac_cv_exeext
  3183. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3184. ac_clean_files=$ac_clean_files_save
  3185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3186. $as_echo_n "checking for suffix of executables... " >&6; }
  3187. if { { ac_try="$ac_link"
  3188. case "(($ac_try" in
  3189. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3190. *) ac_try_echo=$ac_try;;
  3191. esac
  3192. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3193. $as_echo "$ac_try_echo"; } >&5
  3194. (eval "$ac_link") 2>&5
  3195. ac_status=$?
  3196. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3197. test $ac_status = 0; }; then :
  3198. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3199. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3200. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3201. # `rm'.
  3202. for ac_file in conftest.exe conftest conftest.*; do
  3203. test -f "$ac_file" || continue
  3204. case $ac_file in
  3205. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3206. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3207. break;;
  3208. * ) break;;
  3209. esac
  3210. done
  3211. else
  3212. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3213. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3214. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3215. See \`config.log' for more details" "$LINENO" 5; }
  3216. fi
  3217. rm -f conftest conftest$ac_cv_exeext
  3218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3219. $as_echo "$ac_cv_exeext" >&6; }
  3220. rm -f conftest.$ac_ext
  3221. EXEEXT=$ac_cv_exeext
  3222. ac_exeext=$EXEEXT
  3223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3224. /* end confdefs.h. */
  3225. #include <stdio.h>
  3226. int
  3227. main ()
  3228. {
  3229. FILE *f = fopen ("conftest.out", "w");
  3230. return ferror (f) || fclose (f) != 0;
  3231. ;
  3232. return 0;
  3233. }
  3234. _ACEOF
  3235. ac_clean_files="$ac_clean_files conftest.out"
  3236. # Check that the compiler produces executables we can run. If not, either
  3237. # the compiler is broken, or we cross compile.
  3238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3239. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3240. if test "$cross_compiling" != yes; then
  3241. { { ac_try="$ac_link"
  3242. case "(($ac_try" in
  3243. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3244. *) ac_try_echo=$ac_try;;
  3245. esac
  3246. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3247. $as_echo "$ac_try_echo"; } >&5
  3248. (eval "$ac_link") 2>&5
  3249. ac_status=$?
  3250. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3251. test $ac_status = 0; }
  3252. if { ac_try='./conftest$ac_cv_exeext'
  3253. { { case "(($ac_try" in
  3254. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3255. *) ac_try_echo=$ac_try;;
  3256. esac
  3257. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3258. $as_echo "$ac_try_echo"; } >&5
  3259. (eval "$ac_try") 2>&5
  3260. ac_status=$?
  3261. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3262. test $ac_status = 0; }; }; then
  3263. cross_compiling=no
  3264. else
  3265. if test "$cross_compiling" = maybe; then
  3266. cross_compiling=yes
  3267. else
  3268. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3269. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3270. as_fn_error $? "cannot run C compiled programs.
  3271. If you meant to cross compile, use \`--host'.
  3272. See \`config.log' for more details" "$LINENO" 5; }
  3273. fi
  3274. fi
  3275. fi
  3276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3277. $as_echo "$cross_compiling" >&6; }
  3278. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3279. ac_clean_files=$ac_clean_files_save
  3280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3281. $as_echo_n "checking for suffix of object files... " >&6; }
  3282. if ${ac_cv_objext+:} false; then :
  3283. $as_echo_n "(cached) " >&6
  3284. else
  3285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3286. /* end confdefs.h. */
  3287. int
  3288. main ()
  3289. {
  3290. ;
  3291. return 0;
  3292. }
  3293. _ACEOF
  3294. rm -f conftest.o conftest.obj
  3295. if { { ac_try="$ac_compile"
  3296. case "(($ac_try" in
  3297. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3298. *) ac_try_echo=$ac_try;;
  3299. esac
  3300. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3301. $as_echo "$ac_try_echo"; } >&5
  3302. (eval "$ac_compile") 2>&5
  3303. ac_status=$?
  3304. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3305. test $ac_status = 0; }; then :
  3306. for ac_file in conftest.o conftest.obj conftest.*; do
  3307. test -f "$ac_file" || continue;
  3308. case $ac_file in
  3309. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3310. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3311. break;;
  3312. esac
  3313. done
  3314. else
  3315. $as_echo "$as_me: failed program was:" >&5
  3316. sed 's/^/| /' conftest.$ac_ext >&5
  3317. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3318. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3319. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3320. See \`config.log' for more details" "$LINENO" 5; }
  3321. fi
  3322. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3323. fi
  3324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3325. $as_echo "$ac_cv_objext" >&6; }
  3326. OBJEXT=$ac_cv_objext
  3327. ac_objext=$OBJEXT
  3328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3329. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3330. if ${ac_cv_c_compiler_gnu+:} false; then :
  3331. $as_echo_n "(cached) " >&6
  3332. else
  3333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3334. /* end confdefs.h. */
  3335. int
  3336. main ()
  3337. {
  3338. #ifndef __GNUC__
  3339. choke me
  3340. #endif
  3341. ;
  3342. return 0;
  3343. }
  3344. _ACEOF
  3345. if ac_fn_c_try_compile "$LINENO"; then :
  3346. ac_compiler_gnu=yes
  3347. else
  3348. ac_compiler_gnu=no
  3349. fi
  3350. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3351. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3352. fi
  3353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3354. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3355. if test $ac_compiler_gnu = yes; then
  3356. GCC=yes
  3357. else
  3358. GCC=
  3359. fi
  3360. ac_test_CFLAGS=${CFLAGS+set}
  3361. ac_save_CFLAGS=$CFLAGS
  3362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3363. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3364. if ${ac_cv_prog_cc_g+:} false; then :
  3365. $as_echo_n "(cached) " >&6
  3366. else
  3367. ac_save_c_werror_flag=$ac_c_werror_flag
  3368. ac_c_werror_flag=yes
  3369. ac_cv_prog_cc_g=no
  3370. CFLAGS="-g"
  3371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3372. /* end confdefs.h. */
  3373. int
  3374. main ()
  3375. {
  3376. ;
  3377. return 0;
  3378. }
  3379. _ACEOF
  3380. if ac_fn_c_try_compile "$LINENO"; then :
  3381. ac_cv_prog_cc_g=yes
  3382. else
  3383. CFLAGS=""
  3384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3385. /* end confdefs.h. */
  3386. int
  3387. main ()
  3388. {
  3389. ;
  3390. return 0;
  3391. }
  3392. _ACEOF
  3393. if ac_fn_c_try_compile "$LINENO"; then :
  3394. else
  3395. ac_c_werror_flag=$ac_save_c_werror_flag
  3396. CFLAGS="-g"
  3397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3398. /* end confdefs.h. */
  3399. int
  3400. main ()
  3401. {
  3402. ;
  3403. return 0;
  3404. }
  3405. _ACEOF
  3406. if ac_fn_c_try_compile "$LINENO"; then :
  3407. ac_cv_prog_cc_g=yes
  3408. fi
  3409. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3410. fi
  3411. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3412. fi
  3413. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3414. ac_c_werror_flag=$ac_save_c_werror_flag
  3415. fi
  3416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3417. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3418. if test "$ac_test_CFLAGS" = set; then
  3419. CFLAGS=$ac_save_CFLAGS
  3420. elif test $ac_cv_prog_cc_g = yes; then
  3421. if test "$GCC" = yes; then
  3422. CFLAGS="-g -O2"
  3423. else
  3424. CFLAGS="-g"
  3425. fi
  3426. else
  3427. if test "$GCC" = yes; then
  3428. CFLAGS="-O2"
  3429. else
  3430. CFLAGS=
  3431. fi
  3432. fi
  3433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3434. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3435. if ${ac_cv_prog_cc_c89+:} false; then :
  3436. $as_echo_n "(cached) " >&6
  3437. else
  3438. ac_cv_prog_cc_c89=no
  3439. ac_save_CC=$CC
  3440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3441. /* end confdefs.h. */
  3442. #include <stdarg.h>
  3443. #include <stdio.h>
  3444. struct stat;
  3445. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3446. struct buf { int x; };
  3447. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3448. static char *e (p, i)
  3449. char **p;
  3450. int i;
  3451. {
  3452. return p[i];
  3453. }
  3454. static char *f (char * (*g) (char **, int), char **p, ...)
  3455. {
  3456. char *s;
  3457. va_list v;
  3458. va_start (v,p);
  3459. s = g (p, va_arg (v,int));
  3460. va_end (v);
  3461. return s;
  3462. }
  3463. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3464. function prototypes and stuff, but not '\xHH' hex character constants.
  3465. These don't provoke an error unfortunately, instead are silently treated
  3466. as 'x'. The following induces an error, until -std is added to get
  3467. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3468. array size at least. It's necessary to write '\x00'==0 to get something
  3469. that's true only with -std. */
  3470. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3471. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3472. inside strings and character constants. */
  3473. #define FOO(x) 'x'
  3474. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3475. int test (int i, double x);
  3476. struct s1 {int (*f) (int a);};
  3477. struct s2 {int (*f) (double a);};
  3478. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3479. int argc;
  3480. char **argv;
  3481. int
  3482. main ()
  3483. {
  3484. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3485. ;
  3486. return 0;
  3487. }
  3488. _ACEOF
  3489. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3490. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3491. do
  3492. CC="$ac_save_CC $ac_arg"
  3493. if ac_fn_c_try_compile "$LINENO"; then :
  3494. ac_cv_prog_cc_c89=$ac_arg
  3495. fi
  3496. rm -f core conftest.err conftest.$ac_objext
  3497. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3498. done
  3499. rm -f conftest.$ac_ext
  3500. CC=$ac_save_CC
  3501. fi
  3502. # AC_CACHE_VAL
  3503. case "x$ac_cv_prog_cc_c89" in
  3504. x)
  3505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3506. $as_echo "none needed" >&6; } ;;
  3507. xno)
  3508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3509. $as_echo "unsupported" >&6; } ;;
  3510. *)
  3511. CC="$CC $ac_cv_prog_cc_c89"
  3512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3513. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3514. esac
  3515. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3516. fi
  3517. ac_ext=c
  3518. ac_cpp='$CPP $CPPFLAGS'
  3519. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3520. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3521. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3522. if test "$target" != "$host"; then
  3523. if test -n "$USE_CPLUS"; then
  3524. for ac_prog in $CXX "${target_alias}-g++" "${target}-g++"
  3525. do
  3526. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3527. set dummy $ac_prog; ac_word=$2
  3528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3529. $as_echo_n "checking for $ac_word... " >&6; }
  3530. if ${ac_cv_prog_CXX+:} false; then :
  3531. $as_echo_n "(cached) " >&6
  3532. else
  3533. if test -n "$CXX"; then
  3534. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3535. else
  3536. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3537. for as_dir in $PATH
  3538. do
  3539. IFS=$as_save_IFS
  3540. test -z "$as_dir" && as_dir=.
  3541. for ac_exec_ext in '' $ac_executable_extensions; do
  3542. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3543. ac_cv_prog_CXX="$ac_prog"
  3544. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3545. break 2
  3546. fi
  3547. done
  3548. done
  3549. IFS=$as_save_IFS
  3550. fi
  3551. fi
  3552. CXX=$ac_cv_prog_CXX
  3553. if test -n "$CXX"; then
  3554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3555. $as_echo "$CXX" >&6; }
  3556. else
  3557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3558. $as_echo "no" >&6; }
  3559. fi
  3560. test -n "$CXX" && break
  3561. done
  3562. test -n "$CXX" || CXX="echo"
  3563. unset ac_cv_prog_CXX
  3564. ac_ext=cpp
  3565. ac_cpp='$CXXCPP $CPPFLAGS'
  3566. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3567. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3568. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3569. if test -z "$CXX"; then
  3570. if test -n "$CCC"; then
  3571. CXX=$CCC
  3572. else
  3573. if test -n "$ac_tool_prefix"; then
  3574. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3575. do
  3576. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3577. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3579. $as_echo_n "checking for $ac_word... " >&6; }
  3580. if ${ac_cv_prog_CXX+:} false; then :
  3581. $as_echo_n "(cached) " >&6
  3582. else
  3583. if test -n "$CXX"; then
  3584. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3585. else
  3586. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3587. for as_dir in $PATH
  3588. do
  3589. IFS=$as_save_IFS
  3590. test -z "$as_dir" && as_dir=.
  3591. for ac_exec_ext in '' $ac_executable_extensions; do
  3592. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3593. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3594. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3595. break 2
  3596. fi
  3597. done
  3598. done
  3599. IFS=$as_save_IFS
  3600. fi
  3601. fi
  3602. CXX=$ac_cv_prog_CXX
  3603. if test -n "$CXX"; then
  3604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3605. $as_echo "$CXX" >&6; }
  3606. else
  3607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3608. $as_echo "no" >&6; }
  3609. fi
  3610. test -n "$CXX" && break
  3611. done
  3612. fi
  3613. if test -z "$CXX"; then
  3614. ac_ct_CXX=$CXX
  3615. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3616. do
  3617. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3618. set dummy $ac_prog; ac_word=$2
  3619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3620. $as_echo_n "checking for $ac_word... " >&6; }
  3621. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3622. $as_echo_n "(cached) " >&6
  3623. else
  3624. if test -n "$ac_ct_CXX"; then
  3625. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3626. else
  3627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3628. for as_dir in $PATH
  3629. do
  3630. IFS=$as_save_IFS
  3631. test -z "$as_dir" && as_dir=.
  3632. for ac_exec_ext in '' $ac_executable_extensions; do
  3633. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3634. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3635. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3636. break 2
  3637. fi
  3638. done
  3639. done
  3640. IFS=$as_save_IFS
  3641. fi
  3642. fi
  3643. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3644. if test -n "$ac_ct_CXX"; then
  3645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3646. $as_echo "$ac_ct_CXX" >&6; }
  3647. else
  3648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3649. $as_echo "no" >&6; }
  3650. fi
  3651. test -n "$ac_ct_CXX" && break
  3652. done
  3653. if test "x$ac_ct_CXX" = x; then
  3654. CXX="g++"
  3655. else
  3656. case $cross_compiling:$ac_tool_warned in
  3657. yes:)
  3658. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3659. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3660. ac_tool_warned=yes ;;
  3661. esac
  3662. CXX=$ac_ct_CXX
  3663. fi
  3664. fi
  3665. fi
  3666. fi
  3667. # Provide some information about the compiler.
  3668. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3669. set X $ac_compile
  3670. ac_compiler=$2
  3671. for ac_option in --version -v -V -qversion; do
  3672. { { ac_try="$ac_compiler $ac_option >&5"
  3673. case "(($ac_try" in
  3674. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3675. *) ac_try_echo=$ac_try;;
  3676. esac
  3677. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3678. $as_echo "$ac_try_echo"; } >&5
  3679. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3680. ac_status=$?
  3681. if test -s conftest.err; then
  3682. sed '10a\
  3683. ... rest of stderr output deleted ...
  3684. 10q' conftest.err >conftest.er1
  3685. cat conftest.er1 >&5
  3686. fi
  3687. rm -f conftest.er1 conftest.err
  3688. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3689. test $ac_status = 0; }
  3690. done
  3691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3692. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3693. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3694. $as_echo_n "(cached) " >&6
  3695. else
  3696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3697. /* end confdefs.h. */
  3698. int
  3699. main ()
  3700. {
  3701. #ifndef __GNUC__
  3702. choke me
  3703. #endif
  3704. ;
  3705. return 0;
  3706. }
  3707. _ACEOF
  3708. if ac_fn_cxx_try_compile "$LINENO"; then :
  3709. ac_compiler_gnu=yes
  3710. else
  3711. ac_compiler_gnu=no
  3712. fi
  3713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3714. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3715. fi
  3716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3717. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3718. if test $ac_compiler_gnu = yes; then
  3719. GXX=yes
  3720. else
  3721. GXX=
  3722. fi
  3723. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3724. ac_save_CXXFLAGS=$CXXFLAGS
  3725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3726. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3727. if ${ac_cv_prog_cxx_g+:} false; then :
  3728. $as_echo_n "(cached) " >&6
  3729. else
  3730. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3731. ac_cxx_werror_flag=yes
  3732. ac_cv_prog_cxx_g=no
  3733. CXXFLAGS="-g"
  3734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3735. /* end confdefs.h. */
  3736. int
  3737. main ()
  3738. {
  3739. ;
  3740. return 0;
  3741. }
  3742. _ACEOF
  3743. if ac_fn_cxx_try_compile "$LINENO"; then :
  3744. ac_cv_prog_cxx_g=yes
  3745. else
  3746. CXXFLAGS=""
  3747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3748. /* end confdefs.h. */
  3749. int
  3750. main ()
  3751. {
  3752. ;
  3753. return 0;
  3754. }
  3755. _ACEOF
  3756. if ac_fn_cxx_try_compile "$LINENO"; then :
  3757. else
  3758. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3759. CXXFLAGS="-g"
  3760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3761. /* end confdefs.h. */
  3762. int
  3763. main ()
  3764. {
  3765. ;
  3766. return 0;
  3767. }
  3768. _ACEOF
  3769. if ac_fn_cxx_try_compile "$LINENO"; then :
  3770. ac_cv_prog_cxx_g=yes
  3771. fi
  3772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3773. fi
  3774. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3775. fi
  3776. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3777. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3778. fi
  3779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3780. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3781. if test "$ac_test_CXXFLAGS" = set; then
  3782. CXXFLAGS=$ac_save_CXXFLAGS
  3783. elif test $ac_cv_prog_cxx_g = yes; then
  3784. if test "$GXX" = yes; then
  3785. CXXFLAGS="-g -O2"
  3786. else
  3787. CXXFLAGS="-g"
  3788. fi
  3789. else
  3790. if test "$GXX" = yes; then
  3791. CXXFLAGS="-O2"
  3792. else
  3793. CXXFLAGS=
  3794. fi
  3795. fi
  3796. ac_ext=c
  3797. ac_cpp='$CPP $CPPFLAGS'
  3798. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3799. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3800. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3801. fi
  3802. case "$build:$target" in
  3803. powerpc-apple-darwin8*:i?86-apple-darwin*|*:arm*-apple-darwin*)
  3804. CFLAGS=$_SAVE_CFLAGS
  3805. CXXFLAGS=$_SAVE_CXXFLAGS
  3806. ;;
  3807. esac
  3808. for ac_prog in $RANLIB "${target_alias}-ranlib" "${target}-ranlib"
  3809. do
  3810. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3811. set dummy $ac_prog; ac_word=$2
  3812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3813. $as_echo_n "checking for $ac_word... " >&6; }
  3814. if ${ac_cv_prog_RANLIB+:} false; then :
  3815. $as_echo_n "(cached) " >&6
  3816. else
  3817. if test -n "$RANLIB"; then
  3818. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3819. else
  3820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3821. for as_dir in $PATH
  3822. do
  3823. IFS=$as_save_IFS
  3824. test -z "$as_dir" && as_dir=.
  3825. for ac_exec_ext in '' $ac_executable_extensions; do
  3826. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3827. ac_cv_prog_RANLIB="$ac_prog"
  3828. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3829. break 2
  3830. fi
  3831. done
  3832. done
  3833. IFS=$as_save_IFS
  3834. fi
  3835. fi
  3836. RANLIB=$ac_cv_prog_RANLIB
  3837. if test -n "$RANLIB"; then
  3838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  3839. $as_echo "$RANLIB" >&6; }
  3840. else
  3841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3842. $as_echo "no" >&6; }
  3843. fi
  3844. test -n "$RANLIB" && break
  3845. done
  3846. test -n "$RANLIB" || RANLIB="echo"
  3847. for ac_prog in $AR "${target_alias}-ar" "${target}-ar"
  3848. do
  3849. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3850. set dummy $ac_prog; ac_word=$2
  3851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3852. $as_echo_n "checking for $ac_word... " >&6; }
  3853. if ${ac_cv_prog_AR+:} false; then :
  3854. $as_echo_n "(cached) " >&6
  3855. else
  3856. if test -n "$AR"; then
  3857. ac_cv_prog_AR="$AR" # Let the user override the test.
  3858. else
  3859. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3860. for as_dir in $PATH
  3861. do
  3862. IFS=$as_save_IFS
  3863. test -z "$as_dir" && as_dir=.
  3864. for ac_exec_ext in '' $ac_executable_extensions; do
  3865. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3866. ac_cv_prog_AR="$ac_prog"
  3867. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3868. break 2
  3869. fi
  3870. done
  3871. done
  3872. IFS=$as_save_IFS
  3873. fi
  3874. fi
  3875. AR=$ac_cv_prog_AR
  3876. if test -n "$AR"; then
  3877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  3878. $as_echo "$AR" >&6; }
  3879. else
  3880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3881. $as_echo "no" >&6; }
  3882. fi
  3883. test -n "$AR" && break
  3884. done
  3885. test -n "$AR" || AR="echo"
  3886. for ac_prog in $AS "${target_alias}-as" "${target}-as"
  3887. do
  3888. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3889. set dummy $ac_prog; ac_word=$2
  3890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3891. $as_echo_n "checking for $ac_word... " >&6; }
  3892. if ${ac_cv_prog_AS+:} false; then :
  3893. $as_echo_n "(cached) " >&6
  3894. else
  3895. if test -n "$AS"; then
  3896. ac_cv_prog_AS="$AS" # Let the user override the test.
  3897. else
  3898. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3899. for as_dir in $PATH
  3900. do
  3901. IFS=$as_save_IFS
  3902. test -z "$as_dir" && as_dir=.
  3903. for ac_exec_ext in '' $ac_executable_extensions; do
  3904. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3905. ac_cv_prog_AS="$ac_prog"
  3906. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3907. break 2
  3908. fi
  3909. done
  3910. done
  3911. IFS=$as_save_IFS
  3912. fi
  3913. fi
  3914. AS=$ac_cv_prog_AS
  3915. if test -n "$AS"; then
  3916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  3917. $as_echo "$AS" >&6; }
  3918. else
  3919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3920. $as_echo "no" >&6; }
  3921. fi
  3922. test -n "$AS" && break
  3923. done
  3924. test -n "$AS" || AS="echo"
  3925. for ac_prog in $LD "${target_alias}-ld" "${target}-ld"
  3926. do
  3927. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3928. set dummy $ac_prog; ac_word=$2
  3929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3930. $as_echo_n "checking for $ac_word... " >&6; }
  3931. if ${ac_cv_prog_LD+:} false; then :
  3932. $as_echo_n "(cached) " >&6
  3933. else
  3934. if test -n "$LD"; then
  3935. ac_cv_prog_LD="$LD" # Let the user override the test.
  3936. else
  3937. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3938. for as_dir in $PATH
  3939. do
  3940. IFS=$as_save_IFS
  3941. test -z "$as_dir" && as_dir=.
  3942. for ac_exec_ext in '' $ac_executable_extensions; do
  3943. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3944. ac_cv_prog_LD="$ac_prog"
  3945. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3946. break 2
  3947. fi
  3948. done
  3949. done
  3950. IFS=$as_save_IFS
  3951. fi
  3952. fi
  3953. LD=$ac_cv_prog_LD
  3954. if test -n "$LD"; then
  3955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3956. $as_echo "$LD" >&6; }
  3957. else
  3958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3959. $as_echo "no" >&6; }
  3960. fi
  3961. test -n "$LD" && break
  3962. done
  3963. test -n "$LD" || LD="echo"
  3964. for ac_prog in $STRIP "${target_alias}-strip" "${target}-strip"
  3965. do
  3966. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3967. set dummy $ac_prog; ac_word=$2
  3968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3969. $as_echo_n "checking for $ac_word... " >&6; }
  3970. if ${ac_cv_prog_STRIP+:} false; then :
  3971. $as_echo_n "(cached) " >&6
  3972. else
  3973. if test -n "$STRIP"; then
  3974. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3975. else
  3976. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3977. for as_dir in $PATH
  3978. do
  3979. IFS=$as_save_IFS
  3980. test -z "$as_dir" && as_dir=.
  3981. for ac_exec_ext in '' $ac_executable_extensions; do
  3982. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3983. ac_cv_prog_STRIP="$ac_prog"
  3984. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3985. break 2
  3986. fi
  3987. done
  3988. done
  3989. IFS=$as_save_IFS
  3990. fi
  3991. fi
  3992. STRIP=$ac_cv_prog_STRIP
  3993. if test -n "$STRIP"; then
  3994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3995. $as_echo "$STRIP" >&6; }
  3996. else
  3997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3998. $as_echo "no" >&6; }
  3999. fi
  4000. test -n "$STRIP" && break
  4001. done
  4002. test -n "$STRIP" || STRIP="echo"
  4003. for ac_prog in $WINDRES "${target_alias}-windres" "${target}-windres"
  4004. do
  4005. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4006. set dummy $ac_prog; ac_word=$2
  4007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4008. $as_echo_n "checking for $ac_word... " >&6; }
  4009. if ${ac_cv_prog_WINDRES+:} false; then :
  4010. $as_echo_n "(cached) " >&6
  4011. else
  4012. if test -n "$WINDRES"; then
  4013. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  4014. else
  4015. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4016. for as_dir in $PATH
  4017. do
  4018. IFS=$as_save_IFS
  4019. test -z "$as_dir" && as_dir=.
  4020. for ac_exec_ext in '' $ac_executable_extensions; do
  4021. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4022. ac_cv_prog_WINDRES="$ac_prog"
  4023. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4024. break 2
  4025. fi
  4026. done
  4027. done
  4028. IFS=$as_save_IFS
  4029. fi
  4030. fi
  4031. WINDRES=$ac_cv_prog_WINDRES
  4032. if test -n "$WINDRES"; then
  4033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  4034. $as_echo "$WINDRES" >&6; }
  4035. else
  4036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4037. $as_echo "no" >&6; }
  4038. fi
  4039. test -n "$WINDRES" && break
  4040. done
  4041. test -n "$WINDRES" || WINDRES="echo"
  4042. _SAVE_CC="$CC"
  4043. _SAVE_CFLAGS="$CFLAGS"
  4044. _SAVE_LDFLAGS="$LDFLAGS"
  4045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $host compiler" >&5
  4046. $as_echo_n "checking for $host compiler... " >&6; }
  4047. for ac_prog in $HOST_CC gcc cc /usr/ucb/cc
  4048. do
  4049. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4050. set dummy $ac_prog; ac_word=$2
  4051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4052. $as_echo_n "checking for $ac_word... " >&6; }
  4053. if ${ac_cv_prog_HOST_CC+:} false; then :
  4054. $as_echo_n "(cached) " >&6
  4055. else
  4056. if test -n "$HOST_CC"; then
  4057. ac_cv_prog_HOST_CC="$HOST_CC" # Let the user override the test.
  4058. else
  4059. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4060. for as_dir in $PATH
  4061. do
  4062. IFS=$as_save_IFS
  4063. test -z "$as_dir" && as_dir=.
  4064. for ac_exec_ext in '' $ac_executable_extensions; do
  4065. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4066. ac_cv_prog_HOST_CC="$ac_prog"
  4067. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4068. break 2
  4069. fi
  4070. done
  4071. done
  4072. IFS=$as_save_IFS
  4073. fi
  4074. fi
  4075. HOST_CC=$ac_cv_prog_HOST_CC
  4076. if test -n "$HOST_CC"; then
  4077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOST_CC" >&5
  4078. $as_echo "$HOST_CC" >&6; }
  4079. else
  4080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4081. $as_echo "no" >&6; }
  4082. fi
  4083. test -n "$HOST_CC" && break
  4084. done
  4085. test -n "$HOST_CC" || HOST_CC=""""
  4086. if test -z "$HOST_CC"; then
  4087. as_fn_error $? "no acceptable cc found in \$PATH" "$LINENO" 5
  4088. fi
  4089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOST_CC" >&5
  4090. $as_echo "$HOST_CC" >&6; }
  4091. CC="$HOST_CC"
  4092. CFLAGS="$HOST_CFLAGS"
  4093. LDFLAGS="$HOST_LDFLAGS"
  4094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works" >&5
  4095. $as_echo_n "checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works... " >&6; }
  4096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4097. /* end confdefs.h. */
  4098. int
  4099. main ()
  4100. {
  4101. return 0;
  4102. ;
  4103. return 0;
  4104. }
  4105. _ACEOF
  4106. if ac_fn_c_try_compile "$LINENO"; then :
  4107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4108. $as_echo "yes" >&6; }
  4109. else
  4110. as_fn_error $? "installation or configuration problem: $host compiler $HOST_CC cannot create executables." "$LINENO" 5
  4111. fi
  4112. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4113. CC=$_SAVE_CC
  4114. CFLAGS=$_SAVE_CFLAGS
  4115. LDFLAGS=$_SAVE_LDFLAGS
  4116. else
  4117. if test -n "$USE_CPLUS"; then
  4118. if test "$CC" = "cl" -a -z "$CXX"; then
  4119. CXX=$CC
  4120. else
  4121. ac_ext=cpp
  4122. ac_cpp='$CXXCPP $CPPFLAGS'
  4123. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4124. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4125. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4126. if test -z "$CXX"; then
  4127. if test -n "$CCC"; then
  4128. CXX=$CCC
  4129. else
  4130. if test -n "$ac_tool_prefix"; then
  4131. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4132. do
  4133. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4134. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4136. $as_echo_n "checking for $ac_word... " >&6; }
  4137. if ${ac_cv_prog_CXX+:} false; then :
  4138. $as_echo_n "(cached) " >&6
  4139. else
  4140. if test -n "$CXX"; then
  4141. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4142. else
  4143. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4144. for as_dir in $PATH
  4145. do
  4146. IFS=$as_save_IFS
  4147. test -z "$as_dir" && as_dir=.
  4148. for ac_exec_ext in '' $ac_executable_extensions; do
  4149. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4150. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4151. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4152. break 2
  4153. fi
  4154. done
  4155. done
  4156. IFS=$as_save_IFS
  4157. fi
  4158. fi
  4159. CXX=$ac_cv_prog_CXX
  4160. if test -n "$CXX"; then
  4161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4162. $as_echo "$CXX" >&6; }
  4163. else
  4164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4165. $as_echo "no" >&6; }
  4166. fi
  4167. test -n "$CXX" && break
  4168. done
  4169. fi
  4170. if test -z "$CXX"; then
  4171. ac_ct_CXX=$CXX
  4172. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4173. do
  4174. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4175. set dummy $ac_prog; ac_word=$2
  4176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4177. $as_echo_n "checking for $ac_word... " >&6; }
  4178. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4179. $as_echo_n "(cached) " >&6
  4180. else
  4181. if test -n "$ac_ct_CXX"; then
  4182. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4183. else
  4184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4185. for as_dir in $PATH
  4186. do
  4187. IFS=$as_save_IFS
  4188. test -z "$as_dir" && as_dir=.
  4189. for ac_exec_ext in '' $ac_executable_extensions; do
  4190. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4191. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4192. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4193. break 2
  4194. fi
  4195. done
  4196. done
  4197. IFS=$as_save_IFS
  4198. fi
  4199. fi
  4200. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4201. if test -n "$ac_ct_CXX"; then
  4202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4203. $as_echo "$ac_ct_CXX" >&6; }
  4204. else
  4205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4206. $as_echo "no" >&6; }
  4207. fi
  4208. test -n "$ac_ct_CXX" && break
  4209. done
  4210. if test "x$ac_ct_CXX" = x; then
  4211. CXX="g++"
  4212. else
  4213. case $cross_compiling:$ac_tool_warned in
  4214. yes:)
  4215. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4216. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4217. ac_tool_warned=yes ;;
  4218. esac
  4219. CXX=$ac_ct_CXX
  4220. fi
  4221. fi
  4222. fi
  4223. fi
  4224. # Provide some information about the compiler.
  4225. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4226. set X $ac_compile
  4227. ac_compiler=$2
  4228. for ac_option in --version -v -V -qversion; do
  4229. { { ac_try="$ac_compiler $ac_option >&5"
  4230. case "(($ac_try" in
  4231. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4232. *) ac_try_echo=$ac_try;;
  4233. esac
  4234. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4235. $as_echo "$ac_try_echo"; } >&5
  4236. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4237. ac_status=$?
  4238. if test -s conftest.err; then
  4239. sed '10a\
  4240. ... rest of stderr output deleted ...
  4241. 10q' conftest.err >conftest.er1
  4242. cat conftest.er1 >&5
  4243. fi
  4244. rm -f conftest.er1 conftest.err
  4245. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4246. test $ac_status = 0; }
  4247. done
  4248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4249. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4250. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  4251. $as_echo_n "(cached) " >&6
  4252. else
  4253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4254. /* end confdefs.h. */
  4255. int
  4256. main ()
  4257. {
  4258. #ifndef __GNUC__
  4259. choke me
  4260. #endif
  4261. ;
  4262. return 0;
  4263. }
  4264. _ACEOF
  4265. if ac_fn_cxx_try_compile "$LINENO"; then :
  4266. ac_compiler_gnu=yes
  4267. else
  4268. ac_compiler_gnu=no
  4269. fi
  4270. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4271. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4272. fi
  4273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4274. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4275. if test $ac_compiler_gnu = yes; then
  4276. GXX=yes
  4277. else
  4278. GXX=
  4279. fi
  4280. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4281. ac_save_CXXFLAGS=$CXXFLAGS
  4282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4283. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4284. if ${ac_cv_prog_cxx_g+:} false; then :
  4285. $as_echo_n "(cached) " >&6
  4286. else
  4287. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4288. ac_cxx_werror_flag=yes
  4289. ac_cv_prog_cxx_g=no
  4290. CXXFLAGS="-g"
  4291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4292. /* end confdefs.h. */
  4293. int
  4294. main ()
  4295. {
  4296. ;
  4297. return 0;
  4298. }
  4299. _ACEOF
  4300. if ac_fn_cxx_try_compile "$LINENO"; then :
  4301. ac_cv_prog_cxx_g=yes
  4302. else
  4303. CXXFLAGS=""
  4304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4305. /* end confdefs.h. */
  4306. int
  4307. main ()
  4308. {
  4309. ;
  4310. return 0;
  4311. }
  4312. _ACEOF
  4313. if ac_fn_cxx_try_compile "$LINENO"; then :
  4314. else
  4315. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4316. CXXFLAGS="-g"
  4317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4318. /* end confdefs.h. */
  4319. int
  4320. main ()
  4321. {
  4322. ;
  4323. return 0;
  4324. }
  4325. _ACEOF
  4326. if ac_fn_cxx_try_compile "$LINENO"; then :
  4327. ac_cv_prog_cxx_g=yes
  4328. fi
  4329. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4330. fi
  4331. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4332. fi
  4333. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4334. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4335. fi
  4336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4337. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4338. if test "$ac_test_CXXFLAGS" = set; then
  4339. CXXFLAGS=$ac_save_CXXFLAGS
  4340. elif test $ac_cv_prog_cxx_g = yes; then
  4341. if test "$GXX" = yes; then
  4342. CXXFLAGS="-g -O2"
  4343. else
  4344. CXXFLAGS="-g"
  4345. fi
  4346. else
  4347. if test "$GXX" = yes; then
  4348. CXXFLAGS="-O2"
  4349. else
  4350. CXXFLAGS=
  4351. fi
  4352. fi
  4353. ac_ext=c
  4354. ac_cpp='$CPP $CPPFLAGS'
  4355. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4356. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4357. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4358. fi
  4359. fi
  4360. if test -n "$ac_tool_prefix"; then
  4361. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4362. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4364. $as_echo_n "checking for $ac_word... " >&6; }
  4365. if ${ac_cv_prog_RANLIB+:} false; then :
  4366. $as_echo_n "(cached) " >&6
  4367. else
  4368. if test -n "$RANLIB"; then
  4369. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4370. else
  4371. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4372. for as_dir in $PATH
  4373. do
  4374. IFS=$as_save_IFS
  4375. test -z "$as_dir" && as_dir=.
  4376. for ac_exec_ext in '' $ac_executable_extensions; do
  4377. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4378. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4379. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4380. break 2
  4381. fi
  4382. done
  4383. done
  4384. IFS=$as_save_IFS
  4385. fi
  4386. fi
  4387. RANLIB=$ac_cv_prog_RANLIB
  4388. if test -n "$RANLIB"; then
  4389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4390. $as_echo "$RANLIB" >&6; }
  4391. else
  4392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4393. $as_echo "no" >&6; }
  4394. fi
  4395. fi
  4396. if test -z "$ac_cv_prog_RANLIB"; then
  4397. ac_ct_RANLIB=$RANLIB
  4398. # Extract the first word of "ranlib", so it can be a program name with args.
  4399. set dummy ranlib; ac_word=$2
  4400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4401. $as_echo_n "checking for $ac_word... " >&6; }
  4402. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4403. $as_echo_n "(cached) " >&6
  4404. else
  4405. if test -n "$ac_ct_RANLIB"; then
  4406. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4407. else
  4408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4409. for as_dir in $PATH
  4410. do
  4411. IFS=$as_save_IFS
  4412. test -z "$as_dir" && as_dir=.
  4413. for ac_exec_ext in '' $ac_executable_extensions; do
  4414. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4415. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4416. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4417. break 2
  4418. fi
  4419. done
  4420. done
  4421. IFS=$as_save_IFS
  4422. fi
  4423. fi
  4424. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4425. if test -n "$ac_ct_RANLIB"; then
  4426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4427. $as_echo "$ac_ct_RANLIB" >&6; }
  4428. else
  4429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4430. $as_echo "no" >&6; }
  4431. fi
  4432. if test "x$ac_ct_RANLIB" = x; then
  4433. RANLIB=":"
  4434. else
  4435. case $cross_compiling:$ac_tool_warned in
  4436. yes:)
  4437. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4438. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4439. ac_tool_warned=yes ;;
  4440. esac
  4441. RANLIB=$ac_ct_RANLIB
  4442. fi
  4443. else
  4444. RANLIB="$ac_cv_prog_RANLIB"
  4445. fi
  4446. for ac_prog in as
  4447. do
  4448. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4449. set dummy $ac_prog; ac_word=$2
  4450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4451. $as_echo_n "checking for $ac_word... " >&6; }
  4452. if ${ac_cv_path_AS+:} false; then :
  4453. $as_echo_n "(cached) " >&6
  4454. else
  4455. case $AS in
  4456. [\\/]* | ?:[\\/]*)
  4457. ac_cv_path_AS="$AS" # Let the user override the test with a path.
  4458. ;;
  4459. *)
  4460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4461. for as_dir in $PATH
  4462. do
  4463. IFS=$as_save_IFS
  4464. test -z "$as_dir" && as_dir=.
  4465. for ac_exec_ext in '' $ac_executable_extensions; do
  4466. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4467. ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
  4468. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4469. break 2
  4470. fi
  4471. done
  4472. done
  4473. IFS=$as_save_IFS
  4474. ;;
  4475. esac
  4476. fi
  4477. AS=$ac_cv_path_AS
  4478. if test -n "$AS"; then
  4479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  4480. $as_echo "$AS" >&6; }
  4481. else
  4482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4483. $as_echo "no" >&6; }
  4484. fi
  4485. test -n "$AS" && break
  4486. done
  4487. test -n "$AS" || AS="$CC"
  4488. for ac_prog in ar
  4489. do
  4490. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4491. set dummy $ac_prog; ac_word=$2
  4492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4493. $as_echo_n "checking for $ac_word... " >&6; }
  4494. if ${ac_cv_path_AR+:} false; then :
  4495. $as_echo_n "(cached) " >&6
  4496. else
  4497. case $AR in
  4498. [\\/]* | ?:[\\/]*)
  4499. ac_cv_path_AR="$AR" # Let the user override the test with a path.
  4500. ;;
  4501. *)
  4502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4503. for as_dir in $PATH
  4504. do
  4505. IFS=$as_save_IFS
  4506. test -z "$as_dir" && as_dir=.
  4507. for ac_exec_ext in '' $ac_executable_extensions; do
  4508. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4509. ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
  4510. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4511. break 2
  4512. fi
  4513. done
  4514. done
  4515. IFS=$as_save_IFS
  4516. ;;
  4517. esac
  4518. fi
  4519. AR=$ac_cv_path_AR
  4520. if test -n "$AR"; then
  4521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4522. $as_echo "$AR" >&6; }
  4523. else
  4524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4525. $as_echo "no" >&6; }
  4526. fi
  4527. test -n "$AR" && break
  4528. done
  4529. test -n "$AR" || AR="echo not_ar"
  4530. for ac_prog in ld link
  4531. do
  4532. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4533. set dummy $ac_prog; ac_word=$2
  4534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4535. $as_echo_n "checking for $ac_word... " >&6; }
  4536. if ${ac_cv_path_LD+:} false; then :
  4537. $as_echo_n "(cached) " >&6
  4538. else
  4539. case $LD in
  4540. [\\/]* | ?:[\\/]*)
  4541. ac_cv_path_LD="$LD" # Let the user override the test with a path.
  4542. ;;
  4543. *)
  4544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4545. for as_dir in $PATH
  4546. do
  4547. IFS=$as_save_IFS
  4548. test -z "$as_dir" && as_dir=.
  4549. for ac_exec_ext in '' $ac_executable_extensions; do
  4550. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4551. ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
  4552. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4553. break 2
  4554. fi
  4555. done
  4556. done
  4557. IFS=$as_save_IFS
  4558. ;;
  4559. esac
  4560. fi
  4561. LD=$ac_cv_path_LD
  4562. if test -n "$LD"; then
  4563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4564. $as_echo "$LD" >&6; }
  4565. else
  4566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4567. $as_echo "no" >&6; }
  4568. fi
  4569. test -n "$LD" && break
  4570. done
  4571. test -n "$LD" || LD="echo not_ld"
  4572. for ac_prog in strip
  4573. do
  4574. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4575. set dummy $ac_prog; ac_word=$2
  4576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4577. $as_echo_n "checking for $ac_word... " >&6; }
  4578. if ${ac_cv_path_STRIP+:} false; then :
  4579. $as_echo_n "(cached) " >&6
  4580. else
  4581. case $STRIP in
  4582. [\\/]* | ?:[\\/]*)
  4583. ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
  4584. ;;
  4585. *)
  4586. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4587. for as_dir in $PATH
  4588. do
  4589. IFS=$as_save_IFS
  4590. test -z "$as_dir" && as_dir=.
  4591. for ac_exec_ext in '' $ac_executable_extensions; do
  4592. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4593. ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
  4594. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4595. break 2
  4596. fi
  4597. done
  4598. done
  4599. IFS=$as_save_IFS
  4600. ;;
  4601. esac
  4602. fi
  4603. STRIP=$ac_cv_path_STRIP
  4604. if test -n "$STRIP"; then
  4605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4606. $as_echo "$STRIP" >&6; }
  4607. else
  4608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4609. $as_echo "no" >&6; }
  4610. fi
  4611. test -n "$STRIP" && break
  4612. done
  4613. test -n "$STRIP" || STRIP="echo not_strip"
  4614. for ac_prog in windres
  4615. do
  4616. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4617. set dummy $ac_prog; ac_word=$2
  4618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4619. $as_echo_n "checking for $ac_word... " >&6; }
  4620. if ${ac_cv_path_WINDRES+:} false; then :
  4621. $as_echo_n "(cached) " >&6
  4622. else
  4623. case $WINDRES in
  4624. [\\/]* | ?:[\\/]*)
  4625. ac_cv_path_WINDRES="$WINDRES" # Let the user override the test with a path.
  4626. ;;
  4627. *)
  4628. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4629. for as_dir in $PATH
  4630. do
  4631. IFS=$as_save_IFS
  4632. test -z "$as_dir" && as_dir=.
  4633. for ac_exec_ext in '' $ac_executable_extensions; do
  4634. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4635. ac_cv_path_WINDRES="$as_dir/$ac_word$ac_exec_ext"
  4636. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4637. break 2
  4638. fi
  4639. done
  4640. done
  4641. IFS=$as_save_IFS
  4642. ;;
  4643. esac
  4644. fi
  4645. WINDRES=$ac_cv_path_WINDRES
  4646. if test -n "$WINDRES"; then
  4647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  4648. $as_echo "$WINDRES" >&6; }
  4649. else
  4650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4651. $as_echo "no" >&6; }
  4652. fi
  4653. test -n "$WINDRES" && break
  4654. done
  4655. test -n "$WINDRES" || WINDRES="echo not_windres"
  4656. if test -z "$HOST_CC"; then
  4657. HOST_CC="$CC"
  4658. fi
  4659. if test -z "$HOST_CFLAGS"; then
  4660. HOST_CFLAGS="$CFLAGS"
  4661. fi
  4662. fi
  4663. ac_ext=c
  4664. ac_cpp='$CPP $CPPFLAGS'
  4665. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4666. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4667. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4669. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4670. # On Suns, sometimes $CPP names a directory.
  4671. if test -n "$CPP" && test -d "$CPP"; then
  4672. CPP=
  4673. fi
  4674. if test -z "$CPP"; then
  4675. if ${ac_cv_prog_CPP+:} false; then :
  4676. $as_echo_n "(cached) " >&6
  4677. else
  4678. # Double quotes because CPP needs to be expanded
  4679. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4680. do
  4681. ac_preproc_ok=false
  4682. for ac_c_preproc_warn_flag in '' yes
  4683. do
  4684. # Use a header file that comes with gcc, so configuring glibc
  4685. # with a fresh cross-compiler works.
  4686. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4687. # <limits.h> exists even on freestanding compilers.
  4688. # On the NeXT, cc -E runs the code through the compiler's parser,
  4689. # not just through cpp. "Syntax error" is here to catch this case.
  4690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4691. /* end confdefs.h. */
  4692. #ifdef __STDC__
  4693. # include <limits.h>
  4694. #else
  4695. # include <assert.h>
  4696. #endif
  4697. Syntax error
  4698. _ACEOF
  4699. if ac_fn_c_try_cpp "$LINENO"; then :
  4700. else
  4701. # Broken: fails on valid input.
  4702. continue
  4703. fi
  4704. rm -f conftest.err conftest.i conftest.$ac_ext
  4705. # OK, works on sane cases. Now check whether nonexistent headers
  4706. # can be detected and how.
  4707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4708. /* end confdefs.h. */
  4709. #include <ac_nonexistent.h>
  4710. _ACEOF
  4711. if ac_fn_c_try_cpp "$LINENO"; then :
  4712. # Broken: success on invalid input.
  4713. continue
  4714. else
  4715. # Passes both tests.
  4716. ac_preproc_ok=:
  4717. break
  4718. fi
  4719. rm -f conftest.err conftest.i conftest.$ac_ext
  4720. done
  4721. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4722. rm -f conftest.i conftest.err conftest.$ac_ext
  4723. if $ac_preproc_ok; then :
  4724. break
  4725. fi
  4726. done
  4727. ac_cv_prog_CPP=$CPP
  4728. fi
  4729. CPP=$ac_cv_prog_CPP
  4730. else
  4731. ac_cv_prog_CPP=$CPP
  4732. fi
  4733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4734. $as_echo "$CPP" >&6; }
  4735. ac_preproc_ok=false
  4736. for ac_c_preproc_warn_flag in '' yes
  4737. do
  4738. # Use a header file that comes with gcc, so configuring glibc
  4739. # with a fresh cross-compiler works.
  4740. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4741. # <limits.h> exists even on freestanding compilers.
  4742. # On the NeXT, cc -E runs the code through the compiler's parser,
  4743. # not just through cpp. "Syntax error" is here to catch this case.
  4744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4745. /* end confdefs.h. */
  4746. #ifdef __STDC__
  4747. # include <limits.h>
  4748. #else
  4749. # include <assert.h>
  4750. #endif
  4751. Syntax error
  4752. _ACEOF
  4753. if ac_fn_c_try_cpp "$LINENO"; then :
  4754. else
  4755. # Broken: fails on valid input.
  4756. continue
  4757. fi
  4758. rm -f conftest.err conftest.i conftest.$ac_ext
  4759. # OK, works on sane cases. Now check whether nonexistent headers
  4760. # can be detected and how.
  4761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4762. /* end confdefs.h. */
  4763. #include <ac_nonexistent.h>
  4764. _ACEOF
  4765. if ac_fn_c_try_cpp "$LINENO"; then :
  4766. # Broken: success on invalid input.
  4767. continue
  4768. else
  4769. # Passes both tests.
  4770. ac_preproc_ok=:
  4771. break
  4772. fi
  4773. rm -f conftest.err conftest.i conftest.$ac_ext
  4774. done
  4775. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4776. rm -f conftest.i conftest.err conftest.$ac_ext
  4777. if $ac_preproc_ok; then :
  4778. else
  4779. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4780. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4781. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4782. See \`config.log' for more details" "$LINENO" 5; }
  4783. fi
  4784. ac_ext=c
  4785. ac_cpp='$CPP $CPPFLAGS'
  4786. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4787. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4788. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4789. if test "$GCC" = "yes"; then
  4790. GNU_CC=1
  4791. fi
  4792. if test "$GXX" = "yes"; then
  4793. GNU_CXX=1
  4794. fi
  4795. if test "`echo | $AS -v 2>&1 | grep -c GNU`" != "0"; then
  4796. GNU_AS=1
  4797. fi
  4798. rm -f a.out
  4799. case "$build:$target" in
  4800. i?86-apple-darwin*:powerpc-apple-darwin*)
  4801. cross_compiling=yes
  4802. ;;
  4803. esac
  4804. if test "$cross_compiling" = "yes"; then
  4805. CROSS_COMPILE=1
  4806. else
  4807. CROSS_COMPILE=
  4808. fi
  4809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -pipe support" >&5
  4810. $as_echo_n "checking for gcc -pipe support... " >&6; }
  4811. if test -n "$GNU_CC" && test -n "$GNU_CXX" && test -n "$GNU_AS"; then
  4812. echo '#include <stdio.h>' > dummy-hello.c
  4813. echo 'int main() { printf("Hello World\n"); return 0; }' >> dummy-hello.c
  4814. ${CC} -S dummy-hello.c -o dummy-hello.s 2>&5
  4815. cat dummy-hello.s | ${AS} -o dummy-hello.S - 2>&5
  4816. if test $? = 0; then
  4817. _res_as_stdin="yes"
  4818. else
  4819. _res_as_stdin="no"
  4820. fi
  4821. if test "$_res_as_stdin" = "yes"; then
  4822. _SAVE_CFLAGS=$CFLAGS
  4823. CFLAGS="$CFLAGS -pipe"
  4824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4825. /* end confdefs.h. */
  4826. #include <stdio.h>
  4827. int
  4828. main ()
  4829. {
  4830. printf("Hello World\n");
  4831. ;
  4832. return 0;
  4833. }
  4834. _ACEOF
  4835. if ac_fn_c_try_compile "$LINENO"; then :
  4836. _res_gcc_pipe="yes"
  4837. else
  4838. _res_gcc_pipe="no"
  4839. fi
  4840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4841. CFLAGS=$_SAVE_CFLAGS
  4842. fi
  4843. if test "$_res_as_stdin" = "yes" && test "$_res_gcc_pipe" = "yes"; then
  4844. _res="yes";
  4845. CFLAGS="$CFLAGS -pipe"
  4846. CXXFLAGS="$CXXFLAGS -pipe"
  4847. else
  4848. _res="no"
  4849. fi
  4850. rm -f dummy-hello.c dummy-hello.s dummy-hello.S dummy-hello a.out
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_res" >&5
  4852. $as_echo "$_res" >&6; }
  4853. else
  4854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4855. $as_echo "no" >&6; }
  4856. fi
  4857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pragma diagnostic" >&5
  4858. $as_echo_n "checking for pragma diagnostic... " >&6; }
  4859. if test "$GNU_CC" = "1"; then
  4860. cat >dummy-hello.c <<EOF
  4861. #ifdef _PR_HAS_PRAGMA_DIAGNOSTIC
  4862. #pragma GCC diagnostic push
  4863. #pragma GCC diagnostic ignored "-Wunused-but-set-variable"
  4864. #endif
  4865. int main() {
  4866. char *dummy = "";
  4867. return 0;
  4868. }
  4869. EOF
  4870. ${CC} -Werror=unused-but-set-variable -S dummy-hello.c -o dummy-hello.s 2>&5
  4871. if test $? != 0; then
  4872. ${CC} -Werror=unused-but-set-variable -D_PR_HAS_PRAGMA_DIAGNOSTIC -S dummy-hello.c -o dummy-hello.s 2>&5
  4873. if test $? = 0; then
  4874. CFLAGS="$CFLAGS -D_PR_HAS_PRAGMA_DIAGNOSTIC=1"
  4875. _res=yes
  4876. else
  4877. _res=no
  4878. fi
  4879. else
  4880. _res=no
  4881. fi
  4882. rm -f dummy-hello.c dummy-hello.s
  4883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_res" >&5
  4884. $as_echo "$_res" >&6; }
  4885. else
  4886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4887. $as_echo "no" >&6; }
  4888. fi
  4889. _SAVE_CFLAGS="$CFLAGS"
  4890. CFLAGS="$CFLAGS -fprofile-generate -fprofile-correction"
  4891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler supports -fprofile-generate" >&5
  4892. $as_echo_n "checking whether C compiler supports -fprofile-generate... " >&6; }
  4893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4894. /* end confdefs.h. */
  4895. int
  4896. main ()
  4897. {
  4898. return 0;
  4899. ;
  4900. return 0;
  4901. }
  4902. _ACEOF
  4903. if ac_fn_c_try_compile "$LINENO"; then :
  4904. PROFILE_GEN_CFLAGS="-fprofile-generate"
  4905. result="yes"
  4906. else
  4907. result="no"
  4908. fi
  4909. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
  4911. $as_echo "$result" >&6; }
  4912. if test $result = "yes"; then
  4913. PROFILE_GEN_LDFLAGS="-fprofile-generate"
  4914. PROFILE_USE_CFLAGS="-fprofile-use -fprofile-correction -Wcoverage-mismatch"
  4915. PROFILE_USE_LDFLAGS="-fprofile-use"
  4916. fi
  4917. CFLAGS="$_SAVE_CFLAGS"
  4918. if test "$GNU_CC"; then
  4919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for visibility(hidden) attribute" >&5
  4920. $as_echo_n "checking for visibility(hidden) attribute... " >&6; }
  4921. if ${ac_cv_visibility_hidden+:} false; then :
  4922. $as_echo_n "(cached) " >&6
  4923. else
  4924. cat > conftest.c <<EOF
  4925. int foo __attribute__ ((visibility ("hidden"))) = 1;
  4926. EOF
  4927. ac_cv_visibility_hidden=no
  4928. if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
  4929. if grep '\.hidden.*foo' conftest.s >/dev/null; then
  4930. ac_cv_visibility_hidden=yes
  4931. fi
  4932. fi
  4933. rm -f conftest.cs
  4934. fi
  4935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_visibility_hidden" >&5
  4936. $as_echo "$ac_cv_visibility_hidden" >&6; }
  4937. if test "$ac_cv_visibility_hidden" = "yes"; then
  4938. $as_echo "#define HAVE_VISIBILITY_HIDDEN_ATTRIBUTE 1" >>confdefs.h
  4939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for visibility pragma support" >&5
  4940. $as_echo_n "checking for visibility pragma support... " >&6; }
  4941. if ${ac_cv_visibility_pragma+:} false; then :
  4942. $as_echo_n "(cached) " >&6
  4943. else
  4944. cat > conftest.c <<EOF
  4945. #pragma GCC visibility push(hidden)
  4946. int foo_hidden = 1;
  4947. #pragma GCC visibility push(default)
  4948. int foo_default = 1;
  4949. EOF
  4950. ac_cv_visibility_pragma=no
  4951. if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
  4952. if grep '\.hidden.*foo_hidden' conftest.s >/dev/null; then
  4953. if ! grep '\.hidden.*foo_default' conftest.s > /dev/null; then
  4954. ac_cv_visibility_pragma=yes
  4955. fi
  4956. fi
  4957. fi
  4958. rm -f conftest.cs
  4959. fi
  4960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_visibility_pragma" >&5
  4961. $as_echo "$ac_cv_visibility_pragma" >&6; }
  4962. if test "$ac_cv_visibility_pragma" = "yes"; then
  4963. $as_echo "#define HAVE_VISIBILITY_PRAGMA 1" >>confdefs.h
  4964. # To work around a build problem on Linux x86-64 (Bugzilla bug
  4965. # 293438), we use the -fvisibility=hidden flag. This flag is less
  4966. # optimal than #pragma GCC visibility push(hidden) because the flag
  4967. # assumes that symbols defined outside the current source file have
  4968. # the default visibility. This has the advantage that we don't need
  4969. # to wrap system header files, but has the disadvantage that calls
  4970. # to hidden symbols defined in other source files cannot be
  4971. # optimized by the compiler. The -fvisibility=hidden flag does
  4972. # hide and export symbols correctly.
  4973. #VISIBILITY_FLAGS='-I$(dist_includedir)/system_wrappers -include $(topsrcdir)/config/gcc_hidden.h'
  4974. #WRAP_SYSTEM_INCLUDES=1
  4975. VISIBILITY_FLAGS="-fvisibility=hidden"
  4976. WRAP_SYSTEM_INCLUDES=
  4977. fi
  4978. fi
  4979. fi # GNU_CC
  4980. fi # SKIP_COMPILER_CHECKS
  4981. if test -z "$SKIP_PATH_CHECKS"; then
  4982. for ac_prog in perl5 perl
  4983. do
  4984. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4985. set dummy $ac_prog; ac_word=$2
  4986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4987. $as_echo_n "checking for $ac_word... " >&6; }
  4988. if ${ac_cv_path_PERL+:} false; then :
  4989. $as_echo_n "(cached) " >&6
  4990. else
  4991. case $PERL in
  4992. [\\/]* | ?:[\\/]*)
  4993. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  4994. ;;
  4995. *)
  4996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4997. for as_dir in $PATH
  4998. do
  4999. IFS=$as_save_IFS
  5000. test -z "$as_dir" && as_dir=.
  5001. for ac_exec_ext in '' $ac_executable_extensions; do
  5002. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5003. ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  5004. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5005. break 2
  5006. fi
  5007. done
  5008. done
  5009. IFS=$as_save_IFS
  5010. ;;
  5011. esac
  5012. fi
  5013. PERL=$ac_cv_path_PERL
  5014. if test -n "$PERL"; then
  5015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
  5016. $as_echo "$PERL" >&6; }
  5017. else
  5018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5019. $as_echo "no" >&6; }
  5020. fi
  5021. test -n "$PERL" && break
  5022. done
  5023. test -n "$PERL" || PERL="echo not_perl"
  5024. elif test -z "$PERL"; then
  5025. PERL=perl
  5026. fi
  5027. OBJ_SUFFIX=o
  5028. LIB_SUFFIX=a
  5029. DLL_SUFFIX=so
  5030. ASM_SUFFIX=s
  5031. MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
  5032. PR_MD_ASFILES=
  5033. PR_MD_CSRCS=
  5034. PR_MD_ARCH_DIR=unix
  5035. AR_FLAGS='cr $@'
  5036. AS='$(CC)'
  5037. ASFLAGS='$(CFLAGS)'
  5038. if test -n "$CROSS_COMPILE"; then
  5039. OS_ARCH=`echo $target_os | sed -e 's|/|_|g'`
  5040. OS_RELEASE=
  5041. OS_TEST="${target_cpu}"
  5042. case "${target_os}" in
  5043. linux*) OS_ARCH=Linux ;;
  5044. solaris*) OS_ARCH=SunOS OS_RELEASE=5 ;;
  5045. mingw*) OS_ARCH=WINNT CPU_ARCH=x86 ;;
  5046. darwin*) OS_ARCH=Darwin ;;
  5047. riscos*) OS_ARCH=RISCOS ;;
  5048. esac
  5049. else
  5050. OS_ARCH=`uname -s | sed -e 's|/|_|g'`
  5051. OS_RELEASE=`uname -r`
  5052. OS_TEST=`uname -m`
  5053. fi
  5054. if test "$OS_ARCH" = "AIX"; then
  5055. OS_RELEASE=`uname -v`.`uname -r`
  5056. fi
  5057. if test "$OS_ARCH" = "FreeBSD"; then
  5058. OS_RELEASE=`echo $OS_RELEASE | sed 's/-.*//'`
  5059. fi
  5060. if test "$OS_ARCH" = "Linux"; then
  5061. OS_RELEASE=`echo $OS_RELEASE | sed 's/-.*//'`
  5062. OS_RELEASE=`echo $OS_RELEASE | awk -F\. '{ print $1 "." $2 }'`
  5063. fi
  5064. #######################################################################
  5065. # Master "Core Components" macros for getting the OS target #
  5066. #######################################################################
  5067. #
  5068. # Note: OS_TARGET should be specified on the command line for gmake.
  5069. # When OS_TARGET=WIN95 is specified, then a Windows 95 target is built.
  5070. # The difference between the Win95 target and the WinNT target is that
  5071. # the WinNT target uses Windows NT specific features not available
  5072. # in Windows 95. The Win95 target will run on Windows NT, but (supposedly)
  5073. # at lesser performance (the Win95 target uses threads; the WinNT target
  5074. # uses fibers).
  5075. #
  5076. # If OS_TARGET is not specified, it defaults to $(OS_ARCH), i.e., no
  5077. # cross-compilation.
  5078. #
  5079. #
  5080. # The following hack allows one to build on a WIN95 machine (as if
  5081. # s/he were cross-compiling on a WINNT host for a WIN95 target).
  5082. # It also accomodates for MKS's uname.exe. If you never intend
  5083. # to do development on a WIN95 machine, you don't need this hack.
  5084. #
  5085. case "$OS_ARCH" in
  5086. Windows_95)
  5087. OS_ARCH=Windows_NT
  5088. OS_TARGET=WIN95
  5089. ;;
  5090. Windows_98)
  5091. OS_ARCH=Windows_NT
  5092. OS_TARGET=WIN95
  5093. ;;
  5094. CYGWIN_9*|CYGWIN_ME*)
  5095. OS_ARCH='CYGWIN_NT-4.0'
  5096. OS_TARGET=WIN95
  5097. ;;
  5098. OS_2)
  5099. OS_ARCH=OS2
  5100. OS_TARGET=OS2
  5101. ;;
  5102. esac
  5103. #
  5104. # On WIN32, we also define the variable CPU_ARCH.
  5105. #
  5106. case "$OS_ARCH" in
  5107. Windows_NT)
  5108. #
  5109. # If uname -s returns "Windows_NT", we assume that we are using
  5110. # the uname.exe in MKS toolkit.
  5111. #
  5112. # The -r option of MKS uname only returns the major version number.
  5113. # So we need to use its -v option to get the minor version number.
  5114. # Moreover, it doesn't have the -p option, so we need to use uname -m.
  5115. #
  5116. OS_ARCH=WINNT
  5117. OS_MINOR_RELEASE=`uname -v`
  5118. if test "$OS_MINOR_RELEASE" = "00"; then
  5119. OS_MINOR_RELEASE=0
  5120. fi
  5121. OS_RELEASE="${OS_RELEASE}.${OS_MINOR_RELEASE}"
  5122. CPU_ARCH=`uname -m`
  5123. #
  5124. # MKS's uname -m returns "586" on a Pentium machine.
  5125. #
  5126. if echo "$CPU_ARCH" | grep -c 86 >/dev/null; then
  5127. CPU_ARCH=x86
  5128. fi
  5129. ;;
  5130. CYGWIN_NT*|MINGW*_NT*|MSYS_NT*)
  5131. #
  5132. # If uname -s returns "CYGWIN_NT-4.0", we assume that we are using
  5133. # the uname.exe in the Cygwin tools.
  5134. # If uname -s returns "MINGW32_NT-5.1", we assume that we are using
  5135. # the uname.exe in the MSYS tools.
  5136. # If uname -s returns "MSYS_NT-6.3", we assume that we are using
  5137. # the uname.exe in the MSYS2 tools.
  5138. #
  5139. OS_RELEASE=`expr $OS_ARCH : '.*NT-\(.*\)'`
  5140. OS_ARCH=WINNT
  5141. CPU_ARCH=`uname -m`
  5142. #
  5143. # Cygwin's uname -m returns "i686" on a Pentium Pro machine.
  5144. #
  5145. if echo "$CPU_ARCH" | grep -c 86 >/dev/null; then
  5146. CPU_ARCH=x86
  5147. fi
  5148. ;;
  5149. esac
  5150. if test -n "$MOZILLA_CLIENT" && test "$OS_ARCH" = "WINNT"; then
  5151. OS_TARGET=WIN95
  5152. if test -n "$MOZ_DEBUG" -a -z "$USE_DEBUG_RTL"; then
  5153. USE_DEBUG_RTL=1
  5154. fi
  5155. fi
  5156. if test -z "$OS_TARGET"; then
  5157. OS_TARGET=$OS_ARCH
  5158. fi
  5159. if test "$OS_TARGET" = "WIN95"; then
  5160. OS_RELEASE="4.0"
  5161. fi
  5162. OS_CONFIG="${OS_TARGET}${OS_RELEASE}"
  5163. # Check whether --enable-os2-high-mem was given.
  5164. if test "${enable_os2_high_mem+set}" = set; then :
  5165. enableval=$enable_os2_high_mem; if test "$enableval" = "no"; then
  5166. MOZ_OS2_HIGH_MEMORY=
  5167. else
  5168. MOZ_OS2_HIGH_MEMORY=1
  5169. fi
  5170. fi
  5171. MOZ_ALIGN=toolchain-default
  5172. case "$target" in
  5173. arm*-android*|arm*-linuxandroid*)
  5174. MOZ_THUMB=yes
  5175. MOZ_ARCH=armv7-a
  5176. MOZ_FPU=vfp
  5177. MOZ_FLOAT_ABI=softfp
  5178. MOZ_SOFT_FLOAT=yes
  5179. MOZ_ALIGN=no
  5180. ;;
  5181. arm*-*)
  5182. if test -n "$MOZ_PLATFORM_MAEMO"; then
  5183. MOZ_THUMB=no
  5184. MOZ_ARCH=armv7-a
  5185. MOZ_FLOAT_ABI=softfp
  5186. fi
  5187. if test "$MOZ_PLATFORM_MAEMO" = 6; then
  5188. MOZ_THUMB=yes
  5189. fi
  5190. ;;
  5191. esac
  5192. # Check whether --enable-thumb2 was given.
  5193. if test "${enable_thumb2+set}" = set; then :
  5194. enableval=$enable_thumb2; MOZ_THUMB=$enableval
  5195. fi
  5196. # Check whether --with-thumb was given.
  5197. if test "${with_thumb+set}" = set; then :
  5198. withval=$with_thumb; if test -z "$GNU_CC"; then
  5199. as_fn_error $? "--with-thumb is not supported on non-GNU toolchain-defaults" "$LINENO" 5
  5200. fi
  5201. MOZ_THUMB=$withval
  5202. fi
  5203. # Check whether --with-thumb-interwork was given.
  5204. if test "${with_thumb_interwork+set}" = set; then :
  5205. withval=$with_thumb_interwork; if test -z "$GNU_CC"; then
  5206. as_fn_error $? "--with-thumb-interwork is not supported on non-GNU toolchain-defaults" "$LINENO" 5
  5207. fi
  5208. MOZ_THUMB_INTERWORK=$withval
  5209. fi
  5210. # Check whether --with-arch was given.
  5211. if test "${with_arch+set}" = set; then :
  5212. withval=$with_arch; if test -z "$GNU_CC"; then
  5213. as_fn_error $? "--with-arch is not supported on non-GNU toolchain-defaults" "$LINENO" 5
  5214. fi
  5215. MOZ_ARCH=$withval
  5216. fi
  5217. # Check whether --with-fpu was given.
  5218. if test "${with_fpu+set}" = set; then :
  5219. withval=$with_fpu; if test -z "$GNU_CC"; then
  5220. as_fn_error $? "--with-fpu is not supported on non-GNU toolchain-defaults" "$LINENO" 5
  5221. fi
  5222. MOZ_FPU=$withval
  5223. fi
  5224. # Check whether --with-float-abi was given.
  5225. if test "${with_float_abi+set}" = set; then :
  5226. withval=$with_float_abi; if test -z "$GNU_CC"; then
  5227. as_fn_error $? "--with-float-abi is not supported on non-GNU toolchain-defaults" "$LINENO" 5
  5228. fi
  5229. MOZ_FLOAT_ABI=$withval
  5230. fi
  5231. # Check whether --with-soft-float was given.
  5232. if test "${with_soft_float+set}" = set; then :
  5233. withval=$with_soft_float; if test -z "$GNU_CC"; then
  5234. as_fn_error $? "--with-soft-float is not supported on non-GNU toolchain-defaults" "$LINENO" 5
  5235. fi
  5236. MOZ_SOFT_FLOAT=$withval
  5237. fi
  5238. case "$MOZ_ARCH" in
  5239. toolchain-default|"")
  5240. arch_flag=""
  5241. ;;
  5242. *)
  5243. arch_flag="-march=$MOZ_ARCH"
  5244. ;;
  5245. esac
  5246. case "$MOZ_THUMB" in
  5247. yes)
  5248. MOZ_THUMB2=1
  5249. thumb_flag="-mthumb"
  5250. ;;
  5251. no)
  5252. MOZ_THUMB2=
  5253. thumb_flag="-marm"
  5254. ;;
  5255. *)
  5256. _SAVE_CFLAGS="$CFLAGS"
  5257. CFLAGS="$arch_flag"
  5258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5259. /* end confdefs.h. */
  5260. int
  5261. main ()
  5262. {
  5263. return sizeof(__thumb2__);
  5264. ;
  5265. return 0;
  5266. }
  5267. _ACEOF
  5268. if ac_fn_c_try_compile "$LINENO"; then :
  5269. MOZ_THUMB2=1
  5270. else
  5271. MOZ_THUMB2=
  5272. fi
  5273. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5274. CFLAGS="$_SAVE_CFLAGS"
  5275. thumb_flag=""
  5276. ;;
  5277. esac
  5278. case "$MOZ_THUMB_INTERWORK" in
  5279. yes)
  5280. thumb_interwork_flag="-mthumb-interwork"
  5281. ;;
  5282. no)
  5283. thumb_interwork_flag="-mno-thumb-interwork"
  5284. ;;
  5285. *) # toolchain-default
  5286. thumb_interwork_flag=""
  5287. ;;
  5288. esac
  5289. case "$MOZ_FPU" in
  5290. toolchain-default|"")
  5291. fpu_flag=""
  5292. ;;
  5293. *)
  5294. fpu_flag="-mfpu=$MOZ_FPU"
  5295. ;;
  5296. esac
  5297. case "$MOZ_FLOAT_ABI" in
  5298. toolchain-default|"")
  5299. float_abi_flag=""
  5300. ;;
  5301. *)
  5302. float_abi_flag="-mfloat-abi=$MOZ_FLOAT_ABI"
  5303. ;;
  5304. esac
  5305. case "$MOZ_SOFT_FLOAT" in
  5306. yes)
  5307. soft_float_flag="-msoft-float"
  5308. ;;
  5309. no)
  5310. soft_float_flag="-mno-soft-float"
  5311. ;;
  5312. *) # toolchain-default
  5313. soft_float_flag=""
  5314. ;;
  5315. esac
  5316. case "$MOZ_ALIGN" in
  5317. toolchain-default|"")
  5318. align_flag=""
  5319. ;;
  5320. no)
  5321. align_flag="-mno-unaligned-access"
  5322. ;;
  5323. yes)
  5324. align_flag="-munaligned-access"
  5325. ;;
  5326. *)
  5327. align_flag=""
  5328. ;;
  5329. esac
  5330. if test -n "$align_flag"; then
  5331. _SAVE_CFLAGS="$CFLAGS"
  5332. CFLAGS="$CFLAGS $align_flag"
  5333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alignment flag ($align_flag) is supported" >&5
  5334. $as_echo_n "checking whether alignment flag ($align_flag) is supported... " >&6; }
  5335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5336. /* end confdefs.h. */
  5337. int
  5338. main ()
  5339. {
  5340. ;
  5341. return 0;
  5342. }
  5343. _ACEOF
  5344. if ac_fn_c_try_compile "$LINENO"; then :
  5345. else
  5346. align_flag=""
  5347. fi
  5348. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5349. CFLAGS="$_SAVE_CFLAGS"
  5350. fi
  5351. all_flags=`echo $arch_flag $thumb_flag $thumb_interwork_flag $fpu_flag $float_abi_flag $soft_float_flag $align_flag`
  5352. if test -n "$all_flags"; then
  5353. _SAVE_CFLAGS="$CFLAGS"
  5354. CFLAGS="$all_flags"
  5355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the chosen combination of compiler flags ($all_flags) works" >&5
  5356. $as_echo_n "checking whether the chosen combination of compiler flags ($all_flags) works... " >&6; }
  5357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5358. /* end confdefs.h. */
  5359. int
  5360. main ()
  5361. {
  5362. return 0;
  5363. ;
  5364. return 0;
  5365. }
  5366. _ACEOF
  5367. if ac_fn_c_try_compile "$LINENO"; then :
  5368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5369. $as_echo "yes" >&6; }
  5370. else
  5371. as_fn_error $? "no" "$LINENO" 5
  5372. fi
  5373. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5374. CFLAGS="$_SAVE_CFLAGS $all_flags"
  5375. CXXFLAGS="$CXXFLAGS $all_flags"
  5376. ASFLAGS="$ASFLAGS $all_flags"
  5377. if test -n "$thumb_flag"; then
  5378. LDFLAGS="$LDFLAGS $thumb_flag"
  5379. fi
  5380. fi
  5381. case "$host" in
  5382. *-mingw*|*-msys*)
  5383. NSINSTALL=nsinstall
  5384. ;;
  5385. *-cygwin*|*-mks*)
  5386. NSINSTALL='$(CYGWIN_WRAPPER) nsinstall'
  5387. if test `echo "${PATH}" | grep -c \;` = 0; then
  5388. CYGWIN_WRAPPER='sh $(topsrcdir)/build/cygwin-wrapper'
  5389. fi
  5390. ;;
  5391. *os2*)
  5392. ;;
  5393. *)
  5394. HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX"
  5395. ;;
  5396. esac
  5397. case "$target" in
  5398. *-aix*)
  5399. $as_echo "#define XP_UNIX 1" >>confdefs.h
  5400. $as_echo "#define AIX 1" >>confdefs.h
  5401. $as_echo "#define SYSV 1" >>confdefs.h
  5402. DSO_LDOPTS='-brtl -bnortllib -bM:SRE -bnoentry -bexpall -blibpath:/usr/lib:/lib'
  5403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5404. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  5405. if ${ac_cv_path_GREP+:} false; then :
  5406. $as_echo_n "(cached) " >&6
  5407. else
  5408. if test -z "$GREP"; then
  5409. ac_path_GREP_found=false
  5410. # Loop through the user's path and test for each of PROGNAME-LIST
  5411. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5412. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5413. do
  5414. IFS=$as_save_IFS
  5415. test -z "$as_dir" && as_dir=.
  5416. for ac_prog in grep ggrep; do
  5417. for ac_exec_ext in '' $ac_executable_extensions; do
  5418. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5419. as_fn_executable_p "$ac_path_GREP" || continue
  5420. # Check for GNU ac_path_GREP and select it if it is found.
  5421. # Check for GNU $ac_path_GREP
  5422. case `"$ac_path_GREP" --version 2>&1` in
  5423. *GNU*)
  5424. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5425. *)
  5426. ac_count=0
  5427. $as_echo_n 0123456789 >"conftest.in"
  5428. while :
  5429. do
  5430. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5431. mv "conftest.tmp" "conftest.in"
  5432. cp "conftest.in" "conftest.nl"
  5433. $as_echo 'GREP' >> "conftest.nl"
  5434. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5435. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5436. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5437. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5438. # Best one so far, save it but keep looking for a better one
  5439. ac_cv_path_GREP="$ac_path_GREP"
  5440. ac_path_GREP_max=$ac_count
  5441. fi
  5442. # 10*(2^10) chars as input seems more than enough
  5443. test $ac_count -gt 10 && break
  5444. done
  5445. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5446. esac
  5447. $ac_path_GREP_found && break 3
  5448. done
  5449. done
  5450. done
  5451. IFS=$as_save_IFS
  5452. if test -z "$ac_cv_path_GREP"; then
  5453. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5454. fi
  5455. else
  5456. ac_cv_path_GREP=$GREP
  5457. fi
  5458. fi
  5459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5460. $as_echo "$ac_cv_path_GREP" >&6; }
  5461. GREP="$ac_cv_path_GREP"
  5462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5463. $as_echo_n "checking for egrep... " >&6; }
  5464. if ${ac_cv_path_EGREP+:} false; then :
  5465. $as_echo_n "(cached) " >&6
  5466. else
  5467. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5468. then ac_cv_path_EGREP="$GREP -E"
  5469. else
  5470. if test -z "$EGREP"; then
  5471. ac_path_EGREP_found=false
  5472. # Loop through the user's path and test for each of PROGNAME-LIST
  5473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5474. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5475. do
  5476. IFS=$as_save_IFS
  5477. test -z "$as_dir" && as_dir=.
  5478. for ac_prog in egrep; do
  5479. for ac_exec_ext in '' $ac_executable_extensions; do
  5480. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5481. as_fn_executable_p "$ac_path_EGREP" || continue
  5482. # Check for GNU ac_path_EGREP and select it if it is found.
  5483. # Check for GNU $ac_path_EGREP
  5484. case `"$ac_path_EGREP" --version 2>&1` in
  5485. *GNU*)
  5486. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5487. *)
  5488. ac_count=0
  5489. $as_echo_n 0123456789 >"conftest.in"
  5490. while :
  5491. do
  5492. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5493. mv "conftest.tmp" "conftest.in"
  5494. cp "conftest.in" "conftest.nl"
  5495. $as_echo 'EGREP' >> "conftest.nl"
  5496. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5497. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5498. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5499. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5500. # Best one so far, save it but keep looking for a better one
  5501. ac_cv_path_EGREP="$ac_path_EGREP"
  5502. ac_path_EGREP_max=$ac_count
  5503. fi
  5504. # 10*(2^10) chars as input seems more than enough
  5505. test $ac_count -gt 10 && break
  5506. done
  5507. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5508. esac
  5509. $ac_path_EGREP_found && break 3
  5510. done
  5511. done
  5512. done
  5513. IFS=$as_save_IFS
  5514. if test -z "$ac_cv_path_EGREP"; then
  5515. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5516. fi
  5517. else
  5518. ac_cv_path_EGREP=$EGREP
  5519. fi
  5520. fi
  5521. fi
  5522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5523. $as_echo "$ac_cv_path_EGREP" >&6; }
  5524. EGREP="$ac_cv_path_EGREP"
  5525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5526. $as_echo_n "checking for ANSI C header files... " >&6; }
  5527. if ${ac_cv_header_stdc+:} false; then :
  5528. $as_echo_n "(cached) " >&6
  5529. else
  5530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5531. /* end confdefs.h. */
  5532. #include <stdlib.h>
  5533. #include <stdarg.h>
  5534. #include <string.h>
  5535. #include <float.h>
  5536. int
  5537. main ()
  5538. {
  5539. ;
  5540. return 0;
  5541. }
  5542. _ACEOF
  5543. if ac_fn_c_try_compile "$LINENO"; then :
  5544. ac_cv_header_stdc=yes
  5545. else
  5546. ac_cv_header_stdc=no
  5547. fi
  5548. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5549. if test $ac_cv_header_stdc = yes; then
  5550. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5552. /* end confdefs.h. */
  5553. #include <string.h>
  5554. _ACEOF
  5555. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5556. $EGREP "memchr" >/dev/null 2>&1; then :
  5557. else
  5558. ac_cv_header_stdc=no
  5559. fi
  5560. rm -f conftest*
  5561. fi
  5562. if test $ac_cv_header_stdc = yes; then
  5563. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5565. /* end confdefs.h. */
  5566. #include <stdlib.h>
  5567. _ACEOF
  5568. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5569. $EGREP "free" >/dev/null 2>&1; then :
  5570. else
  5571. ac_cv_header_stdc=no
  5572. fi
  5573. rm -f conftest*
  5574. fi
  5575. if test $ac_cv_header_stdc = yes; then
  5576. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5577. if test "$cross_compiling" = yes; then :
  5578. :
  5579. else
  5580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5581. /* end confdefs.h. */
  5582. #include <ctype.h>
  5583. #include <stdlib.h>
  5584. #if ((' ' & 0x0FF) == 0x020)
  5585. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5586. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5587. #else
  5588. # define ISLOWER(c) \
  5589. (('a' <= (c) && (c) <= 'i') \
  5590. || ('j' <= (c) && (c) <= 'r') \
  5591. || ('s' <= (c) && (c) <= 'z'))
  5592. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5593. #endif
  5594. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5595. int
  5596. main ()
  5597. {
  5598. int i;
  5599. for (i = 0; i < 256; i++)
  5600. if (XOR (islower (i), ISLOWER (i))
  5601. || toupper (i) != TOUPPER (i))
  5602. return 2;
  5603. return 0;
  5604. }
  5605. _ACEOF
  5606. if ac_fn_c_try_run "$LINENO"; then :
  5607. else
  5608. ac_cv_header_stdc=no
  5609. fi
  5610. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5611. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5612. fi
  5613. fi
  5614. fi
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5616. $as_echo "$ac_cv_header_stdc" >&6; }
  5617. if test $ac_cv_header_stdc = yes; then
  5618. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5619. fi
  5620. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5621. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5622. inttypes.h stdint.h unistd.h
  5623. do :
  5624. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5625. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5626. "
  5627. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5628. cat >>confdefs.h <<_ACEOF
  5629. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5630. _ACEOF
  5631. fi
  5632. done
  5633. ac_fn_c_check_header_mongrel "$LINENO" "sys/atomic_op.h" "ac_cv_header_sys_atomic_op_h" "$ac_includes_default"
  5634. if test "x$ac_cv_header_sys_atomic_op_h" = xyes; then :
  5635. $as_echo "#define AIX_HAVE_ATOMIC_OP_H 1" >>confdefs.h
  5636. fi
  5637. case "${target_os}" in
  5638. aix3.2*)
  5639. $as_echo "#define AIX_RENAME_SELECT 1" >>confdefs.h
  5640. $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h
  5641. AIX_LINK_OPTS='-bnso -berok'
  5642. PR_MD_ASFILES=os_AIX.s
  5643. ;;
  5644. aix4.1*)
  5645. $as_echo "#define AIX_TIMERS 1" >>confdefs.h
  5646. $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h
  5647. $as_echo "#define AIX4_1 1" >>confdefs.h
  5648. MKSHLIB=
  5649. DSO_LDOPTS=
  5650. AIX_LINK_OPTS='-bnso -berok'
  5651. LIBNSPR='-L$(dist_libdir) -lnspr$(MOD_MAJOR_VERSION)_shr'
  5652. LIBPLC='-L$(dist_libdir) -lplc$(MOD_MAJOR_VERSION)_shr'
  5653. ;;
  5654. aix4.2*)
  5655. $as_echo "#define AIX_TIMERS 1" >>confdefs.h
  5656. $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h
  5657. AIX_LINK_OPTS='-brtl -bnso -berok'
  5658. ;;
  5659. aix4.3*)
  5660. $as_echo "#define AIX_TIMERS 1" >>confdefs.h
  5661. $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h
  5662. $as_echo "#define AIX4_3_PLUS 1" >>confdefs.h
  5663. $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
  5664. $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h
  5665. USE_IPV6=1
  5666. AIX_LINK_OPTS='-brtl -bnso -berok'
  5667. ;;
  5668. *)
  5669. $as_echo "#define AIX_TIMERS 1" >>confdefs.h
  5670. $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h
  5671. $as_echo "#define AIX4_3_PLUS 1" >>confdefs.h
  5672. $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
  5673. $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h
  5674. USE_IPV6=1
  5675. AIX_LINK_OPTS='-brtl -bnso -berok'
  5676. ;;
  5677. esac
  5678. CFLAGS="$CFLAGS -qro -qroconst"
  5679. AIX_WRAP='$(DIST)/lib/aixwrap.o'
  5680. AIX_TMP='./_aix_tmp.o'
  5681. if test -n "$USE_64"; then
  5682. MDCPUCFG_H=_aix64.cfg
  5683. OBJECT_MODE=64
  5684. else
  5685. MDCPUCFG_H=_aix32.cfg
  5686. fi
  5687. PR_MD_CSRCS=aix.c
  5688. RESOLVE_LINK_SYMBOLS=1
  5689. ;;
  5690. *-bsdi*)
  5691. $as_echo "#define XP_UNIX 1" >>confdefs.h
  5692. $as_echo "#define BSDI 1" >>confdefs.h
  5693. $as_echo "#define NEED_BSDREGEX 1" >>confdefs.h
  5694. CFLAGS="$CFLAGS -Wall -Wno-format"
  5695. CXXFLAGS="$CXXFLAGS -Wall -Wno-format"
  5696. if echo "$OS_TEST" | grep -c 86 >/dev/null; then
  5697. CPU_ARCH=x86
  5698. elif echo "$OS_TEST" | grep -c sparc >/dev/null; then
  5699. CPU_ARCH=sparc
  5700. fi
  5701. MDCPUCFG_H=_bsdi.cfg
  5702. PR_MD_CSRCS=bsdi.c
  5703. DSO_LDOPTS=-r
  5704. case "$target_os" in
  5705. bsdi1.1*)
  5706. $as_echo "#define _PR_BSDI_JMPBUF_IS_ARRAY 1" >>confdefs.h
  5707. $as_echo "#define _PR_STAT_HAS_ONLY_ST_ATIME 1" >>confdefs.h
  5708. $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h
  5709. MKSHLIB=
  5710. DSO_CFLAGS=
  5711. DSO_LDOPTS=
  5712. ;;
  5713. bsdi2.1*)
  5714. $as_echo "#define _PR_TIMESPEC_HAS_TS_SEC 1" >>confdefs.h
  5715. $as_echo "#define _PR_BSDI_JMPBUF_IS_ARRAY 1" >>confdefs.h
  5716. $as_echo "#define HAVE_DLL 1" >>confdefs.h
  5717. $as_echo "#define USE_DLFCN 1" >>confdefs.h
  5718. $as_echo "#define _PR_STAT_HAS_ST_ATIMESPEC 1" >>confdefs.h
  5719. PR_MD_ASFILES=os_BSD_OS_386_2.s
  5720. ;;
  5721. bsdi4.* | bsdi5.*)
  5722. $as_echo "#define _PR_SELECT_CONST_TIMEVAL 1" >>confdefs.h
  5723. $as_echo "#define _PR_BSDI_JMPBUF_IS_STRUCT 1" >>confdefs.h
  5724. $as_echo "#define HAVE_DLL 1" >>confdefs.h
  5725. $as_echo "#define USE_DLFCN 1" >>confdefs.h
  5726. $as_echo "#define _PR_STAT_HAS_ST_ATIMESPEC 1" >>confdefs.h
  5727. MKSHLIB='$(CC) -o $@ $(DSO_LDOPTS)'
  5728. DSO_CFLAGS=-fPIC
  5729. DSO_LDOPTS='-shared -Wl,-soname,$(@:$(OBJDIR)/%.so=%.so)'
  5730. STRIP="$STRIP -d"
  5731. case "$target_os" in
  5732. bsdi4.2* | bsdi4.3* | bsdi5.*)
  5733. $as_echo "#define _PR_HAVE_GETPROTO_R 1" >>confdefs.h
  5734. $as_echo "#define _PR_HAVE_GETPROTO_R_POINTER 1" >>confdefs.h
  5735. ;;
  5736. esac
  5737. ;;
  5738. *)
  5739. $as_echo "#define _PR_SELECT_CONST_TIMEVAL 1" >>confdefs.h
  5740. $as_echo "#define _PR_BSDI_JMPBUF_IS_STRUCT 1" >>confdefs.h
  5741. $as_echo "#define HAVE_DLL 1" >>confdefs.h
  5742. $as_echo "#define USE_DLFCN 1" >>confdefs.h
  5743. $as_echo "#define _PR_STAT_HAS_ST_ATIMESPEC 1" >>confdefs.h
  5744. ;;
  5745. esac
  5746. ;;
  5747. *-darwin*)
  5748. $as_echo "#define XP_UNIX 1" >>confdefs.h
  5749. $as_echo "#define DARWIN 1" >>confdefs.h
  5750. $as_echo "#define HAVE_BSD_FLOCK 1" >>confdefs.h
  5751. $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
  5752. $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h
  5753. HOST_DARWIN_MAJOR=`echo "$build_os" | sed -E -e 's/^darwin([0-9]+).*$/\1/'`
  5754. if test "$HOST_DARWIN_MAJOR" -ge 15 ; then
  5755. $as_echo "#define HAS_CONNECTX 1" >>confdefs.h
  5756. fi
  5757. AS='$(CC) -x assembler-with-cpp'
  5758. CFLAGS="$CFLAGS -Wall -fno-common"
  5759. case "${target_cpu}" in
  5760. arm*)
  5761. CPU_ARCH=arm
  5762. ;;
  5763. i*86*|x86_64)
  5764. if test -n "$USE_64"; then
  5765. CPU_ARCH=x86_64
  5766. else
  5767. CPU_ARCH=i386
  5768. fi
  5769. ;;
  5770. *)
  5771. CPU_ARCH=ppc
  5772. ;;
  5773. esac
  5774. if test "`echo $CC | grep -c '\-arch '`" = "0"; then
  5775. CC="$CC -arch $CPU_ARCH"
  5776. fi
  5777. ac_fn_c_check_header_mongrel "$LINENO" "crt_externs.h" "ac_cv_header_crt_externs_h" "$ac_includes_default"
  5778. if test "x$ac_cv_header_crt_externs_h" = xyes; then :
  5779. $as_echo "#define HAVE_CRT_EXTERNS_H 1" >>confdefs.h
  5780. fi
  5781. DSO_CFLAGS=-fPIC
  5782. DSO_LDOPTS='-dynamiclib -compatibility_version 1 -current_version 1 -all_load -install_name @executable_path/$@ -headerpad_max_install_names'
  5783. _OPTIMIZE_FLAGS=-O2
  5784. MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
  5785. STRIP="$STRIP -x -S"
  5786. DLL_SUFFIX=dylib
  5787. USE_PTHREADS=1
  5788. MDCPUCFG_H=_darwin.cfg
  5789. PR_MD_CSRCS=darwin.c
  5790. PR_MD_ASFILES=os_Darwin.s
  5791. # Add Mac OS X support for loading CFM & CFBundle plugins
  5792. if test -f "${MACOS_SDK_DIR}/System/Library/Frameworks/Carbon.framework/Carbon"; then
  5793. $as_echo "#define XP_MACOSX 1" >>confdefs.h
  5794. OS_TARGET=MacOSX
  5795. if test -n "$_MACOSX_DEPLOYMENT_TARGET" ; then
  5796. export MACOSX_DEPLOYMENT_TARGET=$_MACOSX_DEPLOYMENT_TARGET
  5797. elif test -z "$MACOSX_DEPLOYMENT_TARGET" ; then
  5798. case "${target_cpu}" in
  5799. powerpc*)
  5800. export MACOSX_DEPLOYMENT_TARGET=10.2
  5801. ;;
  5802. i*86*)
  5803. export MACOSX_DEPLOYMENT_TARGET=10.4
  5804. ;;
  5805. esac
  5806. fi
  5807. if test "$MACOS_SDK_DIR"; then
  5808. if test ! -d "$MACOS_SDK_DIR"; then
  5809. as_fn_error $? "SDK not found. When using --with-macos-sdk, you must
  5810. specify a valid SDK. SDKs are installed when the optional cross-development
  5811. tools are selected during the Xcode/Developer Tools installation." "$LINENO" 5
  5812. fi
  5813. CC_VERSION=`$CC -v 2>&1 | grep 'gcc version'`
  5814. GCC_VERSION_FULL=`echo $CC_VERSION | $PERL -pe 's/^.*gcc version ([^ ]*).*/$1/'`
  5815. GCC_VERSION=`echo $GCC_VERSION_FULL | $PERL -pe '(split(/\./))[0]>=4&&s/(^\d*\.\d*).*/$1/;'`
  5816. GCC_VERSION_MAJOR=`echo $GCC_VERSION_FULL | $PERL -pe 's/(^\d*).*/$1/;'`
  5817. if test "$GCC_VERSION_MAJOR" -lt "4" ; then
  5818. SDK_C_FRAMEWORK="-F${MACOS_SDK_DIR}/System/Library/Frameworks"
  5819. if test -d "${MACOS_SDK_DIR}/Library/Frameworks" ; then
  5820. SDK_C_FRAMEWORK="$SDK_C_FRAMEWORK -F${MACOS_SDK_DIR}/Library/Frameworks"
  5821. fi
  5822. SDK_C_INCLUDE="-isystem ${MACOS_SDK_DIR}/usr/include/gcc/darwin/${GCC_VERSION} -isystem ${MACOS_SDK_DIR}/usr/include ${SDK_C_FRAMEWORK}"
  5823. CFLAGS="$CFLAGS -nostdinc ${SDK_C_INCLUDE}"
  5824. CPP="$CPP -nostdinc ${SDK_C_INCLUDE}"
  5825. HOST_DARWIN_MAJOR=`echo "$build_os" | sed -E -e 's/^darwin([0-9]+).*$/\1/'`
  5826. if test "$HOST_DARWIN_MAJOR" -lt 9 ; then
  5827. MACOS_SDK_LIBS="-L${MACOS_SDK_DIR}/usr/lib/gcc/darwin -L${MACOS_SDK_DIR}/usr/lib/gcc/darwin/${GCC_VERSION_FULL} -L${MACOS_SDK_DIR}/usr/lib ${SDK_C_FRAMEWORK}"
  5828. else
  5829. MACOS_SDK_LIBS="-Wl,-syslibroot,${MACOS_SDK_DIR}"
  5830. fi
  5831. LDFLAGS="${MACOS_SDK_LIBS} $LDFLAGS"
  5832. export NEXT_ROOT=$MACOS_SDK_DIR
  5833. if test -n "$CROSS_COMPILE" ; then
  5834. HOST_CC="NEXT_ROOT= $HOST_CC"
  5835. HOST_CXX="NEXT_ROOT= $HOST_CXX"
  5836. fi
  5837. else
  5838. CFLAGS="$CFLAGS -isysroot ${MACOS_SDK_DIR}"
  5839. CPP="$CPP -isysroot ${MACOS_SDK_DIR}"
  5840. if test "$GCC_VERSION_FULL" != "4.0.0" ; then
  5841. LDFLAGS="$LDFLAGS -isysroot ${MACOS_SDK_DIR}"
  5842. else
  5843. LDFLAGS="$LDFLAGS -Wl,-syslibroot,${MACOS_SDK_DIR}"
  5844. fi
  5845. fi
  5846. fi
  5847. fi
  5848. ;;
  5849. *-freebsd*)
  5850. if test -z "$USE_NSPR_THREADS"; then
  5851. USE_PTHREADS=1
  5852. fi
  5853. $as_echo "#define XP_UNIX 1" >>confdefs.h
  5854. $as_echo "#define FREEBSD 1" >>confdefs.h
  5855. $as_echo "#define HAVE_BSD_FLOCK 1" >>confdefs.h
  5856. $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
  5857. $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h
  5858. CFLAGS="$CFLAGS $(DSO_CFLAGS) -ansi -Wall"
  5859. MOZ_OBJFORMAT=`test -x /usr/bin/objformat && /usr/bin/objformat || echo elf`
  5860. if test "$MOZ_OBJFORMAT" = "elf"; then
  5861. DLL_SUFFIX=so
  5862. else
  5863. DLL_SUFFIX=so.1.0
  5864. fi
  5865. MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
  5866. DSO_CFLAGS=-fPIC
  5867. DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
  5868. MDCPUCFG_H=_freebsd.cfg
  5869. PR_MD_CSRCS=freebsd.c
  5870. ;;
  5871. *-hpux*)
  5872. $as_echo "#define XP_UNIX 1" >>confdefs.h
  5873. $as_echo "#define HPUX 1" >>confdefs.h
  5874. $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
  5875. # HPUX report the POLLHUP event for a socket when the
  5876. # shutdown(SHUT_WR) operation is called for the remote end, even though
  5877. # the socket is still writeable. Use select(), instead of poll(), to
  5878. # workaround this problem.
  5879. $as_echo "#define _PR_POLL_WITH_SELECT 1" >>confdefs.h
  5880. $as_echo "#define _USE_BIG_FDS 1" >>confdefs.h
  5881. DSO_LDOPTS='-b +h $(notdir $@)'
  5882. PR_MD_CSRCS=hpux.c
  5883. if test "$OS_TEST" = "ia64"; then
  5884. DLL_SUFFIX=so
  5885. DSO_LDOPTS="$DSO_LDOPTS +b '\$\$ORIGIN'"
  5886. CPU_ARCH_TAG=_$OS_TEST
  5887. if test -z "$USE_64"; then
  5888. COMPILER_TAG=_32
  5889. fi
  5890. PR_MD_ASFILES=os_HPUX_ia64.s
  5891. else
  5892. $as_echo "#define hppa 1" >>confdefs.h
  5893. DLL_SUFFIX=sl
  5894. PR_MD_ASFILES=os_HPUX.s
  5895. fi
  5896. if test -n "$USE_64"; then
  5897. MDCPUCFG_H=_hpux64.cfg
  5898. else
  5899. MDCPUCFG_H=_hpux32.cfg
  5900. fi
  5901. if test -z "$GNU_CC"; then
  5902. CC="$CC -Ae"
  5903. CXX="$CXX -ext"
  5904. DSO_CFLAGS=+Z
  5905. else
  5906. DSO_CFLAGS=-fPIC
  5907. ASFLAGS="$ASFLAGS -x assembler-with-cpp"
  5908. fi
  5909. if test -n "$MOZILLA_CLIENT"; then
  5910. DEFAULT_IMPL_STRATEGY=_EMU
  5911. fi
  5912. if echo "$OS_RELEASE" | grep ^A.09 >/dev/null; then
  5913. $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h
  5914. $as_echo "#define HPUX9 1" >>confdefs.h
  5915. DEFAULT_IMPL_STRATEGY=_EMU
  5916. USE_NSPR_THREADS=1
  5917. fi
  5918. if echo "$OS_RELEASE" | egrep '^(A.09|B.10)' >/dev/null; then
  5919. $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h
  5920. fi
  5921. if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then
  5922. $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h
  5923. fi
  5924. if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then
  5925. $as_echo "#define HAVE_INT_LOCALTIME_R 1" >>confdefs.h
  5926. fi
  5927. if echo "$OS_RELEASE" | egrep '^(B.10.30|B.11)' >/dev/null; then
  5928. $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h
  5929. fi
  5930. # HP-UX 11i v2 (B.11.23) or higher
  5931. case "$OS_RELEASE" in
  5932. [C-Z]*|B.[2-9]*|B.1[2-9]*|B.11.[3-9]*|B.11.2[3-9]*)
  5933. USE_IPV6=1
  5934. ;;
  5935. esac
  5936. if test "$OS_RELEASE" = "B.10.01"; then
  5937. $as_echo "#define HPUX10 1" >>confdefs.h
  5938. DEFAULT_IMPL_STRATEGY=_EMU
  5939. fi
  5940. if test "$OS_RELEASE" = "B.10.10"; then
  5941. $as_echo "#define HPUX10 1" >>confdefs.h
  5942. $as_echo "#define HPUX10_10 1" >>confdefs.h
  5943. DEFAULT_IMPL_STRATEGY=_PTH
  5944. fi
  5945. if test "$OS_RELEASE" = "B.10.20"; then
  5946. $as_echo "#define HPUX10 1" >>confdefs.h
  5947. $as_echo "#define HPUX10_20 1" >>confdefs.h
  5948. if test -z "$GNU_CC"; then
  5949. CFLAGS="$CFLAGS +DAportable +DS1.1"
  5950. CXXFLAGS="$CXXFLAGS +DAportable +DS1.1"
  5951. fi
  5952. DEFAULT_IMPL_STRATEGY=_PTH
  5953. fi
  5954. if test "$OS_RELEASE" = "B.10.30"; then
  5955. $as_echo "#define HPUX10 1" >>confdefs.h
  5956. $as_echo "#define HPUX10_30 1" >>confdefs.h
  5957. if test -z "$GNU_CC"; then
  5958. CFLAGS="$CFLAGS +DAportable +DS1.1"
  5959. CXXFLAGS="$CXXFLAGS +DAportable +DS1.1"
  5960. fi
  5961. DEFAULT_IMPL_STRATEGY=_PTH
  5962. fi
  5963. if echo "$OS_RELEASE" | grep ^B.11 >/dev/null; then
  5964. $as_echo "#define HPUX10 1" >>confdefs.h
  5965. $as_echo "#define HPUX11 1" >>confdefs.h
  5966. $as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h
  5967. $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h
  5968. $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h
  5969. if test -z "$GNU_CC"; then
  5970. if test -z "$USE_64"; then
  5971. if test "$OS_TEST" = "ia64"; then
  5972. CFLAGS="$CFLAGS +DD32"
  5973. CXXFLAGS="$CXXFLAGS +DD32"
  5974. else
  5975. CFLAGS="$CFLAGS +DAportable +DS2.0"
  5976. CXXFLAGS="$CXXFLAGS +DAportable +DS2.0"
  5977. fi
  5978. else
  5979. if test "$OS_TEST" = "ia64"; then
  5980. CFLAGS="$CFLAGS +DD64"
  5981. CXXFLAGS="$CXXFLAGS +DD64"
  5982. else
  5983. CFLAGS="$CFLAGS +DA2.0W +DS2.0"
  5984. CXXFLAGS="$CXXFLAGS +DA2.0W +DS2.0"
  5985. fi
  5986. fi
  5987. fi
  5988. DEFAULT_IMPL_STRATEGY=_PTH
  5989. fi
  5990. if test "$DEFAULT_IMPL_STRATEGY" = "_EMU"; then
  5991. USE_NSPR_THREADS=1
  5992. USE_PTHREADS=
  5993. USE_USER_PTHREADS=
  5994. elif test "$DEFAULT_IMPL_STRATEGY" = "_PTH"; then
  5995. USE_PTHREADS=1
  5996. if test "$USE_NSPR_THREADS"; then
  5997. USE_PTHREADS=
  5998. fi
  5999. if test "$USE_USER_PTHREADS"; then
  6000. USE_PTHREADS=
  6001. fi
  6002. fi
  6003. ;;
  6004. *-linux*|*-gnu*|*-k*bsd*-gnu|*-android*|*-linuxandroid*)
  6005. if test -z "$USE_NSPR_THREADS"; then
  6006. USE_PTHREADS=1
  6007. IMPL_STRATEGY=_PTH
  6008. fi
  6009. $as_echo "#define XP_UNIX 1" >>confdefs.h
  6010. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  6011. $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h
  6012. $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h
  6013. case "${target}" in
  6014. *-android*|*-linuxandroid*)
  6015. OS_TARGET=Android
  6016. $as_echo "#define LINUX 1" >>confdefs.h
  6017. ;;
  6018. *-linux*)
  6019. $as_echo "#define LINUX 1" >>confdefs.h
  6020. ;;
  6021. esac
  6022. CFLAGS="$CFLAGS -Wall"
  6023. CXXFLAGS="$CXXFLAGS -Wall"
  6024. MDCPUCFG_H=_linux.cfg
  6025. PR_MD_CSRCS=linux.c
  6026. MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
  6027. DSO_CFLAGS=-fPIC
  6028. DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
  6029. _OPTIMIZE_FLAGS=-O2
  6030. _DEBUG_FLAGS="-g -fno-inline" # most people on linux use gcc/gdb, and that
  6031. # combo is not yet good at debugging inlined
  6032. # functions (even when using DWARF2 as the
  6033. # debugging format)
  6034. COMPILER_TAG=_glibc
  6035. if echo "$OS_TEST" | grep -c 86 >/dev/null; then
  6036. CPU_ARCH=x86
  6037. else
  6038. CPU_ARCH=$OS_TEST
  6039. fi
  6040. CPU_ARCH_TAG=_${CPU_ARCH}
  6041. case "${target_cpu}" in
  6042. alpha)
  6043. $as_echo "#define _ALPHA_ 1" >>confdefs.h
  6044. $as_echo "#define __alpha 1" >>confdefs.h
  6045. CFLAGS="$CFLAGS -mieee"
  6046. CXXFLAGS="$CXXFLAGS -mieee"
  6047. ;;
  6048. i*86)
  6049. $as_echo "#define i386 1" >>confdefs.h
  6050. PR_MD_ASFILES=os_Linux_x86.s
  6051. ;;
  6052. ia64)
  6053. PR_MD_ASFILES=os_Linux_ia64.s
  6054. ;;
  6055. x86_64)
  6056. if test -n "$USE_64"; then
  6057. PR_MD_ASFILES=os_Linux_x86_64.s
  6058. elif test -n "$USE_X32"; then
  6059. PR_MD_ASFILES=os_Linux_x86_64.s
  6060. CC="$CC -mx32"
  6061. CXX="$CXX -mx32"
  6062. else
  6063. $as_echo "#define i386 1" >>confdefs.h
  6064. PR_MD_ASFILES=os_Linux_x86.s
  6065. CC="$CC -m32"
  6066. CXX="$CXX -m32"
  6067. fi
  6068. ;;
  6069. ppc|powerpc)
  6070. PR_MD_ASFILES=os_Linux_ppc.s
  6071. ;;
  6072. powerpc64)
  6073. if test -n "$USE_64"; then
  6074. CC="$CC -m64"
  6075. CXX="$CXX -m64"
  6076. else
  6077. PR_MD_ASFILES=os_Linux_ppc.s
  6078. fi
  6079. ;;
  6080. esac
  6081. ;;
  6082. *-mingw*|*-msys*|*-cygwin*|*-mks*)
  6083. $as_echo "#define XP_PC 1" >>confdefs.h
  6084. $as_echo "#define WIN32 1" >>confdefs.h
  6085. PR_MD_ARCH_DIR=windows
  6086. RESOLVE_LINK_SYMBOLS=1
  6087. if test -n "$GNU_CC"; then
  6088. CC="$CC -mwindows"
  6089. CXX="$CXX -mwindows"
  6090. DLL_SUFFIX=dll
  6091. MKSHLIB='$(CC) -shared -Wl,--export-all-symbols -Wl,--out-implib -Wl,$(IMPORT_LIBRARY) $(DLLBASE) -o $(subst $(OBJDIR)/,,$(SHARED_LIBRARY))'
  6092. RC=$WINDRES
  6093. # Use temp file for windres (bug 213281)
  6094. RCFLAGS='-O coff --use-temp-file'
  6095. else
  6096. LD=link
  6097. AR='lib -NOLOGO -OUT:"$@"'
  6098. AR_FLAGS=
  6099. RANLIB='echo not_ranlib'
  6100. STRIP='echo not_strip'
  6101. RC=rc.exe
  6102. GARBAGE='$(OBJDIR)/vc20.pdb $(OBJDIR)/vc40.pdb'
  6103. OBJ_SUFFIX=obj
  6104. LIB_SUFFIX=lib
  6105. DLL_SUFFIX=dll
  6106. # Determine compiler version
  6107. _MSVC_VER_FILTER='s|.* \([0-9]\+\.[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?\).*|\1|p'
  6108. CC_VERSION=`${CC} -v 2>&1 | sed -ne "$_MSVC_VER_FILTER"`
  6109. if test -z "$CC_VERSION"; then
  6110. as_fn_error $? "Could not determine MSC version." "$LINENO" 5
  6111. fi
  6112. _CC_MAJOR_VERSION=`echo ${CC_VERSION} | awk -F\. '{ print $1 }'`
  6113. _CC_MINOR_VERSION=`echo ${CC_VERSION} | awk -F\. '{ print $2 }'`
  6114. _CC_RELEASE=`echo ${CC_VERSION} | awk -F\. '{ print $3 }'`
  6115. _CC_BUILD=`echo ${CC_VERSION} | awk -F\. '{ print $4 }'`
  6116. MSC_VER=${_CC_MAJOR_VERSION}${_CC_MINOR_VERSION}
  6117. if test "$_CC_MAJOR_VERSION" -eq "14"; then
  6118. if test $_CC_RELEASE -gt 50727; then
  6119. _USE_DYNAMICBASE=1
  6120. elif test $_CC_BUILD -ge 762; then
  6121. _USE_DYNAMICBASE=1
  6122. fi
  6123. $as_echo "#define _CRT_SECURE_NO_DEPRECATE 1" >>confdefs.h
  6124. $as_echo "#define _CRT_NONSTDC_NO_DEPRECATE 1" >>confdefs.h
  6125. elif test $_CC_MAJOR_VERSION -ge 15; then
  6126. _USE_DYNAMICBASE=1
  6127. $as_echo "#define _CRT_SECURE_NO_WARNINGS 1" >>confdefs.h
  6128. $as_echo "#define _CRT_NONSTDC_NO_WARNINGS 1" >>confdefs.h
  6129. fi
  6130. if test -n "$_USE_DYNAMICBASE"; then
  6131. DLLFLAGS="$DLLFLAGS -DYNAMICBASE"
  6132. fi
  6133. # Ensure that mt is Microsoft (R) Manifest Tool and not magnetic
  6134. # tape manipulation utility (or something else)
  6135. if test "$MSC_VER" -ge "1400"; then
  6136. _MSMT_VER_FILTER='s|.* \([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*|\1|p'
  6137. MSMT_TOOL=`mt 2>&1|grep 'Microsoft (R) Manifest Tool'`
  6138. if test -n "$MSMT_TOOL"; then
  6139. MSMANIFEST_TOOL_VERSION=`echo ${MSMT_TOOL}|sed -ne "$_MSMT_VER_FILTER"`
  6140. if test -z "$MSMANIFEST_TOOL_VERSION"; then
  6141. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown version of the Microsoft (R) Manifest Tool." >&5
  6142. $as_echo "$as_me: WARNING: Unknown version of the Microsoft (R) Manifest Tool." >&2;}
  6143. fi
  6144. MT=mt
  6145. unset MSMT_TOOL
  6146. else
  6147. as_fn_error $? "Microsoft (R) Manifest Tool must be in your \$PATH." "$LINENO" 5
  6148. fi
  6149. fi
  6150. CFLAGS="$CFLAGS -W3 -nologo -GF -Gy"
  6151. DLLFLAGS="$DLLFLAGS -OUT:\"\$@\""
  6152. _DEBUG_FLAGS=-Zi
  6153. _OPTIMIZE_FLAGS=-O2
  6154. PROFILE_GEN_CFLAGS="-GL"
  6155. PROFILE_GEN_LDFLAGS="-LTCG:PGINSTRUMENT"
  6156. PROFILE_USE_CFLAGS="-GL -wd4624 -wd4952"
  6157. PROFILE_USE_LDFLAGS="-LTCG:PGUPDATE"
  6158. if test "$MSC_VER" -ge "1800"; then
  6159. CFLAGS="$CFLAGS -FS"
  6160. PROFILE_GEN_CFLAGS="$PROFILE_GEN_CFLAGS -Gw"
  6161. PROFILE_USE_CFLAGS="$PROFILE_USE_CFLAGS -Gw"
  6162. fi
  6163. if test -z "$MOZ_OPTIMIZE"; then
  6164. CFLAGS="$CFLAGS -Od"
  6165. fi
  6166. if test "$USE_DEBUG_RTL" = 1; then
  6167. if test -n "$USE_STATIC_RTL"; then
  6168. CFLAGS="$CFLAGS -MTd"
  6169. else
  6170. CFLAGS="$CFLAGS -MDd"
  6171. fi
  6172. else
  6173. if test -n "$USE_STATIC_RTL"; then
  6174. CFLAGS="$CFLAGS -MT"
  6175. else
  6176. CFLAGS="$CFLAGS -MD"
  6177. fi
  6178. fi
  6179. if test -n "$MOZ_DEBUG"; then
  6180. $as_echo "#define _DEBUG 1" >>confdefs.h
  6181. else
  6182. DEFINES="$DEFINES -U_DEBUG"
  6183. fi
  6184. if test -n "$MOZ_DEBUG_SYMBOLS"; then
  6185. if test -n "$MOZ_OPTIMIZE"; then
  6186. DLLFLAGS="$DLLFLAGS -DEBUG -OPT:REF"
  6187. LDFLAGS="$LDFLAGS -DEBUG -OPT:REF"
  6188. else
  6189. DLLFLAGS="$DLLFLAGS -DEBUG"
  6190. LDFLAGS="$LDFLAGS -DEBUG"
  6191. fi
  6192. fi
  6193. OS_DLLFLAGS="-nologo -DLL -SUBSYSTEM:WINDOWS"
  6194. if test "$MSC_VER" -le "1200" -a -z "$MOZ_DEBUG_SYMBOLS"; then
  6195. OS_DLLFLAGS="$OS_DLLFLAGS -PDB:NONE"
  6196. fi
  6197. if test "$OS_TARGET" = "WINNT"; then
  6198. CFLAGS="$CFLAGS -GT"
  6199. LIBNSPR='$(dist_libdir)/libnspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
  6200. LIBPLC='$(dist_libdir)/libplc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
  6201. else
  6202. LIBNSPR='$(dist_libdir)/nspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
  6203. LIBPLC='$(dist_libdir)/plc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
  6204. fi
  6205. fi # GNU_CC
  6206. if test -n "$USE_STATIC_TLS"; then
  6207. $as_echo "#define _PR_USE_STATIC_TLS 1" >>confdefs.h
  6208. fi
  6209. if test "$OS_TARGET" = "WINNT"; then
  6210. $as_echo "#define WINNT 1" >>confdefs.h
  6211. else
  6212. $as_echo "#define WIN95 1" >>confdefs.h
  6213. # undefine WINNT as some versions of mingw gcc define it by default
  6214. DEFINES="$DEFINES -UWINNT"
  6215. $as_echo "#define _PR_GLOBAL_THREADS_ONLY 1" >>confdefs.h
  6216. fi
  6217. if test "$CPU_ARCH" = "x86"; then
  6218. CPU_ARCH_TAG=
  6219. else
  6220. CPU_ARCH_TAG=$CPU_ARCH
  6221. fi
  6222. if test "$USE_DEBUG_RTL" = 1; then
  6223. OBJDIR_SUFFIX=OBJD
  6224. fi
  6225. case "$OS_TARGET" in
  6226. WINNT)
  6227. MDCPUCFG_H=_winnt.cfg
  6228. ;;
  6229. WIN95)
  6230. MDCPUCFG_H=_win95.cfg
  6231. ;;
  6232. *)
  6233. as_fn_error $? "Missing OS_TARGET for ${target}. Use --enable-win32-target to set." "$LINENO" 5
  6234. ;;
  6235. esac
  6236. case "$target_cpu" in
  6237. i*86)
  6238. if test -n "$USE_64"; then
  6239. $as_echo "#define _AMD64_ 1" >>confdefs.h
  6240. else
  6241. $as_echo "#define _X86_ 1" >>confdefs.h
  6242. if test -z "$GNU_CC" -a "$MSC_VER" -ge "1700"; then
  6243. CFLAGS="$CFLAGS -arch:IA32"
  6244. fi
  6245. fi
  6246. ;;
  6247. x86_64)
  6248. $as_echo "#define _AMD64_ 1" >>confdefs.h
  6249. USE_64=1
  6250. ;;
  6251. aarch64)
  6252. $as_echo "#define _ARM64_ 1" >>confdefs.h
  6253. USE_64=1
  6254. ;;
  6255. ia64)
  6256. $as_echo "#define _IA64_ 1" >>confdefs.h
  6257. USE_64=1
  6258. ;;
  6259. *)
  6260. $as_echo "#define _CPU_ARCH_NOT_DEFINED 1" >>confdefs.h
  6261. ;;
  6262. esac
  6263. ;;
  6264. *-netbsd*)
  6265. $as_echo "#define XP_UNIX 1" >>confdefs.h
  6266. $as_echo "#define NETBSD 1" >>confdefs.h
  6267. $as_echo "#define HAVE_BSD_FLOCK 1" >>confdefs.h
  6268. $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
  6269. $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h
  6270. if test -z "$USE_NSPR_THREADS"; then
  6271. USE_PTHREADS=1
  6272. fi
  6273. MDCPUCFG_H=_netbsd.cfg
  6274. PR_MD_CSRCS=netbsd.c
  6275. DSO_CFLAGS='-fPIC -DPIC'
  6276. CFLAGS="$CFLAGS -ansi -Wall"
  6277. CXXFLAGS="$CXXFLAGS -ansi -Wall"
  6278. MKSHLIB='$(CC) -o $@ $(DSO_LDOPTS)'
  6279. if test -z "$OBJECT_FMT"; then
  6280. if echo __ELF__ | ${CC-cc} -E - | grep -q __ELF__ 2>/dev/null; then
  6281. OBJECT_FMT=a.out
  6282. DLL_SUFFIX=so.1.0
  6283. DSO_LDOPTS='-shared'
  6284. else
  6285. OBJECT_FMT=ELF
  6286. DLL_SUFFIX=so
  6287. DSO_LDOPTS='-shared -Wl,-soname,$(notdir $@)'
  6288. fi
  6289. fi
  6290. if test "$LIBRUNPATH"; then
  6291. DSO_LDOPTS="$DSO_LDOPTS -Wl,-R$LIBRUNPATH"
  6292. fi
  6293. ;;
  6294. *-nto*)
  6295. $as_echo "#define XP_UNIX 1" >>confdefs.h
  6296. $as_echo "#define NTO 1" >>confdefs.h
  6297. $as_echo "#define _QNX_SOURCE 1" >>confdefs.h
  6298. $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h
  6299. MDCPUCFG_H=_nto.cfg
  6300. PR_MD_CSRCS=nto.c
  6301. MKSHLIB='$(CC) $(DSO_LDOPTS) -Wl,-soname -Wl,$(notdir $@) -o $@'
  6302. DSO_CFLAGS=-fPIC
  6303. DSO_LDOPTS=-shared
  6304. OS_LIBS="$OS_LIBS -lsocket"
  6305. _OPTIMIZE_FLAGS="-O1"
  6306. _DEBUG_FLAGS="-gstabs"
  6307. ;;
  6308. *-openbsd*)
  6309. $as_echo "#define XP_UNIX 1" >>confdefs.h
  6310. $as_echo "#define OPENBSD 1" >>confdefs.h
  6311. $as_echo "#define HAVE_BSD_FLOCK 1" >>confdefs.h
  6312. $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
  6313. $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h
  6314. CFLAGS="$CFLAGS -ansi -Wall"
  6315. CXXFLAGS="$CXXFLAGS -ansi -Wall"
  6316. DLL_SUFFIX=so.1.0
  6317. DSO_CFLAGS=-fPIC
  6318. MDCPUCFG_H=_openbsd.cfg
  6319. PR_MD_CSRCS=openbsd.c
  6320. OS_LIBS="-lc"
  6321. if test -z "$USE_NSPR_THREADS"; then
  6322. USE_PTHREADS=1
  6323. fi
  6324. DSO_LDOPTS='-shared -fPIC -Wl,-soname,$(notdir $@)'
  6325. MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
  6326. ;;
  6327. *-qnx*)
  6328. $as_echo "#define XP_UNIX 1" >>confdefs.h
  6329. $as_echo "#define QNX 1" >>confdefs.h
  6330. $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h
  6331. USE_NSPR_THREADS=1
  6332. MDCPUCFG_H=_qnx.cfg
  6333. PR_MD_CSRCS=qnx.c
  6334. ;;
  6335. *-riscos*)
  6336. $as_echo "#define XP_UNIX 1" >>confdefs.h
  6337. $as_echo "#define RISCOS 1" >>confdefs.h
  6338. $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h
  6339. USE_PTHREADS=1
  6340. MDCPUCFG_H=_riscos.cfg
  6341. PR_MD_CSRCS=riscos.c
  6342. DSO_CFLAGS=-fPIC
  6343. DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
  6344. MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
  6345. ;;
  6346. *-*-sco*)
  6347. $as_echo "#define XP_UNIX 1" >>confdefs.h
  6348. $as_echo "#define SCO 1" >>confdefs.h
  6349. $as_echo "#define sco 1" >>confdefs.h
  6350. $as_echo "#define SYSV 1" >>confdefs.h
  6351. $as_echo "#define _SVID3 1" >>confdefs.h
  6352. $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h
  6353. CC='cc -b elf -KPIC'
  6354. CXX='$(NSDEPTH)/build/hcpp CC +.cpp +w'
  6355. USE_NSPR_THREADS=1
  6356. CPU_ARCH=x86
  6357. DSO_LDOPTS='-b elf -G'
  6358. MDCPUCFG_H=_scoos.cfg
  6359. PR_MD_SRCS=scoos.c
  6360. ;;
  6361. *-solaris*)
  6362. if test -z "$USE_NSPR_THREADS"; then
  6363. USE_PTHREADS=1
  6364. fi
  6365. $as_echo "#define XP_UNIX 1" >>confdefs.h
  6366. $as_echo "#define SVR4 1" >>confdefs.h
  6367. $as_echo "#define SYSV 1" >>confdefs.h
  6368. $as_echo "#define __svr4 1" >>confdefs.h
  6369. $as_echo "#define __svr4__ 1" >>confdefs.h
  6370. $as_echo "#define SOLARIS 1" >>confdefs.h
  6371. $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h
  6372. CPU_ARCH=`uname -p`
  6373. MDCPUCFG_H=_solaris.cfg
  6374. PR_MD_CSRCS=solaris.c
  6375. LD=/usr/ccs/bin/ld
  6376. MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
  6377. RESOLVE_LINK_SYMBOLS=1
  6378. case "${OS_RELEASE}" in
  6379. 5.8|5.9)
  6380. ;;
  6381. *)
  6382. # It is safe to use the -Bdirect linker flag on Solaris 10 or later.
  6383. USE_B_DIRECT=1
  6384. ;;
  6385. esac
  6386. if test -n "$GNU_CC"; then
  6387. DSO_CFLAGS=-fPIC
  6388. if `$CC -print-prog-name=ld` -v 2>&1 | grep -c GNU >/dev/null; then
  6389. GCC_USE_GNU_LD=1
  6390. fi
  6391. DSO_LDOPTS='-shared -Wl,-h,$(notdir $@),-z,combreloc,-z,defs,-z,ignore'
  6392. if test -n "$USE_B_DIRECT"; then
  6393. DSO_LDOPTS="$DSO_LDOPTS,-Bdirect"
  6394. fi
  6395. else
  6396. DSO_CFLAGS=-KPIC
  6397. DSO_LDOPTS='-G -h $(notdir $@) -z combreloc -z defs -z ignore'
  6398. if test -n "$USE_B_DIRECT"; then
  6399. DSO_LDOPTS="$DSO_LDOPTS -Bdirect"
  6400. fi
  6401. fi
  6402. if test -n "$GNU_CC"; then
  6403. CFLAGS="$CFLAGS -Wall"
  6404. CXXFLAGS="$CXXFLAGS -Wall"
  6405. if test -n "$USE_MDUPDATE"; then
  6406. CFLAGS="$CFLAGS -MDupdate \$(DEPENDENCIES)"
  6407. CXXFLAGS="$CXXFLAGS -MDupdate \$(DEPENDENCIES)"
  6408. fi
  6409. GCC_AS=`$CC -print-prog-name=as`
  6410. if test "`echo | $GCC_AS -v 2>&1 | grep -c GNU`" != "0"; then
  6411. GNU_AS=1
  6412. fi
  6413. else
  6414. CFLAGS="$CFLAGS -xstrconst"
  6415. CXXFLAGS="$CXXFLAGS -Qoption cg -xstrconst -features=tmplife"
  6416. if test -z "$MOZ_OPTIMIZE"; then
  6417. CFLAGS="$CFLAGS -xs"
  6418. CXXFLAGS="$CXXFLAGS -xs"
  6419. fi
  6420. _OPTIMIZE_FLAGS=-xO4
  6421. fi
  6422. if test -z "$GNU_AS"; then
  6423. ASFLAGS="$ASFLAGS -Wa,-P"
  6424. fi
  6425. if test -n "$USE_64"; then
  6426. if test -n "$GNU_CC"; then
  6427. CC="$CC -m64"
  6428. CXX="$CXX -m64"
  6429. else
  6430. if test "$OS_TEST" = "i86pc"; then
  6431. CC="$CC -xarch=amd64"
  6432. CXX="$CXX -xarch=amd64"
  6433. else
  6434. CC="$CC -xarch=v9"
  6435. CXX="$CXX -xarch=v9"
  6436. fi
  6437. fi
  6438. fi
  6439. if test "$OS_TEST" = "i86pc"; then
  6440. if test -z "$USE_64"; then
  6441. $as_echo "#define i386 1" >>confdefs.h
  6442. fi
  6443. CPU_ARCH_TAG=_$OS_TEST
  6444. # The default debug format, DWARF (-g), is not supported by gcc
  6445. # on i386-ANY-sysv4/solaris, but the stabs format is. It is
  6446. # assumed that the Solaris assembler /usr/ccs/bin/as is used.
  6447. # If your gcc uses GNU as, you do not need the -Wa,-s option.
  6448. if test -n "$MOZ_DEBUG" && test -n "$GNU_CC"; then
  6449. _DEBUG_FLAGS=-gstabs
  6450. if test -z "$GNU_AS"; then
  6451. _DEBUG_FLAGS="$_DEBUG_FLAGS -Wa,-s"
  6452. fi
  6453. fi
  6454. fi
  6455. case "${target_os}" in
  6456. solaris2.3*)
  6457. $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h
  6458. ;;
  6459. solaris2.4*)
  6460. $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h
  6461. ;;
  6462. solaris2.5*)
  6463. $as_echo "#define SOLARIS2_5 1" >>confdefs.h
  6464. ;;
  6465. *)
  6466. $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h
  6467. # The lfcompile64(5) man page on Solaris 2.6 says:
  6468. # For applications that do not wish to conform to the POSIX or
  6469. # X/Open specifications, the 64-bit transitional interfaces
  6470. # are available by default. No compile-time flags need to be
  6471. # set.
  6472. # But gcc 2.7.2.x fails to define _LARGEFILE64_SOURCE by default.
  6473. # The native compiler, gcc 2.8.x, and egcs don't have this problem.
  6474. if test -n "$GNU_CC"; then
  6475. $as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h
  6476. fi
  6477. ;;
  6478. esac
  6479. case "${target_os}" in
  6480. solaris2.3*)
  6481. ;;
  6482. solaris2.4*)
  6483. ;;
  6484. solaris2.5*)
  6485. ;;
  6486. solaris2.6*)
  6487. ;;
  6488. solaris2.7*)
  6489. ;;
  6490. *)
  6491. # Solaris 8 or higher has IPv6.
  6492. $as_echo "#define _PR_INET6 1" >>confdefs.h
  6493. ;;
  6494. esac
  6495. if test "$CPU_ARCH" = "sparc"; then
  6496. # 64-bit Solaris SPARC requires V9 architecture, so the following
  6497. # is not needed.
  6498. if test -z "$USE_64"; then
  6499. ULTRASPARC_LIBRARY=nspr_flt
  6500. fi
  6501. fi
  6502. # Purify requires that binaries linked against nspr also
  6503. # be linked against -lrt (or -lposix4) so add it to OS_LIBS
  6504. _rev=`uname -r`
  6505. _librt=`echo $_rev 5.6 | awk '{ if ($1 > $2) print "-lrt"; else print "-lposix4" }'`
  6506. OS_LIBS="$OS_LIBS $_librt"
  6507. ;;
  6508. *-sco-sysv5*)
  6509. $as_echo "#define XP_UNIX 1" >>confdefs.h
  6510. $as_echo "#define UNIXWARE 1" >>confdefs.h
  6511. $as_echo "#define SVR4 1" >>confdefs.h
  6512. $as_echo "#define SYSV 1" >>confdefs.h
  6513. USE_NSPR_THREADS=1
  6514. if echo $OS_RELEASE | grep -c 2.1 2>/dev/null; then
  6515. $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h
  6516. CC='$(NSDEPTH)/build/hcc cc'
  6517. CXX='$(NSDEPTH)/build/hcpp CC'
  6518. MDCPUCFG_H=_unixware.cfg
  6519. else
  6520. $as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h
  6521. $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h
  6522. $as_echo "#define _PR_HAVE_SOCKADDR_LEN 1" >>confdefs.h
  6523. MDCPUCFG_H=_unixware7.cfg
  6524. fi
  6525. PR_MD_CSRCS=unixware.c
  6526. DSO_LDOPTS=-G
  6527. CPU_ARCH=x86
  6528. ;;
  6529. *-os2*)
  6530. $as_echo "#define XP_OS2 1" >>confdefs.h
  6531. $as_echo "#define XP_PC 1" >>confdefs.h
  6532. $as_echo "#define BSD_SELECT 1" >>confdefs.h
  6533. $as_echo "#define TCPV40HDRS 1" >>confdefs.h
  6534. LIB_SUFFIX=lib
  6535. DLL_SUFFIX=dll
  6536. RC=rc.exe
  6537. PR_MD_ARCH_DIR=os2
  6538. PROG_SUFFIX=.exe
  6539. NSINSTALL=nsinstall
  6540. MDCPUCFG_H=_os2.cfg
  6541. RESOLVE_LINK_SYMBOLS=1
  6542. $as_echo "#define OS2 1" >>confdefs.h
  6543. AR=emxomfar
  6544. AR_FLAGS='r $@'
  6545. CFLAGS="$CFLAGS -Wall -Zomf"
  6546. CXXFLAGS="$CFLAGS -Wall -Zomf"
  6547. MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
  6548. DSO_CFLAGS=
  6549. DSO_LDOPTS='-Zomf -Zdll'
  6550. LDFLAGS='-Zmap'
  6551. _OPTIMIZE_FLAGS="-O2 -s"
  6552. _DEBUG_FLAGS="-g -fno-inline"
  6553. if test -n "$MOZ_OPTIMIZE"; then
  6554. DSO_LDOPTS="$DSO_LDOPTS -Zlinker /EXEPACK:2 -Zlinker /PACKCODE -Zlinker /PACKDATA"
  6555. fi
  6556. IMPLIB='emximp -o'
  6557. FILTER='emxexp -o'
  6558. if test -n "$MOZ_OS2_HIGH_MEMORY"; then
  6559. LDFLAGS="$LDFLAGS -Zhigh-mem"
  6560. $as_echo "#define MOZ_OS2_HIGH_MEMORY 1" >>confdefs.h
  6561. fi
  6562. # GCC for OS/2 currently predefines these, but we don't want them
  6563. DEFINES="$DEFINES -Uunix -U__unix -U__unix__"
  6564. ;;
  6565. *)
  6566. $as_echo "#define XP_UNIX 1" >>confdefs.h
  6567. ;;
  6568. esac
  6569. if test -z "$SKIP_LIBRARY_CHECKS"; then
  6570. case $target in
  6571. *-darwin*|*-os2*)
  6572. ;;
  6573. *)
  6574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  6575. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  6576. if ${ac_cv_lib_dl_dlopen+:} false; then :
  6577. $as_echo_n "(cached) " >&6
  6578. else
  6579. ac_check_lib_save_LIBS=$LIBS
  6580. LIBS="-ldl $LIBS"
  6581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6582. /* end confdefs.h. */
  6583. /* Override any GCC internal prototype to avoid an error.
  6584. Use char because int might match the return type of a GCC
  6585. builtin and then its argument prototype would still apply. */
  6586. #ifdef __cplusplus
  6587. extern "C"
  6588. #endif
  6589. char dlopen ();
  6590. int
  6591. main ()
  6592. {
  6593. return dlopen ();
  6594. ;
  6595. return 0;
  6596. }
  6597. _ACEOF
  6598. if ac_fn_c_try_link "$LINENO"; then :
  6599. ac_cv_lib_dl_dlopen=yes
  6600. else
  6601. ac_cv_lib_dl_dlopen=no
  6602. fi
  6603. rm -f core conftest.err conftest.$ac_objext \
  6604. conftest$ac_exeext conftest.$ac_ext
  6605. LIBS=$ac_check_lib_save_LIBS
  6606. fi
  6607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  6608. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  6609. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  6610. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  6611. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6612. OS_LIBS="-ldl $OS_LIBS"
  6613. fi
  6614. fi
  6615. ;;
  6616. esac
  6617. if test $ac_cv_c_compiler_gnu = yes; then
  6618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  6619. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  6620. if ${ac_cv_prog_gcc_traditional+:} false; then :
  6621. $as_echo_n "(cached) " >&6
  6622. else
  6623. ac_pattern="Autoconf.*'x'"
  6624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6625. /* end confdefs.h. */
  6626. #include <sgtty.h>
  6627. Autoconf TIOCGETP
  6628. _ACEOF
  6629. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6630. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  6631. ac_cv_prog_gcc_traditional=yes
  6632. else
  6633. ac_cv_prog_gcc_traditional=no
  6634. fi
  6635. rm -f conftest*
  6636. if test $ac_cv_prog_gcc_traditional = no; then
  6637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6638. /* end confdefs.h. */
  6639. #include <termio.h>
  6640. Autoconf TCGETA
  6641. _ACEOF
  6642. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6643. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  6644. ac_cv_prog_gcc_traditional=yes
  6645. fi
  6646. rm -f conftest*
  6647. fi
  6648. fi
  6649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  6650. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  6651. if test $ac_cv_prog_gcc_traditional = yes; then
  6652. CC="$CC -traditional"
  6653. fi
  6654. fi
  6655. _SAVE_LIBS="$LIBS"
  6656. LIBS="$LIBS $OS_LIBS"
  6657. for ac_func in dladdr gettid lchown setpriority strerror syscall secure_getenv __secure_getenv
  6658. do :
  6659. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6660. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6661. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6662. cat >>confdefs.h <<_ACEOF
  6663. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6664. _ACEOF
  6665. fi
  6666. done
  6667. LIBS="$_SAVE_LIBS"
  6668. # Check whether --with-ccache was given.
  6669. if test "${with_ccache+set}" = set; then :
  6670. withval=$with_ccache; CCACHE=$withval
  6671. else
  6672. CCACHE="no"
  6673. fi
  6674. if test "$CCACHE" != "no"; then
  6675. if test -n "$CCACHE"; then
  6676. if test "$CCACHE" = "yes"; then
  6677. CCACHE=
  6678. else
  6679. if test ! -e "$CCACHE"; then
  6680. as_fn_error $? "$CCACHE not found" "$LINENO" 5
  6681. fi
  6682. fi
  6683. fi
  6684. for ac_prog in $CCACHE ccache
  6685. do
  6686. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6687. set dummy $ac_prog; ac_word=$2
  6688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6689. $as_echo_n "checking for $ac_word... " >&6; }
  6690. if ${ac_cv_path_CCACHE+:} false; then :
  6691. $as_echo_n "(cached) " >&6
  6692. else
  6693. case $CCACHE in
  6694. [\\/]* | ?:[\\/]*)
  6695. ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
  6696. ;;
  6697. *)
  6698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6699. for as_dir in $PATH
  6700. do
  6701. IFS=$as_save_IFS
  6702. test -z "$as_dir" && as_dir=.
  6703. for ac_exec_ext in '' $ac_executable_extensions; do
  6704. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6705. ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext"
  6706. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6707. break 2
  6708. fi
  6709. done
  6710. done
  6711. IFS=$as_save_IFS
  6712. ;;
  6713. esac
  6714. fi
  6715. CCACHE=$ac_cv_path_CCACHE
  6716. if test -n "$CCACHE"; then
  6717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
  6718. $as_echo "$CCACHE" >&6; }
  6719. else
  6720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6721. $as_echo "no" >&6; }
  6722. fi
  6723. test -n "$CCACHE" && break
  6724. done
  6725. if test -z "$CCACHE" -o "$CCACHE" = ":"; then
  6726. as_fn_error $? "ccache not found" "$LINENO" 5
  6727. elif test -x "$CCACHE"; then
  6728. CC="$CCACHE $CC"
  6729. CXX="$CCACHE $CXX"
  6730. else
  6731. as_fn_error $? "$CCACHE is not executable" "$LINENO" 5
  6732. fi
  6733. fi
  6734. # Check whether --enable-strip was given.
  6735. if test "${enable_strip+set}" = set; then :
  6736. enableval=$enable_strip; if test "$enableval" = "yes"; then
  6737. ENABLE_STRIP=1
  6738. fi
  6739. fi
  6740. case "${target_os}" in
  6741. hpux*)
  6742. if test -z "$GNU_CC"; then
  6743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for +Olit support" >&5
  6744. $as_echo_n "checking for +Olit support... " >&6; }
  6745. if ${ac_cv_hpux_usable_olit_option+:} false; then :
  6746. $as_echo_n "(cached) " >&6
  6747. else
  6748. ac_cv_hpux_usable_olit_option=no
  6749. rm -f conftest*
  6750. echo 'int main() { return 0; }' | cat > conftest.c
  6751. ${CC-cc} ${CFLAGS} +Olit=all -o conftest conftest.c > conftest.out 2>&1
  6752. if test $? -eq 0; then
  6753. if test -z "`egrep -i '(unrecognize|unknown)' conftest.out`"; then
  6754. ac_cv_hpux_usable_olit_option=yes
  6755. fi
  6756. fi
  6757. rm -f conftest*
  6758. fi
  6759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hpux_usable_olit_option" >&5
  6760. $as_echo "$ac_cv_hpux_usable_olit_option" >&6; }
  6761. if test "$ac_cv_hpux_usable_olit_option" = "yes"; then
  6762. CFLAGS="$CFLAGS +Olit=all"
  6763. CXXFLAGS="$CXXFLAGS +Olit=all"
  6764. else
  6765. CFLAGS="$CFLAGS +ESlit"
  6766. CXXFLAGS="$CXXFLAGS +ESlit"
  6767. fi
  6768. fi
  6769. ;;
  6770. esac
  6771. case "$target_os" in
  6772. darwin*)
  6773. _HAVE_PTHREADS=1
  6774. ;;
  6775. *)
  6776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
  6777. $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
  6778. if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
  6779. $as_echo_n "(cached) " >&6
  6780. else
  6781. ac_check_lib_save_LIBS=$LIBS
  6782. LIBS="-lpthreads $LIBS"
  6783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6784. /* end confdefs.h. */
  6785. /* Override any GCC internal prototype to avoid an error.
  6786. Use char because int might match the return type of a GCC
  6787. builtin and then its argument prototype would still apply. */
  6788. #ifdef __cplusplus
  6789. extern "C"
  6790. #endif
  6791. char pthread_create ();
  6792. int
  6793. main ()
  6794. {
  6795. return pthread_create ();
  6796. ;
  6797. return 0;
  6798. }
  6799. _ACEOF
  6800. if ac_fn_c_try_link "$LINENO"; then :
  6801. ac_cv_lib_pthreads_pthread_create=yes
  6802. else
  6803. ac_cv_lib_pthreads_pthread_create=no
  6804. fi
  6805. rm -f core conftest.err conftest.$ac_objext \
  6806. conftest$ac_exeext conftest.$ac_ext
  6807. LIBS=$ac_check_lib_save_LIBS
  6808. fi
  6809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
  6810. $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
  6811. if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
  6812. _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lpthreads"
  6813. else
  6814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  6815. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  6816. if ${ac_cv_lib_pthread_pthread_create+:} false; then :
  6817. $as_echo_n "(cached) " >&6
  6818. else
  6819. ac_check_lib_save_LIBS=$LIBS
  6820. LIBS="-lpthread $LIBS"
  6821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6822. /* end confdefs.h. */
  6823. /* Override any GCC internal prototype to avoid an error.
  6824. Use char because int might match the return type of a GCC
  6825. builtin and then its argument prototype would still apply. */
  6826. #ifdef __cplusplus
  6827. extern "C"
  6828. #endif
  6829. char pthread_create ();
  6830. int
  6831. main ()
  6832. {
  6833. return pthread_create ();
  6834. ;
  6835. return 0;
  6836. }
  6837. _ACEOF
  6838. if ac_fn_c_try_link "$LINENO"; then :
  6839. ac_cv_lib_pthread_pthread_create=yes
  6840. else
  6841. ac_cv_lib_pthread_pthread_create=no
  6842. fi
  6843. rm -f core conftest.err conftest.$ac_objext \
  6844. conftest$ac_exeext conftest.$ac_ext
  6845. LIBS=$ac_check_lib_save_LIBS
  6846. fi
  6847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  6848. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  6849. if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  6850. _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lpthread"
  6851. else
  6852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
  6853. $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
  6854. if ${ac_cv_lib_c_r_pthread_create+:} false; then :
  6855. $as_echo_n "(cached) " >&6
  6856. else
  6857. ac_check_lib_save_LIBS=$LIBS
  6858. LIBS="-lc_r $LIBS"
  6859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6860. /* end confdefs.h. */
  6861. /* Override any GCC internal prototype to avoid an error.
  6862. Use char because int might match the return type of a GCC
  6863. builtin and then its argument prototype would still apply. */
  6864. #ifdef __cplusplus
  6865. extern "C"
  6866. #endif
  6867. char pthread_create ();
  6868. int
  6869. main ()
  6870. {
  6871. return pthread_create ();
  6872. ;
  6873. return 0;
  6874. }
  6875. _ACEOF
  6876. if ac_fn_c_try_link "$LINENO"; then :
  6877. ac_cv_lib_c_r_pthread_create=yes
  6878. else
  6879. ac_cv_lib_c_r_pthread_create=no
  6880. fi
  6881. rm -f core conftest.err conftest.$ac_objext \
  6882. conftest$ac_exeext conftest.$ac_ext
  6883. LIBS=$ac_check_lib_save_LIBS
  6884. fi
  6885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
  6886. $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
  6887. if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
  6888. _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lc_r"
  6889. else
  6890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc" >&5
  6891. $as_echo_n "checking for pthread_create in -lc... " >&6; }
  6892. if ${ac_cv_lib_c_pthread_create+:} false; then :
  6893. $as_echo_n "(cached) " >&6
  6894. else
  6895. ac_check_lib_save_LIBS=$LIBS
  6896. LIBS="-lc $LIBS"
  6897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6898. /* end confdefs.h. */
  6899. /* Override any GCC internal prototype to avoid an error.
  6900. Use char because int might match the return type of a GCC
  6901. builtin and then its argument prototype would still apply. */
  6902. #ifdef __cplusplus
  6903. extern "C"
  6904. #endif
  6905. char pthread_create ();
  6906. int
  6907. main ()
  6908. {
  6909. return pthread_create ();
  6910. ;
  6911. return 0;
  6912. }
  6913. _ACEOF
  6914. if ac_fn_c_try_link "$LINENO"; then :
  6915. ac_cv_lib_c_pthread_create=yes
  6916. else
  6917. ac_cv_lib_c_pthread_create=no
  6918. fi
  6919. rm -f core conftest.err conftest.$ac_objext \
  6920. conftest$ac_exeext conftest.$ac_ext
  6921. LIBS=$ac_check_lib_save_LIBS
  6922. fi
  6923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_create" >&5
  6924. $as_echo "$ac_cv_lib_c_pthread_create" >&6; }
  6925. if test "x$ac_cv_lib_c_pthread_create" = xyes; then :
  6926. _HAVE_PTHREADS=1
  6927. fi
  6928. fi
  6929. fi
  6930. fi
  6931. ;;
  6932. esac
  6933. # Check whether --with-pthreads was given.
  6934. if test "${with_pthreads+set}" = set; then :
  6935. withval=$with_pthreads; if test "$withval" = "yes"; then
  6936. if test -n "$_HAVE_PTHREADS"; then
  6937. USE_PTHREADS=1
  6938. USE_USER_PTHREADS=
  6939. USE_NSPR_THREADS=
  6940. else
  6941. as_fn_error $? " --with-pthreads specified for a system without pthread support " "$LINENO" 5;
  6942. fi
  6943. else
  6944. USE_PTHREADS=
  6945. _PTHREAD_LDFLAGS=
  6946. fi
  6947. else
  6948. if test -n "$_HAVE_PTHREADS" && test -z "$USE_USER_PTHREADS" && test -z "$USE_NSPR_THREADS"; then
  6949. USE_PTHREADS=1
  6950. USE_USER_PTHREADS=
  6951. USE_NSPR_THREADS=
  6952. fi
  6953. fi
  6954. # Check whether --enable-user-pthreads was given.
  6955. if test "${enable_user_pthreads+set}" = set; then :
  6956. enableval=$enable_user_pthreads; if test "$enableval" = "yes"; then
  6957. if test -n "$_HAVE_PTHREADS"; then
  6958. USE_PTHREADS=
  6959. USE_USER_PTHREADS=1
  6960. USE_NSPR_THREADS=
  6961. else
  6962. as_fn_error $? " --enable-user-pthreads specified for a system without pthread support " "$LINENO" 5;
  6963. fi
  6964. fi
  6965. fi
  6966. # Check whether --enable-nspr-threads was given.
  6967. if test "${enable_nspr_threads+set}" = set; then :
  6968. enableval=$enable_nspr_threads; if test "$enableval" = "yes"; then
  6969. USE_PTHREADS=
  6970. USE_USER_PTHREADS=
  6971. USE_NSPR_THREADS=1
  6972. fi
  6973. fi
  6974. fi # SKIP_LIBRARY_CHECKS
  6975. # Check whether --enable-ipv6 was given.
  6976. if test "${enable_ipv6+set}" = set; then :
  6977. enableval=$enable_ipv6; if test "$enableval" = "yes"; then
  6978. USE_IPV6=1
  6979. else
  6980. USE_IPV6=
  6981. fi
  6982. fi
  6983. if test -n "$USE_PTHREADS"; then
  6984. rm -f conftest*
  6985. ac_cv_have_dash_pthread=no
  6986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -pthread" >&5
  6987. $as_echo_n "checking whether ${CC-cc} accepts -pthread... " >&6; }
  6988. echo 'int main() { return 0; }' | cat > conftest.c
  6989. ${CC-cc} -pthread -o conftest conftest.c > conftest.out 2>&1
  6990. if test $? -eq 0; then
  6991. if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthread`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then
  6992. ac_cv_have_dash_pthread=yes
  6993. case "$target_os" in
  6994. freebsd*)
  6995. # Freebsd doesn't use -pthread for compiles, it uses them for linking
  6996. ;;
  6997. *)
  6998. CFLAGS="$CFLAGS -pthread"
  6999. CXXFLAGS="$CXXFLAGS -pthread"
  7000. ;;
  7001. esac
  7002. fi
  7003. fi
  7004. rm -f conftest*
  7005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_dash_pthread" >&5
  7006. $as_echo "$ac_cv_have_dash_pthread" >&6; }
  7007. ac_cv_have_dash_pthreads=no
  7008. if test "$ac_cv_have_dash_pthread" = "no"; then
  7009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -pthreads" >&5
  7010. $as_echo_n "checking whether ${CC-cc} accepts -pthreads... " >&6; }
  7011. echo 'int main() { return 0; }' | cat > conftest.c
  7012. ${CC-cc} -pthreads -o conftest conftest.c > conftest.out 2>&1
  7013. if test $? -eq 0; then
  7014. if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthreads`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then
  7015. ac_cv_have_dash_pthreads=yes
  7016. CFLAGS="$CFLAGS -pthreads"
  7017. CXXFLAGS="$CXXFLAGS -pthreads"
  7018. fi
  7019. fi
  7020. rm -f conftest*
  7021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_dash_pthreads" >&5
  7022. $as_echo "$ac_cv_have_dash_pthreads" >&6; }
  7023. fi
  7024. case "$target" in
  7025. *-solaris*)
  7026. if test "$ac_cv_have_dash_pthreads" = "yes"; then
  7027. _PTHREAD_LDFLAGS=
  7028. fi
  7029. ;;
  7030. *-freebsd*)
  7031. $as_echo "#define _REENTRANT 1" >>confdefs.h
  7032. $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
  7033. if test "$ac_cv_have_dash_pthread" = "yes"; then
  7034. _PTHREAD_LDFLAGS="-pthread"
  7035. else
  7036. _PTHREAD_LDFLAGS="-lc_r"
  7037. fi
  7038. ;;
  7039. *-netbsd*)
  7040. if test "$ac_cv_have_dash_pthread" = "yes"; then
  7041. _PTHREAD_LDFLAGS="-pthread"
  7042. fi
  7043. ;;
  7044. *-bsdi*)
  7045. $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
  7046. if test "$ac_cv_have_dash_pthread" = "yes"; then
  7047. _PTHREAD_LDFLAGS=
  7048. fi
  7049. ;;
  7050. *-openbsd*)
  7051. if test "$ac_cv_have_dash_pthread" = "yes"; then
  7052. _PTHREAD_LDFLAGS=-pthread
  7053. fi
  7054. ;;
  7055. *-linux*|*-gnu*|*-k*bsd*-gnu)
  7056. $as_echo "#define _REENTRANT 1" >>confdefs.h
  7057. ;;
  7058. esac
  7059. else
  7060. if test -n "$USE_USER_PTHREADS"; then
  7061. USE_PTHREADS=
  7062. USE_NSPR_THREADS=
  7063. else
  7064. _PTHREAD_LDFLAGS=
  7065. fi
  7066. fi
  7067. case "$target" in
  7068. *-aix*)
  7069. if test -n "$USE_NSPR_THREADS"; then
  7070. $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h
  7071. fi
  7072. case "$target_os" in
  7073. aix4.1*)
  7074. if test -z "$USE_PTHREADS"; then
  7075. $as_echo "#define AIX_RENAME_SELECT 1" >>confdefs.h
  7076. fi
  7077. ;;
  7078. aix4.2*)
  7079. if test -z "$USE_NSPR_THREADS"; then
  7080. $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h
  7081. fi
  7082. ;;
  7083. aix4.3*)
  7084. if test -z "$USE_NSPR_THREADS"; then
  7085. $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h
  7086. fi
  7087. if test -n "$USE_PTHREADS"; then
  7088. $as_echo "#define _PR_HAVE_THREADSAFE_GETHOST 1" >>confdefs.h
  7089. fi
  7090. ;;
  7091. *)
  7092. if test -z "$USE_NSPR_THREADS"; then
  7093. $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h
  7094. fi
  7095. if test -n "$USE_PTHREADS"; then
  7096. $as_echo "#define _PR_HAVE_THREADSAFE_GETHOST 1" >>confdefs.h
  7097. fi
  7098. ;;
  7099. esac
  7100. ;;
  7101. *-bsdi*)
  7102. if test -n "$USE_PTHREADS"; then
  7103. $as_echo "#define _PR_NEED_PTHREAD_INIT 1" >>confdefs.h
  7104. fi
  7105. ;;
  7106. *-freebsd*)
  7107. if test -n "$USE_NSPR_THREADS"; then
  7108. $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h
  7109. fi
  7110. ;;
  7111. *-hpux*)
  7112. if test -n "$USE_NSPR_THREADS"; then
  7113. $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h
  7114. fi
  7115. if test "$USE_PTHREADS"; then
  7116. cat >>confdefs.h <<_ACEOF
  7117. #define _POSIX_C_SOURCE 199506L
  7118. _ACEOF
  7119. $as_echo "#define _PR_HAVE_THREADSAFE_GETHOST 1" >>confdefs.h
  7120. fi
  7121. if test "$USE_USER_PTHREADS"; then
  7122. cat >>confdefs.h <<_ACEOF
  7123. #define _POSIX_C_SOURCE 199506L
  7124. _ACEOF
  7125. fi
  7126. ;;
  7127. *-linux*|*-gnu*|*-k*bsd*-gnu)
  7128. if test -n "$USE_NSPR_THREADS"; then
  7129. $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h
  7130. fi
  7131. ;;
  7132. *-mingw*|*-msys*|*-cygwin*|*-mks*|*-os2*)
  7133. USE_PTHREADS=
  7134. _PTHREAD_LDFLAGS=
  7135. USE_USER_PTHREADS=
  7136. ;;
  7137. *-netbsd*|*-openbsd*)
  7138. if test -n "$USE_NSPR_THREADS"; then
  7139. $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h
  7140. fi
  7141. ;;
  7142. *-solaris*)
  7143. if test -n "$USE_NSPR_THREADS"; then
  7144. $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h
  7145. fi
  7146. if test -n "$USE_PTHREADS"; then
  7147. $as_echo "#define _REENTRANT 1" >>confdefs.h
  7148. $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h
  7149. if test "$OS_TEST" = "i86pc"; then
  7150. if test -n "$USE_64"; then
  7151. PR_MD_ASFILES=os_SunOS_x86_64.s
  7152. else
  7153. PR_MD_ASFILES=os_SunOS_x86.s
  7154. fi
  7155. else
  7156. if test -n "$USE_64"; then
  7157. PR_MD_ASFILES=os_SunOS_sparcv9.s
  7158. fi
  7159. fi
  7160. fi
  7161. ;;
  7162. *-nto*)
  7163. if test -n "$USE_PTHREADS"; then
  7164. $as_echo "#define _PR_HAVE_GETHOST_R 1" >>confdefs.h
  7165. $as_echo "#define _PR_HAVE_GETHOST_R_POINTER 1" >>confdefs.h
  7166. fi
  7167. ;;
  7168. esac
  7169. OS_LIBS="$_PTHREAD_LDFLAGS $OS_LIBS"
  7170. if test -n "$_SAVE_OPTIMIZE_FLAGS"; then
  7171. _OPTIMIZE_FLAGS="$_SAVE_OPTIMIZE_FLAGS"
  7172. fi
  7173. if test -n "$_SAVE_DEBUG_FLAGS"; then
  7174. _DEBUG_FLAGS="$_SAVE_DEBUG_FLAGS"
  7175. fi
  7176. if test -n "$MOZ_OPTIMIZE"; then
  7177. CFLAGS="$CFLAGS $_OPTIMIZE_FLAGS"
  7178. CXXFLAGS="$CXXFLAGS $_OPTIMIZE_FLAGS"
  7179. fi
  7180. if test -n "$MOZ_DEBUG_SYMBOLS"; then
  7181. CFLAGS="$CFLAGS $_DEBUG_FLAGS"
  7182. CXXFLAGS="$CXXFLAGS $_DEBUG_FLAGS"
  7183. fi
  7184. if test -n "$MOZ_OPTIMIZE"; then
  7185. OBJDIR_TAG=_OPT
  7186. else
  7187. OBJDIR_TAG=_DBG
  7188. fi
  7189. if test -n "$USE_64"; then
  7190. COMPILER_TAG=_64
  7191. fi
  7192. RELEASE_OBJDIR_NAME="${OS_CONFIG}${CPU_ARCH_TAG}${COMPILER_TAG}${IMPL_STRATEGY}${OBJDIR_TAG}.${OBJDIR_SUFFIX}"
  7193. case "$target_os" in
  7194. cygwin*|mks*)
  7195. CC="\$(CYGWIN_WRAPPER) $CC"
  7196. CXX="\$(CYGWIN_WRAPPER) $CXX"
  7197. RC="\$(CYGWIN_WRAPPER) $RC"
  7198. ;;
  7199. esac
  7200. # Check whether --enable-wrap-malloc was given.
  7201. if test "${enable_wrap_malloc+set}" = set; then :
  7202. enableval=$enable_wrap_malloc; if test "$enableval" = "yes"; then
  7203. _WRAP_MALLOC=1
  7204. fi
  7205. fi
  7206. if test -n "$_WRAP_MALLOC"; then
  7207. if test -n "$GNU_CC"; then
  7208. WRAP_LDFLAGS="${WRAP_LDFLAGS} -Wl,--wrap=malloc,--wrap=calloc,--wrap=valloc,--wrap=free,--wrap=realloc,--wrap=memalign"
  7209. WRAP_LDFLAGS="${WRAP_LDFLAGS} -Wl,--wrap=__builtin_new,--wrap=__builtin_vec_new,--wrap=__builtin_delete,--wrap=__builtin_vec_delete"
  7210. WRAP_LDFLAGS="${WRAP_LDFLAGS} -Wl,--wrap=strdup,--wrap=strndup"
  7211. WRAP_LDFLAGS="${WRAP_LDFLAGS} -Wl,--wrap=posix_memalign,--wrap=malloc_usable_size"
  7212. else
  7213. as_fn_error $? "--enable-wrap-malloc is not supported for non-GNU toolchains" "$LINENO" 5
  7214. fi
  7215. fi
  7216. # Check whether --with-wrap-malloc was given.
  7217. if test "${with_wrap_malloc+set}" = set; then :
  7218. withval=$with_wrap_malloc; WRAP_LDFLAGS="${WRAP_LDFLAGS} $withval"
  7219. fi
  7220. MAKEFILES="
  7221. Makefile
  7222. config/Makefile
  7223. config/autoconf.mk
  7224. config/nsprincl.mk
  7225. config/nsprincl.sh
  7226. config/nspr-config
  7227. config/nspr.pc
  7228. lib/Makefile
  7229. lib/ds/Makefile
  7230. lib/libc/Makefile
  7231. lib/libc/include/Makefile
  7232. lib/libc/src/Makefile
  7233. lib/tests/Makefile
  7234. pkg/Makefile
  7235. pr/Makefile
  7236. pr/include/Makefile
  7237. pr/include/md/Makefile
  7238. pr/include/obsolete/Makefile
  7239. pr/include/private/Makefile
  7240. pr/src/Makefile
  7241. pr/src/io/Makefile
  7242. pr/src/linking/Makefile
  7243. pr/src/malloc/Makefile
  7244. pr/src/md/Makefile
  7245. pr/src/md/${PR_MD_ARCH_DIR}/Makefile
  7246. pr/src/memory/Makefile
  7247. pr/src/misc/Makefile
  7248. pr/src/threads/Makefile
  7249. pr/tests/Makefile
  7250. pr/tests/dll/Makefile
  7251. "
  7252. if test "$OS_TARGET" = "Linux"; then
  7253. MAKEFILES="$MAKEFILES
  7254. pkg/linux/Makefile
  7255. "
  7256. elif test "$OS_TARGET" = "SunOS"; then
  7257. MAKEFILES="$MAKEFILES
  7258. pkg/solaris/Makefile
  7259. pkg/solaris/SUNWpr/Makefile
  7260. pkg/solaris/SUNWprd/Makefile
  7261. "
  7262. fi
  7263. if test -z "$USE_PTHREADS" && test -z "$USE_BTHREADS"; then
  7264. MAKEFILES="$MAKEFILES
  7265. pr/src/threads/combined/Makefile
  7266. "
  7267. elif test -n "$USE_PTHREADS"; then
  7268. MAKEFILES="$MAKEFILES
  7269. pr/src/pthreads/Makefile
  7270. "
  7271. elif test -n "$USE_BTHREADS"; then
  7272. MAKEFILES="$MAKEFILES
  7273. pr/src/bthreads/Makefile
  7274. "
  7275. fi
  7276. if test -n "$USE_CPLUS"; then
  7277. MAKEFILES="$MAKEFILES
  7278. pr/src/cplus/Makefile
  7279. pr/src/cplus/tests/Makefile
  7280. "
  7281. fi
  7282. echo $MAKEFILES > unallmakefiles
  7283. ac_config_files="$ac_config_files $MAKEFILES"
  7284. ac_config_commands="$ac_config_commands default"
  7285. cat >confcache <<\_ACEOF
  7286. # This file is a shell script that caches the results of configure
  7287. # tests run on this system so they can be shared between configure
  7288. # scripts and configure runs, see configure's option --config-cache.
  7289. # It is not useful on other systems. If it contains results you don't
  7290. # want to keep, you may remove or edit it.
  7291. #
  7292. # config.status only pays attention to the cache file if you give it
  7293. # the --recheck option to rerun configure.
  7294. #
  7295. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7296. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7297. # following values.
  7298. _ACEOF
  7299. # The following way of writing the cache mishandles newlines in values,
  7300. # but we know of no workaround that is simple, portable, and efficient.
  7301. # So, we kill variables containing newlines.
  7302. # Ultrix sh set writes to stderr and can't be redirected directly,
  7303. # and sets the high bit in the cache file unless we assign to the vars.
  7304. (
  7305. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7306. eval ac_val=\$$ac_var
  7307. case $ac_val in #(
  7308. *${as_nl}*)
  7309. case $ac_var in #(
  7310. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7311. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7312. esac
  7313. case $ac_var in #(
  7314. _ | IFS | as_nl) ;; #(
  7315. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7316. *) { eval $ac_var=; unset $ac_var;} ;;
  7317. esac ;;
  7318. esac
  7319. done
  7320. (set) 2>&1 |
  7321. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7322. *${as_nl}ac_space=\ *)
  7323. # `set' does not quote correctly, so add quotes: double-quote
  7324. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7325. sed -n \
  7326. "s/'/'\\\\''/g;
  7327. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7328. ;; #(
  7329. *)
  7330. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7331. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7332. ;;
  7333. esac |
  7334. sort
  7335. ) |
  7336. sed '
  7337. /^ac_cv_env_/b end
  7338. t clear
  7339. :clear
  7340. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7341. t end
  7342. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7343. :end' >>confcache
  7344. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7345. if test -w "$cache_file"; then
  7346. if test "x$cache_file" != "x/dev/null"; then
  7347. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7348. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7349. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7350. cat confcache >"$cache_file"
  7351. else
  7352. case $cache_file in #(
  7353. */* | ?:*)
  7354. mv -f confcache "$cache_file"$$ &&
  7355. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7356. *)
  7357. mv -f confcache "$cache_file" ;;
  7358. esac
  7359. fi
  7360. fi
  7361. else
  7362. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7363. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7364. fi
  7365. fi
  7366. rm -f confcache
  7367. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  7368. # Let make expand exec_prefix.
  7369. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  7370. # Transform confdefs.h into DEFS.
  7371. # Protect against shell expansion while executing Makefile rules.
  7372. # Protect against Makefile macro expansion.
  7373. #
  7374. # If the first sed substitution is executed (which looks for macros that
  7375. # take arguments), then branch to the quote section. Otherwise,
  7376. # look for a macro that doesn't take arguments.
  7377. ac_script='
  7378. :mline
  7379. /\\$/{
  7380. N
  7381. s,\\\n,,
  7382. b mline
  7383. }
  7384. t clear
  7385. :clear
  7386. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  7387. t quote
  7388. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  7389. t quote
  7390. b any
  7391. :quote
  7392. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  7393. s/\[/\\&/g
  7394. s/\]/\\&/g
  7395. s/\$/$$/g
  7396. H
  7397. :any
  7398. ${
  7399. g
  7400. s/^\n//
  7401. s/\n/ /g
  7402. p
  7403. }
  7404. '
  7405. DEFS=`sed -n "$ac_script" confdefs.h`
  7406. ac_libobjs=
  7407. ac_ltlibobjs=
  7408. U=
  7409. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  7410. # 1. Remove the extension, and $U if already installed.
  7411. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  7412. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  7413. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  7414. # will be set to the directory where LIBOBJS objects are built.
  7415. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  7416. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  7417. done
  7418. LIBOBJS=$ac_libobjs
  7419. LTLIBOBJS=$ac_ltlibobjs
  7420. : "${CONFIG_STATUS=./config.status}"
  7421. ac_write_fail=0
  7422. ac_clean_files_save=$ac_clean_files
  7423. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  7424. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  7425. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  7426. as_write_fail=0
  7427. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  7428. #! $SHELL
  7429. # Generated by $as_me.
  7430. # Run this file to recreate the current configuration.
  7431. # Compiler output produced by configure, useful for debugging
  7432. # configure, is in config.log if it exists.
  7433. debug=false
  7434. ac_cs_recheck=false
  7435. ac_cs_silent=false
  7436. SHELL=\${CONFIG_SHELL-$SHELL}
  7437. export SHELL
  7438. _ASEOF
  7439. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  7440. ## -------------------- ##
  7441. ## M4sh Initialization. ##
  7442. ## -------------------- ##
  7443. # Be more Bourne compatible
  7444. DUALCASE=1; export DUALCASE # for MKS sh
  7445. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  7446. emulate sh
  7447. NULLCMD=:
  7448. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  7449. # is contrary to our usage. Disable this feature.
  7450. alias -g '${1+"$@"}'='"$@"'
  7451. setopt NO_GLOB_SUBST
  7452. else
  7453. case `(set -o) 2>/dev/null` in #(
  7454. *posix*) :
  7455. set -o posix ;; #(
  7456. *) :
  7457. ;;
  7458. esac
  7459. fi
  7460. as_nl='
  7461. '
  7462. export as_nl
  7463. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  7464. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  7465. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  7466. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  7467. # Prefer a ksh shell builtin over an external printf program on Solaris,
  7468. # but without wasting forks for bash or zsh.
  7469. if test -z "$BASH_VERSION$ZSH_VERSION" \
  7470. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  7471. as_echo='print -r --'
  7472. as_echo_n='print -rn --'
  7473. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  7474. as_echo='printf %s\n'
  7475. as_echo_n='printf %s'
  7476. else
  7477. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  7478. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  7479. as_echo_n='/usr/ucb/echo -n'
  7480. else
  7481. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  7482. as_echo_n_body='eval
  7483. arg=$1;
  7484. case $arg in #(
  7485. *"$as_nl"*)
  7486. expr "X$arg" : "X\\(.*\\)$as_nl";
  7487. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  7488. esac;
  7489. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  7490. '
  7491. export as_echo_n_body
  7492. as_echo_n='sh -c $as_echo_n_body as_echo'
  7493. fi
  7494. export as_echo_body
  7495. as_echo='sh -c $as_echo_body as_echo'
  7496. fi
  7497. # The user is always right.
  7498. if test "${PATH_SEPARATOR+set}" != set; then
  7499. PATH_SEPARATOR=:
  7500. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  7501. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  7502. PATH_SEPARATOR=';'
  7503. }
  7504. fi
  7505. # IFS
  7506. # We need space, tab and new line, in precisely that order. Quoting is
  7507. # there to prevent editors from complaining about space-tab.
  7508. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  7509. # splitting by setting IFS to empty value.)
  7510. IFS=" "" $as_nl"
  7511. # Find who we are. Look in the path if we contain no directory separator.
  7512. as_myself=
  7513. case $0 in #((
  7514. *[\\/]* ) as_myself=$0 ;;
  7515. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7516. for as_dir in $PATH
  7517. do
  7518. IFS=$as_save_IFS
  7519. test -z "$as_dir" && as_dir=.
  7520. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  7521. done
  7522. IFS=$as_save_IFS
  7523. ;;
  7524. esac
  7525. # We did not find ourselves, most probably we were run as `sh COMMAND'
  7526. # in which case we are not to be found in the path.
  7527. if test "x$as_myself" = x; then
  7528. as_myself=$0
  7529. fi
  7530. if test ! -f "$as_myself"; then
  7531. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  7532. exit 1
  7533. fi
  7534. # Unset variables that we do not need and which cause bugs (e.g. in
  7535. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  7536. # suppresses any "Segmentation fault" message there. '((' could
  7537. # trigger a bug in pdksh 5.2.14.
  7538. for as_var in BASH_ENV ENV MAIL MAILPATH
  7539. do eval test x\${$as_var+set} = xset \
  7540. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  7541. done
  7542. PS1='$ '
  7543. PS2='> '
  7544. PS4='+ '
  7545. # NLS nuisances.
  7546. LC_ALL=C
  7547. export LC_ALL
  7548. LANGUAGE=C
  7549. export LANGUAGE
  7550. # CDPATH.
  7551. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  7552. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  7553. # ----------------------------------------
  7554. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  7555. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  7556. # script with STATUS, using 1 if that was 0.
  7557. as_fn_error ()
  7558. {
  7559. as_status=$1; test $as_status -eq 0 && as_status=1
  7560. if test "$4"; then
  7561. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  7562. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  7563. fi
  7564. $as_echo "$as_me: error: $2" >&2
  7565. as_fn_exit $as_status
  7566. } # as_fn_error
  7567. # as_fn_set_status STATUS
  7568. # -----------------------
  7569. # Set $? to STATUS, without forking.
  7570. as_fn_set_status ()
  7571. {
  7572. return $1
  7573. } # as_fn_set_status
  7574. # as_fn_exit STATUS
  7575. # -----------------
  7576. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  7577. as_fn_exit ()
  7578. {
  7579. set +e
  7580. as_fn_set_status $1
  7581. exit $1
  7582. } # as_fn_exit
  7583. # as_fn_unset VAR
  7584. # ---------------
  7585. # Portably unset VAR.
  7586. as_fn_unset ()
  7587. {
  7588. { eval $1=; unset $1;}
  7589. }
  7590. as_unset=as_fn_unset
  7591. # as_fn_append VAR VALUE
  7592. # ----------------------
  7593. # Append the text in VALUE to the end of the definition contained in VAR. Take
  7594. # advantage of any shell optimizations that allow amortized linear growth over
  7595. # repeated appends, instead of the typical quadratic growth present in naive
  7596. # implementations.
  7597. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  7598. eval 'as_fn_append ()
  7599. {
  7600. eval $1+=\$2
  7601. }'
  7602. else
  7603. as_fn_append ()
  7604. {
  7605. eval $1=\$$1\$2
  7606. }
  7607. fi # as_fn_append
  7608. # as_fn_arith ARG...
  7609. # ------------------
  7610. # Perform arithmetic evaluation on the ARGs, and store the result in the
  7611. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  7612. # must be portable across $(()) and expr.
  7613. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  7614. eval 'as_fn_arith ()
  7615. {
  7616. as_val=$(( $* ))
  7617. }'
  7618. else
  7619. as_fn_arith ()
  7620. {
  7621. as_val=`expr "$@" || test $? -eq 1`
  7622. }
  7623. fi # as_fn_arith
  7624. if expr a : '\(a\)' >/dev/null 2>&1 &&
  7625. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  7626. as_expr=expr
  7627. else
  7628. as_expr=false
  7629. fi
  7630. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  7631. as_basename=basename
  7632. else
  7633. as_basename=false
  7634. fi
  7635. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  7636. as_dirname=dirname
  7637. else
  7638. as_dirname=false
  7639. fi
  7640. as_me=`$as_basename -- "$0" ||
  7641. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  7642. X"$0" : 'X\(//\)$' \| \
  7643. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  7644. $as_echo X/"$0" |
  7645. sed '/^.*\/\([^/][^/]*\)\/*$/{
  7646. s//\1/
  7647. q
  7648. }
  7649. /^X\/\(\/\/\)$/{
  7650. s//\1/
  7651. q
  7652. }
  7653. /^X\/\(\/\).*/{
  7654. s//\1/
  7655. q
  7656. }
  7657. s/.*/./; q'`
  7658. # Avoid depending upon Character Ranges.
  7659. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  7660. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  7661. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  7662. as_cr_digits='0123456789'
  7663. as_cr_alnum=$as_cr_Letters$as_cr_digits
  7664. ECHO_C= ECHO_N= ECHO_T=
  7665. case `echo -n x` in #(((((
  7666. -n*)
  7667. case `echo 'xy\c'` in
  7668. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  7669. xy) ECHO_C='\c';;
  7670. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  7671. ECHO_T=' ';;
  7672. esac;;
  7673. *)
  7674. ECHO_N='-n';;
  7675. esac
  7676. rm -f conf$$ conf$$.exe conf$$.file
  7677. if test -d conf$$.dir; then
  7678. rm -f conf$$.dir/conf$$.file
  7679. else
  7680. rm -f conf$$.dir
  7681. mkdir conf$$.dir 2>/dev/null
  7682. fi
  7683. if (echo >conf$$.file) 2>/dev/null; then
  7684. if ln -s conf$$.file conf$$ 2>/dev/null; then
  7685. as_ln_s='ln -s'
  7686. # ... but there are two gotchas:
  7687. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  7688. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  7689. # In both cases, we have to default to `cp -pR'.
  7690. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  7691. as_ln_s='cp -pR'
  7692. elif ln conf$$.file conf$$ 2>/dev/null; then
  7693. as_ln_s=ln
  7694. else
  7695. as_ln_s='cp -pR'
  7696. fi
  7697. else
  7698. as_ln_s='cp -pR'
  7699. fi
  7700. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  7701. rmdir conf$$.dir 2>/dev/null
  7702. # as_fn_mkdir_p
  7703. # -------------
  7704. # Create "$as_dir" as a directory, including parents if necessary.
  7705. as_fn_mkdir_p ()
  7706. {
  7707. case $as_dir in #(
  7708. -*) as_dir=./$as_dir;;
  7709. esac
  7710. test -d "$as_dir" || eval $as_mkdir_p || {
  7711. as_dirs=
  7712. while :; do
  7713. case $as_dir in #(
  7714. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  7715. *) as_qdir=$as_dir;;
  7716. esac
  7717. as_dirs="'$as_qdir' $as_dirs"
  7718. as_dir=`$as_dirname -- "$as_dir" ||
  7719. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7720. X"$as_dir" : 'X\(//\)[^/]' \| \
  7721. X"$as_dir" : 'X\(//\)$' \| \
  7722. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  7723. $as_echo X"$as_dir" |
  7724. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7725. s//\1/
  7726. q
  7727. }
  7728. /^X\(\/\/\)[^/].*/{
  7729. s//\1/
  7730. q
  7731. }
  7732. /^X\(\/\/\)$/{
  7733. s//\1/
  7734. q
  7735. }
  7736. /^X\(\/\).*/{
  7737. s//\1/
  7738. q
  7739. }
  7740. s/.*/./; q'`
  7741. test -d "$as_dir" && break
  7742. done
  7743. test -z "$as_dirs" || eval "mkdir $as_dirs"
  7744. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  7745. } # as_fn_mkdir_p
  7746. if mkdir -p . 2>/dev/null; then
  7747. as_mkdir_p='mkdir -p "$as_dir"'
  7748. else
  7749. test -d ./-p && rmdir ./-p
  7750. as_mkdir_p=false
  7751. fi
  7752. # as_fn_executable_p FILE
  7753. # -----------------------
  7754. # Test if FILE is an executable regular file.
  7755. as_fn_executable_p ()
  7756. {
  7757. test -f "$1" && test -x "$1"
  7758. } # as_fn_executable_p
  7759. as_test_x='test -x'
  7760. as_executable_p=as_fn_executable_p
  7761. # Sed expression to map a string onto a valid CPP name.
  7762. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  7763. # Sed expression to map a string onto a valid variable name.
  7764. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  7765. exec 6>&1
  7766. ## ----------------------------------- ##
  7767. ## Main body of $CONFIG_STATUS script. ##
  7768. ## ----------------------------------- ##
  7769. _ASEOF
  7770. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  7771. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7772. # Save the log message, to keep $0 and so on meaningful, and to
  7773. # report actual input values of CONFIG_FILES etc. instead of their
  7774. # values after options handling.
  7775. ac_log="
  7776. This file was extended by $as_me, which was
  7777. generated by GNU Autoconf 2.69. Invocation command line was
  7778. CONFIG_FILES = $CONFIG_FILES
  7779. CONFIG_HEADERS = $CONFIG_HEADERS
  7780. CONFIG_LINKS = $CONFIG_LINKS
  7781. CONFIG_COMMANDS = $CONFIG_COMMANDS
  7782. $ $0 $@
  7783. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  7784. "
  7785. _ACEOF
  7786. case $ac_config_files in *"
  7787. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  7788. esac
  7789. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7790. # Files that config.status was made for.
  7791. config_files="$ac_config_files"
  7792. config_commands="$ac_config_commands"
  7793. _ACEOF
  7794. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7795. ac_cs_usage="\
  7796. \`$as_me' instantiates files and other configuration actions
  7797. from templates according to the current configuration. Unless the files
  7798. and actions are specified as TAGs, all are instantiated by default.
  7799. Usage: $0 [OPTION]... [TAG]...
  7800. -h, --help print this help, then exit
  7801. -V, --version print version number and configuration settings, then exit
  7802. --config print configuration, then exit
  7803. -q, --quiet, --silent
  7804. do not print progress messages
  7805. -d, --debug don't remove temporary files
  7806. --recheck update $as_me by reconfiguring in the same conditions
  7807. --file=FILE[:TEMPLATE]
  7808. instantiate the configuration file FILE
  7809. Configuration files:
  7810. $config_files
  7811. Configuration commands:
  7812. $config_commands
  7813. Report bugs to the package provider."
  7814. _ACEOF
  7815. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7816. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  7817. ac_cs_version="\\
  7818. config.status
  7819. configured by $0, generated by GNU Autoconf 2.69,
  7820. with options \\"\$ac_cs_config\\"
  7821. Copyright (C) 2012 Free Software Foundation, Inc.
  7822. This config.status script is free software; the Free Software Foundation
  7823. gives unlimited permission to copy, distribute and modify it."
  7824. ac_pwd='$ac_pwd'
  7825. srcdir='$srcdir'
  7826. test -n "\$AWK" || AWK=awk
  7827. _ACEOF
  7828. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7829. # The default lists apply if the user does not specify any file.
  7830. ac_need_defaults=:
  7831. while test $# != 0
  7832. do
  7833. case $1 in
  7834. --*=?*)
  7835. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  7836. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  7837. ac_shift=:
  7838. ;;
  7839. --*=)
  7840. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  7841. ac_optarg=
  7842. ac_shift=:
  7843. ;;
  7844. *)
  7845. ac_option=$1
  7846. ac_optarg=$2
  7847. ac_shift=shift
  7848. ;;
  7849. esac
  7850. case $ac_option in
  7851. # Handling of the options.
  7852. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  7853. ac_cs_recheck=: ;;
  7854. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  7855. $as_echo "$ac_cs_version"; exit ;;
  7856. --config | --confi | --conf | --con | --co | --c )
  7857. $as_echo "$ac_cs_config"; exit ;;
  7858. --debug | --debu | --deb | --de | --d | -d )
  7859. debug=: ;;
  7860. --file | --fil | --fi | --f )
  7861. $ac_shift
  7862. case $ac_optarg in
  7863. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  7864. '') as_fn_error $? "missing file argument" ;;
  7865. esac
  7866. as_fn_append CONFIG_FILES " '$ac_optarg'"
  7867. ac_need_defaults=false;;
  7868. --he | --h | --help | --hel | -h )
  7869. $as_echo "$ac_cs_usage"; exit ;;
  7870. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  7871. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  7872. ac_cs_silent=: ;;
  7873. # This is an error.
  7874. -*) as_fn_error $? "unrecognized option: \`$1'
  7875. Try \`$0 --help' for more information." ;;
  7876. *) as_fn_append ac_config_targets " $1"
  7877. ac_need_defaults=false ;;
  7878. esac
  7879. shift
  7880. done
  7881. ac_configure_extra_args=
  7882. if $ac_cs_silent; then
  7883. exec 6>/dev/null
  7884. ac_configure_extra_args="$ac_configure_extra_args --silent"
  7885. fi
  7886. _ACEOF
  7887. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7888. if \$ac_cs_recheck; then
  7889. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  7890. shift
  7891. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  7892. CONFIG_SHELL='$SHELL'
  7893. export CONFIG_SHELL
  7894. exec "\$@"
  7895. fi
  7896. _ACEOF
  7897. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7898. exec 5>>config.log
  7899. {
  7900. echo
  7901. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  7902. ## Running $as_me. ##
  7903. _ASBOX
  7904. $as_echo "$ac_log"
  7905. } >&5
  7906. _ACEOF
  7907. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7908. _ACEOF
  7909. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7910. # Handling of arguments.
  7911. for ac_config_target in $ac_config_targets
  7912. do
  7913. case $ac_config_target in
  7914. "$MAKEFILES") CONFIG_FILES="$CONFIG_FILES $MAKEFILES" ;;
  7915. "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  7916. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  7917. esac
  7918. done
  7919. # If the user did not use the arguments to specify the items to instantiate,
  7920. # then the envvar interface is used. Set only those that are not.
  7921. # We use the long form for the default assignment because of an extremely
  7922. # bizarre bug on SunOS 4.1.3.
  7923. if $ac_need_defaults; then
  7924. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  7925. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  7926. fi
  7927. # Have a temporary directory for convenience. Make it in the build tree
  7928. # simply because there is no reason against having it here, and in addition,
  7929. # creating and moving files from /tmp can sometimes cause problems.
  7930. # Hook for its removal unless debugging.
  7931. # Note that there is a small window in which the directory will not be cleaned:
  7932. # after its creation but before its name has been assigned to `$tmp'.
  7933. $debug ||
  7934. {
  7935. tmp= ac_tmp=
  7936. trap 'exit_status=$?
  7937. : "${ac_tmp:=$tmp}"
  7938. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  7939. ' 0
  7940. trap 'as_fn_exit 1' 1 2 13 15
  7941. }
  7942. # Create a (secure) tmp directory for tmp files.
  7943. {
  7944. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  7945. test -d "$tmp"
  7946. } ||
  7947. {
  7948. tmp=./conf$$-$RANDOM
  7949. (umask 077 && mkdir "$tmp")
  7950. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  7951. ac_tmp=$tmp
  7952. # Set up the scripts for CONFIG_FILES section.
  7953. # No need to generate them if there are no CONFIG_FILES.
  7954. # This happens for instance with `./config.status config.h'.
  7955. if test -n "$CONFIG_FILES"; then
  7956. ac_cr=`echo X | tr X '\015'`
  7957. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  7958. # But we know of no other shell where ac_cr would be empty at this
  7959. # point, so we can use a bashism as a fallback.
  7960. if test "x$ac_cr" = x; then
  7961. eval ac_cr=\$\'\\r\'
  7962. fi
  7963. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  7964. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  7965. ac_cs_awk_cr='\\r'
  7966. else
  7967. ac_cs_awk_cr=$ac_cr
  7968. fi
  7969. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  7970. _ACEOF
  7971. {
  7972. echo "cat >conf$$subs.awk <<_ACEOF" &&
  7973. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  7974. echo "_ACEOF"
  7975. } >conf$$subs.sh ||
  7976. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7977. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  7978. ac_delim='%!_!# '
  7979. for ac_last_try in false false false false false :; do
  7980. . ./conf$$subs.sh ||
  7981. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7982. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  7983. if test $ac_delim_n = $ac_delim_num; then
  7984. break
  7985. elif $ac_last_try; then
  7986. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7987. else
  7988. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7989. fi
  7990. done
  7991. rm -f conf$$subs.sh
  7992. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7993. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  7994. _ACEOF
  7995. sed -n '
  7996. h
  7997. s/^/S["/; s/!.*/"]=/
  7998. p
  7999. g
  8000. s/^[^!]*!//
  8001. :repl
  8002. t repl
  8003. s/'"$ac_delim"'$//
  8004. t delim
  8005. :nl
  8006. h
  8007. s/\(.\{148\}\)..*/\1/
  8008. t more1
  8009. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  8010. p
  8011. n
  8012. b repl
  8013. :more1
  8014. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8015. p
  8016. g
  8017. s/.\{148\}//
  8018. t nl
  8019. :delim
  8020. h
  8021. s/\(.\{148\}\)..*/\1/
  8022. t more2
  8023. s/["\\]/\\&/g; s/^/"/; s/$/"/
  8024. p
  8025. b
  8026. :more2
  8027. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8028. p
  8029. g
  8030. s/.\{148\}//
  8031. t delim
  8032. ' <conf$$subs.awk | sed '
  8033. /^[^""]/{
  8034. N
  8035. s/\n//
  8036. }
  8037. ' >>$CONFIG_STATUS || ac_write_fail=1
  8038. rm -f conf$$subs.awk
  8039. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8040. _ACAWK
  8041. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  8042. for (key in S) S_is_set[key] = 1
  8043. FS = ""
  8044. }
  8045. {
  8046. line = $ 0
  8047. nfields = split(line, field, "@")
  8048. substed = 0
  8049. len = length(field[1])
  8050. for (i = 2; i < nfields; i++) {
  8051. key = field[i]
  8052. keylen = length(key)
  8053. if (S_is_set[key]) {
  8054. value = S[key]
  8055. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  8056. len += length(value) + length(field[++i])
  8057. substed = 1
  8058. } else
  8059. len += 1 + keylen
  8060. }
  8061. print line
  8062. }
  8063. _ACAWK
  8064. _ACEOF
  8065. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8066. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  8067. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  8068. else
  8069. cat
  8070. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  8071. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  8072. _ACEOF
  8073. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  8074. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  8075. # trailing colons and then remove the whole line if VPATH becomes empty
  8076. # (actually we leave an empty line to preserve line numbers).
  8077. if test "x$srcdir" = x.; then
  8078. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  8079. h
  8080. s///
  8081. s/^/:/
  8082. s/[ ]*$/:/
  8083. s/:\$(srcdir):/:/g
  8084. s/:\${srcdir}:/:/g
  8085. s/:@srcdir@:/:/g
  8086. s/^:*//
  8087. s/:*$//
  8088. x
  8089. s/\(=[ ]*\).*/\1/
  8090. G
  8091. s/\n//
  8092. s/^[^=]*=[ ]*$//
  8093. }'
  8094. fi
  8095. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8096. fi # test -n "$CONFIG_FILES"
  8097. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  8098. shift
  8099. for ac_tag
  8100. do
  8101. case $ac_tag in
  8102. :[FHLC]) ac_mode=$ac_tag; continue;;
  8103. esac
  8104. case $ac_mode$ac_tag in
  8105. :[FHL]*:*);;
  8106. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  8107. :[FH]-) ac_tag=-:-;;
  8108. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  8109. esac
  8110. ac_save_IFS=$IFS
  8111. IFS=:
  8112. set x $ac_tag
  8113. IFS=$ac_save_IFS
  8114. shift
  8115. ac_file=$1
  8116. shift
  8117. case $ac_mode in
  8118. :L) ac_source=$1;;
  8119. :[FH])
  8120. ac_file_inputs=
  8121. for ac_f
  8122. do
  8123. case $ac_f in
  8124. -) ac_f="$ac_tmp/stdin";;
  8125. *) # Look for the file first in the build tree, then in the source tree
  8126. # (if the path is not absolute). The absolute path cannot be DOS-style,
  8127. # because $ac_f cannot contain `:'.
  8128. test -f "$ac_f" ||
  8129. case $ac_f in
  8130. [\\/$]*) false;;
  8131. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  8132. esac ||
  8133. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  8134. esac
  8135. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  8136. as_fn_append ac_file_inputs " '$ac_f'"
  8137. done
  8138. # Let's still pretend it is `configure' which instantiates (i.e., don't
  8139. # use $as_me), people would be surprised to read:
  8140. # /* config.h. Generated by config.status. */
  8141. configure_input='Generated from '`
  8142. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  8143. `' by configure.'
  8144. if test x"$ac_file" != x-; then
  8145. configure_input="$ac_file. $configure_input"
  8146. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  8147. $as_echo "$as_me: creating $ac_file" >&6;}
  8148. fi
  8149. # Neutralize special characters interpreted by sed in replacement strings.
  8150. case $configure_input in #(
  8151. *\&* | *\|* | *\\* )
  8152. ac_sed_conf_input=`$as_echo "$configure_input" |
  8153. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  8154. *) ac_sed_conf_input=$configure_input;;
  8155. esac
  8156. case $ac_tag in
  8157. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  8158. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  8159. esac
  8160. ;;
  8161. esac
  8162. ac_dir=`$as_dirname -- "$ac_file" ||
  8163. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8164. X"$ac_file" : 'X\(//\)[^/]' \| \
  8165. X"$ac_file" : 'X\(//\)$' \| \
  8166. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  8167. $as_echo X"$ac_file" |
  8168. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8169. s//\1/
  8170. q
  8171. }
  8172. /^X\(\/\/\)[^/].*/{
  8173. s//\1/
  8174. q
  8175. }
  8176. /^X\(\/\/\)$/{
  8177. s//\1/
  8178. q
  8179. }
  8180. /^X\(\/\).*/{
  8181. s//\1/
  8182. q
  8183. }
  8184. s/.*/./; q'`
  8185. as_dir="$ac_dir"; as_fn_mkdir_p
  8186. ac_builddir=.
  8187. case "$ac_dir" in
  8188. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8189. *)
  8190. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  8191. # A ".." for each directory in $ac_dir_suffix.
  8192. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  8193. case $ac_top_builddir_sub in
  8194. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8195. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  8196. esac ;;
  8197. esac
  8198. ac_abs_top_builddir=$ac_pwd
  8199. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  8200. # for backward compatibility:
  8201. ac_top_builddir=$ac_top_build_prefix
  8202. case $srcdir in
  8203. .) # We are building in place.
  8204. ac_srcdir=.
  8205. ac_top_srcdir=$ac_top_builddir_sub
  8206. ac_abs_top_srcdir=$ac_pwd ;;
  8207. [\\/]* | ?:[\\/]* ) # Absolute name.
  8208. ac_srcdir=$srcdir$ac_dir_suffix;
  8209. ac_top_srcdir=$srcdir
  8210. ac_abs_top_srcdir=$srcdir ;;
  8211. *) # Relative name.
  8212. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  8213. ac_top_srcdir=$ac_top_build_prefix$srcdir
  8214. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  8215. esac
  8216. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  8217. case $ac_mode in
  8218. :F)
  8219. #
  8220. # CONFIG_FILE
  8221. #
  8222. _ACEOF
  8223. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8224. # If the template does not know about datarootdir, expand it.
  8225. # FIXME: This hack should be removed a few years after 2.60.
  8226. ac_datarootdir_hack=; ac_datarootdir_seen=
  8227. ac_sed_dataroot='
  8228. /datarootdir/ {
  8229. p
  8230. q
  8231. }
  8232. /@datadir@/p
  8233. /@docdir@/p
  8234. /@infodir@/p
  8235. /@localedir@/p
  8236. /@mandir@/p'
  8237. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  8238. *datarootdir*) ac_datarootdir_seen=yes;;
  8239. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  8240. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  8241. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  8242. _ACEOF
  8243. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8244. ac_datarootdir_hack='
  8245. s&@datadir@&$datadir&g
  8246. s&@docdir@&$docdir&g
  8247. s&@infodir@&$infodir&g
  8248. s&@localedir@&$localedir&g
  8249. s&@mandir@&$mandir&g
  8250. s&\\\${datarootdir}&$datarootdir&g' ;;
  8251. esac
  8252. _ACEOF
  8253. # Neutralize VPATH when `$srcdir' = `.'.
  8254. # Shell code in configure.ac might set extrasub.
  8255. # FIXME: do we really want to maintain this feature?
  8256. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8257. ac_sed_extra="$ac_vpsub
  8258. $extrasub
  8259. _ACEOF
  8260. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8261. :t
  8262. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  8263. s|@configure_input@|$ac_sed_conf_input|;t t
  8264. s&@top_builddir@&$ac_top_builddir_sub&;t t
  8265. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  8266. s&@srcdir@&$ac_srcdir&;t t
  8267. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  8268. s&@top_srcdir@&$ac_top_srcdir&;t t
  8269. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  8270. s&@builddir@&$ac_builddir&;t t
  8271. s&@abs_builddir@&$ac_abs_builddir&;t t
  8272. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  8273. $ac_datarootdir_hack
  8274. "
  8275. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  8276. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8277. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  8278. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  8279. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  8280. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  8281. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8282. which seems to be undefined. Please make sure it is defined" >&5
  8283. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8284. which seems to be undefined. Please make sure it is defined" >&2;}
  8285. rm -f "$ac_tmp/stdin"
  8286. case $ac_file in
  8287. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  8288. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  8289. esac \
  8290. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8291. ;;
  8292. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  8293. $as_echo "$as_me: executing $ac_file commands" >&6;}
  8294. ;;
  8295. esac
  8296. case $ac_file$ac_mode in
  8297. "default":C) chmod +x config/nspr-config ;;
  8298. esac
  8299. done # for ac_tag
  8300. as_fn_exit 0
  8301. _ACEOF
  8302. ac_clean_files=$ac_clean_files_save
  8303. test $ac_write_fail = 0 ||
  8304. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  8305. # configure is writing to config.log, and then calls config.status.
  8306. # config.status does its own redirection, appending to config.log.
  8307. # Unfortunately, on DOS this fails, as config.log is still kept open
  8308. # by configure, so config.status won't be able to write to it; its
  8309. # output is simply discarded. So we exec the FD to /dev/null,
  8310. # effectively closing config.log, so it can be properly (re)opened and
  8311. # appended to by config.status. When coming back to configure, we
  8312. # need to make the FD available again.
  8313. if test "$no_create" != yes; then
  8314. ac_cs_success=:
  8315. ac_config_status_args=
  8316. test "$silent" = yes &&
  8317. ac_config_status_args="$ac_config_status_args --quiet"
  8318. exec 5>/dev/null
  8319. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  8320. exec 5>>config.log
  8321. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  8322. # would make configure fail if this is the last instruction.
  8323. $ac_cs_success || as_fn_exit 1
  8324. fi
  8325. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  8326. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  8327. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  8328. fi