configure 437 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for libatomic_ops 7.6.10.
  4. #
  5. # Report bugs to <https://github.com/ivmai/libatomic_ops/issues>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  188. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. PATH=/empty FPATH=/empty; export PATH FPATH
  192. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  193. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  194. test \$(( 1 + 1 )) = 2 || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell [email protected] and
  259. $0: https://github.com/ivmai/libatomic_ops/issues about
  260. $0: your system, including any error possibly output before
  261. $0: this message. Then install a modern shell, or manually
  262. $0: run the script under such a shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='libatomic_ops'
  542. PACKAGE_TARNAME='libatomic_ops'
  543. PACKAGE_VERSION='7.6.10'
  544. PACKAGE_STRING='libatomic_ops 7.6.10'
  545. PACKAGE_BUGREPORT='https://github.com/ivmai/libatomic_ops/issues'
  546. PACKAGE_URL=''
  547. ac_unique_file="src/atomic_ops.c"
  548. # Factoring default headers for most tests.
  549. ac_includes_default="\
  550. #include <stdio.h>
  551. #ifdef HAVE_SYS_TYPES_H
  552. # include <sys/types.h>
  553. #endif
  554. #ifdef HAVE_SYS_STAT_H
  555. # include <sys/stat.h>
  556. #endif
  557. #ifdef STDC_HEADERS
  558. # include <stdlib.h>
  559. # include <stddef.h>
  560. #else
  561. # ifdef HAVE_STDLIB_H
  562. # include <stdlib.h>
  563. # endif
  564. #endif
  565. #ifdef HAVE_STRING_H
  566. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  567. # include <memory.h>
  568. # endif
  569. # include <string.h>
  570. #endif
  571. #ifdef HAVE_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_header_list=
  584. ac_subst_vars='am__EXEEXT_FALSE
  585. am__EXEEXT_TRUE
  586. LTLIBOBJS
  587. LIBOBJS
  588. NEED_ASM_FALSE
  589. NEED_ASM_TRUE
  590. HAVE_PTHREAD_H_FALSE
  591. HAVE_PTHREAD_H_TRUE
  592. ENABLE_SHARED_FALSE
  593. ENABLE_SHARED_TRUE
  594. THREADDLLIBS
  595. CFLAGS_EXTRA
  596. PICFLAG
  597. ENABLE_DOCS_FALSE
  598. ENABLE_DOCS_TRUE
  599. CPP
  600. LT_SYS_LIBRARY_PATH
  601. OTOOL64
  602. OTOOL
  603. LIPO
  604. NMEDIT
  605. DSYMUTIL
  606. MANIFEST_TOOL
  607. RANLIB
  608. ac_ct_AR
  609. AR
  610. DLLTOOL
  611. OBJDUMP
  612. LN_S
  613. NM
  614. ac_ct_DUMPBIN
  615. DUMPBIN
  616. LD
  617. FGREP
  618. EGREP
  619. GREP
  620. SED
  621. LIBTOOL
  622. am__fastdepCCAS_FALSE
  623. am__fastdepCCAS_TRUE
  624. CCASDEPMODE
  625. CCASFLAGS
  626. CCAS
  627. am__fastdepCC_FALSE
  628. am__fastdepCC_TRUE
  629. CCDEPMODE
  630. am__nodep
  631. AMDEPBACKSLASH
  632. AMDEP_FALSE
  633. AMDEP_TRUE
  634. am__quote
  635. am__include
  636. DEPDIR
  637. OBJEXT
  638. EXEEXT
  639. ac_ct_CC
  640. CPPFLAGS
  641. LDFLAGS
  642. CFLAGS
  643. CC
  644. MAINT
  645. MAINTAINER_MODE_FALSE
  646. MAINTAINER_MODE_TRUE
  647. AM_BACKSLASH
  648. AM_DEFAULT_VERBOSITY
  649. AM_DEFAULT_V
  650. AM_V
  651. am__untar
  652. am__tar
  653. AMTAR
  654. am__leading_dot
  655. SET_MAKE
  656. AWK
  657. mkdir_p
  658. MKDIR_P
  659. INSTALL_STRIP_PROGRAM
  660. STRIP
  661. install_sh
  662. MAKEINFO
  663. AUTOHEADER
  664. AUTOMAKE
  665. AUTOCONF
  666. ACLOCAL
  667. VERSION
  668. PACKAGE
  669. CYGPATH_W
  670. am__isrc
  671. INSTALL_DATA
  672. INSTALL_SCRIPT
  673. INSTALL_PROGRAM
  674. target_os
  675. target_vendor
  676. target_cpu
  677. target
  678. host_os
  679. host_vendor
  680. host_cpu
  681. host
  682. build_os
  683. build_vendor
  684. build_cpu
  685. build
  686. target_alias
  687. host_alias
  688. build_alias
  689. LIBS
  690. ECHO_T
  691. ECHO_N
  692. ECHO_C
  693. DEFS
  694. mandir
  695. localedir
  696. libdir
  697. psdir
  698. pdfdir
  699. dvidir
  700. htmldir
  701. infodir
  702. docdir
  703. oldincludedir
  704. includedir
  705. localstatedir
  706. sharedstatedir
  707. sysconfdir
  708. datadir
  709. datarootdir
  710. libexecdir
  711. sbindir
  712. bindir
  713. program_transform_name
  714. prefix
  715. exec_prefix
  716. PACKAGE_URL
  717. PACKAGE_BUGREPORT
  718. PACKAGE_STRING
  719. PACKAGE_VERSION
  720. PACKAGE_TARNAME
  721. PACKAGE_NAME
  722. PATH_SEPARATOR
  723. SHELL'
  724. ac_subst_files=''
  725. ac_user_opts='
  726. enable_option_checking
  727. enable_silent_rules
  728. enable_maintainer_mode
  729. enable_dependency_tracking
  730. enable_shared
  731. enable_static
  732. with_pic
  733. enable_fast_install
  734. with_aix_soname
  735. with_gnu_ld
  736. with_sysroot
  737. enable_libtool_lock
  738. enable_werror
  739. enable_assertions
  740. enable_atomic_intrinsics
  741. enable_gcov
  742. enable_docs
  743. '
  744. ac_precious_vars='build_alias
  745. host_alias
  746. target_alias
  747. CC
  748. CFLAGS
  749. LDFLAGS
  750. LIBS
  751. CPPFLAGS
  752. CCAS
  753. CCASFLAGS
  754. LT_SYS_LIBRARY_PATH
  755. CPP'
  756. # Initialize some variables set by options.
  757. ac_init_help=
  758. ac_init_version=false
  759. ac_unrecognized_opts=
  760. ac_unrecognized_sep=
  761. # The variables have the same names as the options, with
  762. # dashes changed to underlines.
  763. cache_file=/dev/null
  764. exec_prefix=NONE
  765. no_create=
  766. no_recursion=
  767. prefix=NONE
  768. program_prefix=NONE
  769. program_suffix=NONE
  770. program_transform_name=s,x,x,
  771. silent=
  772. site=
  773. srcdir=
  774. verbose=
  775. x_includes=NONE
  776. x_libraries=NONE
  777. # Installation directory options.
  778. # These are left unexpanded so users can "make install exec_prefix=/foo"
  779. # and all the variables that are supposed to be based on exec_prefix
  780. # by default will actually change.
  781. # Use braces instead of parens because sh, perl, etc. also accept them.
  782. # (The list follows the same order as the GNU Coding Standards.)
  783. bindir='${exec_prefix}/bin'
  784. sbindir='${exec_prefix}/sbin'
  785. libexecdir='${exec_prefix}/libexec'
  786. datarootdir='${prefix}/share'
  787. datadir='${datarootdir}'
  788. sysconfdir='${prefix}/etc'
  789. sharedstatedir='${prefix}/com'
  790. localstatedir='${prefix}/var'
  791. includedir='${prefix}/include'
  792. oldincludedir='/usr/include'
  793. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  794. infodir='${datarootdir}/info'
  795. htmldir='${docdir}'
  796. dvidir='${docdir}'
  797. pdfdir='${docdir}'
  798. psdir='${docdir}'
  799. libdir='${exec_prefix}/lib'
  800. localedir='${datarootdir}/locale'
  801. mandir='${datarootdir}/man'
  802. ac_prev=
  803. ac_dashdash=
  804. for ac_option
  805. do
  806. # If the previous option needs an argument, assign it.
  807. if test -n "$ac_prev"; then
  808. eval $ac_prev=\$ac_option
  809. ac_prev=
  810. continue
  811. fi
  812. case $ac_option in
  813. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  814. *=) ac_optarg= ;;
  815. *) ac_optarg=yes ;;
  816. esac
  817. # Accept the important Cygnus configure options, so we can diagnose typos.
  818. case $ac_dashdash$ac_option in
  819. --)
  820. ac_dashdash=yes ;;
  821. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  822. ac_prev=bindir ;;
  823. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  824. bindir=$ac_optarg ;;
  825. -build | --build | --buil | --bui | --bu)
  826. ac_prev=build_alias ;;
  827. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  828. build_alias=$ac_optarg ;;
  829. -cache-file | --cache-file | --cache-fil | --cache-fi \
  830. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  831. ac_prev=cache_file ;;
  832. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  833. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  834. cache_file=$ac_optarg ;;
  835. --config-cache | -C)
  836. cache_file=config.cache ;;
  837. -datadir | --datadir | --datadi | --datad)
  838. ac_prev=datadir ;;
  839. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  840. datadir=$ac_optarg ;;
  841. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  842. | --dataroo | --dataro | --datar)
  843. ac_prev=datarootdir ;;
  844. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  845. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  846. datarootdir=$ac_optarg ;;
  847. -disable-* | --disable-*)
  848. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  849. # Reject names that are not valid shell variable names.
  850. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  851. as_fn_error $? "invalid feature name: $ac_useropt"
  852. ac_useropt_orig=$ac_useropt
  853. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  854. case $ac_user_opts in
  855. *"
  856. "enable_$ac_useropt"
  857. "*) ;;
  858. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  859. ac_unrecognized_sep=', ';;
  860. esac
  861. eval enable_$ac_useropt=no ;;
  862. -docdir | --docdir | --docdi | --doc | --do)
  863. ac_prev=docdir ;;
  864. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  865. docdir=$ac_optarg ;;
  866. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  867. ac_prev=dvidir ;;
  868. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  869. dvidir=$ac_optarg ;;
  870. -enable-* | --enable-*)
  871. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  872. # Reject names that are not valid shell variable names.
  873. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  874. as_fn_error $? "invalid feature name: $ac_useropt"
  875. ac_useropt_orig=$ac_useropt
  876. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  877. case $ac_user_opts in
  878. *"
  879. "enable_$ac_useropt"
  880. "*) ;;
  881. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  882. ac_unrecognized_sep=', ';;
  883. esac
  884. eval enable_$ac_useropt=\$ac_optarg ;;
  885. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  886. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  887. | --exec | --exe | --ex)
  888. ac_prev=exec_prefix ;;
  889. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  890. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  891. | --exec=* | --exe=* | --ex=*)
  892. exec_prefix=$ac_optarg ;;
  893. -gas | --gas | --ga | --g)
  894. # Obsolete; use --with-gas.
  895. with_gas=yes ;;
  896. -help | --help | --hel | --he | -h)
  897. ac_init_help=long ;;
  898. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  899. ac_init_help=recursive ;;
  900. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  901. ac_init_help=short ;;
  902. -host | --host | --hos | --ho)
  903. ac_prev=host_alias ;;
  904. -host=* | --host=* | --hos=* | --ho=*)
  905. host_alias=$ac_optarg ;;
  906. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  907. ac_prev=htmldir ;;
  908. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  909. | --ht=*)
  910. htmldir=$ac_optarg ;;
  911. -includedir | --includedir | --includedi | --included | --include \
  912. | --includ | --inclu | --incl | --inc)
  913. ac_prev=includedir ;;
  914. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  915. | --includ=* | --inclu=* | --incl=* | --inc=*)
  916. includedir=$ac_optarg ;;
  917. -infodir | --infodir | --infodi | --infod | --info | --inf)
  918. ac_prev=infodir ;;
  919. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  920. infodir=$ac_optarg ;;
  921. -libdir | --libdir | --libdi | --libd)
  922. ac_prev=libdir ;;
  923. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  924. libdir=$ac_optarg ;;
  925. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  926. | --libexe | --libex | --libe)
  927. ac_prev=libexecdir ;;
  928. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  929. | --libexe=* | --libex=* | --libe=*)
  930. libexecdir=$ac_optarg ;;
  931. -localedir | --localedir | --localedi | --localed | --locale)
  932. ac_prev=localedir ;;
  933. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  934. localedir=$ac_optarg ;;
  935. -localstatedir | --localstatedir | --localstatedi | --localstated \
  936. | --localstate | --localstat | --localsta | --localst | --locals)
  937. ac_prev=localstatedir ;;
  938. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  939. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  940. localstatedir=$ac_optarg ;;
  941. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  942. ac_prev=mandir ;;
  943. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  944. mandir=$ac_optarg ;;
  945. -nfp | --nfp | --nf)
  946. # Obsolete; use --without-fp.
  947. with_fp=no ;;
  948. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  949. | --no-cr | --no-c | -n)
  950. no_create=yes ;;
  951. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  952. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  953. no_recursion=yes ;;
  954. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  955. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  956. | --oldin | --oldi | --old | --ol | --o)
  957. ac_prev=oldincludedir ;;
  958. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  959. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  960. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  961. oldincludedir=$ac_optarg ;;
  962. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  963. ac_prev=prefix ;;
  964. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  965. prefix=$ac_optarg ;;
  966. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  967. | --program-pre | --program-pr | --program-p)
  968. ac_prev=program_prefix ;;
  969. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  970. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  971. program_prefix=$ac_optarg ;;
  972. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  973. | --program-suf | --program-su | --program-s)
  974. ac_prev=program_suffix ;;
  975. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  976. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  977. program_suffix=$ac_optarg ;;
  978. -program-transform-name | --program-transform-name \
  979. | --program-transform-nam | --program-transform-na \
  980. | --program-transform-n | --program-transform- \
  981. | --program-transform | --program-transfor \
  982. | --program-transfo | --program-transf \
  983. | --program-trans | --program-tran \
  984. | --progr-tra | --program-tr | --program-t)
  985. ac_prev=program_transform_name ;;
  986. -program-transform-name=* | --program-transform-name=* \
  987. | --program-transform-nam=* | --program-transform-na=* \
  988. | --program-transform-n=* | --program-transform-=* \
  989. | --program-transform=* | --program-transfor=* \
  990. | --program-transfo=* | --program-transf=* \
  991. | --program-trans=* | --program-tran=* \
  992. | --progr-tra=* | --program-tr=* | --program-t=*)
  993. program_transform_name=$ac_optarg ;;
  994. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  995. ac_prev=pdfdir ;;
  996. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  997. pdfdir=$ac_optarg ;;
  998. -psdir | --psdir | --psdi | --psd | --ps)
  999. ac_prev=psdir ;;
  1000. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1001. psdir=$ac_optarg ;;
  1002. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1003. | -silent | --silent | --silen | --sile | --sil)
  1004. silent=yes ;;
  1005. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1006. ac_prev=sbindir ;;
  1007. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1008. | --sbi=* | --sb=*)
  1009. sbindir=$ac_optarg ;;
  1010. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1011. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1012. | --sharedst | --shareds | --shared | --share | --shar \
  1013. | --sha | --sh)
  1014. ac_prev=sharedstatedir ;;
  1015. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1016. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1017. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1018. | --sha=* | --sh=*)
  1019. sharedstatedir=$ac_optarg ;;
  1020. -site | --site | --sit)
  1021. ac_prev=site ;;
  1022. -site=* | --site=* | --sit=*)
  1023. site=$ac_optarg ;;
  1024. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1025. ac_prev=srcdir ;;
  1026. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1027. srcdir=$ac_optarg ;;
  1028. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1029. | --syscon | --sysco | --sysc | --sys | --sy)
  1030. ac_prev=sysconfdir ;;
  1031. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1032. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1033. sysconfdir=$ac_optarg ;;
  1034. -target | --target | --targe | --targ | --tar | --ta | --t)
  1035. ac_prev=target_alias ;;
  1036. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1037. target_alias=$ac_optarg ;;
  1038. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1039. verbose=yes ;;
  1040. -version | --version | --versio | --versi | --vers | -V)
  1041. ac_init_version=: ;;
  1042. -with-* | --with-*)
  1043. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1044. # Reject names that are not valid shell variable names.
  1045. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1046. as_fn_error $? "invalid package name: $ac_useropt"
  1047. ac_useropt_orig=$ac_useropt
  1048. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1049. case $ac_user_opts in
  1050. *"
  1051. "with_$ac_useropt"
  1052. "*) ;;
  1053. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1054. ac_unrecognized_sep=', ';;
  1055. esac
  1056. eval with_$ac_useropt=\$ac_optarg ;;
  1057. -without-* | --without-*)
  1058. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1059. # Reject names that are not valid shell variable names.
  1060. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1061. as_fn_error $? "invalid package name: $ac_useropt"
  1062. ac_useropt_orig=$ac_useropt
  1063. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1064. case $ac_user_opts in
  1065. *"
  1066. "with_$ac_useropt"
  1067. "*) ;;
  1068. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1069. ac_unrecognized_sep=', ';;
  1070. esac
  1071. eval with_$ac_useropt=no ;;
  1072. --x)
  1073. # Obsolete; use --with-x.
  1074. with_x=yes ;;
  1075. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1076. | --x-incl | --x-inc | --x-in | --x-i)
  1077. ac_prev=x_includes ;;
  1078. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1079. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1080. x_includes=$ac_optarg ;;
  1081. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1082. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1083. ac_prev=x_libraries ;;
  1084. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1085. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1086. x_libraries=$ac_optarg ;;
  1087. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1088. Try \`$0 --help' for more information"
  1089. ;;
  1090. *=*)
  1091. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1092. # Reject names that are not valid shell variable names.
  1093. case $ac_envvar in #(
  1094. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1095. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1096. esac
  1097. eval $ac_envvar=\$ac_optarg
  1098. export $ac_envvar ;;
  1099. *)
  1100. # FIXME: should be removed in autoconf 3.0.
  1101. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1102. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1103. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1104. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1105. ;;
  1106. esac
  1107. done
  1108. if test -n "$ac_prev"; then
  1109. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1110. as_fn_error $? "missing argument to $ac_option"
  1111. fi
  1112. if test -n "$ac_unrecognized_opts"; then
  1113. case $enable_option_checking in
  1114. no) ;;
  1115. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1116. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1117. esac
  1118. fi
  1119. # Check all directory arguments for consistency.
  1120. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1121. datadir sysconfdir sharedstatedir localstatedir includedir \
  1122. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1123. libdir localedir mandir
  1124. do
  1125. eval ac_val=\$$ac_var
  1126. # Remove trailing slashes.
  1127. case $ac_val in
  1128. */ )
  1129. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1130. eval $ac_var=\$ac_val;;
  1131. esac
  1132. # Be sure to have absolute directory names.
  1133. case $ac_val in
  1134. [\\/$]* | ?:[\\/]* ) continue;;
  1135. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1136. esac
  1137. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1138. done
  1139. # There might be people who depend on the old broken behavior: `$host'
  1140. # used to hold the argument of --host etc.
  1141. # FIXME: To remove some day.
  1142. build=$build_alias
  1143. host=$host_alias
  1144. target=$target_alias
  1145. # FIXME: To remove some day.
  1146. if test "x$host_alias" != x; then
  1147. if test "x$build_alias" = x; then
  1148. cross_compiling=maybe
  1149. elif test "x$build_alias" != "x$host_alias"; then
  1150. cross_compiling=yes
  1151. fi
  1152. fi
  1153. ac_tool_prefix=
  1154. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1155. test "$silent" = yes && exec 6>/dev/null
  1156. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1157. ac_ls_di=`ls -di .` &&
  1158. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1159. as_fn_error $? "working directory cannot be determined"
  1160. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1161. as_fn_error $? "pwd does not report name of working directory"
  1162. # Find the source files, if location was not specified.
  1163. if test -z "$srcdir"; then
  1164. ac_srcdir_defaulted=yes
  1165. # Try the directory containing this script, then the parent directory.
  1166. ac_confdir=`$as_dirname -- "$as_myself" ||
  1167. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1168. X"$as_myself" : 'X\(//\)[^/]' \| \
  1169. X"$as_myself" : 'X\(//\)$' \| \
  1170. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1171. $as_echo X"$as_myself" |
  1172. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1173. s//\1/
  1174. q
  1175. }
  1176. /^X\(\/\/\)[^/].*/{
  1177. s//\1/
  1178. q
  1179. }
  1180. /^X\(\/\/\)$/{
  1181. s//\1/
  1182. q
  1183. }
  1184. /^X\(\/\).*/{
  1185. s//\1/
  1186. q
  1187. }
  1188. s/.*/./; q'`
  1189. srcdir=$ac_confdir
  1190. if test ! -r "$srcdir/$ac_unique_file"; then
  1191. srcdir=..
  1192. fi
  1193. else
  1194. ac_srcdir_defaulted=no
  1195. fi
  1196. if test ! -r "$srcdir/$ac_unique_file"; then
  1197. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1198. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1199. fi
  1200. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1201. ac_abs_confdir=`(
  1202. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1203. pwd)`
  1204. # When building in place, set srcdir=.
  1205. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1206. srcdir=.
  1207. fi
  1208. # Remove unnecessary trailing slashes from srcdir.
  1209. # Double slashes in file names in object file debugging info
  1210. # mess up M-x gdb in Emacs.
  1211. case $srcdir in
  1212. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1213. esac
  1214. for ac_var in $ac_precious_vars; do
  1215. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1216. eval ac_env_${ac_var}_value=\$${ac_var}
  1217. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1218. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1219. done
  1220. #
  1221. # Report the --help message.
  1222. #
  1223. if test "$ac_init_help" = "long"; then
  1224. # Omit some internal or obsolete options to make the list less imposing.
  1225. # This message is too long to be a string in the A/UX 3.1 sh.
  1226. cat <<_ACEOF
  1227. \`configure' configures libatomic_ops 7.6.10 to adapt to many kinds of systems.
  1228. Usage: $0 [OPTION]... [VAR=VALUE]...
  1229. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1230. VAR=VALUE. See below for descriptions of some of the useful variables.
  1231. Defaults for the options are specified in brackets.
  1232. Configuration:
  1233. -h, --help display this help and exit
  1234. --help=short display options specific to this package
  1235. --help=recursive display the short help of all the included packages
  1236. -V, --version display version information and exit
  1237. -q, --quiet, --silent do not print \`checking ...' messages
  1238. --cache-file=FILE cache test results in FILE [disabled]
  1239. -C, --config-cache alias for \`--cache-file=config.cache'
  1240. -n, --no-create do not create output files
  1241. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1242. Installation directories:
  1243. --prefix=PREFIX install architecture-independent files in PREFIX
  1244. [$ac_default_prefix]
  1245. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1246. [PREFIX]
  1247. By default, \`make install' will install all the files in
  1248. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1249. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1250. for instance \`--prefix=\$HOME'.
  1251. For better control, use the options below.
  1252. Fine tuning of the installation directories:
  1253. --bindir=DIR user executables [EPREFIX/bin]
  1254. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1255. --libexecdir=DIR program executables [EPREFIX/libexec]
  1256. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1257. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1258. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1259. --libdir=DIR object code libraries [EPREFIX/lib]
  1260. --includedir=DIR C header files [PREFIX/include]
  1261. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1262. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1263. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1264. --infodir=DIR info documentation [DATAROOTDIR/info]
  1265. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1266. --mandir=DIR man documentation [DATAROOTDIR/man]
  1267. --docdir=DIR documentation root [DATAROOTDIR/doc/libatomic_ops]
  1268. --htmldir=DIR html documentation [DOCDIR]
  1269. --dvidir=DIR dvi documentation [DOCDIR]
  1270. --pdfdir=DIR pdf documentation [DOCDIR]
  1271. --psdir=DIR ps documentation [DOCDIR]
  1272. _ACEOF
  1273. cat <<\_ACEOF
  1274. Program names:
  1275. --program-prefix=PREFIX prepend PREFIX to installed program names
  1276. --program-suffix=SUFFIX append SUFFIX to installed program names
  1277. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1278. System types:
  1279. --build=BUILD configure for building on BUILD [guessed]
  1280. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1281. --target=TARGET configure for building compilers for TARGET [HOST]
  1282. _ACEOF
  1283. fi
  1284. if test -n "$ac_init_help"; then
  1285. case $ac_init_help in
  1286. short | recursive ) echo "Configuration of libatomic_ops 7.6.10:";;
  1287. esac
  1288. cat <<\_ACEOF
  1289. Optional Features:
  1290. --disable-option-checking ignore unrecognized --enable/--with options
  1291. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1292. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1293. --enable-silent-rules less verbose build output (undo: "make V=1")
  1294. --disable-silent-rules verbose build output (undo: "make V=0")
  1295. --enable-maintainer-mode
  1296. enable make rules and dependencies not useful (and
  1297. sometimes confusing) to the casual installer
  1298. --enable-dependency-tracking
  1299. do not reject slow dependency extractors
  1300. --disable-dependency-tracking
  1301. speeds up one-time build
  1302. --enable-shared[=PKGS] build shared libraries [default=no]
  1303. --enable-static[=PKGS] build static libraries [default=yes]
  1304. --enable-fast-install[=PKGS]
  1305. optimize for fast installation [default=yes]
  1306. --disable-libtool-lock avoid locking (might break parallel builds)
  1307. --enable-werror Pass -Werror to the C compiler
  1308. --enable-assertions Assertion checking
  1309. --disable-atomic-intrinsics
  1310. Do not use C11 atomic intrinsics
  1311. --enable-gcov Turn on code coverage analysis
  1312. --disable-docs Do not build and install documentation
  1313. Optional Packages:
  1314. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1315. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1316. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1317. both]
  1318. --with-aix-soname=aix|svr4|both
  1319. shared library versioning (aka "SONAME") variant to
  1320. provide on AIX, [default=aix].
  1321. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1322. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1323. compiler's sysroot if not specified).
  1324. Some influential environment variables:
  1325. CC C compiler command
  1326. CFLAGS C compiler flags
  1327. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1328. nonstandard directory <lib dir>
  1329. LIBS libraries to pass to the linker, e.g. -l<library>
  1330. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1331. you have headers in a nonstandard directory <include dir>
  1332. CCAS assembler compiler command (defaults to CC)
  1333. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1334. LT_SYS_LIBRARY_PATH
  1335. User-defined run-time library search path.
  1336. CPP C preprocessor
  1337. Use these variables to override the choices made by `configure' or to help
  1338. it to find libraries and programs with nonstandard names/locations.
  1339. Report bugs to <https://github.com/ivmai/libatomic_ops/issues>.
  1340. _ACEOF
  1341. ac_status=$?
  1342. fi
  1343. if test "$ac_init_help" = "recursive"; then
  1344. # If there are subdirs, report their specific --help.
  1345. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1346. test -d "$ac_dir" ||
  1347. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1348. continue
  1349. ac_builddir=.
  1350. case "$ac_dir" in
  1351. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1352. *)
  1353. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1354. # A ".." for each directory in $ac_dir_suffix.
  1355. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1356. case $ac_top_builddir_sub in
  1357. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1358. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1359. esac ;;
  1360. esac
  1361. ac_abs_top_builddir=$ac_pwd
  1362. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1363. # for backward compatibility:
  1364. ac_top_builddir=$ac_top_build_prefix
  1365. case $srcdir in
  1366. .) # We are building in place.
  1367. ac_srcdir=.
  1368. ac_top_srcdir=$ac_top_builddir_sub
  1369. ac_abs_top_srcdir=$ac_pwd ;;
  1370. [\\/]* | ?:[\\/]* ) # Absolute name.
  1371. ac_srcdir=$srcdir$ac_dir_suffix;
  1372. ac_top_srcdir=$srcdir
  1373. ac_abs_top_srcdir=$srcdir ;;
  1374. *) # Relative name.
  1375. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1376. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1377. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1378. esac
  1379. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1380. cd "$ac_dir" || { ac_status=$?; continue; }
  1381. # Check for guested configure.
  1382. if test -f "$ac_srcdir/configure.gnu"; then
  1383. echo &&
  1384. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1385. elif test -f "$ac_srcdir/configure"; then
  1386. echo &&
  1387. $SHELL "$ac_srcdir/configure" --help=recursive
  1388. else
  1389. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1390. fi || ac_status=$?
  1391. cd "$ac_pwd" || { ac_status=$?; break; }
  1392. done
  1393. fi
  1394. test -n "$ac_init_help" && exit $ac_status
  1395. if $ac_init_version; then
  1396. cat <<\_ACEOF
  1397. libatomic_ops configure 7.6.10
  1398. generated by GNU Autoconf 2.69
  1399. Copyright (C) 2012 Free Software Foundation, Inc.
  1400. This configure script is free software; the Free Software Foundation
  1401. gives unlimited permission to copy, distribute and modify it.
  1402. _ACEOF
  1403. exit
  1404. fi
  1405. ## ------------------------ ##
  1406. ## Autoconf initialization. ##
  1407. ## ------------------------ ##
  1408. # ac_fn_c_try_compile LINENO
  1409. # --------------------------
  1410. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1411. ac_fn_c_try_compile ()
  1412. {
  1413. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1414. rm -f conftest.$ac_objext
  1415. if { { ac_try="$ac_compile"
  1416. case "(($ac_try" in
  1417. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1418. *) ac_try_echo=$ac_try;;
  1419. esac
  1420. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1421. $as_echo "$ac_try_echo"; } >&5
  1422. (eval "$ac_compile") 2>conftest.err
  1423. ac_status=$?
  1424. if test -s conftest.err; then
  1425. grep -v '^ *+' conftest.err >conftest.er1
  1426. cat conftest.er1 >&5
  1427. mv -f conftest.er1 conftest.err
  1428. fi
  1429. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1430. test $ac_status = 0; } && {
  1431. test -z "$ac_c_werror_flag" ||
  1432. test ! -s conftest.err
  1433. } && test -s conftest.$ac_objext; then :
  1434. ac_retval=0
  1435. else
  1436. $as_echo "$as_me: failed program was:" >&5
  1437. sed 's/^/| /' conftest.$ac_ext >&5
  1438. ac_retval=1
  1439. fi
  1440. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1441. as_fn_set_status $ac_retval
  1442. } # ac_fn_c_try_compile
  1443. # ac_fn_c_try_link LINENO
  1444. # -----------------------
  1445. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1446. ac_fn_c_try_link ()
  1447. {
  1448. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1449. rm -f conftest.$ac_objext conftest$ac_exeext
  1450. if { { ac_try="$ac_link"
  1451. case "(($ac_try" in
  1452. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1453. *) ac_try_echo=$ac_try;;
  1454. esac
  1455. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1456. $as_echo "$ac_try_echo"; } >&5
  1457. (eval "$ac_link") 2>conftest.err
  1458. ac_status=$?
  1459. if test -s conftest.err; then
  1460. grep -v '^ *+' conftest.err >conftest.er1
  1461. cat conftest.er1 >&5
  1462. mv -f conftest.er1 conftest.err
  1463. fi
  1464. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1465. test $ac_status = 0; } && {
  1466. test -z "$ac_c_werror_flag" ||
  1467. test ! -s conftest.err
  1468. } && test -s conftest$ac_exeext && {
  1469. test "$cross_compiling" = yes ||
  1470. test -x conftest$ac_exeext
  1471. }; then :
  1472. ac_retval=0
  1473. else
  1474. $as_echo "$as_me: failed program was:" >&5
  1475. sed 's/^/| /' conftest.$ac_ext >&5
  1476. ac_retval=1
  1477. fi
  1478. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1479. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1480. # interfere with the next link command; also delete a directory that is
  1481. # left behind by Apple's compiler. We do this before executing the actions.
  1482. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1483. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1484. as_fn_set_status $ac_retval
  1485. } # ac_fn_c_try_link
  1486. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1487. # -------------------------------------------------------
  1488. # Tests whether HEADER exists and can be compiled using the include files in
  1489. # INCLUDES, setting the cache variable VAR accordingly.
  1490. ac_fn_c_check_header_compile ()
  1491. {
  1492. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1494. $as_echo_n "checking for $2... " >&6; }
  1495. if eval \${$3+:} false; then :
  1496. $as_echo_n "(cached) " >&6
  1497. else
  1498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1499. /* end confdefs.h. */
  1500. $4
  1501. #include <$2>
  1502. _ACEOF
  1503. if ac_fn_c_try_compile "$LINENO"; then :
  1504. eval "$3=yes"
  1505. else
  1506. eval "$3=no"
  1507. fi
  1508. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1509. fi
  1510. eval ac_res=\$$3
  1511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1512. $as_echo "$ac_res" >&6; }
  1513. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1514. } # ac_fn_c_check_header_compile
  1515. # ac_fn_c_try_cpp LINENO
  1516. # ----------------------
  1517. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1518. ac_fn_c_try_cpp ()
  1519. {
  1520. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1521. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1522. case "(($ac_try" in
  1523. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1524. *) ac_try_echo=$ac_try;;
  1525. esac
  1526. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1527. $as_echo "$ac_try_echo"; } >&5
  1528. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1529. ac_status=$?
  1530. if test -s conftest.err; then
  1531. grep -v '^ *+' conftest.err >conftest.er1
  1532. cat conftest.er1 >&5
  1533. mv -f conftest.er1 conftest.err
  1534. fi
  1535. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1536. test $ac_status = 0; } > conftest.i && {
  1537. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1538. test ! -s conftest.err
  1539. }; then :
  1540. ac_retval=0
  1541. else
  1542. $as_echo "$as_me: failed program was:" >&5
  1543. sed 's/^/| /' conftest.$ac_ext >&5
  1544. ac_retval=1
  1545. fi
  1546. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1547. as_fn_set_status $ac_retval
  1548. } # ac_fn_c_try_cpp
  1549. # ac_fn_c_try_run LINENO
  1550. # ----------------------
  1551. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1552. # that executables *can* be run.
  1553. ac_fn_c_try_run ()
  1554. {
  1555. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1556. if { { ac_try="$ac_link"
  1557. case "(($ac_try" in
  1558. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1559. *) ac_try_echo=$ac_try;;
  1560. esac
  1561. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1562. $as_echo "$ac_try_echo"; } >&5
  1563. (eval "$ac_link") 2>&5
  1564. ac_status=$?
  1565. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1566. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1567. { { case "(($ac_try" in
  1568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1569. *) ac_try_echo=$ac_try;;
  1570. esac
  1571. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1572. $as_echo "$ac_try_echo"; } >&5
  1573. (eval "$ac_try") 2>&5
  1574. ac_status=$?
  1575. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1576. test $ac_status = 0; }; }; then :
  1577. ac_retval=0
  1578. else
  1579. $as_echo "$as_me: program exited with status $ac_status" >&5
  1580. $as_echo "$as_me: failed program was:" >&5
  1581. sed 's/^/| /' conftest.$ac_ext >&5
  1582. ac_retval=$ac_status
  1583. fi
  1584. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1585. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1586. as_fn_set_status $ac_retval
  1587. } # ac_fn_c_try_run
  1588. # ac_fn_c_check_func LINENO FUNC VAR
  1589. # ----------------------------------
  1590. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1591. ac_fn_c_check_func ()
  1592. {
  1593. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1595. $as_echo_n "checking for $2... " >&6; }
  1596. if eval \${$3+:} false; then :
  1597. $as_echo_n "(cached) " >&6
  1598. else
  1599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1600. /* end confdefs.h. */
  1601. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1602. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1603. #define $2 innocuous_$2
  1604. /* System header to define __stub macros and hopefully few prototypes,
  1605. which can conflict with char $2 (); below.
  1606. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1607. <limits.h> exists even on freestanding compilers. */
  1608. #ifdef __STDC__
  1609. # include <limits.h>
  1610. #else
  1611. # include <assert.h>
  1612. #endif
  1613. #undef $2
  1614. /* Override any GCC internal prototype to avoid an error.
  1615. Use char because int might match the return type of a GCC
  1616. builtin and then its argument prototype would still apply. */
  1617. #ifdef __cplusplus
  1618. extern "C"
  1619. #endif
  1620. char $2 ();
  1621. /* The GNU C library defines this for functions which it implements
  1622. to always fail with ENOSYS. Some functions are actually named
  1623. something starting with __ and the normal name is an alias. */
  1624. #if defined __stub_$2 || defined __stub___$2
  1625. choke me
  1626. #endif
  1627. int
  1628. main ()
  1629. {
  1630. return $2 ();
  1631. ;
  1632. return 0;
  1633. }
  1634. _ACEOF
  1635. if ac_fn_c_try_link "$LINENO"; then :
  1636. eval "$3=yes"
  1637. else
  1638. eval "$3=no"
  1639. fi
  1640. rm -f core conftest.err conftest.$ac_objext \
  1641. conftest$ac_exeext conftest.$ac_ext
  1642. fi
  1643. eval ac_res=\$$3
  1644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1645. $as_echo "$ac_res" >&6; }
  1646. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1647. } # ac_fn_c_check_func
  1648. cat >config.log <<_ACEOF
  1649. This file contains any messages produced by compilers while
  1650. running configure, to aid debugging if configure makes a mistake.
  1651. It was created by libatomic_ops $as_me 7.6.10, which was
  1652. generated by GNU Autoconf 2.69. Invocation command line was
  1653. $ $0 $@
  1654. _ACEOF
  1655. exec 5>>config.log
  1656. {
  1657. cat <<_ASUNAME
  1658. ## --------- ##
  1659. ## Platform. ##
  1660. ## --------- ##
  1661. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1662. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1663. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1664. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1665. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1666. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1667. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1668. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1669. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1670. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1671. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1672. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1673. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1674. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1675. _ASUNAME
  1676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1677. for as_dir in $PATH
  1678. do
  1679. IFS=$as_save_IFS
  1680. test -z "$as_dir" && as_dir=.
  1681. $as_echo "PATH: $as_dir"
  1682. done
  1683. IFS=$as_save_IFS
  1684. } >&5
  1685. cat >&5 <<_ACEOF
  1686. ## ----------- ##
  1687. ## Core tests. ##
  1688. ## ----------- ##
  1689. _ACEOF
  1690. # Keep a trace of the command line.
  1691. # Strip out --no-create and --no-recursion so they do not pile up.
  1692. # Strip out --silent because we don't want to record it for future runs.
  1693. # Also quote any args containing shell meta-characters.
  1694. # Make two passes to allow for proper duplicate-argument suppression.
  1695. ac_configure_args=
  1696. ac_configure_args0=
  1697. ac_configure_args1=
  1698. ac_must_keep_next=false
  1699. for ac_pass in 1 2
  1700. do
  1701. for ac_arg
  1702. do
  1703. case $ac_arg in
  1704. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1705. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1706. | -silent | --silent | --silen | --sile | --sil)
  1707. continue ;;
  1708. *\'*)
  1709. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1710. esac
  1711. case $ac_pass in
  1712. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1713. 2)
  1714. as_fn_append ac_configure_args1 " '$ac_arg'"
  1715. if test $ac_must_keep_next = true; then
  1716. ac_must_keep_next=false # Got value, back to normal.
  1717. else
  1718. case $ac_arg in
  1719. *=* | --config-cache | -C | -disable-* | --disable-* \
  1720. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1721. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1722. | -with-* | --with-* | -without-* | --without-* | --x)
  1723. case "$ac_configure_args0 " in
  1724. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1725. esac
  1726. ;;
  1727. -* ) ac_must_keep_next=true ;;
  1728. esac
  1729. fi
  1730. as_fn_append ac_configure_args " '$ac_arg'"
  1731. ;;
  1732. esac
  1733. done
  1734. done
  1735. { ac_configure_args0=; unset ac_configure_args0;}
  1736. { ac_configure_args1=; unset ac_configure_args1;}
  1737. # When interrupted or exit'd, cleanup temporary files, and complete
  1738. # config.log. We remove comments because anyway the quotes in there
  1739. # would cause problems or look ugly.
  1740. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1741. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1742. trap 'exit_status=$?
  1743. # Save into config.log some information that might help in debugging.
  1744. {
  1745. echo
  1746. $as_echo "## ---------------- ##
  1747. ## Cache variables. ##
  1748. ## ---------------- ##"
  1749. echo
  1750. # The following way of writing the cache mishandles newlines in values,
  1751. (
  1752. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1753. eval ac_val=\$$ac_var
  1754. case $ac_val in #(
  1755. *${as_nl}*)
  1756. case $ac_var in #(
  1757. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1758. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1759. esac
  1760. case $ac_var in #(
  1761. _ | IFS | as_nl) ;; #(
  1762. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1763. *) { eval $ac_var=; unset $ac_var;} ;;
  1764. esac ;;
  1765. esac
  1766. done
  1767. (set) 2>&1 |
  1768. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1769. *${as_nl}ac_space=\ *)
  1770. sed -n \
  1771. "s/'\''/'\''\\\\'\'''\''/g;
  1772. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1773. ;; #(
  1774. *)
  1775. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1776. ;;
  1777. esac |
  1778. sort
  1779. )
  1780. echo
  1781. $as_echo "## ----------------- ##
  1782. ## Output variables. ##
  1783. ## ----------------- ##"
  1784. echo
  1785. for ac_var in $ac_subst_vars
  1786. do
  1787. eval ac_val=\$$ac_var
  1788. case $ac_val in
  1789. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1790. esac
  1791. $as_echo "$ac_var='\''$ac_val'\''"
  1792. done | sort
  1793. echo
  1794. if test -n "$ac_subst_files"; then
  1795. $as_echo "## ------------------- ##
  1796. ## File substitutions. ##
  1797. ## ------------------- ##"
  1798. echo
  1799. for ac_var in $ac_subst_files
  1800. do
  1801. eval ac_val=\$$ac_var
  1802. case $ac_val in
  1803. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1804. esac
  1805. $as_echo "$ac_var='\''$ac_val'\''"
  1806. done | sort
  1807. echo
  1808. fi
  1809. if test -s confdefs.h; then
  1810. $as_echo "## ----------- ##
  1811. ## confdefs.h. ##
  1812. ## ----------- ##"
  1813. echo
  1814. cat confdefs.h
  1815. echo
  1816. fi
  1817. test "$ac_signal" != 0 &&
  1818. $as_echo "$as_me: caught signal $ac_signal"
  1819. $as_echo "$as_me: exit $exit_status"
  1820. } >&5
  1821. rm -f core *.core core.conftest.* &&
  1822. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1823. exit $exit_status
  1824. ' 0
  1825. for ac_signal in 1 2 13 15; do
  1826. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1827. done
  1828. ac_signal=0
  1829. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1830. rm -f -r conftest* confdefs.h
  1831. $as_echo "/* confdefs.h */" > confdefs.h
  1832. # Predefined preprocessor variables.
  1833. cat >>confdefs.h <<_ACEOF
  1834. #define PACKAGE_NAME "$PACKAGE_NAME"
  1835. _ACEOF
  1836. cat >>confdefs.h <<_ACEOF
  1837. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1838. _ACEOF
  1839. cat >>confdefs.h <<_ACEOF
  1840. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1841. _ACEOF
  1842. cat >>confdefs.h <<_ACEOF
  1843. #define PACKAGE_STRING "$PACKAGE_STRING"
  1844. _ACEOF
  1845. cat >>confdefs.h <<_ACEOF
  1846. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1847. _ACEOF
  1848. cat >>confdefs.h <<_ACEOF
  1849. #define PACKAGE_URL "$PACKAGE_URL"
  1850. _ACEOF
  1851. # Let the site file select an alternate cache file if it wants to.
  1852. # Prefer an explicitly selected file to automatically selected ones.
  1853. ac_site_file1=NONE
  1854. ac_site_file2=NONE
  1855. if test -n "$CONFIG_SITE"; then
  1856. # We do not want a PATH search for config.site.
  1857. case $CONFIG_SITE in #((
  1858. -*) ac_site_file1=./$CONFIG_SITE;;
  1859. */*) ac_site_file1=$CONFIG_SITE;;
  1860. *) ac_site_file1=./$CONFIG_SITE;;
  1861. esac
  1862. elif test "x$prefix" != xNONE; then
  1863. ac_site_file1=$prefix/share/config.site
  1864. ac_site_file2=$prefix/etc/config.site
  1865. else
  1866. ac_site_file1=$ac_default_prefix/share/config.site
  1867. ac_site_file2=$ac_default_prefix/etc/config.site
  1868. fi
  1869. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1870. do
  1871. test "x$ac_site_file" = xNONE && continue
  1872. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1873. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1874. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1875. sed 's/^/| /' "$ac_site_file" >&5
  1876. . "$ac_site_file" \
  1877. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1878. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1879. as_fn_error $? "failed to load site script $ac_site_file
  1880. See \`config.log' for more details" "$LINENO" 5; }
  1881. fi
  1882. done
  1883. if test -r "$cache_file"; then
  1884. # Some versions of bash will fail to source /dev/null (special files
  1885. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1886. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1887. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1888. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1889. case $cache_file in
  1890. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1891. *) . "./$cache_file";;
  1892. esac
  1893. fi
  1894. else
  1895. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1896. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1897. >$cache_file
  1898. fi
  1899. as_fn_append ac_header_list " stdlib.h"
  1900. as_fn_append ac_header_list " unistd.h"
  1901. as_fn_append ac_header_list " sys/param.h"
  1902. # Check that the precious variables saved in the cache have kept the same
  1903. # value.
  1904. ac_cache_corrupted=false
  1905. for ac_var in $ac_precious_vars; do
  1906. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1907. eval ac_new_set=\$ac_env_${ac_var}_set
  1908. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1909. eval ac_new_val=\$ac_env_${ac_var}_value
  1910. case $ac_old_set,$ac_new_set in
  1911. set,)
  1912. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1913. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1914. ac_cache_corrupted=: ;;
  1915. ,set)
  1916. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1917. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1918. ac_cache_corrupted=: ;;
  1919. ,);;
  1920. *)
  1921. if test "x$ac_old_val" != "x$ac_new_val"; then
  1922. # differences in whitespace do not lead to failure.
  1923. ac_old_val_w=`echo x $ac_old_val`
  1924. ac_new_val_w=`echo x $ac_new_val`
  1925. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1926. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1927. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1928. ac_cache_corrupted=:
  1929. else
  1930. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1931. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1932. eval $ac_var=\$ac_old_val
  1933. fi
  1934. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1935. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1936. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1937. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1938. fi;;
  1939. esac
  1940. # Pass precious variables to config.status.
  1941. if test "$ac_new_set" = set; then
  1942. case $ac_new_val in
  1943. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1944. *) ac_arg=$ac_var=$ac_new_val ;;
  1945. esac
  1946. case " $ac_configure_args " in
  1947. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1948. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1949. esac
  1950. fi
  1951. done
  1952. if $ac_cache_corrupted; then
  1953. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1954. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1955. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1956. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1957. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1958. fi
  1959. ## -------------------- ##
  1960. ## Main body of script. ##
  1961. ## -------------------- ##
  1962. ac_ext=c
  1963. ac_cpp='$CPP $CPPFLAGS'
  1964. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1965. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1966. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1967. ac_aux_dir=
  1968. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1969. if test -f "$ac_dir/install-sh"; then
  1970. ac_aux_dir=$ac_dir
  1971. ac_install_sh="$ac_aux_dir/install-sh -c"
  1972. break
  1973. elif test -f "$ac_dir/install.sh"; then
  1974. ac_aux_dir=$ac_dir
  1975. ac_install_sh="$ac_aux_dir/install.sh -c"
  1976. break
  1977. elif test -f "$ac_dir/shtool"; then
  1978. ac_aux_dir=$ac_dir
  1979. ac_install_sh="$ac_aux_dir/shtool install -c"
  1980. break
  1981. fi
  1982. done
  1983. if test -z "$ac_aux_dir"; then
  1984. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  1985. fi
  1986. # These three variables are undocumented and unsupported,
  1987. # and are intended to be withdrawn in a future Autoconf release.
  1988. # They can cause serious problems if a builder's source tree is in a directory
  1989. # whose full name contains unusual characters.
  1990. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1991. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1992. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1993. # Make sure we can run config.sub.
  1994. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1995. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  1996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  1997. $as_echo_n "checking build system type... " >&6; }
  1998. if ${ac_cv_build+:} false; then :
  1999. $as_echo_n "(cached) " >&6
  2000. else
  2001. ac_build_alias=$build_alias
  2002. test "x$ac_build_alias" = x &&
  2003. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2004. test "x$ac_build_alias" = x &&
  2005. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2006. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2007. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2008. fi
  2009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2010. $as_echo "$ac_cv_build" >&6; }
  2011. case $ac_cv_build in
  2012. *-*-*) ;;
  2013. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2014. esac
  2015. build=$ac_cv_build
  2016. ac_save_IFS=$IFS; IFS='-'
  2017. set x $ac_cv_build
  2018. shift
  2019. build_cpu=$1
  2020. build_vendor=$2
  2021. shift; shift
  2022. # Remember, the first character of IFS is used to create $*,
  2023. # except with old shells:
  2024. build_os=$*
  2025. IFS=$ac_save_IFS
  2026. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2028. $as_echo_n "checking host system type... " >&6; }
  2029. if ${ac_cv_host+:} false; then :
  2030. $as_echo_n "(cached) " >&6
  2031. else
  2032. if test "x$host_alias" = x; then
  2033. ac_cv_host=$ac_cv_build
  2034. else
  2035. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2036. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2037. fi
  2038. fi
  2039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2040. $as_echo "$ac_cv_host" >&6; }
  2041. case $ac_cv_host in
  2042. *-*-*) ;;
  2043. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2044. esac
  2045. host=$ac_cv_host
  2046. ac_save_IFS=$IFS; IFS='-'
  2047. set x $ac_cv_host
  2048. shift
  2049. host_cpu=$1
  2050. host_vendor=$2
  2051. shift; shift
  2052. # Remember, the first character of IFS is used to create $*,
  2053. # except with old shells:
  2054. host_os=$*
  2055. IFS=$ac_save_IFS
  2056. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2058. $as_echo_n "checking target system type... " >&6; }
  2059. if ${ac_cv_target+:} false; then :
  2060. $as_echo_n "(cached) " >&6
  2061. else
  2062. if test "x$target_alias" = x; then
  2063. ac_cv_target=$ac_cv_host
  2064. else
  2065. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2066. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2067. fi
  2068. fi
  2069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2070. $as_echo "$ac_cv_target" >&6; }
  2071. case $ac_cv_target in
  2072. *-*-*) ;;
  2073. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2074. esac
  2075. target=$ac_cv_target
  2076. ac_save_IFS=$IFS; IFS='-'
  2077. set x $ac_cv_target
  2078. shift
  2079. target_cpu=$1
  2080. target_vendor=$2
  2081. shift; shift
  2082. # Remember, the first character of IFS is used to create $*,
  2083. # except with old shells:
  2084. target_os=$*
  2085. IFS=$ac_save_IFS
  2086. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2087. # The aliases save the names the user supplied, while $host etc.
  2088. # will get canonicalized.
  2089. test -n "$target_alias" &&
  2090. test "$program_prefix$program_suffix$program_transform_name" = \
  2091. NONENONEs,x,x, &&
  2092. program_prefix=${target_alias}-
  2093. am__api_version='1.15'
  2094. # Find a good install program. We prefer a C program (faster),
  2095. # so one script is as good as another. But avoid the broken or
  2096. # incompatible versions:
  2097. # SysV /etc/install, /usr/sbin/install
  2098. # SunOS /usr/etc/install
  2099. # IRIX /sbin/install
  2100. # AIX /bin/install
  2101. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2102. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2103. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2104. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2105. # OS/2's system install, which has a completely different semantic
  2106. # ./install, which can be erroneously created by make from ./install.sh.
  2107. # Reject install programs that cannot install multiple files.
  2108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2109. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2110. if test -z "$INSTALL"; then
  2111. if ${ac_cv_path_install+:} false; then :
  2112. $as_echo_n "(cached) " >&6
  2113. else
  2114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2115. for as_dir in $PATH
  2116. do
  2117. IFS=$as_save_IFS
  2118. test -z "$as_dir" && as_dir=.
  2119. # Account for people who put trailing slashes in PATH elements.
  2120. case $as_dir/ in #((
  2121. ./ | .// | /[cC]/* | \
  2122. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2123. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2124. /usr/ucb/* ) ;;
  2125. *)
  2126. # OSF1 and SCO ODT 3.0 have their own names for install.
  2127. # Don't use installbsd from OSF since it installs stuff as root
  2128. # by default.
  2129. for ac_prog in ginstall scoinst install; do
  2130. for ac_exec_ext in '' $ac_executable_extensions; do
  2131. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2132. if test $ac_prog = install &&
  2133. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2134. # AIX install. It has an incompatible calling convention.
  2135. :
  2136. elif test $ac_prog = install &&
  2137. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2138. # program-specific install script used by HP pwplus--don't use.
  2139. :
  2140. else
  2141. rm -rf conftest.one conftest.two conftest.dir
  2142. echo one > conftest.one
  2143. echo two > conftest.two
  2144. mkdir conftest.dir
  2145. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2146. test -s conftest.one && test -s conftest.two &&
  2147. test -s conftest.dir/conftest.one &&
  2148. test -s conftest.dir/conftest.two
  2149. then
  2150. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2151. break 3
  2152. fi
  2153. fi
  2154. fi
  2155. done
  2156. done
  2157. ;;
  2158. esac
  2159. done
  2160. IFS=$as_save_IFS
  2161. rm -rf conftest.one conftest.two conftest.dir
  2162. fi
  2163. if test "${ac_cv_path_install+set}" = set; then
  2164. INSTALL=$ac_cv_path_install
  2165. else
  2166. # As a last resort, use the slow shell script. Don't cache a
  2167. # value for INSTALL within a source directory, because that will
  2168. # break other packages using the cache if that directory is
  2169. # removed, or if the value is a relative name.
  2170. INSTALL=$ac_install_sh
  2171. fi
  2172. fi
  2173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2174. $as_echo "$INSTALL" >&6; }
  2175. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2176. # It thinks the first close brace ends the variable substitution.
  2177. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2178. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2179. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2181. $as_echo_n "checking whether build environment is sane... " >&6; }
  2182. # Reject unsafe characters in $srcdir or the absolute working directory
  2183. # name. Accept space and tab only in the latter.
  2184. am_lf='
  2185. '
  2186. case `pwd` in
  2187. *[\\\"\#\$\&\'\`$am_lf]*)
  2188. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2189. esac
  2190. case $srcdir in
  2191. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2192. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2193. esac
  2194. # Do 'set' in a subshell so we don't clobber the current shell's
  2195. # arguments. Must try -L first in case configure is actually a
  2196. # symlink; some systems play weird games with the mod time of symlinks
  2197. # (eg FreeBSD returns the mod time of the symlink's containing
  2198. # directory).
  2199. if (
  2200. am_has_slept=no
  2201. for am_try in 1 2; do
  2202. echo "timestamp, slept: $am_has_slept" > conftest.file
  2203. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2204. if test "$*" = "X"; then
  2205. # -L didn't work.
  2206. set X `ls -t "$srcdir/configure" conftest.file`
  2207. fi
  2208. if test "$*" != "X $srcdir/configure conftest.file" \
  2209. && test "$*" != "X conftest.file $srcdir/configure"; then
  2210. # If neither matched, then we have a broken ls. This can happen
  2211. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2212. # broken ls alias from the environment. This has actually
  2213. # happened. Such a system could not be considered "sane".
  2214. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2215. alias in your environment" "$LINENO" 5
  2216. fi
  2217. if test "$2" = conftest.file || test $am_try -eq 2; then
  2218. break
  2219. fi
  2220. # Just in case.
  2221. sleep 1
  2222. am_has_slept=yes
  2223. done
  2224. test "$2" = conftest.file
  2225. )
  2226. then
  2227. # Ok.
  2228. :
  2229. else
  2230. as_fn_error $? "newly created file is older than distributed files!
  2231. Check your system clock" "$LINENO" 5
  2232. fi
  2233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2234. $as_echo "yes" >&6; }
  2235. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2236. # generated files are strictly newer.
  2237. am_sleep_pid=
  2238. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2239. ( sleep 1 ) &
  2240. am_sleep_pid=$!
  2241. fi
  2242. rm -f conftest.file
  2243. test "$program_prefix" != NONE &&
  2244. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2245. # Use a double $ so make ignores it.
  2246. test "$program_suffix" != NONE &&
  2247. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2248. # Double any \ or $.
  2249. # By default was `s,x,x', remove it if useless.
  2250. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2251. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2252. # Expand $ac_aux_dir to an absolute path.
  2253. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2254. if test x"${MISSING+set}" != xset; then
  2255. case $am_aux_dir in
  2256. *\ * | *\ *)
  2257. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2258. *)
  2259. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2260. esac
  2261. fi
  2262. # Use eval to expand $SHELL
  2263. if eval "$MISSING --is-lightweight"; then
  2264. am_missing_run="$MISSING "
  2265. else
  2266. am_missing_run=
  2267. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2268. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2269. fi
  2270. if test x"${install_sh+set}" != xset; then
  2271. case $am_aux_dir in
  2272. *\ * | *\ *)
  2273. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2274. *)
  2275. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2276. esac
  2277. fi
  2278. # Installed binaries are usually stripped using 'strip' when the user
  2279. # run "make install-strip". However 'strip' might not be the right
  2280. # tool to use in cross-compilation environments, therefore Automake
  2281. # will honor the 'STRIP' environment variable to overrule this program.
  2282. if test "$cross_compiling" != no; then
  2283. if test -n "$ac_tool_prefix"; then
  2284. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2285. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2287. $as_echo_n "checking for $ac_word... " >&6; }
  2288. if ${ac_cv_prog_STRIP+:} false; then :
  2289. $as_echo_n "(cached) " >&6
  2290. else
  2291. if test -n "$STRIP"; then
  2292. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2293. else
  2294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2295. for as_dir in $PATH
  2296. do
  2297. IFS=$as_save_IFS
  2298. test -z "$as_dir" && as_dir=.
  2299. for ac_exec_ext in '' $ac_executable_extensions; do
  2300. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2301. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2302. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2303. break 2
  2304. fi
  2305. done
  2306. done
  2307. IFS=$as_save_IFS
  2308. fi
  2309. fi
  2310. STRIP=$ac_cv_prog_STRIP
  2311. if test -n "$STRIP"; then
  2312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2313. $as_echo "$STRIP" >&6; }
  2314. else
  2315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2316. $as_echo "no" >&6; }
  2317. fi
  2318. fi
  2319. if test -z "$ac_cv_prog_STRIP"; then
  2320. ac_ct_STRIP=$STRIP
  2321. # Extract the first word of "strip", so it can be a program name with args.
  2322. set dummy strip; ac_word=$2
  2323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2324. $as_echo_n "checking for $ac_word... " >&6; }
  2325. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2326. $as_echo_n "(cached) " >&6
  2327. else
  2328. if test -n "$ac_ct_STRIP"; then
  2329. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2330. else
  2331. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2332. for as_dir in $PATH
  2333. do
  2334. IFS=$as_save_IFS
  2335. test -z "$as_dir" && as_dir=.
  2336. for ac_exec_ext in '' $ac_executable_extensions; do
  2337. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2338. ac_cv_prog_ac_ct_STRIP="strip"
  2339. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2340. break 2
  2341. fi
  2342. done
  2343. done
  2344. IFS=$as_save_IFS
  2345. fi
  2346. fi
  2347. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2348. if test -n "$ac_ct_STRIP"; then
  2349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2350. $as_echo "$ac_ct_STRIP" >&6; }
  2351. else
  2352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2353. $as_echo "no" >&6; }
  2354. fi
  2355. if test "x$ac_ct_STRIP" = x; then
  2356. STRIP=":"
  2357. else
  2358. case $cross_compiling:$ac_tool_warned in
  2359. yes:)
  2360. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2361. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2362. ac_tool_warned=yes ;;
  2363. esac
  2364. STRIP=$ac_ct_STRIP
  2365. fi
  2366. else
  2367. STRIP="$ac_cv_prog_STRIP"
  2368. fi
  2369. fi
  2370. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2372. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2373. if test -z "$MKDIR_P"; then
  2374. if ${ac_cv_path_mkdir+:} false; then :
  2375. $as_echo_n "(cached) " >&6
  2376. else
  2377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2378. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2379. do
  2380. IFS=$as_save_IFS
  2381. test -z "$as_dir" && as_dir=.
  2382. for ac_prog in mkdir gmkdir; do
  2383. for ac_exec_ext in '' $ac_executable_extensions; do
  2384. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2385. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2386. 'mkdir (GNU coreutils) '* | \
  2387. 'mkdir (coreutils) '* | \
  2388. 'mkdir (fileutils) '4.1*)
  2389. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2390. break 3;;
  2391. esac
  2392. done
  2393. done
  2394. done
  2395. IFS=$as_save_IFS
  2396. fi
  2397. test -d ./--version && rmdir ./--version
  2398. if test "${ac_cv_path_mkdir+set}" = set; then
  2399. MKDIR_P="$ac_cv_path_mkdir -p"
  2400. else
  2401. # As a last resort, use the slow shell script. Don't cache a
  2402. # value for MKDIR_P within a source directory, because that will
  2403. # break other packages using the cache if that directory is
  2404. # removed, or if the value is a relative name.
  2405. MKDIR_P="$ac_install_sh -d"
  2406. fi
  2407. fi
  2408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2409. $as_echo "$MKDIR_P" >&6; }
  2410. for ac_prog in gawk mawk nawk awk
  2411. do
  2412. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2413. set dummy $ac_prog; ac_word=$2
  2414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2415. $as_echo_n "checking for $ac_word... " >&6; }
  2416. if ${ac_cv_prog_AWK+:} false; then :
  2417. $as_echo_n "(cached) " >&6
  2418. else
  2419. if test -n "$AWK"; then
  2420. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2421. else
  2422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2423. for as_dir in $PATH
  2424. do
  2425. IFS=$as_save_IFS
  2426. test -z "$as_dir" && as_dir=.
  2427. for ac_exec_ext in '' $ac_executable_extensions; do
  2428. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2429. ac_cv_prog_AWK="$ac_prog"
  2430. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2431. break 2
  2432. fi
  2433. done
  2434. done
  2435. IFS=$as_save_IFS
  2436. fi
  2437. fi
  2438. AWK=$ac_cv_prog_AWK
  2439. if test -n "$AWK"; then
  2440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2441. $as_echo "$AWK" >&6; }
  2442. else
  2443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2444. $as_echo "no" >&6; }
  2445. fi
  2446. test -n "$AWK" && break
  2447. done
  2448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2449. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2450. set x ${MAKE-make}
  2451. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2452. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2453. $as_echo_n "(cached) " >&6
  2454. else
  2455. cat >conftest.make <<\_ACEOF
  2456. SHELL = /bin/sh
  2457. all:
  2458. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2459. _ACEOF
  2460. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2461. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2462. *@@@%%%=?*=@@@%%%*)
  2463. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2464. *)
  2465. eval ac_cv_prog_make_${ac_make}_set=no;;
  2466. esac
  2467. rm -f conftest.make
  2468. fi
  2469. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2471. $as_echo "yes" >&6; }
  2472. SET_MAKE=
  2473. else
  2474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2475. $as_echo "no" >&6; }
  2476. SET_MAKE="MAKE=${MAKE-make}"
  2477. fi
  2478. rm -rf .tst 2>/dev/null
  2479. mkdir .tst 2>/dev/null
  2480. if test -d .tst; then
  2481. am__leading_dot=.
  2482. else
  2483. am__leading_dot=_
  2484. fi
  2485. rmdir .tst 2>/dev/null
  2486. # Check whether --enable-silent-rules was given.
  2487. if test "${enable_silent_rules+set}" = set; then :
  2488. enableval=$enable_silent_rules;
  2489. fi
  2490. case $enable_silent_rules in # (((
  2491. yes) AM_DEFAULT_VERBOSITY=0;;
  2492. no) AM_DEFAULT_VERBOSITY=1;;
  2493. *) AM_DEFAULT_VERBOSITY=1;;
  2494. esac
  2495. am_make=${MAKE-make}
  2496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2497. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2498. if ${am_cv_make_support_nested_variables+:} false; then :
  2499. $as_echo_n "(cached) " >&6
  2500. else
  2501. if $as_echo 'TRUE=$(BAR$(V))
  2502. BAR0=false
  2503. BAR1=true
  2504. V=1
  2505. am__doit:
  2506. @$(TRUE)
  2507. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2508. am_cv_make_support_nested_variables=yes
  2509. else
  2510. am_cv_make_support_nested_variables=no
  2511. fi
  2512. fi
  2513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2514. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2515. if test $am_cv_make_support_nested_variables = yes; then
  2516. AM_V='$(V)'
  2517. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2518. else
  2519. AM_V=$AM_DEFAULT_VERBOSITY
  2520. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2521. fi
  2522. AM_BACKSLASH='\'
  2523. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2524. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2525. # is not polluted with repeated "-I."
  2526. am__isrc=' -I$(srcdir)'
  2527. # test to see if srcdir already configured
  2528. if test -f $srcdir/config.status; then
  2529. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2530. fi
  2531. fi
  2532. # test whether we have cygpath
  2533. if test -z "$CYGPATH_W"; then
  2534. if (cygpath --version) >/dev/null 2>/dev/null; then
  2535. CYGPATH_W='cygpath -w'
  2536. else
  2537. CYGPATH_W=echo
  2538. fi
  2539. fi
  2540. # Define the identity of the package.
  2541. PACKAGE='libatomic_ops'
  2542. VERSION='7.6.10'
  2543. cat >>confdefs.h <<_ACEOF
  2544. #define PACKAGE "$PACKAGE"
  2545. _ACEOF
  2546. cat >>confdefs.h <<_ACEOF
  2547. #define VERSION "$VERSION"
  2548. _ACEOF
  2549. # Some tools Automake needs.
  2550. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2551. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2552. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2553. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2554. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2555. # For better backward compatibility. To be removed once Automake 1.9.x
  2556. # dies out for good. For more background, see:
  2557. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2558. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2559. mkdir_p='$(MKDIR_P)'
  2560. # We need awk for the "check" target (and possibly the TAP driver). The
  2561. # system "awk" is bad on some platforms.
  2562. # Always define AMTAR for backward compatibility. Yes, it's still used
  2563. # in the wild :-( We should find a proper way to deprecate it ...
  2564. AMTAR='$${TAR-tar}'
  2565. # We'll loop over all known methods to create a tar archive until one works.
  2566. _am_tools='gnutar pax cpio none'
  2567. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2568. # POSIX will say in a future version that running "rm -f" with no argument
  2569. # is OK; and we want to be able to make that assumption in our Makefile
  2570. # recipes. So use an aggressive probe to check that the usage we want is
  2571. # actually supported "in the wild" to an acceptable degree.
  2572. # See automake bug#10828.
  2573. # To make any issue more visible, cause the running configure to be aborted
  2574. # by default if the 'rm' program in use doesn't match our expectations; the
  2575. # user can still override this though.
  2576. if rm -f && rm -fr && rm -rf; then : OK; else
  2577. cat >&2 <<'END'
  2578. Oops!
  2579. Your 'rm' program seems unable to run without file operands specified
  2580. on the command line, even when the '-f' option is present. This is contrary
  2581. to the behaviour of most rm programs out there, and not conforming with
  2582. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2583. Please tell [email protected] about your system, including the value
  2584. of your $PATH and any error possibly output before this message. This
  2585. can help us improve future automake versions.
  2586. END
  2587. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2588. echo 'Configuration will proceed anyway, since you have set the' >&2
  2589. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2590. echo >&2
  2591. else
  2592. cat >&2 <<'END'
  2593. Aborting the configuration process, to ensure you take notice of the issue.
  2594. You can download and install GNU coreutils to get an 'rm' implementation
  2595. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2596. If you want to complete the configuration process using your problematic
  2597. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2598. to "yes", and re-run configure.
  2599. END
  2600. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2601. fi
  2602. fi
  2603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2604. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2605. # Check whether --enable-maintainer-mode was given.
  2606. if test "${enable_maintainer_mode+set}" = set; then :
  2607. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2608. else
  2609. USE_MAINTAINER_MODE=no
  2610. fi
  2611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2612. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2613. if test $USE_MAINTAINER_MODE = yes; then
  2614. MAINTAINER_MODE_TRUE=
  2615. MAINTAINER_MODE_FALSE='#'
  2616. else
  2617. MAINTAINER_MODE_TRUE='#'
  2618. MAINTAINER_MODE_FALSE=
  2619. fi
  2620. MAINT=$MAINTAINER_MODE_TRUE
  2621. ac_config_headers="$ac_config_headers src/config.h"
  2622. DEPDIR="${am__leading_dot}deps"
  2623. ac_config_commands="$ac_config_commands depfiles"
  2624. am_make=${MAKE-make}
  2625. cat > confinc << 'END'
  2626. am__doit:
  2627. @echo this is the am__doit target
  2628. .PHONY: am__doit
  2629. END
  2630. # If we don't find an include directive, just comment out the code.
  2631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2632. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2633. am__include="#"
  2634. am__quote=
  2635. _am_result=none
  2636. # First try GNU make style include.
  2637. echo "include confinc" > confmf
  2638. # Ignore all kinds of additional output from 'make'.
  2639. case `$am_make -s -f confmf 2> /dev/null` in #(
  2640. *the\ am__doit\ target*)
  2641. am__include=include
  2642. am__quote=
  2643. _am_result=GNU
  2644. ;;
  2645. esac
  2646. # Now try BSD make style include.
  2647. if test "$am__include" = "#"; then
  2648. echo '.include "confinc"' > confmf
  2649. case `$am_make -s -f confmf 2> /dev/null` in #(
  2650. *the\ am__doit\ target*)
  2651. am__include=.include
  2652. am__quote="\""
  2653. _am_result=BSD
  2654. ;;
  2655. esac
  2656. fi
  2657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2658. $as_echo "$_am_result" >&6; }
  2659. rm -f confinc confmf
  2660. # Check whether --enable-dependency-tracking was given.
  2661. if test "${enable_dependency_tracking+set}" = set; then :
  2662. enableval=$enable_dependency_tracking;
  2663. fi
  2664. if test "x$enable_dependency_tracking" != xno; then
  2665. am_depcomp="$ac_aux_dir/depcomp"
  2666. AMDEPBACKSLASH='\'
  2667. am__nodep='_no'
  2668. fi
  2669. if test "x$enable_dependency_tracking" != xno; then
  2670. AMDEP_TRUE=
  2671. AMDEP_FALSE='#'
  2672. else
  2673. AMDEP_TRUE='#'
  2674. AMDEP_FALSE=
  2675. fi
  2676. ac_ext=c
  2677. ac_cpp='$CPP $CPPFLAGS'
  2678. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2679. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2680. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2681. if test -n "$ac_tool_prefix"; then
  2682. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2683. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2685. $as_echo_n "checking for $ac_word... " >&6; }
  2686. if ${ac_cv_prog_CC+:} false; then :
  2687. $as_echo_n "(cached) " >&6
  2688. else
  2689. if test -n "$CC"; then
  2690. ac_cv_prog_CC="$CC" # Let the user override the test.
  2691. else
  2692. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2693. for as_dir in $PATH
  2694. do
  2695. IFS=$as_save_IFS
  2696. test -z "$as_dir" && as_dir=.
  2697. for ac_exec_ext in '' $ac_executable_extensions; do
  2698. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2699. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2700. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2701. break 2
  2702. fi
  2703. done
  2704. done
  2705. IFS=$as_save_IFS
  2706. fi
  2707. fi
  2708. CC=$ac_cv_prog_CC
  2709. if test -n "$CC"; then
  2710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2711. $as_echo "$CC" >&6; }
  2712. else
  2713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2714. $as_echo "no" >&6; }
  2715. fi
  2716. fi
  2717. if test -z "$ac_cv_prog_CC"; then
  2718. ac_ct_CC=$CC
  2719. # Extract the first word of "gcc", so it can be a program name with args.
  2720. set dummy gcc; ac_word=$2
  2721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2722. $as_echo_n "checking for $ac_word... " >&6; }
  2723. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2724. $as_echo_n "(cached) " >&6
  2725. else
  2726. if test -n "$ac_ct_CC"; then
  2727. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2728. else
  2729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2730. for as_dir in $PATH
  2731. do
  2732. IFS=$as_save_IFS
  2733. test -z "$as_dir" && as_dir=.
  2734. for ac_exec_ext in '' $ac_executable_extensions; do
  2735. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2736. ac_cv_prog_ac_ct_CC="gcc"
  2737. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2738. break 2
  2739. fi
  2740. done
  2741. done
  2742. IFS=$as_save_IFS
  2743. fi
  2744. fi
  2745. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2746. if test -n "$ac_ct_CC"; then
  2747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2748. $as_echo "$ac_ct_CC" >&6; }
  2749. else
  2750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2751. $as_echo "no" >&6; }
  2752. fi
  2753. if test "x$ac_ct_CC" = x; then
  2754. CC=""
  2755. else
  2756. case $cross_compiling:$ac_tool_warned in
  2757. yes:)
  2758. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2759. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2760. ac_tool_warned=yes ;;
  2761. esac
  2762. CC=$ac_ct_CC
  2763. fi
  2764. else
  2765. CC="$ac_cv_prog_CC"
  2766. fi
  2767. if test -z "$CC"; then
  2768. if test -n "$ac_tool_prefix"; then
  2769. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2770. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2772. $as_echo_n "checking for $ac_word... " >&6; }
  2773. if ${ac_cv_prog_CC+:} false; then :
  2774. $as_echo_n "(cached) " >&6
  2775. else
  2776. if test -n "$CC"; then
  2777. ac_cv_prog_CC="$CC" # Let the user override the test.
  2778. else
  2779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2780. for as_dir in $PATH
  2781. do
  2782. IFS=$as_save_IFS
  2783. test -z "$as_dir" && as_dir=.
  2784. for ac_exec_ext in '' $ac_executable_extensions; do
  2785. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2786. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2787. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2788. break 2
  2789. fi
  2790. done
  2791. done
  2792. IFS=$as_save_IFS
  2793. fi
  2794. fi
  2795. CC=$ac_cv_prog_CC
  2796. if test -n "$CC"; then
  2797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2798. $as_echo "$CC" >&6; }
  2799. else
  2800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2801. $as_echo "no" >&6; }
  2802. fi
  2803. fi
  2804. fi
  2805. if test -z "$CC"; then
  2806. # Extract the first word of "cc", so it can be a program name with args.
  2807. set dummy cc; ac_word=$2
  2808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2809. $as_echo_n "checking for $ac_word... " >&6; }
  2810. if ${ac_cv_prog_CC+:} false; then :
  2811. $as_echo_n "(cached) " >&6
  2812. else
  2813. if test -n "$CC"; then
  2814. ac_cv_prog_CC="$CC" # Let the user override the test.
  2815. else
  2816. ac_prog_rejected=no
  2817. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2818. for as_dir in $PATH
  2819. do
  2820. IFS=$as_save_IFS
  2821. test -z "$as_dir" && as_dir=.
  2822. for ac_exec_ext in '' $ac_executable_extensions; do
  2823. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2824. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2825. ac_prog_rejected=yes
  2826. continue
  2827. fi
  2828. ac_cv_prog_CC="cc"
  2829. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2830. break 2
  2831. fi
  2832. done
  2833. done
  2834. IFS=$as_save_IFS
  2835. if test $ac_prog_rejected = yes; then
  2836. # We found a bogon in the path, so make sure we never use it.
  2837. set dummy $ac_cv_prog_CC
  2838. shift
  2839. if test $# != 0; then
  2840. # We chose a different compiler from the bogus one.
  2841. # However, it has the same basename, so the bogon will be chosen
  2842. # first if we set CC to just the basename; use the full file name.
  2843. shift
  2844. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2845. fi
  2846. fi
  2847. fi
  2848. fi
  2849. CC=$ac_cv_prog_CC
  2850. if test -n "$CC"; then
  2851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2852. $as_echo "$CC" >&6; }
  2853. else
  2854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2855. $as_echo "no" >&6; }
  2856. fi
  2857. fi
  2858. if test -z "$CC"; then
  2859. if test -n "$ac_tool_prefix"; then
  2860. for ac_prog in cl.exe
  2861. do
  2862. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2863. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2865. $as_echo_n "checking for $ac_word... " >&6; }
  2866. if ${ac_cv_prog_CC+:} false; then :
  2867. $as_echo_n "(cached) " >&6
  2868. else
  2869. if test -n "$CC"; then
  2870. ac_cv_prog_CC="$CC" # Let the user override the test.
  2871. else
  2872. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2873. for as_dir in $PATH
  2874. do
  2875. IFS=$as_save_IFS
  2876. test -z "$as_dir" && as_dir=.
  2877. for ac_exec_ext in '' $ac_executable_extensions; do
  2878. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2879. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2880. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2881. break 2
  2882. fi
  2883. done
  2884. done
  2885. IFS=$as_save_IFS
  2886. fi
  2887. fi
  2888. CC=$ac_cv_prog_CC
  2889. if test -n "$CC"; then
  2890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2891. $as_echo "$CC" >&6; }
  2892. else
  2893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2894. $as_echo "no" >&6; }
  2895. fi
  2896. test -n "$CC" && break
  2897. done
  2898. fi
  2899. if test -z "$CC"; then
  2900. ac_ct_CC=$CC
  2901. for ac_prog in cl.exe
  2902. do
  2903. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2904. set dummy $ac_prog; ac_word=$2
  2905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2906. $as_echo_n "checking for $ac_word... " >&6; }
  2907. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2908. $as_echo_n "(cached) " >&6
  2909. else
  2910. if test -n "$ac_ct_CC"; then
  2911. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2912. else
  2913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2914. for as_dir in $PATH
  2915. do
  2916. IFS=$as_save_IFS
  2917. test -z "$as_dir" && as_dir=.
  2918. for ac_exec_ext in '' $ac_executable_extensions; do
  2919. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2920. ac_cv_prog_ac_ct_CC="$ac_prog"
  2921. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2922. break 2
  2923. fi
  2924. done
  2925. done
  2926. IFS=$as_save_IFS
  2927. fi
  2928. fi
  2929. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2930. if test -n "$ac_ct_CC"; then
  2931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2932. $as_echo "$ac_ct_CC" >&6; }
  2933. else
  2934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2935. $as_echo "no" >&6; }
  2936. fi
  2937. test -n "$ac_ct_CC" && break
  2938. done
  2939. if test "x$ac_ct_CC" = x; then
  2940. CC=""
  2941. else
  2942. case $cross_compiling:$ac_tool_warned in
  2943. yes:)
  2944. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2945. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2946. ac_tool_warned=yes ;;
  2947. esac
  2948. CC=$ac_ct_CC
  2949. fi
  2950. fi
  2951. fi
  2952. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2953. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2954. as_fn_error $? "no acceptable C compiler found in \$PATH
  2955. See \`config.log' for more details" "$LINENO" 5; }
  2956. # Provide some information about the compiler.
  2957. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2958. set X $ac_compile
  2959. ac_compiler=$2
  2960. for ac_option in --version -v -V -qversion; do
  2961. { { ac_try="$ac_compiler $ac_option >&5"
  2962. case "(($ac_try" in
  2963. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2964. *) ac_try_echo=$ac_try;;
  2965. esac
  2966. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2967. $as_echo "$ac_try_echo"; } >&5
  2968. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2969. ac_status=$?
  2970. if test -s conftest.err; then
  2971. sed '10a\
  2972. ... rest of stderr output deleted ...
  2973. 10q' conftest.err >conftest.er1
  2974. cat conftest.er1 >&5
  2975. fi
  2976. rm -f conftest.er1 conftest.err
  2977. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2978. test $ac_status = 0; }
  2979. done
  2980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2981. /* end confdefs.h. */
  2982. int
  2983. main ()
  2984. {
  2985. ;
  2986. return 0;
  2987. }
  2988. _ACEOF
  2989. ac_clean_files_save=$ac_clean_files
  2990. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2991. # Try to create an executable without -o first, disregard a.out.
  2992. # It will help us diagnose broken compilers, and finding out an intuition
  2993. # of exeext.
  2994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2995. $as_echo_n "checking whether the C compiler works... " >&6; }
  2996. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2997. # The possible output files:
  2998. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2999. ac_rmfiles=
  3000. for ac_file in $ac_files
  3001. do
  3002. case $ac_file in
  3003. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3004. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3005. esac
  3006. done
  3007. rm -f $ac_rmfiles
  3008. if { { ac_try="$ac_link_default"
  3009. case "(($ac_try" in
  3010. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3011. *) ac_try_echo=$ac_try;;
  3012. esac
  3013. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3014. $as_echo "$ac_try_echo"; } >&5
  3015. (eval "$ac_link_default") 2>&5
  3016. ac_status=$?
  3017. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3018. test $ac_status = 0; }; then :
  3019. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3020. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3021. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3022. # so that the user can short-circuit this test for compilers unknown to
  3023. # Autoconf.
  3024. for ac_file in $ac_files ''
  3025. do
  3026. test -f "$ac_file" || continue
  3027. case $ac_file in
  3028. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3029. ;;
  3030. [ab].out )
  3031. # We found the default executable, but exeext='' is most
  3032. # certainly right.
  3033. break;;
  3034. *.* )
  3035. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3036. then :; else
  3037. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3038. fi
  3039. # We set ac_cv_exeext here because the later test for it is not
  3040. # safe: cross compilers may not add the suffix if given an `-o'
  3041. # argument, so we may need to know it at that point already.
  3042. # Even if this section looks crufty: it has the advantage of
  3043. # actually working.
  3044. break;;
  3045. * )
  3046. break;;
  3047. esac
  3048. done
  3049. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3050. else
  3051. ac_file=''
  3052. fi
  3053. if test -z "$ac_file"; then :
  3054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3055. $as_echo "no" >&6; }
  3056. $as_echo "$as_me: failed program was:" >&5
  3057. sed 's/^/| /' conftest.$ac_ext >&5
  3058. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3059. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3060. as_fn_error 77 "C compiler cannot create executables
  3061. See \`config.log' for more details" "$LINENO" 5; }
  3062. else
  3063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3064. $as_echo "yes" >&6; }
  3065. fi
  3066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3067. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3069. $as_echo "$ac_file" >&6; }
  3070. ac_exeext=$ac_cv_exeext
  3071. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3072. ac_clean_files=$ac_clean_files_save
  3073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3074. $as_echo_n "checking for suffix of executables... " >&6; }
  3075. if { { ac_try="$ac_link"
  3076. case "(($ac_try" in
  3077. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3078. *) ac_try_echo=$ac_try;;
  3079. esac
  3080. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3081. $as_echo "$ac_try_echo"; } >&5
  3082. (eval "$ac_link") 2>&5
  3083. ac_status=$?
  3084. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3085. test $ac_status = 0; }; then :
  3086. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3087. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3088. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3089. # `rm'.
  3090. for ac_file in conftest.exe conftest conftest.*; do
  3091. test -f "$ac_file" || continue
  3092. case $ac_file in
  3093. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3094. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3095. break;;
  3096. * ) break;;
  3097. esac
  3098. done
  3099. else
  3100. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3101. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3102. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3103. See \`config.log' for more details" "$LINENO" 5; }
  3104. fi
  3105. rm -f conftest conftest$ac_cv_exeext
  3106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3107. $as_echo "$ac_cv_exeext" >&6; }
  3108. rm -f conftest.$ac_ext
  3109. EXEEXT=$ac_cv_exeext
  3110. ac_exeext=$EXEEXT
  3111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3112. /* end confdefs.h. */
  3113. #include <stdio.h>
  3114. int
  3115. main ()
  3116. {
  3117. FILE *f = fopen ("conftest.out", "w");
  3118. return ferror (f) || fclose (f) != 0;
  3119. ;
  3120. return 0;
  3121. }
  3122. _ACEOF
  3123. ac_clean_files="$ac_clean_files conftest.out"
  3124. # Check that the compiler produces executables we can run. If not, either
  3125. # the compiler is broken, or we cross compile.
  3126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3127. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3128. if test "$cross_compiling" != yes; then
  3129. { { ac_try="$ac_link"
  3130. case "(($ac_try" in
  3131. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3132. *) ac_try_echo=$ac_try;;
  3133. esac
  3134. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3135. $as_echo "$ac_try_echo"; } >&5
  3136. (eval "$ac_link") 2>&5
  3137. ac_status=$?
  3138. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3139. test $ac_status = 0; }
  3140. if { ac_try='./conftest$ac_cv_exeext'
  3141. { { case "(($ac_try" in
  3142. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3143. *) ac_try_echo=$ac_try;;
  3144. esac
  3145. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3146. $as_echo "$ac_try_echo"; } >&5
  3147. (eval "$ac_try") 2>&5
  3148. ac_status=$?
  3149. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3150. test $ac_status = 0; }; }; then
  3151. cross_compiling=no
  3152. else
  3153. if test "$cross_compiling" = maybe; then
  3154. cross_compiling=yes
  3155. else
  3156. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3157. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3158. as_fn_error $? "cannot run C compiled programs.
  3159. If you meant to cross compile, use \`--host'.
  3160. See \`config.log' for more details" "$LINENO" 5; }
  3161. fi
  3162. fi
  3163. fi
  3164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3165. $as_echo "$cross_compiling" >&6; }
  3166. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3167. ac_clean_files=$ac_clean_files_save
  3168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3169. $as_echo_n "checking for suffix of object files... " >&6; }
  3170. if ${ac_cv_objext+:} false; then :
  3171. $as_echo_n "(cached) " >&6
  3172. else
  3173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3174. /* end confdefs.h. */
  3175. int
  3176. main ()
  3177. {
  3178. ;
  3179. return 0;
  3180. }
  3181. _ACEOF
  3182. rm -f conftest.o conftest.obj
  3183. if { { ac_try="$ac_compile"
  3184. case "(($ac_try" in
  3185. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3186. *) ac_try_echo=$ac_try;;
  3187. esac
  3188. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3189. $as_echo "$ac_try_echo"; } >&5
  3190. (eval "$ac_compile") 2>&5
  3191. ac_status=$?
  3192. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3193. test $ac_status = 0; }; then :
  3194. for ac_file in conftest.o conftest.obj conftest.*; do
  3195. test -f "$ac_file" || continue;
  3196. case $ac_file in
  3197. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3198. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3199. break;;
  3200. esac
  3201. done
  3202. else
  3203. $as_echo "$as_me: failed program was:" >&5
  3204. sed 's/^/| /' conftest.$ac_ext >&5
  3205. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3206. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3207. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3208. See \`config.log' for more details" "$LINENO" 5; }
  3209. fi
  3210. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3211. fi
  3212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3213. $as_echo "$ac_cv_objext" >&6; }
  3214. OBJEXT=$ac_cv_objext
  3215. ac_objext=$OBJEXT
  3216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3217. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3218. if ${ac_cv_c_compiler_gnu+:} false; then :
  3219. $as_echo_n "(cached) " >&6
  3220. else
  3221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3222. /* end confdefs.h. */
  3223. int
  3224. main ()
  3225. {
  3226. #ifndef __GNUC__
  3227. choke me
  3228. #endif
  3229. ;
  3230. return 0;
  3231. }
  3232. _ACEOF
  3233. if ac_fn_c_try_compile "$LINENO"; then :
  3234. ac_compiler_gnu=yes
  3235. else
  3236. ac_compiler_gnu=no
  3237. fi
  3238. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3239. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3240. fi
  3241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3242. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3243. if test $ac_compiler_gnu = yes; then
  3244. GCC=yes
  3245. else
  3246. GCC=
  3247. fi
  3248. ac_test_CFLAGS=${CFLAGS+set}
  3249. ac_save_CFLAGS=$CFLAGS
  3250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3251. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3252. if ${ac_cv_prog_cc_g+:} false; then :
  3253. $as_echo_n "(cached) " >&6
  3254. else
  3255. ac_save_c_werror_flag=$ac_c_werror_flag
  3256. ac_c_werror_flag=yes
  3257. ac_cv_prog_cc_g=no
  3258. CFLAGS="-g"
  3259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3260. /* end confdefs.h. */
  3261. int
  3262. main ()
  3263. {
  3264. ;
  3265. return 0;
  3266. }
  3267. _ACEOF
  3268. if ac_fn_c_try_compile "$LINENO"; then :
  3269. ac_cv_prog_cc_g=yes
  3270. else
  3271. CFLAGS=""
  3272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3273. /* end confdefs.h. */
  3274. int
  3275. main ()
  3276. {
  3277. ;
  3278. return 0;
  3279. }
  3280. _ACEOF
  3281. if ac_fn_c_try_compile "$LINENO"; then :
  3282. else
  3283. ac_c_werror_flag=$ac_save_c_werror_flag
  3284. CFLAGS="-g"
  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. if ac_fn_c_try_compile "$LINENO"; then :
  3295. ac_cv_prog_cc_g=yes
  3296. fi
  3297. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3298. fi
  3299. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3300. fi
  3301. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3302. ac_c_werror_flag=$ac_save_c_werror_flag
  3303. fi
  3304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3305. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3306. if test "$ac_test_CFLAGS" = set; then
  3307. CFLAGS=$ac_save_CFLAGS
  3308. elif test $ac_cv_prog_cc_g = yes; then
  3309. if test "$GCC" = yes; then
  3310. CFLAGS="-g -O2"
  3311. else
  3312. CFLAGS="-g"
  3313. fi
  3314. else
  3315. if test "$GCC" = yes; then
  3316. CFLAGS="-O2"
  3317. else
  3318. CFLAGS=
  3319. fi
  3320. fi
  3321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3322. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3323. if ${ac_cv_prog_cc_c89+:} false; then :
  3324. $as_echo_n "(cached) " >&6
  3325. else
  3326. ac_cv_prog_cc_c89=no
  3327. ac_save_CC=$CC
  3328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3329. /* end confdefs.h. */
  3330. #include <stdarg.h>
  3331. #include <stdio.h>
  3332. struct stat;
  3333. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3334. struct buf { int x; };
  3335. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3336. static char *e (p, i)
  3337. char **p;
  3338. int i;
  3339. {
  3340. return p[i];
  3341. }
  3342. static char *f (char * (*g) (char **, int), char **p, ...)
  3343. {
  3344. char *s;
  3345. va_list v;
  3346. va_start (v,p);
  3347. s = g (p, va_arg (v,int));
  3348. va_end (v);
  3349. return s;
  3350. }
  3351. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3352. function prototypes and stuff, but not '\xHH' hex character constants.
  3353. These don't provoke an error unfortunately, instead are silently treated
  3354. as 'x'. The following induces an error, until -std is added to get
  3355. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3356. array size at least. It's necessary to write '\x00'==0 to get something
  3357. that's true only with -std. */
  3358. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3359. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3360. inside strings and character constants. */
  3361. #define FOO(x) 'x'
  3362. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3363. int test (int i, double x);
  3364. struct s1 {int (*f) (int a);};
  3365. struct s2 {int (*f) (double a);};
  3366. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3367. int argc;
  3368. char **argv;
  3369. int
  3370. main ()
  3371. {
  3372. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3373. ;
  3374. return 0;
  3375. }
  3376. _ACEOF
  3377. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3378. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3379. do
  3380. CC="$ac_save_CC $ac_arg"
  3381. if ac_fn_c_try_compile "$LINENO"; then :
  3382. ac_cv_prog_cc_c89=$ac_arg
  3383. fi
  3384. rm -f core conftest.err conftest.$ac_objext
  3385. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3386. done
  3387. rm -f conftest.$ac_ext
  3388. CC=$ac_save_CC
  3389. fi
  3390. # AC_CACHE_VAL
  3391. case "x$ac_cv_prog_cc_c89" in
  3392. x)
  3393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3394. $as_echo "none needed" >&6; } ;;
  3395. xno)
  3396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3397. $as_echo "unsupported" >&6; } ;;
  3398. *)
  3399. CC="$CC $ac_cv_prog_cc_c89"
  3400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3401. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3402. esac
  3403. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3404. fi
  3405. ac_ext=c
  3406. ac_cpp='$CPP $CPPFLAGS'
  3407. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3408. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3409. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3410. ac_ext=c
  3411. ac_cpp='$CPP $CPPFLAGS'
  3412. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3413. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3414. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3416. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3417. if ${am_cv_prog_cc_c_o+:} false; then :
  3418. $as_echo_n "(cached) " >&6
  3419. else
  3420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3421. /* end confdefs.h. */
  3422. int
  3423. main ()
  3424. {
  3425. ;
  3426. return 0;
  3427. }
  3428. _ACEOF
  3429. # Make sure it works both with $CC and with simple cc.
  3430. # Following AC_PROG_CC_C_O, we do the test twice because some
  3431. # compilers refuse to overwrite an existing .o file with -o,
  3432. # though they will create one.
  3433. am_cv_prog_cc_c_o=yes
  3434. for am_i in 1 2; do
  3435. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3436. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3437. ac_status=$?
  3438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3439. (exit $ac_status); } \
  3440. && test -f conftest2.$ac_objext; then
  3441. : OK
  3442. else
  3443. am_cv_prog_cc_c_o=no
  3444. break
  3445. fi
  3446. done
  3447. rm -f core conftest*
  3448. unset am_i
  3449. fi
  3450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3451. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3452. if test "$am_cv_prog_cc_c_o" != yes; then
  3453. # Losing compiler, so override with the script.
  3454. # FIXME: It is wrong to rewrite CC.
  3455. # But if we don't then we get into trouble of one sort or another.
  3456. # A longer-term fix would be to have automake use am__CC in this case,
  3457. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3458. CC="$am_aux_dir/compile $CC"
  3459. fi
  3460. ac_ext=c
  3461. ac_cpp='$CPP $CPPFLAGS'
  3462. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3463. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3464. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3465. depcc="$CC" am_compiler_list=
  3466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3467. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3468. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3469. $as_echo_n "(cached) " >&6
  3470. else
  3471. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3472. # We make a subdir and do the tests there. Otherwise we can end up
  3473. # making bogus files that we don't know about and never remove. For
  3474. # instance it was reported that on HP-UX the gcc test will end up
  3475. # making a dummy file named 'D' -- because '-MD' means "put the output
  3476. # in D".
  3477. rm -rf conftest.dir
  3478. mkdir conftest.dir
  3479. # Copy depcomp to subdir because otherwise we won't find it if we're
  3480. # using a relative directory.
  3481. cp "$am_depcomp" conftest.dir
  3482. cd conftest.dir
  3483. # We will build objects and dependencies in a subdirectory because
  3484. # it helps to detect inapplicable dependency modes. For instance
  3485. # both Tru64's cc and ICC support -MD to output dependencies as a
  3486. # side effect of compilation, but ICC will put the dependencies in
  3487. # the current directory while Tru64 will put them in the object
  3488. # directory.
  3489. mkdir sub
  3490. am_cv_CC_dependencies_compiler_type=none
  3491. if test "$am_compiler_list" = ""; then
  3492. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3493. fi
  3494. am__universal=false
  3495. case " $depcc " in #(
  3496. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3497. esac
  3498. for depmode in $am_compiler_list; do
  3499. # Setup a source with many dependencies, because some compilers
  3500. # like to wrap large dependency lists on column 80 (with \), and
  3501. # we should not choose a depcomp mode which is confused by this.
  3502. #
  3503. # We need to recreate these files for each test, as the compiler may
  3504. # overwrite some of them when testing with obscure command lines.
  3505. # This happens at least with the AIX C compiler.
  3506. : > sub/conftest.c
  3507. for i in 1 2 3 4 5 6; do
  3508. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3509. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3510. # Solaris 10 /bin/sh.
  3511. echo '/* dummy */' > sub/conftst$i.h
  3512. done
  3513. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3514. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3515. # mode. It turns out that the SunPro C++ compiler does not properly
  3516. # handle '-M -o', and we need to detect this. Also, some Intel
  3517. # versions had trouble with output in subdirs.
  3518. am__obj=sub/conftest.${OBJEXT-o}
  3519. am__minus_obj="-o $am__obj"
  3520. case $depmode in
  3521. gcc)
  3522. # This depmode causes a compiler race in universal mode.
  3523. test "$am__universal" = false || continue
  3524. ;;
  3525. nosideeffect)
  3526. # After this tag, mechanisms are not by side-effect, so they'll
  3527. # only be used when explicitly requested.
  3528. if test "x$enable_dependency_tracking" = xyes; then
  3529. continue
  3530. else
  3531. break
  3532. fi
  3533. ;;
  3534. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3535. # This compiler won't grok '-c -o', but also, the minuso test has
  3536. # not run yet. These depmodes are late enough in the game, and
  3537. # so weak that their functioning should not be impacted.
  3538. am__obj=conftest.${OBJEXT-o}
  3539. am__minus_obj=
  3540. ;;
  3541. none) break ;;
  3542. esac
  3543. if depmode=$depmode \
  3544. source=sub/conftest.c object=$am__obj \
  3545. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3546. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3547. >/dev/null 2>conftest.err &&
  3548. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3549. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3550. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3551. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3552. # icc doesn't choke on unknown options, it will just issue warnings
  3553. # or remarks (even with -Werror). So we grep stderr for any message
  3554. # that says an option was ignored or not supported.
  3555. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3556. # icc: Command line warning: ignoring option '-M'; no argument required
  3557. # The diagnosis changed in icc 8.0:
  3558. # icc: Command line remark: option '-MP' not supported
  3559. if (grep 'ignoring option' conftest.err ||
  3560. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3561. am_cv_CC_dependencies_compiler_type=$depmode
  3562. break
  3563. fi
  3564. fi
  3565. done
  3566. cd ..
  3567. rm -rf conftest.dir
  3568. else
  3569. am_cv_CC_dependencies_compiler_type=none
  3570. fi
  3571. fi
  3572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3573. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3574. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3575. if
  3576. test "x$enable_dependency_tracking" != xno \
  3577. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3578. am__fastdepCC_TRUE=
  3579. am__fastdepCC_FALSE='#'
  3580. else
  3581. am__fastdepCC_TRUE='#'
  3582. am__fastdepCC_FALSE=
  3583. fi
  3584. # By default we simply use the C compiler to build assembly code.
  3585. test "${CCAS+set}" = set || CCAS=$CC
  3586. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  3587. depcc="$CCAS" am_compiler_list=
  3588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3589. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3590. if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
  3591. $as_echo_n "(cached) " >&6
  3592. else
  3593. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3594. # We make a subdir and do the tests there. Otherwise we can end up
  3595. # making bogus files that we don't know about and never remove. For
  3596. # instance it was reported that on HP-UX the gcc test will end up
  3597. # making a dummy file named 'D' -- because '-MD' means "put the output
  3598. # in D".
  3599. rm -rf conftest.dir
  3600. mkdir conftest.dir
  3601. # Copy depcomp to subdir because otherwise we won't find it if we're
  3602. # using a relative directory.
  3603. cp "$am_depcomp" conftest.dir
  3604. cd conftest.dir
  3605. # We will build objects and dependencies in a subdirectory because
  3606. # it helps to detect inapplicable dependency modes. For instance
  3607. # both Tru64's cc and ICC support -MD to output dependencies as a
  3608. # side effect of compilation, but ICC will put the dependencies in
  3609. # the current directory while Tru64 will put them in the object
  3610. # directory.
  3611. mkdir sub
  3612. am_cv_CCAS_dependencies_compiler_type=none
  3613. if test "$am_compiler_list" = ""; then
  3614. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3615. fi
  3616. am__universal=false
  3617. for depmode in $am_compiler_list; do
  3618. # Setup a source with many dependencies, because some compilers
  3619. # like to wrap large dependency lists on column 80 (with \), and
  3620. # we should not choose a depcomp mode which is confused by this.
  3621. #
  3622. # We need to recreate these files for each test, as the compiler may
  3623. # overwrite some of them when testing with obscure command lines.
  3624. # This happens at least with the AIX C compiler.
  3625. : > sub/conftest.c
  3626. for i in 1 2 3 4 5 6; do
  3627. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3628. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3629. # Solaris 10 /bin/sh.
  3630. echo '/* dummy */' > sub/conftst$i.h
  3631. done
  3632. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3633. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3634. # mode. It turns out that the SunPro C++ compiler does not properly
  3635. # handle '-M -o', and we need to detect this. Also, some Intel
  3636. # versions had trouble with output in subdirs.
  3637. am__obj=sub/conftest.${OBJEXT-o}
  3638. am__minus_obj="-o $am__obj"
  3639. case $depmode in
  3640. gcc)
  3641. # This depmode causes a compiler race in universal mode.
  3642. test "$am__universal" = false || continue
  3643. ;;
  3644. nosideeffect)
  3645. # After this tag, mechanisms are not by side-effect, so they'll
  3646. # only be used when explicitly requested.
  3647. if test "x$enable_dependency_tracking" = xyes; then
  3648. continue
  3649. else
  3650. break
  3651. fi
  3652. ;;
  3653. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3654. # This compiler won't grok '-c -o', but also, the minuso test has
  3655. # not run yet. These depmodes are late enough in the game, and
  3656. # so weak that their functioning should not be impacted.
  3657. am__obj=conftest.${OBJEXT-o}
  3658. am__minus_obj=
  3659. ;;
  3660. none) break ;;
  3661. esac
  3662. if depmode=$depmode \
  3663. source=sub/conftest.c object=$am__obj \
  3664. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3665. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3666. >/dev/null 2>conftest.err &&
  3667. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3668. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3669. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3670. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3671. # icc doesn't choke on unknown options, it will just issue warnings
  3672. # or remarks (even with -Werror). So we grep stderr for any message
  3673. # that says an option was ignored or not supported.
  3674. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3675. # icc: Command line warning: ignoring option '-M'; no argument required
  3676. # The diagnosis changed in icc 8.0:
  3677. # icc: Command line remark: option '-MP' not supported
  3678. if (grep 'ignoring option' conftest.err ||
  3679. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3680. am_cv_CCAS_dependencies_compiler_type=$depmode
  3681. break
  3682. fi
  3683. fi
  3684. done
  3685. cd ..
  3686. rm -rf conftest.dir
  3687. else
  3688. am_cv_CCAS_dependencies_compiler_type=none
  3689. fi
  3690. fi
  3691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  3692. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  3693. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  3694. if
  3695. test "x$enable_dependency_tracking" != xno \
  3696. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  3697. am__fastdepCCAS_TRUE=
  3698. am__fastdepCCAS_FALSE='#'
  3699. else
  3700. am__fastdepCCAS_TRUE='#'
  3701. am__fastdepCCAS_FALSE=
  3702. fi
  3703. case `pwd` in
  3704. *\ * | *\ *)
  3705. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3706. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3707. esac
  3708. macro_version='2.4.6'
  3709. macro_revision='2.4.6'
  3710. ltmain=$ac_aux_dir/ltmain.sh
  3711. # Backslashify metacharacters that are still active within
  3712. # double-quoted strings.
  3713. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3714. # Same as above, but do not quote variable references.
  3715. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3716. # Sed substitution to delay expansion of an escaped shell variable in a
  3717. # double_quote_subst'ed string.
  3718. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3719. # Sed substitution to delay expansion of an escaped single quote.
  3720. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3721. # Sed substitution to avoid accidental globbing in evaled expressions
  3722. no_glob_subst='s/\*/\\\*/g'
  3723. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3724. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3725. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3727. $as_echo_n "checking how to print strings... " >&6; }
  3728. # Test print first, because it will be a builtin if present.
  3729. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3730. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3731. ECHO='print -r --'
  3732. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3733. ECHO='printf %s\n'
  3734. else
  3735. # Use this function as a fallback that always works.
  3736. func_fallback_echo ()
  3737. {
  3738. eval 'cat <<_LTECHO_EOF
  3739. $1
  3740. _LTECHO_EOF'
  3741. }
  3742. ECHO='func_fallback_echo'
  3743. fi
  3744. # func_echo_all arg...
  3745. # Invoke $ECHO with all args, space-separated.
  3746. func_echo_all ()
  3747. {
  3748. $ECHO ""
  3749. }
  3750. case $ECHO in
  3751. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3752. $as_echo "printf" >&6; } ;;
  3753. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3754. $as_echo "print -r" >&6; } ;;
  3755. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3756. $as_echo "cat" >&6; } ;;
  3757. esac
  3758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3759. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3760. if ${ac_cv_path_SED+:} false; then :
  3761. $as_echo_n "(cached) " >&6
  3762. else
  3763. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3764. for ac_i in 1 2 3 4 5 6 7; do
  3765. ac_script="$ac_script$as_nl$ac_script"
  3766. done
  3767. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3768. { ac_script=; unset ac_script;}
  3769. if test -z "$SED"; then
  3770. ac_path_SED_found=false
  3771. # Loop through the user's path and test for each of PROGNAME-LIST
  3772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3773. for as_dir in $PATH
  3774. do
  3775. IFS=$as_save_IFS
  3776. test -z "$as_dir" && as_dir=.
  3777. for ac_prog in sed gsed; do
  3778. for ac_exec_ext in '' $ac_executable_extensions; do
  3779. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3780. as_fn_executable_p "$ac_path_SED" || continue
  3781. # Check for GNU ac_path_SED and select it if it is found.
  3782. # Check for GNU $ac_path_SED
  3783. case `"$ac_path_SED" --version 2>&1` in
  3784. *GNU*)
  3785. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3786. *)
  3787. ac_count=0
  3788. $as_echo_n 0123456789 >"conftest.in"
  3789. while :
  3790. do
  3791. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3792. mv "conftest.tmp" "conftest.in"
  3793. cp "conftest.in" "conftest.nl"
  3794. $as_echo '' >> "conftest.nl"
  3795. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3796. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3797. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3798. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3799. # Best one so far, save it but keep looking for a better one
  3800. ac_cv_path_SED="$ac_path_SED"
  3801. ac_path_SED_max=$ac_count
  3802. fi
  3803. # 10*(2^10) chars as input seems more than enough
  3804. test $ac_count -gt 10 && break
  3805. done
  3806. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3807. esac
  3808. $ac_path_SED_found && break 3
  3809. done
  3810. done
  3811. done
  3812. IFS=$as_save_IFS
  3813. if test -z "$ac_cv_path_SED"; then
  3814. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3815. fi
  3816. else
  3817. ac_cv_path_SED=$SED
  3818. fi
  3819. fi
  3820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3821. $as_echo "$ac_cv_path_SED" >&6; }
  3822. SED="$ac_cv_path_SED"
  3823. rm -f conftest.sed
  3824. test -z "$SED" && SED=sed
  3825. Xsed="$SED -e 1s/^X//"
  3826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3827. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3828. if ${ac_cv_path_GREP+:} false; then :
  3829. $as_echo_n "(cached) " >&6
  3830. else
  3831. if test -z "$GREP"; then
  3832. ac_path_GREP_found=false
  3833. # Loop through the user's path and test for each of PROGNAME-LIST
  3834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3835. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3836. do
  3837. IFS=$as_save_IFS
  3838. test -z "$as_dir" && as_dir=.
  3839. for ac_prog in grep ggrep; do
  3840. for ac_exec_ext in '' $ac_executable_extensions; do
  3841. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3842. as_fn_executable_p "$ac_path_GREP" || continue
  3843. # Check for GNU ac_path_GREP and select it if it is found.
  3844. # Check for GNU $ac_path_GREP
  3845. case `"$ac_path_GREP" --version 2>&1` in
  3846. *GNU*)
  3847. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3848. *)
  3849. ac_count=0
  3850. $as_echo_n 0123456789 >"conftest.in"
  3851. while :
  3852. do
  3853. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3854. mv "conftest.tmp" "conftest.in"
  3855. cp "conftest.in" "conftest.nl"
  3856. $as_echo 'GREP' >> "conftest.nl"
  3857. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3858. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3859. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3860. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3861. # Best one so far, save it but keep looking for a better one
  3862. ac_cv_path_GREP="$ac_path_GREP"
  3863. ac_path_GREP_max=$ac_count
  3864. fi
  3865. # 10*(2^10) chars as input seems more than enough
  3866. test $ac_count -gt 10 && break
  3867. done
  3868. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3869. esac
  3870. $ac_path_GREP_found && break 3
  3871. done
  3872. done
  3873. done
  3874. IFS=$as_save_IFS
  3875. if test -z "$ac_cv_path_GREP"; then
  3876. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3877. fi
  3878. else
  3879. ac_cv_path_GREP=$GREP
  3880. fi
  3881. fi
  3882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3883. $as_echo "$ac_cv_path_GREP" >&6; }
  3884. GREP="$ac_cv_path_GREP"
  3885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3886. $as_echo_n "checking for egrep... " >&6; }
  3887. if ${ac_cv_path_EGREP+:} false; then :
  3888. $as_echo_n "(cached) " >&6
  3889. else
  3890. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3891. then ac_cv_path_EGREP="$GREP -E"
  3892. else
  3893. if test -z "$EGREP"; then
  3894. ac_path_EGREP_found=false
  3895. # Loop through the user's path and test for each of PROGNAME-LIST
  3896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3897. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3898. do
  3899. IFS=$as_save_IFS
  3900. test -z "$as_dir" && as_dir=.
  3901. for ac_prog in egrep; do
  3902. for ac_exec_ext in '' $ac_executable_extensions; do
  3903. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3904. as_fn_executable_p "$ac_path_EGREP" || continue
  3905. # Check for GNU ac_path_EGREP and select it if it is found.
  3906. # Check for GNU $ac_path_EGREP
  3907. case `"$ac_path_EGREP" --version 2>&1` in
  3908. *GNU*)
  3909. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3910. *)
  3911. ac_count=0
  3912. $as_echo_n 0123456789 >"conftest.in"
  3913. while :
  3914. do
  3915. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3916. mv "conftest.tmp" "conftest.in"
  3917. cp "conftest.in" "conftest.nl"
  3918. $as_echo 'EGREP' >> "conftest.nl"
  3919. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3920. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3921. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3922. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3923. # Best one so far, save it but keep looking for a better one
  3924. ac_cv_path_EGREP="$ac_path_EGREP"
  3925. ac_path_EGREP_max=$ac_count
  3926. fi
  3927. # 10*(2^10) chars as input seems more than enough
  3928. test $ac_count -gt 10 && break
  3929. done
  3930. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3931. esac
  3932. $ac_path_EGREP_found && break 3
  3933. done
  3934. done
  3935. done
  3936. IFS=$as_save_IFS
  3937. if test -z "$ac_cv_path_EGREP"; then
  3938. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3939. fi
  3940. else
  3941. ac_cv_path_EGREP=$EGREP
  3942. fi
  3943. fi
  3944. fi
  3945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3946. $as_echo "$ac_cv_path_EGREP" >&6; }
  3947. EGREP="$ac_cv_path_EGREP"
  3948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3949. $as_echo_n "checking for fgrep... " >&6; }
  3950. if ${ac_cv_path_FGREP+:} false; then :
  3951. $as_echo_n "(cached) " >&6
  3952. else
  3953. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3954. then ac_cv_path_FGREP="$GREP -F"
  3955. else
  3956. if test -z "$FGREP"; then
  3957. ac_path_FGREP_found=false
  3958. # Loop through the user's path and test for each of PROGNAME-LIST
  3959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3960. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3961. do
  3962. IFS=$as_save_IFS
  3963. test -z "$as_dir" && as_dir=.
  3964. for ac_prog in fgrep; do
  3965. for ac_exec_ext in '' $ac_executable_extensions; do
  3966. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3967. as_fn_executable_p "$ac_path_FGREP" || continue
  3968. # Check for GNU ac_path_FGREP and select it if it is found.
  3969. # Check for GNU $ac_path_FGREP
  3970. case `"$ac_path_FGREP" --version 2>&1` in
  3971. *GNU*)
  3972. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3973. *)
  3974. ac_count=0
  3975. $as_echo_n 0123456789 >"conftest.in"
  3976. while :
  3977. do
  3978. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3979. mv "conftest.tmp" "conftest.in"
  3980. cp "conftest.in" "conftest.nl"
  3981. $as_echo 'FGREP' >> "conftest.nl"
  3982. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3983. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3984. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3985. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3986. # Best one so far, save it but keep looking for a better one
  3987. ac_cv_path_FGREP="$ac_path_FGREP"
  3988. ac_path_FGREP_max=$ac_count
  3989. fi
  3990. # 10*(2^10) chars as input seems more than enough
  3991. test $ac_count -gt 10 && break
  3992. done
  3993. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3994. esac
  3995. $ac_path_FGREP_found && break 3
  3996. done
  3997. done
  3998. done
  3999. IFS=$as_save_IFS
  4000. if test -z "$ac_cv_path_FGREP"; then
  4001. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4002. fi
  4003. else
  4004. ac_cv_path_FGREP=$FGREP
  4005. fi
  4006. fi
  4007. fi
  4008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4009. $as_echo "$ac_cv_path_FGREP" >&6; }
  4010. FGREP="$ac_cv_path_FGREP"
  4011. test -z "$GREP" && GREP=grep
  4012. # Check whether --with-gnu-ld was given.
  4013. if test "${with_gnu_ld+set}" = set; then :
  4014. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4015. else
  4016. with_gnu_ld=no
  4017. fi
  4018. ac_prog=ld
  4019. if test yes = "$GCC"; then
  4020. # Check if gcc -print-prog-name=ld gives a path.
  4021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4022. $as_echo_n "checking for ld used by $CC... " >&6; }
  4023. case $host in
  4024. *-*-mingw*)
  4025. # gcc leaves a trailing carriage return, which upsets mingw
  4026. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4027. *)
  4028. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4029. esac
  4030. case $ac_prog in
  4031. # Accept absolute paths.
  4032. [\\/]* | ?:[\\/]*)
  4033. re_direlt='/[^/][^/]*/\.\./'
  4034. # Canonicalize the pathname of ld
  4035. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4036. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4037. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4038. done
  4039. test -z "$LD" && LD=$ac_prog
  4040. ;;
  4041. "")
  4042. # If it fails, then pretend we aren't using GCC.
  4043. ac_prog=ld
  4044. ;;
  4045. *)
  4046. # If it is relative, then search for the first ld in PATH.
  4047. with_gnu_ld=unknown
  4048. ;;
  4049. esac
  4050. elif test yes = "$with_gnu_ld"; then
  4051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4052. $as_echo_n "checking for GNU ld... " >&6; }
  4053. else
  4054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4055. $as_echo_n "checking for non-GNU ld... " >&6; }
  4056. fi
  4057. if ${lt_cv_path_LD+:} false; then :
  4058. $as_echo_n "(cached) " >&6
  4059. else
  4060. if test -z "$LD"; then
  4061. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4062. for ac_dir in $PATH; do
  4063. IFS=$lt_save_ifs
  4064. test -z "$ac_dir" && ac_dir=.
  4065. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4066. lt_cv_path_LD=$ac_dir/$ac_prog
  4067. # Check to see if the program is GNU ld. I'd rather use --version,
  4068. # but apparently some variants of GNU ld only accept -v.
  4069. # Break only if it was the GNU/non-GNU ld that we prefer.
  4070. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4071. *GNU* | *'with BFD'*)
  4072. test no != "$with_gnu_ld" && break
  4073. ;;
  4074. *)
  4075. test yes != "$with_gnu_ld" && break
  4076. ;;
  4077. esac
  4078. fi
  4079. done
  4080. IFS=$lt_save_ifs
  4081. else
  4082. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4083. fi
  4084. fi
  4085. LD=$lt_cv_path_LD
  4086. if test -n "$LD"; then
  4087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4088. $as_echo "$LD" >&6; }
  4089. else
  4090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4091. $as_echo "no" >&6; }
  4092. fi
  4093. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4095. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4096. if ${lt_cv_prog_gnu_ld+:} false; then :
  4097. $as_echo_n "(cached) " >&6
  4098. else
  4099. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4100. case `$LD -v 2>&1 </dev/null` in
  4101. *GNU* | *'with BFD'*)
  4102. lt_cv_prog_gnu_ld=yes
  4103. ;;
  4104. *)
  4105. lt_cv_prog_gnu_ld=no
  4106. ;;
  4107. esac
  4108. fi
  4109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4110. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4111. with_gnu_ld=$lt_cv_prog_gnu_ld
  4112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4113. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4114. if ${lt_cv_path_NM+:} false; then :
  4115. $as_echo_n "(cached) " >&6
  4116. else
  4117. if test -n "$NM"; then
  4118. # Let the user override the test.
  4119. lt_cv_path_NM=$NM
  4120. else
  4121. lt_nm_to_check=${ac_tool_prefix}nm
  4122. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4123. lt_nm_to_check="$lt_nm_to_check nm"
  4124. fi
  4125. for lt_tmp_nm in $lt_nm_to_check; do
  4126. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4127. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4128. IFS=$lt_save_ifs
  4129. test -z "$ac_dir" && ac_dir=.
  4130. tmp_nm=$ac_dir/$lt_tmp_nm
  4131. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4132. # Check to see if the nm accepts a BSD-compat flag.
  4133. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4134. # nm: unknown option "B" ignored
  4135. # Tru64's nm complains that /dev/null is an invalid object file
  4136. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4137. case $build_os in
  4138. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4139. *) lt_bad_file=/dev/null ;;
  4140. esac
  4141. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4142. *$lt_bad_file* | *'Invalid file or object type'*)
  4143. lt_cv_path_NM="$tmp_nm -B"
  4144. break 2
  4145. ;;
  4146. *)
  4147. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4148. */dev/null*)
  4149. lt_cv_path_NM="$tmp_nm -p"
  4150. break 2
  4151. ;;
  4152. *)
  4153. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4154. continue # so that we can try to find one that supports BSD flags
  4155. ;;
  4156. esac
  4157. ;;
  4158. esac
  4159. fi
  4160. done
  4161. IFS=$lt_save_ifs
  4162. done
  4163. : ${lt_cv_path_NM=no}
  4164. fi
  4165. fi
  4166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4167. $as_echo "$lt_cv_path_NM" >&6; }
  4168. if test no != "$lt_cv_path_NM"; then
  4169. NM=$lt_cv_path_NM
  4170. else
  4171. # Didn't find any BSD compatible name lister, look for dumpbin.
  4172. if test -n "$DUMPBIN"; then :
  4173. # Let the user override the test.
  4174. else
  4175. if test -n "$ac_tool_prefix"; then
  4176. for ac_prog in dumpbin "link -dump"
  4177. do
  4178. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4179. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4181. $as_echo_n "checking for $ac_word... " >&6; }
  4182. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4183. $as_echo_n "(cached) " >&6
  4184. else
  4185. if test -n "$DUMPBIN"; then
  4186. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4187. else
  4188. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4189. for as_dir in $PATH
  4190. do
  4191. IFS=$as_save_IFS
  4192. test -z "$as_dir" && as_dir=.
  4193. for ac_exec_ext in '' $ac_executable_extensions; do
  4194. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4195. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4196. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4197. break 2
  4198. fi
  4199. done
  4200. done
  4201. IFS=$as_save_IFS
  4202. fi
  4203. fi
  4204. DUMPBIN=$ac_cv_prog_DUMPBIN
  4205. if test -n "$DUMPBIN"; then
  4206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4207. $as_echo "$DUMPBIN" >&6; }
  4208. else
  4209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4210. $as_echo "no" >&6; }
  4211. fi
  4212. test -n "$DUMPBIN" && break
  4213. done
  4214. fi
  4215. if test -z "$DUMPBIN"; then
  4216. ac_ct_DUMPBIN=$DUMPBIN
  4217. for ac_prog in dumpbin "link -dump"
  4218. do
  4219. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4220. set dummy $ac_prog; ac_word=$2
  4221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4222. $as_echo_n "checking for $ac_word... " >&6; }
  4223. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4224. $as_echo_n "(cached) " >&6
  4225. else
  4226. if test -n "$ac_ct_DUMPBIN"; then
  4227. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4228. else
  4229. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4230. for as_dir in $PATH
  4231. do
  4232. IFS=$as_save_IFS
  4233. test -z "$as_dir" && as_dir=.
  4234. for ac_exec_ext in '' $ac_executable_extensions; do
  4235. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4236. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4237. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4238. break 2
  4239. fi
  4240. done
  4241. done
  4242. IFS=$as_save_IFS
  4243. fi
  4244. fi
  4245. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4246. if test -n "$ac_ct_DUMPBIN"; then
  4247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4248. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4249. else
  4250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4251. $as_echo "no" >&6; }
  4252. fi
  4253. test -n "$ac_ct_DUMPBIN" && break
  4254. done
  4255. if test "x$ac_ct_DUMPBIN" = x; then
  4256. DUMPBIN=":"
  4257. else
  4258. case $cross_compiling:$ac_tool_warned in
  4259. yes:)
  4260. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4261. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4262. ac_tool_warned=yes ;;
  4263. esac
  4264. DUMPBIN=$ac_ct_DUMPBIN
  4265. fi
  4266. fi
  4267. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4268. *COFF*)
  4269. DUMPBIN="$DUMPBIN -symbols -headers"
  4270. ;;
  4271. *)
  4272. DUMPBIN=:
  4273. ;;
  4274. esac
  4275. fi
  4276. if test : != "$DUMPBIN"; then
  4277. NM=$DUMPBIN
  4278. fi
  4279. fi
  4280. test -z "$NM" && NM=nm
  4281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4282. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4283. if ${lt_cv_nm_interface+:} false; then :
  4284. $as_echo_n "(cached) " >&6
  4285. else
  4286. lt_cv_nm_interface="BSD nm"
  4287. echo "int some_variable = 0;" > conftest.$ac_ext
  4288. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4289. (eval "$ac_compile" 2>conftest.err)
  4290. cat conftest.err >&5
  4291. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4292. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4293. cat conftest.err >&5
  4294. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4295. cat conftest.out >&5
  4296. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4297. lt_cv_nm_interface="MS dumpbin"
  4298. fi
  4299. rm -f conftest*
  4300. fi
  4301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4302. $as_echo "$lt_cv_nm_interface" >&6; }
  4303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4304. $as_echo_n "checking whether ln -s works... " >&6; }
  4305. LN_S=$as_ln_s
  4306. if test "$LN_S" = "ln -s"; then
  4307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4308. $as_echo "yes" >&6; }
  4309. else
  4310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4311. $as_echo "no, using $LN_S" >&6; }
  4312. fi
  4313. # find the maximum length of command line arguments
  4314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4315. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4316. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4317. $as_echo_n "(cached) " >&6
  4318. else
  4319. i=0
  4320. teststring=ABCD
  4321. case $build_os in
  4322. msdosdjgpp*)
  4323. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4324. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4325. # during glob expansion). Even if it were fixed, the result of this
  4326. # check would be larger than it should be.
  4327. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4328. ;;
  4329. gnu*)
  4330. # Under GNU Hurd, this test is not required because there is
  4331. # no limit to the length of command line arguments.
  4332. # Libtool will interpret -1 as no limit whatsoever
  4333. lt_cv_sys_max_cmd_len=-1;
  4334. ;;
  4335. cygwin* | mingw* | cegcc*)
  4336. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4337. # about 5 minutes as the teststring grows exponentially.
  4338. # Worse, since 9x/ME are not pre-emptively multitasking,
  4339. # you end up with a "frozen" computer, even though with patience
  4340. # the test eventually succeeds (with a max line length of 256k).
  4341. # Instead, let's just punt: use the minimum linelength reported by
  4342. # all of the supported platforms: 8192 (on NT/2K/XP).
  4343. lt_cv_sys_max_cmd_len=8192;
  4344. ;;
  4345. mint*)
  4346. # On MiNT this can take a long time and run out of memory.
  4347. lt_cv_sys_max_cmd_len=8192;
  4348. ;;
  4349. amigaos*)
  4350. # On AmigaOS with pdksh, this test takes hours, literally.
  4351. # So we just punt and use a minimum line length of 8192.
  4352. lt_cv_sys_max_cmd_len=8192;
  4353. ;;
  4354. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  4355. # This has been around since 386BSD, at least. Likely further.
  4356. if test -x /sbin/sysctl; then
  4357. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4358. elif test -x /usr/sbin/sysctl; then
  4359. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4360. else
  4361. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4362. fi
  4363. # And add a safety zone
  4364. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4365. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4366. ;;
  4367. interix*)
  4368. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4369. lt_cv_sys_max_cmd_len=196608
  4370. ;;
  4371. os2*)
  4372. # The test takes a long time on OS/2.
  4373. lt_cv_sys_max_cmd_len=8192
  4374. ;;
  4375. osf*)
  4376. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4377. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4378. # nice to cause kernel panics so lets avoid the loop below.
  4379. # First set a reasonable default.
  4380. lt_cv_sys_max_cmd_len=16384
  4381. #
  4382. if test -x /sbin/sysconfig; then
  4383. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4384. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4385. esac
  4386. fi
  4387. ;;
  4388. sco3.2v5*)
  4389. lt_cv_sys_max_cmd_len=102400
  4390. ;;
  4391. sysv5* | sco5v6* | sysv4.2uw2*)
  4392. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4393. if test -n "$kargmax"; then
  4394. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4395. else
  4396. lt_cv_sys_max_cmd_len=32768
  4397. fi
  4398. ;;
  4399. *)
  4400. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4401. if test -n "$lt_cv_sys_max_cmd_len" && \
  4402. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4403. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4404. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4405. else
  4406. # Make teststring a little bigger before we do anything with it.
  4407. # a 1K string should be a reasonable start.
  4408. for i in 1 2 3 4 5 6 7 8; do
  4409. teststring=$teststring$teststring
  4410. done
  4411. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4412. # If test is not a shell built-in, we'll probably end up computing a
  4413. # maximum length that is only half of the actual maximum length, but
  4414. # we can't tell.
  4415. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4416. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4417. test 17 != "$i" # 1/2 MB should be enough
  4418. do
  4419. i=`expr $i + 1`
  4420. teststring=$teststring$teststring
  4421. done
  4422. # Only check the string length outside the loop.
  4423. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4424. teststring=
  4425. # Add a significant safety factor because C++ compilers can tack on
  4426. # massive amounts of additional arguments before passing them to the
  4427. # linker. It appears as though 1/2 is a usable value.
  4428. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4429. fi
  4430. ;;
  4431. esac
  4432. fi
  4433. if test -n "$lt_cv_sys_max_cmd_len"; then
  4434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4435. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4436. else
  4437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4438. $as_echo "none" >&6; }
  4439. fi
  4440. max_cmd_len=$lt_cv_sys_max_cmd_len
  4441. : ${CP="cp -f"}
  4442. : ${MV="mv -f"}
  4443. : ${RM="rm -f"}
  4444. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4445. lt_unset=unset
  4446. else
  4447. lt_unset=false
  4448. fi
  4449. # test EBCDIC or ASCII
  4450. case `echo X|tr X '\101'` in
  4451. A) # ASCII based system
  4452. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4453. lt_SP2NL='tr \040 \012'
  4454. lt_NL2SP='tr \015\012 \040\040'
  4455. ;;
  4456. *) # EBCDIC based system
  4457. lt_SP2NL='tr \100 \n'
  4458. lt_NL2SP='tr \r\n \100\100'
  4459. ;;
  4460. esac
  4461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4462. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4463. if ${lt_cv_to_host_file_cmd+:} false; then :
  4464. $as_echo_n "(cached) " >&6
  4465. else
  4466. case $host in
  4467. *-*-mingw* )
  4468. case $build in
  4469. *-*-mingw* ) # actually msys
  4470. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4471. ;;
  4472. *-*-cygwin* )
  4473. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4474. ;;
  4475. * ) # otherwise, assume *nix
  4476. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4477. ;;
  4478. esac
  4479. ;;
  4480. *-*-cygwin* )
  4481. case $build in
  4482. *-*-mingw* ) # actually msys
  4483. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4484. ;;
  4485. *-*-cygwin* )
  4486. lt_cv_to_host_file_cmd=func_convert_file_noop
  4487. ;;
  4488. * ) # otherwise, assume *nix
  4489. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4490. ;;
  4491. esac
  4492. ;;
  4493. * ) # unhandled hosts (and "normal" native builds)
  4494. lt_cv_to_host_file_cmd=func_convert_file_noop
  4495. ;;
  4496. esac
  4497. fi
  4498. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4500. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4502. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4503. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4504. $as_echo_n "(cached) " >&6
  4505. else
  4506. #assume ordinary cross tools, or native build.
  4507. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4508. case $host in
  4509. *-*-mingw* )
  4510. case $build in
  4511. *-*-mingw* ) # actually msys
  4512. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4513. ;;
  4514. esac
  4515. ;;
  4516. esac
  4517. fi
  4518. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4520. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4522. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4523. if ${lt_cv_ld_reload_flag+:} false; then :
  4524. $as_echo_n "(cached) " >&6
  4525. else
  4526. lt_cv_ld_reload_flag='-r'
  4527. fi
  4528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4529. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4530. reload_flag=$lt_cv_ld_reload_flag
  4531. case $reload_flag in
  4532. "" | " "*) ;;
  4533. *) reload_flag=" $reload_flag" ;;
  4534. esac
  4535. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4536. case $host_os in
  4537. cygwin* | mingw* | pw32* | cegcc*)
  4538. if test yes != "$GCC"; then
  4539. reload_cmds=false
  4540. fi
  4541. ;;
  4542. darwin*)
  4543. if test yes = "$GCC"; then
  4544. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4545. else
  4546. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4547. fi
  4548. ;;
  4549. esac
  4550. if test -n "$ac_tool_prefix"; then
  4551. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4552. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4554. $as_echo_n "checking for $ac_word... " >&6; }
  4555. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4556. $as_echo_n "(cached) " >&6
  4557. else
  4558. if test -n "$OBJDUMP"; then
  4559. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4560. else
  4561. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4562. for as_dir in $PATH
  4563. do
  4564. IFS=$as_save_IFS
  4565. test -z "$as_dir" && as_dir=.
  4566. for ac_exec_ext in '' $ac_executable_extensions; do
  4567. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4568. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4569. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4570. break 2
  4571. fi
  4572. done
  4573. done
  4574. IFS=$as_save_IFS
  4575. fi
  4576. fi
  4577. OBJDUMP=$ac_cv_prog_OBJDUMP
  4578. if test -n "$OBJDUMP"; then
  4579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4580. $as_echo "$OBJDUMP" >&6; }
  4581. else
  4582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4583. $as_echo "no" >&6; }
  4584. fi
  4585. fi
  4586. if test -z "$ac_cv_prog_OBJDUMP"; then
  4587. ac_ct_OBJDUMP=$OBJDUMP
  4588. # Extract the first word of "objdump", so it can be a program name with args.
  4589. set dummy objdump; ac_word=$2
  4590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4591. $as_echo_n "checking for $ac_word... " >&6; }
  4592. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4593. $as_echo_n "(cached) " >&6
  4594. else
  4595. if test -n "$ac_ct_OBJDUMP"; then
  4596. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4597. else
  4598. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4599. for as_dir in $PATH
  4600. do
  4601. IFS=$as_save_IFS
  4602. test -z "$as_dir" && as_dir=.
  4603. for ac_exec_ext in '' $ac_executable_extensions; do
  4604. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4605. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4606. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4607. break 2
  4608. fi
  4609. done
  4610. done
  4611. IFS=$as_save_IFS
  4612. fi
  4613. fi
  4614. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4615. if test -n "$ac_ct_OBJDUMP"; then
  4616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4617. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4618. else
  4619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4620. $as_echo "no" >&6; }
  4621. fi
  4622. if test "x$ac_ct_OBJDUMP" = x; then
  4623. OBJDUMP="false"
  4624. else
  4625. case $cross_compiling:$ac_tool_warned in
  4626. yes:)
  4627. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4628. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4629. ac_tool_warned=yes ;;
  4630. esac
  4631. OBJDUMP=$ac_ct_OBJDUMP
  4632. fi
  4633. else
  4634. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4635. fi
  4636. test -z "$OBJDUMP" && OBJDUMP=objdump
  4637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4638. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4639. if ${lt_cv_deplibs_check_method+:} false; then :
  4640. $as_echo_n "(cached) " >&6
  4641. else
  4642. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4643. lt_cv_file_magic_test_file=
  4644. lt_cv_deplibs_check_method='unknown'
  4645. # Need to set the preceding variable on all platforms that support
  4646. # interlibrary dependencies.
  4647. # 'none' -- dependencies not supported.
  4648. # 'unknown' -- same as none, but documents that we really don't know.
  4649. # 'pass_all' -- all dependencies passed with no checks.
  4650. # 'test_compile' -- check by making test program.
  4651. # 'file_magic [[regex]]' -- check by looking for files in library path
  4652. # that responds to the $file_magic_cmd with a given extended regex.
  4653. # If you have 'file' or equivalent on your system and you're not sure
  4654. # whether 'pass_all' will *always* work, you probably want this one.
  4655. case $host_os in
  4656. aix[4-9]*)
  4657. lt_cv_deplibs_check_method=pass_all
  4658. ;;
  4659. beos*)
  4660. lt_cv_deplibs_check_method=pass_all
  4661. ;;
  4662. bsdi[45]*)
  4663. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4664. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4665. lt_cv_file_magic_test_file=/shlib/libc.so
  4666. ;;
  4667. cygwin*)
  4668. # func_win32_libid is a shell function defined in ltmain.sh
  4669. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4670. lt_cv_file_magic_cmd='func_win32_libid'
  4671. ;;
  4672. mingw* | pw32*)
  4673. # Base MSYS/MinGW do not provide the 'file' command needed by
  4674. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4675. # unless we find 'file', for example because we are cross-compiling.
  4676. if ( file / ) >/dev/null 2>&1; then
  4677. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4678. lt_cv_file_magic_cmd='func_win32_libid'
  4679. else
  4680. # Keep this pattern in sync with the one in func_win32_libid.
  4681. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4682. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4683. fi
  4684. ;;
  4685. cegcc*)
  4686. # use the weaker test based on 'objdump'. See mingw*.
  4687. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4688. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4689. ;;
  4690. darwin* | rhapsody*)
  4691. lt_cv_deplibs_check_method=pass_all
  4692. ;;
  4693. freebsd* | dragonfly*)
  4694. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4695. case $host_cpu in
  4696. i*86 )
  4697. # Not sure whether the presence of OpenBSD here was a mistake.
  4698. # Let's accept both of them until this is cleared up.
  4699. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4700. lt_cv_file_magic_cmd=/usr/bin/file
  4701. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4702. ;;
  4703. esac
  4704. else
  4705. lt_cv_deplibs_check_method=pass_all
  4706. fi
  4707. ;;
  4708. haiku*)
  4709. lt_cv_deplibs_check_method=pass_all
  4710. ;;
  4711. hpux10.20* | hpux11*)
  4712. lt_cv_file_magic_cmd=/usr/bin/file
  4713. case $host_cpu in
  4714. ia64*)
  4715. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4716. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4717. ;;
  4718. hppa*64*)
  4719. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  4720. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4721. ;;
  4722. *)
  4723. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4724. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4725. ;;
  4726. esac
  4727. ;;
  4728. interix[3-9]*)
  4729. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4730. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4731. ;;
  4732. irix5* | irix6* | nonstopux*)
  4733. case $LD in
  4734. *-32|*"-32 ") libmagic=32-bit;;
  4735. *-n32|*"-n32 ") libmagic=N32;;
  4736. *-64|*"-64 ") libmagic=64-bit;;
  4737. *) libmagic=never-match;;
  4738. esac
  4739. lt_cv_deplibs_check_method=pass_all
  4740. ;;
  4741. # This must be glibc/ELF.
  4742. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4743. lt_cv_deplibs_check_method=pass_all
  4744. ;;
  4745. netbsd*)
  4746. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4747. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4748. else
  4749. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4750. fi
  4751. ;;
  4752. newos6*)
  4753. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4754. lt_cv_file_magic_cmd=/usr/bin/file
  4755. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4756. ;;
  4757. *nto* | *qnx*)
  4758. lt_cv_deplibs_check_method=pass_all
  4759. ;;
  4760. openbsd* | bitrig*)
  4761. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  4762. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4763. else
  4764. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4765. fi
  4766. ;;
  4767. osf3* | osf4* | osf5*)
  4768. lt_cv_deplibs_check_method=pass_all
  4769. ;;
  4770. rdos*)
  4771. lt_cv_deplibs_check_method=pass_all
  4772. ;;
  4773. solaris*)
  4774. lt_cv_deplibs_check_method=pass_all
  4775. ;;
  4776. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4777. lt_cv_deplibs_check_method=pass_all
  4778. ;;
  4779. sysv4 | sysv4.3*)
  4780. case $host_vendor in
  4781. motorola)
  4782. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  4783. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4784. ;;
  4785. ncr)
  4786. lt_cv_deplibs_check_method=pass_all
  4787. ;;
  4788. sequent)
  4789. lt_cv_file_magic_cmd='/bin/file'
  4790. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4791. ;;
  4792. sni)
  4793. lt_cv_file_magic_cmd='/bin/file'
  4794. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4795. lt_cv_file_magic_test_file=/lib/libc.so
  4796. ;;
  4797. siemens)
  4798. lt_cv_deplibs_check_method=pass_all
  4799. ;;
  4800. pc)
  4801. lt_cv_deplibs_check_method=pass_all
  4802. ;;
  4803. esac
  4804. ;;
  4805. tpf*)
  4806. lt_cv_deplibs_check_method=pass_all
  4807. ;;
  4808. os2*)
  4809. lt_cv_deplibs_check_method=pass_all
  4810. ;;
  4811. esac
  4812. fi
  4813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4814. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4815. file_magic_glob=
  4816. want_nocaseglob=no
  4817. if test "$build" = "$host"; then
  4818. case $host_os in
  4819. mingw* | pw32*)
  4820. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4821. want_nocaseglob=yes
  4822. else
  4823. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4824. fi
  4825. ;;
  4826. esac
  4827. fi
  4828. file_magic_cmd=$lt_cv_file_magic_cmd
  4829. deplibs_check_method=$lt_cv_deplibs_check_method
  4830. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4831. if test -n "$ac_tool_prefix"; then
  4832. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4833. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4835. $as_echo_n "checking for $ac_word... " >&6; }
  4836. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4837. $as_echo_n "(cached) " >&6
  4838. else
  4839. if test -n "$DLLTOOL"; then
  4840. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4841. else
  4842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4843. for as_dir in $PATH
  4844. do
  4845. IFS=$as_save_IFS
  4846. test -z "$as_dir" && as_dir=.
  4847. for ac_exec_ext in '' $ac_executable_extensions; do
  4848. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4849. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4850. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4851. break 2
  4852. fi
  4853. done
  4854. done
  4855. IFS=$as_save_IFS
  4856. fi
  4857. fi
  4858. DLLTOOL=$ac_cv_prog_DLLTOOL
  4859. if test -n "$DLLTOOL"; then
  4860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4861. $as_echo "$DLLTOOL" >&6; }
  4862. else
  4863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4864. $as_echo "no" >&6; }
  4865. fi
  4866. fi
  4867. if test -z "$ac_cv_prog_DLLTOOL"; then
  4868. ac_ct_DLLTOOL=$DLLTOOL
  4869. # Extract the first word of "dlltool", so it can be a program name with args.
  4870. set dummy dlltool; ac_word=$2
  4871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4872. $as_echo_n "checking for $ac_word... " >&6; }
  4873. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4874. $as_echo_n "(cached) " >&6
  4875. else
  4876. if test -n "$ac_ct_DLLTOOL"; then
  4877. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4878. else
  4879. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4880. for as_dir in $PATH
  4881. do
  4882. IFS=$as_save_IFS
  4883. test -z "$as_dir" && as_dir=.
  4884. for ac_exec_ext in '' $ac_executable_extensions; do
  4885. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4886. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4887. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4888. break 2
  4889. fi
  4890. done
  4891. done
  4892. IFS=$as_save_IFS
  4893. fi
  4894. fi
  4895. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4896. if test -n "$ac_ct_DLLTOOL"; then
  4897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4898. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4899. else
  4900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4901. $as_echo "no" >&6; }
  4902. fi
  4903. if test "x$ac_ct_DLLTOOL" = x; then
  4904. DLLTOOL="false"
  4905. else
  4906. case $cross_compiling:$ac_tool_warned in
  4907. yes:)
  4908. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4909. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4910. ac_tool_warned=yes ;;
  4911. esac
  4912. DLLTOOL=$ac_ct_DLLTOOL
  4913. fi
  4914. else
  4915. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4916. fi
  4917. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4919. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4920. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4921. $as_echo_n "(cached) " >&6
  4922. else
  4923. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4924. case $host_os in
  4925. cygwin* | mingw* | pw32* | cegcc*)
  4926. # two different shell functions defined in ltmain.sh;
  4927. # decide which one to use based on capabilities of $DLLTOOL
  4928. case `$DLLTOOL --help 2>&1` in
  4929. *--identify-strict*)
  4930. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4931. ;;
  4932. *)
  4933. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4934. ;;
  4935. esac
  4936. ;;
  4937. *)
  4938. # fallback: assume linklib IS sharedlib
  4939. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  4940. ;;
  4941. esac
  4942. fi
  4943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4944. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4945. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4946. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4947. if test -n "$ac_tool_prefix"; then
  4948. for ac_prog in ar
  4949. do
  4950. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4951. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4953. $as_echo_n "checking for $ac_word... " >&6; }
  4954. if ${ac_cv_prog_AR+:} false; then :
  4955. $as_echo_n "(cached) " >&6
  4956. else
  4957. if test -n "$AR"; then
  4958. ac_cv_prog_AR="$AR" # Let the user override the test.
  4959. else
  4960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4961. for as_dir in $PATH
  4962. do
  4963. IFS=$as_save_IFS
  4964. test -z "$as_dir" && as_dir=.
  4965. for ac_exec_ext in '' $ac_executable_extensions; do
  4966. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4967. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4968. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4969. break 2
  4970. fi
  4971. done
  4972. done
  4973. IFS=$as_save_IFS
  4974. fi
  4975. fi
  4976. AR=$ac_cv_prog_AR
  4977. if test -n "$AR"; then
  4978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4979. $as_echo "$AR" >&6; }
  4980. else
  4981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4982. $as_echo "no" >&6; }
  4983. fi
  4984. test -n "$AR" && break
  4985. done
  4986. fi
  4987. if test -z "$AR"; then
  4988. ac_ct_AR=$AR
  4989. for ac_prog in ar
  4990. do
  4991. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4992. set dummy $ac_prog; ac_word=$2
  4993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4994. $as_echo_n "checking for $ac_word... " >&6; }
  4995. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4996. $as_echo_n "(cached) " >&6
  4997. else
  4998. if test -n "$ac_ct_AR"; then
  4999. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5000. else
  5001. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5002. for as_dir in $PATH
  5003. do
  5004. IFS=$as_save_IFS
  5005. test -z "$as_dir" && as_dir=.
  5006. for ac_exec_ext in '' $ac_executable_extensions; do
  5007. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5008. ac_cv_prog_ac_ct_AR="$ac_prog"
  5009. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5010. break 2
  5011. fi
  5012. done
  5013. done
  5014. IFS=$as_save_IFS
  5015. fi
  5016. fi
  5017. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5018. if test -n "$ac_ct_AR"; then
  5019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5020. $as_echo "$ac_ct_AR" >&6; }
  5021. else
  5022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5023. $as_echo "no" >&6; }
  5024. fi
  5025. test -n "$ac_ct_AR" && break
  5026. done
  5027. if test "x$ac_ct_AR" = x; then
  5028. AR="false"
  5029. else
  5030. case $cross_compiling:$ac_tool_warned in
  5031. yes:)
  5032. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5033. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5034. ac_tool_warned=yes ;;
  5035. esac
  5036. AR=$ac_ct_AR
  5037. fi
  5038. fi
  5039. : ${AR=ar}
  5040. : ${AR_FLAGS=cru}
  5041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5042. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5043. if ${lt_cv_ar_at_file+:} false; then :
  5044. $as_echo_n "(cached) " >&6
  5045. else
  5046. lt_cv_ar_at_file=no
  5047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5048. /* end confdefs.h. */
  5049. int
  5050. main ()
  5051. {
  5052. ;
  5053. return 0;
  5054. }
  5055. _ACEOF
  5056. if ac_fn_c_try_compile "$LINENO"; then :
  5057. echo conftest.$ac_objext > conftest.lst
  5058. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5059. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5060. (eval $lt_ar_try) 2>&5
  5061. ac_status=$?
  5062. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5063. test $ac_status = 0; }
  5064. if test 0 -eq "$ac_status"; then
  5065. # Ensure the archiver fails upon bogus file names.
  5066. rm -f conftest.$ac_objext libconftest.a
  5067. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5068. (eval $lt_ar_try) 2>&5
  5069. ac_status=$?
  5070. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5071. test $ac_status = 0; }
  5072. if test 0 -ne "$ac_status"; then
  5073. lt_cv_ar_at_file=@
  5074. fi
  5075. fi
  5076. rm -f conftest.* libconftest.a
  5077. fi
  5078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5079. fi
  5080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5081. $as_echo "$lt_cv_ar_at_file" >&6; }
  5082. if test no = "$lt_cv_ar_at_file"; then
  5083. archiver_list_spec=
  5084. else
  5085. archiver_list_spec=$lt_cv_ar_at_file
  5086. fi
  5087. if test -n "$ac_tool_prefix"; then
  5088. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5089. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5091. $as_echo_n "checking for $ac_word... " >&6; }
  5092. if ${ac_cv_prog_STRIP+:} false; then :
  5093. $as_echo_n "(cached) " >&6
  5094. else
  5095. if test -n "$STRIP"; then
  5096. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5097. else
  5098. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5099. for as_dir in $PATH
  5100. do
  5101. IFS=$as_save_IFS
  5102. test -z "$as_dir" && as_dir=.
  5103. for ac_exec_ext in '' $ac_executable_extensions; do
  5104. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5105. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5106. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5107. break 2
  5108. fi
  5109. done
  5110. done
  5111. IFS=$as_save_IFS
  5112. fi
  5113. fi
  5114. STRIP=$ac_cv_prog_STRIP
  5115. if test -n "$STRIP"; then
  5116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5117. $as_echo "$STRIP" >&6; }
  5118. else
  5119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5120. $as_echo "no" >&6; }
  5121. fi
  5122. fi
  5123. if test -z "$ac_cv_prog_STRIP"; then
  5124. ac_ct_STRIP=$STRIP
  5125. # Extract the first word of "strip", so it can be a program name with args.
  5126. set dummy strip; ac_word=$2
  5127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5128. $as_echo_n "checking for $ac_word... " >&6; }
  5129. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5130. $as_echo_n "(cached) " >&6
  5131. else
  5132. if test -n "$ac_ct_STRIP"; then
  5133. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5134. else
  5135. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5136. for as_dir in $PATH
  5137. do
  5138. IFS=$as_save_IFS
  5139. test -z "$as_dir" && as_dir=.
  5140. for ac_exec_ext in '' $ac_executable_extensions; do
  5141. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5142. ac_cv_prog_ac_ct_STRIP="strip"
  5143. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5144. break 2
  5145. fi
  5146. done
  5147. done
  5148. IFS=$as_save_IFS
  5149. fi
  5150. fi
  5151. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5152. if test -n "$ac_ct_STRIP"; then
  5153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5154. $as_echo "$ac_ct_STRIP" >&6; }
  5155. else
  5156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5157. $as_echo "no" >&6; }
  5158. fi
  5159. if test "x$ac_ct_STRIP" = x; then
  5160. STRIP=":"
  5161. else
  5162. case $cross_compiling:$ac_tool_warned in
  5163. yes:)
  5164. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5165. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5166. ac_tool_warned=yes ;;
  5167. esac
  5168. STRIP=$ac_ct_STRIP
  5169. fi
  5170. else
  5171. STRIP="$ac_cv_prog_STRIP"
  5172. fi
  5173. test -z "$STRIP" && STRIP=:
  5174. if test -n "$ac_tool_prefix"; then
  5175. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5176. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5178. $as_echo_n "checking for $ac_word... " >&6; }
  5179. if ${ac_cv_prog_RANLIB+:} false; then :
  5180. $as_echo_n "(cached) " >&6
  5181. else
  5182. if test -n "$RANLIB"; then
  5183. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5184. else
  5185. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5186. for as_dir in $PATH
  5187. do
  5188. IFS=$as_save_IFS
  5189. test -z "$as_dir" && as_dir=.
  5190. for ac_exec_ext in '' $ac_executable_extensions; do
  5191. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5192. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5193. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5194. break 2
  5195. fi
  5196. done
  5197. done
  5198. IFS=$as_save_IFS
  5199. fi
  5200. fi
  5201. RANLIB=$ac_cv_prog_RANLIB
  5202. if test -n "$RANLIB"; then
  5203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5204. $as_echo "$RANLIB" >&6; }
  5205. else
  5206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5207. $as_echo "no" >&6; }
  5208. fi
  5209. fi
  5210. if test -z "$ac_cv_prog_RANLIB"; then
  5211. ac_ct_RANLIB=$RANLIB
  5212. # Extract the first word of "ranlib", so it can be a program name with args.
  5213. set dummy ranlib; ac_word=$2
  5214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5215. $as_echo_n "checking for $ac_word... " >&6; }
  5216. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5217. $as_echo_n "(cached) " >&6
  5218. else
  5219. if test -n "$ac_ct_RANLIB"; then
  5220. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5221. else
  5222. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5223. for as_dir in $PATH
  5224. do
  5225. IFS=$as_save_IFS
  5226. test -z "$as_dir" && as_dir=.
  5227. for ac_exec_ext in '' $ac_executable_extensions; do
  5228. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5229. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5230. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5231. break 2
  5232. fi
  5233. done
  5234. done
  5235. IFS=$as_save_IFS
  5236. fi
  5237. fi
  5238. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5239. if test -n "$ac_ct_RANLIB"; then
  5240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5241. $as_echo "$ac_ct_RANLIB" >&6; }
  5242. else
  5243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5244. $as_echo "no" >&6; }
  5245. fi
  5246. if test "x$ac_ct_RANLIB" = x; then
  5247. RANLIB=":"
  5248. else
  5249. case $cross_compiling:$ac_tool_warned in
  5250. yes:)
  5251. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5252. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5253. ac_tool_warned=yes ;;
  5254. esac
  5255. RANLIB=$ac_ct_RANLIB
  5256. fi
  5257. else
  5258. RANLIB="$ac_cv_prog_RANLIB"
  5259. fi
  5260. test -z "$RANLIB" && RANLIB=:
  5261. # Determine commands to create old-style static archives.
  5262. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5263. old_postinstall_cmds='chmod 644 $oldlib'
  5264. old_postuninstall_cmds=
  5265. if test -n "$RANLIB"; then
  5266. case $host_os in
  5267. bitrig* | openbsd*)
  5268. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5269. ;;
  5270. *)
  5271. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5272. ;;
  5273. esac
  5274. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5275. fi
  5276. case $host_os in
  5277. darwin*)
  5278. lock_old_archive_extraction=yes ;;
  5279. *)
  5280. lock_old_archive_extraction=no ;;
  5281. esac
  5282. # If no C compiler was specified, use CC.
  5283. LTCC=${LTCC-"$CC"}
  5284. # If no C compiler flags were specified, use CFLAGS.
  5285. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5286. # Allow CC to be a program name with arguments.
  5287. compiler=$CC
  5288. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5290. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5291. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5292. $as_echo_n "(cached) " >&6
  5293. else
  5294. # These are sane defaults that work on at least a few old systems.
  5295. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5296. # Character class describing NM global symbol codes.
  5297. symcode='[BCDEGRST]'
  5298. # Regexp to match symbols that can be accessed directly from C.
  5299. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5300. # Define system-specific variables.
  5301. case $host_os in
  5302. aix*)
  5303. symcode='[BCDT]'
  5304. ;;
  5305. cygwin* | mingw* | pw32* | cegcc*)
  5306. symcode='[ABCDGISTW]'
  5307. ;;
  5308. hpux*)
  5309. if test ia64 = "$host_cpu"; then
  5310. symcode='[ABCDEGRST]'
  5311. fi
  5312. ;;
  5313. irix* | nonstopux*)
  5314. symcode='[BCDEGRST]'
  5315. ;;
  5316. osf*)
  5317. symcode='[BCDEGQRST]'
  5318. ;;
  5319. solaris*)
  5320. symcode='[BDRT]'
  5321. ;;
  5322. sco3.2v5*)
  5323. symcode='[DT]'
  5324. ;;
  5325. sysv4.2uw2*)
  5326. symcode='[DT]'
  5327. ;;
  5328. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5329. symcode='[ABDT]'
  5330. ;;
  5331. sysv4)
  5332. symcode='[DFNSTU]'
  5333. ;;
  5334. esac
  5335. # If we're using GNU nm, then use its standard symbol codes.
  5336. case `$NM -V 2>&1` in
  5337. *GNU* | *'with BFD'*)
  5338. symcode='[ABCDGIRSTW]' ;;
  5339. esac
  5340. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5341. # Gets list of data symbols to import.
  5342. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5343. # Adjust the below global symbol transforms to fixup imported variables.
  5344. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5345. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5346. lt_c_name_lib_hook="\
  5347. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5348. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5349. else
  5350. # Disable hooks by default.
  5351. lt_cv_sys_global_symbol_to_import=
  5352. lt_cdecl_hook=
  5353. lt_c_name_hook=
  5354. lt_c_name_lib_hook=
  5355. fi
  5356. # Transform an extracted symbol line into a proper C declaration.
  5357. # Some systems (esp. on ia64) link data and code symbols differently,
  5358. # so use this general approach.
  5359. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5360. $lt_cdecl_hook\
  5361. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5362. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5363. # Transform an extracted symbol line into symbol name and symbol address
  5364. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5365. $lt_c_name_hook\
  5366. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5367. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5368. # Transform an extracted symbol line into symbol name with lib prefix and
  5369. # symbol address.
  5370. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5371. $lt_c_name_lib_hook\
  5372. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5373. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5374. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5375. # Handle CRLF in mingw tool chain
  5376. opt_cr=
  5377. case $build_os in
  5378. mingw*)
  5379. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5380. ;;
  5381. esac
  5382. # Try without a prefix underscore, then with it.
  5383. for ac_symprfx in "" "_"; do
  5384. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5385. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5386. # Write the raw and C identifiers.
  5387. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5388. # Fake it for dumpbin and say T for any non-static function,
  5389. # D for any global variable and I for any imported variable.
  5390. # Also find C++ and __fastcall symbols from MSVC++,
  5391. # which start with @ or ?.
  5392. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5393. " {last_section=section; section=\$ 3};"\
  5394. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5395. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5396. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5397. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5398. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5399. " \$ 0!~/External *\|/{next};"\
  5400. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5401. " {if(hide[section]) next};"\
  5402. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5403. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5404. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5405. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5406. " ' prfx=^$ac_symprfx"
  5407. else
  5408. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5409. fi
  5410. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5411. # Check to see that the pipe works correctly.
  5412. pipe_works=no
  5413. rm -f conftest*
  5414. cat > conftest.$ac_ext <<_LT_EOF
  5415. #ifdef __cplusplus
  5416. extern "C" {
  5417. #endif
  5418. char nm_test_var;
  5419. void nm_test_func(void);
  5420. void nm_test_func(void){}
  5421. #ifdef __cplusplus
  5422. }
  5423. #endif
  5424. int main(){nm_test_var='a';nm_test_func();return(0);}
  5425. _LT_EOF
  5426. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5427. (eval $ac_compile) 2>&5
  5428. ac_status=$?
  5429. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5430. test $ac_status = 0; }; then
  5431. # Now try to grab the symbols.
  5432. nlist=conftest.nm
  5433. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5434. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5435. ac_status=$?
  5436. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5437. test $ac_status = 0; } && test -s "$nlist"; then
  5438. # Try sorting and uniquifying the output.
  5439. if sort "$nlist" | uniq > "$nlist"T; then
  5440. mv -f "$nlist"T "$nlist"
  5441. else
  5442. rm -f "$nlist"T
  5443. fi
  5444. # Make sure that we snagged all the symbols we need.
  5445. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5446. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5447. cat <<_LT_EOF > conftest.$ac_ext
  5448. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5449. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5450. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5451. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5452. # define LT_DLSYM_CONST
  5453. #elif defined __osf__
  5454. /* This system does not cope well with relocations in const data. */
  5455. # define LT_DLSYM_CONST
  5456. #else
  5457. # define LT_DLSYM_CONST const
  5458. #endif
  5459. #ifdef __cplusplus
  5460. extern "C" {
  5461. #endif
  5462. _LT_EOF
  5463. # Now generate the symbol file.
  5464. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5465. cat <<_LT_EOF >> conftest.$ac_ext
  5466. /* The mapping between symbol names and symbols. */
  5467. LT_DLSYM_CONST struct {
  5468. const char *name;
  5469. void *address;
  5470. }
  5471. lt__PROGRAM__LTX_preloaded_symbols[] =
  5472. {
  5473. { "@PROGRAM@", (void *) 0 },
  5474. _LT_EOF
  5475. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5476. cat <<\_LT_EOF >> conftest.$ac_ext
  5477. {0, (void *) 0}
  5478. };
  5479. /* This works around a problem in FreeBSD linker */
  5480. #ifdef FREEBSD_WORKAROUND
  5481. static const void *lt_preloaded_setup() {
  5482. return lt__PROGRAM__LTX_preloaded_symbols;
  5483. }
  5484. #endif
  5485. #ifdef __cplusplus
  5486. }
  5487. #endif
  5488. _LT_EOF
  5489. # Now try linking the two files.
  5490. mv conftest.$ac_objext conftstm.$ac_objext
  5491. lt_globsym_save_LIBS=$LIBS
  5492. lt_globsym_save_CFLAGS=$CFLAGS
  5493. LIBS=conftstm.$ac_objext
  5494. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5495. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5496. (eval $ac_link) 2>&5
  5497. ac_status=$?
  5498. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5499. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  5500. pipe_works=yes
  5501. fi
  5502. LIBS=$lt_globsym_save_LIBS
  5503. CFLAGS=$lt_globsym_save_CFLAGS
  5504. else
  5505. echo "cannot find nm_test_func in $nlist" >&5
  5506. fi
  5507. else
  5508. echo "cannot find nm_test_var in $nlist" >&5
  5509. fi
  5510. else
  5511. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5512. fi
  5513. else
  5514. echo "$progname: failed program was:" >&5
  5515. cat conftest.$ac_ext >&5
  5516. fi
  5517. rm -rf conftest* conftst*
  5518. # Do not use the global_symbol_pipe unless it works.
  5519. if test yes = "$pipe_works"; then
  5520. break
  5521. else
  5522. lt_cv_sys_global_symbol_pipe=
  5523. fi
  5524. done
  5525. fi
  5526. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5527. lt_cv_sys_global_symbol_to_cdecl=
  5528. fi
  5529. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5531. $as_echo "failed" >&6; }
  5532. else
  5533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5534. $as_echo "ok" >&6; }
  5535. fi
  5536. # Response file support.
  5537. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5538. nm_file_list_spec='@'
  5539. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5540. nm_file_list_spec='@'
  5541. fi
  5542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5543. $as_echo_n "checking for sysroot... " >&6; }
  5544. # Check whether --with-sysroot was given.
  5545. if test "${with_sysroot+set}" = set; then :
  5546. withval=$with_sysroot;
  5547. else
  5548. with_sysroot=no
  5549. fi
  5550. lt_sysroot=
  5551. case $with_sysroot in #(
  5552. yes)
  5553. if test yes = "$GCC"; then
  5554. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5555. fi
  5556. ;; #(
  5557. /*)
  5558. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5559. ;; #(
  5560. no|'')
  5561. ;; #(
  5562. *)
  5563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  5564. $as_echo "$with_sysroot" >&6; }
  5565. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5566. ;;
  5567. esac
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5569. $as_echo "${lt_sysroot:-no}" >&6; }
  5570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  5571. $as_echo_n "checking for a working dd... " >&6; }
  5572. if ${ac_cv_path_lt_DD+:} false; then :
  5573. $as_echo_n "(cached) " >&6
  5574. else
  5575. printf 0123456789abcdef0123456789abcdef >conftest.i
  5576. cat conftest.i conftest.i >conftest2.i
  5577. : ${lt_DD:=$DD}
  5578. if test -z "$lt_DD"; then
  5579. ac_path_lt_DD_found=false
  5580. # Loop through the user's path and test for each of PROGNAME-LIST
  5581. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5582. for as_dir in $PATH
  5583. do
  5584. IFS=$as_save_IFS
  5585. test -z "$as_dir" && as_dir=.
  5586. for ac_prog in dd; do
  5587. for ac_exec_ext in '' $ac_executable_extensions; do
  5588. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  5589. as_fn_executable_p "$ac_path_lt_DD" || continue
  5590. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5591. cmp -s conftest.i conftest.out \
  5592. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  5593. fi
  5594. $ac_path_lt_DD_found && break 3
  5595. done
  5596. done
  5597. done
  5598. IFS=$as_save_IFS
  5599. if test -z "$ac_cv_path_lt_DD"; then
  5600. :
  5601. fi
  5602. else
  5603. ac_cv_path_lt_DD=$lt_DD
  5604. fi
  5605. rm -f conftest.i conftest2.i conftest.out
  5606. fi
  5607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  5608. $as_echo "$ac_cv_path_lt_DD" >&6; }
  5609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  5610. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  5611. if ${lt_cv_truncate_bin+:} false; then :
  5612. $as_echo_n "(cached) " >&6
  5613. else
  5614. printf 0123456789abcdef0123456789abcdef >conftest.i
  5615. cat conftest.i conftest.i >conftest2.i
  5616. lt_cv_truncate_bin=
  5617. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5618. cmp -s conftest.i conftest.out \
  5619. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  5620. fi
  5621. rm -f conftest.i conftest2.i conftest.out
  5622. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  5623. fi
  5624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  5625. $as_echo "$lt_cv_truncate_bin" >&6; }
  5626. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  5627. func_cc_basename ()
  5628. {
  5629. for cc_temp in $*""; do
  5630. case $cc_temp in
  5631. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5632. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5633. \-*) ;;
  5634. *) break;;
  5635. esac
  5636. done
  5637. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  5638. }
  5639. # Check whether --enable-libtool-lock was given.
  5640. if test "${enable_libtool_lock+set}" = set; then :
  5641. enableval=$enable_libtool_lock;
  5642. fi
  5643. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  5644. # Some flags need to be propagated to the compiler or linker for good
  5645. # libtool support.
  5646. case $host in
  5647. ia64-*-hpux*)
  5648. # Find out what ABI is being produced by ac_compile, and set mode
  5649. # options accordingly.
  5650. echo 'int i;' > conftest.$ac_ext
  5651. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5652. (eval $ac_compile) 2>&5
  5653. ac_status=$?
  5654. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5655. test $ac_status = 0; }; then
  5656. case `/usr/bin/file conftest.$ac_objext` in
  5657. *ELF-32*)
  5658. HPUX_IA64_MODE=32
  5659. ;;
  5660. *ELF-64*)
  5661. HPUX_IA64_MODE=64
  5662. ;;
  5663. esac
  5664. fi
  5665. rm -rf conftest*
  5666. ;;
  5667. *-*-irix6*)
  5668. # Find out what ABI is being produced by ac_compile, and set linker
  5669. # options accordingly.
  5670. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5671. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5672. (eval $ac_compile) 2>&5
  5673. ac_status=$?
  5674. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5675. test $ac_status = 0; }; then
  5676. if test yes = "$lt_cv_prog_gnu_ld"; then
  5677. case `/usr/bin/file conftest.$ac_objext` in
  5678. *32-bit*)
  5679. LD="${LD-ld} -melf32bsmip"
  5680. ;;
  5681. *N32*)
  5682. LD="${LD-ld} -melf32bmipn32"
  5683. ;;
  5684. *64-bit*)
  5685. LD="${LD-ld} -melf64bmip"
  5686. ;;
  5687. esac
  5688. else
  5689. case `/usr/bin/file conftest.$ac_objext` in
  5690. *32-bit*)
  5691. LD="${LD-ld} -32"
  5692. ;;
  5693. *N32*)
  5694. LD="${LD-ld} -n32"
  5695. ;;
  5696. *64-bit*)
  5697. LD="${LD-ld} -64"
  5698. ;;
  5699. esac
  5700. fi
  5701. fi
  5702. rm -rf conftest*
  5703. ;;
  5704. mips64*-*linux*)
  5705. # Find out what ABI is being produced by ac_compile, and set linker
  5706. # options accordingly.
  5707. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5708. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5709. (eval $ac_compile) 2>&5
  5710. ac_status=$?
  5711. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5712. test $ac_status = 0; }; then
  5713. emul=elf
  5714. case `/usr/bin/file conftest.$ac_objext` in
  5715. *32-bit*)
  5716. emul="${emul}32"
  5717. ;;
  5718. *64-bit*)
  5719. emul="${emul}64"
  5720. ;;
  5721. esac
  5722. case `/usr/bin/file conftest.$ac_objext` in
  5723. *MSB*)
  5724. emul="${emul}btsmip"
  5725. ;;
  5726. *LSB*)
  5727. emul="${emul}ltsmip"
  5728. ;;
  5729. esac
  5730. case `/usr/bin/file conftest.$ac_objext` in
  5731. *N32*)
  5732. emul="${emul}n32"
  5733. ;;
  5734. esac
  5735. LD="${LD-ld} -m $emul"
  5736. fi
  5737. rm -rf conftest*
  5738. ;;
  5739. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5740. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5741. # Find out what ABI is being produced by ac_compile, and set linker
  5742. # options accordingly. Note that the listed cases only cover the
  5743. # situations where additional linker options are needed (such as when
  5744. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  5745. # vice versa); the common cases where no linker options are needed do
  5746. # not appear in the list.
  5747. echo 'int i;' > conftest.$ac_ext
  5748. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5749. (eval $ac_compile) 2>&5
  5750. ac_status=$?
  5751. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5752. test $ac_status = 0; }; then
  5753. case `/usr/bin/file conftest.o` in
  5754. *32-bit*)
  5755. case $host in
  5756. x86_64-*kfreebsd*-gnu)
  5757. LD="${LD-ld} -m elf_i386_fbsd"
  5758. ;;
  5759. x86_64-*linux*)
  5760. case `/usr/bin/file conftest.o` in
  5761. *x86-64*)
  5762. LD="${LD-ld} -m elf32_x86_64"
  5763. ;;
  5764. *)
  5765. LD="${LD-ld} -m elf_i386"
  5766. ;;
  5767. esac
  5768. ;;
  5769. powerpc64le-*linux*)
  5770. LD="${LD-ld} -m elf32lppclinux"
  5771. ;;
  5772. powerpc64-*linux*)
  5773. LD="${LD-ld} -m elf32ppclinux"
  5774. ;;
  5775. s390x-*linux*)
  5776. LD="${LD-ld} -m elf_s390"
  5777. ;;
  5778. sparc64-*linux*)
  5779. LD="${LD-ld} -m elf32_sparc"
  5780. ;;
  5781. esac
  5782. ;;
  5783. *64-bit*)
  5784. case $host in
  5785. x86_64-*kfreebsd*-gnu)
  5786. LD="${LD-ld} -m elf_x86_64_fbsd"
  5787. ;;
  5788. x86_64-*linux*)
  5789. LD="${LD-ld} -m elf_x86_64"
  5790. ;;
  5791. powerpcle-*linux*)
  5792. LD="${LD-ld} -m elf64lppc"
  5793. ;;
  5794. powerpc-*linux*)
  5795. LD="${LD-ld} -m elf64ppc"
  5796. ;;
  5797. s390*-*linux*|s390*-*tpf*)
  5798. LD="${LD-ld} -m elf64_s390"
  5799. ;;
  5800. sparc*-*linux*)
  5801. LD="${LD-ld} -m elf64_sparc"
  5802. ;;
  5803. esac
  5804. ;;
  5805. esac
  5806. fi
  5807. rm -rf conftest*
  5808. ;;
  5809. *-*-sco3.2v5*)
  5810. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5811. SAVE_CFLAGS=$CFLAGS
  5812. CFLAGS="$CFLAGS -belf"
  5813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5814. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5815. if ${lt_cv_cc_needs_belf+:} false; then :
  5816. $as_echo_n "(cached) " >&6
  5817. else
  5818. ac_ext=c
  5819. ac_cpp='$CPP $CPPFLAGS'
  5820. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5821. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5822. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5824. /* end confdefs.h. */
  5825. int
  5826. main ()
  5827. {
  5828. ;
  5829. return 0;
  5830. }
  5831. _ACEOF
  5832. if ac_fn_c_try_link "$LINENO"; then :
  5833. lt_cv_cc_needs_belf=yes
  5834. else
  5835. lt_cv_cc_needs_belf=no
  5836. fi
  5837. rm -f core conftest.err conftest.$ac_objext \
  5838. conftest$ac_exeext conftest.$ac_ext
  5839. ac_ext=c
  5840. ac_cpp='$CPP $CPPFLAGS'
  5841. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5842. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5843. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5844. fi
  5845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5846. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5847. if test yes != "$lt_cv_cc_needs_belf"; then
  5848. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5849. CFLAGS=$SAVE_CFLAGS
  5850. fi
  5851. ;;
  5852. *-*solaris*)
  5853. # Find out what ABI is being produced by ac_compile, and set linker
  5854. # options accordingly.
  5855. echo 'int i;' > conftest.$ac_ext
  5856. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5857. (eval $ac_compile) 2>&5
  5858. ac_status=$?
  5859. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5860. test $ac_status = 0; }; then
  5861. case `/usr/bin/file conftest.o` in
  5862. *64-bit*)
  5863. case $lt_cv_prog_gnu_ld in
  5864. yes*)
  5865. case $host in
  5866. i?86-*-solaris*|x86_64-*-solaris*)
  5867. LD="${LD-ld} -m elf_x86_64"
  5868. ;;
  5869. sparc*-*-solaris*)
  5870. LD="${LD-ld} -m elf64_sparc"
  5871. ;;
  5872. esac
  5873. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5874. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5875. LD=${LD-ld}_sol2
  5876. fi
  5877. ;;
  5878. *)
  5879. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5880. LD="${LD-ld} -64"
  5881. fi
  5882. ;;
  5883. esac
  5884. ;;
  5885. esac
  5886. fi
  5887. rm -rf conftest*
  5888. ;;
  5889. esac
  5890. need_locks=$enable_libtool_lock
  5891. if test -n "$ac_tool_prefix"; then
  5892. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5893. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5895. $as_echo_n "checking for $ac_word... " >&6; }
  5896. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5897. $as_echo_n "(cached) " >&6
  5898. else
  5899. if test -n "$MANIFEST_TOOL"; then
  5900. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5901. else
  5902. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5903. for as_dir in $PATH
  5904. do
  5905. IFS=$as_save_IFS
  5906. test -z "$as_dir" && as_dir=.
  5907. for ac_exec_ext in '' $ac_executable_extensions; do
  5908. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5909. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5910. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5911. break 2
  5912. fi
  5913. done
  5914. done
  5915. IFS=$as_save_IFS
  5916. fi
  5917. fi
  5918. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5919. if test -n "$MANIFEST_TOOL"; then
  5920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5921. $as_echo "$MANIFEST_TOOL" >&6; }
  5922. else
  5923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5924. $as_echo "no" >&6; }
  5925. fi
  5926. fi
  5927. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5928. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5929. # Extract the first word of "mt", so it can be a program name with args.
  5930. set dummy mt; ac_word=$2
  5931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5932. $as_echo_n "checking for $ac_word... " >&6; }
  5933. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5934. $as_echo_n "(cached) " >&6
  5935. else
  5936. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5937. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5938. else
  5939. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5940. for as_dir in $PATH
  5941. do
  5942. IFS=$as_save_IFS
  5943. test -z "$as_dir" && as_dir=.
  5944. for ac_exec_ext in '' $ac_executable_extensions; do
  5945. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5946. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5947. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5948. break 2
  5949. fi
  5950. done
  5951. done
  5952. IFS=$as_save_IFS
  5953. fi
  5954. fi
  5955. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5956. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5958. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5959. else
  5960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5961. $as_echo "no" >&6; }
  5962. fi
  5963. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5964. MANIFEST_TOOL=":"
  5965. else
  5966. case $cross_compiling:$ac_tool_warned in
  5967. yes:)
  5968. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5969. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5970. ac_tool_warned=yes ;;
  5971. esac
  5972. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5973. fi
  5974. else
  5975. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5976. fi
  5977. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5979. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5980. if ${lt_cv_path_mainfest_tool+:} false; then :
  5981. $as_echo_n "(cached) " >&6
  5982. else
  5983. lt_cv_path_mainfest_tool=no
  5984. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5985. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5986. cat conftest.err >&5
  5987. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5988. lt_cv_path_mainfest_tool=yes
  5989. fi
  5990. rm -f conftest*
  5991. fi
  5992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5993. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5994. if test yes != "$lt_cv_path_mainfest_tool"; then
  5995. MANIFEST_TOOL=:
  5996. fi
  5997. case $host_os in
  5998. rhapsody* | darwin*)
  5999. if test -n "$ac_tool_prefix"; then
  6000. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6001. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6003. $as_echo_n "checking for $ac_word... " >&6; }
  6004. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6005. $as_echo_n "(cached) " >&6
  6006. else
  6007. if test -n "$DSYMUTIL"; then
  6008. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6009. else
  6010. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6011. for as_dir in $PATH
  6012. do
  6013. IFS=$as_save_IFS
  6014. test -z "$as_dir" && as_dir=.
  6015. for ac_exec_ext in '' $ac_executable_extensions; do
  6016. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6017. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6018. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6019. break 2
  6020. fi
  6021. done
  6022. done
  6023. IFS=$as_save_IFS
  6024. fi
  6025. fi
  6026. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6027. if test -n "$DSYMUTIL"; then
  6028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6029. $as_echo "$DSYMUTIL" >&6; }
  6030. else
  6031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6032. $as_echo "no" >&6; }
  6033. fi
  6034. fi
  6035. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6036. ac_ct_DSYMUTIL=$DSYMUTIL
  6037. # Extract the first word of "dsymutil", so it can be a program name with args.
  6038. set dummy dsymutil; ac_word=$2
  6039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6040. $as_echo_n "checking for $ac_word... " >&6; }
  6041. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6042. $as_echo_n "(cached) " >&6
  6043. else
  6044. if test -n "$ac_ct_DSYMUTIL"; then
  6045. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6046. else
  6047. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6048. for as_dir in $PATH
  6049. do
  6050. IFS=$as_save_IFS
  6051. test -z "$as_dir" && as_dir=.
  6052. for ac_exec_ext in '' $ac_executable_extensions; do
  6053. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6054. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6055. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6056. break 2
  6057. fi
  6058. done
  6059. done
  6060. IFS=$as_save_IFS
  6061. fi
  6062. fi
  6063. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6064. if test -n "$ac_ct_DSYMUTIL"; then
  6065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6066. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6067. else
  6068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6069. $as_echo "no" >&6; }
  6070. fi
  6071. if test "x$ac_ct_DSYMUTIL" = x; then
  6072. DSYMUTIL=":"
  6073. else
  6074. case $cross_compiling:$ac_tool_warned in
  6075. yes:)
  6076. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6077. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6078. ac_tool_warned=yes ;;
  6079. esac
  6080. DSYMUTIL=$ac_ct_DSYMUTIL
  6081. fi
  6082. else
  6083. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6084. fi
  6085. if test -n "$ac_tool_prefix"; then
  6086. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6087. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6089. $as_echo_n "checking for $ac_word... " >&6; }
  6090. if ${ac_cv_prog_NMEDIT+:} false; then :
  6091. $as_echo_n "(cached) " >&6
  6092. else
  6093. if test -n "$NMEDIT"; then
  6094. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6095. else
  6096. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6097. for as_dir in $PATH
  6098. do
  6099. IFS=$as_save_IFS
  6100. test -z "$as_dir" && as_dir=.
  6101. for ac_exec_ext in '' $ac_executable_extensions; do
  6102. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6103. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6104. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6105. break 2
  6106. fi
  6107. done
  6108. done
  6109. IFS=$as_save_IFS
  6110. fi
  6111. fi
  6112. NMEDIT=$ac_cv_prog_NMEDIT
  6113. if test -n "$NMEDIT"; then
  6114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6115. $as_echo "$NMEDIT" >&6; }
  6116. else
  6117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6118. $as_echo "no" >&6; }
  6119. fi
  6120. fi
  6121. if test -z "$ac_cv_prog_NMEDIT"; then
  6122. ac_ct_NMEDIT=$NMEDIT
  6123. # Extract the first word of "nmedit", so it can be a program name with args.
  6124. set dummy nmedit; ac_word=$2
  6125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6126. $as_echo_n "checking for $ac_word... " >&6; }
  6127. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6128. $as_echo_n "(cached) " >&6
  6129. else
  6130. if test -n "$ac_ct_NMEDIT"; then
  6131. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6132. else
  6133. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6134. for as_dir in $PATH
  6135. do
  6136. IFS=$as_save_IFS
  6137. test -z "$as_dir" && as_dir=.
  6138. for ac_exec_ext in '' $ac_executable_extensions; do
  6139. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6140. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6141. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6142. break 2
  6143. fi
  6144. done
  6145. done
  6146. IFS=$as_save_IFS
  6147. fi
  6148. fi
  6149. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6150. if test -n "$ac_ct_NMEDIT"; then
  6151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6152. $as_echo "$ac_ct_NMEDIT" >&6; }
  6153. else
  6154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6155. $as_echo "no" >&6; }
  6156. fi
  6157. if test "x$ac_ct_NMEDIT" = x; then
  6158. NMEDIT=":"
  6159. else
  6160. case $cross_compiling:$ac_tool_warned in
  6161. yes:)
  6162. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6163. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6164. ac_tool_warned=yes ;;
  6165. esac
  6166. NMEDIT=$ac_ct_NMEDIT
  6167. fi
  6168. else
  6169. NMEDIT="$ac_cv_prog_NMEDIT"
  6170. fi
  6171. if test -n "$ac_tool_prefix"; then
  6172. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6173. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6175. $as_echo_n "checking for $ac_word... " >&6; }
  6176. if ${ac_cv_prog_LIPO+:} false; then :
  6177. $as_echo_n "(cached) " >&6
  6178. else
  6179. if test -n "$LIPO"; then
  6180. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6181. else
  6182. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6183. for as_dir in $PATH
  6184. do
  6185. IFS=$as_save_IFS
  6186. test -z "$as_dir" && as_dir=.
  6187. for ac_exec_ext in '' $ac_executable_extensions; do
  6188. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6189. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6190. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6191. break 2
  6192. fi
  6193. done
  6194. done
  6195. IFS=$as_save_IFS
  6196. fi
  6197. fi
  6198. LIPO=$ac_cv_prog_LIPO
  6199. if test -n "$LIPO"; then
  6200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6201. $as_echo "$LIPO" >&6; }
  6202. else
  6203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6204. $as_echo "no" >&6; }
  6205. fi
  6206. fi
  6207. if test -z "$ac_cv_prog_LIPO"; then
  6208. ac_ct_LIPO=$LIPO
  6209. # Extract the first word of "lipo", so it can be a program name with args.
  6210. set dummy lipo; ac_word=$2
  6211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6212. $as_echo_n "checking for $ac_word... " >&6; }
  6213. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6214. $as_echo_n "(cached) " >&6
  6215. else
  6216. if test -n "$ac_ct_LIPO"; then
  6217. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6218. else
  6219. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6220. for as_dir in $PATH
  6221. do
  6222. IFS=$as_save_IFS
  6223. test -z "$as_dir" && as_dir=.
  6224. for ac_exec_ext in '' $ac_executable_extensions; do
  6225. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6226. ac_cv_prog_ac_ct_LIPO="lipo"
  6227. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6228. break 2
  6229. fi
  6230. done
  6231. done
  6232. IFS=$as_save_IFS
  6233. fi
  6234. fi
  6235. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6236. if test -n "$ac_ct_LIPO"; then
  6237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6238. $as_echo "$ac_ct_LIPO" >&6; }
  6239. else
  6240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6241. $as_echo "no" >&6; }
  6242. fi
  6243. if test "x$ac_ct_LIPO" = x; then
  6244. LIPO=":"
  6245. else
  6246. case $cross_compiling:$ac_tool_warned in
  6247. yes:)
  6248. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6249. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6250. ac_tool_warned=yes ;;
  6251. esac
  6252. LIPO=$ac_ct_LIPO
  6253. fi
  6254. else
  6255. LIPO="$ac_cv_prog_LIPO"
  6256. fi
  6257. if test -n "$ac_tool_prefix"; then
  6258. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6259. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6261. $as_echo_n "checking for $ac_word... " >&6; }
  6262. if ${ac_cv_prog_OTOOL+:} false; then :
  6263. $as_echo_n "(cached) " >&6
  6264. else
  6265. if test -n "$OTOOL"; then
  6266. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6267. else
  6268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6269. for as_dir in $PATH
  6270. do
  6271. IFS=$as_save_IFS
  6272. test -z "$as_dir" && as_dir=.
  6273. for ac_exec_ext in '' $ac_executable_extensions; do
  6274. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6275. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6276. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6277. break 2
  6278. fi
  6279. done
  6280. done
  6281. IFS=$as_save_IFS
  6282. fi
  6283. fi
  6284. OTOOL=$ac_cv_prog_OTOOL
  6285. if test -n "$OTOOL"; then
  6286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6287. $as_echo "$OTOOL" >&6; }
  6288. else
  6289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6290. $as_echo "no" >&6; }
  6291. fi
  6292. fi
  6293. if test -z "$ac_cv_prog_OTOOL"; then
  6294. ac_ct_OTOOL=$OTOOL
  6295. # Extract the first word of "otool", so it can be a program name with args.
  6296. set dummy otool; ac_word=$2
  6297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6298. $as_echo_n "checking for $ac_word... " >&6; }
  6299. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6300. $as_echo_n "(cached) " >&6
  6301. else
  6302. if test -n "$ac_ct_OTOOL"; then
  6303. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6304. else
  6305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6306. for as_dir in $PATH
  6307. do
  6308. IFS=$as_save_IFS
  6309. test -z "$as_dir" && as_dir=.
  6310. for ac_exec_ext in '' $ac_executable_extensions; do
  6311. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6312. ac_cv_prog_ac_ct_OTOOL="otool"
  6313. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6314. break 2
  6315. fi
  6316. done
  6317. done
  6318. IFS=$as_save_IFS
  6319. fi
  6320. fi
  6321. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6322. if test -n "$ac_ct_OTOOL"; then
  6323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6324. $as_echo "$ac_ct_OTOOL" >&6; }
  6325. else
  6326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6327. $as_echo "no" >&6; }
  6328. fi
  6329. if test "x$ac_ct_OTOOL" = x; then
  6330. OTOOL=":"
  6331. else
  6332. case $cross_compiling:$ac_tool_warned in
  6333. yes:)
  6334. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6335. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6336. ac_tool_warned=yes ;;
  6337. esac
  6338. OTOOL=$ac_ct_OTOOL
  6339. fi
  6340. else
  6341. OTOOL="$ac_cv_prog_OTOOL"
  6342. fi
  6343. if test -n "$ac_tool_prefix"; then
  6344. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6345. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6347. $as_echo_n "checking for $ac_word... " >&6; }
  6348. if ${ac_cv_prog_OTOOL64+:} false; then :
  6349. $as_echo_n "(cached) " >&6
  6350. else
  6351. if test -n "$OTOOL64"; then
  6352. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6353. else
  6354. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6355. for as_dir in $PATH
  6356. do
  6357. IFS=$as_save_IFS
  6358. test -z "$as_dir" && as_dir=.
  6359. for ac_exec_ext in '' $ac_executable_extensions; do
  6360. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6361. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6362. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6363. break 2
  6364. fi
  6365. done
  6366. done
  6367. IFS=$as_save_IFS
  6368. fi
  6369. fi
  6370. OTOOL64=$ac_cv_prog_OTOOL64
  6371. if test -n "$OTOOL64"; then
  6372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6373. $as_echo "$OTOOL64" >&6; }
  6374. else
  6375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6376. $as_echo "no" >&6; }
  6377. fi
  6378. fi
  6379. if test -z "$ac_cv_prog_OTOOL64"; then
  6380. ac_ct_OTOOL64=$OTOOL64
  6381. # Extract the first word of "otool64", so it can be a program name with args.
  6382. set dummy otool64; ac_word=$2
  6383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6384. $as_echo_n "checking for $ac_word... " >&6; }
  6385. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6386. $as_echo_n "(cached) " >&6
  6387. else
  6388. if test -n "$ac_ct_OTOOL64"; then
  6389. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6390. else
  6391. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6392. for as_dir in $PATH
  6393. do
  6394. IFS=$as_save_IFS
  6395. test -z "$as_dir" && as_dir=.
  6396. for ac_exec_ext in '' $ac_executable_extensions; do
  6397. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6398. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6399. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6400. break 2
  6401. fi
  6402. done
  6403. done
  6404. IFS=$as_save_IFS
  6405. fi
  6406. fi
  6407. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6408. if test -n "$ac_ct_OTOOL64"; then
  6409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6410. $as_echo "$ac_ct_OTOOL64" >&6; }
  6411. else
  6412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6413. $as_echo "no" >&6; }
  6414. fi
  6415. if test "x$ac_ct_OTOOL64" = x; then
  6416. OTOOL64=":"
  6417. else
  6418. case $cross_compiling:$ac_tool_warned in
  6419. yes:)
  6420. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6421. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6422. ac_tool_warned=yes ;;
  6423. esac
  6424. OTOOL64=$ac_ct_OTOOL64
  6425. fi
  6426. else
  6427. OTOOL64="$ac_cv_prog_OTOOL64"
  6428. fi
  6429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6430. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6431. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6432. $as_echo_n "(cached) " >&6
  6433. else
  6434. lt_cv_apple_cc_single_mod=no
  6435. if test -z "$LT_MULTI_MODULE"; then
  6436. # By default we will add the -single_module flag. You can override
  6437. # by either setting the environment variable LT_MULTI_MODULE
  6438. # non-empty at configure time, or by adding -multi_module to the
  6439. # link flags.
  6440. rm -rf libconftest.dylib*
  6441. echo "int foo(void){return 1;}" > conftest.c
  6442. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6443. -dynamiclib -Wl,-single_module conftest.c" >&5
  6444. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6445. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6446. _lt_result=$?
  6447. # If there is a non-empty error log, and "single_module"
  6448. # appears in it, assume the flag caused a linker warning
  6449. if test -s conftest.err && $GREP single_module conftest.err; then
  6450. cat conftest.err >&5
  6451. # Otherwise, if the output was created with a 0 exit code from
  6452. # the compiler, it worked.
  6453. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  6454. lt_cv_apple_cc_single_mod=yes
  6455. else
  6456. cat conftest.err >&5
  6457. fi
  6458. rm -rf libconftest.dylib*
  6459. rm -f conftest.*
  6460. fi
  6461. fi
  6462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6463. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6465. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6466. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6467. $as_echo_n "(cached) " >&6
  6468. else
  6469. lt_cv_ld_exported_symbols_list=no
  6470. save_LDFLAGS=$LDFLAGS
  6471. echo "_main" > conftest.sym
  6472. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6474. /* end confdefs.h. */
  6475. int
  6476. main ()
  6477. {
  6478. ;
  6479. return 0;
  6480. }
  6481. _ACEOF
  6482. if ac_fn_c_try_link "$LINENO"; then :
  6483. lt_cv_ld_exported_symbols_list=yes
  6484. else
  6485. lt_cv_ld_exported_symbols_list=no
  6486. fi
  6487. rm -f core conftest.err conftest.$ac_objext \
  6488. conftest$ac_exeext conftest.$ac_ext
  6489. LDFLAGS=$save_LDFLAGS
  6490. fi
  6491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6492. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6494. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6495. if ${lt_cv_ld_force_load+:} false; then :
  6496. $as_echo_n "(cached) " >&6
  6497. else
  6498. lt_cv_ld_force_load=no
  6499. cat > conftest.c << _LT_EOF
  6500. int forced_loaded() { return 2;}
  6501. _LT_EOF
  6502. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6503. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6504. echo "$AR cru libconftest.a conftest.o" >&5
  6505. $AR cru libconftest.a conftest.o 2>&5
  6506. echo "$RANLIB libconftest.a" >&5
  6507. $RANLIB libconftest.a 2>&5
  6508. cat > conftest.c << _LT_EOF
  6509. int main() { return 0;}
  6510. _LT_EOF
  6511. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6512. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6513. _lt_result=$?
  6514. if test -s conftest.err && $GREP force_load conftest.err; then
  6515. cat conftest.err >&5
  6516. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  6517. lt_cv_ld_force_load=yes
  6518. else
  6519. cat conftest.err >&5
  6520. fi
  6521. rm -f conftest.err libconftest.a conftest conftest.c
  6522. rm -rf conftest.dSYM
  6523. fi
  6524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6525. $as_echo "$lt_cv_ld_force_load" >&6; }
  6526. case $host_os in
  6527. rhapsody* | darwin1.[012])
  6528. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  6529. darwin1.*)
  6530. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6531. darwin*) # darwin 5.x on
  6532. # if running on 10.5 or later, the deployment target defaults
  6533. # to the OS version, if on x86, and 10.4, the deployment
  6534. # target defaults to 10.4. Don't you love it?
  6535. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6536. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6537. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6538. 10.[012][,.]*)
  6539. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6540. 10.*)
  6541. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6542. esac
  6543. ;;
  6544. esac
  6545. if test yes = "$lt_cv_apple_cc_single_mod"; then
  6546. _lt_dar_single_mod='$single_module'
  6547. fi
  6548. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  6549. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  6550. else
  6551. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  6552. fi
  6553. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  6554. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6555. else
  6556. _lt_dsymutil=
  6557. fi
  6558. ;;
  6559. esac
  6560. # func_munge_path_list VARIABLE PATH
  6561. # -----------------------------------
  6562. # VARIABLE is name of variable containing _space_ separated list of
  6563. # directories to be munged by the contents of PATH, which is string
  6564. # having a format:
  6565. # "DIR[:DIR]:"
  6566. # string "DIR[ DIR]" will be prepended to VARIABLE
  6567. # ":DIR[:DIR]"
  6568. # string "DIR[ DIR]" will be appended to VARIABLE
  6569. # "DIRP[:DIRP]::[DIRA:]DIRA"
  6570. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  6571. # "DIRA[ DIRA]" will be appended to VARIABLE
  6572. # "DIR[:DIR]"
  6573. # VARIABLE will be replaced by "DIR[ DIR]"
  6574. func_munge_path_list ()
  6575. {
  6576. case x$2 in
  6577. x)
  6578. ;;
  6579. *:)
  6580. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  6581. ;;
  6582. x:*)
  6583. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  6584. ;;
  6585. *::*)
  6586. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  6587. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  6588. ;;
  6589. *)
  6590. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  6591. ;;
  6592. esac
  6593. }
  6594. ac_ext=c
  6595. ac_cpp='$CPP $CPPFLAGS'
  6596. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6597. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6598. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6600. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6601. # On Suns, sometimes $CPP names a directory.
  6602. if test -n "$CPP" && test -d "$CPP"; then
  6603. CPP=
  6604. fi
  6605. if test -z "$CPP"; then
  6606. if ${ac_cv_prog_CPP+:} false; then :
  6607. $as_echo_n "(cached) " >&6
  6608. else
  6609. # Double quotes because CPP needs to be expanded
  6610. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6611. do
  6612. ac_preproc_ok=false
  6613. for ac_c_preproc_warn_flag in '' yes
  6614. do
  6615. # Use a header file that comes with gcc, so configuring glibc
  6616. # with a fresh cross-compiler works.
  6617. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6618. # <limits.h> exists even on freestanding compilers.
  6619. # On the NeXT, cc -E runs the code through the compiler's parser,
  6620. # not just through cpp. "Syntax error" is here to catch this case.
  6621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6622. /* end confdefs.h. */
  6623. #ifdef __STDC__
  6624. # include <limits.h>
  6625. #else
  6626. # include <assert.h>
  6627. #endif
  6628. Syntax error
  6629. _ACEOF
  6630. if ac_fn_c_try_cpp "$LINENO"; then :
  6631. else
  6632. # Broken: fails on valid input.
  6633. continue
  6634. fi
  6635. rm -f conftest.err conftest.i conftest.$ac_ext
  6636. # OK, works on sane cases. Now check whether nonexistent headers
  6637. # can be detected and how.
  6638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6639. /* end confdefs.h. */
  6640. #include <ac_nonexistent.h>
  6641. _ACEOF
  6642. if ac_fn_c_try_cpp "$LINENO"; then :
  6643. # Broken: success on invalid input.
  6644. continue
  6645. else
  6646. # Passes both tests.
  6647. ac_preproc_ok=:
  6648. break
  6649. fi
  6650. rm -f conftest.err conftest.i conftest.$ac_ext
  6651. done
  6652. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6653. rm -f conftest.i conftest.err conftest.$ac_ext
  6654. if $ac_preproc_ok; then :
  6655. break
  6656. fi
  6657. done
  6658. ac_cv_prog_CPP=$CPP
  6659. fi
  6660. CPP=$ac_cv_prog_CPP
  6661. else
  6662. ac_cv_prog_CPP=$CPP
  6663. fi
  6664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6665. $as_echo "$CPP" >&6; }
  6666. ac_preproc_ok=false
  6667. for ac_c_preproc_warn_flag in '' yes
  6668. do
  6669. # Use a header file that comes with gcc, so configuring glibc
  6670. # with a fresh cross-compiler works.
  6671. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6672. # <limits.h> exists even on freestanding compilers.
  6673. # On the NeXT, cc -E runs the code through the compiler's parser,
  6674. # not just through cpp. "Syntax error" is here to catch this case.
  6675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6676. /* end confdefs.h. */
  6677. #ifdef __STDC__
  6678. # include <limits.h>
  6679. #else
  6680. # include <assert.h>
  6681. #endif
  6682. Syntax error
  6683. _ACEOF
  6684. if ac_fn_c_try_cpp "$LINENO"; then :
  6685. else
  6686. # Broken: fails on valid input.
  6687. continue
  6688. fi
  6689. rm -f conftest.err conftest.i conftest.$ac_ext
  6690. # OK, works on sane cases. Now check whether nonexistent headers
  6691. # can be detected and how.
  6692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6693. /* end confdefs.h. */
  6694. #include <ac_nonexistent.h>
  6695. _ACEOF
  6696. if ac_fn_c_try_cpp "$LINENO"; then :
  6697. # Broken: success on invalid input.
  6698. continue
  6699. else
  6700. # Passes both tests.
  6701. ac_preproc_ok=:
  6702. break
  6703. fi
  6704. rm -f conftest.err conftest.i conftest.$ac_ext
  6705. done
  6706. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6707. rm -f conftest.i conftest.err conftest.$ac_ext
  6708. if $ac_preproc_ok; then :
  6709. else
  6710. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6711. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6712. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6713. See \`config.log' for more details" "$LINENO" 5; }
  6714. fi
  6715. ac_ext=c
  6716. ac_cpp='$CPP $CPPFLAGS'
  6717. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6718. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6719. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6721. $as_echo_n "checking for ANSI C header files... " >&6; }
  6722. if ${ac_cv_header_stdc+:} false; then :
  6723. $as_echo_n "(cached) " >&6
  6724. else
  6725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6726. /* end confdefs.h. */
  6727. #include <stdlib.h>
  6728. #include <stdarg.h>
  6729. #include <string.h>
  6730. #include <float.h>
  6731. int
  6732. main ()
  6733. {
  6734. ;
  6735. return 0;
  6736. }
  6737. _ACEOF
  6738. if ac_fn_c_try_compile "$LINENO"; then :
  6739. ac_cv_header_stdc=yes
  6740. else
  6741. ac_cv_header_stdc=no
  6742. fi
  6743. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6744. if test $ac_cv_header_stdc = yes; then
  6745. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6747. /* end confdefs.h. */
  6748. #include <string.h>
  6749. _ACEOF
  6750. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6751. $EGREP "memchr" >/dev/null 2>&1; then :
  6752. else
  6753. ac_cv_header_stdc=no
  6754. fi
  6755. rm -f conftest*
  6756. fi
  6757. if test $ac_cv_header_stdc = yes; then
  6758. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6760. /* end confdefs.h. */
  6761. #include <stdlib.h>
  6762. _ACEOF
  6763. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6764. $EGREP "free" >/dev/null 2>&1; then :
  6765. else
  6766. ac_cv_header_stdc=no
  6767. fi
  6768. rm -f conftest*
  6769. fi
  6770. if test $ac_cv_header_stdc = yes; then
  6771. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6772. if test "$cross_compiling" = yes; then :
  6773. :
  6774. else
  6775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6776. /* end confdefs.h. */
  6777. #include <ctype.h>
  6778. #include <stdlib.h>
  6779. #if ((' ' & 0x0FF) == 0x020)
  6780. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6781. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6782. #else
  6783. # define ISLOWER(c) \
  6784. (('a' <= (c) && (c) <= 'i') \
  6785. || ('j' <= (c) && (c) <= 'r') \
  6786. || ('s' <= (c) && (c) <= 'z'))
  6787. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6788. #endif
  6789. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6790. int
  6791. main ()
  6792. {
  6793. int i;
  6794. for (i = 0; i < 256; i++)
  6795. if (XOR (islower (i), ISLOWER (i))
  6796. || toupper (i) != TOUPPER (i))
  6797. return 2;
  6798. return 0;
  6799. }
  6800. _ACEOF
  6801. if ac_fn_c_try_run "$LINENO"; then :
  6802. else
  6803. ac_cv_header_stdc=no
  6804. fi
  6805. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6806. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6807. fi
  6808. fi
  6809. fi
  6810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6811. $as_echo "$ac_cv_header_stdc" >&6; }
  6812. if test $ac_cv_header_stdc = yes; then
  6813. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6814. fi
  6815. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6816. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6817. inttypes.h stdint.h unistd.h
  6818. do :
  6819. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6820. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6821. "
  6822. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6823. cat >>confdefs.h <<_ACEOF
  6824. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6825. _ACEOF
  6826. fi
  6827. done
  6828. for ac_header in dlfcn.h
  6829. do :
  6830. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6831. "
  6832. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6833. cat >>confdefs.h <<_ACEOF
  6834. #define HAVE_DLFCN_H 1
  6835. _ACEOF
  6836. fi
  6837. done
  6838. # Set options
  6839. # Check whether --enable-shared was given.
  6840. if test "${enable_shared+set}" = set; then :
  6841. enableval=$enable_shared; p=${PACKAGE-default}
  6842. case $enableval in
  6843. yes) enable_shared=yes ;;
  6844. no) enable_shared=no ;;
  6845. *)
  6846. enable_shared=no
  6847. # Look at the argument we got. We use all the common list separators.
  6848. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6849. for pkg in $enableval; do
  6850. IFS=$lt_save_ifs
  6851. if test "X$pkg" = "X$p"; then
  6852. enable_shared=yes
  6853. fi
  6854. done
  6855. IFS=$lt_save_ifs
  6856. ;;
  6857. esac
  6858. else
  6859. enable_shared=no
  6860. fi
  6861. enable_dlopen=no
  6862. enable_win32_dll=no
  6863. # Check whether --enable-static was given.
  6864. if test "${enable_static+set}" = set; then :
  6865. enableval=$enable_static; p=${PACKAGE-default}
  6866. case $enableval in
  6867. yes) enable_static=yes ;;
  6868. no) enable_static=no ;;
  6869. *)
  6870. enable_static=no
  6871. # Look at the argument we got. We use all the common list separators.
  6872. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6873. for pkg in $enableval; do
  6874. IFS=$lt_save_ifs
  6875. if test "X$pkg" = "X$p"; then
  6876. enable_static=yes
  6877. fi
  6878. done
  6879. IFS=$lt_save_ifs
  6880. ;;
  6881. esac
  6882. else
  6883. enable_static=yes
  6884. fi
  6885. # Check whether --with-pic was given.
  6886. if test "${with_pic+set}" = set; then :
  6887. withval=$with_pic; lt_p=${PACKAGE-default}
  6888. case $withval in
  6889. yes|no) pic_mode=$withval ;;
  6890. *)
  6891. pic_mode=default
  6892. # Look at the argument we got. We use all the common list separators.
  6893. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6894. for lt_pkg in $withval; do
  6895. IFS=$lt_save_ifs
  6896. if test "X$lt_pkg" = "X$lt_p"; then
  6897. pic_mode=yes
  6898. fi
  6899. done
  6900. IFS=$lt_save_ifs
  6901. ;;
  6902. esac
  6903. else
  6904. pic_mode=default
  6905. fi
  6906. # Check whether --enable-fast-install was given.
  6907. if test "${enable_fast_install+set}" = set; then :
  6908. enableval=$enable_fast_install; p=${PACKAGE-default}
  6909. case $enableval in
  6910. yes) enable_fast_install=yes ;;
  6911. no) enable_fast_install=no ;;
  6912. *)
  6913. enable_fast_install=no
  6914. # Look at the argument we got. We use all the common list separators.
  6915. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6916. for pkg in $enableval; do
  6917. IFS=$lt_save_ifs
  6918. if test "X$pkg" = "X$p"; then
  6919. enable_fast_install=yes
  6920. fi
  6921. done
  6922. IFS=$lt_save_ifs
  6923. ;;
  6924. esac
  6925. else
  6926. enable_fast_install=yes
  6927. fi
  6928. shared_archive_member_spec=
  6929. case $host,$enable_shared in
  6930. power*-*-aix[5-9]*,yes)
  6931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  6932. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  6933. # Check whether --with-aix-soname was given.
  6934. if test "${with_aix_soname+set}" = set; then :
  6935. withval=$with_aix_soname; case $withval in
  6936. aix|svr4|both)
  6937. ;;
  6938. *)
  6939. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  6940. ;;
  6941. esac
  6942. lt_cv_with_aix_soname=$with_aix_soname
  6943. else
  6944. if ${lt_cv_with_aix_soname+:} false; then :
  6945. $as_echo_n "(cached) " >&6
  6946. else
  6947. lt_cv_with_aix_soname=aix
  6948. fi
  6949. with_aix_soname=$lt_cv_with_aix_soname
  6950. fi
  6951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  6952. $as_echo "$with_aix_soname" >&6; }
  6953. if test aix != "$with_aix_soname"; then
  6954. # For the AIX way of multilib, we name the shared archive member
  6955. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  6956. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  6957. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  6958. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  6959. if test 64 = "${OBJECT_MODE-32}"; then
  6960. shared_archive_member_spec=shr_64
  6961. else
  6962. shared_archive_member_spec=shr
  6963. fi
  6964. fi
  6965. ;;
  6966. *)
  6967. with_aix_soname=aix
  6968. ;;
  6969. esac
  6970. # This can be used to rebuild libtool when needed
  6971. LIBTOOL_DEPS=$ltmain
  6972. # Always use our own libtool.
  6973. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6974. test -z "$LN_S" && LN_S="ln -s"
  6975. if test -n "${ZSH_VERSION+set}"; then
  6976. setopt NO_GLOB_SUBST
  6977. fi
  6978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6979. $as_echo_n "checking for objdir... " >&6; }
  6980. if ${lt_cv_objdir+:} false; then :
  6981. $as_echo_n "(cached) " >&6
  6982. else
  6983. rm -f .libs 2>/dev/null
  6984. mkdir .libs 2>/dev/null
  6985. if test -d .libs; then
  6986. lt_cv_objdir=.libs
  6987. else
  6988. # MS-DOS does not allow filenames that begin with a dot.
  6989. lt_cv_objdir=_libs
  6990. fi
  6991. rmdir .libs 2>/dev/null
  6992. fi
  6993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6994. $as_echo "$lt_cv_objdir" >&6; }
  6995. objdir=$lt_cv_objdir
  6996. cat >>confdefs.h <<_ACEOF
  6997. #define LT_OBJDIR "$lt_cv_objdir/"
  6998. _ACEOF
  6999. case $host_os in
  7000. aix3*)
  7001. # AIX sometimes has problems with the GCC collect2 program. For some
  7002. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7003. # vanish in a puff of smoke.
  7004. if test set != "${COLLECT_NAMES+set}"; then
  7005. COLLECT_NAMES=
  7006. export COLLECT_NAMES
  7007. fi
  7008. ;;
  7009. esac
  7010. # Global variables:
  7011. ofile=libtool
  7012. can_build_shared=yes
  7013. # All known linkers require a '.a' archive for static linking (except MSVC,
  7014. # which needs '.lib').
  7015. libext=a
  7016. with_gnu_ld=$lt_cv_prog_gnu_ld
  7017. old_CC=$CC
  7018. old_CFLAGS=$CFLAGS
  7019. # Set sane defaults for various variables
  7020. test -z "$CC" && CC=cc
  7021. test -z "$LTCC" && LTCC=$CC
  7022. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7023. test -z "$LD" && LD=ld
  7024. test -z "$ac_objext" && ac_objext=o
  7025. func_cc_basename $compiler
  7026. cc_basename=$func_cc_basename_result
  7027. # Only perform the check for file, if the check method requires it
  7028. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7029. case $deplibs_check_method in
  7030. file_magic*)
  7031. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7033. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7034. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7035. $as_echo_n "(cached) " >&6
  7036. else
  7037. case $MAGIC_CMD in
  7038. [\\/*] | ?:[\\/]*)
  7039. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7040. ;;
  7041. *)
  7042. lt_save_MAGIC_CMD=$MAGIC_CMD
  7043. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7044. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7045. for ac_dir in $ac_dummy; do
  7046. IFS=$lt_save_ifs
  7047. test -z "$ac_dir" && ac_dir=.
  7048. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7049. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7050. if test -n "$file_magic_test_file"; then
  7051. case $deplibs_check_method in
  7052. "file_magic "*)
  7053. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7054. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7055. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7056. $EGREP "$file_magic_regex" > /dev/null; then
  7057. :
  7058. else
  7059. cat <<_LT_EOF 1>&2
  7060. *** Warning: the command libtool uses to detect shared libraries,
  7061. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7062. *** The result is that libtool may fail to recognize shared libraries
  7063. *** as such. This will affect the creation of libtool libraries that
  7064. *** depend on shared libraries, but programs linked with such libtool
  7065. *** libraries will work regardless of this problem. Nevertheless, you
  7066. *** may want to report the problem to your system manager and/or to
  7067. *** [email protected]
  7068. _LT_EOF
  7069. fi ;;
  7070. esac
  7071. fi
  7072. break
  7073. fi
  7074. done
  7075. IFS=$lt_save_ifs
  7076. MAGIC_CMD=$lt_save_MAGIC_CMD
  7077. ;;
  7078. esac
  7079. fi
  7080. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7081. if test -n "$MAGIC_CMD"; then
  7082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7083. $as_echo "$MAGIC_CMD" >&6; }
  7084. else
  7085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7086. $as_echo "no" >&6; }
  7087. fi
  7088. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7089. if test -n "$ac_tool_prefix"; then
  7090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7091. $as_echo_n "checking for file... " >&6; }
  7092. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7093. $as_echo_n "(cached) " >&6
  7094. else
  7095. case $MAGIC_CMD in
  7096. [\\/*] | ?:[\\/]*)
  7097. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7098. ;;
  7099. *)
  7100. lt_save_MAGIC_CMD=$MAGIC_CMD
  7101. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7102. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7103. for ac_dir in $ac_dummy; do
  7104. IFS=$lt_save_ifs
  7105. test -z "$ac_dir" && ac_dir=.
  7106. if test -f "$ac_dir/file"; then
  7107. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7108. if test -n "$file_magic_test_file"; then
  7109. case $deplibs_check_method in
  7110. "file_magic "*)
  7111. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7112. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7113. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7114. $EGREP "$file_magic_regex" > /dev/null; then
  7115. :
  7116. else
  7117. cat <<_LT_EOF 1>&2
  7118. *** Warning: the command libtool uses to detect shared libraries,
  7119. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7120. *** The result is that libtool may fail to recognize shared libraries
  7121. *** as such. This will affect the creation of libtool libraries that
  7122. *** depend on shared libraries, but programs linked with such libtool
  7123. *** libraries will work regardless of this problem. Nevertheless, you
  7124. *** may want to report the problem to your system manager and/or to
  7125. *** [email protected]
  7126. _LT_EOF
  7127. fi ;;
  7128. esac
  7129. fi
  7130. break
  7131. fi
  7132. done
  7133. IFS=$lt_save_ifs
  7134. MAGIC_CMD=$lt_save_MAGIC_CMD
  7135. ;;
  7136. esac
  7137. fi
  7138. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7139. if test -n "$MAGIC_CMD"; then
  7140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7141. $as_echo "$MAGIC_CMD" >&6; }
  7142. else
  7143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7144. $as_echo "no" >&6; }
  7145. fi
  7146. else
  7147. MAGIC_CMD=:
  7148. fi
  7149. fi
  7150. fi
  7151. ;;
  7152. esac
  7153. # Use C for the default configuration in the libtool script
  7154. lt_save_CC=$CC
  7155. ac_ext=c
  7156. ac_cpp='$CPP $CPPFLAGS'
  7157. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7158. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7159. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7160. # Source file extension for C test sources.
  7161. ac_ext=c
  7162. # Object file extension for compiled C test sources.
  7163. objext=o
  7164. objext=$objext
  7165. # Code to be used in simple compile tests
  7166. lt_simple_compile_test_code="int some_variable = 0;"
  7167. # Code to be used in simple link tests
  7168. lt_simple_link_test_code='int main(){return(0);}'
  7169. # If no C compiler was specified, use CC.
  7170. LTCC=${LTCC-"$CC"}
  7171. # If no C compiler flags were specified, use CFLAGS.
  7172. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7173. # Allow CC to be a program name with arguments.
  7174. compiler=$CC
  7175. # Save the default compiler, since it gets overwritten when the other
  7176. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7177. compiler_DEFAULT=$CC
  7178. # save warnings/boilerplate of simple test code
  7179. ac_outfile=conftest.$ac_objext
  7180. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7181. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7182. _lt_compiler_boilerplate=`cat conftest.err`
  7183. $RM conftest*
  7184. ac_outfile=conftest.$ac_objext
  7185. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7186. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7187. _lt_linker_boilerplate=`cat conftest.err`
  7188. $RM -r conftest*
  7189. ## CAVEAT EMPTOR:
  7190. ## There is no encapsulation within the following macros, do not change
  7191. ## the running order or otherwise move them around unless you know exactly
  7192. ## what you are doing...
  7193. if test -n "$compiler"; then
  7194. lt_prog_compiler_no_builtin_flag=
  7195. if test yes = "$GCC"; then
  7196. case $cc_basename in
  7197. nvcc*)
  7198. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7199. *)
  7200. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7201. esac
  7202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7203. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7204. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7205. $as_echo_n "(cached) " >&6
  7206. else
  7207. lt_cv_prog_compiler_rtti_exceptions=no
  7208. ac_outfile=conftest.$ac_objext
  7209. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7210. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7211. # Insert the option either (1) after the last *FLAGS variable, or
  7212. # (2) before a word containing "conftest.", or (3) at the end.
  7213. # Note that $ac_compile itself does not contain backslashes and begins
  7214. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7215. # The option is referenced via a variable to avoid confusing sed.
  7216. lt_compile=`echo "$ac_compile" | $SED \
  7217. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7218. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7219. -e 's:$: $lt_compiler_flag:'`
  7220. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7221. (eval "$lt_compile" 2>conftest.err)
  7222. ac_status=$?
  7223. cat conftest.err >&5
  7224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7225. if (exit $ac_status) && test -s "$ac_outfile"; then
  7226. # The compiler can only warn and ignore the option if not recognized
  7227. # So say no if there are warnings other than the usual output.
  7228. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7229. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7230. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7231. lt_cv_prog_compiler_rtti_exceptions=yes
  7232. fi
  7233. fi
  7234. $RM conftest*
  7235. fi
  7236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7237. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7238. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7239. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7240. else
  7241. :
  7242. fi
  7243. fi
  7244. lt_prog_compiler_wl=
  7245. lt_prog_compiler_pic=
  7246. lt_prog_compiler_static=
  7247. if test yes = "$GCC"; then
  7248. lt_prog_compiler_wl='-Wl,'
  7249. lt_prog_compiler_static='-static'
  7250. case $host_os in
  7251. aix*)
  7252. # All AIX code is PIC.
  7253. if test ia64 = "$host_cpu"; then
  7254. # AIX 5 now supports IA64 processor
  7255. lt_prog_compiler_static='-Bstatic'
  7256. fi
  7257. lt_prog_compiler_pic='-fPIC'
  7258. ;;
  7259. amigaos*)
  7260. case $host_cpu in
  7261. powerpc)
  7262. # see comment about AmigaOS4 .so support
  7263. lt_prog_compiler_pic='-fPIC'
  7264. ;;
  7265. m68k)
  7266. # FIXME: we need at least 68020 code to build shared libraries, but
  7267. # adding the '-m68020' flag to GCC prevents building anything better,
  7268. # like '-m68040'.
  7269. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7270. ;;
  7271. esac
  7272. ;;
  7273. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7274. # PIC is the default for these OSes.
  7275. ;;
  7276. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7277. # This hack is so that the source file can tell whether it is being
  7278. # built for inclusion in a dll (and should export symbols for example).
  7279. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7280. # (--disable-auto-import) libraries
  7281. lt_prog_compiler_pic='-DDLL_EXPORT'
  7282. case $host_os in
  7283. os2*)
  7284. lt_prog_compiler_static='$wl-static'
  7285. ;;
  7286. esac
  7287. ;;
  7288. darwin* | rhapsody*)
  7289. # PIC is the default on this platform
  7290. # Common symbols not allowed in MH_DYLIB files
  7291. lt_prog_compiler_pic='-fno-common'
  7292. ;;
  7293. haiku*)
  7294. # PIC is the default for Haiku.
  7295. # The "-static" flag exists, but is broken.
  7296. lt_prog_compiler_static=
  7297. ;;
  7298. hpux*)
  7299. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7300. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7301. # sets the default TLS model and affects inlining.
  7302. case $host_cpu in
  7303. hppa*64*)
  7304. # +Z the default
  7305. ;;
  7306. *)
  7307. lt_prog_compiler_pic='-fPIC'
  7308. ;;
  7309. esac
  7310. ;;
  7311. interix[3-9]*)
  7312. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7313. # Instead, we relocate shared libraries at runtime.
  7314. ;;
  7315. msdosdjgpp*)
  7316. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7317. # on systems that don't support them.
  7318. lt_prog_compiler_can_build_shared=no
  7319. enable_shared=no
  7320. ;;
  7321. *nto* | *qnx*)
  7322. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7323. # it will coredump.
  7324. lt_prog_compiler_pic='-fPIC -shared'
  7325. ;;
  7326. sysv4*MP*)
  7327. if test -d /usr/nec; then
  7328. lt_prog_compiler_pic=-Kconform_pic
  7329. fi
  7330. ;;
  7331. *)
  7332. lt_prog_compiler_pic='-fPIC'
  7333. ;;
  7334. esac
  7335. case $cc_basename in
  7336. nvcc*) # Cuda Compiler Driver 2.2
  7337. lt_prog_compiler_wl='-Xlinker '
  7338. if test -n "$lt_prog_compiler_pic"; then
  7339. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7340. fi
  7341. ;;
  7342. esac
  7343. else
  7344. # PORTME Check for flag to pass linker flags through the system compiler.
  7345. case $host_os in
  7346. aix*)
  7347. lt_prog_compiler_wl='-Wl,'
  7348. if test ia64 = "$host_cpu"; then
  7349. # AIX 5 now supports IA64 processor
  7350. lt_prog_compiler_static='-Bstatic'
  7351. else
  7352. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7353. fi
  7354. ;;
  7355. darwin* | rhapsody*)
  7356. # PIC is the default on this platform
  7357. # Common symbols not allowed in MH_DYLIB files
  7358. lt_prog_compiler_pic='-fno-common'
  7359. case $cc_basename in
  7360. nagfor*)
  7361. # NAG Fortran compiler
  7362. lt_prog_compiler_wl='-Wl,-Wl,,'
  7363. lt_prog_compiler_pic='-PIC'
  7364. lt_prog_compiler_static='-Bstatic'
  7365. ;;
  7366. esac
  7367. ;;
  7368. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7369. # This hack is so that the source file can tell whether it is being
  7370. # built for inclusion in a dll (and should export symbols for example).
  7371. lt_prog_compiler_pic='-DDLL_EXPORT'
  7372. case $host_os in
  7373. os2*)
  7374. lt_prog_compiler_static='$wl-static'
  7375. ;;
  7376. esac
  7377. ;;
  7378. hpux9* | hpux10* | hpux11*)
  7379. lt_prog_compiler_wl='-Wl,'
  7380. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7381. # not for PA HP-UX.
  7382. case $host_cpu in
  7383. hppa*64*|ia64*)
  7384. # +Z the default
  7385. ;;
  7386. *)
  7387. lt_prog_compiler_pic='+Z'
  7388. ;;
  7389. esac
  7390. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7391. lt_prog_compiler_static='$wl-a ${wl}archive'
  7392. ;;
  7393. irix5* | irix6* | nonstopux*)
  7394. lt_prog_compiler_wl='-Wl,'
  7395. # PIC (with -KPIC) is the default.
  7396. lt_prog_compiler_static='-non_shared'
  7397. ;;
  7398. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7399. case $cc_basename in
  7400. # old Intel for x86_64, which still supported -KPIC.
  7401. ecc*)
  7402. lt_prog_compiler_wl='-Wl,'
  7403. lt_prog_compiler_pic='-KPIC'
  7404. lt_prog_compiler_static='-static'
  7405. ;;
  7406. # icc used to be incompatible with GCC.
  7407. # ICC 10 doesn't accept -KPIC any more.
  7408. icc* | ifort*)
  7409. lt_prog_compiler_wl='-Wl,'
  7410. lt_prog_compiler_pic='-fPIC'
  7411. lt_prog_compiler_static='-static'
  7412. ;;
  7413. # Lahey Fortran 8.1.
  7414. lf95*)
  7415. lt_prog_compiler_wl='-Wl,'
  7416. lt_prog_compiler_pic='--shared'
  7417. lt_prog_compiler_static='--static'
  7418. ;;
  7419. nagfor*)
  7420. # NAG Fortran compiler
  7421. lt_prog_compiler_wl='-Wl,-Wl,,'
  7422. lt_prog_compiler_pic='-PIC'
  7423. lt_prog_compiler_static='-Bstatic'
  7424. ;;
  7425. tcc*)
  7426. # Fabrice Bellard et al's Tiny C Compiler
  7427. lt_prog_compiler_wl='-Wl,'
  7428. lt_prog_compiler_pic='-fPIC'
  7429. lt_prog_compiler_static='-static'
  7430. ;;
  7431. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7432. # Portland Group compilers (*not* the Pentium gcc compiler,
  7433. # which looks to be a dead project)
  7434. lt_prog_compiler_wl='-Wl,'
  7435. lt_prog_compiler_pic='-fpic'
  7436. lt_prog_compiler_static='-Bstatic'
  7437. ;;
  7438. ccc*)
  7439. lt_prog_compiler_wl='-Wl,'
  7440. # All Alpha code is PIC.
  7441. lt_prog_compiler_static='-non_shared'
  7442. ;;
  7443. xl* | bgxl* | bgf* | mpixl*)
  7444. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7445. lt_prog_compiler_wl='-Wl,'
  7446. lt_prog_compiler_pic='-qpic'
  7447. lt_prog_compiler_static='-qstaticlink'
  7448. ;;
  7449. *)
  7450. case `$CC -V 2>&1 | sed 5q` in
  7451. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7452. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7453. lt_prog_compiler_pic='-KPIC'
  7454. lt_prog_compiler_static='-Bstatic'
  7455. lt_prog_compiler_wl=''
  7456. ;;
  7457. *Sun\ F* | *Sun*Fortran*)
  7458. lt_prog_compiler_pic='-KPIC'
  7459. lt_prog_compiler_static='-Bstatic'
  7460. lt_prog_compiler_wl='-Qoption ld '
  7461. ;;
  7462. *Sun\ C*)
  7463. # Sun C 5.9
  7464. lt_prog_compiler_pic='-KPIC'
  7465. lt_prog_compiler_static='-Bstatic'
  7466. lt_prog_compiler_wl='-Wl,'
  7467. ;;
  7468. *Intel*\ [CF]*Compiler*)
  7469. lt_prog_compiler_wl='-Wl,'
  7470. lt_prog_compiler_pic='-fPIC'
  7471. lt_prog_compiler_static='-static'
  7472. ;;
  7473. *Portland\ Group*)
  7474. lt_prog_compiler_wl='-Wl,'
  7475. lt_prog_compiler_pic='-fpic'
  7476. lt_prog_compiler_static='-Bstatic'
  7477. ;;
  7478. esac
  7479. ;;
  7480. esac
  7481. ;;
  7482. newsos6)
  7483. lt_prog_compiler_pic='-KPIC'
  7484. lt_prog_compiler_static='-Bstatic'
  7485. ;;
  7486. *nto* | *qnx*)
  7487. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7488. # it will coredump.
  7489. lt_prog_compiler_pic='-fPIC -shared'
  7490. ;;
  7491. osf3* | osf4* | osf5*)
  7492. lt_prog_compiler_wl='-Wl,'
  7493. # All OSF/1 code is PIC.
  7494. lt_prog_compiler_static='-non_shared'
  7495. ;;
  7496. rdos*)
  7497. lt_prog_compiler_static='-non_shared'
  7498. ;;
  7499. solaris*)
  7500. lt_prog_compiler_pic='-KPIC'
  7501. lt_prog_compiler_static='-Bstatic'
  7502. case $cc_basename in
  7503. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7504. lt_prog_compiler_wl='-Qoption ld ';;
  7505. *)
  7506. lt_prog_compiler_wl='-Wl,';;
  7507. esac
  7508. ;;
  7509. sunos4*)
  7510. lt_prog_compiler_wl='-Qoption ld '
  7511. lt_prog_compiler_pic='-PIC'
  7512. lt_prog_compiler_static='-Bstatic'
  7513. ;;
  7514. sysv4 | sysv4.2uw2* | sysv4.3*)
  7515. lt_prog_compiler_wl='-Wl,'
  7516. lt_prog_compiler_pic='-KPIC'
  7517. lt_prog_compiler_static='-Bstatic'
  7518. ;;
  7519. sysv4*MP*)
  7520. if test -d /usr/nec; then
  7521. lt_prog_compiler_pic='-Kconform_pic'
  7522. lt_prog_compiler_static='-Bstatic'
  7523. fi
  7524. ;;
  7525. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7526. lt_prog_compiler_wl='-Wl,'
  7527. lt_prog_compiler_pic='-KPIC'
  7528. lt_prog_compiler_static='-Bstatic'
  7529. ;;
  7530. unicos*)
  7531. lt_prog_compiler_wl='-Wl,'
  7532. lt_prog_compiler_can_build_shared=no
  7533. ;;
  7534. uts4*)
  7535. lt_prog_compiler_pic='-pic'
  7536. lt_prog_compiler_static='-Bstatic'
  7537. ;;
  7538. *)
  7539. lt_prog_compiler_can_build_shared=no
  7540. ;;
  7541. esac
  7542. fi
  7543. case $host_os in
  7544. # For platforms that do not support PIC, -DPIC is meaningless:
  7545. *djgpp*)
  7546. lt_prog_compiler_pic=
  7547. ;;
  7548. *)
  7549. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7550. ;;
  7551. esac
  7552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7553. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7554. if ${lt_cv_prog_compiler_pic+:} false; then :
  7555. $as_echo_n "(cached) " >&6
  7556. else
  7557. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7558. fi
  7559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7560. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7561. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7562. #
  7563. # Check to make sure the PIC flag actually works.
  7564. #
  7565. if test -n "$lt_prog_compiler_pic"; then
  7566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7567. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7568. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7569. $as_echo_n "(cached) " >&6
  7570. else
  7571. lt_cv_prog_compiler_pic_works=no
  7572. ac_outfile=conftest.$ac_objext
  7573. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7574. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7575. # Insert the option either (1) after the last *FLAGS variable, or
  7576. # (2) before a word containing "conftest.", or (3) at the end.
  7577. # Note that $ac_compile itself does not contain backslashes and begins
  7578. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7579. # The option is referenced via a variable to avoid confusing sed.
  7580. lt_compile=`echo "$ac_compile" | $SED \
  7581. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7582. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7583. -e 's:$: $lt_compiler_flag:'`
  7584. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7585. (eval "$lt_compile" 2>conftest.err)
  7586. ac_status=$?
  7587. cat conftest.err >&5
  7588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7589. if (exit $ac_status) && test -s "$ac_outfile"; then
  7590. # The compiler can only warn and ignore the option if not recognized
  7591. # So say no if there are warnings other than the usual output.
  7592. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7593. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7594. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7595. lt_cv_prog_compiler_pic_works=yes
  7596. fi
  7597. fi
  7598. $RM conftest*
  7599. fi
  7600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7601. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7602. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7603. case $lt_prog_compiler_pic in
  7604. "" | " "*) ;;
  7605. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7606. esac
  7607. else
  7608. lt_prog_compiler_pic=
  7609. lt_prog_compiler_can_build_shared=no
  7610. fi
  7611. fi
  7612. #
  7613. # Check to make sure the static flag actually works.
  7614. #
  7615. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7617. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7618. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7619. $as_echo_n "(cached) " >&6
  7620. else
  7621. lt_cv_prog_compiler_static_works=no
  7622. save_LDFLAGS=$LDFLAGS
  7623. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7624. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7625. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7626. # The linker can only warn and ignore the option if not recognized
  7627. # So say no if there are warnings
  7628. if test -s conftest.err; then
  7629. # Append any errors to the config.log.
  7630. cat conftest.err 1>&5
  7631. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7632. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7633. if diff conftest.exp conftest.er2 >/dev/null; then
  7634. lt_cv_prog_compiler_static_works=yes
  7635. fi
  7636. else
  7637. lt_cv_prog_compiler_static_works=yes
  7638. fi
  7639. fi
  7640. $RM -r conftest*
  7641. LDFLAGS=$save_LDFLAGS
  7642. fi
  7643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7644. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7645. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7646. :
  7647. else
  7648. lt_prog_compiler_static=
  7649. fi
  7650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7651. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7652. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7653. $as_echo_n "(cached) " >&6
  7654. else
  7655. lt_cv_prog_compiler_c_o=no
  7656. $RM -r conftest 2>/dev/null
  7657. mkdir conftest
  7658. cd conftest
  7659. mkdir out
  7660. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7661. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7662. # Insert the option either (1) after the last *FLAGS variable, or
  7663. # (2) before a word containing "conftest.", or (3) at the end.
  7664. # Note that $ac_compile itself does not contain backslashes and begins
  7665. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7666. lt_compile=`echo "$ac_compile" | $SED \
  7667. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7668. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7669. -e 's:$: $lt_compiler_flag:'`
  7670. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7671. (eval "$lt_compile" 2>out/conftest.err)
  7672. ac_status=$?
  7673. cat out/conftest.err >&5
  7674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7675. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7676. then
  7677. # The compiler can only warn and ignore the option if not recognized
  7678. # So say no if there are warnings
  7679. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7680. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7681. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7682. lt_cv_prog_compiler_c_o=yes
  7683. fi
  7684. fi
  7685. chmod u+w . 2>&5
  7686. $RM conftest*
  7687. # SGI C++ compiler will create directory out/ii_files/ for
  7688. # template instantiation
  7689. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7690. $RM out/* && rmdir out
  7691. cd ..
  7692. $RM -r conftest
  7693. $RM conftest*
  7694. fi
  7695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7696. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7698. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7699. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7700. $as_echo_n "(cached) " >&6
  7701. else
  7702. lt_cv_prog_compiler_c_o=no
  7703. $RM -r conftest 2>/dev/null
  7704. mkdir conftest
  7705. cd conftest
  7706. mkdir out
  7707. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7708. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7709. # Insert the option either (1) after the last *FLAGS variable, or
  7710. # (2) before a word containing "conftest.", or (3) at the end.
  7711. # Note that $ac_compile itself does not contain backslashes and begins
  7712. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7713. lt_compile=`echo "$ac_compile" | $SED \
  7714. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7715. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7716. -e 's:$: $lt_compiler_flag:'`
  7717. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7718. (eval "$lt_compile" 2>out/conftest.err)
  7719. ac_status=$?
  7720. cat out/conftest.err >&5
  7721. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7722. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7723. then
  7724. # The compiler can only warn and ignore the option if not recognized
  7725. # So say no if there are warnings
  7726. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7727. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7728. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7729. lt_cv_prog_compiler_c_o=yes
  7730. fi
  7731. fi
  7732. chmod u+w . 2>&5
  7733. $RM conftest*
  7734. # SGI C++ compiler will create directory out/ii_files/ for
  7735. # template instantiation
  7736. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7737. $RM out/* && rmdir out
  7738. cd ..
  7739. $RM -r conftest
  7740. $RM conftest*
  7741. fi
  7742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7743. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7744. hard_links=nottested
  7745. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  7746. # do not overwrite the value of need_locks provided by the user
  7747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7748. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7749. hard_links=yes
  7750. $RM conftest*
  7751. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7752. touch conftest.a
  7753. ln conftest.a conftest.b 2>&5 || hard_links=no
  7754. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7756. $as_echo "$hard_links" >&6; }
  7757. if test no = "$hard_links"; then
  7758. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  7759. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  7760. need_locks=warn
  7761. fi
  7762. else
  7763. need_locks=no
  7764. fi
  7765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7766. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7767. runpath_var=
  7768. allow_undefined_flag=
  7769. always_export_symbols=no
  7770. archive_cmds=
  7771. archive_expsym_cmds=
  7772. compiler_needs_object=no
  7773. enable_shared_with_static_runtimes=no
  7774. export_dynamic_flag_spec=
  7775. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7776. hardcode_automatic=no
  7777. hardcode_direct=no
  7778. hardcode_direct_absolute=no
  7779. hardcode_libdir_flag_spec=
  7780. hardcode_libdir_separator=
  7781. hardcode_minus_L=no
  7782. hardcode_shlibpath_var=unsupported
  7783. inherit_rpath=no
  7784. link_all_deplibs=unknown
  7785. module_cmds=
  7786. module_expsym_cmds=
  7787. old_archive_from_new_cmds=
  7788. old_archive_from_expsyms_cmds=
  7789. thread_safe_flag_spec=
  7790. whole_archive_flag_spec=
  7791. # include_expsyms should be a list of space-separated symbols to be *always*
  7792. # included in the symbol list
  7793. include_expsyms=
  7794. # exclude_expsyms can be an extended regexp of symbols to exclude
  7795. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  7796. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  7797. # as well as any symbol that contains 'd'.
  7798. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7799. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7800. # platforms (ab)use it in PIC code, but their linkers get confused if
  7801. # the symbol is explicitly referenced. Since portable code cannot
  7802. # rely on this symbol name, it's probably fine to never include it in
  7803. # preloaded symbol tables.
  7804. # Exclude shared library initialization/finalization symbols.
  7805. extract_expsyms_cmds=
  7806. case $host_os in
  7807. cygwin* | mingw* | pw32* | cegcc*)
  7808. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7809. # When not using gcc, we currently assume that we are using
  7810. # Microsoft Visual C++.
  7811. if test yes != "$GCC"; then
  7812. with_gnu_ld=no
  7813. fi
  7814. ;;
  7815. interix*)
  7816. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7817. with_gnu_ld=yes
  7818. ;;
  7819. openbsd* | bitrig*)
  7820. with_gnu_ld=no
  7821. ;;
  7822. esac
  7823. ld_shlibs=yes
  7824. # On some targets, GNU ld is compatible enough with the native linker
  7825. # that we're better off using the native interface for both.
  7826. lt_use_gnu_ld_interface=no
  7827. if test yes = "$with_gnu_ld"; then
  7828. case $host_os in
  7829. aix*)
  7830. # The AIX port of GNU ld has always aspired to compatibility
  7831. # with the native linker. However, as the warning in the GNU ld
  7832. # block says, versions before 2.19.5* couldn't really create working
  7833. # shared libraries, regardless of the interface used.
  7834. case `$LD -v 2>&1` in
  7835. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7836. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7837. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7838. *)
  7839. lt_use_gnu_ld_interface=yes
  7840. ;;
  7841. esac
  7842. ;;
  7843. *)
  7844. lt_use_gnu_ld_interface=yes
  7845. ;;
  7846. esac
  7847. fi
  7848. if test yes = "$lt_use_gnu_ld_interface"; then
  7849. # If archive_cmds runs LD, not CC, wlarc should be empty
  7850. wlarc='$wl'
  7851. # Set some defaults for GNU ld with shared library support. These
  7852. # are reset later if shared libraries are not supported. Putting them
  7853. # here allows them to be overridden if necessary.
  7854. runpath_var=LD_RUN_PATH
  7855. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7856. export_dynamic_flag_spec='$wl--export-dynamic'
  7857. # ancient GNU ld didn't support --whole-archive et. al.
  7858. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7859. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  7860. else
  7861. whole_archive_flag_spec=
  7862. fi
  7863. supports_anon_versioning=no
  7864. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  7865. *GNU\ gold*) supports_anon_versioning=yes ;;
  7866. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7867. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7868. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7869. *\ 2.11.*) ;; # other 2.11 versions
  7870. *) supports_anon_versioning=yes ;;
  7871. esac
  7872. # See if GNU ld supports shared libraries.
  7873. case $host_os in
  7874. aix[3-9]*)
  7875. # On AIX/PPC, the GNU linker is very broken
  7876. if test ia64 != "$host_cpu"; then
  7877. ld_shlibs=no
  7878. cat <<_LT_EOF 1>&2
  7879. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7880. *** to be unable to reliably create shared libraries on AIX.
  7881. *** Therefore, libtool is disabling shared libraries support. If you
  7882. *** really care for shared libraries, you may want to install binutils
  7883. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7884. *** You will then need to restart the configuration process.
  7885. _LT_EOF
  7886. fi
  7887. ;;
  7888. amigaos*)
  7889. case $host_cpu in
  7890. powerpc)
  7891. # see comment about AmigaOS4 .so support
  7892. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7893. archive_expsym_cmds=''
  7894. ;;
  7895. m68k)
  7896. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  7897. hardcode_libdir_flag_spec='-L$libdir'
  7898. hardcode_minus_L=yes
  7899. ;;
  7900. esac
  7901. ;;
  7902. beos*)
  7903. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7904. allow_undefined_flag=unsupported
  7905. # Joseph Beckenbach <[email protected]> says some releases of gcc
  7906. # support --undefined. This deserves some investigation. FIXME
  7907. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7908. else
  7909. ld_shlibs=no
  7910. fi
  7911. ;;
  7912. cygwin* | mingw* | pw32* | cegcc*)
  7913. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7914. # as there is no search path for DLLs.
  7915. hardcode_libdir_flag_spec='-L$libdir'
  7916. export_dynamic_flag_spec='$wl--export-all-symbols'
  7917. allow_undefined_flag=unsupported
  7918. always_export_symbols=no
  7919. enable_shared_with_static_runtimes=yes
  7920. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  7921. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7922. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7923. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7924. # If the export-symbols file already is a .def file, use it as
  7925. # is; otherwise, prepend EXPORTS...
  7926. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  7927. cp $export_symbols $output_objdir/$soname.def;
  7928. else
  7929. echo EXPORTS > $output_objdir/$soname.def;
  7930. cat $export_symbols >> $output_objdir/$soname.def;
  7931. fi~
  7932. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7933. else
  7934. ld_shlibs=no
  7935. fi
  7936. ;;
  7937. haiku*)
  7938. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7939. link_all_deplibs=yes
  7940. ;;
  7941. os2*)
  7942. hardcode_libdir_flag_spec='-L$libdir'
  7943. hardcode_minus_L=yes
  7944. allow_undefined_flag=unsupported
  7945. shrext_cmds=.dll
  7946. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7947. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7948. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7949. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7950. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  7951. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7952. emximp -o $lib $output_objdir/$libname.def'
  7953. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7954. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7955. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7956. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7957. prefix_cmds="$SED"~
  7958. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  7959. prefix_cmds="$prefix_cmds -e 1d";
  7960. fi~
  7961. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  7962. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  7963. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7964. emximp -o $lib $output_objdir/$libname.def'
  7965. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  7966. enable_shared_with_static_runtimes=yes
  7967. ;;
  7968. interix[3-9]*)
  7969. hardcode_direct=no
  7970. hardcode_shlibpath_var=no
  7971. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  7972. export_dynamic_flag_spec='$wl-E'
  7973. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7974. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7975. # default) and relocated if they conflict, which is a slow very memory
  7976. # consuming and fragmenting process. To avoid this, we pick a random,
  7977. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7978. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7979. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7980. archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7981. ;;
  7982. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7983. tmp_diet=no
  7984. if test linux-dietlibc = "$host_os"; then
  7985. case $cc_basename in
  7986. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7987. esac
  7988. fi
  7989. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7990. && test no = "$tmp_diet"
  7991. then
  7992. tmp_addflag=' $pic_flag'
  7993. tmp_sharedflag='-shared'
  7994. case $cc_basename,$host_cpu in
  7995. pgcc*) # Portland Group C compiler
  7996. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  7997. tmp_addflag=' $pic_flag'
  7998. ;;
  7999. pgf77* | pgf90* | pgf95* | pgfortran*)
  8000. # Portland Group f77 and f90 compilers
  8001. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8002. tmp_addflag=' $pic_flag -Mnomain' ;;
  8003. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8004. tmp_addflag=' -i_dynamic' ;;
  8005. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8006. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8007. ifc* | ifort*) # Intel Fortran compiler
  8008. tmp_addflag=' -nofor_main' ;;
  8009. lf95*) # Lahey Fortran 8.1
  8010. whole_archive_flag_spec=
  8011. tmp_sharedflag='--shared' ;;
  8012. nagfor*) # NAGFOR 5.3
  8013. tmp_sharedflag='-Wl,-shared' ;;
  8014. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8015. tmp_sharedflag='-qmkshrobj'
  8016. tmp_addflag= ;;
  8017. nvcc*) # Cuda Compiler Driver 2.2
  8018. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8019. compiler_needs_object=yes
  8020. ;;
  8021. esac
  8022. case `$CC -V 2>&1 | sed 5q` in
  8023. *Sun\ C*) # Sun C 5.9
  8024. whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8025. compiler_needs_object=yes
  8026. tmp_sharedflag='-G' ;;
  8027. *Sun\ F*) # Sun Fortran 8.3
  8028. tmp_sharedflag='-G' ;;
  8029. esac
  8030. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8031. if test yes = "$supports_anon_versioning"; then
  8032. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8033. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8034. echo "local: *; };" >> $output_objdir/$libname.ver~
  8035. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8036. fi
  8037. case $cc_basename in
  8038. tcc*)
  8039. export_dynamic_flag_spec='-rdynamic'
  8040. ;;
  8041. xlf* | bgf* | bgxlf* | mpixlf*)
  8042. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8043. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8044. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8045. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8046. if test yes = "$supports_anon_versioning"; then
  8047. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8048. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8049. echo "local: *; };" >> $output_objdir/$libname.ver~
  8050. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8051. fi
  8052. ;;
  8053. esac
  8054. else
  8055. ld_shlibs=no
  8056. fi
  8057. ;;
  8058. netbsd*)
  8059. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8060. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8061. wlarc=
  8062. else
  8063. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8064. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8065. fi
  8066. ;;
  8067. solaris*)
  8068. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8069. ld_shlibs=no
  8070. cat <<_LT_EOF 1>&2
  8071. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8072. *** create shared libraries on Solaris systems. Therefore, libtool
  8073. *** is disabling shared libraries support. We urge you to upgrade GNU
  8074. *** binutils to release 2.9.1 or newer. Another option is to modify
  8075. *** your PATH or compiler configuration so that the native linker is
  8076. *** used, and then restart.
  8077. _LT_EOF
  8078. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8079. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8080. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8081. else
  8082. ld_shlibs=no
  8083. fi
  8084. ;;
  8085. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8086. case `$LD -v 2>&1` in
  8087. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8088. ld_shlibs=no
  8089. cat <<_LT_EOF 1>&2
  8090. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8091. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8092. *** is disabling shared libraries support. We urge you to upgrade GNU
  8093. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8094. *** your PATH or compiler configuration so that the native linker is
  8095. *** used, and then restart.
  8096. _LT_EOF
  8097. ;;
  8098. *)
  8099. # For security reasons, it is highly recommended that you always
  8100. # use absolute paths for naming shared libraries, and exclude the
  8101. # DT_RUNPATH tag from executables and libraries. But doing so
  8102. # requires that you compile everything twice, which is a pain.
  8103. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8104. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8105. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8106. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8107. else
  8108. ld_shlibs=no
  8109. fi
  8110. ;;
  8111. esac
  8112. ;;
  8113. sunos4*)
  8114. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8115. wlarc=
  8116. hardcode_direct=yes
  8117. hardcode_shlibpath_var=no
  8118. ;;
  8119. *)
  8120. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8121. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8122. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8123. else
  8124. ld_shlibs=no
  8125. fi
  8126. ;;
  8127. esac
  8128. if test no = "$ld_shlibs"; then
  8129. runpath_var=
  8130. hardcode_libdir_flag_spec=
  8131. export_dynamic_flag_spec=
  8132. whole_archive_flag_spec=
  8133. fi
  8134. else
  8135. # PORTME fill in a description of your system's linker (not GNU ld)
  8136. case $host_os in
  8137. aix3*)
  8138. allow_undefined_flag=unsupported
  8139. always_export_symbols=yes
  8140. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  8141. # Note: this linker hardcodes the directories in LIBPATH if there
  8142. # are no directories specified by -L.
  8143. hardcode_minus_L=yes
  8144. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8145. # Neither direct hardcoding nor static linking is supported with a
  8146. # broken collect2.
  8147. hardcode_direct=unsupported
  8148. fi
  8149. ;;
  8150. aix[4-9]*)
  8151. if test ia64 = "$host_cpu"; then
  8152. # On IA64, the linker does run time linking by default, so we don't
  8153. # have to do anything special.
  8154. aix_use_runtimelinking=no
  8155. exp_sym_flag='-Bexport'
  8156. no_entry_flag=
  8157. else
  8158. # If we're using GNU nm, then we don't want the "-C" option.
  8159. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8160. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8161. # weak defined symbols like other global defined symbols, whereas
  8162. # GNU nm marks them as "W".
  8163. # While the 'weak' keyword is ignored in the Export File, we need
  8164. # it in the Import File for the 'aix-soname' feature, so we have
  8165. # to replace the "-B" option with "-P" for AIX nm.
  8166. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8167. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  8168. else
  8169. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  8170. fi
  8171. aix_use_runtimelinking=no
  8172. # Test if we are trying to use run time linking or normal
  8173. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8174. # have runtime linking enabled, and use it for executables.
  8175. # For shared libraries, we enable/disable runtime linking
  8176. # depending on the kind of the shared library created -
  8177. # when "with_aix_soname,aix_use_runtimelinking" is:
  8178. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8179. # "aix,yes" lib.so shared, rtl:yes, for executables
  8180. # lib.a static archive
  8181. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8182. # lib.a(lib.so.V) shared, rtl:no, for executables
  8183. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8184. # lib.a(lib.so.V) shared, rtl:no
  8185. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8186. # lib.a static archive
  8187. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8188. for ld_flag in $LDFLAGS; do
  8189. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8190. aix_use_runtimelinking=yes
  8191. break
  8192. fi
  8193. done
  8194. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8195. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8196. # so we don't have lib.a shared libs to link our executables.
  8197. # We have to force runtime linking in this case.
  8198. aix_use_runtimelinking=yes
  8199. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8200. fi
  8201. ;;
  8202. esac
  8203. exp_sym_flag='-bexport'
  8204. no_entry_flag='-bnoentry'
  8205. fi
  8206. # When large executables or shared objects are built, AIX ld can
  8207. # have problems creating the table of contents. If linking a library
  8208. # or program results in "error TOC overflow" add -mminimal-toc to
  8209. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8210. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8211. archive_cmds=''
  8212. hardcode_direct=yes
  8213. hardcode_direct_absolute=yes
  8214. hardcode_libdir_separator=':'
  8215. link_all_deplibs=yes
  8216. file_list_spec='$wl-f,'
  8217. case $with_aix_soname,$aix_use_runtimelinking in
  8218. aix,*) ;; # traditional, no import file
  8219. svr4,* | *,yes) # use import file
  8220. # The Import File defines what to hardcode.
  8221. hardcode_direct=no
  8222. hardcode_direct_absolute=no
  8223. ;;
  8224. esac
  8225. if test yes = "$GCC"; then
  8226. case $host_os in aix4.[012]|aix4.[012].*)
  8227. # We only want to do this on AIX 4.2 and lower, the check
  8228. # below for broken collect2 doesn't work under 4.3+
  8229. collect2name=`$CC -print-prog-name=collect2`
  8230. if test -f "$collect2name" &&
  8231. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8232. then
  8233. # We have reworked collect2
  8234. :
  8235. else
  8236. # We have old collect2
  8237. hardcode_direct=unsupported
  8238. # It fails to find uninstalled libraries when the uninstalled
  8239. # path is not listed in the libpath. Setting hardcode_minus_L
  8240. # to unsupported forces relinking
  8241. hardcode_minus_L=yes
  8242. hardcode_libdir_flag_spec='-L$libdir'
  8243. hardcode_libdir_separator=
  8244. fi
  8245. ;;
  8246. esac
  8247. shared_flag='-shared'
  8248. if test yes = "$aix_use_runtimelinking"; then
  8249. shared_flag="$shared_flag "'$wl-G'
  8250. fi
  8251. # Need to ensure runtime linking is disabled for the traditional
  8252. # shared library, or the linker may eventually find shared libraries
  8253. # /with/ Import File - we do not want to mix them.
  8254. shared_flag_aix='-shared'
  8255. shared_flag_svr4='-shared $wl-G'
  8256. else
  8257. # not using gcc
  8258. if test ia64 = "$host_cpu"; then
  8259. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8260. # chokes on -Wl,-G. The following line is correct:
  8261. shared_flag='-G'
  8262. else
  8263. if test yes = "$aix_use_runtimelinking"; then
  8264. shared_flag='$wl-G'
  8265. else
  8266. shared_flag='$wl-bM:SRE'
  8267. fi
  8268. shared_flag_aix='$wl-bM:SRE'
  8269. shared_flag_svr4='$wl-G'
  8270. fi
  8271. fi
  8272. export_dynamic_flag_spec='$wl-bexpall'
  8273. # It seems that -bexpall does not export symbols beginning with
  8274. # underscore (_), so it is better to generate a list of symbols to export.
  8275. always_export_symbols=yes
  8276. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8277. # Warning - without using the other runtime loading flags (-brtl),
  8278. # -berok will link without error, but may produce a broken library.
  8279. allow_undefined_flag='-berok'
  8280. # Determine the default libpath from the value encoded in an
  8281. # empty executable.
  8282. if test set = "${lt_cv_aix_libpath+set}"; then
  8283. aix_libpath=$lt_cv_aix_libpath
  8284. else
  8285. if ${lt_cv_aix_libpath_+:} false; then :
  8286. $as_echo_n "(cached) " >&6
  8287. else
  8288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8289. /* end confdefs.h. */
  8290. int
  8291. main ()
  8292. {
  8293. ;
  8294. return 0;
  8295. }
  8296. _ACEOF
  8297. if ac_fn_c_try_link "$LINENO"; then :
  8298. lt_aix_libpath_sed='
  8299. /Import File Strings/,/^$/ {
  8300. /^0/ {
  8301. s/^0 *\([^ ]*\) *$/\1/
  8302. p
  8303. }
  8304. }'
  8305. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8306. # Check for a 64-bit object if we didn't find anything.
  8307. if test -z "$lt_cv_aix_libpath_"; then
  8308. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8309. fi
  8310. fi
  8311. rm -f core conftest.err conftest.$ac_objext \
  8312. conftest$ac_exeext conftest.$ac_ext
  8313. if test -z "$lt_cv_aix_libpath_"; then
  8314. lt_cv_aix_libpath_=/usr/lib:/lib
  8315. fi
  8316. fi
  8317. aix_libpath=$lt_cv_aix_libpath_
  8318. fi
  8319. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8320. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  8321. else
  8322. if test ia64 = "$host_cpu"; then
  8323. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8324. allow_undefined_flag="-z nodefs"
  8325. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
  8326. else
  8327. # Determine the default libpath from the value encoded in an
  8328. # empty executable.
  8329. if test set = "${lt_cv_aix_libpath+set}"; then
  8330. aix_libpath=$lt_cv_aix_libpath
  8331. else
  8332. if ${lt_cv_aix_libpath_+:} false; then :
  8333. $as_echo_n "(cached) " >&6
  8334. else
  8335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8336. /* end confdefs.h. */
  8337. int
  8338. main ()
  8339. {
  8340. ;
  8341. return 0;
  8342. }
  8343. _ACEOF
  8344. if ac_fn_c_try_link "$LINENO"; then :
  8345. lt_aix_libpath_sed='
  8346. /Import File Strings/,/^$/ {
  8347. /^0/ {
  8348. s/^0 *\([^ ]*\) *$/\1/
  8349. p
  8350. }
  8351. }'
  8352. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8353. # Check for a 64-bit object if we didn't find anything.
  8354. if test -z "$lt_cv_aix_libpath_"; then
  8355. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8356. fi
  8357. fi
  8358. rm -f core conftest.err conftest.$ac_objext \
  8359. conftest$ac_exeext conftest.$ac_ext
  8360. if test -z "$lt_cv_aix_libpath_"; then
  8361. lt_cv_aix_libpath_=/usr/lib:/lib
  8362. fi
  8363. fi
  8364. aix_libpath=$lt_cv_aix_libpath_
  8365. fi
  8366. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8367. # Warning - without using the other run time loading flags,
  8368. # -berok will link without error, but may produce a broken library.
  8369. no_undefined_flag=' $wl-bernotok'
  8370. allow_undefined_flag=' $wl-berok'
  8371. if test yes = "$with_gnu_ld"; then
  8372. # We only use this code for GNU lds that support --whole-archive.
  8373. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8374. else
  8375. # Exported symbols can be pulled into shared objects from archives
  8376. whole_archive_flag_spec='$convenience'
  8377. fi
  8378. archive_cmds_need_lc=yes
  8379. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8380. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8381. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8382. if test svr4 != "$with_aix_soname"; then
  8383. # This is similar to how AIX traditionally builds its shared libraries.
  8384. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  8385. fi
  8386. if test aix != "$with_aix_soname"; then
  8387. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  8388. else
  8389. # used by -dlpreopen to get the symbols
  8390. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8391. fi
  8392. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8393. fi
  8394. fi
  8395. ;;
  8396. amigaos*)
  8397. case $host_cpu in
  8398. powerpc)
  8399. # see comment about AmigaOS4 .so support
  8400. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8401. archive_expsym_cmds=''
  8402. ;;
  8403. m68k)
  8404. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  8405. hardcode_libdir_flag_spec='-L$libdir'
  8406. hardcode_minus_L=yes
  8407. ;;
  8408. esac
  8409. ;;
  8410. bsdi[45]*)
  8411. export_dynamic_flag_spec=-rdynamic
  8412. ;;
  8413. cygwin* | mingw* | pw32* | cegcc*)
  8414. # When not using gcc, we currently assume that we are using
  8415. # Microsoft Visual C++.
  8416. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8417. # no search path for DLLs.
  8418. case $cc_basename in
  8419. cl*)
  8420. # Native MSVC
  8421. hardcode_libdir_flag_spec=' '
  8422. allow_undefined_flag=unsupported
  8423. always_export_symbols=yes
  8424. file_list_spec='@'
  8425. # Tell ltmain to make .lib files, not .a files.
  8426. libext=lib
  8427. # Tell ltmain to make .dll files, not .so files.
  8428. shrext_cmds=.dll
  8429. # FIXME: Setting linknames here is a bad hack.
  8430. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8431. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8432. cp "$export_symbols" "$output_objdir/$soname.def";
  8433. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8434. else
  8435. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8436. fi~
  8437. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8438. linknames='
  8439. # The linker will not automatically build a static lib if we build a DLL.
  8440. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8441. enable_shared_with_static_runtimes=yes
  8442. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8443. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8444. # Don't use ranlib
  8445. old_postinstall_cmds='chmod 644 $oldlib'
  8446. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8447. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8448. case $lt_outputfile in
  8449. *.exe|*.EXE) ;;
  8450. *)
  8451. lt_outputfile=$lt_outputfile.exe
  8452. lt_tool_outputfile=$lt_tool_outputfile.exe
  8453. ;;
  8454. esac~
  8455. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8456. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8457. $RM "$lt_outputfile.manifest";
  8458. fi'
  8459. ;;
  8460. *)
  8461. # Assume MSVC wrapper
  8462. hardcode_libdir_flag_spec=' '
  8463. allow_undefined_flag=unsupported
  8464. # Tell ltmain to make .lib files, not .a files.
  8465. libext=lib
  8466. # Tell ltmain to make .dll files, not .so files.
  8467. shrext_cmds=.dll
  8468. # FIXME: Setting linknames here is a bad hack.
  8469. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8470. # The linker will automatically build a .lib file if we build a DLL.
  8471. old_archive_from_new_cmds='true'
  8472. # FIXME: Should let the user specify the lib program.
  8473. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8474. enable_shared_with_static_runtimes=yes
  8475. ;;
  8476. esac
  8477. ;;
  8478. darwin* | rhapsody*)
  8479. archive_cmds_need_lc=no
  8480. hardcode_direct=no
  8481. hardcode_automatic=yes
  8482. hardcode_shlibpath_var=unsupported
  8483. if test yes = "$lt_cv_ld_force_load"; then
  8484. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  8485. else
  8486. whole_archive_flag_spec=''
  8487. fi
  8488. link_all_deplibs=yes
  8489. allow_undefined_flag=$_lt_dar_allow_undefined
  8490. case $cc_basename in
  8491. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8492. *) _lt_dar_can_shared=$GCC ;;
  8493. esac
  8494. if test yes = "$_lt_dar_can_shared"; then
  8495. output_verbose_link_cmd=func_echo_all
  8496. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8497. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8498. archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
  8499. module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
  8500. else
  8501. ld_shlibs=no
  8502. fi
  8503. ;;
  8504. dgux*)
  8505. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8506. hardcode_libdir_flag_spec='-L$libdir'
  8507. hardcode_shlibpath_var=no
  8508. ;;
  8509. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8510. # support. Future versions do this automatically, but an explicit c++rt0.o
  8511. # does not break anything, and helps significantly (at the cost of a little
  8512. # extra space).
  8513. freebsd2.2*)
  8514. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8515. hardcode_libdir_flag_spec='-R$libdir'
  8516. hardcode_direct=yes
  8517. hardcode_shlibpath_var=no
  8518. ;;
  8519. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8520. freebsd2.*)
  8521. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8522. hardcode_direct=yes
  8523. hardcode_minus_L=yes
  8524. hardcode_shlibpath_var=no
  8525. ;;
  8526. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8527. freebsd* | dragonfly*)
  8528. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8529. hardcode_libdir_flag_spec='-R$libdir'
  8530. hardcode_direct=yes
  8531. hardcode_shlibpath_var=no
  8532. ;;
  8533. hpux9*)
  8534. if test yes = "$GCC"; then
  8535. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8536. else
  8537. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8538. fi
  8539. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8540. hardcode_libdir_separator=:
  8541. hardcode_direct=yes
  8542. # hardcode_minus_L: Not really in the search PATH,
  8543. # but as the default location of the library.
  8544. hardcode_minus_L=yes
  8545. export_dynamic_flag_spec='$wl-E'
  8546. ;;
  8547. hpux10*)
  8548. if test yes,no = "$GCC,$with_gnu_ld"; then
  8549. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8550. else
  8551. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8552. fi
  8553. if test no = "$with_gnu_ld"; then
  8554. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8555. hardcode_libdir_separator=:
  8556. hardcode_direct=yes
  8557. hardcode_direct_absolute=yes
  8558. export_dynamic_flag_spec='$wl-E'
  8559. # hardcode_minus_L: Not really in the search PATH,
  8560. # but as the default location of the library.
  8561. hardcode_minus_L=yes
  8562. fi
  8563. ;;
  8564. hpux11*)
  8565. if test yes,no = "$GCC,$with_gnu_ld"; then
  8566. case $host_cpu in
  8567. hppa*64*)
  8568. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8569. ;;
  8570. ia64*)
  8571. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8572. ;;
  8573. *)
  8574. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8575. ;;
  8576. esac
  8577. else
  8578. case $host_cpu in
  8579. hppa*64*)
  8580. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8581. ;;
  8582. ia64*)
  8583. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8584. ;;
  8585. *)
  8586. # Older versions of the 11.00 compiler do not understand -b yet
  8587. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8589. $as_echo_n "checking if $CC understands -b... " >&6; }
  8590. if ${lt_cv_prog_compiler__b+:} false; then :
  8591. $as_echo_n "(cached) " >&6
  8592. else
  8593. lt_cv_prog_compiler__b=no
  8594. save_LDFLAGS=$LDFLAGS
  8595. LDFLAGS="$LDFLAGS -b"
  8596. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8597. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8598. # The linker can only warn and ignore the option if not recognized
  8599. # So say no if there are warnings
  8600. if test -s conftest.err; then
  8601. # Append any errors to the config.log.
  8602. cat conftest.err 1>&5
  8603. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8604. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8605. if diff conftest.exp conftest.er2 >/dev/null; then
  8606. lt_cv_prog_compiler__b=yes
  8607. fi
  8608. else
  8609. lt_cv_prog_compiler__b=yes
  8610. fi
  8611. fi
  8612. $RM -r conftest*
  8613. LDFLAGS=$save_LDFLAGS
  8614. fi
  8615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8616. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8617. if test yes = "$lt_cv_prog_compiler__b"; then
  8618. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8619. else
  8620. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8621. fi
  8622. ;;
  8623. esac
  8624. fi
  8625. if test no = "$with_gnu_ld"; then
  8626. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8627. hardcode_libdir_separator=:
  8628. case $host_cpu in
  8629. hppa*64*|ia64*)
  8630. hardcode_direct=no
  8631. hardcode_shlibpath_var=no
  8632. ;;
  8633. *)
  8634. hardcode_direct=yes
  8635. hardcode_direct_absolute=yes
  8636. export_dynamic_flag_spec='$wl-E'
  8637. # hardcode_minus_L: Not really in the search PATH,
  8638. # but as the default location of the library.
  8639. hardcode_minus_L=yes
  8640. ;;
  8641. esac
  8642. fi
  8643. ;;
  8644. irix5* | irix6* | nonstopux*)
  8645. if test yes = "$GCC"; then
  8646. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  8647. # Try to use the -exported_symbol ld option, if it does not
  8648. # work, assume that -exports_file does not work either and
  8649. # implicitly export all symbols.
  8650. # This should be the same for all languages, so no per-tag cache variable.
  8651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8652. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8653. if ${lt_cv_irix_exported_symbol+:} false; then :
  8654. $as_echo_n "(cached) " >&6
  8655. else
  8656. save_LDFLAGS=$LDFLAGS
  8657. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  8658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8659. /* end confdefs.h. */
  8660. int foo (void) { return 0; }
  8661. _ACEOF
  8662. if ac_fn_c_try_link "$LINENO"; then :
  8663. lt_cv_irix_exported_symbol=yes
  8664. else
  8665. lt_cv_irix_exported_symbol=no
  8666. fi
  8667. rm -f core conftest.err conftest.$ac_objext \
  8668. conftest$ac_exeext conftest.$ac_ext
  8669. LDFLAGS=$save_LDFLAGS
  8670. fi
  8671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8672. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8673. if test yes = "$lt_cv_irix_exported_symbol"; then
  8674. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
  8675. fi
  8676. else
  8677. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  8678. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
  8679. fi
  8680. archive_cmds_need_lc='no'
  8681. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8682. hardcode_libdir_separator=:
  8683. inherit_rpath=yes
  8684. link_all_deplibs=yes
  8685. ;;
  8686. linux*)
  8687. case $cc_basename in
  8688. tcc*)
  8689. # Fabrice Bellard et al's Tiny C Compiler
  8690. ld_shlibs=yes
  8691. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8692. ;;
  8693. esac
  8694. ;;
  8695. netbsd*)
  8696. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8697. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8698. else
  8699. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8700. fi
  8701. hardcode_libdir_flag_spec='-R$libdir'
  8702. hardcode_direct=yes
  8703. hardcode_shlibpath_var=no
  8704. ;;
  8705. newsos6)
  8706. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8707. hardcode_direct=yes
  8708. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8709. hardcode_libdir_separator=:
  8710. hardcode_shlibpath_var=no
  8711. ;;
  8712. *nto* | *qnx*)
  8713. ;;
  8714. openbsd* | bitrig*)
  8715. if test -f /usr/libexec/ld.so; then
  8716. hardcode_direct=yes
  8717. hardcode_shlibpath_var=no
  8718. hardcode_direct_absolute=yes
  8719. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  8720. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8721. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  8722. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8723. export_dynamic_flag_spec='$wl-E'
  8724. else
  8725. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8726. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8727. fi
  8728. else
  8729. ld_shlibs=no
  8730. fi
  8731. ;;
  8732. os2*)
  8733. hardcode_libdir_flag_spec='-L$libdir'
  8734. hardcode_minus_L=yes
  8735. allow_undefined_flag=unsupported
  8736. shrext_cmds=.dll
  8737. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8738. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8739. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8740. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8741. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8742. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8743. emximp -o $lib $output_objdir/$libname.def'
  8744. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8745. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8746. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8747. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8748. prefix_cmds="$SED"~
  8749. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8750. prefix_cmds="$prefix_cmds -e 1d";
  8751. fi~
  8752. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8753. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8754. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8755. emximp -o $lib $output_objdir/$libname.def'
  8756. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8757. enable_shared_with_static_runtimes=yes
  8758. ;;
  8759. osf3*)
  8760. if test yes = "$GCC"; then
  8761. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8762. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  8763. else
  8764. allow_undefined_flag=' -expect_unresolved \*'
  8765. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  8766. fi
  8767. archive_cmds_need_lc='no'
  8768. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8769. hardcode_libdir_separator=:
  8770. ;;
  8771. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8772. if test yes = "$GCC"; then
  8773. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8774. archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  8775. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8776. else
  8777. allow_undefined_flag=' -expect_unresolved \*'
  8778. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  8779. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  8780. $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
  8781. # Both c and cxx compiler support -rpath directly
  8782. hardcode_libdir_flag_spec='-rpath $libdir'
  8783. fi
  8784. archive_cmds_need_lc='no'
  8785. hardcode_libdir_separator=:
  8786. ;;
  8787. solaris*)
  8788. no_undefined_flag=' -z defs'
  8789. if test yes = "$GCC"; then
  8790. wlarc='$wl'
  8791. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8792. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8793. $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8794. else
  8795. case `$CC -V 2>&1` in
  8796. *"Compilers 5.0"*)
  8797. wlarc=''
  8798. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8799. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8800. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8801. ;;
  8802. *)
  8803. wlarc='$wl'
  8804. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8805. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8806. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8807. ;;
  8808. esac
  8809. fi
  8810. hardcode_libdir_flag_spec='-R$libdir'
  8811. hardcode_shlibpath_var=no
  8812. case $host_os in
  8813. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8814. *)
  8815. # The compiler driver will combine and reorder linker options,
  8816. # but understands '-z linker_flag'. GCC discards it without '$wl',
  8817. # but is careful enough not to reorder.
  8818. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8819. if test yes = "$GCC"; then
  8820. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  8821. else
  8822. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8823. fi
  8824. ;;
  8825. esac
  8826. link_all_deplibs=yes
  8827. ;;
  8828. sunos4*)
  8829. if test sequent = "$host_vendor"; then
  8830. # Use $CC to link under sequent, because it throws in some extra .o
  8831. # files that make .init and .fini sections work.
  8832. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8833. else
  8834. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8835. fi
  8836. hardcode_libdir_flag_spec='-L$libdir'
  8837. hardcode_direct=yes
  8838. hardcode_minus_L=yes
  8839. hardcode_shlibpath_var=no
  8840. ;;
  8841. sysv4)
  8842. case $host_vendor in
  8843. sni)
  8844. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8845. hardcode_direct=yes # is this really true???
  8846. ;;
  8847. siemens)
  8848. ## LD is ld it makes a PLAMLIB
  8849. ## CC just makes a GrossModule.
  8850. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8851. reload_cmds='$CC -r -o $output$reload_objs'
  8852. hardcode_direct=no
  8853. ;;
  8854. motorola)
  8855. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8856. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8857. ;;
  8858. esac
  8859. runpath_var='LD_RUN_PATH'
  8860. hardcode_shlibpath_var=no
  8861. ;;
  8862. sysv4.3*)
  8863. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8864. hardcode_shlibpath_var=no
  8865. export_dynamic_flag_spec='-Bexport'
  8866. ;;
  8867. sysv4*MP*)
  8868. if test -d /usr/nec; then
  8869. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8870. hardcode_shlibpath_var=no
  8871. runpath_var=LD_RUN_PATH
  8872. hardcode_runpath_var=yes
  8873. ld_shlibs=yes
  8874. fi
  8875. ;;
  8876. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8877. no_undefined_flag='$wl-z,text'
  8878. archive_cmds_need_lc=no
  8879. hardcode_shlibpath_var=no
  8880. runpath_var='LD_RUN_PATH'
  8881. if test yes = "$GCC"; then
  8882. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8883. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8884. else
  8885. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8886. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8887. fi
  8888. ;;
  8889. sysv5* | sco3.2v5* | sco5v6*)
  8890. # Note: We CANNOT use -z defs as we might desire, because we do not
  8891. # link with -lc, and that would cause any symbols used from libc to
  8892. # always be unresolved, which means just about no library would
  8893. # ever link correctly. If we're not using GNU ld we use -z text
  8894. # though, which does catch some bad symbols but isn't as heavy-handed
  8895. # as -z defs.
  8896. no_undefined_flag='$wl-z,text'
  8897. allow_undefined_flag='$wl-z,nodefs'
  8898. archive_cmds_need_lc=no
  8899. hardcode_shlibpath_var=no
  8900. hardcode_libdir_flag_spec='$wl-R,$libdir'
  8901. hardcode_libdir_separator=':'
  8902. link_all_deplibs=yes
  8903. export_dynamic_flag_spec='$wl-Bexport'
  8904. runpath_var='LD_RUN_PATH'
  8905. if test yes = "$GCC"; then
  8906. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8907. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8908. else
  8909. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8910. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8911. fi
  8912. ;;
  8913. uts4*)
  8914. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8915. hardcode_libdir_flag_spec='-L$libdir'
  8916. hardcode_shlibpath_var=no
  8917. ;;
  8918. *)
  8919. ld_shlibs=no
  8920. ;;
  8921. esac
  8922. if test sni = "$host_vendor"; then
  8923. case $host in
  8924. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8925. export_dynamic_flag_spec='$wl-Blargedynsym'
  8926. ;;
  8927. esac
  8928. fi
  8929. fi
  8930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8931. $as_echo "$ld_shlibs" >&6; }
  8932. test no = "$ld_shlibs" && can_build_shared=no
  8933. with_gnu_ld=$with_gnu_ld
  8934. #
  8935. # Do we need to explicitly link libc?
  8936. #
  8937. case "x$archive_cmds_need_lc" in
  8938. x|xyes)
  8939. # Assume -lc should be added
  8940. archive_cmds_need_lc=yes
  8941. if test yes,yes = "$GCC,$enable_shared"; then
  8942. case $archive_cmds in
  8943. *'~'*)
  8944. # FIXME: we may have to deal with multi-command sequences.
  8945. ;;
  8946. '$CC '*)
  8947. # Test whether the compiler implicitly links with -lc since on some
  8948. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8949. # to ld, don't add -lc before -lgcc.
  8950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8951. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8952. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8953. $as_echo_n "(cached) " >&6
  8954. else
  8955. $RM conftest*
  8956. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8957. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8958. (eval $ac_compile) 2>&5
  8959. ac_status=$?
  8960. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8961. test $ac_status = 0; } 2>conftest.err; then
  8962. soname=conftest
  8963. lib=conftest
  8964. libobjs=conftest.$ac_objext
  8965. deplibs=
  8966. wl=$lt_prog_compiler_wl
  8967. pic_flag=$lt_prog_compiler_pic
  8968. compiler_flags=-v
  8969. linker_flags=-v
  8970. verstring=
  8971. output_objdir=.
  8972. libname=conftest
  8973. lt_save_allow_undefined_flag=$allow_undefined_flag
  8974. allow_undefined_flag=
  8975. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8976. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8977. ac_status=$?
  8978. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8979. test $ac_status = 0; }
  8980. then
  8981. lt_cv_archive_cmds_need_lc=no
  8982. else
  8983. lt_cv_archive_cmds_need_lc=yes
  8984. fi
  8985. allow_undefined_flag=$lt_save_allow_undefined_flag
  8986. else
  8987. cat conftest.err 1>&5
  8988. fi
  8989. $RM conftest*
  8990. fi
  8991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8992. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8993. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8994. ;;
  8995. esac
  8996. fi
  8997. ;;
  8998. esac
  8999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9000. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9001. if test yes = "$GCC"; then
  9002. case $host_os in
  9003. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9004. *) lt_awk_arg='/^libraries:/' ;;
  9005. esac
  9006. case $host_os in
  9007. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9008. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9009. esac
  9010. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9011. case $lt_search_path_spec in
  9012. *\;*)
  9013. # if the path contains ";" then we assume it to be the separator
  9014. # otherwise default to the standard path separator (i.e. ":") - it is
  9015. # assumed that no part of a normal pathname contains ";" but that should
  9016. # okay in the real world where ";" in dirpaths is itself problematic.
  9017. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9018. ;;
  9019. *)
  9020. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9021. ;;
  9022. esac
  9023. # Ok, now we have the path, separated by spaces, we can step through it
  9024. # and add multilib dir if necessary...
  9025. lt_tmp_lt_search_path_spec=
  9026. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9027. # ...but if some path component already ends with the multilib dir we assume
  9028. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9029. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9030. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9031. lt_multi_os_dir=
  9032. ;;
  9033. esac
  9034. for lt_sys_path in $lt_search_path_spec; do
  9035. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9036. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9037. elif test -n "$lt_multi_os_dir"; then
  9038. test -d "$lt_sys_path" && \
  9039. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9040. fi
  9041. done
  9042. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9043. BEGIN {RS = " "; FS = "/|\n";} {
  9044. lt_foo = "";
  9045. lt_count = 0;
  9046. for (lt_i = NF; lt_i > 0; lt_i--) {
  9047. if ($lt_i != "" && $lt_i != ".") {
  9048. if ($lt_i == "..") {
  9049. lt_count++;
  9050. } else {
  9051. if (lt_count == 0) {
  9052. lt_foo = "/" $lt_i lt_foo;
  9053. } else {
  9054. lt_count--;
  9055. }
  9056. }
  9057. }
  9058. }
  9059. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9060. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9061. }'`
  9062. # AWK program above erroneously prepends '/' to C:/dos/paths
  9063. # for these hosts.
  9064. case $host_os in
  9065. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9066. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9067. esac
  9068. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9069. else
  9070. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9071. fi
  9072. library_names_spec=
  9073. libname_spec='lib$name'
  9074. soname_spec=
  9075. shrext_cmds=.so
  9076. postinstall_cmds=
  9077. postuninstall_cmds=
  9078. finish_cmds=
  9079. finish_eval=
  9080. shlibpath_var=
  9081. shlibpath_overrides_runpath=unknown
  9082. version_type=none
  9083. dynamic_linker="$host_os ld.so"
  9084. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9085. need_lib_prefix=unknown
  9086. hardcode_into_libs=no
  9087. # when you set need_version to no, make sure it does not cause -set_version
  9088. # flags to be left without arguments
  9089. need_version=unknown
  9090. case $host_os in
  9091. aix3*)
  9092. version_type=linux # correct to gnu/linux during the next big refactor
  9093. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9094. shlibpath_var=LIBPATH
  9095. # AIX 3 has no versioning support, so we append a major version to the name.
  9096. soname_spec='$libname$release$shared_ext$major'
  9097. ;;
  9098. aix[4-9]*)
  9099. version_type=linux # correct to gnu/linux during the next big refactor
  9100. need_lib_prefix=no
  9101. need_version=no
  9102. hardcode_into_libs=yes
  9103. if test ia64 = "$host_cpu"; then
  9104. # AIX 5 supports IA64
  9105. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9106. shlibpath_var=LD_LIBRARY_PATH
  9107. else
  9108. # With GCC up to 2.95.x, collect2 would create an import file
  9109. # for dependence libraries. The import file would start with
  9110. # the line '#! .'. This would cause the generated library to
  9111. # depend on '.', always an invalid library. This was fixed in
  9112. # development snapshots of GCC prior to 3.0.
  9113. case $host_os in
  9114. aix4 | aix4.[01] | aix4.[01].*)
  9115. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9116. echo ' yes '
  9117. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9118. :
  9119. else
  9120. can_build_shared=no
  9121. fi
  9122. ;;
  9123. esac
  9124. # Using Import Files as archive members, it is possible to support
  9125. # filename-based versioning of shared library archives on AIX. While
  9126. # this would work for both with and without runtime linking, it will
  9127. # prevent static linking of such archives. So we do filename-based
  9128. # shared library versioning with .so extension only, which is used
  9129. # when both runtime linking and shared linking is enabled.
  9130. # Unfortunately, runtime linking may impact performance, so we do
  9131. # not want this to be the default eventually. Also, we use the
  9132. # versioned .so libs for executables only if there is the -brtl
  9133. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9134. # To allow for filename-based versioning support, we need to create
  9135. # libNAME.so.V as an archive file, containing:
  9136. # *) an Import File, referring to the versioned filename of the
  9137. # archive as well as the shared archive member, telling the
  9138. # bitwidth (32 or 64) of that shared object, and providing the
  9139. # list of exported symbols of that shared object, eventually
  9140. # decorated with the 'weak' keyword
  9141. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9142. # it being seen by the linker.
  9143. # At run time we better use the real file rather than another symlink,
  9144. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9145. case $with_aix_soname,$aix_use_runtimelinking in
  9146. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9147. # soname into executable. Probably we can add versioning support to
  9148. # collect2, so additional links can be useful in future.
  9149. aix,yes) # traditional libtool
  9150. dynamic_linker='AIX unversionable lib.so'
  9151. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9152. # instead of lib<name>.a to let people know that these are not
  9153. # typical AIX shared libraries.
  9154. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9155. ;;
  9156. aix,no) # traditional AIX only
  9157. dynamic_linker='AIX lib.a(lib.so.V)'
  9158. # We preserve .a as extension for shared libraries through AIX4.2
  9159. # and later when we are not doing run time linking.
  9160. library_names_spec='$libname$release.a $libname.a'
  9161. soname_spec='$libname$release$shared_ext$major'
  9162. ;;
  9163. svr4,*) # full svr4 only
  9164. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9165. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9166. # We do not specify a path in Import Files, so LIBPATH fires.
  9167. shlibpath_overrides_runpath=yes
  9168. ;;
  9169. *,yes) # both, prefer svr4
  9170. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9171. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9172. # unpreferred sharedlib libNAME.a needs extra handling
  9173. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  9174. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  9175. # We do not specify a path in Import Files, so LIBPATH fires.
  9176. shlibpath_overrides_runpath=yes
  9177. ;;
  9178. *,no) # both, prefer aix
  9179. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9180. library_names_spec='$libname$release.a $libname.a'
  9181. soname_spec='$libname$release$shared_ext$major'
  9182. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9183. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  9184. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  9185. ;;
  9186. esac
  9187. shlibpath_var=LIBPATH
  9188. fi
  9189. ;;
  9190. amigaos*)
  9191. case $host_cpu in
  9192. powerpc)
  9193. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9194. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9195. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9196. ;;
  9197. m68k)
  9198. library_names_spec='$libname.ixlibrary $libname.a'
  9199. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9200. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9201. ;;
  9202. esac
  9203. ;;
  9204. beos*)
  9205. library_names_spec='$libname$shared_ext'
  9206. dynamic_linker="$host_os ld.so"
  9207. shlibpath_var=LIBRARY_PATH
  9208. ;;
  9209. bsdi[45]*)
  9210. version_type=linux # correct to gnu/linux during the next big refactor
  9211. need_version=no
  9212. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9213. soname_spec='$libname$release$shared_ext$major'
  9214. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9215. shlibpath_var=LD_LIBRARY_PATH
  9216. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9217. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9218. # the default ld.so.conf also contains /usr/contrib/lib and
  9219. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9220. # libtool to hard-code these into programs
  9221. ;;
  9222. cygwin* | mingw* | pw32* | cegcc*)
  9223. version_type=windows
  9224. shrext_cmds=.dll
  9225. need_version=no
  9226. need_lib_prefix=no
  9227. case $GCC,$cc_basename in
  9228. yes,*)
  9229. # gcc
  9230. library_names_spec='$libname.dll.a'
  9231. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9232. postinstall_cmds='base_file=`basename \$file`~
  9233. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9234. dldir=$destdir/`dirname \$dlpath`~
  9235. test -d \$dldir || mkdir -p \$dldir~
  9236. $install_prog $dir/$dlname \$dldir/$dlname~
  9237. chmod a+x \$dldir/$dlname~
  9238. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9239. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9240. fi'
  9241. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9242. dlpath=$dir/\$dldll~
  9243. $RM \$dlpath'
  9244. shlibpath_overrides_runpath=yes
  9245. case $host_os in
  9246. cygwin*)
  9247. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9248. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9249. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9250. ;;
  9251. mingw* | cegcc*)
  9252. # MinGW DLLs use traditional 'lib' prefix
  9253. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9254. ;;
  9255. pw32*)
  9256. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9257. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9258. ;;
  9259. esac
  9260. dynamic_linker='Win32 ld.exe'
  9261. ;;
  9262. *,cl*)
  9263. # Native MSVC
  9264. libname_spec='$name'
  9265. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9266. library_names_spec='$libname.dll.lib'
  9267. case $build_os in
  9268. mingw*)
  9269. sys_lib_search_path_spec=
  9270. lt_save_ifs=$IFS
  9271. IFS=';'
  9272. for lt_path in $LIB
  9273. do
  9274. IFS=$lt_save_ifs
  9275. # Let DOS variable expansion print the short 8.3 style file name.
  9276. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9277. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9278. done
  9279. IFS=$lt_save_ifs
  9280. # Convert to MSYS style.
  9281. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9282. ;;
  9283. cygwin*)
  9284. # Convert to unix form, then to dos form, then back to unix form
  9285. # but this time dos style (no spaces!) so that the unix form looks
  9286. # like /cygdrive/c/PROGRA~1:/cygdr...
  9287. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9288. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9289. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9290. ;;
  9291. *)
  9292. sys_lib_search_path_spec=$LIB
  9293. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9294. # It is most probably a Windows format PATH.
  9295. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9296. else
  9297. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9298. fi
  9299. # FIXME: find the short name or the path components, as spaces are
  9300. # common. (e.g. "Program Files" -> "PROGRA~1")
  9301. ;;
  9302. esac
  9303. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9304. postinstall_cmds='base_file=`basename \$file`~
  9305. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9306. dldir=$destdir/`dirname \$dlpath`~
  9307. test -d \$dldir || mkdir -p \$dldir~
  9308. $install_prog $dir/$dlname \$dldir/$dlname'
  9309. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9310. dlpath=$dir/\$dldll~
  9311. $RM \$dlpath'
  9312. shlibpath_overrides_runpath=yes
  9313. dynamic_linker='Win32 link.exe'
  9314. ;;
  9315. *)
  9316. # Assume MSVC wrapper
  9317. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9318. dynamic_linker='Win32 ld.exe'
  9319. ;;
  9320. esac
  9321. # FIXME: first we should search . and the directory the executable is in
  9322. shlibpath_var=PATH
  9323. ;;
  9324. darwin* | rhapsody*)
  9325. dynamic_linker="$host_os dyld"
  9326. version_type=darwin
  9327. need_lib_prefix=no
  9328. need_version=no
  9329. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9330. soname_spec='$libname$release$major$shared_ext'
  9331. shlibpath_overrides_runpath=yes
  9332. shlibpath_var=DYLD_LIBRARY_PATH
  9333. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9334. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9335. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9336. ;;
  9337. dgux*)
  9338. version_type=linux # correct to gnu/linux during the next big refactor
  9339. need_lib_prefix=no
  9340. need_version=no
  9341. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9342. soname_spec='$libname$release$shared_ext$major'
  9343. shlibpath_var=LD_LIBRARY_PATH
  9344. ;;
  9345. freebsd* | dragonfly*)
  9346. # DragonFly does not have aout. When/if they implement a new
  9347. # versioning mechanism, adjust this.
  9348. if test -x /usr/bin/objformat; then
  9349. objformat=`/usr/bin/objformat`
  9350. else
  9351. case $host_os in
  9352. freebsd[23].*) objformat=aout ;;
  9353. *) objformat=elf ;;
  9354. esac
  9355. fi
  9356. version_type=freebsd-$objformat
  9357. case $version_type in
  9358. freebsd-elf*)
  9359. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9360. soname_spec='$libname$release$shared_ext$major'
  9361. need_version=no
  9362. need_lib_prefix=no
  9363. ;;
  9364. freebsd-*)
  9365. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9366. need_version=yes
  9367. ;;
  9368. esac
  9369. shlibpath_var=LD_LIBRARY_PATH
  9370. case $host_os in
  9371. freebsd2.*)
  9372. shlibpath_overrides_runpath=yes
  9373. ;;
  9374. freebsd3.[01]* | freebsdelf3.[01]*)
  9375. shlibpath_overrides_runpath=yes
  9376. hardcode_into_libs=yes
  9377. ;;
  9378. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9379. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9380. shlibpath_overrides_runpath=no
  9381. hardcode_into_libs=yes
  9382. ;;
  9383. *) # from 4.6 on, and DragonFly
  9384. shlibpath_overrides_runpath=yes
  9385. hardcode_into_libs=yes
  9386. ;;
  9387. esac
  9388. ;;
  9389. haiku*)
  9390. version_type=linux # correct to gnu/linux during the next big refactor
  9391. need_lib_prefix=no
  9392. need_version=no
  9393. dynamic_linker="$host_os runtime_loader"
  9394. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9395. soname_spec='$libname$release$shared_ext$major'
  9396. shlibpath_var=LIBRARY_PATH
  9397. shlibpath_overrides_runpath=no
  9398. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9399. hardcode_into_libs=yes
  9400. ;;
  9401. hpux9* | hpux10* | hpux11*)
  9402. # Give a soname corresponding to the major version so that dld.sl refuses to
  9403. # link against other versions.
  9404. version_type=sunos
  9405. need_lib_prefix=no
  9406. need_version=no
  9407. case $host_cpu in
  9408. ia64*)
  9409. shrext_cmds='.so'
  9410. hardcode_into_libs=yes
  9411. dynamic_linker="$host_os dld.so"
  9412. shlibpath_var=LD_LIBRARY_PATH
  9413. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9414. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9415. soname_spec='$libname$release$shared_ext$major'
  9416. if test 32 = "$HPUX_IA64_MODE"; then
  9417. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9418. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9419. else
  9420. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9421. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9422. fi
  9423. ;;
  9424. hppa*64*)
  9425. shrext_cmds='.sl'
  9426. hardcode_into_libs=yes
  9427. dynamic_linker="$host_os dld.sl"
  9428. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9429. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9430. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9431. soname_spec='$libname$release$shared_ext$major'
  9432. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9433. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9434. ;;
  9435. *)
  9436. shrext_cmds='.sl'
  9437. dynamic_linker="$host_os dld.sl"
  9438. shlibpath_var=SHLIB_PATH
  9439. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9440. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9441. soname_spec='$libname$release$shared_ext$major'
  9442. ;;
  9443. esac
  9444. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9445. postinstall_cmds='chmod 555 $lib'
  9446. # or fails outright, so override atomically:
  9447. install_override_mode=555
  9448. ;;
  9449. interix[3-9]*)
  9450. version_type=linux # correct to gnu/linux during the next big refactor
  9451. need_lib_prefix=no
  9452. need_version=no
  9453. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9454. soname_spec='$libname$release$shared_ext$major'
  9455. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9456. shlibpath_var=LD_LIBRARY_PATH
  9457. shlibpath_overrides_runpath=no
  9458. hardcode_into_libs=yes
  9459. ;;
  9460. irix5* | irix6* | nonstopux*)
  9461. case $host_os in
  9462. nonstopux*) version_type=nonstopux ;;
  9463. *)
  9464. if test yes = "$lt_cv_prog_gnu_ld"; then
  9465. version_type=linux # correct to gnu/linux during the next big refactor
  9466. else
  9467. version_type=irix
  9468. fi ;;
  9469. esac
  9470. need_lib_prefix=no
  9471. need_version=no
  9472. soname_spec='$libname$release$shared_ext$major'
  9473. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9474. case $host_os in
  9475. irix5* | nonstopux*)
  9476. libsuff= shlibsuff=
  9477. ;;
  9478. *)
  9479. case $LD in # libtool.m4 will add one of these switches to LD
  9480. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9481. libsuff= shlibsuff= libmagic=32-bit;;
  9482. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9483. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9484. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9485. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9486. *) libsuff= shlibsuff= libmagic=never-match;;
  9487. esac
  9488. ;;
  9489. esac
  9490. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9491. shlibpath_overrides_runpath=no
  9492. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9493. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9494. hardcode_into_libs=yes
  9495. ;;
  9496. # No shared lib support for Linux oldld, aout, or coff.
  9497. linux*oldld* | linux*aout* | linux*coff*)
  9498. dynamic_linker=no
  9499. ;;
  9500. linux*android*)
  9501. version_type=none # Android doesn't support versioned libraries.
  9502. need_lib_prefix=no
  9503. need_version=no
  9504. library_names_spec='$libname$release$shared_ext'
  9505. soname_spec='$libname$release$shared_ext'
  9506. finish_cmds=
  9507. shlibpath_var=LD_LIBRARY_PATH
  9508. shlibpath_overrides_runpath=yes
  9509. # This implies no fast_install, which is unacceptable.
  9510. # Some rework will be needed to allow for fast_install
  9511. # before this can be enabled.
  9512. hardcode_into_libs=yes
  9513. dynamic_linker='Android linker'
  9514. # Don't embed -rpath directories since the linker doesn't support them.
  9515. hardcode_libdir_flag_spec='-L$libdir'
  9516. ;;
  9517. # This must be glibc/ELF.
  9518. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9519. version_type=linux # correct to gnu/linux during the next big refactor
  9520. need_lib_prefix=no
  9521. need_version=no
  9522. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9523. soname_spec='$libname$release$shared_ext$major'
  9524. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9525. shlibpath_var=LD_LIBRARY_PATH
  9526. shlibpath_overrides_runpath=no
  9527. # Some binutils ld are patched to set DT_RUNPATH
  9528. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9529. $as_echo_n "(cached) " >&6
  9530. else
  9531. lt_cv_shlibpath_overrides_runpath=no
  9532. save_LDFLAGS=$LDFLAGS
  9533. save_libdir=$libdir
  9534. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9535. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9537. /* end confdefs.h. */
  9538. int
  9539. main ()
  9540. {
  9541. ;
  9542. return 0;
  9543. }
  9544. _ACEOF
  9545. if ac_fn_c_try_link "$LINENO"; then :
  9546. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9547. lt_cv_shlibpath_overrides_runpath=yes
  9548. fi
  9549. fi
  9550. rm -f core conftest.err conftest.$ac_objext \
  9551. conftest$ac_exeext conftest.$ac_ext
  9552. LDFLAGS=$save_LDFLAGS
  9553. libdir=$save_libdir
  9554. fi
  9555. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9556. # This implies no fast_install, which is unacceptable.
  9557. # Some rework will be needed to allow for fast_install
  9558. # before this can be enabled.
  9559. hardcode_into_libs=yes
  9560. # Ideally, we could use ldconfig to report *all* directores which are
  9561. # searched for libraries, however this is still not possible. Aside from not
  9562. # being certain /sbin/ldconfig is available, command
  9563. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9564. # even though it is searched at run-time. Try to do the best guess by
  9565. # appending ld.so.conf contents (and includes) to the search path.
  9566. if test -f /etc/ld.so.conf; then
  9567. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  9568. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9569. fi
  9570. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9571. # powerpc, because MkLinux only supported shared libraries with the
  9572. # GNU dynamic linker. Since this was broken with cross compilers,
  9573. # most powerpc-linux boxes support dynamic linking these days and
  9574. # people can always --disable-shared, the test was removed, and we
  9575. # assume the GNU/Linux dynamic linker is in use.
  9576. dynamic_linker='GNU/Linux ld.so'
  9577. ;;
  9578. netbsd*)
  9579. version_type=sunos
  9580. need_lib_prefix=no
  9581. need_version=no
  9582. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9583. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9584. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9585. dynamic_linker='NetBSD (a.out) ld.so'
  9586. else
  9587. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9588. soname_spec='$libname$release$shared_ext$major'
  9589. dynamic_linker='NetBSD ld.elf_so'
  9590. fi
  9591. shlibpath_var=LD_LIBRARY_PATH
  9592. shlibpath_overrides_runpath=yes
  9593. hardcode_into_libs=yes
  9594. ;;
  9595. newsos6)
  9596. version_type=linux # correct to gnu/linux during the next big refactor
  9597. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9598. shlibpath_var=LD_LIBRARY_PATH
  9599. shlibpath_overrides_runpath=yes
  9600. ;;
  9601. *nto* | *qnx*)
  9602. version_type=qnx
  9603. need_lib_prefix=no
  9604. need_version=no
  9605. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9606. soname_spec='$libname$release$shared_ext$major'
  9607. shlibpath_var=LD_LIBRARY_PATH
  9608. shlibpath_overrides_runpath=no
  9609. hardcode_into_libs=yes
  9610. dynamic_linker='ldqnx.so'
  9611. ;;
  9612. openbsd* | bitrig*)
  9613. version_type=sunos
  9614. sys_lib_dlsearch_path_spec=/usr/lib
  9615. need_lib_prefix=no
  9616. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9617. need_version=no
  9618. else
  9619. need_version=yes
  9620. fi
  9621. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9622. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9623. shlibpath_var=LD_LIBRARY_PATH
  9624. shlibpath_overrides_runpath=yes
  9625. ;;
  9626. os2*)
  9627. libname_spec='$name'
  9628. version_type=windows
  9629. shrext_cmds=.dll
  9630. need_version=no
  9631. need_lib_prefix=no
  9632. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9633. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9634. v=$($ECHO $release$versuffix | tr -d .-);
  9635. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  9636. $ECHO $n$v`$shared_ext'
  9637. library_names_spec='${libname}_dll.$libext'
  9638. dynamic_linker='OS/2 ld.exe'
  9639. shlibpath_var=BEGINLIBPATH
  9640. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9641. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9642. postinstall_cmds='base_file=`basename \$file`~
  9643. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  9644. dldir=$destdir/`dirname \$dlpath`~
  9645. test -d \$dldir || mkdir -p \$dldir~
  9646. $install_prog $dir/$dlname \$dldir/$dlname~
  9647. chmod a+x \$dldir/$dlname~
  9648. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9649. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9650. fi'
  9651. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  9652. dlpath=$dir/\$dldll~
  9653. $RM \$dlpath'
  9654. ;;
  9655. osf3* | osf4* | osf5*)
  9656. version_type=osf
  9657. need_lib_prefix=no
  9658. need_version=no
  9659. soname_spec='$libname$release$shared_ext$major'
  9660. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9661. shlibpath_var=LD_LIBRARY_PATH
  9662. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9663. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9664. ;;
  9665. rdos*)
  9666. dynamic_linker=no
  9667. ;;
  9668. solaris*)
  9669. version_type=linux # correct to gnu/linux during the next big refactor
  9670. need_lib_prefix=no
  9671. need_version=no
  9672. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9673. soname_spec='$libname$release$shared_ext$major'
  9674. shlibpath_var=LD_LIBRARY_PATH
  9675. shlibpath_overrides_runpath=yes
  9676. hardcode_into_libs=yes
  9677. # ldd complains unless libraries are executable
  9678. postinstall_cmds='chmod +x $lib'
  9679. ;;
  9680. sunos4*)
  9681. version_type=sunos
  9682. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9683. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9684. shlibpath_var=LD_LIBRARY_PATH
  9685. shlibpath_overrides_runpath=yes
  9686. if test yes = "$with_gnu_ld"; then
  9687. need_lib_prefix=no
  9688. fi
  9689. need_version=yes
  9690. ;;
  9691. sysv4 | sysv4.3*)
  9692. version_type=linux # correct to gnu/linux during the next big refactor
  9693. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9694. soname_spec='$libname$release$shared_ext$major'
  9695. shlibpath_var=LD_LIBRARY_PATH
  9696. case $host_vendor in
  9697. sni)
  9698. shlibpath_overrides_runpath=no
  9699. need_lib_prefix=no
  9700. runpath_var=LD_RUN_PATH
  9701. ;;
  9702. siemens)
  9703. need_lib_prefix=no
  9704. ;;
  9705. motorola)
  9706. need_lib_prefix=no
  9707. need_version=no
  9708. shlibpath_overrides_runpath=no
  9709. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9710. ;;
  9711. esac
  9712. ;;
  9713. sysv4*MP*)
  9714. if test -d /usr/nec; then
  9715. version_type=linux # correct to gnu/linux during the next big refactor
  9716. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  9717. soname_spec='$libname$shared_ext.$major'
  9718. shlibpath_var=LD_LIBRARY_PATH
  9719. fi
  9720. ;;
  9721. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9722. version_type=sco
  9723. need_lib_prefix=no
  9724. need_version=no
  9725. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  9726. soname_spec='$libname$release$shared_ext$major'
  9727. shlibpath_var=LD_LIBRARY_PATH
  9728. shlibpath_overrides_runpath=yes
  9729. hardcode_into_libs=yes
  9730. if test yes = "$with_gnu_ld"; then
  9731. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9732. else
  9733. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9734. case $host_os in
  9735. sco3.2v5*)
  9736. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9737. ;;
  9738. esac
  9739. fi
  9740. sys_lib_dlsearch_path_spec='/usr/lib'
  9741. ;;
  9742. tpf*)
  9743. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9744. version_type=linux # correct to gnu/linux during the next big refactor
  9745. need_lib_prefix=no
  9746. need_version=no
  9747. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9748. shlibpath_var=LD_LIBRARY_PATH
  9749. shlibpath_overrides_runpath=no
  9750. hardcode_into_libs=yes
  9751. ;;
  9752. uts4*)
  9753. version_type=linux # correct to gnu/linux during the next big refactor
  9754. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9755. soname_spec='$libname$release$shared_ext$major'
  9756. shlibpath_var=LD_LIBRARY_PATH
  9757. ;;
  9758. *)
  9759. dynamic_linker=no
  9760. ;;
  9761. esac
  9762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9763. $as_echo "$dynamic_linker" >&6; }
  9764. test no = "$dynamic_linker" && can_build_shared=no
  9765. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9766. if test yes = "$GCC"; then
  9767. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9768. fi
  9769. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  9770. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  9771. fi
  9772. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  9773. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  9774. fi
  9775. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  9776. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  9777. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  9778. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  9779. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  9780. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  9781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9782. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9783. hardcode_action=
  9784. if test -n "$hardcode_libdir_flag_spec" ||
  9785. test -n "$runpath_var" ||
  9786. test yes = "$hardcode_automatic"; then
  9787. # We can hardcode non-existent directories.
  9788. if test no != "$hardcode_direct" &&
  9789. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9790. # have to relink, otherwise we might link with an installed library
  9791. # when we should be linking with a yet-to-be-installed one
  9792. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  9793. test no != "$hardcode_minus_L"; then
  9794. # Linking always hardcodes the temporary library directory.
  9795. hardcode_action=relink
  9796. else
  9797. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9798. hardcode_action=immediate
  9799. fi
  9800. else
  9801. # We cannot hardcode anything, or else we can only hardcode existing
  9802. # directories.
  9803. hardcode_action=unsupported
  9804. fi
  9805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9806. $as_echo "$hardcode_action" >&6; }
  9807. if test relink = "$hardcode_action" ||
  9808. test yes = "$inherit_rpath"; then
  9809. # Fast installation is not supported
  9810. enable_fast_install=no
  9811. elif test yes = "$shlibpath_overrides_runpath" ||
  9812. test no = "$enable_shared"; then
  9813. # Fast installation is not necessary
  9814. enable_fast_install=needless
  9815. fi
  9816. if test yes != "$enable_dlopen"; then
  9817. enable_dlopen=unknown
  9818. enable_dlopen_self=unknown
  9819. enable_dlopen_self_static=unknown
  9820. else
  9821. lt_cv_dlopen=no
  9822. lt_cv_dlopen_libs=
  9823. case $host_os in
  9824. beos*)
  9825. lt_cv_dlopen=load_add_on
  9826. lt_cv_dlopen_libs=
  9827. lt_cv_dlopen_self=yes
  9828. ;;
  9829. mingw* | pw32* | cegcc*)
  9830. lt_cv_dlopen=LoadLibrary
  9831. lt_cv_dlopen_libs=
  9832. ;;
  9833. cygwin*)
  9834. lt_cv_dlopen=dlopen
  9835. lt_cv_dlopen_libs=
  9836. ;;
  9837. darwin*)
  9838. # if libdl is installed we need to link against it
  9839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9840. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9841. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9842. $as_echo_n "(cached) " >&6
  9843. else
  9844. ac_check_lib_save_LIBS=$LIBS
  9845. LIBS="-ldl $LIBS"
  9846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9847. /* end confdefs.h. */
  9848. /* Override any GCC internal prototype to avoid an error.
  9849. Use char because int might match the return type of a GCC
  9850. builtin and then its argument prototype would still apply. */
  9851. #ifdef __cplusplus
  9852. extern "C"
  9853. #endif
  9854. char dlopen ();
  9855. int
  9856. main ()
  9857. {
  9858. return dlopen ();
  9859. ;
  9860. return 0;
  9861. }
  9862. _ACEOF
  9863. if ac_fn_c_try_link "$LINENO"; then :
  9864. ac_cv_lib_dl_dlopen=yes
  9865. else
  9866. ac_cv_lib_dl_dlopen=no
  9867. fi
  9868. rm -f core conftest.err conftest.$ac_objext \
  9869. conftest$ac_exeext conftest.$ac_ext
  9870. LIBS=$ac_check_lib_save_LIBS
  9871. fi
  9872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9873. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9874. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9875. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  9876. else
  9877. lt_cv_dlopen=dyld
  9878. lt_cv_dlopen_libs=
  9879. lt_cv_dlopen_self=yes
  9880. fi
  9881. ;;
  9882. tpf*)
  9883. # Don't try to run any link tests for TPF. We know it's impossible
  9884. # because TPF is a cross-compiler, and we know how we open DSOs.
  9885. lt_cv_dlopen=dlopen
  9886. lt_cv_dlopen_libs=
  9887. lt_cv_dlopen_self=no
  9888. ;;
  9889. *)
  9890. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9891. if test "x$ac_cv_func_shl_load" = xyes; then :
  9892. lt_cv_dlopen=shl_load
  9893. else
  9894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9895. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9896. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9897. $as_echo_n "(cached) " >&6
  9898. else
  9899. ac_check_lib_save_LIBS=$LIBS
  9900. LIBS="-ldld $LIBS"
  9901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9902. /* end confdefs.h. */
  9903. /* Override any GCC internal prototype to avoid an error.
  9904. Use char because int might match the return type of a GCC
  9905. builtin and then its argument prototype would still apply. */
  9906. #ifdef __cplusplus
  9907. extern "C"
  9908. #endif
  9909. char shl_load ();
  9910. int
  9911. main ()
  9912. {
  9913. return shl_load ();
  9914. ;
  9915. return 0;
  9916. }
  9917. _ACEOF
  9918. if ac_fn_c_try_link "$LINENO"; then :
  9919. ac_cv_lib_dld_shl_load=yes
  9920. else
  9921. ac_cv_lib_dld_shl_load=no
  9922. fi
  9923. rm -f core conftest.err conftest.$ac_objext \
  9924. conftest$ac_exeext conftest.$ac_ext
  9925. LIBS=$ac_check_lib_save_LIBS
  9926. fi
  9927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9928. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9929. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9930. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  9931. else
  9932. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9933. if test "x$ac_cv_func_dlopen" = xyes; then :
  9934. lt_cv_dlopen=dlopen
  9935. else
  9936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9937. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9938. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9939. $as_echo_n "(cached) " >&6
  9940. else
  9941. ac_check_lib_save_LIBS=$LIBS
  9942. LIBS="-ldl $LIBS"
  9943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9944. /* end confdefs.h. */
  9945. /* Override any GCC internal prototype to avoid an error.
  9946. Use char because int might match the return type of a GCC
  9947. builtin and then its argument prototype would still apply. */
  9948. #ifdef __cplusplus
  9949. extern "C"
  9950. #endif
  9951. char dlopen ();
  9952. int
  9953. main ()
  9954. {
  9955. return dlopen ();
  9956. ;
  9957. return 0;
  9958. }
  9959. _ACEOF
  9960. if ac_fn_c_try_link "$LINENO"; then :
  9961. ac_cv_lib_dl_dlopen=yes
  9962. else
  9963. ac_cv_lib_dl_dlopen=no
  9964. fi
  9965. rm -f core conftest.err conftest.$ac_objext \
  9966. conftest$ac_exeext conftest.$ac_ext
  9967. LIBS=$ac_check_lib_save_LIBS
  9968. fi
  9969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9970. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9971. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9972. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  9973. else
  9974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9975. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9976. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9977. $as_echo_n "(cached) " >&6
  9978. else
  9979. ac_check_lib_save_LIBS=$LIBS
  9980. LIBS="-lsvld $LIBS"
  9981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9982. /* end confdefs.h. */
  9983. /* Override any GCC internal prototype to avoid an error.
  9984. Use char because int might match the return type of a GCC
  9985. builtin and then its argument prototype would still apply. */
  9986. #ifdef __cplusplus
  9987. extern "C"
  9988. #endif
  9989. char dlopen ();
  9990. int
  9991. main ()
  9992. {
  9993. return dlopen ();
  9994. ;
  9995. return 0;
  9996. }
  9997. _ACEOF
  9998. if ac_fn_c_try_link "$LINENO"; then :
  9999. ac_cv_lib_svld_dlopen=yes
  10000. else
  10001. ac_cv_lib_svld_dlopen=no
  10002. fi
  10003. rm -f core conftest.err conftest.$ac_objext \
  10004. conftest$ac_exeext conftest.$ac_ext
  10005. LIBS=$ac_check_lib_save_LIBS
  10006. fi
  10007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10008. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10009. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10010. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10011. else
  10012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10013. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10014. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10015. $as_echo_n "(cached) " >&6
  10016. else
  10017. ac_check_lib_save_LIBS=$LIBS
  10018. LIBS="-ldld $LIBS"
  10019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10020. /* end confdefs.h. */
  10021. /* Override any GCC internal prototype to avoid an error.
  10022. Use char because int might match the return type of a GCC
  10023. builtin and then its argument prototype would still apply. */
  10024. #ifdef __cplusplus
  10025. extern "C"
  10026. #endif
  10027. char dld_link ();
  10028. int
  10029. main ()
  10030. {
  10031. return dld_link ();
  10032. ;
  10033. return 0;
  10034. }
  10035. _ACEOF
  10036. if ac_fn_c_try_link "$LINENO"; then :
  10037. ac_cv_lib_dld_dld_link=yes
  10038. else
  10039. ac_cv_lib_dld_dld_link=no
  10040. fi
  10041. rm -f core conftest.err conftest.$ac_objext \
  10042. conftest$ac_exeext conftest.$ac_ext
  10043. LIBS=$ac_check_lib_save_LIBS
  10044. fi
  10045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10046. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10047. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10048. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10049. fi
  10050. fi
  10051. fi
  10052. fi
  10053. fi
  10054. fi
  10055. ;;
  10056. esac
  10057. if test no = "$lt_cv_dlopen"; then
  10058. enable_dlopen=no
  10059. else
  10060. enable_dlopen=yes
  10061. fi
  10062. case $lt_cv_dlopen in
  10063. dlopen)
  10064. save_CPPFLAGS=$CPPFLAGS
  10065. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10066. save_LDFLAGS=$LDFLAGS
  10067. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10068. save_LIBS=$LIBS
  10069. LIBS="$lt_cv_dlopen_libs $LIBS"
  10070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10071. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10072. if ${lt_cv_dlopen_self+:} false; then :
  10073. $as_echo_n "(cached) " >&6
  10074. else
  10075. if test yes = "$cross_compiling"; then :
  10076. lt_cv_dlopen_self=cross
  10077. else
  10078. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10079. lt_status=$lt_dlunknown
  10080. cat > conftest.$ac_ext <<_LT_EOF
  10081. #line $LINENO "configure"
  10082. #include "confdefs.h"
  10083. #if HAVE_DLFCN_H
  10084. #include <dlfcn.h>
  10085. #endif
  10086. #include <stdio.h>
  10087. #ifdef RTLD_GLOBAL
  10088. # define LT_DLGLOBAL RTLD_GLOBAL
  10089. #else
  10090. # ifdef DL_GLOBAL
  10091. # define LT_DLGLOBAL DL_GLOBAL
  10092. # else
  10093. # define LT_DLGLOBAL 0
  10094. # endif
  10095. #endif
  10096. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10097. find out it does not work in some platform. */
  10098. #ifndef LT_DLLAZY_OR_NOW
  10099. # ifdef RTLD_LAZY
  10100. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10101. # else
  10102. # ifdef DL_LAZY
  10103. # define LT_DLLAZY_OR_NOW DL_LAZY
  10104. # else
  10105. # ifdef RTLD_NOW
  10106. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10107. # else
  10108. # ifdef DL_NOW
  10109. # define LT_DLLAZY_OR_NOW DL_NOW
  10110. # else
  10111. # define LT_DLLAZY_OR_NOW 0
  10112. # endif
  10113. # endif
  10114. # endif
  10115. # endif
  10116. #endif
  10117. /* When -fvisibility=hidden is used, assume the code has been annotated
  10118. correspondingly for the symbols needed. */
  10119. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10120. int fnord () __attribute__((visibility("default")));
  10121. #endif
  10122. int fnord () { return 42; }
  10123. int main ()
  10124. {
  10125. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10126. int status = $lt_dlunknown;
  10127. if (self)
  10128. {
  10129. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10130. else
  10131. {
  10132. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10133. else puts (dlerror ());
  10134. }
  10135. /* dlclose (self); */
  10136. }
  10137. else
  10138. puts (dlerror ());
  10139. return status;
  10140. }
  10141. _LT_EOF
  10142. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10143. (eval $ac_link) 2>&5
  10144. ac_status=$?
  10145. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10146. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10147. (./conftest; exit; ) >&5 2>/dev/null
  10148. lt_status=$?
  10149. case x$lt_status in
  10150. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10151. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10152. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10153. esac
  10154. else :
  10155. # compilation failed
  10156. lt_cv_dlopen_self=no
  10157. fi
  10158. fi
  10159. rm -fr conftest*
  10160. fi
  10161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10162. $as_echo "$lt_cv_dlopen_self" >&6; }
  10163. if test yes = "$lt_cv_dlopen_self"; then
  10164. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10166. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10167. if ${lt_cv_dlopen_self_static+:} false; then :
  10168. $as_echo_n "(cached) " >&6
  10169. else
  10170. if test yes = "$cross_compiling"; then :
  10171. lt_cv_dlopen_self_static=cross
  10172. else
  10173. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10174. lt_status=$lt_dlunknown
  10175. cat > conftest.$ac_ext <<_LT_EOF
  10176. #line $LINENO "configure"
  10177. #include "confdefs.h"
  10178. #if HAVE_DLFCN_H
  10179. #include <dlfcn.h>
  10180. #endif
  10181. #include <stdio.h>
  10182. #ifdef RTLD_GLOBAL
  10183. # define LT_DLGLOBAL RTLD_GLOBAL
  10184. #else
  10185. # ifdef DL_GLOBAL
  10186. # define LT_DLGLOBAL DL_GLOBAL
  10187. # else
  10188. # define LT_DLGLOBAL 0
  10189. # endif
  10190. #endif
  10191. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10192. find out it does not work in some platform. */
  10193. #ifndef LT_DLLAZY_OR_NOW
  10194. # ifdef RTLD_LAZY
  10195. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10196. # else
  10197. # ifdef DL_LAZY
  10198. # define LT_DLLAZY_OR_NOW DL_LAZY
  10199. # else
  10200. # ifdef RTLD_NOW
  10201. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10202. # else
  10203. # ifdef DL_NOW
  10204. # define LT_DLLAZY_OR_NOW DL_NOW
  10205. # else
  10206. # define LT_DLLAZY_OR_NOW 0
  10207. # endif
  10208. # endif
  10209. # endif
  10210. # endif
  10211. #endif
  10212. /* When -fvisibility=hidden is used, assume the code has been annotated
  10213. correspondingly for the symbols needed. */
  10214. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10215. int fnord () __attribute__((visibility("default")));
  10216. #endif
  10217. int fnord () { return 42; }
  10218. int main ()
  10219. {
  10220. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10221. int status = $lt_dlunknown;
  10222. if (self)
  10223. {
  10224. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10225. else
  10226. {
  10227. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10228. else puts (dlerror ());
  10229. }
  10230. /* dlclose (self); */
  10231. }
  10232. else
  10233. puts (dlerror ());
  10234. return status;
  10235. }
  10236. _LT_EOF
  10237. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10238. (eval $ac_link) 2>&5
  10239. ac_status=$?
  10240. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10241. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10242. (./conftest; exit; ) >&5 2>/dev/null
  10243. lt_status=$?
  10244. case x$lt_status in
  10245. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10246. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10247. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10248. esac
  10249. else :
  10250. # compilation failed
  10251. lt_cv_dlopen_self_static=no
  10252. fi
  10253. fi
  10254. rm -fr conftest*
  10255. fi
  10256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10257. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10258. fi
  10259. CPPFLAGS=$save_CPPFLAGS
  10260. LDFLAGS=$save_LDFLAGS
  10261. LIBS=$save_LIBS
  10262. ;;
  10263. esac
  10264. case $lt_cv_dlopen_self in
  10265. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10266. *) enable_dlopen_self=unknown ;;
  10267. esac
  10268. case $lt_cv_dlopen_self_static in
  10269. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10270. *) enable_dlopen_self_static=unknown ;;
  10271. esac
  10272. fi
  10273. striplib=
  10274. old_striplib=
  10275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10276. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10277. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10278. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10279. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10281. $as_echo "yes" >&6; }
  10282. else
  10283. # FIXME - insert some real tests, host_os isn't really good enough
  10284. case $host_os in
  10285. darwin*)
  10286. if test -n "$STRIP"; then
  10287. striplib="$STRIP -x"
  10288. old_striplib="$STRIP -S"
  10289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10290. $as_echo "yes" >&6; }
  10291. else
  10292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10293. $as_echo "no" >&6; }
  10294. fi
  10295. ;;
  10296. *)
  10297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10298. $as_echo "no" >&6; }
  10299. ;;
  10300. esac
  10301. fi
  10302. # Report what library types will actually be built
  10303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10304. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10306. $as_echo "$can_build_shared" >&6; }
  10307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10308. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10309. test no = "$can_build_shared" && enable_shared=no
  10310. # On AIX, shared libraries and static libraries use the same namespace, and
  10311. # are all built from PIC.
  10312. case $host_os in
  10313. aix3*)
  10314. test yes = "$enable_shared" && enable_static=no
  10315. if test -n "$RANLIB"; then
  10316. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10317. postinstall_cmds='$RANLIB $lib'
  10318. fi
  10319. ;;
  10320. aix[4-9]*)
  10321. if test ia64 != "$host_cpu"; then
  10322. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10323. yes,aix,yes) ;; # shared object as lib.so file only
  10324. yes,svr4,*) ;; # shared object as lib.so archive member only
  10325. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10326. esac
  10327. fi
  10328. ;;
  10329. esac
  10330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10331. $as_echo "$enable_shared" >&6; }
  10332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10333. $as_echo_n "checking whether to build static libraries... " >&6; }
  10334. # Make sure either enable_shared or enable_static is yes.
  10335. test yes = "$enable_shared" || enable_static=yes
  10336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10337. $as_echo "$enable_static" >&6; }
  10338. fi
  10339. ac_ext=c
  10340. ac_cpp='$CPP $CPPFLAGS'
  10341. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10342. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10343. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10344. CC=$lt_save_CC
  10345. ac_config_commands="$ac_config_commands libtool"
  10346. # Only expand once:
  10347. for ac_header in $ac_header_list
  10348. do :
  10349. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10350. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  10351. "
  10352. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10353. cat >>confdefs.h <<_ACEOF
  10354. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10355. _ACEOF
  10356. fi
  10357. done
  10358. for ac_func in getpagesize
  10359. do :
  10360. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  10361. if test "x$ac_cv_func_getpagesize" = xyes; then :
  10362. cat >>confdefs.h <<_ACEOF
  10363. #define HAVE_GETPAGESIZE 1
  10364. _ACEOF
  10365. fi
  10366. done
  10367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  10368. $as_echo_n "checking for working mmap... " >&6; }
  10369. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  10370. $as_echo_n "(cached) " >&6
  10371. else
  10372. if test "$cross_compiling" = yes; then :
  10373. ac_cv_func_mmap_fixed_mapped=no
  10374. else
  10375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10376. /* end confdefs.h. */
  10377. $ac_includes_default
  10378. /* malloc might have been renamed as rpl_malloc. */
  10379. #undef malloc
  10380. /* Thanks to Mike Haertel and Jim Avera for this test.
  10381. Here is a matrix of mmap possibilities:
  10382. mmap private not fixed
  10383. mmap private fixed at somewhere currently unmapped
  10384. mmap private fixed at somewhere already mapped
  10385. mmap shared not fixed
  10386. mmap shared fixed at somewhere currently unmapped
  10387. mmap shared fixed at somewhere already mapped
  10388. For private mappings, we should verify that changes cannot be read()
  10389. back from the file, nor mmap's back from the file at a different
  10390. address. (There have been systems where private was not correctly
  10391. implemented like the infamous i386 svr4.0, and systems where the
  10392. VM page cache was not coherent with the file system buffer cache
  10393. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10394. For shared mappings, we should conversely verify that changes get
  10395. propagated back to all the places they're supposed to be.
  10396. Grep wants private fixed already mapped.
  10397. The main things grep needs to know about mmap are:
  10398. * does it exist and is it safe to write into the mmap'd area
  10399. * how to use it (BSD variants) */
  10400. #include <fcntl.h>
  10401. #include <sys/mman.h>
  10402. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  10403. char *malloc ();
  10404. #endif
  10405. /* This mess was copied from the GNU getpagesize.h. */
  10406. #ifndef HAVE_GETPAGESIZE
  10407. # ifdef _SC_PAGESIZE
  10408. # define getpagesize() sysconf(_SC_PAGESIZE)
  10409. # else /* no _SC_PAGESIZE */
  10410. # ifdef HAVE_SYS_PARAM_H
  10411. # include <sys/param.h>
  10412. # ifdef EXEC_PAGESIZE
  10413. # define getpagesize() EXEC_PAGESIZE
  10414. # else /* no EXEC_PAGESIZE */
  10415. # ifdef NBPG
  10416. # define getpagesize() NBPG * CLSIZE
  10417. # ifndef CLSIZE
  10418. # define CLSIZE 1
  10419. # endif /* no CLSIZE */
  10420. # else /* no NBPG */
  10421. # ifdef NBPC
  10422. # define getpagesize() NBPC
  10423. # else /* no NBPC */
  10424. # ifdef PAGESIZE
  10425. # define getpagesize() PAGESIZE
  10426. # endif /* PAGESIZE */
  10427. # endif /* no NBPC */
  10428. # endif /* no NBPG */
  10429. # endif /* no EXEC_PAGESIZE */
  10430. # else /* no HAVE_SYS_PARAM_H */
  10431. # define getpagesize() 8192 /* punt totally */
  10432. # endif /* no HAVE_SYS_PARAM_H */
  10433. # endif /* no _SC_PAGESIZE */
  10434. #endif /* no HAVE_GETPAGESIZE */
  10435. int
  10436. main ()
  10437. {
  10438. char *data, *data2, *data3;
  10439. const char *cdata2;
  10440. int i, pagesize;
  10441. int fd, fd2;
  10442. pagesize = getpagesize ();
  10443. /* First, make a file with some known garbage in it. */
  10444. data = (char *) malloc (pagesize);
  10445. if (!data)
  10446. return 1;
  10447. for (i = 0; i < pagesize; ++i)
  10448. *(data + i) = rand ();
  10449. umask (0);
  10450. fd = creat ("conftest.mmap", 0600);
  10451. if (fd < 0)
  10452. return 2;
  10453. if (write (fd, data, pagesize) != pagesize)
  10454. return 3;
  10455. close (fd);
  10456. /* Next, check that the tail of a page is zero-filled. File must have
  10457. non-zero length, otherwise we risk SIGBUS for entire page. */
  10458. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  10459. if (fd2 < 0)
  10460. return 4;
  10461. cdata2 = "";
  10462. if (write (fd2, cdata2, 1) != 1)
  10463. return 5;
  10464. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  10465. if (data2 == MAP_FAILED)
  10466. return 6;
  10467. for (i = 0; i < pagesize; ++i)
  10468. if (*(data2 + i))
  10469. return 7;
  10470. close (fd2);
  10471. if (munmap (data2, pagesize))
  10472. return 8;
  10473. /* Next, try to mmap the file at a fixed address which already has
  10474. something else allocated at it. If we can, also make sure that
  10475. we see the same garbage. */
  10476. fd = open ("conftest.mmap", O_RDWR);
  10477. if (fd < 0)
  10478. return 9;
  10479. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10480. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10481. return 10;
  10482. for (i = 0; i < pagesize; ++i)
  10483. if (*(data + i) != *(data2 + i))
  10484. return 11;
  10485. /* Finally, make sure that changes to the mapped area do not
  10486. percolate back to the file as seen by read(). (This is a bug on
  10487. some variants of i386 svr4.0.) */
  10488. for (i = 0; i < pagesize; ++i)
  10489. *(data2 + i) = *(data2 + i) + 1;
  10490. data3 = (char *) malloc (pagesize);
  10491. if (!data3)
  10492. return 12;
  10493. if (read (fd, data3, pagesize) != pagesize)
  10494. return 13;
  10495. for (i = 0; i < pagesize; ++i)
  10496. if (*(data + i) != *(data3 + i))
  10497. return 14;
  10498. close (fd);
  10499. return 0;
  10500. }
  10501. _ACEOF
  10502. if ac_fn_c_try_run "$LINENO"; then :
  10503. ac_cv_func_mmap_fixed_mapped=yes
  10504. else
  10505. ac_cv_func_mmap_fixed_mapped=no
  10506. fi
  10507. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10508. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10509. fi
  10510. fi
  10511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10512. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  10513. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10514. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  10515. fi
  10516. rm -f conftest.mmap conftest.txt
  10517. # Determine PIC flag.
  10518. need_asm=false
  10519. PICFLAG=
  10520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIC compiler flag" >&5
  10521. $as_echo_n "checking for PIC compiler flag... " >&6; }
  10522. if test "$GCC" = yes; then
  10523. old_CC="$CC"
  10524. if test -n "$CROSS_CC"; then
  10525. CC="$CROSS_CC"
  10526. fi
  10527. case "$host" in
  10528. *-*-cygwin* | *-*-mingw*)
  10529. # Cygwin and Mingw[-w32/64] do not need -fPIC.
  10530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5
  10531. $as_echo "not needed" >&6; }
  10532. ;;
  10533. *)
  10534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: -fPIC" >&5
  10535. $as_echo "-fPIC" >&6; }
  10536. PICFLAG=-fPIC
  10537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIC compiler option causes __PIC__ definition" >&5
  10538. $as_echo_n "checking whether -fPIC compiler option causes __PIC__ definition... " >&6; }
  10539. # Workaround: at least GCC 3.4.6 (Solaris) does not define this macro.
  10540. old_CFLAGS="$CFLAGS"
  10541. CFLAGS="$PICFLAG $CFLAGS"
  10542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10543. /* end confdefs.h. */
  10544. int
  10545. main ()
  10546. {
  10547. #ifndef __PIC__
  10548. # error
  10549. #endif
  10550. ;
  10551. return 0;
  10552. }
  10553. _ACEOF
  10554. if ac_fn_c_try_compile "$LINENO"; then :
  10555. ac_cv_pic_macro=yes
  10556. else
  10557. ac_cv_pic_macro=no
  10558. fi
  10559. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10560. CFLAGS="$old_CFLAGS"
  10561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pic_macro" >&5
  10562. $as_echo "$ac_cv_pic_macro" >&6; }
  10563. if test "$ac_cv_pic_macro" = yes; then :
  10564. else
  10565. PICFLAG="-D__PIC__=1 $PICFLAG"
  10566. fi
  10567. ;;
  10568. esac
  10569. # Output all warnings.
  10570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wextra" >&5
  10571. $as_echo_n "checking whether compiler supports -Wextra... " >&6; }
  10572. old_CFLAGS="$CFLAGS"
  10573. CFLAGS="-Wextra $CFLAGS"
  10574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10575. /* end confdefs.h. */
  10576. int
  10577. main ()
  10578. {
  10579. ;
  10580. return 0;
  10581. }
  10582. _ACEOF
  10583. if ac_fn_c_try_compile "$LINENO"; then :
  10584. ac_cv_cc_wextra=yes
  10585. else
  10586. ac_cv_cc_wextra=no
  10587. fi
  10588. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10589. CFLAGS="$old_CFLAGS"
  10590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_wextra" >&5
  10591. $as_echo "$ac_cv_cc_wextra" >&6; }
  10592. if test "$ac_cv_cc_wextra" = yes; then :
  10593. WEXTRA="-Wextra"
  10594. else
  10595. WEXTRA="-W"
  10596. fi
  10597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wpedantic" >&5
  10598. $as_echo_n "checking whether compiler supports -Wpedantic... " >&6; }
  10599. CFLAGS="-Wpedantic -Wno-long-long $CFLAGS"
  10600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10601. /* end confdefs.h. */
  10602. int
  10603. main ()
  10604. {
  10605. extern int quiet;
  10606. ;
  10607. return 0;
  10608. }
  10609. _ACEOF
  10610. if ac_fn_c_try_compile "$LINENO"; then :
  10611. ac_cv_cc_pedantic=yes
  10612. else
  10613. ac_cv_cc_pedantic=no
  10614. fi
  10615. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10616. CFLAGS="$old_CFLAGS"
  10617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_pedantic" >&5
  10618. $as_echo "$ac_cv_cc_pedantic" >&6; }
  10619. WPEDANTIC=
  10620. if test "$ac_cv_cc_pedantic" = yes; then :
  10621. WPEDANTIC="-Wpedantic -Wno-long-long"
  10622. fi
  10623. CFLAGS="-Wall $WEXTRA $WPEDANTIC $CFLAGS"
  10624. # Check whether --enable-werror was given.
  10625. if test "${enable_werror+set}" = set; then :
  10626. enableval=$enable_werror;
  10627. fi
  10628. if test "$enable_werror" = yes; then
  10629. CFLAGS="-Werror $CFLAGS"
  10630. fi
  10631. CC="$old_CC"
  10632. else
  10633. case "$host" in
  10634. *-*-hpux*)
  10635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: +Z" >&5
  10636. $as_echo "+Z" >&6; }
  10637. PICFLAG="+Z"
  10638. CFLAGS="+O2 -mt $CFLAGS"
  10639. ;;
  10640. *-*-solaris*)
  10641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: -Kpic" >&5
  10642. $as_echo "-Kpic" >&6; }
  10643. PICFLAG=-Kpic
  10644. CFLAGS="-O $CFLAGS"
  10645. need_asm=true
  10646. ;;
  10647. *-*-linux*)
  10648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: -fPIC" >&5
  10649. $as_echo "-fPIC" >&6; }
  10650. PICFLAG=-fPIC
  10651. # Any Linux compiler had better be gcc compatible.
  10652. ;;
  10653. *)
  10654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  10655. $as_echo "none" >&6; }
  10656. ;;
  10657. esac
  10658. fi
  10659. # Check whether --enable-assertions was given.
  10660. if test "${enable_assertions+set}" = set; then :
  10661. enableval=$enable_assertions;
  10662. fi
  10663. if test "$enable_assertions" != yes; then
  10664. $as_echo "#define NDEBUG 1" >>confdefs.h
  10665. fi
  10666. # Check whether --enable-atomic-intrinsics was given.
  10667. if test "${enable_atomic_intrinsics+set}" = set; then :
  10668. enableval=$enable_atomic_intrinsics;
  10669. fi
  10670. if test "$enable_atomic_intrinsics" = no; then
  10671. $as_echo "#define AO_DISABLE_GCC_ATOMICS 1" >>confdefs.h
  10672. fi
  10673. # Check whether --enable-gcov was given.
  10674. if test "${enable_gcov+set}" = set; then :
  10675. enableval=$enable_gcov;
  10676. fi
  10677. if test "$enable_gcov" = "yes"; then
  10678. CFLAGS="$CFLAGS --coverage"
  10679. # Turn off code optimization to get accurate line numbers.
  10680. CFLAGS=`echo "$CFLAGS" | sed -e 's/-O\(1\|2\|3\|4\|s\|fast\)\?//g'`
  10681. fi
  10682. # Check whether --enable-docs was given.
  10683. if test "${enable_docs+set}" = set; then :
  10684. enableval=$enable_docs;
  10685. fi
  10686. if test x$enable_docs != xno; then
  10687. ENABLE_DOCS_TRUE=
  10688. ENABLE_DOCS_FALSE='#'
  10689. else
  10690. ENABLE_DOCS_TRUE='#'
  10691. ENABLE_DOCS_FALSE=
  10692. fi
  10693. $as_echo "#define _REENTRANT 1" >>confdefs.h
  10694. # Libraries needed to support threads (if any).
  10695. have_pthreads=false
  10696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
  10697. $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
  10698. if ${ac_cv_lib_pthread_pthread_self+:} false; then :
  10699. $as_echo_n "(cached) " >&6
  10700. else
  10701. ac_check_lib_save_LIBS=$LIBS
  10702. LIBS="-lpthread $LIBS"
  10703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10704. /* end confdefs.h. */
  10705. /* Override any GCC internal prototype to avoid an error.
  10706. Use char because int might match the return type of a GCC
  10707. builtin and then its argument prototype would still apply. */
  10708. #ifdef __cplusplus
  10709. extern "C"
  10710. #endif
  10711. char pthread_self ();
  10712. int
  10713. main ()
  10714. {
  10715. return pthread_self ();
  10716. ;
  10717. return 0;
  10718. }
  10719. _ACEOF
  10720. if ac_fn_c_try_link "$LINENO"; then :
  10721. ac_cv_lib_pthread_pthread_self=yes
  10722. else
  10723. ac_cv_lib_pthread_pthread_self=no
  10724. fi
  10725. rm -f core conftest.err conftest.$ac_objext \
  10726. conftest$ac_exeext conftest.$ac_ext
  10727. LIBS=$ac_check_lib_save_LIBS
  10728. fi
  10729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
  10730. $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
  10731. if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
  10732. have_pthreads=true
  10733. fi
  10734. if test x$have_pthreads = xtrue; then
  10735. THREADDLLIBS=-lpthread
  10736. case "$host" in
  10737. *-*-netbsd*)
  10738. # Indicates the use of pthreads.
  10739. $as_echo "#define _PTHREADS 1" >>confdefs.h
  10740. ;;
  10741. *-*-openbsd* | *-*-kfreebsd*-gnu | *-*-dgux*)
  10742. THREADDLLIBS=-pthread
  10743. ;;
  10744. *-*-cygwin* | *-*-darwin*)
  10745. # Cygwin does not have a real libpthread, so Libtool cannot link
  10746. # against it.
  10747. THREADDLLIBS=
  10748. ;;
  10749. *-*-mingw*)
  10750. # Use Win32 threads for tests anyway.
  10751. THREADDLLIBS=
  10752. # Skip test_atomic_pthreads.
  10753. have_pthreads=false
  10754. ;;
  10755. esac
  10756. else
  10757. $as_echo "#define AO_NO_PTHREADS 1" >>confdefs.h
  10758. # Assume VxWorks or Win32.
  10759. THREADDLLIBS=
  10760. fi
  10761. if test x$enable_shared = xyes; then
  10762. ENABLE_SHARED_TRUE=
  10763. ENABLE_SHARED_FALSE='#'
  10764. else
  10765. ENABLE_SHARED_TRUE='#'
  10766. ENABLE_SHARED_FALSE=
  10767. fi
  10768. if test x$have_pthreads = xtrue; then
  10769. HAVE_PTHREAD_H_TRUE=
  10770. HAVE_PTHREAD_H_FALSE='#'
  10771. else
  10772. HAVE_PTHREAD_H_TRUE='#'
  10773. HAVE_PTHREAD_H_FALSE=
  10774. fi
  10775. if test x$need_asm = xtrue; then
  10776. NEED_ASM_TRUE=
  10777. NEED_ASM_FALSE='#'
  10778. else
  10779. NEED_ASM_TRUE='#'
  10780. NEED_ASM_FALSE=
  10781. fi
  10782. ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile tests/Makefile pkgconfig/atomic_ops.pc pkgconfig/atomic_ops-uninstalled.pc"
  10783. ac_config_commands="$ac_config_commands default"
  10784. cat >confcache <<\_ACEOF
  10785. # This file is a shell script that caches the results of configure
  10786. # tests run on this system so they can be shared between configure
  10787. # scripts and configure runs, see configure's option --config-cache.
  10788. # It is not useful on other systems. If it contains results you don't
  10789. # want to keep, you may remove or edit it.
  10790. #
  10791. # config.status only pays attention to the cache file if you give it
  10792. # the --recheck option to rerun configure.
  10793. #
  10794. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10795. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10796. # following values.
  10797. _ACEOF
  10798. # The following way of writing the cache mishandles newlines in values,
  10799. # but we know of no workaround that is simple, portable, and efficient.
  10800. # So, we kill variables containing newlines.
  10801. # Ultrix sh set writes to stderr and can't be redirected directly,
  10802. # and sets the high bit in the cache file unless we assign to the vars.
  10803. (
  10804. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10805. eval ac_val=\$$ac_var
  10806. case $ac_val in #(
  10807. *${as_nl}*)
  10808. case $ac_var in #(
  10809. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  10810. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  10811. esac
  10812. case $ac_var in #(
  10813. _ | IFS | as_nl) ;; #(
  10814. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  10815. *) { eval $ac_var=; unset $ac_var;} ;;
  10816. esac ;;
  10817. esac
  10818. done
  10819. (set) 2>&1 |
  10820. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10821. *${as_nl}ac_space=\ *)
  10822. # `set' does not quote correctly, so add quotes: double-quote
  10823. # substitution turns \\\\ into \\, and sed turns \\ into \.
  10824. sed -n \
  10825. "s/'/'\\\\''/g;
  10826. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10827. ;; #(
  10828. *)
  10829. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10830. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10831. ;;
  10832. esac |
  10833. sort
  10834. ) |
  10835. sed '
  10836. /^ac_cv_env_/b end
  10837. t clear
  10838. :clear
  10839. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10840. t end
  10841. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10842. :end' >>confcache
  10843. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10844. if test -w "$cache_file"; then
  10845. if test "x$cache_file" != "x/dev/null"; then
  10846. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  10847. $as_echo "$as_me: updating cache $cache_file" >&6;}
  10848. if test ! -f "$cache_file" || test -h "$cache_file"; then
  10849. cat confcache >"$cache_file"
  10850. else
  10851. case $cache_file in #(
  10852. */* | ?:*)
  10853. mv -f confcache "$cache_file"$$ &&
  10854. mv -f "$cache_file"$$ "$cache_file" ;; #(
  10855. *)
  10856. mv -f confcache "$cache_file" ;;
  10857. esac
  10858. fi
  10859. fi
  10860. else
  10861. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  10862. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10863. fi
  10864. fi
  10865. rm -f confcache
  10866. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10867. # Let make expand exec_prefix.
  10868. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10869. DEFS=-DHAVE_CONFIG_H
  10870. ac_libobjs=
  10871. ac_ltlibobjs=
  10872. U=
  10873. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10874. # 1. Remove the extension, and $U if already installed.
  10875. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10876. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  10877. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10878. # will be set to the directory where LIBOBJS objects are built.
  10879. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10880. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  10881. done
  10882. LIBOBJS=$ac_libobjs
  10883. LTLIBOBJS=$ac_ltlibobjs
  10884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  10885. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  10886. if test -n "$am_sleep_pid"; then
  10887. # Hide warnings about reused PIDs.
  10888. wait $am_sleep_pid 2>/dev/null
  10889. fi
  10890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  10891. $as_echo "done" >&6; }
  10892. if test -n "$EXEEXT"; then
  10893. am__EXEEXT_TRUE=
  10894. am__EXEEXT_FALSE='#'
  10895. else
  10896. am__EXEEXT_TRUE='#'
  10897. am__EXEEXT_FALSE=
  10898. fi
  10899. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  10900. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  10901. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10902. fi
  10903. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10904. as_fn_error $? "conditional \"AMDEP\" was never defined.
  10905. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10906. fi
  10907. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10908. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  10909. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10910. fi
  10911. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  10912. as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
  10913. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10914. fi
  10915. if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
  10916. as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
  10917. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10918. fi
  10919. if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
  10920. as_fn_error $? "conditional \"ENABLE_SHARED\" was never defined.
  10921. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10922. fi
  10923. if test -z "${HAVE_PTHREAD_H_TRUE}" && test -z "${HAVE_PTHREAD_H_FALSE}"; then
  10924. as_fn_error $? "conditional \"HAVE_PTHREAD_H\" was never defined.
  10925. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10926. fi
  10927. if test -z "${NEED_ASM_TRUE}" && test -z "${NEED_ASM_FALSE}"; then
  10928. as_fn_error $? "conditional \"NEED_ASM\" was never defined.
  10929. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10930. fi
  10931. : "${CONFIG_STATUS=./config.status}"
  10932. ac_write_fail=0
  10933. ac_clean_files_save=$ac_clean_files
  10934. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10935. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  10936. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10937. as_write_fail=0
  10938. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  10939. #! $SHELL
  10940. # Generated by $as_me.
  10941. # Run this file to recreate the current configuration.
  10942. # Compiler output produced by configure, useful for debugging
  10943. # configure, is in config.log if it exists.
  10944. debug=false
  10945. ac_cs_recheck=false
  10946. ac_cs_silent=false
  10947. SHELL=\${CONFIG_SHELL-$SHELL}
  10948. export SHELL
  10949. _ASEOF
  10950. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  10951. ## -------------------- ##
  10952. ## M4sh Initialization. ##
  10953. ## -------------------- ##
  10954. # Be more Bourne compatible
  10955. DUALCASE=1; export DUALCASE # for MKS sh
  10956. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  10957. emulate sh
  10958. NULLCMD=:
  10959. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  10960. # is contrary to our usage. Disable this feature.
  10961. alias -g '${1+"$@"}'='"$@"'
  10962. setopt NO_GLOB_SUBST
  10963. else
  10964. case `(set -o) 2>/dev/null` in #(
  10965. *posix*) :
  10966. set -o posix ;; #(
  10967. *) :
  10968. ;;
  10969. esac
  10970. fi
  10971. as_nl='
  10972. '
  10973. export as_nl
  10974. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  10975. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10976. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10977. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10978. # Prefer a ksh shell builtin over an external printf program on Solaris,
  10979. # but without wasting forks for bash or zsh.
  10980. if test -z "$BASH_VERSION$ZSH_VERSION" \
  10981. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10982. as_echo='print -r --'
  10983. as_echo_n='print -rn --'
  10984. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10985. as_echo='printf %s\n'
  10986. as_echo_n='printf %s'
  10987. else
  10988. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10989. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10990. as_echo_n='/usr/ucb/echo -n'
  10991. else
  10992. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10993. as_echo_n_body='eval
  10994. arg=$1;
  10995. case $arg in #(
  10996. *"$as_nl"*)
  10997. expr "X$arg" : "X\\(.*\\)$as_nl";
  10998. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10999. esac;
  11000. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11001. '
  11002. export as_echo_n_body
  11003. as_echo_n='sh -c $as_echo_n_body as_echo'
  11004. fi
  11005. export as_echo_body
  11006. as_echo='sh -c $as_echo_body as_echo'
  11007. fi
  11008. # The user is always right.
  11009. if test "${PATH_SEPARATOR+set}" != set; then
  11010. PATH_SEPARATOR=:
  11011. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11012. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11013. PATH_SEPARATOR=';'
  11014. }
  11015. fi
  11016. # IFS
  11017. # We need space, tab and new line, in precisely that order. Quoting is
  11018. # there to prevent editors from complaining about space-tab.
  11019. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11020. # splitting by setting IFS to empty value.)
  11021. IFS=" "" $as_nl"
  11022. # Find who we are. Look in the path if we contain no directory separator.
  11023. as_myself=
  11024. case $0 in #((
  11025. *[\\/]* ) as_myself=$0 ;;
  11026. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11027. for as_dir in $PATH
  11028. do
  11029. IFS=$as_save_IFS
  11030. test -z "$as_dir" && as_dir=.
  11031. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11032. done
  11033. IFS=$as_save_IFS
  11034. ;;
  11035. esac
  11036. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11037. # in which case we are not to be found in the path.
  11038. if test "x$as_myself" = x; then
  11039. as_myself=$0
  11040. fi
  11041. if test ! -f "$as_myself"; then
  11042. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11043. exit 1
  11044. fi
  11045. # Unset variables that we do not need and which cause bugs (e.g. in
  11046. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  11047. # suppresses any "Segmentation fault" message there. '((' could
  11048. # trigger a bug in pdksh 5.2.14.
  11049. for as_var in BASH_ENV ENV MAIL MAILPATH
  11050. do eval test x\${$as_var+set} = xset \
  11051. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11052. done
  11053. PS1='$ '
  11054. PS2='> '
  11055. PS4='+ '
  11056. # NLS nuisances.
  11057. LC_ALL=C
  11058. export LC_ALL
  11059. LANGUAGE=C
  11060. export LANGUAGE
  11061. # CDPATH.
  11062. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11063. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  11064. # ----------------------------------------
  11065. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11066. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11067. # script with STATUS, using 1 if that was 0.
  11068. as_fn_error ()
  11069. {
  11070. as_status=$1; test $as_status -eq 0 && as_status=1
  11071. if test "$4"; then
  11072. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11073. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  11074. fi
  11075. $as_echo "$as_me: error: $2" >&2
  11076. as_fn_exit $as_status
  11077. } # as_fn_error
  11078. # as_fn_set_status STATUS
  11079. # -----------------------
  11080. # Set $? to STATUS, without forking.
  11081. as_fn_set_status ()
  11082. {
  11083. return $1
  11084. } # as_fn_set_status
  11085. # as_fn_exit STATUS
  11086. # -----------------
  11087. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11088. as_fn_exit ()
  11089. {
  11090. set +e
  11091. as_fn_set_status $1
  11092. exit $1
  11093. } # as_fn_exit
  11094. # as_fn_unset VAR
  11095. # ---------------
  11096. # Portably unset VAR.
  11097. as_fn_unset ()
  11098. {
  11099. { eval $1=; unset $1;}
  11100. }
  11101. as_unset=as_fn_unset
  11102. # as_fn_append VAR VALUE
  11103. # ----------------------
  11104. # Append the text in VALUE to the end of the definition contained in VAR. Take
  11105. # advantage of any shell optimizations that allow amortized linear growth over
  11106. # repeated appends, instead of the typical quadratic growth present in naive
  11107. # implementations.
  11108. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11109. eval 'as_fn_append ()
  11110. {
  11111. eval $1+=\$2
  11112. }'
  11113. else
  11114. as_fn_append ()
  11115. {
  11116. eval $1=\$$1\$2
  11117. }
  11118. fi # as_fn_append
  11119. # as_fn_arith ARG...
  11120. # ------------------
  11121. # Perform arithmetic evaluation on the ARGs, and store the result in the
  11122. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  11123. # must be portable across $(()) and expr.
  11124. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  11125. eval 'as_fn_arith ()
  11126. {
  11127. as_val=$(( $* ))
  11128. }'
  11129. else
  11130. as_fn_arith ()
  11131. {
  11132. as_val=`expr "$@" || test $? -eq 1`
  11133. }
  11134. fi # as_fn_arith
  11135. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11136. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11137. as_expr=expr
  11138. else
  11139. as_expr=false
  11140. fi
  11141. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11142. as_basename=basename
  11143. else
  11144. as_basename=false
  11145. fi
  11146. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11147. as_dirname=dirname
  11148. else
  11149. as_dirname=false
  11150. fi
  11151. as_me=`$as_basename -- "$0" ||
  11152. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11153. X"$0" : 'X\(//\)$' \| \
  11154. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11155. $as_echo X/"$0" |
  11156. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11157. s//\1/
  11158. q
  11159. }
  11160. /^X\/\(\/\/\)$/{
  11161. s//\1/
  11162. q
  11163. }
  11164. /^X\/\(\/\).*/{
  11165. s//\1/
  11166. q
  11167. }
  11168. s/.*/./; q'`
  11169. # Avoid depending upon Character Ranges.
  11170. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11171. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11172. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11173. as_cr_digits='0123456789'
  11174. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11175. ECHO_C= ECHO_N= ECHO_T=
  11176. case `echo -n x` in #(((((
  11177. -n*)
  11178. case `echo 'xy\c'` in
  11179. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11180. xy) ECHO_C='\c';;
  11181. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11182. ECHO_T=' ';;
  11183. esac;;
  11184. *)
  11185. ECHO_N='-n';;
  11186. esac
  11187. rm -f conf$$ conf$$.exe conf$$.file
  11188. if test -d conf$$.dir; then
  11189. rm -f conf$$.dir/conf$$.file
  11190. else
  11191. rm -f conf$$.dir
  11192. mkdir conf$$.dir 2>/dev/null
  11193. fi
  11194. if (echo >conf$$.file) 2>/dev/null; then
  11195. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11196. as_ln_s='ln -s'
  11197. # ... but there are two gotchas:
  11198. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11199. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11200. # In both cases, we have to default to `cp -pR'.
  11201. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11202. as_ln_s='cp -pR'
  11203. elif ln conf$$.file conf$$ 2>/dev/null; then
  11204. as_ln_s=ln
  11205. else
  11206. as_ln_s='cp -pR'
  11207. fi
  11208. else
  11209. as_ln_s='cp -pR'
  11210. fi
  11211. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11212. rmdir conf$$.dir 2>/dev/null
  11213. # as_fn_mkdir_p
  11214. # -------------
  11215. # Create "$as_dir" as a directory, including parents if necessary.
  11216. as_fn_mkdir_p ()
  11217. {
  11218. case $as_dir in #(
  11219. -*) as_dir=./$as_dir;;
  11220. esac
  11221. test -d "$as_dir" || eval $as_mkdir_p || {
  11222. as_dirs=
  11223. while :; do
  11224. case $as_dir in #(
  11225. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11226. *) as_qdir=$as_dir;;
  11227. esac
  11228. as_dirs="'$as_qdir' $as_dirs"
  11229. as_dir=`$as_dirname -- "$as_dir" ||
  11230. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11231. X"$as_dir" : 'X\(//\)[^/]' \| \
  11232. X"$as_dir" : 'X\(//\)$' \| \
  11233. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11234. $as_echo X"$as_dir" |
  11235. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11236. s//\1/
  11237. q
  11238. }
  11239. /^X\(\/\/\)[^/].*/{
  11240. s//\1/
  11241. q
  11242. }
  11243. /^X\(\/\/\)$/{
  11244. s//\1/
  11245. q
  11246. }
  11247. /^X\(\/\).*/{
  11248. s//\1/
  11249. q
  11250. }
  11251. s/.*/./; q'`
  11252. test -d "$as_dir" && break
  11253. done
  11254. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11255. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  11256. } # as_fn_mkdir_p
  11257. if mkdir -p . 2>/dev/null; then
  11258. as_mkdir_p='mkdir -p "$as_dir"'
  11259. else
  11260. test -d ./-p && rmdir ./-p
  11261. as_mkdir_p=false
  11262. fi
  11263. # as_fn_executable_p FILE
  11264. # -----------------------
  11265. # Test if FILE is an executable regular file.
  11266. as_fn_executable_p ()
  11267. {
  11268. test -f "$1" && test -x "$1"
  11269. } # as_fn_executable_p
  11270. as_test_x='test -x'
  11271. as_executable_p=as_fn_executable_p
  11272. # Sed expression to map a string onto a valid CPP name.
  11273. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11274. # Sed expression to map a string onto a valid variable name.
  11275. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11276. exec 6>&1
  11277. ## ----------------------------------- ##
  11278. ## Main body of $CONFIG_STATUS script. ##
  11279. ## ----------------------------------- ##
  11280. _ASEOF
  11281. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11282. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11283. # Save the log message, to keep $0 and so on meaningful, and to
  11284. # report actual input values of CONFIG_FILES etc. instead of their
  11285. # values after options handling.
  11286. ac_log="
  11287. This file was extended by libatomic_ops $as_me 7.6.10, which was
  11288. generated by GNU Autoconf 2.69. Invocation command line was
  11289. CONFIG_FILES = $CONFIG_FILES
  11290. CONFIG_HEADERS = $CONFIG_HEADERS
  11291. CONFIG_LINKS = $CONFIG_LINKS
  11292. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11293. $ $0 $@
  11294. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11295. "
  11296. _ACEOF
  11297. case $ac_config_files in *"
  11298. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11299. esac
  11300. case $ac_config_headers in *"
  11301. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  11302. esac
  11303. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11304. # Files that config.status was made for.
  11305. config_files="$ac_config_files"
  11306. config_headers="$ac_config_headers"
  11307. config_commands="$ac_config_commands"
  11308. _ACEOF
  11309. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11310. ac_cs_usage="\
  11311. \`$as_me' instantiates files and other configuration actions
  11312. from templates according to the current configuration. Unless the files
  11313. and actions are specified as TAGs, all are instantiated by default.
  11314. Usage: $0 [OPTION]... [TAG]...
  11315. -h, --help print this help, then exit
  11316. -V, --version print version number and configuration settings, then exit
  11317. --config print configuration, then exit
  11318. -q, --quiet, --silent
  11319. do not print progress messages
  11320. -d, --debug don't remove temporary files
  11321. --recheck update $as_me by reconfiguring in the same conditions
  11322. --file=FILE[:TEMPLATE]
  11323. instantiate the configuration file FILE
  11324. --header=FILE[:TEMPLATE]
  11325. instantiate the configuration header FILE
  11326. Configuration files:
  11327. $config_files
  11328. Configuration headers:
  11329. $config_headers
  11330. Configuration commands:
  11331. $config_commands
  11332. Report bugs to <https://github.com/ivmai/libatomic_ops/issues>."
  11333. _ACEOF
  11334. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11335. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  11336. ac_cs_version="\\
  11337. libatomic_ops config.status 7.6.10
  11338. configured by $0, generated by GNU Autoconf 2.69,
  11339. with options \\"\$ac_cs_config\\"
  11340. Copyright (C) 2012 Free Software Foundation, Inc.
  11341. This config.status script is free software; the Free Software Foundation
  11342. gives unlimited permission to copy, distribute and modify it."
  11343. ac_pwd='$ac_pwd'
  11344. srcdir='$srcdir'
  11345. INSTALL='$INSTALL'
  11346. MKDIR_P='$MKDIR_P'
  11347. AWK='$AWK'
  11348. test -n "\$AWK" || AWK=awk
  11349. _ACEOF
  11350. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11351. # The default lists apply if the user does not specify any file.
  11352. ac_need_defaults=:
  11353. while test $# != 0
  11354. do
  11355. case $1 in
  11356. --*=?*)
  11357. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11358. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11359. ac_shift=:
  11360. ;;
  11361. --*=)
  11362. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11363. ac_optarg=
  11364. ac_shift=:
  11365. ;;
  11366. *)
  11367. ac_option=$1
  11368. ac_optarg=$2
  11369. ac_shift=shift
  11370. ;;
  11371. esac
  11372. case $ac_option in
  11373. # Handling of the options.
  11374. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11375. ac_cs_recheck=: ;;
  11376. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11377. $as_echo "$ac_cs_version"; exit ;;
  11378. --config | --confi | --conf | --con | --co | --c )
  11379. $as_echo "$ac_cs_config"; exit ;;
  11380. --debug | --debu | --deb | --de | --d | -d )
  11381. debug=: ;;
  11382. --file | --fil | --fi | --f )
  11383. $ac_shift
  11384. case $ac_optarg in
  11385. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11386. '') as_fn_error $? "missing file argument" ;;
  11387. esac
  11388. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11389. ac_need_defaults=false;;
  11390. --header | --heade | --head | --hea )
  11391. $ac_shift
  11392. case $ac_optarg in
  11393. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11394. esac
  11395. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11396. ac_need_defaults=false;;
  11397. --he | --h)
  11398. # Conflict between --help and --header
  11399. as_fn_error $? "ambiguous option: \`$1'
  11400. Try \`$0 --help' for more information.";;
  11401. --help | --hel | -h )
  11402. $as_echo "$ac_cs_usage"; exit ;;
  11403. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11404. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11405. ac_cs_silent=: ;;
  11406. # This is an error.
  11407. -*) as_fn_error $? "unrecognized option: \`$1'
  11408. Try \`$0 --help' for more information." ;;
  11409. *) as_fn_append ac_config_targets " $1"
  11410. ac_need_defaults=false ;;
  11411. esac
  11412. shift
  11413. done
  11414. ac_configure_extra_args=
  11415. if $ac_cs_silent; then
  11416. exec 6>/dev/null
  11417. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11418. fi
  11419. _ACEOF
  11420. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11421. if \$ac_cs_recheck; then
  11422. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11423. shift
  11424. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11425. CONFIG_SHELL='$SHELL'
  11426. export CONFIG_SHELL
  11427. exec "\$@"
  11428. fi
  11429. _ACEOF
  11430. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11431. exec 5>>config.log
  11432. {
  11433. echo
  11434. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11435. ## Running $as_me. ##
  11436. _ASBOX
  11437. $as_echo "$ac_log"
  11438. } >&5
  11439. _ACEOF
  11440. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11441. #
  11442. # INIT-COMMANDS
  11443. #
  11444. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  11445. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11446. # if CDPATH is set.
  11447. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11448. sed_quote_subst='$sed_quote_subst'
  11449. double_quote_subst='$double_quote_subst'
  11450. delay_variable_subst='$delay_variable_subst'
  11451. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  11452. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  11453. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  11454. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  11455. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  11456. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  11457. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  11458. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  11459. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  11460. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  11461. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  11462. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  11463. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  11464. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  11465. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  11466. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  11467. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  11468. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  11469. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  11470. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  11471. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  11472. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  11473. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  11474. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  11475. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  11476. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  11477. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  11478. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  11479. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  11480. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  11481. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  11482. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  11483. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  11484. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  11485. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  11486. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  11487. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  11488. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  11489. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  11490. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  11491. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  11492. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  11493. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  11494. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  11495. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  11496. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  11497. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11498. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11499. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  11500. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  11501. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  11502. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  11503. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  11504. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  11505. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  11506. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  11507. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  11508. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  11509. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11510. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  11511. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  11512. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  11513. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  11514. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  11515. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  11516. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  11517. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  11518. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  11519. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  11520. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  11521. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  11522. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  11523. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  11524. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  11525. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  11526. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  11527. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  11528. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  11529. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  11530. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11531. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  11532. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  11533. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  11534. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  11535. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  11536. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  11537. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11538. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  11539. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11540. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  11541. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11542. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  11543. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11544. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11545. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  11546. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  11547. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  11548. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  11549. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  11550. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11551. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  11552. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  11553. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  11554. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  11555. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  11556. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  11557. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  11558. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  11559. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  11560. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  11561. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  11562. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11563. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  11564. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  11565. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  11566. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11567. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  11568. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  11569. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  11570. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  11571. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  11572. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11573. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11574. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  11575. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  11576. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  11577. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  11578. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  11579. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  11580. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  11581. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  11582. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  11583. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  11584. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  11585. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  11586. LTCC='$LTCC'
  11587. LTCFLAGS='$LTCFLAGS'
  11588. compiler='$compiler_DEFAULT'
  11589. # A function that is used when there is no print builtin or printf.
  11590. func_fallback_echo ()
  11591. {
  11592. eval 'cat <<_LTECHO_EOF
  11593. \$1
  11594. _LTECHO_EOF'
  11595. }
  11596. # Quote evaled strings.
  11597. for var in SHELL \
  11598. ECHO \
  11599. PATH_SEPARATOR \
  11600. SED \
  11601. GREP \
  11602. EGREP \
  11603. FGREP \
  11604. LD \
  11605. NM \
  11606. LN_S \
  11607. lt_SP2NL \
  11608. lt_NL2SP \
  11609. reload_flag \
  11610. OBJDUMP \
  11611. deplibs_check_method \
  11612. file_magic_cmd \
  11613. file_magic_glob \
  11614. want_nocaseglob \
  11615. DLLTOOL \
  11616. sharedlib_from_linklib_cmd \
  11617. AR \
  11618. AR_FLAGS \
  11619. archiver_list_spec \
  11620. STRIP \
  11621. RANLIB \
  11622. CC \
  11623. CFLAGS \
  11624. compiler \
  11625. lt_cv_sys_global_symbol_pipe \
  11626. lt_cv_sys_global_symbol_to_cdecl \
  11627. lt_cv_sys_global_symbol_to_import \
  11628. lt_cv_sys_global_symbol_to_c_name_address \
  11629. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11630. lt_cv_nm_interface \
  11631. nm_file_list_spec \
  11632. lt_cv_truncate_bin \
  11633. lt_prog_compiler_no_builtin_flag \
  11634. lt_prog_compiler_pic \
  11635. lt_prog_compiler_wl \
  11636. lt_prog_compiler_static \
  11637. lt_cv_prog_compiler_c_o \
  11638. need_locks \
  11639. MANIFEST_TOOL \
  11640. DSYMUTIL \
  11641. NMEDIT \
  11642. LIPO \
  11643. OTOOL \
  11644. OTOOL64 \
  11645. shrext_cmds \
  11646. export_dynamic_flag_spec \
  11647. whole_archive_flag_spec \
  11648. compiler_needs_object \
  11649. with_gnu_ld \
  11650. allow_undefined_flag \
  11651. no_undefined_flag \
  11652. hardcode_libdir_flag_spec \
  11653. hardcode_libdir_separator \
  11654. exclude_expsyms \
  11655. include_expsyms \
  11656. file_list_spec \
  11657. variables_saved_for_relink \
  11658. libname_spec \
  11659. library_names_spec \
  11660. soname_spec \
  11661. install_override_mode \
  11662. finish_eval \
  11663. old_striplib \
  11664. striplib; do
  11665. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11666. *[\\\\\\\`\\"\\\$]*)
  11667. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  11668. ;;
  11669. *)
  11670. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11671. ;;
  11672. esac
  11673. done
  11674. # Double-quote double-evaled strings.
  11675. for var in reload_cmds \
  11676. old_postinstall_cmds \
  11677. old_postuninstall_cmds \
  11678. old_archive_cmds \
  11679. extract_expsyms_cmds \
  11680. old_archive_from_new_cmds \
  11681. old_archive_from_expsyms_cmds \
  11682. archive_cmds \
  11683. archive_expsym_cmds \
  11684. module_cmds \
  11685. module_expsym_cmds \
  11686. export_symbols_cmds \
  11687. prelink_cmds \
  11688. postlink_cmds \
  11689. postinstall_cmds \
  11690. postuninstall_cmds \
  11691. finish_cmds \
  11692. sys_lib_search_path_spec \
  11693. configure_time_dlsearch_path \
  11694. configure_time_lt_sys_library_path; do
  11695. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11696. *[\\\\\\\`\\"\\\$]*)
  11697. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  11698. ;;
  11699. *)
  11700. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11701. ;;
  11702. esac
  11703. done
  11704. ac_aux_dir='$ac_aux_dir'
  11705. # See if we are running on zsh, and set the options that allow our
  11706. # commands through without removal of \ escapes INIT.
  11707. if test -n "\${ZSH_VERSION+set}"; then
  11708. setopt NO_GLOB_SUBST
  11709. fi
  11710. PACKAGE='$PACKAGE'
  11711. VERSION='$VERSION'
  11712. RM='$RM'
  11713. ofile='$ofile'
  11714. PICFLAG="${PICFLAG}"
  11715. CC="${CC}"
  11716. DEFS="${DEFS}"
  11717. _ACEOF
  11718. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11719. # Handling of arguments.
  11720. for ac_config_target in $ac_config_targets
  11721. do
  11722. case $ac_config_target in
  11723. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  11724. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  11725. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  11726. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11727. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  11728. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11729. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  11730. "pkgconfig/atomic_ops.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/atomic_ops.pc" ;;
  11731. "pkgconfig/atomic_ops-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/atomic_ops-uninstalled.pc" ;;
  11732. "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  11733. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11734. esac
  11735. done
  11736. # If the user did not use the arguments to specify the items to instantiate,
  11737. # then the envvar interface is used. Set only those that are not.
  11738. # We use the long form for the default assignment because of an extremely
  11739. # bizarre bug on SunOS 4.1.3.
  11740. if $ac_need_defaults; then
  11741. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11742. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11743. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11744. fi
  11745. # Have a temporary directory for convenience. Make it in the build tree
  11746. # simply because there is no reason against having it here, and in addition,
  11747. # creating and moving files from /tmp can sometimes cause problems.
  11748. # Hook for its removal unless debugging.
  11749. # Note that there is a small window in which the directory will not be cleaned:
  11750. # after its creation but before its name has been assigned to `$tmp'.
  11751. $debug ||
  11752. {
  11753. tmp= ac_tmp=
  11754. trap 'exit_status=$?
  11755. : "${ac_tmp:=$tmp}"
  11756. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  11757. ' 0
  11758. trap 'as_fn_exit 1' 1 2 13 15
  11759. }
  11760. # Create a (secure) tmp directory for tmp files.
  11761. {
  11762. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11763. test -d "$tmp"
  11764. } ||
  11765. {
  11766. tmp=./conf$$-$RANDOM
  11767. (umask 077 && mkdir "$tmp")
  11768. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  11769. ac_tmp=$tmp
  11770. # Set up the scripts for CONFIG_FILES section.
  11771. # No need to generate them if there are no CONFIG_FILES.
  11772. # This happens for instance with `./config.status config.h'.
  11773. if test -n "$CONFIG_FILES"; then
  11774. ac_cr=`echo X | tr X '\015'`
  11775. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  11776. # But we know of no other shell where ac_cr would be empty at this
  11777. # point, so we can use a bashism as a fallback.
  11778. if test "x$ac_cr" = x; then
  11779. eval ac_cr=\$\'\\r\'
  11780. fi
  11781. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  11782. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  11783. ac_cs_awk_cr='\\r'
  11784. else
  11785. ac_cs_awk_cr=$ac_cr
  11786. fi
  11787. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  11788. _ACEOF
  11789. {
  11790. echo "cat >conf$$subs.awk <<_ACEOF" &&
  11791. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  11792. echo "_ACEOF"
  11793. } >conf$$subs.sh ||
  11794. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11795. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  11796. ac_delim='%!_!# '
  11797. for ac_last_try in false false false false false :; do
  11798. . ./conf$$subs.sh ||
  11799. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11800. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  11801. if test $ac_delim_n = $ac_delim_num; then
  11802. break
  11803. elif $ac_last_try; then
  11804. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11805. else
  11806. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11807. fi
  11808. done
  11809. rm -f conf$$subs.sh
  11810. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11811. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  11812. _ACEOF
  11813. sed -n '
  11814. h
  11815. s/^/S["/; s/!.*/"]=/
  11816. p
  11817. g
  11818. s/^[^!]*!//
  11819. :repl
  11820. t repl
  11821. s/'"$ac_delim"'$//
  11822. t delim
  11823. :nl
  11824. h
  11825. s/\(.\{148\}\)..*/\1/
  11826. t more1
  11827. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  11828. p
  11829. n
  11830. b repl
  11831. :more1
  11832. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11833. p
  11834. g
  11835. s/.\{148\}//
  11836. t nl
  11837. :delim
  11838. h
  11839. s/\(.\{148\}\)..*/\1/
  11840. t more2
  11841. s/["\\]/\\&/g; s/^/"/; s/$/"/
  11842. p
  11843. b
  11844. :more2
  11845. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11846. p
  11847. g
  11848. s/.\{148\}//
  11849. t delim
  11850. ' <conf$$subs.awk | sed '
  11851. /^[^""]/{
  11852. N
  11853. s/\n//
  11854. }
  11855. ' >>$CONFIG_STATUS || ac_write_fail=1
  11856. rm -f conf$$subs.awk
  11857. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11858. _ACAWK
  11859. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  11860. for (key in S) S_is_set[key] = 1
  11861. FS = ""
  11862. }
  11863. {
  11864. line = $ 0
  11865. nfields = split(line, field, "@")
  11866. substed = 0
  11867. len = length(field[1])
  11868. for (i = 2; i < nfields; i++) {
  11869. key = field[i]
  11870. keylen = length(key)
  11871. if (S_is_set[key]) {
  11872. value = S[key]
  11873. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  11874. len += length(value) + length(field[++i])
  11875. substed = 1
  11876. } else
  11877. len += 1 + keylen
  11878. }
  11879. print line
  11880. }
  11881. _ACAWK
  11882. _ACEOF
  11883. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11884. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  11885. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  11886. else
  11887. cat
  11888. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  11889. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  11890. _ACEOF
  11891. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  11892. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  11893. # trailing colons and then remove the whole line if VPATH becomes empty
  11894. # (actually we leave an empty line to preserve line numbers).
  11895. if test "x$srcdir" = x.; then
  11896. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  11897. h
  11898. s///
  11899. s/^/:/
  11900. s/[ ]*$/:/
  11901. s/:\$(srcdir):/:/g
  11902. s/:\${srcdir}:/:/g
  11903. s/:@srcdir@:/:/g
  11904. s/^:*//
  11905. s/:*$//
  11906. x
  11907. s/\(=[ ]*\).*/\1/
  11908. G
  11909. s/\n//
  11910. s/^[^=]*=[ ]*$//
  11911. }'
  11912. fi
  11913. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11914. fi # test -n "$CONFIG_FILES"
  11915. # Set up the scripts for CONFIG_HEADERS section.
  11916. # No need to generate them if there are no CONFIG_HEADERS.
  11917. # This happens for instance with `./config.status Makefile'.
  11918. if test -n "$CONFIG_HEADERS"; then
  11919. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  11920. BEGIN {
  11921. _ACEOF
  11922. # Transform confdefs.h into an awk script `defines.awk', embedded as
  11923. # here-document in config.status, that substitutes the proper values into
  11924. # config.h.in to produce config.h.
  11925. # Create a delimiter string that does not exist in confdefs.h, to ease
  11926. # handling of long lines.
  11927. ac_delim='%!_!# '
  11928. for ac_last_try in false false :; do
  11929. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  11930. if test -z "$ac_tt"; then
  11931. break
  11932. elif $ac_last_try; then
  11933. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  11934. else
  11935. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11936. fi
  11937. done
  11938. # For the awk script, D is an array of macro values keyed by name,
  11939. # likewise P contains macro parameters if any. Preserve backslash
  11940. # newline sequences.
  11941. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  11942. sed -n '
  11943. s/.\{148\}/&'"$ac_delim"'/g
  11944. t rset
  11945. :rset
  11946. s/^[ ]*#[ ]*define[ ][ ]*/ /
  11947. t def
  11948. d
  11949. :def
  11950. s/\\$//
  11951. t bsnl
  11952. s/["\\]/\\&/g
  11953. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11954. D["\1"]=" \3"/p
  11955. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  11956. d
  11957. :bsnl
  11958. s/["\\]/\\&/g
  11959. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11960. D["\1"]=" \3\\\\\\n"\\/p
  11961. t cont
  11962. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  11963. t cont
  11964. d
  11965. :cont
  11966. n
  11967. s/.\{148\}/&'"$ac_delim"'/g
  11968. t clear
  11969. :clear
  11970. s/\\$//
  11971. t bsnlc
  11972. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  11973. d
  11974. :bsnlc
  11975. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  11976. b cont
  11977. ' <confdefs.h | sed '
  11978. s/'"$ac_delim"'/"\\\
  11979. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  11980. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11981. for (key in D) D_is_set[key] = 1
  11982. FS = ""
  11983. }
  11984. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  11985. line = \$ 0
  11986. split(line, arg, " ")
  11987. if (arg[1] == "#") {
  11988. defundef = arg[2]
  11989. mac1 = arg[3]
  11990. } else {
  11991. defundef = substr(arg[1], 2)
  11992. mac1 = arg[2]
  11993. }
  11994. split(mac1, mac2, "(") #)
  11995. macro = mac2[1]
  11996. prefix = substr(line, 1, index(line, defundef) - 1)
  11997. if (D_is_set[macro]) {
  11998. # Preserve the white space surrounding the "#".
  11999. print prefix "define", macro P[macro] D[macro]
  12000. next
  12001. } else {
  12002. # Replace #undef with comments. This is necessary, for example,
  12003. # in the case of _POSIX_SOURCE, which is predefined and required
  12004. # on some systems where configure will not decide to define it.
  12005. if (defundef == "undef") {
  12006. print "/*", prefix defundef, macro, "*/"
  12007. next
  12008. }
  12009. }
  12010. }
  12011. { print }
  12012. _ACAWK
  12013. _ACEOF
  12014. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12015. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  12016. fi # test -n "$CONFIG_HEADERS"
  12017. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  12018. shift
  12019. for ac_tag
  12020. do
  12021. case $ac_tag in
  12022. :[FHLC]) ac_mode=$ac_tag; continue;;
  12023. esac
  12024. case $ac_mode$ac_tag in
  12025. :[FHL]*:*);;
  12026. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12027. :[FH]-) ac_tag=-:-;;
  12028. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12029. esac
  12030. ac_save_IFS=$IFS
  12031. IFS=:
  12032. set x $ac_tag
  12033. IFS=$ac_save_IFS
  12034. shift
  12035. ac_file=$1
  12036. shift
  12037. case $ac_mode in
  12038. :L) ac_source=$1;;
  12039. :[FH])
  12040. ac_file_inputs=
  12041. for ac_f
  12042. do
  12043. case $ac_f in
  12044. -) ac_f="$ac_tmp/stdin";;
  12045. *) # Look for the file first in the build tree, then in the source tree
  12046. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12047. # because $ac_f cannot contain `:'.
  12048. test -f "$ac_f" ||
  12049. case $ac_f in
  12050. [\\/$]*) false;;
  12051. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12052. esac ||
  12053. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12054. esac
  12055. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12056. as_fn_append ac_file_inputs " '$ac_f'"
  12057. done
  12058. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12059. # use $as_me), people would be surprised to read:
  12060. # /* config.h. Generated by config.status. */
  12061. configure_input='Generated from '`
  12062. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12063. `' by configure.'
  12064. if test x"$ac_file" != x-; then
  12065. configure_input="$ac_file. $configure_input"
  12066. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12067. $as_echo "$as_me: creating $ac_file" >&6;}
  12068. fi
  12069. # Neutralize special characters interpreted by sed in replacement strings.
  12070. case $configure_input in #(
  12071. *\&* | *\|* | *\\* )
  12072. ac_sed_conf_input=`$as_echo "$configure_input" |
  12073. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12074. *) ac_sed_conf_input=$configure_input;;
  12075. esac
  12076. case $ac_tag in
  12077. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  12078. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  12079. esac
  12080. ;;
  12081. esac
  12082. ac_dir=`$as_dirname -- "$ac_file" ||
  12083. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12084. X"$ac_file" : 'X\(//\)[^/]' \| \
  12085. X"$ac_file" : 'X\(//\)$' \| \
  12086. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12087. $as_echo X"$ac_file" |
  12088. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12089. s//\1/
  12090. q
  12091. }
  12092. /^X\(\/\/\)[^/].*/{
  12093. s//\1/
  12094. q
  12095. }
  12096. /^X\(\/\/\)$/{
  12097. s//\1/
  12098. q
  12099. }
  12100. /^X\(\/\).*/{
  12101. s//\1/
  12102. q
  12103. }
  12104. s/.*/./; q'`
  12105. as_dir="$ac_dir"; as_fn_mkdir_p
  12106. ac_builddir=.
  12107. case "$ac_dir" in
  12108. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12109. *)
  12110. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12111. # A ".." for each directory in $ac_dir_suffix.
  12112. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12113. case $ac_top_builddir_sub in
  12114. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12115. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12116. esac ;;
  12117. esac
  12118. ac_abs_top_builddir=$ac_pwd
  12119. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12120. # for backward compatibility:
  12121. ac_top_builddir=$ac_top_build_prefix
  12122. case $srcdir in
  12123. .) # We are building in place.
  12124. ac_srcdir=.
  12125. ac_top_srcdir=$ac_top_builddir_sub
  12126. ac_abs_top_srcdir=$ac_pwd ;;
  12127. [\\/]* | ?:[\\/]* ) # Absolute name.
  12128. ac_srcdir=$srcdir$ac_dir_suffix;
  12129. ac_top_srcdir=$srcdir
  12130. ac_abs_top_srcdir=$srcdir ;;
  12131. *) # Relative name.
  12132. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12133. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12134. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12135. esac
  12136. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12137. case $ac_mode in
  12138. :F)
  12139. #
  12140. # CONFIG_FILE
  12141. #
  12142. case $INSTALL in
  12143. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12144. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12145. esac
  12146. ac_MKDIR_P=$MKDIR_P
  12147. case $MKDIR_P in
  12148. [\\/$]* | ?:[\\/]* ) ;;
  12149. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  12150. esac
  12151. _ACEOF
  12152. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12153. # If the template does not know about datarootdir, expand it.
  12154. # FIXME: This hack should be removed a few years after 2.60.
  12155. ac_datarootdir_hack=; ac_datarootdir_seen=
  12156. ac_sed_dataroot='
  12157. /datarootdir/ {
  12158. p
  12159. q
  12160. }
  12161. /@datadir@/p
  12162. /@docdir@/p
  12163. /@infodir@/p
  12164. /@localedir@/p
  12165. /@mandir@/p'
  12166. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12167. *datarootdir*) ac_datarootdir_seen=yes;;
  12168. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12169. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12170. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12171. _ACEOF
  12172. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12173. ac_datarootdir_hack='
  12174. s&@datadir@&$datadir&g
  12175. s&@docdir@&$docdir&g
  12176. s&@infodir@&$infodir&g
  12177. s&@localedir@&$localedir&g
  12178. s&@mandir@&$mandir&g
  12179. s&\\\${datarootdir}&$datarootdir&g' ;;
  12180. esac
  12181. _ACEOF
  12182. # Neutralize VPATH when `$srcdir' = `.'.
  12183. # Shell code in configure.ac might set extrasub.
  12184. # FIXME: do we really want to maintain this feature?
  12185. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12186. ac_sed_extra="$ac_vpsub
  12187. $extrasub
  12188. _ACEOF
  12189. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12190. :t
  12191. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12192. s|@configure_input@|$ac_sed_conf_input|;t t
  12193. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12194. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12195. s&@srcdir@&$ac_srcdir&;t t
  12196. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12197. s&@top_srcdir@&$ac_top_srcdir&;t t
  12198. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12199. s&@builddir@&$ac_builddir&;t t
  12200. s&@abs_builddir@&$ac_abs_builddir&;t t
  12201. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12202. s&@INSTALL@&$ac_INSTALL&;t t
  12203. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  12204. $ac_datarootdir_hack
  12205. "
  12206. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  12207. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12208. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12209. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  12210. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  12211. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  12212. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12213. which seems to be undefined. Please make sure it is defined" >&5
  12214. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12215. which seems to be undefined. Please make sure it is defined" >&2;}
  12216. rm -f "$ac_tmp/stdin"
  12217. case $ac_file in
  12218. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  12219. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  12220. esac \
  12221. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12222. ;;
  12223. :H)
  12224. #
  12225. # CONFIG_HEADER
  12226. #
  12227. if test x"$ac_file" != x-; then
  12228. {
  12229. $as_echo "/* $configure_input */" \
  12230. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  12231. } >"$ac_tmp/config.h" \
  12232. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12233. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  12234. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  12235. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12236. else
  12237. rm -f "$ac_file"
  12238. mv "$ac_tmp/config.h" "$ac_file" \
  12239. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12240. fi
  12241. else
  12242. $as_echo "/* $configure_input */" \
  12243. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  12244. || as_fn_error $? "could not create -" "$LINENO" 5
  12245. fi
  12246. # Compute "$ac_file"'s index in $config_headers.
  12247. _am_arg="$ac_file"
  12248. _am_stamp_count=1
  12249. for _am_header in $config_headers :; do
  12250. case $_am_header in
  12251. $_am_arg | $_am_arg:* )
  12252. break ;;
  12253. * )
  12254. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  12255. esac
  12256. done
  12257. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  12258. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12259. X"$_am_arg" : 'X\(//\)[^/]' \| \
  12260. X"$_am_arg" : 'X\(//\)$' \| \
  12261. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  12262. $as_echo X"$_am_arg" |
  12263. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12264. s//\1/
  12265. q
  12266. }
  12267. /^X\(\/\/\)[^/].*/{
  12268. s//\1/
  12269. q
  12270. }
  12271. /^X\(\/\/\)$/{
  12272. s//\1/
  12273. q
  12274. }
  12275. /^X\(\/\).*/{
  12276. s//\1/
  12277. q
  12278. }
  12279. s/.*/./; q'`/stamp-h$_am_stamp_count
  12280. ;;
  12281. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12282. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12283. ;;
  12284. esac
  12285. case $ac_file$ac_mode in
  12286. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  12287. # Older Autoconf quotes --file arguments for eval, but not when files
  12288. # are listed without --file. Let's play safe and only enable the eval
  12289. # if we detect the quoting.
  12290. case $CONFIG_FILES in
  12291. *\'*) eval set x "$CONFIG_FILES" ;;
  12292. *) set x $CONFIG_FILES ;;
  12293. esac
  12294. shift
  12295. for mf
  12296. do
  12297. # Strip MF so we end up with the name of the file.
  12298. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12299. # Check whether this is an Automake generated Makefile or not.
  12300. # We used to match only the files named 'Makefile.in', but
  12301. # some people rename them; so instead we look at the file content.
  12302. # Grep'ing the first line is not enough: some people post-process
  12303. # each Makefile.in and add a new line on top of each file to say so.
  12304. # Grep'ing the whole file is not good either: AIX grep has a line
  12305. # limit of 2048, but all sed's we know have understand at least 4000.
  12306. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  12307. dirpart=`$as_dirname -- "$mf" ||
  12308. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12309. X"$mf" : 'X\(//\)[^/]' \| \
  12310. X"$mf" : 'X\(//\)$' \| \
  12311. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12312. $as_echo X"$mf" |
  12313. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12314. s//\1/
  12315. q
  12316. }
  12317. /^X\(\/\/\)[^/].*/{
  12318. s//\1/
  12319. q
  12320. }
  12321. /^X\(\/\/\)$/{
  12322. s//\1/
  12323. q
  12324. }
  12325. /^X\(\/\).*/{
  12326. s//\1/
  12327. q
  12328. }
  12329. s/.*/./; q'`
  12330. else
  12331. continue
  12332. fi
  12333. # Extract the definition of DEPDIR, am__include, and am__quote
  12334. # from the Makefile without running 'make'.
  12335. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12336. test -z "$DEPDIR" && continue
  12337. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  12338. test -z "$am__include" && continue
  12339. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  12340. # Find all dependency output files, they are included files with
  12341. # $(DEPDIR) in their names. We invoke sed twice because it is the
  12342. # simplest approach to changing $(DEPDIR) to its actual value in the
  12343. # expansion.
  12344. for file in `sed -n "
  12345. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  12346. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  12347. # Make sure the directory exists.
  12348. test -f "$dirpart/$file" && continue
  12349. fdir=`$as_dirname -- "$file" ||
  12350. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12351. X"$file" : 'X\(//\)[^/]' \| \
  12352. X"$file" : 'X\(//\)$' \| \
  12353. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  12354. $as_echo X"$file" |
  12355. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12356. s//\1/
  12357. q
  12358. }
  12359. /^X\(\/\/\)[^/].*/{
  12360. s//\1/
  12361. q
  12362. }
  12363. /^X\(\/\/\)$/{
  12364. s//\1/
  12365. q
  12366. }
  12367. /^X\(\/\).*/{
  12368. s//\1/
  12369. q
  12370. }
  12371. s/.*/./; q'`
  12372. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  12373. # echo "creating $dirpart/$file"
  12374. echo '# dummy' > "$dirpart/$file"
  12375. done
  12376. done
  12377. }
  12378. ;;
  12379. "libtool":C)
  12380. # See if we are running on zsh, and set the options that allow our
  12381. # commands through without removal of \ escapes.
  12382. if test -n "${ZSH_VERSION+set}"; then
  12383. setopt NO_GLOB_SUBST
  12384. fi
  12385. cfgfile=${ofile}T
  12386. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12387. $RM "$cfgfile"
  12388. cat <<_LT_EOF >> "$cfgfile"
  12389. #! $SHELL
  12390. # Generated automatically by $as_me ($PACKAGE) $VERSION
  12391. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12392. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12393. # Provide generalized library-building support services.
  12394. # Written by Gordon Matzigkeit, 1996
  12395. # Copyright (C) 2014 Free Software Foundation, Inc.
  12396. # This is free software; see the source for copying conditions. There is NO
  12397. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12398. # GNU Libtool is free software; you can redistribute it and/or modify
  12399. # it under the terms of the GNU General Public License as published by
  12400. # the Free Software Foundation; either version 2 of of the License, or
  12401. # (at your option) any later version.
  12402. #
  12403. # As a special exception to the GNU General Public License, if you
  12404. # distribute this file as part of a program or library that is built
  12405. # using GNU Libtool, you may include this file under the same
  12406. # distribution terms that you use for the rest of that program.
  12407. #
  12408. # GNU Libtool is distributed in the hope that it will be useful, but
  12409. # WITHOUT ANY WARRANTY; without even the implied warranty of
  12410. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12411. # GNU General Public License for more details.
  12412. #
  12413. # You should have received a copy of the GNU General Public License
  12414. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  12415. # The names of the tagged configurations supported by this script.
  12416. available_tags=''
  12417. # Configured defaults for sys_lib_dlsearch_path munging.
  12418. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  12419. # ### BEGIN LIBTOOL CONFIG
  12420. # Which release of libtool.m4 was used?
  12421. macro_version=$macro_version
  12422. macro_revision=$macro_revision
  12423. # Whether or not to build shared libraries.
  12424. build_libtool_libs=$enable_shared
  12425. # Whether or not to build static libraries.
  12426. build_old_libs=$enable_static
  12427. # What type of objects to build.
  12428. pic_mode=$pic_mode
  12429. # Whether or not to optimize for fast installation.
  12430. fast_install=$enable_fast_install
  12431. # Shared archive member basename,for filename based shared library versioning on AIX.
  12432. shared_archive_member_spec=$shared_archive_member_spec
  12433. # Shell to use when invoking shell scripts.
  12434. SHELL=$lt_SHELL
  12435. # An echo program that protects backslashes.
  12436. ECHO=$lt_ECHO
  12437. # The PATH separator for the build system.
  12438. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  12439. # The host system.
  12440. host_alias=$host_alias
  12441. host=$host
  12442. host_os=$host_os
  12443. # The build system.
  12444. build_alias=$build_alias
  12445. build=$build
  12446. build_os=$build_os
  12447. # A sed program that does not truncate output.
  12448. SED=$lt_SED
  12449. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  12450. Xsed="\$SED -e 1s/^X//"
  12451. # A grep program that handles long lines.
  12452. GREP=$lt_GREP
  12453. # An ERE matcher.
  12454. EGREP=$lt_EGREP
  12455. # A literal string matcher.
  12456. FGREP=$lt_FGREP
  12457. # A BSD- or MS-compatible name lister.
  12458. NM=$lt_NM
  12459. # Whether we need soft or hard links.
  12460. LN_S=$lt_LN_S
  12461. # What is the maximum length of a command?
  12462. max_cmd_len=$max_cmd_len
  12463. # Object file suffix (normally "o").
  12464. objext=$ac_objext
  12465. # Executable file suffix (normally "").
  12466. exeext=$exeext
  12467. # whether the shell understands "unset".
  12468. lt_unset=$lt_unset
  12469. # turn spaces into newlines.
  12470. SP2NL=$lt_lt_SP2NL
  12471. # turn newlines into spaces.
  12472. NL2SP=$lt_lt_NL2SP
  12473. # convert \$build file names to \$host format.
  12474. to_host_file_cmd=$lt_cv_to_host_file_cmd
  12475. # convert \$build files to toolchain format.
  12476. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  12477. # An object symbol dumper.
  12478. OBJDUMP=$lt_OBJDUMP
  12479. # Method to check whether dependent libraries are shared objects.
  12480. deplibs_check_method=$lt_deplibs_check_method
  12481. # Command to use when deplibs_check_method = "file_magic".
  12482. file_magic_cmd=$lt_file_magic_cmd
  12483. # How to find potential files when deplibs_check_method = "file_magic".
  12484. file_magic_glob=$lt_file_magic_glob
  12485. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  12486. want_nocaseglob=$lt_want_nocaseglob
  12487. # DLL creation program.
  12488. DLLTOOL=$lt_DLLTOOL
  12489. # Command to associate shared and link libraries.
  12490. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  12491. # The archiver.
  12492. AR=$lt_AR
  12493. # Flags to create an archive.
  12494. AR_FLAGS=$lt_AR_FLAGS
  12495. # How to feed a file listing to the archiver.
  12496. archiver_list_spec=$lt_archiver_list_spec
  12497. # A symbol stripping program.
  12498. STRIP=$lt_STRIP
  12499. # Commands used to install an old-style archive.
  12500. RANLIB=$lt_RANLIB
  12501. old_postinstall_cmds=$lt_old_postinstall_cmds
  12502. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12503. # Whether to use a lock for old archive extraction.
  12504. lock_old_archive_extraction=$lock_old_archive_extraction
  12505. # A C compiler.
  12506. LTCC=$lt_CC
  12507. # LTCC compiler flags.
  12508. LTCFLAGS=$lt_CFLAGS
  12509. # Take the output of nm and produce a listing of raw symbols and C names.
  12510. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12511. # Transform the output of nm in a proper C declaration.
  12512. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12513. # Transform the output of nm into a list of symbols to manually relocate.
  12514. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  12515. # Transform the output of nm in a C name address pair.
  12516. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12517. # Transform the output of nm in a C name address pair when lib prefix is needed.
  12518. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  12519. # The name lister interface.
  12520. nm_interface=$lt_lt_cv_nm_interface
  12521. # Specify filename containing input files for \$NM.
  12522. nm_file_list_spec=$lt_nm_file_list_spec
  12523. # The root where to search for dependent libraries,and where our libraries should be installed.
  12524. lt_sysroot=$lt_sysroot
  12525. # Command to truncate a binary pipe.
  12526. lt_truncate_bin=$lt_lt_cv_truncate_bin
  12527. # The name of the directory that contains temporary libtool files.
  12528. objdir=$objdir
  12529. # Used to examine libraries when file_magic_cmd begins with "file".
  12530. MAGIC_CMD=$MAGIC_CMD
  12531. # Must we lock files when doing compilation?
  12532. need_locks=$lt_need_locks
  12533. # Manifest tool.
  12534. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  12535. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  12536. DSYMUTIL=$lt_DSYMUTIL
  12537. # Tool to change global to local symbols on Mac OS X.
  12538. NMEDIT=$lt_NMEDIT
  12539. # Tool to manipulate fat objects and archives on Mac OS X.
  12540. LIPO=$lt_LIPO
  12541. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  12542. OTOOL=$lt_OTOOL
  12543. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  12544. OTOOL64=$lt_OTOOL64
  12545. # Old archive suffix (normally "a").
  12546. libext=$libext
  12547. # Shared library suffix (normally ".so").
  12548. shrext_cmds=$lt_shrext_cmds
  12549. # The commands to extract the exported symbol list from a shared archive.
  12550. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12551. # Variables whose values should be saved in libtool wrapper scripts and
  12552. # restored at link time.
  12553. variables_saved_for_relink=$lt_variables_saved_for_relink
  12554. # Do we need the "lib" prefix for modules?
  12555. need_lib_prefix=$need_lib_prefix
  12556. # Do we need a version for libraries?
  12557. need_version=$need_version
  12558. # Library versioning type.
  12559. version_type=$version_type
  12560. # Shared library runtime path variable.
  12561. runpath_var=$runpath_var
  12562. # Shared library path variable.
  12563. shlibpath_var=$shlibpath_var
  12564. # Is shlibpath searched before the hard-coded library search path?
  12565. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12566. # Format of library name prefix.
  12567. libname_spec=$lt_libname_spec
  12568. # List of archive names. First name is the real one, the rest are links.
  12569. # The last name is the one that the linker finds with -lNAME
  12570. library_names_spec=$lt_library_names_spec
  12571. # The coded name of the library, if different from the real name.
  12572. soname_spec=$lt_soname_spec
  12573. # Permission mode override for installation of shared libraries.
  12574. install_override_mode=$lt_install_override_mode
  12575. # Command to use after installation of a shared archive.
  12576. postinstall_cmds=$lt_postinstall_cmds
  12577. # Command to use after uninstallation of a shared archive.
  12578. postuninstall_cmds=$lt_postuninstall_cmds
  12579. # Commands used to finish a libtool library installation in a directory.
  12580. finish_cmds=$lt_finish_cmds
  12581. # As "finish_cmds", except a single script fragment to be evaled but
  12582. # not shown.
  12583. finish_eval=$lt_finish_eval
  12584. # Whether we should hardcode library paths into libraries.
  12585. hardcode_into_libs=$hardcode_into_libs
  12586. # Compile-time system search path for libraries.
  12587. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12588. # Detected run-time system search path for libraries.
  12589. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  12590. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  12591. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  12592. # Whether dlopen is supported.
  12593. dlopen_support=$enable_dlopen
  12594. # Whether dlopen of programs is supported.
  12595. dlopen_self=$enable_dlopen_self
  12596. # Whether dlopen of statically linked programs is supported.
  12597. dlopen_self_static=$enable_dlopen_self_static
  12598. # Commands to strip libraries.
  12599. old_striplib=$lt_old_striplib
  12600. striplib=$lt_striplib
  12601. # The linker used to build libraries.
  12602. LD=$lt_LD
  12603. # How to create reloadable object files.
  12604. reload_flag=$lt_reload_flag
  12605. reload_cmds=$lt_reload_cmds
  12606. # Commands used to build an old-style archive.
  12607. old_archive_cmds=$lt_old_archive_cmds
  12608. # A language specific compiler.
  12609. CC=$lt_compiler
  12610. # Is the compiler the GNU compiler?
  12611. with_gcc=$GCC
  12612. # Compiler flag to turn off builtin functions.
  12613. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12614. # Additional compiler flags for building library objects.
  12615. pic_flag=$lt_lt_prog_compiler_pic
  12616. # How to pass a linker flag through the compiler.
  12617. wl=$lt_lt_prog_compiler_wl
  12618. # Compiler flag to prevent dynamic linking.
  12619. link_static_flag=$lt_lt_prog_compiler_static
  12620. # Does compiler simultaneously support -c and -o options?
  12621. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12622. # Whether or not to add -lc for building shared libraries.
  12623. build_libtool_need_lc=$archive_cmds_need_lc
  12624. # Whether or not to disallow shared libs when runtime libs are static.
  12625. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12626. # Compiler flag to allow reflexive dlopens.
  12627. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12628. # Compiler flag to generate shared objects directly from archives.
  12629. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  12630. # Whether the compiler copes with passing no objects directly.
  12631. compiler_needs_object=$lt_compiler_needs_object
  12632. # Create an old-style archive from a shared archive.
  12633. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  12634. # Create a temporary old-style archive to link instead of a shared archive.
  12635. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  12636. # Commands used to build a shared archive.
  12637. archive_cmds=$lt_archive_cmds
  12638. archive_expsym_cmds=$lt_archive_expsym_cmds
  12639. # Commands used to build a loadable module if different from building
  12640. # a shared archive.
  12641. module_cmds=$lt_module_cmds
  12642. module_expsym_cmds=$lt_module_expsym_cmds
  12643. # Whether we are building with GNU ld or not.
  12644. with_gnu_ld=$lt_with_gnu_ld
  12645. # Flag that allows shared libraries with undefined symbols to be built.
  12646. allow_undefined_flag=$lt_allow_undefined_flag
  12647. # Flag that enforces no undefined symbols.
  12648. no_undefined_flag=$lt_no_undefined_flag
  12649. # Flag to hardcode \$libdir into a binary during linking.
  12650. # This must work even if \$libdir does not exist
  12651. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12652. # Whether we need a single "-rpath" flag with a separated argument.
  12653. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12654. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  12655. # DIR into the resulting binary.
  12656. hardcode_direct=$hardcode_direct
  12657. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  12658. # DIR into the resulting binary and the resulting library dependency is
  12659. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  12660. # library is relocated.
  12661. hardcode_direct_absolute=$hardcode_direct_absolute
  12662. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  12663. # into the resulting binary.
  12664. hardcode_minus_L=$hardcode_minus_L
  12665. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  12666. # into the resulting binary.
  12667. hardcode_shlibpath_var=$hardcode_shlibpath_var
  12668. # Set to "yes" if building a shared library automatically hardcodes DIR
  12669. # into the library and all subsequent libraries and executables linked
  12670. # against it.
  12671. hardcode_automatic=$hardcode_automatic
  12672. # Set to yes if linker adds runtime paths of dependent libraries
  12673. # to runtime path list.
  12674. inherit_rpath=$inherit_rpath
  12675. # Whether libtool must link a program against all its dependency libraries.
  12676. link_all_deplibs=$link_all_deplibs
  12677. # Set to "yes" if exported symbols are required.
  12678. always_export_symbols=$always_export_symbols
  12679. # The commands to list exported symbols.
  12680. export_symbols_cmds=$lt_export_symbols_cmds
  12681. # Symbols that should not be listed in the preloaded symbols.
  12682. exclude_expsyms=$lt_exclude_expsyms
  12683. # Symbols that must always be exported.
  12684. include_expsyms=$lt_include_expsyms
  12685. # Commands necessary for linking programs (against libraries) with templates.
  12686. prelink_cmds=$lt_prelink_cmds
  12687. # Commands necessary for finishing linking programs.
  12688. postlink_cmds=$lt_postlink_cmds
  12689. # Specify filename containing input files.
  12690. file_list_spec=$lt_file_list_spec
  12691. # How to hardcode a shared library path into an executable.
  12692. hardcode_action=$hardcode_action
  12693. # ### END LIBTOOL CONFIG
  12694. _LT_EOF
  12695. cat <<'_LT_EOF' >> "$cfgfile"
  12696. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  12697. # func_munge_path_list VARIABLE PATH
  12698. # -----------------------------------
  12699. # VARIABLE is name of variable containing _space_ separated list of
  12700. # directories to be munged by the contents of PATH, which is string
  12701. # having a format:
  12702. # "DIR[:DIR]:"
  12703. # string "DIR[ DIR]" will be prepended to VARIABLE
  12704. # ":DIR[:DIR]"
  12705. # string "DIR[ DIR]" will be appended to VARIABLE
  12706. # "DIRP[:DIRP]::[DIRA:]DIRA"
  12707. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  12708. # "DIRA[ DIRA]" will be appended to VARIABLE
  12709. # "DIR[:DIR]"
  12710. # VARIABLE will be replaced by "DIR[ DIR]"
  12711. func_munge_path_list ()
  12712. {
  12713. case x$2 in
  12714. x)
  12715. ;;
  12716. *:)
  12717. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  12718. ;;
  12719. x:*)
  12720. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  12721. ;;
  12722. *::*)
  12723. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  12724. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  12725. ;;
  12726. *)
  12727. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  12728. ;;
  12729. esac
  12730. }
  12731. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  12732. func_cc_basename ()
  12733. {
  12734. for cc_temp in $*""; do
  12735. case $cc_temp in
  12736. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12737. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12738. \-*) ;;
  12739. *) break;;
  12740. esac
  12741. done
  12742. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  12743. }
  12744. # ### END FUNCTIONS SHARED WITH CONFIGURE
  12745. _LT_EOF
  12746. case $host_os in
  12747. aix3*)
  12748. cat <<\_LT_EOF >> "$cfgfile"
  12749. # AIX sometimes has problems with the GCC collect2 program. For some
  12750. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12751. # vanish in a puff of smoke.
  12752. if test set != "${COLLECT_NAMES+set}"; then
  12753. COLLECT_NAMES=
  12754. export COLLECT_NAMES
  12755. fi
  12756. _LT_EOF
  12757. ;;
  12758. esac
  12759. ltmain=$ac_aux_dir/ltmain.sh
  12760. # We use sed instead of cat because bash on DJGPP gets confused if
  12761. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  12762. # text mode, it properly converts lines to CR/LF. This bash problem
  12763. # is reportedly fixed, but why not run on old versions too?
  12764. sed '$q' "$ltmain" >> "$cfgfile" \
  12765. || (rm -f "$cfgfile"; exit 1)
  12766. mv -f "$cfgfile" "$ofile" ||
  12767. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  12768. chmod +x "$ofile"
  12769. ;;
  12770. "default":C) ;;
  12771. esac
  12772. done # for ac_tag
  12773. as_fn_exit 0
  12774. _ACEOF
  12775. ac_clean_files=$ac_clean_files_save
  12776. test $ac_write_fail = 0 ||
  12777. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  12778. # configure is writing to config.log, and then calls config.status.
  12779. # config.status does its own redirection, appending to config.log.
  12780. # Unfortunately, on DOS this fails, as config.log is still kept open
  12781. # by configure, so config.status won't be able to write to it; its
  12782. # output is simply discarded. So we exec the FD to /dev/null,
  12783. # effectively closing config.log, so it can be properly (re)opened and
  12784. # appended to by config.status. When coming back to configure, we
  12785. # need to make the FD available again.
  12786. if test "$no_create" != yes; then
  12787. ac_cs_success=:
  12788. ac_config_status_args=
  12789. test "$silent" = yes &&
  12790. ac_config_status_args="$ac_config_status_args --quiet"
  12791. exec 5>/dev/null
  12792. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12793. exec 5>>config.log
  12794. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12795. # would make configure fail if this is the last instruction.
  12796. $ac_cs_success || as_fn_exit 1
  12797. fi
  12798. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  12799. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  12800. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  12801. fi